@astryx-vue/core 0.2.2 → 0.2.4
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/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-D6G7f5WL.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DmTeM7PO.js +656 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-CIKrcA2r.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-BFox3u9D.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-BlPf7vPe.js} +78 -25
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-BG-vg9ia.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-yb_KOFtJ.js → Code-XnPuGxey.js} +3 -2
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-B2pnEOJY.js} +146 -16
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-Dv44FFhN.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-BeJO5HYx.js} +206 -423
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-D4XFAEMp.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-Cp6AZfew.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-B6MPPp76.js} +54 -15
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu--lnUeJEG.js} +309 -64
- package/dist/DropdownMenu-6E9jFdFe.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-CXEURBcq.d.ts +564 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-DuNwdbAo.js} +2 -2
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-Br3o0SyQ.js} +2 -2
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-BqKloI3w.js → Markdown-Bz0R3kNj.js} +280 -33
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B95nRSe8.js} +3 -3
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-DuF5TECE.js} +304 -122
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-C6sPZ89n.js} +5 -2
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-C6U8Sq1Y.js} +16 -16
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-5N-hq2nF.js +618 -0
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-CT9lfspi.js} +226 -230
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-CsdH8fCB.js} +7 -7
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -2
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-BnQwX1cQ.js} +3 -3
- package/dist/{TimeField-DpHFrNv0.js → TimeField-Biiuv0hB.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-D7bd_nF3.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-D2GsI_Ei.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-rwzamZg4.js} +4 -4
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-arWFLTBM.js} +113 -43
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-C9xvMpJZ.js} +2 -2
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -7
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-CiKncNSH.js → context-CPh7kE-a.js} +140 -18
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{index-CJlBAXwj.d.ts → index-12QYAbiz.d.ts} +41 -4
- package/dist/{index-Cs5pcwY3.d.ts → index-6yB8BtEu.d.ts} +3 -3
- package/dist/{index-C7mxUcDR.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-CRizexSC.d.ts → index-BH9PzQ1F.d.ts} +13 -73
- package/dist/index-BPwD6aBv.d.ts +83 -0
- package/dist/{index-DOUEn7V0.d.ts → index-BcZI402h.d.ts} +64 -5
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- package/dist/{index-DimuSES0.d.ts → index-BlOIC_AM.d.ts} +3 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-kVhSuA9t.d.ts → index-BxhJqiZ7.d.ts} +6 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-qiZtHnGK.d.ts → index-C3GaPqvJ.d.ts} +123 -8
- package/dist/{index-D4I_obqR.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-CI9kyg74.d.ts} +11 -1
- package/dist/{index-D-ZuubCK.d.ts → index-CUCcYKxl.d.ts} +1 -1
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-DGXviOlp.d.ts → index-D-ezcKaY.d.ts} +30 -4
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-DNRBbwp_.d.ts → index-EtZgovdH.d.ts} +842 -107
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/index-XuAAcYiP.d.ts +77 -0
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-cL3q7O4R.d.ts} +31 -2
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DsyKhauk.d.ts → index-hCpxKePE.d.ts} +48 -2
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-B1TG2GPS.d.ts → index-vizlhXVs.d.ts} +246 -45
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +82 -80
- package/dist/index.js +127 -116
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/searchResultMessage-CCnq-_ce.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-BgjJcY3K.js +520 -0
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/{composables-CVfjp9h4.js → useResizable-B3ahKLoZ.js} +74 -152
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +7 -1
- package/styles/bottom-sheet.css +27 -0
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/heading.css +47 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/multi-selector.css +26 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +4 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-BuUiiJNr.js +0 -429
- package/dist/Typeahead-P7cCqtaQ.js +0 -375
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/index-jdjcb3Js.d.ts +0 -80
- package/dist/locale-Cpk_nrLA.js +0 -18
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BUXNRekN.d.ts → index-IdK2g5B4.d.ts} +2 -2
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { t as _sfc_main$5 } from "./Button-DrqeomlE.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
|
-
import { t as useDismiss } from "./useDismiss-
|
|
3
|
+
import { t as useDismiss } from "./useDismiss-Cj8x_51F.js";
|
|
4
|
+
import { n as getFocusables } from "./focus-CpficIgf.js";
|
|
4
5
|
import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
|
|
5
6
|
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
6
|
-
import { t as _sfc_main$6 } from "./BottomSheet-
|
|
7
|
-
import { t as _sfc_main$7 } from "./Icon-
|
|
8
|
-
import { t as _sfc_main$8 } from "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { t as _sfc_main$6 } from "./BottomSheet-BV6vfgGu.js";
|
|
8
|
+
import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
|
|
9
|
+
import { t as _sfc_main$8 } from "./Item-DrYJL1TG.js";
|
|
10
|
+
import { a as dropdownMenuContextKey, i as _sfc_main$10, n as _sfc_main$9, o as useDropdownMenuContext, r as _sfc_main$11, t as useMenuDrillIn } from "./useMenuDrillIn-BgjJcY3K.js";
|
|
11
|
+
import { t as _sfc_main$12 } from "./Divider-BtwnL18I.js";
|
|
12
|
+
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeModels, mergeProps, nextTick, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
|
|
11
13
|
import "../styles/dropdown-menu.css";
|
|
12
|
-
//#region src/DropdownMenu/context.ts
|
|
13
|
-
const dropdownMenuContextKey = Symbol("astryx-dropdown-menu-context");
|
|
14
|
-
/** The surrounding menu, or `undefined` when a row stands alone. */
|
|
15
|
-
function useDropdownMenuContext() {
|
|
16
|
-
return inject(dropdownMenuContextKey, void 0);
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
14
|
//#region src/DropdownMenu/menuItemRoles.ts
|
|
20
15
|
/**
|
|
21
16
|
* Rows a menu's roving focus, typeahead, and keyboard activation all agree on.
|
|
@@ -59,7 +54,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
59
54
|
__name: "DropdownMenuDivider",
|
|
60
55
|
setup(__props) {
|
|
61
56
|
return (_ctx, _cache) => {
|
|
62
|
-
return openBlock(), createBlock(_sfc_main$
|
|
57
|
+
return openBlock(), createBlock(_sfc_main$12, { class: "astryx-dropdown-menu-divider" });
|
|
63
58
|
};
|
|
64
59
|
}
|
|
65
60
|
});
|
|
@@ -119,15 +114,15 @@ const _hoisted_2$1 = {
|
|
|
119
114
|
class: "astryx-item__start"
|
|
120
115
|
};
|
|
121
116
|
const _hoisted_3$1 = { class: "astryx-item__content" };
|
|
122
|
-
const _hoisted_4 = {
|
|
117
|
+
const _hoisted_4$1 = {
|
|
123
118
|
key: 0,
|
|
124
119
|
class: "astryx-item__label"
|
|
125
120
|
};
|
|
126
|
-
const _hoisted_5 = {
|
|
121
|
+
const _hoisted_5$1 = {
|
|
127
122
|
key: 1,
|
|
128
123
|
class: "astryx-item__description"
|
|
129
124
|
};
|
|
130
|
-
const _hoisted_6 = {
|
|
125
|
+
const _hoisted_6$1 = {
|
|
131
126
|
key: 1,
|
|
132
127
|
class: "astryx-item__end"
|
|
133
128
|
};
|
|
@@ -227,9 +222,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
227
222
|
icon: __props.icon,
|
|
228
223
|
size: "sm"
|
|
229
224
|
}, null, 8, ["color", "icon"])])])) : createCommentVNode("v-if", true),
|
|
230
|
-
createElementVNode("span", _hoisted_3$1, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
231
|
-
hasEnd.value ? (openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
232
|
-
], 16, _hoisted_1$1)) : (openBlock(), createBlock(_sfc_main$
|
|
225
|
+
createElementVNode("span", _hoisted_3$1, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5$1, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
226
|
+
hasEnd.value ? (openBlock(), createElementBlock("span", _hoisted_6$1, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
227
|
+
], 16, _hoisted_1$1)) : (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 1 }, unref(attrs), {
|
|
233
228
|
class: "astryx-dropdown-menu-item",
|
|
234
229
|
role: "menuitem",
|
|
235
230
|
"data-menu-size": menuSize.value,
|
|
@@ -281,26 +276,61 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
281
276
|
});
|
|
282
277
|
//#endregion
|
|
283
278
|
//#region src/DropdownMenu/renderItems.ts
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
return
|
|
279
|
+
function endSlot(endContent) {
|
|
280
|
+
return endContent == null ? void 0 : { endContent: () => endContent };
|
|
281
|
+
}
|
|
282
|
+
function renderRadioOption(option, index) {
|
|
283
|
+
const { endContent, id, ...itemProps } = option;
|
|
284
|
+
return h(_sfc_main$9, {
|
|
285
|
+
key: id ?? `radio-${index}`,
|
|
286
|
+
...itemProps
|
|
287
|
+
}, endSlot(endContent));
|
|
288
|
+
}
|
|
289
|
+
function renderCheckbox(item, index) {
|
|
290
|
+
const { checked, endContent, id, onChange, ...itemProps } = item;
|
|
291
|
+
return h(_sfc_main$10, {
|
|
292
|
+
"key": id ?? `checkbox-${index}`,
|
|
293
|
+
...itemProps,
|
|
294
|
+
"modelValue": checked,
|
|
295
|
+
"onUpdate:modelValue": (value) => onChange?.(value)
|
|
296
|
+
}, endSlot(endContent));
|
|
297
|
+
}
|
|
298
|
+
function renderRadio(item, index) {
|
|
299
|
+
return h(_sfc_main$11, {
|
|
300
|
+
"key": item.id ?? `radio-group-${index}`,
|
|
301
|
+
"label": item.label,
|
|
302
|
+
"modelValue": item.value,
|
|
303
|
+
"onUpdate:modelValue": (value) => {
|
|
304
|
+
if (value != null) item.onChange?.(value);
|
|
305
|
+
},
|
|
306
|
+
...item.hasCloseOnSelect == null ? {} : { hasCloseOnSelect: item.hasCloseOnSelect }
|
|
307
|
+
}, { default: () => item.items.map((option, optionIndex) => renderRadioOption(option, optionIndex)) });
|
|
297
308
|
}
|
|
298
309
|
function renderItem(item, index) {
|
|
299
310
|
const { endContent, id, ...itemProps } = item;
|
|
300
311
|
return h(_sfc_main$1, {
|
|
301
312
|
key: id ?? `item-${index}`,
|
|
302
313
|
...itemProps
|
|
303
|
-
},
|
|
314
|
+
}, endSlot(endContent));
|
|
315
|
+
}
|
|
316
|
+
function renderEntry(entry, index) {
|
|
317
|
+
if ("type" in entry && entry.type === "checkbox") return renderCheckbox(entry, index);
|
|
318
|
+
if ("type" in entry && entry.type === "radio") return renderRadio(entry, index);
|
|
319
|
+
return renderItem(entry, index);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Renders one data-mode entry. A section renders through `DropdownMenuGroup`,
|
|
323
|
+
* so both modes produce one `role="group"` named by its visible heading.
|
|
324
|
+
*/
|
|
325
|
+
function renderOption(option, index) {
|
|
326
|
+
if ("type" in option && option.type === "divider") return h(_sfc_main$4, { key: `divider-${index}` });
|
|
327
|
+
if ("type" in option && option.type === "section") return h(_sfc_main$2, {
|
|
328
|
+
key: option.id ?? `section-${index}`,
|
|
329
|
+
title: option.title
|
|
330
|
+
}, { default: () => option.items.map((item, itemIndex) => renderEntry(item, itemIndex)) });
|
|
331
|
+
if ("type" in option && option.type === "checkbox") return renderCheckbox(option, index);
|
|
332
|
+
if ("type" in option && option.type === "radio") return renderRadio(option, index);
|
|
333
|
+
return renderItem(option, index);
|
|
304
334
|
}
|
|
305
335
|
/** Data-mode content of a `DropdownMenu`, as a component so the template stays flat. */
|
|
306
336
|
const DropdownMenuItems = defineComponent({
|
|
@@ -319,6 +349,15 @@ const DropdownMenuItems = defineComponent({
|
|
|
319
349
|
function isDisabled(el) {
|
|
320
350
|
return el.getAttribute("aria-disabled") === "true" || el.hasAttribute("disabled");
|
|
321
351
|
}
|
|
352
|
+
/** A row inside a drilled-away view stays mounted and must not take focus. */
|
|
353
|
+
function isHiddenRow(el, listEl) {
|
|
354
|
+
let current = el;
|
|
355
|
+
while (current != null && current !== listEl) {
|
|
356
|
+
if (current.hidden || current.getAttribute("aria-hidden") === "true") return true;
|
|
357
|
+
current = current.parentElement;
|
|
358
|
+
}
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
322
361
|
/**
|
|
323
362
|
* Roving focus over a menu's rows.
|
|
324
363
|
*
|
|
@@ -334,7 +373,7 @@ function useMenuFocus(options) {
|
|
|
334
373
|
function getItems() {
|
|
335
374
|
const listEl = list.value;
|
|
336
375
|
if (listEl == null) return [];
|
|
337
|
-
return Array.from(listEl.querySelectorAll(MENU_ITEM_SELECTOR)).filter((el) => belongsHere(el, listEl) && !isDisabled(el));
|
|
376
|
+
return Array.from(listEl.querySelectorAll(MENU_ITEM_SELECTOR)).filter((el) => belongsHere(el, listEl) && !isDisabled(el) && !isHiddenRow(el, listEl));
|
|
338
377
|
}
|
|
339
378
|
function getCurrentIndex() {
|
|
340
379
|
const active = document.activeElement;
|
|
@@ -446,7 +485,77 @@ function useMenuFocus(options) {
|
|
|
446
485
|
focusItem,
|
|
447
486
|
focusLast,
|
|
448
487
|
getItems,
|
|
449
|
-
handleKeyDown
|
|
488
|
+
handleKeyDown,
|
|
489
|
+
ownsEvent
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region src/DropdownMenu/useMenuRegions.ts
|
|
494
|
+
/**
|
|
495
|
+
* Controls Tab can land on inside a header or footer, in DOM order.
|
|
496
|
+
*
|
|
497
|
+
* Hidden, `display: none`, and `aria-hidden` controls are skipped, so a field
|
|
498
|
+
* that the layout has put away is not a stop.
|
|
499
|
+
*/
|
|
500
|
+
function tabbablesIn(region) {
|
|
501
|
+
if (region == null) return [];
|
|
502
|
+
return getFocusables(region).filter((element) => {
|
|
503
|
+
if (element.tabIndex < 0) return false;
|
|
504
|
+
let node = element;
|
|
505
|
+
while (node != null && node !== region.parentElement) {
|
|
506
|
+
if (node.hidden || node.getAttribute("aria-hidden") === "true") return false;
|
|
507
|
+
if (typeof window !== "undefined" && window.getComputedStyle(node).display === "none") return false;
|
|
508
|
+
node = node.parentElement;
|
|
509
|
+
}
|
|
510
|
+
return true;
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
function focusControl(element) {
|
|
514
|
+
if (element == null) return false;
|
|
515
|
+
element.focus();
|
|
516
|
+
return element.ownerDocument.activeElement === element;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Keyboard between a menu and the header and footer beside it.
|
|
520
|
+
*
|
|
521
|
+
* The menu is one Tab stop. Shift+Tab from a row skips that stop and lands on
|
|
522
|
+
* the header, because the menu element would otherwise catch the key first.
|
|
523
|
+
*/
|
|
524
|
+
function useMenuRegions(options) {
|
|
525
|
+
function focusRegion(direction) {
|
|
526
|
+
const tabbables = tabbablesIn(direction === "previous" ? options.header.value : options.footer.value);
|
|
527
|
+
if (!focusControl(direction === "previous" ? tabbables[tabbables.length - 1] : tabbables[0])) {
|
|
528
|
+
options.closeMenu();
|
|
529
|
+
return false;
|
|
530
|
+
}
|
|
531
|
+
return true;
|
|
532
|
+
}
|
|
533
|
+
function onMenuTab(event) {
|
|
534
|
+
if (event.key !== "Tab" || !options.hasRegions.value) return false;
|
|
535
|
+
const tabbables = tabbablesIn(event.shiftKey ? options.header.value : options.footer.value);
|
|
536
|
+
if (tabbables.length === 0) {
|
|
537
|
+
options.closeMenu();
|
|
538
|
+
return true;
|
|
539
|
+
}
|
|
540
|
+
if (event.shiftKey && event.target !== options.menu.value) {
|
|
541
|
+
event.preventDefault();
|
|
542
|
+
event.stopPropagation();
|
|
543
|
+
if (!focusControl(tabbables[tabbables.length - 1])) options.closeMenu();
|
|
544
|
+
}
|
|
545
|
+
return true;
|
|
546
|
+
}
|
|
547
|
+
function onRegionKeydown(event) {
|
|
548
|
+
if (event.key !== "Tab") return;
|
|
549
|
+
const region = event.currentTarget;
|
|
550
|
+
if (!(region instanceof HTMLElement)) return;
|
|
551
|
+
const tabbables = tabbablesIn(region);
|
|
552
|
+
const exit = region === options.header.value ? event.shiftKey ? tabbables[0] : void 0 : event.shiftKey ? void 0 : tabbables[tabbables.length - 1];
|
|
553
|
+
if (exit != null && exit === region.ownerDocument.activeElement) options.closeMenu();
|
|
554
|
+
}
|
|
555
|
+
return {
|
|
556
|
+
focusRegion,
|
|
557
|
+
onMenuTab,
|
|
558
|
+
onRegionKeydown
|
|
450
559
|
};
|
|
451
560
|
}
|
|
452
561
|
//#endregion
|
|
@@ -457,12 +566,22 @@ const _hoisted_2 = [
|
|
|
457
566
|
"aria-labelledby",
|
|
458
567
|
"aria-label"
|
|
459
568
|
];
|
|
460
|
-
const _hoisted_3 = [
|
|
569
|
+
const _hoisted_3 = ["hidden", "inert"];
|
|
570
|
+
const _hoisted_4 = ["data-placement"];
|
|
571
|
+
const _hoisted_5 = [
|
|
572
|
+
"id",
|
|
573
|
+
"aria-labelledby",
|
|
574
|
+
"aria-label",
|
|
575
|
+
"data-region-focus"
|
|
576
|
+
];
|
|
577
|
+
const _hoisted_6 = ["hidden", "inert"];
|
|
578
|
+
const _hoisted_7 = [
|
|
461
579
|
"id",
|
|
462
580
|
"aria-labelledby",
|
|
463
581
|
"aria-label",
|
|
464
582
|
"data-placement"
|
|
465
583
|
];
|
|
584
|
+
const _hoisted_8 = ["hidden", "inert"];
|
|
466
585
|
const GAP = 4;
|
|
467
586
|
const DEFAULT_MAX_WIDTH = 320;
|
|
468
587
|
const DEFAULT_MAX_HEIGHT = "300px";
|
|
@@ -510,12 +629,20 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
510
629
|
const triggerId = `astryx-dropdown-menu-trigger-${uid}`;
|
|
511
630
|
const anchorRef = ref(null);
|
|
512
631
|
const surfaceRef = ref(null);
|
|
632
|
+
const popoverRef = ref(null);
|
|
633
|
+
const headerRef = ref(null);
|
|
634
|
+
const footerRef = ref(null);
|
|
513
635
|
const anchorWidth = ref(0);
|
|
636
|
+
const regionFocus = ref(false);
|
|
637
|
+
let suppressRegionRing = false;
|
|
514
638
|
const shouldFocusOnOpen = shallowRef(false);
|
|
515
639
|
const focusLastOnOpen = shallowRef(false);
|
|
516
640
|
let openModality = "keyboard";
|
|
517
641
|
let armedTriggerClickGuard = false;
|
|
518
642
|
const isCompactTouch = useMediaQuery(COMPACT_TOUCH_QUERY);
|
|
643
|
+
const hasRegions = computed(() => slots.header != null || slots.footer != null);
|
|
644
|
+
const { drillIn, host, isDrilled } = useMenuDrillIn(isOpen, COMPACT_TOUCH_QUERY);
|
|
645
|
+
const positionedEl = computed(() => hasRegions.value ? popoverRef.value : surfaceRef.value);
|
|
519
646
|
const isSheet = computed(() => props.presentation === "bottom-sheet" || props.presentation === "adaptive" && isCompactTouch.value);
|
|
520
647
|
const sheetOpen = computed({
|
|
521
648
|
get: () => isSheet.value && isOpen.value,
|
|
@@ -532,6 +659,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
532
659
|
const provided = attrs.id;
|
|
533
660
|
return typeof provided === "string" && provided.length > 0 ? provided : menuId;
|
|
534
661
|
});
|
|
662
|
+
const menuLabel = computed(() => {
|
|
663
|
+
const explicit = attrs["aria-label"];
|
|
664
|
+
if (typeof explicit === "string" && explicit.length > 0) return explicit;
|
|
665
|
+
return typeof buttonProps.value.label === "string" ? buttonProps.value.label : void 0;
|
|
666
|
+
});
|
|
535
667
|
const menuAriaLabel = computed(() => {
|
|
536
668
|
const explicit = attrs["aria-label"];
|
|
537
669
|
if (typeof explicit === "string") return explicit;
|
|
@@ -559,7 +691,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
559
691
|
const layerIsOpen = ref(false);
|
|
560
692
|
const { position, detach: detachPosition } = usePositionedLayer({
|
|
561
693
|
anchor: anchorRef,
|
|
562
|
-
layer:
|
|
694
|
+
layer: positionedEl,
|
|
563
695
|
isOpen: layerIsOpen,
|
|
564
696
|
placement: computed(() => props.placement),
|
|
565
697
|
alignment: computed(() => props.alignment),
|
|
@@ -597,10 +729,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
597
729
|
onMatch: (index) => focusNav.focusItem(index)
|
|
598
730
|
});
|
|
599
731
|
useDismiss({
|
|
600
|
-
container:
|
|
732
|
+
container: positionedEl,
|
|
601
733
|
trigger: anchorRef,
|
|
602
734
|
isEnabled: computed(() => isOpen.value && !isSheet.value),
|
|
603
|
-
onDismiss: closeMenu
|
|
735
|
+
onDismiss: closeMenu,
|
|
736
|
+
onEscape: () => {
|
|
737
|
+
if (drillIn.value.viewStack.length > 0) {
|
|
738
|
+
drillIn.value.pop();
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
closeMenu();
|
|
742
|
+
}
|
|
604
743
|
});
|
|
605
744
|
function emitOpenChange(next) {
|
|
606
745
|
localIsOpen.value = next;
|
|
@@ -608,7 +747,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
608
747
|
emit("openChange", next);
|
|
609
748
|
}
|
|
610
749
|
function focusSurface() {
|
|
750
|
+
suppressRegionRing = openModality === "pointer";
|
|
611
751
|
surfaceRef.value?.focus({ preventScroll: true });
|
|
752
|
+
suppressRegionRing = false;
|
|
753
|
+
}
|
|
754
|
+
function onSurfaceFocus(event) {
|
|
755
|
+
if (event.target !== surfaceRef.value) {
|
|
756
|
+
regionFocus.value = false;
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
regionFocus.value = hasRegions.value && !suppressRegionRing;
|
|
760
|
+
}
|
|
761
|
+
function assignHost(element) {
|
|
762
|
+
host.value = element instanceof HTMLElement ? element : null;
|
|
612
763
|
}
|
|
613
764
|
function openMenu(modality) {
|
|
614
765
|
if (isOpen.value) return;
|
|
@@ -644,7 +795,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
644
795
|
const surface = surfaceRef.value;
|
|
645
796
|
if (active == null || active === (typeof document !== "undefined" ? document.body : null) || surface != null && surface.contains(active)) getTriggerControl()?.focus({ preventScroll: true });
|
|
646
797
|
});
|
|
798
|
+
const regions = useMenuRegions({
|
|
799
|
+
closeMenu,
|
|
800
|
+
footer: footerRef,
|
|
801
|
+
hasRegions,
|
|
802
|
+
header: headerRef,
|
|
803
|
+
menu: surfaceRef
|
|
804
|
+
});
|
|
647
805
|
function onSurfaceKeydown(event) {
|
|
806
|
+
if (!focusNav.ownsEvent(event)) {
|
|
807
|
+
if (event.key === "Tab" && hasRegions.value) {
|
|
808
|
+
event.preventDefault();
|
|
809
|
+
regions.focusRegion(event.shiftKey ? "previous" : "next");
|
|
810
|
+
}
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
648
813
|
if (event.key === "Enter" || event.key === " ") {
|
|
649
814
|
event.preventDefault();
|
|
650
815
|
if (event.repeat) return;
|
|
@@ -652,6 +817,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
652
817
|
if (focused instanceof HTMLElement && MENU_ITEM_ROLES.has(focused.getAttribute("role") ?? "")) activateMenuItem(focused, event);
|
|
653
818
|
return;
|
|
654
819
|
}
|
|
820
|
+
if (regions.onMenuTab(event)) return;
|
|
655
821
|
if (event.key === "Tab") {
|
|
656
822
|
closeMenu();
|
|
657
823
|
return;
|
|
@@ -705,7 +871,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
705
871
|
}));
|
|
706
872
|
provide(dropdownMenuContextKey, {
|
|
707
873
|
closeMenu,
|
|
874
|
+
drillIn,
|
|
875
|
+
focusRegion: regions.focusRegion,
|
|
876
|
+
hasRegions,
|
|
708
877
|
isOpen,
|
|
878
|
+
menuLabel,
|
|
709
879
|
menuSize
|
|
710
880
|
});
|
|
711
881
|
onMounted(() => {
|
|
@@ -745,35 +915,102 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
745
915
|
]))], 8, _hoisted_1), isSheet.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
746
916
|
key: 0,
|
|
747
917
|
"is-open": sheetOpen.value,
|
|
748
|
-
"onUpdate:isOpen": _cache[
|
|
918
|
+
"onUpdate:isOpen": _cache[2] || (_cache[2] = ($event) => sheetOpen.value = $event),
|
|
749
919
|
height: "hug",
|
|
750
920
|
label: sheetLabel.value,
|
|
751
921
|
padding: 2
|
|
752
922
|
}, {
|
|
753
|
-
default: withCtx(() => [
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
923
|
+
default: withCtx(() => [
|
|
924
|
+
unref(slots).header ? (openBlock(), createElementBlock("div", {
|
|
925
|
+
key: 0,
|
|
926
|
+
ref_key: "headerRef",
|
|
927
|
+
ref: headerRef,
|
|
928
|
+
class: "astryx-dropdown-menu-region",
|
|
929
|
+
onKeydown: _cache[0] || (_cache[0] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
930
|
+
}, [renderSlot(_ctx.$slots, "header")], 544)) : createCommentVNode("v-if", true),
|
|
931
|
+
createElementVNode("div", mergeProps({
|
|
932
|
+
id: surfaceId.value,
|
|
933
|
+
ref_key: "surfaceRef",
|
|
934
|
+
ref: surfaceRef
|
|
935
|
+
}, forwardedAttrs.value, {
|
|
936
|
+
"aria-labelledby": menuAriaLabelledBy.value,
|
|
937
|
+
"aria-label": menuAriaLabel.value,
|
|
938
|
+
class: ["astryx-dropdown-menu is-sheet", unref(attrs).class],
|
|
939
|
+
role: "menu",
|
|
940
|
+
tabindex: "-1",
|
|
941
|
+
onKeydown: onSurfaceKeydown
|
|
942
|
+
}), [createElementVNode("div", {
|
|
943
|
+
class: "astryx-dropdown-menu-tree",
|
|
944
|
+
hidden: unref(isDrilled) || void 0,
|
|
945
|
+
inert: unref(isDrilled) || void 0
|
|
946
|
+
}, [__props.items != null ? (openBlock(), createBlock(unref(DropdownMenuItems), {
|
|
947
|
+
key: 0,
|
|
948
|
+
items: __props.items
|
|
949
|
+
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 8, _hoisted_3), createElementVNode("div", {
|
|
950
|
+
ref: assignHost,
|
|
951
|
+
class: "astryx-dropdown-menu-tree"
|
|
952
|
+
}, null, 512)], 16, _hoisted_2),
|
|
953
|
+
unref(slots).footer ? (openBlock(), createElementBlock("div", {
|
|
954
|
+
key: 1,
|
|
955
|
+
ref_key: "footerRef",
|
|
956
|
+
ref: footerRef,
|
|
957
|
+
class: "astryx-dropdown-menu-region",
|
|
958
|
+
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
959
|
+
}, [renderSlot(_ctx.$slots, "footer")], 544)) : createCommentVNode("v-if", true)
|
|
960
|
+
]),
|
|
768
961
|
_: 3
|
|
769
962
|
}, 8, ["is-open", "label"])) : (openBlock(), createBlock(Teleport, {
|
|
770
963
|
key: 1,
|
|
771
964
|
to: "body"
|
|
772
|
-
}, [createVNode(Transition, {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
965
|
+
}, [createVNode(Transition, { name: "astryx-dropdown-menu" }, {
|
|
966
|
+
default: withCtx(() => [hasRegions.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
967
|
+
key: 0,
|
|
968
|
+
ref_key: "popoverRef",
|
|
969
|
+
ref: popoverRef,
|
|
970
|
+
class: "astryx-dropdown-menu-popover",
|
|
971
|
+
"data-placement": unref(position).placement,
|
|
972
|
+
style: normalizeStyle([surfaceStyle.value, unref(attrs).style])
|
|
973
|
+
}, [
|
|
974
|
+
unref(slots).header ? (openBlock(), createElementBlock("div", {
|
|
975
|
+
key: 0,
|
|
976
|
+
ref_key: "headerRef",
|
|
977
|
+
ref: headerRef,
|
|
978
|
+
class: "astryx-dropdown-menu-region",
|
|
979
|
+
onKeydown: _cache[3] || (_cache[3] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
980
|
+
}, [renderSlot(_ctx.$slots, "header")], 544)) : createCommentVNode("v-if", true),
|
|
981
|
+
createElementVNode("div", mergeProps({
|
|
982
|
+
id: surfaceId.value,
|
|
983
|
+
ref_key: "surfaceRef",
|
|
984
|
+
ref: surfaceRef
|
|
985
|
+
}, forwardedAttrs.value, {
|
|
986
|
+
"aria-labelledby": menuAriaLabelledBy.value,
|
|
987
|
+
"aria-label": menuAriaLabel.value,
|
|
988
|
+
class: ["astryx-dropdown-menu is-in-frame", unref(attrs).class],
|
|
989
|
+
"data-region-focus": regionFocus.value || void 0,
|
|
990
|
+
role: "menu",
|
|
991
|
+
tabindex: "0",
|
|
992
|
+
onFocus: onSurfaceFocus,
|
|
993
|
+
onKeydown: onSurfaceKeydown
|
|
994
|
+
}), [createElementVNode("div", {
|
|
995
|
+
class: "astryx-dropdown-menu-tree",
|
|
996
|
+
hidden: unref(isDrilled) || void 0,
|
|
997
|
+
inert: unref(isDrilled) || void 0
|
|
998
|
+
}, [__props.items != null ? (openBlock(), createBlock(unref(DropdownMenuItems), {
|
|
999
|
+
key: 0,
|
|
1000
|
+
items: __props.items
|
|
1001
|
+
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 8, _hoisted_6), createElementVNode("div", {
|
|
1002
|
+
ref: assignHost,
|
|
1003
|
+
class: "astryx-dropdown-menu-tree"
|
|
1004
|
+
}, null, 512)], 16, _hoisted_5),
|
|
1005
|
+
unref(slots).footer ? (openBlock(), createElementBlock("div", {
|
|
1006
|
+
key: 1,
|
|
1007
|
+
ref_key: "footerRef",
|
|
1008
|
+
ref: footerRef,
|
|
1009
|
+
class: "astryx-dropdown-menu-region",
|
|
1010
|
+
onKeydown: _cache[4] || (_cache[4] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
1011
|
+
}, [renderSlot(_ctx.$slots, "footer")], 544)) : createCommentVNode("v-if", true)
|
|
1012
|
+
], 12, _hoisted_4)), [[vShow, isOpen.value]]) : withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
1013
|
+
key: 1,
|
|
777
1014
|
id: surfaceId.value,
|
|
778
1015
|
ref_key: "surfaceRef",
|
|
779
1016
|
ref: surfaceRef
|
|
@@ -785,15 +1022,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
785
1022
|
role: "menu",
|
|
786
1023
|
style: [surfaceStyle.value, unref(attrs).style],
|
|
787
1024
|
tabindex: "-1",
|
|
1025
|
+
onFocus: onSurfaceFocus,
|
|
788
1026
|
onKeydown: onSurfaceKeydown
|
|
789
|
-
}), [
|
|
1027
|
+
}), [createElementVNode("div", {
|
|
1028
|
+
class: "astryx-dropdown-menu-tree",
|
|
1029
|
+
hidden: unref(isDrilled) || void 0,
|
|
1030
|
+
inert: unref(isDrilled) || void 0
|
|
1031
|
+
}, [__props.items != null ? (openBlock(), createBlock(unref(DropdownMenuItems), {
|
|
790
1032
|
key: 0,
|
|
791
1033
|
items: __props.items
|
|
792
|
-
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)],
|
|
1034
|
+
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 8, _hoisted_8), createElementVNode("div", {
|
|
1035
|
+
ref: assignHost,
|
|
1036
|
+
class: "astryx-dropdown-menu-tree"
|
|
1037
|
+
}, null, 512)], 16, _hoisted_7)), [[vShow, isOpen.value]])]),
|
|
793
1038
|
_: 3
|
|
794
1039
|
})]))], 64);
|
|
795
1040
|
};
|
|
796
1041
|
}
|
|
797
1042
|
});
|
|
798
1043
|
//#endregion
|
|
799
|
-
export { _sfc_main$4 as a,
|
|
1044
|
+
export { _sfc_main$4 as a, _sfc_main$2 as i, useMenuFocus as n, MENU_ITEM_ROLES as o, _sfc_main$1 as r, activateMenuItem as s, _sfc_main as t };
|