@astryx-vue/core 0.30.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B_p1yL3k.js → AlertDialog-C5pc5nQN.js} +6 -6
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-D3KZSLvb.js → AppShell-B7dkDyY8.js} +4 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-IVvsyeGV.js → Avatar-CYW9ZTD3.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DKmvoMxD.js → Banner-BNrs2Ptl.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-CQGtoh2x.js → BottomSheet-CAJJ8cR5.js} +3 -3
- package/dist/{BottomSheet-Btf8Yn8k.js → BottomSheet-Z92IvLBU.js} +4 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D6825HQI.js → Breadcrumbs-CnvaPn8M.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DdPty46q.js → Button-CzMWqCpJ.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BNr79JpP.js → Carousel-BjyedZ0Y.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BadS0fEx.js → Chat-CJr2RIyc.js} +11 -11
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CzP8gP3v.js → CheckboxInput-BrbQTrL-.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CxBjpX3d.js → CheckboxListItem-CrAzFR4x.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-5rZyPwty.js → Code-_PngYOKp.js} +2 -0
- package/dist/{CodeBlock-Cgm4uOhG.js → CodeBlock-pWPw1-iu.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-CfTN722D.js → Collapsible-DXl9RRaX.js} +2 -2
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BgVwGtdA.js → CommandPalette-DnbvnT4c.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DqWJVx7H.js → ComplexSelector-DWQbuovE.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-C9dJGu3M.js → ContextMenu-DfoShDVW.js} +168 -143
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CGKaozkw.js → DateInput-D9_QsZMj.js} +10 -10
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BVHXgzXz.js → DateRangeInput-8P8i8aVI.js} +5 -5
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DRm3lekJ.js → DateTimeInput-C2XWslHp.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dt0gNuMT.js → Dialog-B1Hlr0x_.js} +2 -2
- package/dist/{Dialog-BN-NycQr.js → Dialog-Cet6PTnf.js} +1 -1
- package/dist/{DialogHeader-CSH2_5v-.js → DialogHeader-BiHQct4G.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-PeMgE4iA.js → Drawer-Bm3l7Dey.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -3
- package/dist/{DropdownMenu-_lQQyQCn.js → DropdownMenu-BaRXEFLa.js} +1084 -556
- package/dist/{DropdownMenuRadioItem.vue-C8rePTyz.d.ts → DropdownMenuRadioItem.vue-B4iwMWWD.d.ts} +16 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BGo1nrnT.js → EmptyState-CXDlpIdI.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-D-fRqyso.js → Field-njr7AUcW.js} +1 -1
- package/dist/{FieldInfoTip-Bstp5Lvd.js → FieldInfoTip-DLqZykVm.js} +1 -1
- package/dist/{FieldLabel-lV_qLaGp.js → FieldLabel-CyL5D1lu.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CTNnDIkm.js → FileInput-CtqZSRdh.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BFK3PftX.js → Heading-BXTbW_px.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DGjsPn-Q.js → HoverCard-zVUEeqF2.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DPezhVBA.js → IconButton-CoZFp0CP.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-B4BFfLtT.js → InfoTip-Eg2IGZJw.js} +1 -1
- package/dist/{InputClearButton-CxU3iv-5.js → InputClearButton-CBsL91my.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CraWGK6Y.js → InputGroup-BE83-MCX.js} +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-C-hZoz8a.js → InternationalizationProvider-BAUKUK7N.js} +1 -1
- package/dist/{LayerContentBoundary-LCQLyxBT.js → LayerContentBoundary-DmRI6Bg0.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BNUG9CQ1.js → Lightbox-5PtYb0r4.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Bwgpn-di.js → Link-BzXVGE7G.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BlEi5UGN.js → Markdown-HDZPj9Vw.js} +3 -3
- package/dist/{MediaTheme-UM8oOqwX.js → MediaTheme-CBkEmVe4.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-wVa9dzH1.js → MobileNavToggle-CrUf5UPQ.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-MmvMRWv5.js → MoreMenu-DzpufGyj.js} +45 -16
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DXrKQLmq.js → MultiSelector-BS6wxlx4.js} +7 -7
- package/dist/{NavDisclosure-DsUYuMJr.js → NavDisclosure-BM0dJGLA.js} +1 -1
- package/dist/{NavHeadingSurface-QdM33nOf.js → NavHeadingSurface-CuQnoV_V.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-NCg3VjAQ.js → NavMenu-fXsoJKjW.js} +3 -3
- package/dist/{NavMenuItem-Bla6fYVl.js → NavMenuItem-BKY6eRkz.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DicgvFte.js → NumberInput-Ueted2wi.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DlO_97b4.js → Outline-CnSt_KvS.js} +3 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BYYz3ePw.js → OverflowList-KpebInhH.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DM_W9Ue-.js → Pagination-BliQ5RGN.js} +2 -2
- package/dist/Popover/index.d.ts +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CxReY-4u.js → Popover-DXfXGrWG.js} +9 -9
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BwUWZG3p.js → PowerSearch-CmJKFEEu.js} +25 -25
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DCAEXJuP.js → ProgressBar-Dj1ucJxG.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CsJYGjyx.js → RadioGroup-BLOjBRrM.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-Yc3K82YE.js → RadioListItem-CHxTpBva.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 +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-bH99g1vj.js → Selector-OhIdsI8A.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-C1ZxusAB.js → SideNav-CcdDU-hP.js} +8 -8
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bq_7Nskr.js → Slider-DjbWQ1wn.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DFJavm30.js → StatusDot-Bta_bpaZ.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DTPvMAxd.js → Switch-D4ojsj_l.js} +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C4i7UZkp.js → TabList-S99zXoRN.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-ClHIgsKO.js → Table-3NTjPpHc.js} +15 -15
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-D48QFTtL.js → Text-DNKNlENe.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-J2_wct0p.js → TextArea-DnSmL0A8.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Da1TYd57.js → TextInput-DyHEMYld.js} +4 -4
- package/dist/Theme/index.d.ts +4 -3
- package/dist/Theme/index.js +4 -3
- package/dist/{Theme-BmTbbiAD.js → Theme-CwruhtLu.js} +290 -62
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-1LsaJ4_m.js → Thumbnail-D8GlIdNm.js} +2 -2
- package/dist/{TimeField-i5ESA500.js → TimeField-ADeT0OA1.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-frnKZo1M.js → TimeInput-C1gzJGHk.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DgQdZAEa.js → Timer-DhI2oV5L.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-SseS_qtf.js → Timestamp-CTZSVsmd.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-tAq4S96S.js → Toast-DUqDW07c.js} +27 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B6hBzeVl.js → ToggleButton-BMBH2tmu.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-iFZAuIwu.js → Tokenizer-C0CdEzQT.js} +13 -13
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CxzlUVN0.js → Tooltip-CEyd_iFa.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CcIayfsW.js → TopNav-BObecD_X.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Da_OKrv_.js → TreeList-CsgXzBdm.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BD6xXNKh.js → Typeahead-C_0dTmaf.js} +5 -5
- package/dist/{useMenuDrillIn-Cj6MM77J.js → accessibleName-Cq7krRE-.js} +118 -27
- package/dist/{adaptationTypes-Cn_pfrsw.d.ts → adaptationTypes-D874ONPJ.d.ts} +28 -6
- package/dist/{animator-CEHDYTfQ.js → animator-C0kqgDUJ.js} +3 -2
- package/dist/{assertOptions-CJgNig1l.js → assertOptions-Km_9Y5rI.js} +2 -2
- package/dist/{batch-D2a2MsSW.js → batch-DPlrpYU6.js} +3 -2
- package/dist/compactDefinition-BeFUKEFg.js +29 -0
- package/dist/compactDefinition-CMTR5KqU.d.ts +19 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +11 -11
- package/dist/{composables-Bs0O_SRd.js → composables-kHI1dSq2.js} +4 -4
- package/dist/{context-NKb_prrS.js → context-ZWA02GaM.js} +1 -1
- package/dist/{edge-tj-cLZYh.js → edge-DFaE6rUg.js} +1 -1
- package/dist/{edgeRide-DcUqLXE2.js → edgeRide-UdNxbwxY.js} +2 -2
- package/dist/{index-m3DOxOw6.d.ts → index-4m5X7IYX.d.ts} +69 -69
- package/dist/{index-BIqW3_GP.d.ts → index-B83v2qNb.d.ts} +2 -2
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-C6IcBhAn.d.ts → index-BIiG1CF_.d.ts} +2 -2
- package/dist/{index-DHUCHxn2.d.ts → index-BWWirRm3.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-BpFzfJbo.d.ts} +1 -1
- package/dist/{index-3qz8Qztx.d.ts → index-Bxus0zuz.d.ts} +8 -8
- package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-DE-QPNz0.d.ts → index-C943VIzi.d.ts} +3 -2
- package/dist/{index-DYabo8TI.d.ts → index-CHLZPpjQ.d.ts} +3 -3
- package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-D14kSf-g.d.ts → index-CQi9WGWE.d.ts} +1 -1
- package/dist/{index-Bh-GqMzd.d.ts → index-CdRxeyhB.d.ts} +30 -2
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-Cw4CUe06.d.ts → index-Cj-Ob5jw.d.ts} +6 -6
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-Ea2V_FSK.d.ts → index-DAEgHJTK.d.ts} +4 -4
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-668zPVsH.d.ts → index-DkYOGpsC.d.ts} +1 -1
- package/dist/{index-DVS4jM-l.d.ts → index-DogWVRJi.d.ts} +1 -1
- package/dist/{index-CTXG-KKT.d.ts → index-EUzmHHm6.d.ts} +2 -1
- package/dist/{index-Bu4R0WZA.d.ts → index-ILJ7sKx3.d.ts} +3 -3
- package/dist/{index-BenG-F5d.d.ts → index-maTGrWjF.d.ts} +1 -1
- package/dist/{index-CEtFUoIm.d.ts → index-o3JHyrk8.d.ts} +1 -1
- package/dist/index.d.ts +31 -30
- package/dist/index.js +99 -98
- package/dist/{landing-Bi7X7w_7.js → landing-CSCE9afT.js} +1 -1
- package/dist/{layerDepth-D3Rh8T5C.js → layerDepth-8jb4An1z.js} +1 -1
- package/dist/lazyBottomSheet-CNYA5qOy.js +25 -0
- package/dist/{linearEasing-ScK9LqAY.js → linearEasing-BiRVC8Mq.js} +1 -22
- package/dist/locale/index.js +3 -3
- package/dist/{locale-CVpkedoa.js → locale-C9LWi1y1.js} +1 -1
- package/dist/{menuActivation-BqiaK6ot.js → menuActivation-BQqnzKAX.js} +8 -1
- package/dist/{presentationHold-7IkbR4d8.js → presentationHold-B4tK68sd.js} +3 -29
- package/dist/reducedMotionMark-CYSyfURo.js +34 -0
- package/dist/{resolveMotion-1cwESYvK.js → resolveMotion-B9NDPeUz.js} +1 -1
- package/dist/{stillPointerGate-BbMABRyU.js → stillPointerGate-CpzpYNqy.js} +1 -1
- package/dist/{themeTiming-NUkH9HsU.js → themeTiming-D1U0redl.js} +1 -111
- package/dist/tokenReferences-sKpv-7_O.js +167 -0
- package/dist/{tooltipFocusRules-CpUOvFEU.js → tooltipFocusRules-BfnTnTpn.js} +2 -2
- package/dist/{tooltipTriggerRules-zN2xGd9K.js → tooltipTriggerRules-BRdKWVzo.js} +1 -1
- package/dist/{types-BA1veIoa.d.ts → types-D97oBk6c.d.ts} +1 -1
- package/dist/{useCombobox-BqkTY3bw.js → useCombobox-DkwiskdE.js} +1 -1
- package/dist/{useDismiss-BKtyCwx4.js → useDismiss-fhWaGqY8.js} +1 -1
- package/dist/{useFocusTrap-BD9POtMp.js → useFocusTrap-DT2UCZd-.js} +1 -1
- package/dist/{useHeldPresentation-7MH-RlSF.js → useHeldPresentation-BF5vGVUn.js} +1 -1
- package/dist/{useInputStatusIcon-BqV6YzTV.js → useInputStatusIcon-B1i0sFKu.js} +1 -1
- package/dist/{useMenuPress-DcwVUsQO.js → useMenuPress-CBtTaYOS.js} +71 -4
- package/dist/{useResizable-hv4NYIUi.js → useResizable-AfPBAq5c.js} +1 -1
- package/dist/{useTooltip-DvBKna-w.js → useTooltip-llyJd1q6.js} +4 -4
- package/dist/{useTouchTriggerInternal-Bl602PtA.js → useTouchTriggerInternal-DzsFiDjb.js} +1 -1
- package/dist/{useTruncationTooltip-DNAii2Nv.js → useTruncationTooltip-BFm7XgvO.js} +3 -3
- package/dist/{useTypeahead-BGpvWkzm.js → useTypeahead-8Y5m41VA.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-BT9Lwsu7.js → useTypeaheadMenuConfig-Cy-gOjVd.js} +2 -2
- package/package.json +1 -1
- package/reset.css +1 -1
- package/styles/chat.css +5 -5
- package/styles/drawer.css +9 -0
- package/styles/dropdown-menu.css +5 -0
- package/dist/DropdownMenu-C9bvYZPt.js +0 -489
- package/dist/lazyBottomSheet-BVZ1yH8g.js +0 -16
- package/dist/motionTokenDefaults-EFzpiAF5.js +0 -38
- package/dist/useSubmenuMode-CZN9qrUo.js +0 -37
- package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
- package/dist/{loadCatalog-FwMzmCx1.js → loadCatalog-zJKVLZ89.js} +1 -1
|
@@ -3,9 +3,9 @@ import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
|
3
3
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
4
4
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
5
5
|
import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
|
|
6
|
-
import { t as useCombobox } from "./useCombobox-
|
|
6
|
+
import { t as useCombobox } from "./useCombobox-DkwiskdE.js";
|
|
7
7
|
import { t as _sfc_main$3 } from "./Spinner-DEVPDsD0.js";
|
|
8
|
-
import { t as createStillPointerGate } from "./stillPointerGate-
|
|
8
|
+
import { t as createStillPointerGate } from "./stillPointerGate-CpzpYNqy.js";
|
|
9
9
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
10
10
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
11
11
|
import "../styles/layer.css";
|
package/package.json
CHANGED
package/reset.css
CHANGED
package/styles/chat.css
CHANGED
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
box-sizing: border-box;
|
|
873
873
|
width: 100%;
|
|
874
874
|
min-width: 0;
|
|
875
|
-
--_chat-composer-radius: var(--astryx-radius-chat,
|
|
875
|
+
--_chat-composer-radius: var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem));
|
|
876
876
|
--_chat-composer-padding: var(--astryx-spacing-3, 12px);
|
|
877
877
|
--astryx-button-radius: max(
|
|
878
878
|
var(--astryx-radius-element, 0.625rem),
|
|
@@ -1151,12 +1151,12 @@
|
|
|
1151
1151
|
padding-inline: var(--astryx-spacing-4, 16px);
|
|
1152
1152
|
padding-block-start: var(--astryx-spacing-3, 12px);
|
|
1153
1153
|
/* 抽屉塞在输入区正文后面一个圆角的高度,顶部圆角和这段塞入量都跟着输入区自己的圆角;单独使用时取聊天圆角。 */
|
|
1154
|
-
padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--_chat-composer-radius, var(--astryx-radius-chat,
|
|
1155
|
-
margin-block-end: calc(-1 * var(--_chat-composer-radius, var(--astryx-radius-chat,
|
|
1154
|
+
padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem))));
|
|
1155
|
+
margin-block-end: calc(-1 * var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem))));
|
|
1156
1156
|
background-color: var(--astryx-color-background-surface);
|
|
1157
1157
|
background-image: linear-gradient(var(--astryx-color-background-muted), var(--astryx-color-background-muted));
|
|
1158
|
-
border-start-start-radius: var(--_chat-composer-radius, var(--astryx-radius-chat,
|
|
1159
|
-
border-start-end-radius: var(--_chat-composer-radius, var(--astryx-radius-chat,
|
|
1158
|
+
border-start-start-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem)));
|
|
1159
|
+
border-start-end-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, var(--astryx-radius-container, 0.75rem)));
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
.astryx-chat-drawer__toggle {
|
package/styles/drawer.css
CHANGED
|
@@ -22,6 +22,15 @@
|
|
|
22
22
|
padding-block-end: env(safe-area-inset-bottom, 0px);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/*
|
|
26
|
+
* 主题给抽屉写的内边距走 `--astryx-drawer-padding`,没写就沿用对话框的。
|
|
27
|
+
* 对话框内层读的是 `--_dialog-padding`(组件自己的 padding 属性)和
|
|
28
|
+
* `--astryx-dialog-padding`,这里在它们之间插入抽屉自己的那一层。
|
|
29
|
+
*/
|
|
30
|
+
.astryx-drawer .astryx-dialog__inner {
|
|
31
|
+
--_dialog-pad-block-start: var(--_dialog-padding, var(--astryx-drawer-padding, var(--astryx-dialog-padding, var(--astryx-spacing-4, 1rem))));
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
.astryx-drawer[open] {
|
|
26
35
|
animation: astryx-drawer-slide-in var(--astryx-duration-medium, 200ms) var(--astryx-ease-standard, ease-out) both;
|
|
27
36
|
}
|
package/styles/dropdown-menu.css
CHANGED
|
@@ -157,6 +157,11 @@
|
|
|
157
157
|
background-color: var(--astryx-dropdown-menu-hover-background, light-dark(#0536590c, #ffffff0c));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
/* A row a held finger or pen lights paints as pressed; a held mouse keeps the hover tint. */
|
|
161
|
+
.astryx-dropdown-menu .astryx-item.astryx-dropdown-menu-item[data-astryx-menu-press-lit]:focus {
|
|
162
|
+
background-color: var(--astryx-dropdown-menu-pressed-background, light-dark(#05365919, #ffffff19));
|
|
163
|
+
}
|
|
164
|
+
|
|
160
165
|
.astryx-dropdown-menu .astryx-item.astryx-dropdown-menu-item[data-disabled='true'] {
|
|
161
166
|
cursor: default;
|
|
162
167
|
}
|
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-Dk0jccgU.js";
|
|
2
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BKtyCwx4.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./LayerContentBoundary-LCQLyxBT.js";
|
|
4
|
-
import { a as isMenuPressActivation } from "./useMenuPress-DcwVUsQO.js";
|
|
5
|
-
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./Item-C9u_kQUO.js";
|
|
7
|
-
import { n as useDropdownMenuMessages, s as useDropdownMenuContext } from "./useMenuDrillIn-Cj6MM77J.js";
|
|
8
|
-
import { a as _sfc_main$5, c as _sfc_main$4, i as activateFocusedMenuItem, n as useMenuRegions, r as useMenuFocus } from "./DropdownMenu-_lQQyQCn.js";
|
|
9
|
-
import { n as clampInlineSize, r as isIntrinsicInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
10
|
-
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
11
|
-
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
|
12
|
-
import { t as useMenuHover } from "./useMenuHover-DoBatZeD.js";
|
|
13
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref, useId, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
14
|
-
import "../styles/dropdown-menu.css";
|
|
15
|
-
//#region src/DropdownMenu/DropdownMenuSubMenu.vue
|
|
16
|
-
const _hoisted_1 = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "astryx-dropdown-menu-spinner",
|
|
19
|
-
"aria-hidden": "true"
|
|
20
|
-
};
|
|
21
|
-
const _hoisted_2 = [
|
|
22
|
-
"role",
|
|
23
|
-
"aria-label",
|
|
24
|
-
"aria-labelledby",
|
|
25
|
-
"aria-modal",
|
|
26
|
-
"hidden"
|
|
27
|
-
];
|
|
28
|
-
const _hoisted_3 = ["aria-label", "aria-labelledby"];
|
|
29
|
-
const _hoisted_4 = [
|
|
30
|
-
"role",
|
|
31
|
-
"aria-label",
|
|
32
|
-
"aria-labelledby",
|
|
33
|
-
"aria-modal",
|
|
34
|
-
"data-overflow"
|
|
35
|
-
];
|
|
36
|
-
const _hoisted_5 = ["aria-label", "aria-labelledby"];
|
|
37
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
38
|
-
name: "AstryxDropdownMenuSubMenu",
|
|
39
|
-
inheritAttrs: false,
|
|
40
|
-
__name: "DropdownMenuSubMenu",
|
|
41
|
-
props: {
|
|
42
|
-
label: {},
|
|
43
|
-
icon: {},
|
|
44
|
-
description: {},
|
|
45
|
-
isDisabled: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
hasSpinner: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
},
|
|
53
|
-
menuWidth: {},
|
|
54
|
-
presentation: { default: "adaptive" }
|
|
55
|
-
},
|
|
56
|
-
emits: ["openChange"],
|
|
57
|
-
setup(__props, { emit: __emit }) {
|
|
58
|
-
const props = __props;
|
|
59
|
-
const emit = __emit;
|
|
60
|
-
const slots = useSlots();
|
|
61
|
-
const messages = useDropdownMenuMessages();
|
|
62
|
-
const menu = useDropdownMenuContext();
|
|
63
|
-
const rowComponent = ref(null);
|
|
64
|
-
const rowRef = computed(() => rowComponent.value?.element ?? null);
|
|
65
|
-
const flyoutRef = ref(null);
|
|
66
|
-
const drillRef = ref(null);
|
|
67
|
-
const flyoutOpen = ref(false);
|
|
68
|
-
const viewId = useId();
|
|
69
|
-
const menuSize = computed(() => menu?.menuSize.value ?? "md");
|
|
70
|
-
const density = computed(() => menuSize.value === "sm" ? "compact" : "balanced");
|
|
71
|
-
const hasStart = computed(() => slots.icon != null || props.icon != null);
|
|
72
|
-
const hasRegions = computed(() => slots.header != null || slots.footer != null);
|
|
73
|
-
const headerRef = ref(null);
|
|
74
|
-
const footerRef = ref(null);
|
|
75
|
-
const regionMenuRef = ref(null);
|
|
76
|
-
function setHeader(el) {
|
|
77
|
-
headerRef.value = el ?? null;
|
|
78
|
-
}
|
|
79
|
-
function setFooter(el) {
|
|
80
|
-
footerRef.value = el ?? null;
|
|
81
|
-
}
|
|
82
|
-
function setRegionMenu(el) {
|
|
83
|
-
regionMenuRef.value = el ?? null;
|
|
84
|
-
}
|
|
85
|
-
const stringLabel = computed(() => typeof props.label === "string" && props.label !== "" ? props.label : void 0);
|
|
86
|
-
const hasNodeLabel = computed(() => stringLabel.value == null && slots.label != null);
|
|
87
|
-
const nodeLabelId = `astryx-dropdown-submenu-label-${useId()}`;
|
|
88
|
-
const nodeLabelText = ref();
|
|
89
|
-
const viewLabelledBy = computed(() => hasNodeLabel.value ? nodeLabelId : void 0);
|
|
90
|
-
function readNodeLabelText() {
|
|
91
|
-
const element = document.getElementById(nodeLabelId);
|
|
92
|
-
if (element == null) return void 0;
|
|
93
|
-
const copy = element.cloneNode(true);
|
|
94
|
-
for (const hidden of copy.querySelectorAll("[aria-hidden=\"true\"]")) hidden.remove();
|
|
95
|
-
return copy.textContent?.replace(/\s+/g, " ").trim() || void 0;
|
|
96
|
-
}
|
|
97
|
-
const focus = useMenuFocus({ list: flyoutRef });
|
|
98
|
-
const drillFocus = useMenuFocus({ list: drillRef });
|
|
99
|
-
const hasOverflow = useOverflow(flyoutRef, flyoutOpen);
|
|
100
|
-
/** Tab 循环里的「菜单」那一站:有头尾时是里层的 `role="menu"`,否则就是整个飞出层。 */
|
|
101
|
-
const menuStop = computed(() => hasRegions.value ? regionMenuRef.value : flyoutRef.value);
|
|
102
|
-
const regions = useMenuRegions({
|
|
103
|
-
header: headerRef,
|
|
104
|
-
footer: footerRef,
|
|
105
|
-
menu: menuStop,
|
|
106
|
-
hasRegions,
|
|
107
|
-
closeMenu: () => closeFlyout(true)
|
|
108
|
-
});
|
|
109
|
-
const mode = useSubmenuMode({
|
|
110
|
-
drillIn: computed(() => menu?.drillIn.value),
|
|
111
|
-
presentation: computed(() => props.presentation),
|
|
112
|
-
viewId
|
|
113
|
-
});
|
|
114
|
-
const isDrill = mode.isDrill;
|
|
115
|
-
const drillOnStack = mode.isOnStack;
|
|
116
|
-
const drillIsTop = mode.isTop;
|
|
117
|
-
const isShown = computed(() => isDrill.value ? drillOnStack.value : flyoutOpen.value);
|
|
118
|
-
watch(isShown, (shown) => {
|
|
119
|
-
if (shown && hasNodeLabel.value) nodeLabelText.value = readNodeLabelText();
|
|
120
|
-
});
|
|
121
|
-
const backLabel = computed(() => {
|
|
122
|
-
const parent = menu?.menuLabel.value;
|
|
123
|
-
return parent != null && parent !== "" ? messages.value.dropdownMenu.backTo(parent) : messages.value.dropdownMenu.back;
|
|
124
|
-
});
|
|
125
|
-
const { position, teleportTarget } = usePositionedLayer({
|
|
126
|
-
anchor: rowRef,
|
|
127
|
-
layer: flyoutRef,
|
|
128
|
-
isOpen: flyoutOpen,
|
|
129
|
-
placement: computed(() => "end"),
|
|
130
|
-
alignment: computed(() => "start"),
|
|
131
|
-
gap: 4
|
|
132
|
-
});
|
|
133
|
-
const flyoutStyle = computed(() => {
|
|
134
|
-
const style = {
|
|
135
|
-
top: `${position.value.top}px`,
|
|
136
|
-
left: `${position.value.left}px`,
|
|
137
|
-
zIndex: 1001
|
|
138
|
-
};
|
|
139
|
-
if (props.menuWidth == null) return style;
|
|
140
|
-
const width = (typeof props.menuWidth === "number" ? `${props.menuWidth}px` : props.menuWidth).trim();
|
|
141
|
-
if (isIntrinsicInlineSize(width)) style.width = width;
|
|
142
|
-
else style.minWidth = clampInlineSize(width);
|
|
143
|
-
return style;
|
|
144
|
-
});
|
|
145
|
-
const drillHost = computed(() => isDrill.value ? menu?.drillIn.value.host ?? null : null);
|
|
146
|
-
async function focusDrillFirst() {
|
|
147
|
-
await nextTick();
|
|
148
|
-
if (!drillFocus.focusFirst()) drillRef.value?.focus({ preventScroll: true });
|
|
149
|
-
}
|
|
150
|
-
async function openFlyout(options) {
|
|
151
|
-
if (props.isDisabled || menu?.isOpen.value === false) return;
|
|
152
|
-
const skipAutoFocus = options?.skipAutoFocus === true;
|
|
153
|
-
if (isDrill.value) {
|
|
154
|
-
const wasOpen = drillOnStack.value;
|
|
155
|
-
mode.openDrill();
|
|
156
|
-
if (!wasOpen) emit("openChange", true);
|
|
157
|
-
if (!skipAutoFocus) await focusDrillFirst();
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
if (!flyoutOpen.value) emit("openChange", true);
|
|
161
|
-
flyoutOpen.value = true;
|
|
162
|
-
if (skipAutoFocus) return;
|
|
163
|
-
await nextTick();
|
|
164
|
-
focus.focusFirst();
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* 焦点回到触发行。行的 `focus()` 只会找里面的链接或按钮,子菜单这一行两者都没有,
|
|
168
|
-
* 所以直接聚焦行元素本身。
|
|
169
|
-
*/
|
|
170
|
-
function focusRowElement() {
|
|
171
|
-
rowRef.value?.focus();
|
|
172
|
-
nextTick(() => rowRef.value?.focus());
|
|
173
|
-
}
|
|
174
|
-
function closeFlyout(focusRow = true) {
|
|
175
|
-
if (isDrill.value) {
|
|
176
|
-
if (!mode.closeDrill()) return;
|
|
177
|
-
emit("openChange", false);
|
|
178
|
-
if (focusRow) focusRowElement();
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
if (flyoutOpen.value) {
|
|
182
|
-
flyoutOpen.value = false;
|
|
183
|
-
emit("openChange", false);
|
|
184
|
-
}
|
|
185
|
-
if (focusRow) focusRowElement();
|
|
186
|
-
}
|
|
187
|
-
function onDrillKeydown(event) {
|
|
188
|
-
if (event.key === "Tab" && hasRegions.value) {
|
|
189
|
-
regions.moveDialogTab(event);
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
if (event.key === "Tab" && menu?.hasRegions.value) {
|
|
193
|
-
event.preventDefault();
|
|
194
|
-
event.stopPropagation();
|
|
195
|
-
closeFlyout(false);
|
|
196
|
-
menu.moveDialogTab(event, true);
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
if (event.key === "ArrowLeft" || event.key === "Escape") {
|
|
200
|
-
event.preventDefault();
|
|
201
|
-
event.stopPropagation();
|
|
202
|
-
closeFlyout(true);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
206
|
-
event.preventDefault();
|
|
207
|
-
event.stopPropagation();
|
|
208
|
-
if (event.repeat) return;
|
|
209
|
-
activateFocusedMenuItem(event);
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
event.stopPropagation();
|
|
213
|
-
drillFocus.handleKeyDown(event);
|
|
214
|
-
}
|
|
215
|
-
function onFlyoutKeydown(event) {
|
|
216
|
-
if (event.key === "Tab" && hasRegions.value) {
|
|
217
|
-
regions.moveDialogTab(event);
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
if (event.key === "Tab" && menu?.hasRegions.value) {
|
|
221
|
-
event.preventDefault();
|
|
222
|
-
event.stopPropagation();
|
|
223
|
-
closeFlyout(false);
|
|
224
|
-
menu.moveDialogTab(event, true);
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
if (event.key === "ArrowLeft" || event.key === "Escape") {
|
|
228
|
-
event.preventDefault();
|
|
229
|
-
event.stopPropagation();
|
|
230
|
-
closeFlyout(true);
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
234
|
-
event.preventDefault();
|
|
235
|
-
event.stopPropagation();
|
|
236
|
-
if (event.repeat) return;
|
|
237
|
-
activateFocusedMenuItem(event);
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
event.stopPropagation();
|
|
241
|
-
focus.handleKeyDown(event);
|
|
242
|
-
}
|
|
243
|
-
const emptyDrill = {
|
|
244
|
-
host: null,
|
|
245
|
-
isCompactTouch: false,
|
|
246
|
-
pop: () => {},
|
|
247
|
-
push: () => {},
|
|
248
|
-
viewStack: []
|
|
249
|
-
};
|
|
250
|
-
const nestedContext = {
|
|
251
|
-
closeMenu: () => {
|
|
252
|
-
closeFlyout(false);
|
|
253
|
-
menu?.closeMenu();
|
|
254
|
-
},
|
|
255
|
-
drillIn: computed(() => menu?.drillIn.value ?? emptyDrill),
|
|
256
|
-
focusRegion: (direction) => menu?.focusRegion(direction) ?? false,
|
|
257
|
-
moveDialogTab: (event, fromFlyout) => menu?.moveDialogTab(event, fromFlyout),
|
|
258
|
-
hasRegions: computed(() => menu?.hasRegions.value ?? false),
|
|
259
|
-
isOpen: computed(() => (menu?.isOpen.value ?? true) && isShown.value),
|
|
260
|
-
menuLabel: computed(() => stringLabel.value ?? (hasNodeLabel.value ? nodeLabelText.value : void 0) ?? menu?.menuLabel.value),
|
|
261
|
-
menuSize
|
|
262
|
-
};
|
|
263
|
-
const hover = useMenuHover({
|
|
264
|
-
show: (options) => void openFlyout(options),
|
|
265
|
-
hide: () => {
|
|
266
|
-
if (hasRegions.value && flyoutRef.value?.contains(document.activeElement)) return;
|
|
267
|
-
closeFlyout(false);
|
|
268
|
-
},
|
|
269
|
-
isOpen: flyoutOpen,
|
|
270
|
-
isEnabled: () => !props.isDisabled && !isDrill.value,
|
|
271
|
-
flyoutRef,
|
|
272
|
-
ownsFocus: false
|
|
273
|
-
});
|
|
274
|
-
watch(rowRef, (element) => {
|
|
275
|
-
hover.setTriggerEl(element);
|
|
276
|
-
}, { immediate: true });
|
|
277
|
-
function onRowClick(event) {
|
|
278
|
-
if (isDrill.value) {
|
|
279
|
-
openFlyout({ skipAutoFocus: event.detail > 0 || isMenuPressActivation() });
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
hover.triggerProps.onClick(event);
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* 关闭时焦点还留在面板里(Escape、外部关闭都会这样),就交还给触发行:
|
|
286
|
-
* 否则焦点会落进一个已经隐藏的容器。
|
|
287
|
-
*/
|
|
288
|
-
watch(flyoutOpen, (open, wasOpen) => {
|
|
289
|
-
if (open || !wasOpen) return;
|
|
290
|
-
if (isDrill.value) return;
|
|
291
|
-
const active = document.activeElement;
|
|
292
|
-
if (active instanceof Node && flyoutRef.value?.contains(active)) focusRowElement();
|
|
293
|
-
}, { flush: "pre" });
|
|
294
|
-
useDismiss({
|
|
295
|
-
container: flyoutRef,
|
|
296
|
-
trigger: rowRef,
|
|
297
|
-
isEnabled: computed(() => flyoutOpen.value && !isDrill.value),
|
|
298
|
-
onDismiss: () => closeFlyout(false),
|
|
299
|
-
onEscape: () => closeFlyout(true)
|
|
300
|
-
});
|
|
301
|
-
useDismiss({
|
|
302
|
-
container: drillRef,
|
|
303
|
-
isEnabled: drillIsTop,
|
|
304
|
-
onDismiss: () => {
|
|
305
|
-
if (drillIsTop.value) closeFlyout(true);
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
watch(() => menu?.isOpen.value, (open) => {
|
|
309
|
-
if (open) return;
|
|
310
|
-
hover.cancelPending();
|
|
311
|
-
if (!isDrill.value) closeFlyout(false);
|
|
312
|
-
});
|
|
313
|
-
watch(drillOnStack, (onStack, wasOnStack) => {
|
|
314
|
-
if (wasOnStack === true && !onStack && menu?.isOpen.value) focusRowElement();
|
|
315
|
-
});
|
|
316
|
-
return (_ctx, _cache) => {
|
|
317
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$3, mergeProps(_ctx.$attrs, {
|
|
318
|
-
ref_key: "rowComponent",
|
|
319
|
-
ref: rowComponent,
|
|
320
|
-
class: "astryx-dropdown-menu-item",
|
|
321
|
-
role: "menuitem",
|
|
322
|
-
"aria-haspopup": hasRegions.value ? "dialog" : "menu",
|
|
323
|
-
"aria-expanded": isShown.value,
|
|
324
|
-
"data-menu-size": menuSize.value,
|
|
325
|
-
"data-variant": "default",
|
|
326
|
-
density: density.value,
|
|
327
|
-
description: __props.description,
|
|
328
|
-
"is-disabled": __props.isDisabled,
|
|
329
|
-
label: __props.label,
|
|
330
|
-
tabindex: __props.isDisabled ? void 0 : -1,
|
|
331
|
-
"on-click": onRowClick,
|
|
332
|
-
onKeydown: [
|
|
333
|
-
_cache[0] || (_cache[0] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["right"])),
|
|
334
|
-
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["enter"])),
|
|
335
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["space"]))
|
|
336
|
-
],
|
|
337
|
-
onMouseenter: unref(hover).triggerProps.onMouseenter,
|
|
338
|
-
onMouseleave: unref(hover).triggerProps.onMouseleave
|
|
339
|
-
}), createSlots({
|
|
340
|
-
endContent: withCtx(() => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_1, [createVNode(_sfc_main$6, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
341
|
-
key: 1,
|
|
342
|
-
color: "secondary",
|
|
343
|
-
icon: "chevronRight",
|
|
344
|
-
size: "sm"
|
|
345
|
-
}))]),
|
|
346
|
-
_: 2
|
|
347
|
-
}, [
|
|
348
|
-
hasStart.value ? {
|
|
349
|
-
name: "startContent",
|
|
350
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$1, {
|
|
351
|
-
color: "secondary",
|
|
352
|
-
icon: __props.icon,
|
|
353
|
-
size: "sm"
|
|
354
|
-
}, null, 8, ["icon"])])]),
|
|
355
|
-
key: "0"
|
|
356
|
-
} : void 0,
|
|
357
|
-
unref(slots).label ? {
|
|
358
|
-
name: "label",
|
|
359
|
-
fn: withCtx(() => [hasNodeLabel.value ? (openBlock(), createElementBlock("span", {
|
|
360
|
-
key: 0,
|
|
361
|
-
id: nodeLabelId
|
|
362
|
-
}, [renderSlot(_ctx.$slots, "label")])) : renderSlot(_ctx.$slots, "label", {}, void 0, void 0, 1)]),
|
|
363
|
-
key: "1"
|
|
364
|
-
} : void 0,
|
|
365
|
-
unref(slots).description ? {
|
|
366
|
-
name: "description",
|
|
367
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
368
|
-
key: "2"
|
|
369
|
-
} : void 0
|
|
370
|
-
]), 1040, [
|
|
371
|
-
"aria-haspopup",
|
|
372
|
-
"aria-expanded",
|
|
373
|
-
"data-menu-size",
|
|
374
|
-
"density",
|
|
375
|
-
"description",
|
|
376
|
-
"is-disabled",
|
|
377
|
-
"label",
|
|
378
|
-
"tabindex",
|
|
379
|
-
"onMouseenter",
|
|
380
|
-
"onMouseleave"
|
|
381
|
-
]), drillHost.value ? (openBlock(), createBlock(Teleport, {
|
|
382
|
-
key: 0,
|
|
383
|
-
to: drillHost.value
|
|
384
|
-
}, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 键盘事件在面板根上接住再分发给头部、菜单和尾部,交互元素仍是里面的行和控件。 "), withDirectives(createElementVNode("div", {
|
|
385
|
-
ref_key: "drillRef",
|
|
386
|
-
ref: drillRef,
|
|
387
|
-
class: normalizeClass(["astryx-dropdown-menu-drill", { "is-frame": hasRegions.value }]),
|
|
388
|
-
role: hasRegions.value ? "dialog" : "menu",
|
|
389
|
-
"aria-label": stringLabel.value,
|
|
390
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
391
|
-
"aria-modal": hasRegions.value ? "true" : void 0,
|
|
392
|
-
hidden: unref(drillIsTop) ? void 0 : true,
|
|
393
|
-
tabindex: "-1",
|
|
394
|
-
onKeydown: onDrillKeydown
|
|
395
|
-
}, [createVNode(_sfc_main$2, null, {
|
|
396
|
-
default: withCtx(() => [createVNode(_sfc_main$4, { value: nestedContext }, {
|
|
397
|
-
default: withCtx(() => [hasRegions.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
398
|
-
createElementVNode("div", {
|
|
399
|
-
ref: setHeader,
|
|
400
|
-
class: "astryx-dropdown-menu-region",
|
|
401
|
-
onKeydown: _cache[3] || (_cache[3] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
402
|
-
}, [renderSlot(_ctx.$slots, "header")], 544),
|
|
403
|
-
createElementVNode("div", {
|
|
404
|
-
ref: setRegionMenu,
|
|
405
|
-
class: "astryx-dropdown-menu-region-menu",
|
|
406
|
-
"aria-label": stringLabel.value,
|
|
407
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
408
|
-
role: "menu",
|
|
409
|
-
tabindex: "-1"
|
|
410
|
-
}, [createVNode(_sfc_main$5, {
|
|
411
|
-
"has-close-on-select": false,
|
|
412
|
-
label: backLabel.value,
|
|
413
|
-
onClick: _cache[4] || (_cache[4] = ($event) => closeFlyout(true))
|
|
414
|
-
}, {
|
|
415
|
-
icon: withCtx(() => [createVNode(_sfc_main$1, {
|
|
416
|
-
color: "secondary",
|
|
417
|
-
icon: "chevronLeft",
|
|
418
|
-
size: "sm"
|
|
419
|
-
})]),
|
|
420
|
-
_: 1
|
|
421
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default")], 8, _hoisted_3),
|
|
422
|
-
createElementVNode("div", {
|
|
423
|
-
ref: setFooter,
|
|
424
|
-
class: "astryx-dropdown-menu-region",
|
|
425
|
-
onKeydown: _cache[5] || (_cache[5] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
426
|
-
}, [renderSlot(_ctx.$slots, "footer")], 544)
|
|
427
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(_sfc_main$5, {
|
|
428
|
-
"has-close-on-select": false,
|
|
429
|
-
label: backLabel.value,
|
|
430
|
-
onClick: _cache[6] || (_cache[6] = ($event) => closeFlyout(true))
|
|
431
|
-
}, {
|
|
432
|
-
icon: withCtx(() => [createVNode(_sfc_main$1, {
|
|
433
|
-
color: "secondary",
|
|
434
|
-
icon: "chevronLeft",
|
|
435
|
-
size: "sm"
|
|
436
|
-
})]),
|
|
437
|
-
_: 1
|
|
438
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default")], 64))]),
|
|
439
|
-
_: 3
|
|
440
|
-
})]),
|
|
441
|
-
_: 3
|
|
442
|
-
})], 42, _hoisted_2), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
|
|
443
|
-
key: 1,
|
|
444
|
-
to: unref(teleportTarget)
|
|
445
|
-
}, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 键盘事件在面板根上接住再分发给头部、菜单和尾部,交互元素仍是里面的行和控件。 "), withDirectives(createElementVNode("div", {
|
|
446
|
-
ref_key: "flyoutRef",
|
|
447
|
-
ref: flyoutRef,
|
|
448
|
-
class: normalizeClass(["astryx-dropdown-menu astryx-dropdown-submenu", { "is-frame": hasRegions.value }]),
|
|
449
|
-
role: hasRegions.value ? "dialog" : "menu",
|
|
450
|
-
"aria-label": stringLabel.value,
|
|
451
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
452
|
-
"aria-modal": hasRegions.value ? "true" : void 0,
|
|
453
|
-
"data-overflow": unref(hasOverflow) || void 0,
|
|
454
|
-
style: normalizeStyle(flyoutStyle.value),
|
|
455
|
-
tabindex: "-1",
|
|
456
|
-
onKeydown: onFlyoutKeydown,
|
|
457
|
-
onMouseenter: _cache[9] || (_cache[9] = (...args) => unref(hover).contentProps.onMouseenter && unref(hover).contentProps.onMouseenter(...args)),
|
|
458
|
-
onMouseleave: _cache[10] || (_cache[10] = (...args) => unref(hover).contentProps.onMouseleave && unref(hover).contentProps.onMouseleave(...args))
|
|
459
|
-
}, [createVNode(_sfc_main$2, null, {
|
|
460
|
-
default: withCtx(() => [createVNode(_sfc_main$4, { value: nestedContext }, {
|
|
461
|
-
default: withCtx(() => [hasRegions.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
462
|
-
createElementVNode("div", {
|
|
463
|
-
ref: setHeader,
|
|
464
|
-
class: "astryx-dropdown-menu-region",
|
|
465
|
-
onKeydown: _cache[7] || (_cache[7] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
466
|
-
}, [renderSlot(_ctx.$slots, "header")], 544),
|
|
467
|
-
createElementVNode("div", {
|
|
468
|
-
ref: setRegionMenu,
|
|
469
|
-
class: "astryx-dropdown-menu-region-menu",
|
|
470
|
-
"aria-label": stringLabel.value,
|
|
471
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
472
|
-
role: "menu",
|
|
473
|
-
tabindex: "-1"
|
|
474
|
-
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_5),
|
|
475
|
-
createElementVNode("div", {
|
|
476
|
-
ref: setFooter,
|
|
477
|
-
class: "astryx-dropdown-menu-region",
|
|
478
|
-
onKeydown: _cache[8] || (_cache[8] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
479
|
-
}, [renderSlot(_ctx.$slots, "footer")], 544)
|
|
480
|
-
], 64)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)]),
|
|
481
|
-
_: 3
|
|
482
|
-
})]),
|
|
483
|
-
_: 3
|
|
484
|
-
})], 46, _hoisted_4), [[vShow, flyoutOpen.value]])], 8, ["to"]))], 64);
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
//#endregion
|
|
489
|
-
export { _sfc_main as t };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent } from "vue";
|
|
2
|
-
//#region src/BottomSheet/lazyBottomSheet.ts
|
|
3
|
-
function loadBottomSheet() {
|
|
4
|
-
return import("./BottomSheet-Btf8Yn8k.js").then((n) => n.t);
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 按需加载的 BottomSheet:只在底部弹层真正进入组件树时请求,只用锚定浮层的页面
|
|
8
|
-
* 不会加载它(以及它的手势)。菜单和 Popover 的底部弹层呈现共用。
|
|
9
|
-
*/
|
|
10
|
-
const LazyBottomSheet = defineAsyncComponent(loadBottomSheet);
|
|
11
|
-
/** 先把模块加载好、什么都不渲染:底部弹层可能成为呈现方式时调用,打开时立刻就有。 */
|
|
12
|
-
function preloadBottomSheet() {
|
|
13
|
-
loadBottomSheet();
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { preloadBottomSheet as n, LazyBottomSheet as t };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region src/Theme/motionTokenDefaults.ts
|
|
2
|
-
/**
|
|
3
|
-
* @file motionTokenDefaults.ts
|
|
4
|
-
* @input Nothing: the values `@astryx-vue/themes` declares on `:root`
|
|
5
|
-
* @output durationDefaults and easeDefaults, keyed by the theme vocabulary's
|
|
6
|
-
* unprefixed names, and their name types
|
|
7
|
-
* @position Theme utility with no imports. The neutral theme stylesheet
|
|
8
|
-
* (`packages/themes/neutral/base.css`) declares these values as
|
|
9
|
-
* `--astryx-duration-*` and `--astryx-ease-*`; motionTokenDefaults.test.ts
|
|
10
|
-
* keeps the two equal. Motion tokens a theme generates (`tempo`,
|
|
11
|
-
* `character`) start from these values, and the motion foundation falls
|
|
12
|
-
* back to them where no stylesheet applies. Pure; safe on the server.
|
|
13
|
-
*/
|
|
14
|
-
const durationDefaults = {
|
|
15
|
-
"--duration-fast-min": "95ms",
|
|
16
|
-
"--duration-fast": "125ms",
|
|
17
|
-
"--duration-fast-max": "165ms",
|
|
18
|
-
"--duration-medium-min": "225ms",
|
|
19
|
-
"--duration-medium": "300ms",
|
|
20
|
-
"--duration-medium-max": "400ms",
|
|
21
|
-
"--duration-slow-min": "525ms",
|
|
22
|
-
"--duration-slow": "700ms",
|
|
23
|
-
"--duration-slow-max": "935ms",
|
|
24
|
-
/** The standard dismissal duration. */
|
|
25
|
-
"--duration-exit": "var(--duration-fast)"
|
|
26
|
-
};
|
|
27
|
-
const easeDefaults = {
|
|
28
|
-
/** Decelerates: state changes. */
|
|
29
|
-
"--ease-standard": "cubic-bezier(0.24, 1, 0.4, 1)",
|
|
30
|
-
/** Entrances. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
|
|
31
|
-
"--ease-entrance": "cubic-bezier(0.24, 1, 0.4, 1)",
|
|
32
|
-
/** Moves on screen. A theme's `character` sets it; at `'standard'` it equals `--ease-standard`. */
|
|
33
|
-
"--ease-move": "cubic-bezier(0.24, 1, 0.4, 1)",
|
|
34
|
-
/** Accelerates: things leaving. */
|
|
35
|
-
"--ease-exit": "cubic-bezier(0.3, 0, 0.6, 0.6)"
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { easeDefaults as n, durationDefaults as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
//#region src/DropdownMenu/useSubmenuMode.ts
|
|
3
|
-
/**
|
|
4
|
-
* Whether a submenu flies out beside its row or replaces the menu's rows.
|
|
5
|
-
*
|
|
6
|
-
* `adaptive` drills in only when the menu opened on a compact touch surface.
|
|
7
|
-
* That choice is sampled by the root when the menu opens, so the panel does
|
|
8
|
-
* not change shape while it is open.
|
|
9
|
-
*/
|
|
10
|
-
function useSubmenuMode(options) {
|
|
11
|
-
const isDrill = computed(() => {
|
|
12
|
-
const drill = options.drillIn.value;
|
|
13
|
-
if (drill == null || options.presentation.value === "flyout") return false;
|
|
14
|
-
if (options.presentation.value === "drill-in") return true;
|
|
15
|
-
return drill.isCompactTouch;
|
|
16
|
-
});
|
|
17
|
-
const isOnStack = computed(() => options.drillIn.value?.viewStack.includes(options.viewId) === true);
|
|
18
|
-
const isTop = computed(() => isOnStack.value && options.drillIn.value?.viewStack.at(-1) === options.viewId);
|
|
19
|
-
function openDrill() {
|
|
20
|
-
options.drillIn.value?.push(options.viewId);
|
|
21
|
-
}
|
|
22
|
-
/** Pop this view when it is the top of the stack. Returns whether it popped. */
|
|
23
|
-
function closeDrill() {
|
|
24
|
-
if (!isTop.value) return false;
|
|
25
|
-
options.drillIn.value?.pop();
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
closeDrill,
|
|
30
|
-
isDrill,
|
|
31
|
-
isOnStack,
|
|
32
|
-
isTop,
|
|
33
|
-
openDrill
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { useSubmenuMode as t };
|