@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,15 +1,15 @@
|
|
|
1
1
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
3
|
import { n as useAppShellMobile } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as resolveNavRoot } from "./link-
|
|
9
|
-
import { t as _sfc_main$11 } from "./NavItem-
|
|
10
|
-
import { n as navMenuCloseKey, t as _sfc_main$12 } from "./NavDisclosure-
|
|
11
|
-
import { n as _sfc_main$14, t as _sfc_main$13 } from "./NavMenuItem-
|
|
12
|
-
import { t as _sfc_main$15 } from "./NavHeadingSurface-
|
|
4
|
+
import { t as _sfc_main$8 } from "./Icon-KDnUyY7f.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CM-cjGg_.js";
|
|
6
|
+
import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
|
|
7
|
+
import { n as _sfc_main$10, r as mobileNavKey, t as _sfc_main$9 } from "./MobileNavToggle-DgJYyzT6.js";
|
|
8
|
+
import { i as safeNavHref, n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
|
|
9
|
+
import { t as _sfc_main$11 } from "./NavItem-BPb3yfgz.js";
|
|
10
|
+
import { n as navMenuCloseKey, t as _sfc_main$12 } from "./NavDisclosure-Bq9DTZLO.js";
|
|
11
|
+
import { n as _sfc_main$14, t as _sfc_main$13 } from "./NavMenuItem-D3FO90GR.js";
|
|
12
|
+
import { t as _sfc_main$15 } from "./NavHeadingSurface-DQXisuaX.js";
|
|
13
13
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
14
14
|
import "../styles/top-nav.css";
|
|
15
15
|
//#region src/TopNav/TopNav.vue
|
|
@@ -64,12 +64,12 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
|
64
64
|
}, [
|
|
65
65
|
createElementVNode("div", _hoisted_2$5, [unref(slots).heading ? (openBlock(), createElementBlock("div", _hoisted_3$5, [renderSlot(_ctx.$slots, "heading")])) : createCommentVNode("v-if", true), !isCompact.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [renderSlot(_ctx.$slots, "start"), renderSlot(_ctx.$slots, "default")])) : createCommentVNode("v-if", true)]),
|
|
66
66
|
hasCenter.value && !isCompact.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "center")])) : createCommentVNode("v-if", true),
|
|
67
|
-
createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "end"), showShellToggle.value ? (openBlock(), createBlock(_sfc_main$
|
|
67
|
+
createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "end"), showShellToggle.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
68
68
|
key: 0,
|
|
69
69
|
"is-open": unref(shell).isMobileNavOpen,
|
|
70
70
|
controls: unref(shell).mobileNavId,
|
|
71
71
|
"onUpdate:isOpen": setShellOpen
|
|
72
|
-
}, null, 8, ["is-open", "controls"])) : ownsDrawer.value && hasDrawer.value ? (openBlock(), createBlock(_sfc_main$
|
|
72
|
+
}, null, 8, ["is-open", "controls"])) : ownsDrawer.value && hasDrawer.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
73
73
|
key: 1,
|
|
74
74
|
"is-open": mobileOpen.value,
|
|
75
75
|
"onUpdate:isOpen": _cache[0] || (_cache[0] = ($event) => mobileOpen.value = $event),
|
|
@@ -84,7 +84,7 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
|
84
84
|
renderSlot(_ctx.$slots, "default"),
|
|
85
85
|
renderSlot(_ctx.$slots, "center")
|
|
86
86
|
])], 8, ["to"])) : createCommentVNode("v-if", true),
|
|
87
|
-
ownsDrawer.value && hasDrawer.value ? (openBlock(), createBlock(_sfc_main$
|
|
87
|
+
ownsDrawer.value && hasDrawer.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
88
88
|
key: 1,
|
|
89
89
|
id: drawerId,
|
|
90
90
|
"is-open": mobileOpen.value,
|
|
@@ -307,7 +307,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
307
307
|
"aria-controls": drawerItemsId,
|
|
308
308
|
"aria-expanded": expanded.value ? "true" : "false",
|
|
309
309
|
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = !expanded.value)
|
|
310
|
-
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$
|
|
310
|
+
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$8, {
|
|
311
311
|
icon: "chevronDown",
|
|
312
312
|
size: "sm",
|
|
313
313
|
class: normalizeClass({ "astryx-top-nav-menu__chevron--open": expanded.value })
|
|
@@ -330,7 +330,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
330
330
|
"aria-expanded": isOpen ? "true" : "false",
|
|
331
331
|
"aria-controls": panelId,
|
|
332
332
|
"aria-haspopup": "menu"
|
|
333
|
-
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$
|
|
333
|
+
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$8, {
|
|
334
334
|
icon: "chevronDown",
|
|
335
335
|
size: "sm",
|
|
336
336
|
class: normalizeClass(["astryx-top-nav-menu__chevron", { "astryx-top-nav-menu__chevron--open": isOpen }])
|
|
@@ -385,9 +385,9 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
385
385
|
const linkComponent = useLinkComponent();
|
|
386
386
|
const ctaHref = computed(() => {
|
|
387
387
|
if (!props.linkLabel) return void 0;
|
|
388
|
-
return props.linkHref || props.href;
|
|
388
|
+
return safeNavHref(props.linkHref || props.href);
|
|
389
389
|
});
|
|
390
|
-
const wholeHref = computed(() => ctaHref.value ? void 0 : props.href);
|
|
390
|
+
const wholeHref = computed(() => ctaHref.value ? void 0 : safeNavHref(props.href));
|
|
391
391
|
/** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
|
|
392
392
|
const customLink = computed(() => props.as ?? linkComponent.value);
|
|
393
393
|
const root = computed(() => wholeHref.value ? resolveNavRoot(wholeHref.value, false, customLink.value) : "div");
|
|
@@ -467,16 +467,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
467
467
|
const linkComponent = useLinkComponent();
|
|
468
468
|
/** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
|
|
469
469
|
const customLink = computed(() => props.as ?? linkComponent.value);
|
|
470
|
-
const
|
|
470
|
+
const navigableHref = computed(() => isNavigableHref(props.href) ? props.href : void 0);
|
|
471
|
+
const root = computed(() => resolveNavRoot(navigableHref.value, false, customLink.value));
|
|
471
472
|
function onClick() {
|
|
472
473
|
closeMenu?.();
|
|
473
474
|
}
|
|
474
475
|
return (_ctx, _cache) => {
|
|
475
476
|
return openBlock(), createBlock(resolveDynamicComponent(root.value), {
|
|
476
477
|
class: "astryx-top-nav-mega-item",
|
|
477
|
-
href:
|
|
478
|
-
to:
|
|
479
|
-
type:
|
|
478
|
+
href: navigableHref.value,
|
|
479
|
+
to: navigableHref.value && customLink.value != null ? navigableHref.value : void 0,
|
|
480
|
+
type: navigableHref.value ? void 0 : "button",
|
|
480
481
|
onClick
|
|
481
482
|
}, {
|
|
482
483
|
default: withCtx(() => [__props.iconClass || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$1, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.iconClass ? (openBlock(), createElementBlock("span", _hoisted_2$1, [createElementVNode("span", { class: normalizeClass(["astryx-top-nav-mega-item__glyph", __props.iconClass]) }, null, 2)])) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_3$1, [createElementVNode("span", _hoisted_4$1, toDisplayString(__props.title), 1), __props.description ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)])]),
|
|
@@ -522,7 +523,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
522
523
|
class: "astryx-top-nav-menu__drawer-trigger",
|
|
523
524
|
"aria-expanded": expanded.value ? "true" : "false",
|
|
524
525
|
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = !expanded.value)
|
|
525
|
-
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$
|
|
526
|
+
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$8, {
|
|
526
527
|
icon: "chevronDown",
|
|
527
528
|
size: "sm",
|
|
528
529
|
class: normalizeClass({ "astryx-top-nav-menu__chevron--open": expanded.value })
|
|
@@ -557,7 +558,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
557
558
|
"aria-expanded": isOpen ? "true" : "false",
|
|
558
559
|
"aria-controls": panelId,
|
|
559
560
|
"aria-haspopup": "menu"
|
|
560
|
-
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$
|
|
561
|
+
}, [createElementVNode("span", null, toDisplayString(__props.label), 1), createVNode(_sfc_main$8, {
|
|
561
562
|
icon: "chevronDown",
|
|
562
563
|
size: "sm",
|
|
563
564
|
class: normalizeClass(["astryx-top-nav-menu__chevron", { "astryx-top-nav-menu__chevron--open": isOpen }])
|
package/dist/TreeList/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TreeListItemData, c as TreeListVariant, i as TreeListDensity, n as useTreeFocus, o as TreeListProps, r as _default, s as TreeListSlots, t as UseTreeFocusOptions } from "../index-
|
|
1
|
+
import { a as TreeListItemData, c as TreeListVariant, i as TreeListDensity, n as useTreeFocus, o as TreeListProps, r as _default, s as TreeListSlots, t as UseTreeFocusOptions } from "../index-BNaRK-s5.js";
|
|
2
2
|
export { _default as TreeList, type TreeListDensity, type TreeListItemData, type TreeListProps, type TreeListSlots, type TreeListVariant, type UseTreeFocusOptions, useTreeFocus };
|
package/dist/TreeList/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useTreeFocus, t as _sfc_main } from "../TreeList-
|
|
1
|
+
import { n as useTreeFocus, t as _sfc_main } from "../TreeList-Bunn7u3T.js";
|
|
2
2
|
export { _sfc_main as TreeList, useTreeFocus };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
2
|
+
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
1
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toRaw, unref, useId, vShow, withCtx, withDirectives } from "vue";
|
|
4
|
+
import { s as isIconGlyph, t as _sfc_main$2 } from "./Icon-KDnUyY7f.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CM-cjGg_.js";
|
|
6
|
+
import { t as _sfc_main$3 } from "./Badge-CjDQPF5g.js";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, useId, useSlots, vShow, withCtx, withDirectives } from "vue";
|
|
6
8
|
import "../styles/tree-list.css";
|
|
7
9
|
//#region src/TreeList/TreeListItem.vue
|
|
8
10
|
const _hoisted_1$1 = [
|
|
@@ -14,6 +16,8 @@ const _hoisted_1$1 = [
|
|
|
14
16
|
"aria-selected",
|
|
15
17
|
"aria-disabled",
|
|
16
18
|
"aria-expanded",
|
|
19
|
+
"aria-labelledby",
|
|
20
|
+
"aria-describedby",
|
|
17
21
|
"tabindex"
|
|
18
22
|
];
|
|
19
23
|
const _hoisted_2$1 = ["data-span"];
|
|
@@ -39,26 +43,21 @@ const _hoisted_7 = {
|
|
|
39
43
|
key: 1,
|
|
40
44
|
class: "astryx-tree-list__icon"
|
|
41
45
|
};
|
|
42
|
-
const _hoisted_8 =
|
|
43
|
-
const _hoisted_9 =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
class: "astryx-tree-list__description"
|
|
52
|
-
};
|
|
46
|
+
const _hoisted_8 = ["id"];
|
|
47
|
+
const _hoisted_9 = ["id"];
|
|
48
|
+
const _hoisted_10 = [
|
|
49
|
+
"disabled",
|
|
50
|
+
"aria-labelledby",
|
|
51
|
+
"aria-describedby"
|
|
52
|
+
];
|
|
53
|
+
const _hoisted_11 = ["id"];
|
|
54
|
+
const _hoisted_12 = ["id"];
|
|
53
55
|
const _hoisted_13 = {
|
|
54
56
|
key: 4,
|
|
55
57
|
class: "astryx-tree-list__main"
|
|
56
58
|
};
|
|
57
|
-
const _hoisted_14 =
|
|
58
|
-
const _hoisted_15 =
|
|
59
|
-
key: 0,
|
|
60
|
-
class: "astryx-tree-list__description"
|
|
61
|
-
};
|
|
59
|
+
const _hoisted_14 = ["id"];
|
|
60
|
+
const _hoisted_15 = ["id"];
|
|
62
61
|
const _hoisted_16 = {
|
|
63
62
|
key: 5,
|
|
64
63
|
class: "astryx-tree-list__end"
|
|
@@ -95,8 +94,16 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
95
94
|
const emit = __emit;
|
|
96
95
|
const messages = useAstryxMessages();
|
|
97
96
|
const linkComponent = useLinkComponent();
|
|
97
|
+
const labelId = useId();
|
|
98
|
+
const descriptionId = useId();
|
|
98
99
|
/** 有链接时用的根组件,没有 provider 时还是 `<a>`。 */
|
|
99
100
|
const linkRoot = computed(() => linkComponent.value == null ? "a" : toRaw(linkComponent.value));
|
|
101
|
+
const safeHref = computed(() => {
|
|
102
|
+
const href = props.item.href;
|
|
103
|
+
return href != null && href !== "" && isSafeUrl(href) ? href : void 0;
|
|
104
|
+
});
|
|
105
|
+
/** 新窗口打开时补上和列表行相同的关系标记。 */
|
|
106
|
+
const linkRel = computed(() => props.item.target === "_blank" ? "noopener noreferrer" : void 0);
|
|
100
107
|
const hasChildren = computed(() => (props.item.children?.length ?? 0) > 0);
|
|
101
108
|
const isExpanded = computed(() => hasChildren.value && props.expanded[props.item.id] === true);
|
|
102
109
|
const reservesChevron = computed(() => !hasChildren.value && props.hasExpandableItems);
|
|
@@ -116,19 +123,26 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
116
123
|
event.stopPropagation();
|
|
117
124
|
emit("toggle", props.item.id);
|
|
118
125
|
}
|
|
126
|
+
const press = usePressFeedback();
|
|
127
|
+
const rowPress = computed(() => {
|
|
128
|
+
return (props.item.onClick != null || safeHref.value != null || hasChildren.value) && props.item.isDisabled !== true ? press.pressableProps : {};
|
|
129
|
+
});
|
|
119
130
|
return (_ctx, _cache) => {
|
|
120
131
|
const _component_TreeListItem = resolveComponent("TreeListItem", true);
|
|
121
132
|
return openBlock(), createElementBlock("li", {
|
|
122
|
-
class: "astryx-tree-list__item",
|
|
133
|
+
class: normalizeClass(["astryx-tree-list__item", __props.item.className]),
|
|
123
134
|
role: "treeitem",
|
|
124
135
|
"data-tree-id": __props.item.id,
|
|
125
136
|
"data-tree-disabled": __props.item.isDisabled ? "true" : void 0,
|
|
137
|
+
style: normalizeStyle(__props.item.style),
|
|
126
138
|
"aria-level": __props.nestedLevel + 1,
|
|
127
139
|
"aria-posinset": __props.posInSet,
|
|
128
140
|
"aria-setsize": __props.setSize,
|
|
129
141
|
"aria-selected": __props.item.isSelected || void 0,
|
|
130
142
|
"aria-disabled": __props.item.isDisabled || void 0,
|
|
131
143
|
"aria-expanded": hasChildren.value ? isExpanded.value : void 0,
|
|
144
|
+
"aria-labelledby": unref(labelId),
|
|
145
|
+
"aria-describedby": __props.item.description ? unref(descriptionId) : void 0,
|
|
132
146
|
tabindex: __props.item.id === __props.tabbableId ? 0 : -1
|
|
133
147
|
}, [
|
|
134
148
|
__props.variant === "lineGuides" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.ancestorsIsLast, (ancestorIsLast, level) => {
|
|
@@ -148,16 +162,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
148
162
|
class: "astryx-tree-list__guide-line",
|
|
149
163
|
"data-span": __props.isLast ? "last" : "full"
|
|
150
164
|
}, null, 8, _hoisted_2$1)], 4)) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true),
|
|
151
|
-
createElementVNode("div", _hoisted_3, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 键盘由外层 role=\"tree\" 处理,这一层只接指针点击。 "), createElementVNode("div", {
|
|
165
|
+
createElementVNode("div", _hoisted_3, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 键盘由外层 role=\"tree\" 处理,这一层只接指针点击。 "), createElementVNode("div", mergeProps({
|
|
152
166
|
class: "astryx-tree-list__content",
|
|
153
167
|
"data-density": __props.density,
|
|
154
168
|
"data-selected": __props.item.isSelected || void 0,
|
|
155
169
|
"data-disabled": __props.item.isDisabled || void 0,
|
|
156
|
-
"data-interactive": __props.item.onClick != null ||
|
|
170
|
+
"data-interactive": __props.item.onClick != null || safeHref.value != null || hasChildren.value || void 0,
|
|
157
171
|
"data-guide-inset": __props.variant === "lineGuides" && __props.nestedLevel > 0 && !reservesChevron.value || void 0,
|
|
158
|
-
style:
|
|
159
|
-
|
|
160
|
-
}, [
|
|
172
|
+
style: { "--_tree-indent": indent.value }
|
|
173
|
+
}, rowPress.value, { onClick: onRowClick }), [
|
|
161
174
|
hasChildren.value ? (openBlock(), createElementBlock("button", {
|
|
162
175
|
key: 0,
|
|
163
176
|
type: "button",
|
|
@@ -169,12 +182,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
169
182
|
disabled: __props.item.isDisabled,
|
|
170
183
|
tabindex: "-1",
|
|
171
184
|
onClick: onToggle
|
|
172
|
-
}, [createVNode(_sfc_main$
|
|
185
|
+
}, [createVNode(_sfc_main$2, {
|
|
173
186
|
icon: "chevronRight",
|
|
174
187
|
size: "sm",
|
|
175
188
|
color: "inherit"
|
|
176
189
|
})], 8, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
177
|
-
__props.item.icon ? (openBlock(), createElementBlock("span", _hoisted_6, [unref(isIconGlyph)(__props.item.icon) ? (openBlock(), createBlock(_sfc_main$
|
|
190
|
+
__props.item.icon ? (openBlock(), createElementBlock("span", _hoisted_6, [unref(isIconGlyph)(__props.item.icon) ? (openBlock(), createBlock(_sfc_main$2, {
|
|
178
191
|
key: 0,
|
|
179
192
|
icon: __props.item.icon,
|
|
180
193
|
size: "sm"
|
|
@@ -182,32 +195,61 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
182
195
|
class: normalizeClass(__props.item.icon),
|
|
183
196
|
"aria-hidden": "true"
|
|
184
197
|
}, null, 2)]))])) : createCommentVNode("v-if", true),
|
|
185
|
-
|
|
198
|
+
safeHref.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
186
199
|
key: 2,
|
|
187
200
|
class: "astryx-tree-list__action",
|
|
188
|
-
href:
|
|
189
|
-
to: linkRoot.value === "a" ? void 0 :
|
|
201
|
+
href: safeHref.value,
|
|
202
|
+
to: linkRoot.value === "a" ? void 0 : safeHref.value,
|
|
190
203
|
target: __props.item.target,
|
|
204
|
+
rel: linkRel.value,
|
|
205
|
+
"aria-labelledby": unref(labelId),
|
|
206
|
+
"aria-describedby": __props.item.description ? unref(descriptionId) : void 0,
|
|
191
207
|
tabindex: "-1"
|
|
192
208
|
}, {
|
|
193
|
-
default: withCtx(() => [createElementVNode("span",
|
|
209
|
+
default: withCtx(() => [createElementVNode("span", {
|
|
210
|
+
id: unref(labelId),
|
|
211
|
+
class: "astryx-tree-list__label"
|
|
212
|
+
}, toDisplayString(__props.item.label), 9, _hoisted_8), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
213
|
+
key: 0,
|
|
214
|
+
id: unref(descriptionId),
|
|
215
|
+
class: "astryx-tree-list__description"
|
|
216
|
+
}, toDisplayString(__props.item.description), 9, _hoisted_9)) : createCommentVNode("v-if", true)]),
|
|
194
217
|
_: 1
|
|
195
218
|
}, 8, [
|
|
196
219
|
"href",
|
|
197
220
|
"to",
|
|
198
|
-
"target"
|
|
221
|
+
"target",
|
|
222
|
+
"rel",
|
|
223
|
+
"aria-labelledby",
|
|
224
|
+
"aria-describedby"
|
|
199
225
|
])) : __props.item.onClick ? (openBlock(), createElementBlock("button", {
|
|
200
226
|
key: 3,
|
|
201
227
|
type: "button",
|
|
202
228
|
class: "astryx-tree-list__action",
|
|
203
229
|
disabled: __props.item.isDisabled,
|
|
230
|
+
"aria-labelledby": unref(labelId),
|
|
231
|
+
"aria-describedby": __props.item.description ? unref(descriptionId) : void 0,
|
|
204
232
|
tabindex: "-1",
|
|
205
233
|
onClick: _cache[0] || (_cache[0] = ($event) => __props.item.onClick($event))
|
|
206
|
-
}, [createElementVNode("span",
|
|
207
|
-
|
|
234
|
+
}, [createElementVNode("span", {
|
|
235
|
+
id: unref(labelId),
|
|
236
|
+
class: "astryx-tree-list__label"
|
|
237
|
+
}, toDisplayString(__props.item.label), 9, _hoisted_11), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
238
|
+
key: 0,
|
|
239
|
+
id: unref(descriptionId),
|
|
240
|
+
class: "astryx-tree-list__description"
|
|
241
|
+
}, toDisplayString(__props.item.description), 9, _hoisted_12)) : createCommentVNode("v-if", true)], 8, _hoisted_10)) : (openBlock(), createElementBlock("span", _hoisted_13, [createElementVNode("span", {
|
|
242
|
+
id: unref(labelId),
|
|
243
|
+
class: "astryx-tree-list__label"
|
|
244
|
+
}, toDisplayString(__props.item.label), 9, _hoisted_14), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
245
|
+
key: 0,
|
|
246
|
+
id: unref(descriptionId),
|
|
247
|
+
class: "astryx-tree-list__description"
|
|
248
|
+
}, toDisplayString(__props.item.description), 9, _hoisted_15)) : createCommentVNode("v-if", true)])),
|
|
249
|
+
__props.item.badge || __props.item.endIcon ? (openBlock(), createElementBlock("span", _hoisted_16, [__props.item.badge ? (openBlock(), createBlock(_sfc_main$3, { key: 0 }, {
|
|
208
250
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.item.badge), 1)]),
|
|
209
251
|
_: 1
|
|
210
|
-
})) : __props.item.endIcon && unref(isIconGlyph)(__props.item.endIcon) ? (openBlock(), createBlock(_sfc_main$
|
|
252
|
+
})) : __props.item.endIcon && unref(isIconGlyph)(__props.item.endIcon) ? (openBlock(), createBlock(_sfc_main$2, {
|
|
211
253
|
key: 1,
|
|
212
254
|
icon: __props.item.endIcon,
|
|
213
255
|
size: "sm"
|
|
@@ -215,7 +257,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
215
257
|
class: normalizeClass(__props.item.endIcon),
|
|
216
258
|
"aria-hidden": "true"
|
|
217
259
|
}, null, 2)])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
218
|
-
],
|
|
260
|
+
], 16, _hoisted_4)]),
|
|
219
261
|
hasChildren.value && isExpanded.value ? (openBlock(), createElementBlock("ul", _hoisted_18, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (child, index) => {
|
|
220
262
|
return openBlock(), createBlock(_component_TreeListItem, {
|
|
221
263
|
key: child.id,
|
|
@@ -245,7 +287,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
245
287
|
"set-size"
|
|
246
288
|
]);
|
|
247
289
|
}), 128))])) : createCommentVNode("v-if", true)
|
|
248
|
-
],
|
|
290
|
+
], 14, _hoisted_1$1);
|
|
249
291
|
};
|
|
250
292
|
}
|
|
251
293
|
});
|
|
@@ -291,6 +333,17 @@ function useTreeFocus(options) {
|
|
|
291
333
|
if (options.getLevel != null) return options.getLevel(item);
|
|
292
334
|
return Number(item.getAttribute("aria-level") ?? "1");
|
|
293
335
|
}
|
|
336
|
+
/** typeahead 用的名字。指明时只读标签,否则用整行文字。 */
|
|
337
|
+
function matchText(item) {
|
|
338
|
+
if (options.matchLabelledBy === true) {
|
|
339
|
+
const ids = item.getAttribute("aria-labelledby")?.split(/\s+/).filter(Boolean) ?? [];
|
|
340
|
+
if (ids.length > 0) {
|
|
341
|
+
const doc = item.ownerDocument;
|
|
342
|
+
return ids.map((id) => doc.getElementById(id)?.textContent ?? "").join(" ").trim().toLowerCase();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return (item.textContent ?? "").trim().toLowerCase();
|
|
346
|
+
}
|
|
294
347
|
/** 树节点的 id:优先 `data-tree-id`,退回元素自己的 `id`。 */
|
|
295
348
|
function idOf(item) {
|
|
296
349
|
const id = item.dataset.treeId ?? item.id;
|
|
@@ -334,7 +387,7 @@ function useTreeFocus(options) {
|
|
|
334
387
|
typeahead.buffer = "";
|
|
335
388
|
}, TYPEAHEAD_RESET_MS);
|
|
336
389
|
const query = typeahead.buffer;
|
|
337
|
-
const match = [...list.slice(currentIndex + 1), ...list.slice(0, currentIndex + 1)].find((item) => !disabled(item) && (item
|
|
390
|
+
const match = [...list.slice(currentIndex + 1), ...list.slice(0, currentIndex + 1)].find((item) => !disabled(item) && matchText(item).startsWith(query));
|
|
338
391
|
if (match != null) {
|
|
339
392
|
event.preventDefault();
|
|
340
393
|
focusItem(match);
|
|
@@ -440,7 +493,30 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
440
493
|
},
|
|
441
494
|
setup(__props) {
|
|
442
495
|
const props = __props;
|
|
496
|
+
const attrs = useAttrs();
|
|
497
|
+
const slots = useSlots();
|
|
443
498
|
const headerId = `astryx-tree-list-${useId()}`;
|
|
499
|
+
const hasHeader = computed(() => props.header != null || slots.header != null);
|
|
500
|
+
const rootAttrs = computed(() => {
|
|
501
|
+
const rest = {};
|
|
502
|
+
for (const [key, value] of Object.entries(attrs)) {
|
|
503
|
+
if (key === "class" || key === "style" || key === "onKeydown" || key === "onKeyDown") continue;
|
|
504
|
+
if (key === "aria-label" || key === "aria-labelledby") continue;
|
|
505
|
+
rest[key] = value;
|
|
506
|
+
}
|
|
507
|
+
return rest;
|
|
508
|
+
});
|
|
509
|
+
const treeLabel = computed(() => {
|
|
510
|
+
if (hasHeader.value) return void 0;
|
|
511
|
+
const fromAttr = attrs["aria-label"];
|
|
512
|
+
if (typeof fromAttr === "string") return fromAttr;
|
|
513
|
+
return props.label;
|
|
514
|
+
});
|
|
515
|
+
const treeLabelledBy = computed(() => {
|
|
516
|
+
if (hasHeader.value) return headerId;
|
|
517
|
+
const fromAttr = attrs["aria-labelledby"];
|
|
518
|
+
return typeof fromAttr === "string" ? fromAttr : void 0;
|
|
519
|
+
});
|
|
444
520
|
const expanded = reactive({});
|
|
445
521
|
function walk(items, visit) {
|
|
446
522
|
for (const item of items) {
|
|
@@ -490,6 +566,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
490
566
|
const tabbableId = computed(() => initialTabbable(props.items));
|
|
491
567
|
const { treeRef, handleKeyDown, handleFocus } = useTreeFocus({
|
|
492
568
|
hasRovingTabIndex: true,
|
|
569
|
+
matchLabelledBy: true,
|
|
493
570
|
onToggleExpand: toggle,
|
|
494
571
|
onActivate: (current) => {
|
|
495
572
|
const candidates = current.querySelectorAll("a[href], button:not([data-tree-toggle])");
|
|
@@ -500,17 +577,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
500
577
|
return false;
|
|
501
578
|
}
|
|
502
579
|
});
|
|
580
|
+
function callKeydown(listener, event) {
|
|
581
|
+
if (typeof listener === "function") listener(event);
|
|
582
|
+
else if (Array.isArray(listener)) listener.forEach((entry) => callKeydown(entry, event));
|
|
583
|
+
}
|
|
503
584
|
function onKeyDown(event) {
|
|
585
|
+
callKeydown(attrs.onKeydown ?? attrs.onKeyDown, event);
|
|
586
|
+
if (event.defaultPrevented) return;
|
|
504
587
|
if (treeRef.value != null && event.target instanceof Node && treeRef.value.contains(event.target)) handleKeyDown(event);
|
|
505
588
|
}
|
|
506
589
|
return (_ctx, _cache) => {
|
|
507
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 方向键从内部 role=\"tree\" 冒泡上来,这一层只负责转发给树的键盘逻辑。 "), createElementVNode("div", {
|
|
508
|
-
class:
|
|
509
|
-
style:
|
|
590
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 方向键从内部 role=\"tree\" 冒泡上来,这一层只负责转发给树的键盘逻辑。 "), createElementVNode("div", mergeProps(rootAttrs.value, {
|
|
591
|
+
class: ["astryx-tree-list", unref(attrs).class],
|
|
592
|
+
style: unref(attrs).style,
|
|
510
593
|
"data-density": __props.density,
|
|
511
594
|
"data-variant": __props.variant,
|
|
512
595
|
onKeydown: onKeyDown
|
|
513
|
-
}, [
|
|
596
|
+
}), [hasHeader.value ? (openBlock(), createElementBlock("div", {
|
|
514
597
|
key: 0,
|
|
515
598
|
id: headerId,
|
|
516
599
|
class: "astryx-tree-list__header"
|
|
@@ -519,8 +602,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
519
602
|
ref: treeRef,
|
|
520
603
|
class: "astryx-tree-list__list",
|
|
521
604
|
role: "tree",
|
|
522
|
-
"aria-label":
|
|
523
|
-
"aria-labelledby":
|
|
605
|
+
"aria-label": treeLabel.value,
|
|
606
|
+
"aria-labelledby": treeLabelledBy.value,
|
|
524
607
|
onFocus: _cache[0] || (_cache[0] = (...args) => unref(handleFocus) && unref(handleFocus)(...args))
|
|
525
608
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
526
609
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
@@ -548,7 +631,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
548
631
|
"pos-in-set",
|
|
549
632
|
"set-size"
|
|
550
633
|
]);
|
|
551
|
-
}), 128))], 40, _hoisted_2)],
|
|
634
|
+
}), 128))], 40, _hoisted_2)], 16, _hoisted_1)], 2112);
|
|
552
635
|
};
|
|
553
636
|
}
|
|
554
637
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-
|
|
1
|
+
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-BaxM-pFP.js";
|
|
2
2
|
export { _default as BaseTypeahead, type BaseTypeaheadProps, _default$1 as Typeahead, type TypeaheadEmits, _default$2 as TypeaheadItem, type TypeaheadItemProps, type TypeaheadProps, type TypeaheadSize, type TypeaheadSlots, type TypeaheadStatus };
|
package/dist/Typeahead/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as _sfc_main$2 } from "../TypeaheadMenu-
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-
|
|
1
|
+
import { n as _sfc_main$2 } from "../TypeaheadMenu-BY5__sPC.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-DRyf2HEh.js";
|
|
3
3
|
export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
|