@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
package/dist/SideNav/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as useSideNavCollapse } from "../context-BjNya0v8.js";
|
|
2
|
-
import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-
|
|
2
|
+
import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-CT9lfspi.js";
|
|
3
3
|
export { _sfc_main as SideNav, _sfc_main$1 as SideNavCollapseButton, _sfc_main$2 as SideNavHeading, _sfc_main$3 as SideNavItem, _sfc_main$4 as SideNavSection, useSideNavCollapse };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
|
|
2
|
+
import { n as useResizable, r as useHotkeys } from "./useResizable-B3ahKLoZ.js";
|
|
3
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
4
|
+
import { t as _sfc_main$5 } from "./Tooltip-C2fh9anJ.js";
|
|
3
5
|
import { i as useSideNavRenderMode, r as useSideNavCollapse, t as sideNavCollapseKey } from "./context-BjNya0v8.js";
|
|
4
|
-
import { t as _sfc_main$
|
|
5
|
-
import { t as _sfc_main$6 } from "./Icon-CJKjdJy-.js";
|
|
6
|
+
import { t as _sfc_main$6 } from "./Icon-bteSId7T.js";
|
|
6
7
|
import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
|
|
7
8
|
import { t as _sfc_main$7 } from "./NavItem-FFOisITc.js";
|
|
8
|
-
import { t as _sfc_main$8 } from "./NavDisclosure-
|
|
9
|
-
import {
|
|
9
|
+
import { t as _sfc_main$8 } from "./NavDisclosure-C6sPZ89n.js";
|
|
10
|
+
import { t as _sfc_main$9 } from "./ResizeHandle-DYy0e3v9.js";
|
|
11
|
+
import { t as _sfc_main$10 } from "./NavHeadingSurface-Cb3x9iDx.js";
|
|
12
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, watchEffect, withCtx, withModifiers } from "vue";
|
|
10
13
|
import "../styles/visually-hidden.css";
|
|
11
14
|
import "../styles/side-nav.css";
|
|
12
15
|
//#region src/SideNav/SideNavCollapseButton.vue
|
|
@@ -64,6 +67,102 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
64
67
|
}
|
|
65
68
|
});
|
|
66
69
|
//#endregion
|
|
70
|
+
//#region src/SideNav/useSideNavResize.ts
|
|
71
|
+
/** 拖到这条宽度以下就收起。收起后的视觉宽度仍由图标栏样式决定。 */
|
|
72
|
+
const COLLAPSE_THRESHOLD = 160;
|
|
73
|
+
function resizeConfig(value) {
|
|
74
|
+
return typeof value === "object" && value != null ? value : {};
|
|
75
|
+
}
|
|
76
|
+
function collapseConfig(value) {
|
|
77
|
+
return typeof value === "object" && value != null ? value : {};
|
|
78
|
+
}
|
|
79
|
+
function ownsCollapseState(config) {
|
|
80
|
+
return config.defaultIsCollapsed !== void 0 || config.isCollapsed !== void 0 || config.onCollapseChange !== void 0;
|
|
81
|
+
}
|
|
82
|
+
function describeCollapseConflict(collapsible, resizable) {
|
|
83
|
+
const fromCollapsible = [collapsible.defaultIsCollapsed !== void 0 && "defaultIsCollapsed", collapsible.isCollapsed !== void 0 && "isCollapsed"].filter((key) => key !== false);
|
|
84
|
+
const fromResizable = [
|
|
85
|
+
resizable.defaultIsCollapsed !== void 0 && "defaultIsCollapsed",
|
|
86
|
+
resizable.isCollapsed !== void 0 && "isCollapsed",
|
|
87
|
+
resizable.onCollapseChange !== void 0 && "onCollapseChange"
|
|
88
|
+
].filter((key) => key !== false);
|
|
89
|
+
if (fromCollapsible.length === 0 || fromResizable.length === 0) return null;
|
|
90
|
+
return `collapsible 和 resizable 都写了收起状态(${fromResizable.join("、")})。拖拽这边生效。`;
|
|
91
|
+
}
|
|
92
|
+
function useSideNavResize(source) {
|
|
93
|
+
const initialResize = resizeConfig(source.resizable());
|
|
94
|
+
const initialCollapse = collapseConfig(source.collapsible());
|
|
95
|
+
const initialOwns = ownsCollapseState(initialResize);
|
|
96
|
+
const controlled = source.isCollapsed();
|
|
97
|
+
const input = reactive({
|
|
98
|
+
defaultSize: initialResize.defaultWidth ?? 260,
|
|
99
|
+
minSize: initialResize.minWidth ?? 180,
|
|
100
|
+
maxSize: initialResize.maxWidth ?? 480,
|
|
101
|
+
collapsible: Boolean(source.collapsible()) || initialOwns,
|
|
102
|
+
collapsedSize: COLLAPSE_THRESHOLD,
|
|
103
|
+
autoSaveId: initialResize.autoSaveId,
|
|
104
|
+
defaultIsCollapsed: (initialOwns ? initialResize.defaultIsCollapsed : initialCollapse.defaultIsCollapsed) ?? false,
|
|
105
|
+
isCollapsed: controlled,
|
|
106
|
+
onSizeChange(width) {
|
|
107
|
+
resizeConfig(source.resizable()).onWidthChange?.(width);
|
|
108
|
+
source.onWidthChange(width);
|
|
109
|
+
},
|
|
110
|
+
onCollapseChange(next) {
|
|
111
|
+
resizeConfig(source.resizable()).onCollapseChange?.(next);
|
|
112
|
+
source.onCollapseChange(next);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
const region = useResizable(input);
|
|
116
|
+
const resizing = ref(false);
|
|
117
|
+
const enabled = computed(() => Boolean(source.resizable()));
|
|
118
|
+
const ownsCollapse = computed(() => ownsCollapseState(resizeConfig(source.resizable())));
|
|
119
|
+
watch(() => source.isCollapsed(), (value) => {
|
|
120
|
+
input.isCollapsed = value;
|
|
121
|
+
});
|
|
122
|
+
let warnedConflict = false;
|
|
123
|
+
watchEffect(() => {
|
|
124
|
+
if (warnedConflict) return;
|
|
125
|
+
const message = describeCollapseConflict(collapseConfig(source.collapsible()), resizeConfig(source.resizable()));
|
|
126
|
+
if (!message) return;
|
|
127
|
+
warnedConflict = true;
|
|
128
|
+
console.warn(`[SideNav] ${message}`);
|
|
129
|
+
});
|
|
130
|
+
const handleProps = computed(() => {
|
|
131
|
+
const current = region.props;
|
|
132
|
+
return {
|
|
133
|
+
...current,
|
|
134
|
+
_onResizeStart() {
|
|
135
|
+
resizing.value = true;
|
|
136
|
+
current._onResizeStart();
|
|
137
|
+
},
|
|
138
|
+
_onResizeEnd() {
|
|
139
|
+
resizing.value = false;
|
|
140
|
+
current._onResizeEnd();
|
|
141
|
+
},
|
|
142
|
+
_onResizeCancel() {
|
|
143
|
+
resizing.value = false;
|
|
144
|
+
current._onResizeCancel?.();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
const widthStyle = computed(() => {
|
|
149
|
+
if (!enabled.value || region.isCollapsed) return void 0;
|
|
150
|
+
return { width: `${region.size}px` };
|
|
151
|
+
});
|
|
152
|
+
return {
|
|
153
|
+
enabled,
|
|
154
|
+
ownsCollapse,
|
|
155
|
+
isCollapsed: computed(() => region.isCollapsed),
|
|
156
|
+
widthStyle,
|
|
157
|
+
resizing,
|
|
158
|
+
handleProps,
|
|
159
|
+
setCollapsed(next) {
|
|
160
|
+
if (next) region.collapse();
|
|
161
|
+
else region.expand();
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
67
166
|
//#region src/SideNav/SideNav.vue
|
|
68
167
|
const _hoisted_1$3 = {
|
|
69
168
|
key: 0,
|
|
@@ -88,29 +187,29 @@ const _hoisted_6$2 = {
|
|
|
88
187
|
key: 1,
|
|
89
188
|
class: "astryx-side-nav__bottom"
|
|
90
189
|
};
|
|
91
|
-
const _hoisted_7$
|
|
190
|
+
const _hoisted_7$1 = {
|
|
92
191
|
key: 0,
|
|
93
192
|
class: "astryx-side-nav__footer-icons"
|
|
94
193
|
};
|
|
95
|
-
const _hoisted_8$
|
|
96
|
-
const _hoisted_9
|
|
194
|
+
const _hoisted_8$1 = ["aria-label", "data-collapsed"];
|
|
195
|
+
const _hoisted_9 = {
|
|
97
196
|
key: 0,
|
|
98
197
|
class: "astryx-side-nav__top"
|
|
99
198
|
};
|
|
100
|
-
const _hoisted_10
|
|
199
|
+
const _hoisted_10 = {
|
|
101
200
|
key: 0,
|
|
102
201
|
class: "astryx-side-nav__heading-row"
|
|
103
202
|
};
|
|
104
|
-
const _hoisted_11
|
|
203
|
+
const _hoisted_11 = {
|
|
105
204
|
key: 1,
|
|
106
205
|
class: "astryx-side-nav__top-content"
|
|
107
206
|
};
|
|
108
|
-
const _hoisted_12
|
|
109
|
-
const _hoisted_13
|
|
207
|
+
const _hoisted_12 = { class: "astryx-side-nav__body" };
|
|
208
|
+
const _hoisted_13 = {
|
|
110
209
|
key: 1,
|
|
111
210
|
class: "astryx-side-nav__bottom"
|
|
112
211
|
};
|
|
113
|
-
const _hoisted_14
|
|
212
|
+
const _hoisted_14 = {
|
|
114
213
|
key: 0,
|
|
115
214
|
class: "astryx-side-nav__footer-icons"
|
|
116
215
|
};
|
|
@@ -126,9 +225,18 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
126
225
|
isCollapsed: {
|
|
127
226
|
type: Boolean,
|
|
128
227
|
default: void 0
|
|
129
|
-
}
|
|
228
|
+
},
|
|
229
|
+
resizable: {
|
|
230
|
+
type: [Boolean, Object],
|
|
231
|
+
default: false
|
|
232
|
+
},
|
|
233
|
+
handleRef: {}
|
|
130
234
|
},
|
|
131
|
-
emits: [
|
|
235
|
+
emits: [
|
|
236
|
+
"update:isCollapsed",
|
|
237
|
+
"collapsedChange",
|
|
238
|
+
"widthChange"
|
|
239
|
+
],
|
|
132
240
|
setup(__props, { emit: __emit }) {
|
|
133
241
|
const props = __props;
|
|
134
242
|
const emit = __emit;
|
|
@@ -137,13 +245,35 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
137
245
|
const navId = `astryx-side-nav-${useId()}`;
|
|
138
246
|
const localCollapsed = ref(false);
|
|
139
247
|
const config = computed(() => typeof props.collapsible === "object" ? props.collapsible : {});
|
|
140
|
-
|
|
248
|
+
function controlledCollapsed() {
|
|
249
|
+
if (props.isCollapsed !== void 0) return props.isCollapsed;
|
|
250
|
+
if (typeof props.resizable === "object") {
|
|
251
|
+
const resizable = props.resizable;
|
|
252
|
+
if (resizable.defaultIsCollapsed !== void 0 || resizable.isCollapsed !== void 0 || resizable.onCollapseChange !== void 0) return resizable.isCollapsed;
|
|
253
|
+
}
|
|
254
|
+
return config.value.isCollapsed;
|
|
255
|
+
}
|
|
256
|
+
const resize = useSideNavResize({
|
|
257
|
+
collapsible: () => props.collapsible,
|
|
258
|
+
isCollapsed: controlledCollapsed,
|
|
259
|
+
onCollapseChange(next) {
|
|
260
|
+
emit("update:isCollapsed", next);
|
|
261
|
+
emit("collapsedChange", next);
|
|
262
|
+
},
|
|
263
|
+
onWidthChange(width) {
|
|
264
|
+
emit("widthChange", width);
|
|
265
|
+
},
|
|
266
|
+
resizable: () => props.resizable
|
|
267
|
+
});
|
|
268
|
+
const isCollapsible = computed(() => Boolean(props.collapsible) || resize.ownsCollapse.value);
|
|
141
269
|
const isCollapsed = computed(() => {
|
|
142
270
|
if (!isCollapsible.value) return false;
|
|
143
|
-
|
|
144
|
-
if (
|
|
271
|
+
const controlled = controlledCollapsed();
|
|
272
|
+
if (controlled !== void 0) return controlled;
|
|
273
|
+
if (resize.enabled.value) return resize.isCollapsed.value;
|
|
145
274
|
return localCollapsed.value;
|
|
146
275
|
});
|
|
276
|
+
const showResizeHandle = computed(() => resize.enabled.value && !isCollapsed.value);
|
|
147
277
|
const showButton = computed(() => isCollapsible.value && (config.value.hasButton ?? true));
|
|
148
278
|
const hasTop = computed(() => slots.header != null || slots.top != null || showButton.value);
|
|
149
279
|
const hasBottom = computed(() => slots.footer != null || slots.footerIcons != null);
|
|
@@ -154,6 +284,10 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
154
284
|
}, { immediate: true });
|
|
155
285
|
function setCollapsed(next) {
|
|
156
286
|
if (!isCollapsible.value || next === isCollapsed.value) return;
|
|
287
|
+
if (resize.enabled.value) {
|
|
288
|
+
resize.setCollapsed(next);
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
157
291
|
if (props.isCollapsed === void 0 && config.value.isCollapsed === void 0) localCollapsed.value = next;
|
|
158
292
|
emit("update:isCollapsed", next);
|
|
159
293
|
emit("collapsedChange", next);
|
|
@@ -161,6 +295,14 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
161
295
|
function toggle() {
|
|
162
296
|
setCollapsed(!isCollapsed.value);
|
|
163
297
|
}
|
|
298
|
+
useHandleRef(() => props.handleRef, {
|
|
299
|
+
collapse: () => setCollapsed(true),
|
|
300
|
+
expand: () => setCollapsed(false),
|
|
301
|
+
get isCollapsed() {
|
|
302
|
+
return isCollapsed.value;
|
|
303
|
+
},
|
|
304
|
+
toggle
|
|
305
|
+
});
|
|
164
306
|
useHotkeys(computed(() => {
|
|
165
307
|
const keys = config.value.hotkey;
|
|
166
308
|
if (!isCollapsible.value || keys == null || keys === "") return [];
|
|
@@ -179,21 +321,37 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
179
321
|
return unref(renderMode) === "topbar" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "header"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_2$3, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : unref(renderMode) === "drawer" || unref(renderMode) === "drawer-content" ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
180
322
|
slots.top ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true),
|
|
181
323
|
createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "default")]),
|
|
182
|
-
hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
183
|
-
])) : (openBlock(), createElementBlock("
|
|
324
|
+
hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$1, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
325
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
184
326
|
key: 2,
|
|
327
|
+
class: normalizeClass(["astryx-side-nav-frame", { "astryx-side-nav-frame--resizable": showResizeHandle.value }])
|
|
328
|
+
}, [createElementVNode("nav", {
|
|
185
329
|
id: navId,
|
|
186
|
-
class: normalizeClass(["astryx-side-nav", {
|
|
330
|
+
class: normalizeClass(["astryx-side-nav", {
|
|
331
|
+
"astryx-side-nav--collapsed": isCollapsed.value,
|
|
332
|
+
"astryx-side-nav--resizing": unref(resize).resizing.value
|
|
333
|
+
}]),
|
|
334
|
+
style: normalizeStyle(unref(resize).widthStyle.value),
|
|
187
335
|
"aria-label": label.value,
|
|
188
336
|
"data-collapsed": isCollapsed.value || void 0
|
|
189
337
|
}, [
|
|
190
|
-
hasTop.value ? (openBlock(), createElementBlock("div", _hoisted_9
|
|
338
|
+
hasTop.value ? (openBlock(), createElementBlock("div", _hoisted_9, [slots.header || showButton.value ? (openBlock(), createElementBlock("div", _hoisted_10, [renderSlot(_ctx.$slots, "header"), showButton.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
191
339
|
key: 0,
|
|
192
340
|
label: config.value.buttonLabel
|
|
193
|
-
}, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_11
|
|
194
|
-
createElementVNode("div", _hoisted_12
|
|
195
|
-
hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_13
|
|
196
|
-
],
|
|
341
|
+
}, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_11, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
|
|
342
|
+
createElementVNode("div", _hoisted_12, [renderSlot(_ctx.$slots, "default")]),
|
|
343
|
+
hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_13, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_14, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
344
|
+
], 14, _hoisted_8$1), showResizeHandle.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
345
|
+
key: 0,
|
|
346
|
+
"data-testid": "astryx-sidenav-resize-handle",
|
|
347
|
+
direction: "horizontal",
|
|
348
|
+
position: "overlay",
|
|
349
|
+
"pill-placement": "end",
|
|
350
|
+
"is-always-visible": false,
|
|
351
|
+
resizable: unref(resize).handleProps.value,
|
|
352
|
+
label: unref(messages).nav.resizeSidebar,
|
|
353
|
+
"aria-controls": navId
|
|
354
|
+
}, null, 8, ["resizable", "label"])) : createCommentVNode("v-if", true)], 2));
|
|
197
355
|
};
|
|
198
356
|
}
|
|
199
357
|
});
|
|
@@ -212,78 +370,6 @@ const _hoisted_5$1 = {
|
|
|
212
370
|
class: "astryx-side-nav-heading astryx-side-nav-heading--collapsed"
|
|
213
371
|
};
|
|
214
372
|
const _hoisted_6$1 = { class: "astryx-side-nav-heading__icon" };
|
|
215
|
-
const _hoisted_7$1 = {
|
|
216
|
-
key: 0,
|
|
217
|
-
class: "astryx-side-nav-heading__icon"
|
|
218
|
-
};
|
|
219
|
-
const _hoisted_8$1 = { class: "astryx-side-nav-heading__text" };
|
|
220
|
-
const _hoisted_9 = {
|
|
221
|
-
key: 0,
|
|
222
|
-
class: "astryx-side-nav-heading__super"
|
|
223
|
-
};
|
|
224
|
-
const _hoisted_10 = { class: "astryx-side-nav-heading__title" };
|
|
225
|
-
const _hoisted_11 = {
|
|
226
|
-
key: 1,
|
|
227
|
-
class: "astryx-side-nav-heading__sub"
|
|
228
|
-
};
|
|
229
|
-
const _hoisted_12 = {
|
|
230
|
-
key: 1,
|
|
231
|
-
class: "astryx-side-nav-heading__end"
|
|
232
|
-
};
|
|
233
|
-
const _hoisted_13 = ["data-open"];
|
|
234
|
-
const _hoisted_14 = {
|
|
235
|
-
key: 1,
|
|
236
|
-
class: "astryx-side-nav-heading__icon"
|
|
237
|
-
};
|
|
238
|
-
const _hoisted_15 = { class: "astryx-side-nav-heading__text" };
|
|
239
|
-
const _hoisted_16 = {
|
|
240
|
-
key: 1,
|
|
241
|
-
class: "astryx-side-nav-heading__super"
|
|
242
|
-
};
|
|
243
|
-
const _hoisted_17 = { class: "astryx-side-nav-heading__row" };
|
|
244
|
-
const _hoisted_18 = {
|
|
245
|
-
key: 1,
|
|
246
|
-
class: "astryx-side-nav-heading__title"
|
|
247
|
-
};
|
|
248
|
-
const _hoisted_19 = [
|
|
249
|
-
"aria-label",
|
|
250
|
-
"aria-expanded",
|
|
251
|
-
"aria-controls"
|
|
252
|
-
];
|
|
253
|
-
const _hoisted_20 = {
|
|
254
|
-
key: 3,
|
|
255
|
-
class: "astryx-side-nav-heading__sub"
|
|
256
|
-
};
|
|
257
|
-
const _hoisted_21 = {
|
|
258
|
-
key: 2,
|
|
259
|
-
class: "astryx-side-nav-heading__end"
|
|
260
|
-
};
|
|
261
|
-
const _hoisted_22 = { class: "astryx-side-nav-heading__menu" };
|
|
262
|
-
const _hoisted_23 = {
|
|
263
|
-
key: 3,
|
|
264
|
-
class: "astryx-side-nav-heading"
|
|
265
|
-
};
|
|
266
|
-
const _hoisted_24 = {
|
|
267
|
-
key: 1,
|
|
268
|
-
class: "astryx-side-nav-heading__icon"
|
|
269
|
-
};
|
|
270
|
-
const _hoisted_25 = { class: "astryx-side-nav-heading__text" };
|
|
271
|
-
const _hoisted_26 = {
|
|
272
|
-
key: 1,
|
|
273
|
-
class: "astryx-side-nav-heading__super"
|
|
274
|
-
};
|
|
275
|
-
const _hoisted_27 = {
|
|
276
|
-
key: 3,
|
|
277
|
-
class: "astryx-side-nav-heading__title"
|
|
278
|
-
};
|
|
279
|
-
const _hoisted_28 = {
|
|
280
|
-
key: 5,
|
|
281
|
-
class: "astryx-side-nav-heading__sub"
|
|
282
|
-
};
|
|
283
|
-
const _hoisted_29 = {
|
|
284
|
-
key: 2,
|
|
285
|
-
class: "astryx-side-nav-heading__end"
|
|
286
|
-
};
|
|
287
373
|
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
288
374
|
name: "AstryxSideNavHeading",
|
|
289
375
|
__name: "SideNavHeading",
|
|
@@ -294,17 +380,16 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
294
380
|
superheadingHref: {},
|
|
295
381
|
subheading: {},
|
|
296
382
|
subheadingHref: {},
|
|
383
|
+
logoLabel: {},
|
|
297
384
|
as: {}
|
|
298
385
|
},
|
|
299
386
|
setup(__props) {
|
|
300
387
|
const props = __props;
|
|
301
388
|
const slots = useSlots();
|
|
302
389
|
const collapse = useSideNavCollapse();
|
|
303
|
-
const messages = useAstryxMessages();
|
|
304
390
|
const collapsed = computed(() => collapse.isCollapsed.value);
|
|
305
391
|
const hasIcon = computed(() => slots.icon != null);
|
|
306
392
|
const hasMenu = computed(() => slots.menu != null);
|
|
307
|
-
const wholeLink = computed(() => Boolean(props.headingHref) && !hasMenu.value && !props.superheadingHref && !props.subheadingHref);
|
|
308
393
|
const linkRoot = computed(() => resolveNavRoot(props.headingHref, false, props.as));
|
|
309
394
|
return (_ctx, _cache) => {
|
|
310
395
|
return collapsed.value && hasIcon.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
@@ -326,7 +411,10 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
326
411
|
"aria-controls": panelId,
|
|
327
412
|
"aria-haspopup": "menu"
|
|
328
413
|
}, [createElementVNode("span", _hoisted_2$2, [renderSlot(_ctx.$slots, "icon")])], 8, _hoisted_1$2)]),
|
|
329
|
-
default: withCtx(({ close }) => [createElementVNode("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "menu", {
|
|
414
|
+
default: withCtx(({ close, focusRequest }) => [createElementVNode("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "menu", {
|
|
415
|
+
close,
|
|
416
|
+
focusRequest
|
|
417
|
+
})])]),
|
|
330
418
|
_: 3
|
|
331
419
|
}, 8, ["label"])) : __props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
332
420
|
key: 1,
|
|
@@ -343,135 +431,43 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
343
431
|
"aria-label"
|
|
344
432
|
])) : (openBlock(), createElementBlock("div", _hoisted_5$1, [createElementVNode("span", _hoisted_6$1, [renderSlot(_ctx.$slots, "icon")])]))]),
|
|
345
433
|
_: 3
|
|
346
|
-
}, 8, ["content"])) :
|
|
434
|
+
}, 8, ["content"])) : (openBlock(), createBlock(_sfc_main$10, {
|
|
347
435
|
key: 1,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
"
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
"aria-label"
|
|
384
|
-
])) : hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_14, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
385
|
-
createElementVNode("span", _hoisted_15, [
|
|
386
|
-
__props.superheading && __props.superheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.superheadingHref, false, __props.as)), {
|
|
387
|
-
key: 0,
|
|
388
|
-
class: "astryx-side-nav-heading__super astryx-side-nav-heading__link",
|
|
389
|
-
href: __props.superheadingHref,
|
|
390
|
-
to: __props.as != null ? __props.superheadingHref : void 0
|
|
391
|
-
}, {
|
|
392
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.superheading), 1)]),
|
|
393
|
-
_: 1
|
|
394
|
-
}, 8, ["href", "to"])) : __props.superheading ? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(__props.superheading), 1)) : createCommentVNode("v-if", true),
|
|
395
|
-
createElementVNode("span", _hoisted_17, [__props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
396
|
-
key: 0,
|
|
397
|
-
class: "astryx-side-nav-heading__title astryx-side-nav-heading__link",
|
|
398
|
-
href: __props.headingHref,
|
|
399
|
-
to: __props.as != null ? __props.headingHref : void 0
|
|
400
|
-
}, {
|
|
401
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.heading), 1)]),
|
|
402
|
-
_: 1
|
|
403
|
-
}, 8, ["href", "to"])) : (openBlock(), createElementBlock("span", _hoisted_18, toDisplayString(__props.heading), 1)), createElementVNode("button", {
|
|
404
|
-
type: "button",
|
|
405
|
-
class: "astryx-side-nav-heading__chevron",
|
|
406
|
-
"aria-label": unref(messages).nav.openMenu,
|
|
407
|
-
"aria-expanded": isOpen ? "true" : "false",
|
|
408
|
-
"aria-controls": panelId,
|
|
409
|
-
"aria-haspopup": "menu"
|
|
410
|
-
}, [createVNode(_sfc_main$6, {
|
|
411
|
-
icon: "chevronDown",
|
|
412
|
-
size: "sm",
|
|
413
|
-
class: normalizeClass({ "astryx-side-nav-heading__chevron-icon--open": isOpen })
|
|
414
|
-
}, null, 8, ["class"])], 8, _hoisted_19)]),
|
|
415
|
-
__props.subheading && __props.subheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.subheadingHref, false, __props.as)), {
|
|
416
|
-
key: 2,
|
|
417
|
-
class: "astryx-side-nav-heading__sub astryx-side-nav-heading__link",
|
|
418
|
-
href: __props.subheadingHref,
|
|
419
|
-
to: __props.as != null ? __props.subheadingHref : void 0
|
|
420
|
-
}, {
|
|
421
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.subheading), 1)]),
|
|
422
|
-
_: 1
|
|
423
|
-
}, 8, ["href", "to"])) : __props.subheading ? (openBlock(), createElementBlock("span", _hoisted_20, toDisplayString(__props.subheading), 1)) : createCommentVNode("v-if", true)
|
|
424
|
-
]),
|
|
425
|
-
_ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_21, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
|
|
426
|
-
], 8, _hoisted_13)]),
|
|
427
|
-
default: withCtx(({ close }) => [createElementVNode("div", _hoisted_22, [renderSlot(_ctx.$slots, "menu", { close })])]),
|
|
428
|
-
_: 3
|
|
429
|
-
}, 8, ["label"])) : !collapsed.value ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
430
|
-
hasIcon.value && __props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
431
|
-
key: 0,
|
|
432
|
-
class: "astryx-side-nav-heading__icon",
|
|
433
|
-
href: __props.headingHref,
|
|
434
|
-
to: __props.as != null ? __props.headingHref : void 0,
|
|
435
|
-
"aria-label": __props.heading
|
|
436
|
-
}, {
|
|
437
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
438
|
-
_: 3
|
|
439
|
-
}, 8, [
|
|
440
|
-
"href",
|
|
441
|
-
"to",
|
|
442
|
-
"aria-label"
|
|
443
|
-
])) : hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_24, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
444
|
-
createElementVNode("span", _hoisted_25, [
|
|
445
|
-
__props.superheading && __props.superheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.superheadingHref, false, __props.as)), {
|
|
446
|
-
key: 0,
|
|
447
|
-
class: "astryx-side-nav-heading__super astryx-side-nav-heading__link",
|
|
448
|
-
href: __props.superheadingHref,
|
|
449
|
-
to: __props.as != null ? __props.superheadingHref : void 0
|
|
450
|
-
}, {
|
|
451
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.superheading), 1)]),
|
|
452
|
-
_: 1
|
|
453
|
-
}, 8, ["href", "to"])) : __props.superheading ? (openBlock(), createElementBlock("span", _hoisted_26, toDisplayString(__props.superheading), 1)) : createCommentVNode("v-if", true),
|
|
454
|
-
__props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
455
|
-
key: 2,
|
|
456
|
-
class: "astryx-side-nav-heading__title astryx-side-nav-heading__link",
|
|
457
|
-
href: __props.headingHref,
|
|
458
|
-
to: __props.as != null ? __props.headingHref : void 0
|
|
459
|
-
}, {
|
|
460
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.heading), 1)]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["href", "to"])) : (openBlock(), createElementBlock("span", _hoisted_27, toDisplayString(__props.heading), 1)),
|
|
463
|
-
__props.subheading && __props.subheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.subheadingHref, false, __props.as)), {
|
|
464
|
-
key: 4,
|
|
465
|
-
class: "astryx-side-nav-heading__sub astryx-side-nav-heading__link",
|
|
466
|
-
href: __props.subheadingHref,
|
|
467
|
-
to: __props.as != null ? __props.subheadingHref : void 0
|
|
468
|
-
}, {
|
|
469
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.subheading), 1)]),
|
|
470
|
-
_: 1
|
|
471
|
-
}, 8, ["href", "to"])) : __props.subheading ? (openBlock(), createElementBlock("span", _hoisted_28, toDisplayString(__props.subheading), 1)) : createCommentVNode("v-if", true)
|
|
472
|
-
]),
|
|
473
|
-
_ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_29, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
|
|
474
|
-
])) : createCommentVNode("v-if", true);
|
|
436
|
+
kind: "side",
|
|
437
|
+
as: __props.as,
|
|
438
|
+
heading: __props.heading,
|
|
439
|
+
"heading-href": __props.headingHref,
|
|
440
|
+
"logo-label": __props.logoLabel,
|
|
441
|
+
subheading: __props.subheading,
|
|
442
|
+
"subheading-href": __props.subheadingHref,
|
|
443
|
+
superheading: __props.superheading,
|
|
444
|
+
"superheading-href": __props.superheadingHref
|
|
445
|
+
}, createSlots({ _: 2 }, [
|
|
446
|
+
hasIcon.value ? {
|
|
447
|
+
name: "icon",
|
|
448
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
449
|
+
key: "0"
|
|
450
|
+
} : void 0,
|
|
451
|
+
unref(slots).end ? {
|
|
452
|
+
name: "end",
|
|
453
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "end")]),
|
|
454
|
+
key: "1"
|
|
455
|
+
} : void 0,
|
|
456
|
+
hasMenu.value ? {
|
|
457
|
+
name: "menu",
|
|
458
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "menu", normalizeProps(guardReactiveProps(scope)))]),
|
|
459
|
+
key: "2"
|
|
460
|
+
} : void 0
|
|
461
|
+
]), 1032, [
|
|
462
|
+
"as",
|
|
463
|
+
"heading",
|
|
464
|
+
"heading-href",
|
|
465
|
+
"logo-label",
|
|
466
|
+
"subheading",
|
|
467
|
+
"subheading-href",
|
|
468
|
+
"superheading",
|
|
469
|
+
"superheading-href"
|
|
470
|
+
]));
|
|
475
471
|
};
|
|
476
472
|
}
|
|
477
473
|
});
|
package/dist/Stepper/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-BqhVCgC-.js";
|
|
2
2
|
export { _sfc_main as Step, _sfc_main$1 as Stepper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
4
4
|
import "../styles/stepper.css";
|
|
5
5
|
//#region src/Stepper/context.ts
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-
|
|
1
|
+
import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-EtZgovdH.js";
|
|
2
2
|
export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
|
package/dist/TabList/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as _sfc_main$2 } from "../TabList-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as _sfc_main$2 } from "../TabList-BlzkrObv.js";
|
|
2
2
|
export { _sfc_main as Tab, _sfc_main$1 as TabList, _sfc_main$2 as TabMenu };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { t as useDismiss } from "./useDismiss-Cj8x_51F.js";
|
|
2
2
|
import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
|
|
3
3
|
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
4
|
-
import { t as _sfc_main$3 } from "./Icon-
|
|
4
|
+
import { t as _sfc_main$3 } from "./Icon-bteSId7T.js";
|
|
5
5
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, toDisplayString, unref, useId, watch } from "vue";
|
|
6
6
|
import "../styles/tab-list.css";
|
|
7
7
|
import "../styles/tab-menu.css";
|
package/dist/Table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as useTableColumnSettings, B as resolveColumnWidths, C as isInteractiveRowClick, D as applyTableFilters, E as useTableGroupedRows, F as generateColumns, I as paginateData, L as pixel, M as useTableColumnResize, N as capitalize, O as useTableFilterState, P as cellText, R as proportional, S as useTablePagination, T as isTableGroupHeader, V as sortRows, _ as useTableSelection, a as _sfc_main$3, b as useTableRowIndex, c as _sfc_main, d as useTableTreeState, f as resolveStickySide, g as useTableSortableState, h as useTableSortable, i as _sfc_main$4, j as useTableColumnSettingsState, k as useTableFiltering, l as flattenTree, m as useTableStickyColumns, n as _sfc_main$6, o as _sfc_main$2, p as stickyOffsets, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableTreeData, v as useTableSelectionState, w as buildGroupedRows, x as useTableRowExpansion, y as useTableRowStatus, z as resolveColumnFloorWidths } from "../Table-
|
|
1
|
+
import { A as useTableColumnSettings, B as resolveColumnWidths, C as isInteractiveRowClick, D as applyTableFilters, E as useTableGroupedRows, F as generateColumns, I as paginateData, L as pixel, M as useTableColumnResize, N as capitalize, O as useTableFilterState, P as cellText, R as proportional, S as useTablePagination, T as isTableGroupHeader, V as sortRows, _ as useTableSelection, a as _sfc_main$3, b as useTableRowIndex, c as _sfc_main, d as useTableTreeState, f as resolveStickySide, g as useTableSortableState, h as useTableSortable, i as _sfc_main$4, j as useTableColumnSettingsState, k as useTableFiltering, l as flattenTree, m as useTableStickyColumns, n as _sfc_main$6, o as _sfc_main$2, p as stickyOffsets, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableTreeData, v as useTableSelectionState, w as buildGroupedRows, x as useTableRowExpansion, y as useTableRowStatus, z as resolveColumnFloorWidths } from "../Table-CsdH8fCB.js";
|
|
2
2
|
export { _sfc_main as Table, _sfc_main$1 as TableBody, _sfc_main$2 as TableCell, _sfc_main$3 as TableFooter, _sfc_main$4 as TableHeader, _sfc_main$5 as TableHeaderCell, _sfc_main$6 as TableRow, _sfc_main$7 as TableSelectionToolbar, applyTableFilters, buildGroupedRows, capitalize, cellText, flattenTree, generateColumns, isInteractiveRowClick, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTableGroupedRows, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as _sfc_main$14 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as _sfc_main$15 } from "./Button-DrqeomlE.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as _sfc_main$16 } from "./Tooltip-
|
|
3
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
4
|
+
import { t as _sfc_main$16 } from "./Tooltip-C2fh9anJ.js";
|
|
5
5
|
import { t as _sfc_main$17 } from "./IconButton-BNQuz9W_.js";
|
|
6
|
-
import { t as _sfc_main$18 } from "./Icon-
|
|
7
|
-
import { t as _sfc_main$19 } from "./CheckboxInput-
|
|
8
|
-
import { t as _sfc_main$20 } from "./Popover-
|
|
9
|
-
import { t as _sfc_main$21 } from "./Pagination-
|
|
10
|
-
import { t as _sfc_main$22 } from "./Selector-
|
|
6
|
+
import { t as _sfc_main$18 } from "./Icon-bteSId7T.js";
|
|
7
|
+
import { t as _sfc_main$19 } from "./CheckboxInput-25Q8ItH-.js";
|
|
8
|
+
import { t as _sfc_main$20 } from "./Popover-D7zqpFwU.js";
|
|
9
|
+
import { t as _sfc_main$21 } from "./Pagination-CNe9F6Fl.js";
|
|
10
|
+
import { t as _sfc_main$22 } from "./Selector-5N-hq2nF.js";
|
|
11
11
|
import { t as _sfc_main$23 } from "./TextInput-BasnjVvy.js";
|
|
12
12
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, watch, withCtx, withModifiers } from "vue";
|
|
13
13
|
import "../styles/table.css";
|