@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,10 +1,12 @@
|
|
|
1
|
-
import { t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { t as useDismiss } from "./useDismiss-Cj8x_51F.js";
|
|
2
2
|
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
3
3
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, unref, useId, useModel, watch } from "vue";
|
|
4
4
|
import "../styles/nav-menu.css";
|
|
5
5
|
//#region src/NavMenu/context.ts
|
|
6
6
|
const navMenuKey = Symbol("astryx-nav-menu");
|
|
7
7
|
const navMenuCloseKey = Symbol("astryx-nav-menu-close");
|
|
8
|
+
/** 弹出层要求菜单把焦点放在哪一项。菜单可以自己收,调用方也可以用插槽参数盖过它。 */
|
|
9
|
+
const navMenuFocusKey = Symbol("astryx-nav-menu-focus");
|
|
8
10
|
//#endregion
|
|
9
11
|
//#region src/NavMenu/NavDisclosure.vue
|
|
10
12
|
const _hoisted_1 = ["data-placement"];
|
|
@@ -125,6 +127,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
125
127
|
trigger: anchorRef
|
|
126
128
|
});
|
|
127
129
|
provide(navMenuCloseKey, () => close(true));
|
|
130
|
+
provide(navMenuFocusKey, focusRequest);
|
|
128
131
|
watch(isOpen, (open) => {
|
|
129
132
|
emit("openChange", open);
|
|
130
133
|
});
|
|
@@ -162,4 +165,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
162
165
|
}
|
|
163
166
|
});
|
|
164
167
|
//#endregion
|
|
165
|
-
export { navMenuCloseKey as n,
|
|
168
|
+
export { navMenuKey as i, navMenuCloseKey as n, navMenuFocusKey as r, _sfc_main as t };
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
3
|
+
import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./NavDisclosure-C6sPZ89n.js";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx, withModifiers } from "vue";
|
|
6
|
+
//#region src/NavMenu/navHeadingMode.ts
|
|
7
|
+
/** 标题的点击边界:整段链接、整段打开菜单,或链接和箭头各管各的。 */
|
|
8
|
+
function resolveNavHeadingMode(input) {
|
|
9
|
+
const hasAnyHref = Boolean(input.headingHref || input.superheadingHref || input.subheadingHref);
|
|
10
|
+
if (!input.hasHeading && !input.hasMenu) return "logo";
|
|
11
|
+
if (input.headingHref && !input.hasMenu && !input.superheadingHref && !input.subheadingHref) return "whole-link";
|
|
12
|
+
if (input.hasMenu && !hasAnyHref) return "trigger";
|
|
13
|
+
if (input.hasMenu && hasAnyHref) return "mixed";
|
|
14
|
+
if (hasAnyHref) return "links";
|
|
15
|
+
return "static";
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/NavMenu/NavHeadingText.vue
|
|
19
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
20
|
+
name: "AstryxNavHeadingText",
|
|
21
|
+
__name: "NavHeadingText",
|
|
22
|
+
props: {
|
|
23
|
+
block: {},
|
|
24
|
+
heading: {},
|
|
25
|
+
superheading: {},
|
|
26
|
+
subheading: {},
|
|
27
|
+
headingHref: {},
|
|
28
|
+
superheadingHref: {},
|
|
29
|
+
subheadingHref: {},
|
|
30
|
+
as: {},
|
|
31
|
+
independent: { type: Boolean }
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
function root(href) {
|
|
36
|
+
return props.independent && href ? resolveNavRoot(href, false, props.as) : "span";
|
|
37
|
+
}
|
|
38
|
+
function hrefOf(href) {
|
|
39
|
+
return props.independent ? href : void 0;
|
|
40
|
+
}
|
|
41
|
+
function toOf(href) {
|
|
42
|
+
return props.independent && props.as != null ? href : void 0;
|
|
43
|
+
}
|
|
44
|
+
function stopIfLink(event, href) {
|
|
45
|
+
if (props.independent && href) event.stopPropagation();
|
|
46
|
+
}
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(`${__props.block}__text`) }, [
|
|
49
|
+
__props.superheading ? (openBlock(), createBlock(resolveDynamicComponent(root(__props.superheadingHref)), {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: normalizeClass([`${__props.block}__super`, { [`${__props.block}__link`]: __props.independent && __props.superheadingHref }]),
|
|
52
|
+
href: hrefOf(__props.superheadingHref),
|
|
53
|
+
to: toOf(__props.superheadingHref),
|
|
54
|
+
onClick: _cache[0] || (_cache[0] = ($event) => stopIfLink($event, __props.superheadingHref))
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.superheading), 1)]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, [
|
|
59
|
+
"class",
|
|
60
|
+
"href",
|
|
61
|
+
"to"
|
|
62
|
+
])) : createCommentVNode("v-if", true),
|
|
63
|
+
createElementVNode("span", { class: normalizeClass(`${__props.block}__row`) }, [__props.heading ? (openBlock(), createBlock(resolveDynamicComponent(root(__props.headingHref)), {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: normalizeClass([`${__props.block}__title`, { [`${__props.block}__link`]: __props.independent && __props.headingHref }]),
|
|
66
|
+
href: hrefOf(__props.headingHref),
|
|
67
|
+
to: toOf(__props.headingHref),
|
|
68
|
+
onClick: _cache[1] || (_cache[1] = ($event) => stopIfLink($event, __props.headingHref))
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.heading), 1)]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, [
|
|
73
|
+
"class",
|
|
74
|
+
"href",
|
|
75
|
+
"to"
|
|
76
|
+
])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "chevron")], 2),
|
|
77
|
+
__props.subheading ? (openBlock(), createBlock(resolveDynamicComponent(root(__props.subheadingHref)), {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: normalizeClass([`${__props.block}__sub`, { [`${__props.block}__link`]: __props.independent && __props.subheadingHref }]),
|
|
80
|
+
href: hrefOf(__props.subheadingHref),
|
|
81
|
+
to: toOf(__props.subheadingHref),
|
|
82
|
+
onClick: _cache[2] || (_cache[2] = ($event) => stopIfLink($event, __props.subheadingHref))
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.subheading), 1)]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, [
|
|
87
|
+
"class",
|
|
88
|
+
"href",
|
|
89
|
+
"to"
|
|
90
|
+
])) : createCommentVNode("v-if", true)
|
|
91
|
+
], 2);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/NavMenu/NavHeadingSurface.vue
|
|
97
|
+
const _hoisted_1 = ["data-open"];
|
|
98
|
+
const _hoisted_2 = [
|
|
99
|
+
"aria-label",
|
|
100
|
+
"aria-expanded",
|
|
101
|
+
"aria-controls"
|
|
102
|
+
];
|
|
103
|
+
const _hoisted_3 = ["onClick"];
|
|
104
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
105
|
+
name: "AstryxNavHeadingSurface",
|
|
106
|
+
__name: "NavHeadingSurface",
|
|
107
|
+
props: {
|
|
108
|
+
kind: {},
|
|
109
|
+
heading: {},
|
|
110
|
+
headingHref: {},
|
|
111
|
+
superheading: {},
|
|
112
|
+
superheadingHref: {},
|
|
113
|
+
subheading: {},
|
|
114
|
+
subheadingHref: {},
|
|
115
|
+
as: {},
|
|
116
|
+
logoLabel: {}
|
|
117
|
+
},
|
|
118
|
+
setup(__props) {
|
|
119
|
+
const props = __props;
|
|
120
|
+
const slots = useSlots();
|
|
121
|
+
const messages = useAstryxMessages();
|
|
122
|
+
const block = computed(() => props.kind === "top" ? "astryx-top-nav-heading" : "astryx-side-nav-heading");
|
|
123
|
+
const hasMenu = computed(() => slots.menu != null);
|
|
124
|
+
const mode = computed(() => resolveNavHeadingMode({
|
|
125
|
+
hasHeading: Boolean(props.heading),
|
|
126
|
+
hasMenu: hasMenu.value,
|
|
127
|
+
headingHref: props.headingHref,
|
|
128
|
+
superheadingHref: props.superheadingHref,
|
|
129
|
+
subheadingHref: props.subheadingHref
|
|
130
|
+
}));
|
|
131
|
+
const headingRoot = computed(() => resolveNavRoot(props.headingHref, false, props.as));
|
|
132
|
+
const logoName = computed(() => props.logoLabel || props.heading);
|
|
133
|
+
const logoIsLink = computed(() => Boolean(props.headingHref) && mode.value !== "whole-link" && mode.value !== "logo");
|
|
134
|
+
const textProps = computed(() => ({
|
|
135
|
+
as: props.as,
|
|
136
|
+
block: block.value,
|
|
137
|
+
heading: props.heading,
|
|
138
|
+
headingHref: props.headingHref,
|
|
139
|
+
subheading: props.subheading,
|
|
140
|
+
subheadingHref: props.subheadingHref,
|
|
141
|
+
superheading: props.superheading,
|
|
142
|
+
superheadingHref: props.superheadingHref
|
|
143
|
+
}));
|
|
144
|
+
return (_ctx, _cache) => {
|
|
145
|
+
return mode.value === "logo" ? (openBlock(), createBlock(resolveDynamicComponent(__props.headingHref ? headingRoot.value : "div"), {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: normalizeClass([block.value, { [`${block.value}--link`]: __props.headingHref }]),
|
|
148
|
+
href: __props.headingHref,
|
|
149
|
+
to: __props.as != null ? __props.headingHref : void 0,
|
|
150
|
+
"aria-label": __props.headingHref ? logoName.value : void 0
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: normalizeClass(`${block.value}__icon`)
|
|
155
|
+
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("v-if", true)]),
|
|
156
|
+
_: 3
|
|
157
|
+
}, 8, [
|
|
158
|
+
"class",
|
|
159
|
+
"href",
|
|
160
|
+
"to",
|
|
161
|
+
"aria-label"
|
|
162
|
+
])) : mode.value === "whole-link" ? (openBlock(), createBlock(resolveDynamicComponent(headingRoot.value), {
|
|
163
|
+
key: 1,
|
|
164
|
+
class: normalizeClass([block.value, `${block.value}--link`]),
|
|
165
|
+
href: __props.headingHref,
|
|
166
|
+
to: __props.as != null ? __props.headingHref : void 0
|
|
167
|
+
}, {
|
|
168
|
+
default: withCtx(() => [
|
|
169
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: normalizeClass(`${block.value}__icon`)
|
|
172
|
+
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("v-if", true),
|
|
173
|
+
createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(textProps.value)), null, 16),
|
|
174
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("span", {
|
|
175
|
+
key: 1,
|
|
176
|
+
class: normalizeClass(`${block.value}__end`)
|
|
177
|
+
}, [renderSlot(_ctx.$slots, "end")], 2)) : createCommentVNode("v-if", true)
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 8, [
|
|
181
|
+
"class",
|
|
182
|
+
"href",
|
|
183
|
+
"to"
|
|
184
|
+
])) : mode.value === "trigger" || mode.value === "mixed" ? (openBlock(), createBlock(_sfc_main$3, {
|
|
185
|
+
key: 2,
|
|
186
|
+
hover: "",
|
|
187
|
+
label: __props.heading || logoName.value,
|
|
188
|
+
"panel-class": `${block.value}__panel`
|
|
189
|
+
}, {
|
|
190
|
+
trigger: withCtx(({ isOpen, panelId }) => [createElementVNode("div", {
|
|
191
|
+
class: normalizeClass(block.value),
|
|
192
|
+
"data-open": isOpen || void 0
|
|
193
|
+
}, [
|
|
194
|
+
logoIsLink.value && _ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(headingRoot.value), {
|
|
195
|
+
key: 0,
|
|
196
|
+
class: normalizeClass(`${block.value}__icon`),
|
|
197
|
+
href: __props.headingHref,
|
|
198
|
+
to: __props.as != null ? __props.headingHref : void 0,
|
|
199
|
+
"aria-label": logoName.value,
|
|
200
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
201
|
+
}, {
|
|
202
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
203
|
+
_: 3
|
|
204
|
+
}, 8, [
|
|
205
|
+
"class",
|
|
206
|
+
"href",
|
|
207
|
+
"to",
|
|
208
|
+
"aria-label"
|
|
209
|
+
])) : _ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
210
|
+
key: 1,
|
|
211
|
+
class: normalizeClass(`${block.value}__icon`)
|
|
212
|
+
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("v-if", true),
|
|
213
|
+
createVNode(_sfc_main$1, mergeProps(textProps.value, { independent: mode.value === "mixed" }), {
|
|
214
|
+
chevron: withCtx(() => [createElementVNode("button", {
|
|
215
|
+
type: "button",
|
|
216
|
+
class: normalizeClass(`${block.value}__chevron`),
|
|
217
|
+
"aria-label": unref(messages).nav.openMenu,
|
|
218
|
+
"aria-expanded": isOpen ? "true" : "false",
|
|
219
|
+
"aria-controls": panelId,
|
|
220
|
+
"aria-haspopup": "menu"
|
|
221
|
+
}, [createVNode(_sfc_main$2, {
|
|
222
|
+
icon: "chevronDown",
|
|
223
|
+
size: "sm",
|
|
224
|
+
class: normalizeClass({ [`${block.value}__chevron-icon--open`]: isOpen })
|
|
225
|
+
}, null, 8, ["class"])], 10, _hoisted_2)]),
|
|
226
|
+
_: 2
|
|
227
|
+
}, 1040, ["independent"]),
|
|
228
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("span", {
|
|
229
|
+
key: 2,
|
|
230
|
+
class: normalizeClass(`${block.value}__end`)
|
|
231
|
+
}, [renderSlot(_ctx.$slots, "end")], 2)) : createCommentVNode("v-if", true)
|
|
232
|
+
], 10, _hoisted_1)]),
|
|
233
|
+
default: withCtx(({ close, focusRequest }) => [createElementVNode("button", {
|
|
234
|
+
type: "button",
|
|
235
|
+
class: normalizeClass([block.value, `${block.value}--echo`]),
|
|
236
|
+
onClick: ($event) => close()
|
|
237
|
+
}, [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
238
|
+
key: 0,
|
|
239
|
+
class: normalizeClass(`${block.value}__icon`)
|
|
240
|
+
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("v-if", true), createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(textProps.value)), {
|
|
241
|
+
chevron: withCtx(() => [createElementVNode("span", {
|
|
242
|
+
class: normalizeClass(`${block.value}__chevron`),
|
|
243
|
+
"aria-hidden": "true"
|
|
244
|
+
}, [createVNode(_sfc_main$2, {
|
|
245
|
+
icon: "chevronDown",
|
|
246
|
+
size: "sm",
|
|
247
|
+
class: normalizeClass(`${block.value}__chevron-icon--open`)
|
|
248
|
+
}, null, 8, ["class"])], 2)]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 16)], 10, _hoisted_3), createElementVNode("div", { class: normalizeClass(`${block.value}__menu`) }, [renderSlot(_ctx.$slots, "menu", {
|
|
251
|
+
close,
|
|
252
|
+
focusRequest
|
|
253
|
+
})], 2)]),
|
|
254
|
+
_: 3
|
|
255
|
+
}, 8, ["label", "panel-class"])) : (openBlock(), createElementBlock("div", {
|
|
256
|
+
key: 3,
|
|
257
|
+
class: normalizeClass(block.value)
|
|
258
|
+
}, [
|
|
259
|
+
logoIsLink.value && _ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(headingRoot.value), {
|
|
260
|
+
key: 0,
|
|
261
|
+
class: normalizeClass(`${block.value}__icon`),
|
|
262
|
+
href: __props.headingHref,
|
|
263
|
+
to: __props.as != null ? __props.headingHref : void 0,
|
|
264
|
+
"aria-label": logoName.value
|
|
265
|
+
}, {
|
|
266
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
267
|
+
_: 3
|
|
268
|
+
}, 8, [
|
|
269
|
+
"class",
|
|
270
|
+
"href",
|
|
271
|
+
"to",
|
|
272
|
+
"aria-label"
|
|
273
|
+
])) : _ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
274
|
+
key: 1,
|
|
275
|
+
class: normalizeClass(`${block.value}__icon`)
|
|
276
|
+
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("v-if", true),
|
|
277
|
+
createVNode(_sfc_main$1, mergeProps(textProps.value, { independent: mode.value === "links" }), null, 16, ["independent"]),
|
|
278
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("span", {
|
|
279
|
+
key: 2,
|
|
280
|
+
class: normalizeClass(`${block.value}__end`)
|
|
281
|
+
}, [renderSlot(_ctx.$slots, "end")], 2)) : createCommentVNode("v-if", true)
|
|
282
|
+
], 2));
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
//#endregion
|
|
287
|
+
export { _sfc_main as t };
|
package/dist/NavMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { _default as NavDisclosure, type NavDisclosureProps, _default$1 as NavMenu, type NavMenuEmits, type NavMenuFocusRequest, _default$
|
|
1
|
+
import { a as _default, c as NavHeadingMenuItemEmits, d as NavMenuEmits, f as NavMenuItemEmits, g as NavMenuSize, h as NavMenuFocusRequest, i as _default$1, l as NavHeadingMenuItemProps, m as NavMenuProps, n as _default$3, o as NavDisclosureProps, p as NavMenuItemProps, r as _default$2, s as NavHeadingMenuEmits, t as _default$4, u as NavHeadingMenuProps } from "../index-YmSe1ujk.js";
|
|
2
|
+
export { _default as NavDisclosure, type NavDisclosureProps, _default$1 as NavHeadingMenu, type NavHeadingMenuEmits, _default$2 as NavHeadingMenuItem, type NavHeadingMenuItemEmits, type NavHeadingMenuItemProps, type NavHeadingMenuProps, _default$3 as NavMenu, type NavMenuEmits, type NavMenuFocusRequest, _default$4 as NavMenuItem, type NavMenuItemEmits, type NavMenuItemProps, type NavMenuProps, type NavMenuSize };
|
package/dist/NavMenu/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../NavDisclosure-
|
|
2
|
-
import { n as _sfc_main$1, t as _sfc_main$2 } from "../
|
|
3
|
-
|
|
1
|
+
import { t as _sfc_main } from "../NavDisclosure-C6sPZ89n.js";
|
|
2
|
+
import { n as _sfc_main$1, t as _sfc_main$2 } from "../NavMenu-ClIgMaxE.js";
|
|
3
|
+
import { n as _sfc_main$3, t as _sfc_main$4 } from "../NavMenuItem-E7S8gBh-.js";
|
|
4
|
+
export { _sfc_main as NavDisclosure, _sfc_main$1 as NavHeadingMenu, _sfc_main$2 as NavHeadingMenuItem, _sfc_main$3 as NavMenu, _sfc_main$4 as NavMenuItem };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
|
|
2
|
+
import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
|
|
3
|
+
import { i as navMenuKey, n as navMenuCloseKey, r as navMenuFocusKey } from "./NavDisclosure-C6sPZ89n.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, watch, withCtx } from "vue";
|
|
5
|
+
import "../styles/nav-menu.css";
|
|
6
|
+
//#region src/NavMenu/NavHeadingMenu.vue
|
|
7
|
+
const _hoisted_1$1 = ["aria-label"];
|
|
8
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
9
|
+
name: "AstryxNavHeadingMenu",
|
|
10
|
+
__name: "NavHeadingMenu",
|
|
11
|
+
props: {
|
|
12
|
+
label: {},
|
|
13
|
+
size: { default: "md" },
|
|
14
|
+
minWidth: {},
|
|
15
|
+
focusRequest: { default: null }
|
|
16
|
+
},
|
|
17
|
+
emits: ["close"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
21
|
+
const closeMenu = inject(navMenuCloseKey, void 0);
|
|
22
|
+
const injectedFocus = inject(navMenuFocusKey, ref(null));
|
|
23
|
+
const size = computed(() => props.size);
|
|
24
|
+
const requestedFocus = computed(() => props.focusRequest ?? injectedFocus.value);
|
|
25
|
+
const { listRef, handleKeyDown, focusItem } = useListFocus({
|
|
26
|
+
itemSelector: "[role=\"menuitem\"]:not([aria-disabled=\"true\"])",
|
|
27
|
+
onEscape: () => {
|
|
28
|
+
closeMenu?.();
|
|
29
|
+
emit("close");
|
|
30
|
+
},
|
|
31
|
+
orientation: "vertical"
|
|
32
|
+
});
|
|
33
|
+
function menuItems() {
|
|
34
|
+
const root = listRef.value;
|
|
35
|
+
if (!root) return [];
|
|
36
|
+
return [...root.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])")];
|
|
37
|
+
}
|
|
38
|
+
const typeahead = useTypeahead({
|
|
39
|
+
getItemLabels: () => menuItems().map((element) => element.textContent),
|
|
40
|
+
onMatch: focusItem,
|
|
41
|
+
getCurrentIndex: () => menuItems().findIndex((element) => element === document.activeElement || element.contains(document.activeElement))
|
|
42
|
+
});
|
|
43
|
+
function onKeyDown(event) {
|
|
44
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
45
|
+
const focused = document.activeElement;
|
|
46
|
+
if (focused instanceof HTMLElement && focused.getAttribute("role") === "menuitem") {
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
focused.click();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (typeahead.onKeyDown(event)) {
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
handleKeyDown(event);
|
|
57
|
+
}
|
|
58
|
+
function applyFocus(request) {
|
|
59
|
+
if (request == null) return;
|
|
60
|
+
nextTick(() => {
|
|
61
|
+
const items = menuItems();
|
|
62
|
+
if (items.length === 0) return;
|
|
63
|
+
focusItem(request === "last" ? items.length - 1 : 0);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
onMounted(() => applyFocus(requestedFocus.value));
|
|
67
|
+
watch(requestedFocus, applyFocus);
|
|
68
|
+
const minWidthStyle = computed(() => {
|
|
69
|
+
if (props.minWidth == null) return void 0;
|
|
70
|
+
return { minWidth: typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth };
|
|
71
|
+
});
|
|
72
|
+
provide(navMenuKey, {
|
|
73
|
+
close: () => {
|
|
74
|
+
closeMenu?.();
|
|
75
|
+
emit("close");
|
|
76
|
+
},
|
|
77
|
+
size
|
|
78
|
+
});
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return openBlock(), createElementBlock("div", {
|
|
81
|
+
ref_key: "listRef",
|
|
82
|
+
ref: listRef,
|
|
83
|
+
class: normalizeClass(["astryx-nav-heading-menu astryx-nav-menu", `astryx-nav-menu--${size.value}`]),
|
|
84
|
+
role: "menu",
|
|
85
|
+
tabindex: "-1",
|
|
86
|
+
"aria-label": __props.label,
|
|
87
|
+
style: normalizeStyle(minWidthStyle.value),
|
|
88
|
+
onKeydown: onKeyDown
|
|
89
|
+
}, [renderSlot(_ctx.$slots, "default")], 46, _hoisted_1$1);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/NavMenu/NavHeadingMenuItem.vue
|
|
95
|
+
const _hoisted_1 = {
|
|
96
|
+
key: 0,
|
|
97
|
+
class: "astryx-nav-menu-item__icon",
|
|
98
|
+
"aria-hidden": "true"
|
|
99
|
+
};
|
|
100
|
+
const _hoisted_2 = { class: "astryx-nav-menu-item__text" };
|
|
101
|
+
const _hoisted_3 = {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "astryx-nav-menu-item__label"
|
|
104
|
+
};
|
|
105
|
+
const _hoisted_4 = {
|
|
106
|
+
key: 1,
|
|
107
|
+
class: "astryx-nav-menu-item__label"
|
|
108
|
+
};
|
|
109
|
+
const _hoisted_5 = {
|
|
110
|
+
key: 2,
|
|
111
|
+
class: "astryx-nav-menu-item__description"
|
|
112
|
+
};
|
|
113
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
114
|
+
name: "AstryxNavHeadingMenuItem",
|
|
115
|
+
__name: "NavHeadingMenuItem",
|
|
116
|
+
props: {
|
|
117
|
+
label: {},
|
|
118
|
+
description: {},
|
|
119
|
+
href: {},
|
|
120
|
+
as: {},
|
|
121
|
+
iconClass: {},
|
|
122
|
+
isDisabled: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: false
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
emits: ["click"],
|
|
128
|
+
setup(__props, { emit: __emit }) {
|
|
129
|
+
const props = __props;
|
|
130
|
+
const emit = __emit;
|
|
131
|
+
const menu = inject(navMenuKey, null);
|
|
132
|
+
const closeMenu = inject(navMenuCloseKey, void 0);
|
|
133
|
+
const size = computed(() => menu?.size.value ?? "md");
|
|
134
|
+
const isLink = computed(() => props.href != null && props.href !== "" && !props.isDisabled);
|
|
135
|
+
const root = computed(() => {
|
|
136
|
+
if (!isLink.value) return "div";
|
|
137
|
+
return props.as == null ? "a" : toRaw(props.as);
|
|
138
|
+
});
|
|
139
|
+
function onClick(event) {
|
|
140
|
+
if (props.isDisabled) {
|
|
141
|
+
event.preventDefault();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const preventedBeforeItem = event.defaultPrevented;
|
|
145
|
+
emit("click", event);
|
|
146
|
+
if (!preventedBeforeItem && event.defaultPrevented) return;
|
|
147
|
+
if (menu) menu.close();
|
|
148
|
+
else closeMenu?.();
|
|
149
|
+
}
|
|
150
|
+
return (_ctx, _cache) => {
|
|
151
|
+
return openBlock(), createBlock(resolveDynamicComponent(root.value), {
|
|
152
|
+
class: normalizeClass(["astryx-nav-heading-menu-item astryx-nav-menu-item", [`astryx-nav-menu-item--${size.value}`, { "astryx-nav-menu-item--disabled": __props.isDisabled }]]),
|
|
153
|
+
role: "menuitem",
|
|
154
|
+
href: isLink.value ? __props.href : void 0,
|
|
155
|
+
to: isLink.value && __props.as != null ? __props.href : void 0,
|
|
156
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
157
|
+
tabindex: __props.isDisabled ? void 0 : -1,
|
|
158
|
+
onClick
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(() => [__props.iconClass || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.iconClass ? (openBlock(), createElementBlock("span", {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: normalizeClass(["astryx-nav-menu-item__glyph", __props.iconClass])
|
|
163
|
+
}, null, 2)) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_2, [_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "default")])) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.label), 1)), __props.description ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)])]),
|
|
164
|
+
_: 3
|
|
165
|
+
}, 8, [
|
|
166
|
+
"class",
|
|
167
|
+
"href",
|
|
168
|
+
"to",
|
|
169
|
+
"aria-disabled",
|
|
170
|
+
"tabindex"
|
|
171
|
+
]);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
//#endregion
|
|
176
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
|
|
2
2
|
import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as navMenuKey, n as navMenuCloseKey } from "./NavDisclosure-C6sPZ89n.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, nextTick, normalizeClass, onMounted, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, watch, withCtx } from "vue";
|
|
5
5
|
import "../styles/nav-menu.css";
|
|
6
6
|
//#region src/NavMenu/NavMenu.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as NumberInputStatus, n as NumberInputEmits, r as NumberInputProps, t as _default } from "../index-
|
|
1
|
+
import { i as NumberInputStatus, n as NumberInputEmits, r as NumberInputProps, t as _default } from "../index-CFIXnk5D.js";
|
|
2
2
|
export { _default as NumberInput, type NumberInputEmits, type NumberInputProps, type NumberInputStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../NumberInput-
|
|
1
|
+
import { t as _sfc_main } from "../NumberInput-B4IL3s_8.js";
|
|
2
2
|
export { _sfc_main as NumberInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
1
2
|
import { t as useNumberField } from "./useNumberField-DL-Radsp.js";
|
|
2
|
-
import { a as useAstryxMessages } from "./context-CiKncNSH.js";
|
|
3
3
|
import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
|
|
4
4
|
import { t as _sfc_main$2 } from "./Field-8zRxzDHE.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, useId, withCtx } from "vue";
|
package/dist/Outline/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Outline-
|
|
1
|
+
import { t as _sfc_main } from "../Outline-DBUuchi9.js";
|
|
2
2
|
export { _sfc_main as Outline };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
1
2
|
import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
|
|
2
|
-
import { a as useAstryxMessages } from "./context-CiKncNSH.js";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, toDisplayString, toRef, unref, watch } from "vue";
|
|
4
4
|
import "../styles/outline.css";
|
|
5
5
|
//#region src/Outline/scrollGeometry.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as OverflowListItem, En as OverflowListEmits, On as OverflowListProps, Tn as _default } from "../index-EtZgovdH.js";
|
|
2
2
|
export { _default as OverflowList, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../OverflowList-
|
|
1
|
+
import { t as _sfc_main } from "../OverflowList-aDd_oem0.js";
|
|
2
2
|
export { _sfc_main as OverflowList };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
1
2
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
2
|
-
import { a as useAstryxMessages } from "./context-CiKncNSH.js";
|
|
3
3
|
import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./NavDisclosure-
|
|
5
|
-
import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-
|
|
4
|
+
import { t as _sfc_main$2 } from "./NavDisclosure-C6sPZ89n.js";
|
|
5
|
+
import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-E7S8gBh-.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
7
7
|
import "../styles/overflow-list.css";
|
|
8
8
|
//#region src/OverflowList/OverflowMore.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-
|
|
1
|
+
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-cL3q7O4R.js";
|
|
2
2
|
export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
|
package/dist/Pagination/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Pagination-
|
|
1
|
+
import { t as _sfc_main } from "../Pagination-CNe9F6Fl.js";
|
|
2
2
|
export { _sfc_main as Pagination };
|