@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
2
2
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
3
3
|
import { t as writeClipboardText } from "./clipboardWrite-Ds6fxmZc.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
4
|
+
import { t as _sfc_main$2 } from "./IconButton-CoZFp0CP.js";
|
|
5
5
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./Text-
|
|
6
|
+
import { t as _sfc_main$3 } from "./Text-DNKNlENe.js";
|
|
7
7
|
import { r as useCalendarSystem } from "./calendar-C7py_wtb.js";
|
|
8
|
-
import { t as _sfc_main$4 } from "./HoverCard-
|
|
8
|
+
import { t as _sfc_main$4 } from "./HoverCard-zVUEeqF2.js";
|
|
9
9
|
import { t as _sfc_main$5 } from "./ComponentIcon-Dw4xQxg3.js";
|
|
10
10
|
import { t as formatInstant } from "./formatInstant-CjCwl6JS.js";
|
|
11
11
|
import { t as timestampMessages } from "./timestamp-saJUedIU.js";
|
package/dist/Toast/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-DUqDW07c.js";
|
|
2
2
|
export { _sfc_main as Toast, _sfc_main$1 as ToastViewport, useToast };
|
|
@@ -5,13 +5,27 @@ import { t as _sfc_main$2 } from "./Icon-Dk0jccgU.js";
|
|
|
5
5
|
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
6
6
|
import { i as getGestureHost, n as PanGestureRecognizer, t as useAttachment, u as internals } from "./useAttachment-BuNyeUXy.js";
|
|
7
7
|
import { n as focusElement, r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
8
|
-
import { t as _sfc_main$3 } from "./IconButton-
|
|
8
|
+
import { t as _sfc_main$3 } from "./IconButton-CoZFp0CP.js";
|
|
9
9
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
10
10
|
import { n as useActiveModalOutlet, r as whenModalSettled } from "./modalOutlet-Drr9a16b.js";
|
|
11
11
|
import { t as toastMessages } from "./toast-BvAnX6Vc.js";
|
|
12
|
-
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-
|
|
12
|
+
import { n as useTheme, o as parseColor, s as pickMediaMode, t as _sfc_main$4 } from "./MediaTheme-CBkEmVe4.js";
|
|
13
13
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentScope, guardReactiveProps, inject, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, watch, withCtx } from "vue";
|
|
14
14
|
import "../styles/toast.css";
|
|
15
|
+
//#region src/Theme/invertedSurfaceSide.ts
|
|
16
|
+
const ON_DARK_DEFAULT = "#ffffff";
|
|
17
|
+
const ON_LIGHT_DEFAULT = "#111111";
|
|
18
|
+
/**
|
|
19
|
+
* `fill` 是表面的底色(CSS 文本)。`tokens` 是按当前颜色模式解析好的主题令牌,
|
|
20
|
+
* 里面的 `--astryx-color-on-dark` 和 `--astryx-color-on-light` 没写时用标准值。
|
|
21
|
+
*/
|
|
22
|
+
function surfaceSideOf(tokens, fill) {
|
|
23
|
+
const background = fill === void 0 ? null : parseColor(fill);
|
|
24
|
+
if (background === null || background.a < 1) return null;
|
|
25
|
+
const side = pickMediaMode(background, null, parseColor(tokens["--astryx-color-on-dark"] ?? ON_DARK_DEFAULT), parseColor(tokens["--astryx-color-on-light"] ?? ON_LIGHT_DEFAULT));
|
|
26
|
+
return side === "dark" || side === "light" ? side : null;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
15
29
|
//#region src/Toast/context.ts
|
|
16
30
|
/**
|
|
17
31
|
* 视口提供给里面的提示:卡片在视口里才是 live 区域。
|
|
@@ -414,6 +428,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
414
428
|
setup(__props, { emit: __emit }) {
|
|
415
429
|
const props = __props;
|
|
416
430
|
const emit = __emit;
|
|
431
|
+
/** 各类型提示卡片的标准底色,和 toast.css 里的回退值一致。 */
|
|
432
|
+
const DEFAULT_FILLS = {
|
|
433
|
+
info: "#171717",
|
|
434
|
+
success: "#0a7b3e",
|
|
435
|
+
warning: "#9a6700",
|
|
436
|
+
error: "#c52626"
|
|
437
|
+
};
|
|
417
438
|
const duration = computed(() => resolveAutoHideDuration(props));
|
|
418
439
|
const autoHide = computed(() => resolveAutoHide(props));
|
|
419
440
|
const remaining = ref(duration.value);
|
|
@@ -426,7 +447,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
426
447
|
const ariaLive = computed(() => isInViewport ? isAlert.value ? "assertive" : "polite" : void 0);
|
|
427
448
|
const messages = useComponentMessages({ toast: toastMessages });
|
|
428
449
|
const theme = useTheme();
|
|
429
|
-
const mediaFallback = computed(() =>
|
|
450
|
+
const mediaFallback = computed(() => {
|
|
451
|
+
const fill = theme.tokens.value[`--astryx-toast-${props.type}-background`] ?? DEFAULT_FILLS[props.type];
|
|
452
|
+
return surfaceSideOf(theme.tokens.value, fill) ?? (isAlert.value || theme.mode.value === "light" ? "dark" : "light");
|
|
453
|
+
});
|
|
430
454
|
const dismissLabel = computed(() => messages.value.toast.dismiss);
|
|
431
455
|
const classes = computed(() => [
|
|
432
456
|
"astryx-toast",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-4m5X7IYX.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-BMBH2tmu.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as pressGroupItemProps, n as useTouchHitArea, t as GROUP_HIT_AREA } from "./useTouchHitArea-SY1ITxSJ.js";
|
|
2
2
|
import { t as useActionGroupTracking } from "./useActionGroupTracking-CLFF7FI2.js";
|
|
3
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
4
|
+
import { t as _sfc_main$2 } from "./Button-CzMWqCpJ.js";
|
|
5
5
|
import { n as buttonHitAreaContextKey } from "./context-Cgkyk-b7.js";
|
|
6
6
|
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, provide, renderSlot, shallowRef, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-D8lv2BiD.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenizerPresentation, c as TokenizerSlots, i as TokenizerOverflow, l as TokenizerStatus, n as TokenizerChange, o as TokenizerProps, r as TokenizerEmits, s as TokenizerSize, t as _default } from "../index-
|
|
1
|
+
import { a as TokenizerPresentation, c as TokenizerSlots, i as TokenizerOverflow, l as TokenizerStatus, n as TokenizerChange, o as TokenizerProps, r as TokenizerEmits, s as TokenizerSize, t as _default } from "../index-ILJ7sKx3.js";
|
|
2
2
|
export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerPresentation, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-C0CdEzQT.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
|
|
2
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
3
|
-
import { t as _sfc_main$5 } from "./Button-
|
|
4
|
-
import { s as isImeKeyEvent } from "./layerDepth-
|
|
3
|
+
import { t as _sfc_main$5 } from "./Button-CzMWqCpJ.js";
|
|
4
|
+
import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
|
|
5
5
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
6
6
|
import { t as _sfc_main$6 } from "./ButtonTooltip-ZpQP-aQg.js";
|
|
7
7
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
8
8
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
9
9
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
10
10
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
11
|
-
import { t as useInputStatusIcon } from "./useInputStatusIcon-
|
|
11
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-B1i0sFKu.js";
|
|
12
12
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
13
13
|
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
14
14
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
15
|
-
import { t as _sfc_main$7 } from "./Dialog-
|
|
16
|
-
import { t as _sfc_main$8 } from "./Heading-
|
|
15
|
+
import { t as _sfc_main$7 } from "./Dialog-B1Hlr0x_.js";
|
|
16
|
+
import { t as _sfc_main$8 } from "./Heading-BXTbW_px.js";
|
|
17
17
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
18
18
|
import { t as _sfc_main$9 } from "./Stack-DPB-Ztf7.js";
|
|
19
|
-
import { t as _sfc_main$10 } from "./Text-
|
|
19
|
+
import { t as _sfc_main$10 } from "./Text-DNKNlENe.js";
|
|
20
20
|
import { t as _sfc_main$11 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
21
|
-
import { t as useHeldPresentation } from "./useHeldPresentation-
|
|
22
|
-
import { n as preloadBottomSheet, t as LazyBottomSheet } from "./lazyBottomSheet-
|
|
21
|
+
import { t as useHeldPresentation } from "./useHeldPresentation-BF5vGVUn.js";
|
|
22
|
+
import { n as preloadBottomSheet, t as LazyBottomSheet } from "./lazyBottomSheet-CNYA5qOy.js";
|
|
23
23
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
24
24
|
import { t as _sfc_main$12 } from "./Spinner-DEVPDsD0.js";
|
|
25
|
-
import { t as _sfc_main$13 } from "./Field-
|
|
25
|
+
import { t as _sfc_main$13 } from "./Field-njr7AUcW.js";
|
|
26
26
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
27
27
|
import { n as alertDialogMessages, t as tokenizerMessages } from "./tokenizer-C1y-55Ft.js";
|
|
28
|
-
import { t as _sfc_main$14 } from "./EmptyState-
|
|
28
|
+
import { t as _sfc_main$14 } from "./EmptyState-CXDlpIdI.js";
|
|
29
29
|
import { t as _sfc_main$15 } from "./Token-DTGUCgpn.js";
|
|
30
|
-
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-
|
|
31
|
-
import { i as _sfc_main$16, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as useLatchedOptionGrid, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig-
|
|
32
|
-
import { t as _sfc_main$17 } from "./TextInput-
|
|
30
|
+
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-CpzpYNqy.js";
|
|
31
|
+
import { i as _sfc_main$16, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as useLatchedOptionGrid, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig-Cy-gOjVd.js";
|
|
32
|
+
import { t as _sfc_main$17 } from "./TextInput-DyHEMYld.js";
|
|
33
33
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
34
34
|
import "../styles/layer.css";
|
|
35
35
|
import "../styles/alert-dialog.css";
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-4m5X7IYX.js";
|
|
2
2
|
import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-CJd4JkbJ.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipReturn, o as TooltipFocusTrigger, r as useTooltip, s as TooltipPlacement, t as UseTooltipOptions } from "../index-
|
|
1
|
+
import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipReturn, o as TooltipFocusTrigger, r as useTooltip, s as TooltipPlacement, t as UseTooltipOptions } from "../index-CHLZPpjQ.js";
|
|
2
2
|
export { _default as Tooltip, type TooltipAlignment, type TooltipFocusTrigger, type TooltipPlacement, type TooltipProps, type TooltipTouchTrigger, type UseTooltipOptions, type UseTooltipReturn, useTooltip };
|
package/dist/Tooltip/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as useTooltip } from "../useTooltip-
|
|
2
|
-
import { t as _sfc_main } from "../Tooltip-
|
|
1
|
+
import { t as useTooltip } from "../useTooltip-llyJd1q6.js";
|
|
2
|
+
import { t as _sfc_main } from "../Tooltip-CEyd_iFa.js";
|
|
3
3
|
export { _sfc_main as Tooltip, useTooltip };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as _sfc_main$1, t as useTooltip } from "./useTooltip-
|
|
1
|
+
import { r as _sfc_main$1, t as useTooltip } from "./useTooltip-llyJd1q6.js";
|
|
2
2
|
import { Fragment, Teleport, computed, createElementBlock, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, unref, useAttrs, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/tooltip.css";
|
|
4
4
|
//#region src/Tooltip/Tooltip.vue
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-
|
|
1
|
+
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-4m5X7IYX.js";
|
|
2
2
|
export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
|
package/dist/TopNav/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$5, o as _sfc_main$1, r as _sfc_main$4, s as _sfc_main, t as _sfc_main$6 } from "../TopNav-
|
|
1
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$5, o as _sfc_main$1, r as _sfc_main$4, s as _sfc_main, t as _sfc_main$6 } from "../TopNav-BObecD_X.js";
|
|
2
2
|
export { _sfc_main as TopNav, _sfc_main$1 as TopNavHeading, _sfc_main$2 as TopNavItem, _sfc_main$3 as TopNavMegaMenu, _sfc_main$4 as TopNavMegaMenuFeaturedCard, _sfc_main$5 as TopNavMegaMenuItem, _sfc_main$6 as TopNavMenu };
|
|
@@ -7,14 +7,14 @@ import { n as useAppShellMobile } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
|
7
7
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
8
8
|
import { t as useListFocus } from "./useListFocus-Ccd_HU9T.js";
|
|
9
9
|
import { t as navMessages } from "./nav-DpKQUHqR.js";
|
|
10
|
-
import { n as _sfc_main$11, t as _sfc_main$10 } from "./MobileNavToggle-
|
|
10
|
+
import { n as _sfc_main$11, t as _sfc_main$10 } from "./MobileNavToggle-CrUf5UPQ.js";
|
|
11
11
|
import { n as mobileNavKey, t as mobileNavCloseKey } from "./context-D8MAZio1.js";
|
|
12
12
|
import { t as useCloseMobileDrawer } from "./closeOnActivate-D1KgKWwm.js";
|
|
13
13
|
import { i as safeNavHref, n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
|
|
14
14
|
import { t as _sfc_main$12 } from "./NavItem-D4xHjSTo.js";
|
|
15
|
-
import { n as navMenuCloseKey, o as navMenuPickKey, t as _sfc_main$13 } from "./NavDisclosure-
|
|
16
|
-
import { n as _sfc_main$15, t as _sfc_main$14 } from "./NavMenuItem-
|
|
17
|
-
import { t as _sfc_main$16 } from "./NavHeadingSurface-
|
|
15
|
+
import { n as navMenuCloseKey, o as navMenuPickKey, t as _sfc_main$13 } from "./NavDisclosure-BM0dJGLA.js";
|
|
16
|
+
import { n as _sfc_main$15, t as _sfc_main$14 } from "./NavMenuItem-BKY6eRkz.js";
|
|
17
|
+
import { t as _sfc_main$16 } from "./NavHeadingSurface-CuQnoV_V.js";
|
|
18
18
|
import { Fragment, Teleport, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, withCtx, withModifiers } from "vue";
|
|
19
19
|
import "../styles/top-nav.css";
|
|
20
20
|
//#region src/MobileNav/MobileNavScope.vue
|
package/dist/TreeList/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useTreeFocus, t as _sfc_main } from "../TreeList-
|
|
1
|
+
import { n as useTreeFocus, t as _sfc_main } from "../TreeList-CsgXzBdm.js";
|
|
2
2
|
export { _sfc_main as TreeList, useTreeFocus };
|
|
@@ -4,8 +4,8 @@ import { i as isIconGlyph, t as _sfc_main$2 } from "./Icon-Dk0jccgU.js";
|
|
|
4
4
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
5
5
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
6
6
|
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
7
|
-
import { n as releaseLayoutExit, r as playLayoutChange, t as holdLayoutExit } from "./edgeRide-
|
|
8
|
-
import { i as reportLayoutChange, t as applyLayoutChangeTransition } from "./landing-
|
|
7
|
+
import { n as releaseLayoutExit, r as playLayoutChange, t as holdLayoutExit } from "./edgeRide-UdNxbwxY.js";
|
|
8
|
+
import { i as reportLayoutChange, t as applyLayoutChangeTransition } from "./landing-CSCE9afT.js";
|
|
9
9
|
import { t as useAnimatedLayout } from "./useAnimatedLayout-DWWc31RR.js";
|
|
10
10
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
11
11
|
import { n as isShortcutChord, r as nextTypeaheadBuffer, t as findTypeaheadMatch } from "./typeaheadMatch-Cl-oxKFt.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { c as TypeaheadSize, i as TypeaheadItemProps, l as TypeaheadSlots, r as TypeaheadEmits, s as TypeaheadProps, t as BaseTypeaheadProps, u as TypeaheadStatus } from "../types-DL-hRibg.js";
|
|
2
|
-
import { n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
2
|
+
import { n as _default$1, r as _default, t as _default$2 } from "../index-DAEgHJTK.js";
|
|
3
3
|
export { _default as BaseTypeahead, type BaseTypeaheadProps, _default$1 as Typeahead, type TypeaheadEmits, _default$2 as TypeaheadItem, type TypeaheadItemProps, type TypeaheadProps, type TypeaheadSize, type TypeaheadSlots, type TypeaheadStatus };
|
package/dist/Typeahead/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main$2 } from "../useTypeaheadMenuConfig-
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-
|
|
1
|
+
import { a as _sfc_main$2 } from "../useTypeaheadMenuConfig-Cy-gOjVd.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-C_0dTmaf.js";
|
|
3
3
|
export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as _sfc_main$2 } from "./Icon-Dk0jccgU.js";
|
|
2
2
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
3
|
-
import { s as isImeKeyEvent } from "./layerDepth-
|
|
3
|
+
import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
|
|
5
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
6
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
7
|
-
import { t as useInputStatusIcon } from "./useInputStatusIcon-
|
|
7
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-B1i0sFKu.js";
|
|
8
8
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
9
9
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
10
10
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
11
11
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
12
12
|
import { t as _sfc_main$4 } from "./Spinner-DEVPDsD0.js";
|
|
13
|
-
import { t as _sfc_main$5 } from "./Field-
|
|
13
|
+
import { t as _sfc_main$5 } from "./Field-njr7AUcW.js";
|
|
14
14
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
15
15
|
import { t as typeaheadMessages } from "./typeahead-BgfLP7vR.js";
|
|
16
16
|
import { t as _sfc_main$6 } from "./Token-DTGUCgpn.js";
|
|
17
|
-
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-
|
|
18
|
-
import { i as _sfc_main$7, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as useLatchedOptionGrid, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig-
|
|
17
|
+
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-CpzpYNqy.js";
|
|
18
|
+
import { i as _sfc_main$7, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as useLatchedOptionGrid, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig-Cy-gOjVd.js";
|
|
19
19
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
20
20
|
import "../styles/layer.css";
|
|
21
21
|
import "../styles/visually-hidden-utility.css";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
|
|
3
|
+
import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
|
|
3
4
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
5
|
+
import { r as keepDisabledRowUnfocused } from "./menuActivation-BQqnzKAX.js";
|
|
4
6
|
import { t as _sfc_main$5 } from "./Item-C9u_kQUO.js";
|
|
5
7
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
6
|
-
import {
|
|
8
|
+
import { r as useCompactDefinition } from "./compactDefinition-BeFUKEFg.js";
|
|
9
|
+
import { r as readCompactTouch } from "./presentationHold-B4tK68sd.js";
|
|
7
10
|
import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
|
|
8
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
|
|
9
12
|
import "../styles/dropdown-menu.css";
|
|
@@ -91,6 +94,7 @@ function useDropdownMenuRadioGroup() {
|
|
|
91
94
|
*/
|
|
92
95
|
function useMenuSelectableRow(options) {
|
|
93
96
|
const dropdown = useDropdownMenuContext();
|
|
97
|
+
const attrs = useAttrs();
|
|
94
98
|
const contextMenu = useContextMenu();
|
|
95
99
|
const menuSize = computed(() => contextMenu?.menuSize.value ?? dropdown?.menuSize.value ?? "md");
|
|
96
100
|
const controlSize = computed(() => menuSize.value === "sm" ? "sm" : "md");
|
|
@@ -101,6 +105,8 @@ function useMenuSelectableRow(options) {
|
|
|
101
105
|
if (contextMenu != null) contextMenu.closeMenu();
|
|
102
106
|
else dropdown?.closeMenu();
|
|
103
107
|
}
|
|
108
|
+
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "onClick")));
|
|
109
|
+
/** 调用方的 `onClick` 排在行自己的选择和关闭之后;禁用的行在它之前就停下。 */
|
|
104
110
|
function handleClick(event) {
|
|
105
111
|
if (options.isDisabled.value) {
|
|
106
112
|
event.preventDefault();
|
|
@@ -108,15 +114,18 @@ function useMenuSelectableRow(options) {
|
|
|
108
114
|
}
|
|
109
115
|
options.onActivate();
|
|
110
116
|
closeHost();
|
|
117
|
+
const callerClick = attrs.onClick;
|
|
118
|
+
for (const handler of Array.isArray(callerClick) ? callerClick : [callerClick]) if (typeof handler === "function") handler(event);
|
|
111
119
|
}
|
|
112
120
|
function handlePointerMove(event) {
|
|
113
121
|
if (options.isDisabled.value || event.pointerType !== "mouse") return;
|
|
114
122
|
const row = event.currentTarget;
|
|
115
|
-
if (row instanceof HTMLElement && row !== row.ownerDocument.activeElement) row
|
|
123
|
+
if (row instanceof HTMLElement && row !== row.ownerDocument.activeElement) focusForLastInput(row, { preventScroll: true });
|
|
116
124
|
}
|
|
117
125
|
return {
|
|
118
126
|
controlSize,
|
|
119
127
|
density,
|
|
128
|
+
forwardedAttrs,
|
|
120
129
|
handleClick,
|
|
121
130
|
handlePointerMove,
|
|
122
131
|
inContextMenu,
|
|
@@ -129,8 +138,7 @@ const _hoisted_1$2 = [
|
|
|
129
138
|
"aria-checked",
|
|
130
139
|
"aria-disabled",
|
|
131
140
|
"data-disabled",
|
|
132
|
-
"data-size"
|
|
133
|
-
"tabindex"
|
|
141
|
+
"data-size"
|
|
134
142
|
];
|
|
135
143
|
const _hoisted_2$1 = {
|
|
136
144
|
key: 0,
|
|
@@ -179,7 +187,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
179
187
|
const emit = __emit;
|
|
180
188
|
const checked = useModel(__props, "modelValue");
|
|
181
189
|
const slots = useSlots();
|
|
182
|
-
const { controlSize, density, handleClick, handlePointerMove, inContextMenu, menuSize } = useMenuSelectableRow({
|
|
190
|
+
const { controlSize, density, forwardedAttrs, handleClick, handlePointerMove, inContextMenu, menuSize } = useMenuSelectableRow({
|
|
183
191
|
hasCloseOnSelect: computed(() => props.hasCloseOnSelect),
|
|
184
192
|
isDisabled: computed(() => props.isDisabled),
|
|
185
193
|
onActivate: () => {
|
|
@@ -193,7 +201,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
193
201
|
const hasDescription = computed(() => slots.description != null || props.description != null);
|
|
194
202
|
const hasEnd = computed(() => slots.endContent != null);
|
|
195
203
|
return (_ctx, _cache) => {
|
|
196
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/interactive-supports-focus -- The menu owns Enter, Space, and the arrows.
|
|
204
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/interactive-supports-focus -- The menu owns Enter, Space, and the arrows. "), unref(inContextMenu) ? (openBlock(), createElementBlock("div", mergeProps({
|
|
197
205
|
key: 0,
|
|
198
206
|
class: "astryx-context-menu-item",
|
|
199
207
|
role: "menuitemcheckbox",
|
|
@@ -201,10 +209,12 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
201
209
|
"aria-disabled": __props.isDisabled || void 0,
|
|
202
210
|
"data-disabled": __props.isDisabled || void 0,
|
|
203
211
|
"data-size": unref(menuSize),
|
|
204
|
-
tabindex:
|
|
212
|
+
tabindex: "-1"
|
|
213
|
+
}, unref(forwardedAttrs), {
|
|
205
214
|
onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClick) && unref(handleClick)(...args)),
|
|
206
|
-
|
|
207
|
-
|
|
215
|
+
onMousedown: _cache[1] || (_cache[1] = ($event) => __props.isDisabled && unref(keepDisabledRowUnfocused)($event)),
|
|
216
|
+
onPointermove: _cache[2] || (_cache[2] = (...args) => unref(handlePointerMove) && unref(handlePointerMove)(...args))
|
|
217
|
+
}), [
|
|
208
218
|
createVNode(_sfc_main$3, {
|
|
209
219
|
kind: "checkbox",
|
|
210
220
|
checked: checked.value,
|
|
@@ -222,7 +232,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
222
232
|
}, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
|
|
223
233
|
createElementVNode("span", _hoisted_3$1, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5$1, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
224
234
|
hasEnd.value ? (openBlock(), createElementBlock("span", _hoisted_6$1, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
225
|
-
],
|
|
235
|
+
], 16, _hoisted_1$2)) : (openBlock(), createBlock(_sfc_main$5, mergeProps({
|
|
226
236
|
key: 1,
|
|
227
237
|
class: "astryx-dropdown-menu-item",
|
|
228
238
|
role: "menuitemcheckbox",
|
|
@@ -234,9 +244,11 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
234
244
|
"is-disabled": __props.isDisabled,
|
|
235
245
|
label: __props.label,
|
|
236
246
|
"on-click": unref(handleClick),
|
|
237
|
-
tabindex:
|
|
247
|
+
tabindex: "-1"
|
|
248
|
+
}, unref(forwardedAttrs), {
|
|
249
|
+
onMousedown: _cache[3] || (_cache[3] = ($event) => __props.isDisabled && unref(keepDisabledRowUnfocused)($event)),
|
|
238
250
|
onPointermove: unref(handlePointerMove)
|
|
239
|
-
}, createSlots({
|
|
251
|
+
}), createSlots({
|
|
240
252
|
marker: withCtx(() => [createVNode(_sfc_main$3, {
|
|
241
253
|
kind: "checkbox",
|
|
242
254
|
checked: checked.value,
|
|
@@ -273,7 +285,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
273
285
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
|
|
274
286
|
key: "3"
|
|
275
287
|
} : void 0
|
|
276
|
-
]),
|
|
288
|
+
]), 1040, [
|
|
277
289
|
"aria-checked",
|
|
278
290
|
"data-menu-size",
|
|
279
291
|
"density",
|
|
@@ -281,7 +293,6 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
281
293
|
"is-disabled",
|
|
282
294
|
"label",
|
|
283
295
|
"on-click",
|
|
284
|
-
"tabindex",
|
|
285
296
|
"onPointermove"
|
|
286
297
|
]))], 2112);
|
|
287
298
|
};
|
|
@@ -333,8 +344,7 @@ const _hoisted_1 = [
|
|
|
333
344
|
"aria-checked",
|
|
334
345
|
"aria-disabled",
|
|
335
346
|
"data-disabled",
|
|
336
|
-
"data-size"
|
|
337
|
-
"tabindex"
|
|
347
|
+
"data-size"
|
|
338
348
|
];
|
|
339
349
|
const _hoisted_2 = {
|
|
340
350
|
key: 0,
|
|
@@ -374,7 +384,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
374
384
|
const group = useDropdownMenuRadioGroup();
|
|
375
385
|
if (group == null) throw new Error("DropdownMenuRadioItem must be used within a DropdownMenuRadioGroup");
|
|
376
386
|
const isChecked = computed(() => group.value.value === props.value);
|
|
377
|
-
const { controlSize, density, handleClick, handlePointerMove, inContextMenu, menuSize } = useMenuSelectableRow({
|
|
387
|
+
const { controlSize, density, forwardedAttrs, handleClick, handlePointerMove, inContextMenu, menuSize } = useMenuSelectableRow({
|
|
378
388
|
hasCloseOnSelect: group.hasCloseOnSelect,
|
|
379
389
|
isDisabled: computed(() => props.isDisabled),
|
|
380
390
|
onActivate: () => group.select(props.value)
|
|
@@ -384,7 +394,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
384
394
|
const hasDescription = computed(() => slots.description != null || props.description != null);
|
|
385
395
|
const hasEnd = computed(() => slots.endContent != null);
|
|
386
396
|
return (_ctx, _cache) => {
|
|
387
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/interactive-supports-focus -- The menu owns Enter, Space, and the arrows.
|
|
397
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/interactive-supports-focus -- The menu owns Enter, Space, and the arrows. "), unref(inContextMenu) ? (openBlock(), createElementBlock("div", mergeProps({
|
|
388
398
|
key: 0,
|
|
389
399
|
class: "astryx-context-menu-item",
|
|
390
400
|
role: "menuitemradio",
|
|
@@ -392,10 +402,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
392
402
|
"aria-disabled": __props.isDisabled || void 0,
|
|
393
403
|
"data-disabled": __props.isDisabled || void 0,
|
|
394
404
|
"data-size": unref(menuSize),
|
|
395
|
-
tabindex:
|
|
405
|
+
tabindex: "-1"
|
|
406
|
+
}, unref(forwardedAttrs), {
|
|
396
407
|
onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClick) && unref(handleClick)(...args)),
|
|
397
|
-
|
|
398
|
-
|
|
408
|
+
onMousedown: _cache[1] || (_cache[1] = ($event) => __props.isDisabled && unref(keepDisabledRowUnfocused)($event)),
|
|
409
|
+
onPointermove: _cache[2] || (_cache[2] = (...args) => unref(handlePointerMove) && unref(handlePointerMove)(...args))
|
|
410
|
+
}), [
|
|
399
411
|
createVNode(_sfc_main$3, {
|
|
400
412
|
kind: "radio",
|
|
401
413
|
checked: isChecked.value,
|
|
@@ -413,7 +425,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
413
425
|
}, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
|
|
414
426
|
createElementVNode("span", _hoisted_3, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
415
427
|
hasEnd.value ? (openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
416
|
-
],
|
|
428
|
+
], 16, _hoisted_1)) : (openBlock(), createBlock(_sfc_main$5, mergeProps({
|
|
417
429
|
key: 1,
|
|
418
430
|
class: "astryx-dropdown-menu-item",
|
|
419
431
|
role: "menuitemradio",
|
|
@@ -425,9 +437,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
425
437
|
"is-disabled": __props.isDisabled,
|
|
426
438
|
label: __props.label,
|
|
427
439
|
"on-click": unref(handleClick),
|
|
428
|
-
tabindex:
|
|
440
|
+
tabindex: "-1"
|
|
441
|
+
}, unref(forwardedAttrs), {
|
|
442
|
+
onMousedown: _cache[3] || (_cache[3] = ($event) => __props.isDisabled && unref(keepDisabledRowUnfocused)($event)),
|
|
429
443
|
onPointermove: unref(handlePointerMove)
|
|
430
|
-
}, createSlots({
|
|
444
|
+
}), createSlots({
|
|
431
445
|
marker: withCtx(() => [createVNode(_sfc_main$3, {
|
|
432
446
|
kind: "radio",
|
|
433
447
|
checked: isChecked.value,
|
|
@@ -464,7 +478,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
464
478
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
|
|
465
479
|
key: "3"
|
|
466
480
|
} : void 0
|
|
467
|
-
]),
|
|
481
|
+
]), 1040, [
|
|
468
482
|
"aria-checked",
|
|
469
483
|
"data-menu-size",
|
|
470
484
|
"density",
|
|
@@ -472,7 +486,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
472
486
|
"is-disabled",
|
|
473
487
|
"label",
|
|
474
488
|
"on-click",
|
|
475
|
-
"tabindex",
|
|
476
489
|
"onPointermove"
|
|
477
490
|
]))], 2112);
|
|
478
491
|
};
|
|
@@ -485,6 +498,41 @@ function useDropdownMenuMessages() {
|
|
|
485
498
|
return useComponentMessages({ dropdownMenu: dropdownMenuMessages });
|
|
486
499
|
}
|
|
487
500
|
//#endregion
|
|
501
|
+
//#region src/DropdownMenu/useSubmenuMode.ts
|
|
502
|
+
/**
|
|
503
|
+
* Whether a submenu flies out beside its row or replaces the menu's rows.
|
|
504
|
+
*
|
|
505
|
+
* `adaptive` drills in only when the menu opened on a compact touch surface.
|
|
506
|
+
* That choice is sampled by the root when the menu opens, so the panel does
|
|
507
|
+
* not change shape while it is open.
|
|
508
|
+
*/
|
|
509
|
+
function useSubmenuMode(options) {
|
|
510
|
+
const isDrill = computed(() => {
|
|
511
|
+
const drill = options.drillIn.value;
|
|
512
|
+
if (drill == null || options.presentation.value === "flyout") return false;
|
|
513
|
+
if (options.presentation.value === "drill-in") return true;
|
|
514
|
+
return drill.isCompactTouch;
|
|
515
|
+
});
|
|
516
|
+
const isOnStack = computed(() => options.drillIn.value?.viewStack.includes(options.viewId) === true);
|
|
517
|
+
const isTop = computed(() => isOnStack.value && options.drillIn.value?.viewStack.at(-1) === options.viewId);
|
|
518
|
+
function openDrill() {
|
|
519
|
+
options.drillIn.value?.push(options.viewId);
|
|
520
|
+
}
|
|
521
|
+
/** Pop this view when it is the top of the stack. Returns whether it popped. */
|
|
522
|
+
function closeDrill() {
|
|
523
|
+
if (!isTop.value) return false;
|
|
524
|
+
options.drillIn.value?.pop();
|
|
525
|
+
return true;
|
|
526
|
+
}
|
|
527
|
+
return {
|
|
528
|
+
closeDrill,
|
|
529
|
+
isDrill,
|
|
530
|
+
isOnStack,
|
|
531
|
+
isTop,
|
|
532
|
+
openDrill
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
//#endregion
|
|
488
536
|
//#region src/DropdownMenu/useMenuDrillIn.ts
|
|
489
537
|
const EMPTY_HOST = null;
|
|
490
538
|
/**
|
|
@@ -528,4 +576,47 @@ function useMenuDrillIn(isOpen) {
|
|
|
528
576
|
};
|
|
529
577
|
}
|
|
530
578
|
//#endregion
|
|
531
|
-
|
|
579
|
+
//#region src/utils/accessibleName.ts
|
|
580
|
+
/** 读屏从 `element` 里念出的文字,`aria-hidden` 的内容不算。 */
|
|
581
|
+
function visibleText(element) {
|
|
582
|
+
const copy = element.cloneNode(true);
|
|
583
|
+
for (const hidden of copy.querySelectorAll("[aria-hidden=\"true\"]")) hidden.remove();
|
|
584
|
+
for (const named of copy.querySelectorAll("img[alt], [aria-label]")) {
|
|
585
|
+
const name = named.getAttribute(named.tagName === "IMG" ? "alt" : "aria-label") ?? "";
|
|
586
|
+
named.replaceWith(copy.ownerDocument.createTextNode(` ${name} `));
|
|
587
|
+
}
|
|
588
|
+
for (const svg of copy.querySelectorAll("svg")) {
|
|
589
|
+
const title = svg.querySelector("title")?.textContent ?? "";
|
|
590
|
+
svg.replaceWith(copy.ownerDocument.createTextNode(` ${title} `));
|
|
591
|
+
}
|
|
592
|
+
return (copy.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* 自定义触发器给它所开菜单的名字,按顺序取:自己的 `aria-labelledby` 指向的文字、
|
|
596
|
+
* `aria-label`、表单控件的 `<label>`、input 按钮的 value、自己的文字、`title`。
|
|
597
|
+
*/
|
|
598
|
+
function readAccessibleName(element) {
|
|
599
|
+
if (element == null) return void 0;
|
|
600
|
+
const labelledBy = element.getAttribute("aria-labelledby");
|
|
601
|
+
if (labelledBy != null && labelledBy.trim() !== "") {
|
|
602
|
+
const text = labelledBy.split(/\s+/).map((id) => element.ownerDocument.getElementById(id)).filter((node) => node != null).map(visibleText).join(" ").trim();
|
|
603
|
+
if (text !== "") return text;
|
|
604
|
+
}
|
|
605
|
+
const label = element.getAttribute("aria-label")?.trim();
|
|
606
|
+
if (label) return label;
|
|
607
|
+
const labelText = ("labels" in element ? Array.from(element.labels ?? []) : []).map(visibleText).join(" ").trim();
|
|
608
|
+
if (labelText !== "") return labelText;
|
|
609
|
+
if (element instanceof HTMLInputElement && [
|
|
610
|
+
"button",
|
|
611
|
+
"submit",
|
|
612
|
+
"reset"
|
|
613
|
+
].includes(element.getAttribute("type") ?? "")) {
|
|
614
|
+
const value = element.value.trim();
|
|
615
|
+
if (value !== "") return value;
|
|
616
|
+
}
|
|
617
|
+
const text = visibleText(element);
|
|
618
|
+
if (text !== "") return text;
|
|
619
|
+
return element.getAttribute("title")?.trim() || void 0;
|
|
620
|
+
}
|
|
621
|
+
//#endregion
|
|
622
|
+
export { _sfc_main as a, dropdownMenuContextKey as c, contextMenuContextKey as d, submenuAncestorOpenKey as f, useDropdownMenuMessages as i, useDropdownMenuContext as l, useContextMenuSize as m, useMenuDrillIn as n, _sfc_main$1 as o, useContextMenu as p, useSubmenuMode as r, _sfc_main$2 as s, readAccessibleName as t, useDropdownMenuRadioGroup as u };
|