@astryx-vue/core 0.2.3 → 0.2.5
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/README.md +28 -26
- package/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Dd-D4bA2.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
- package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
- package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
- package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
- package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
- package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -4
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
- package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
- package/dist/{index-D1Twv_fL.d.ts → index-4TRnFGxv.d.ts} +6 -6
- package/dist/{index-BTAgQRP0.d.ts → index-B9rqmYxh.d.ts} +150 -62
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
- package/dist/{index-C2sfHfBw.d.ts → index-BK9T1TPZ.d.ts} +4 -4
- package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
- package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-MPcg1Pm4.d.ts → index-BpH4wvsg.d.ts} +2 -2
- package/dist/{index-BMn9ghAX.d.ts → index-C1HIqW_H.d.ts} +2 -2
- package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
- package/dist/{index-DkVEBdWa.d.ts → index-CB9Srua5.d.ts} +1 -1
- package/dist/{index-C8wDPDcP.d.ts → index-CLmKfnqf.d.ts} +49 -7
- package/dist/{index-DMQG6kdM.d.ts → index-CPwzSbQQ.d.ts} +2 -2
- package/dist/{index-DAiGhkNZ.d.ts → index-D4I_obqR.d.ts} +1 -1
- package/dist/{index-foQMNKZO.d.ts → index-D5N9ikrS.d.ts} +48 -2
- package/dist/{index-D8o50qOE.d.ts → index-DFbvnBlf.d.ts} +31 -2
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/{index-ViSV0RBx.d.ts → index-DjMwF8ET.d.ts} +11 -1
- package/dist/{index-nCEmW6wa.d.ts → index-DtePJ_w_.d.ts} +1 -1
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-f4NGT-e2.d.ts → index-EFqQF2Bx.d.ts} +1 -1
- package/dist/{index-BB5yVIN-.d.ts → index-JL4auphT.d.ts} +2 -2
- package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +80 -79
- package/dist/index.js +118 -115
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +4 -2
- package/styles/bottom-sheet.css +27 -0
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/heading.css +47 -0
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +2 -0
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-CejS9MHm.js +0 -447
- package/dist/Typeahead-DQ3tmqYe.js +0 -375
- package/dist/index-Bqb_Fyju.d.ts +0 -80
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/locale-CCwVnyMZ.js +0 -42
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-jmqqnkKA.d.ts +0 -163
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BXkNZF3q.d.ts → index-CpiWVbRZ.d.ts} +1 -1
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Heading-B9C3LZlS.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Blockquote-DFqBv_oJ.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./CheckboxIndicator-D37cm2Rh.js";
|
|
6
6
|
import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as _sfc_main$7 } from "./Link-
|
|
7
|
+
import { d as _sfc_main$5, s as parseFenceLanguage, t as _sfc_main$6 } from "./CodeBlock-B2pnEOJY.js";
|
|
8
|
+
import { t as _sfc_main$7 } from "./Link-DCZ6922-.js";
|
|
9
9
|
import { Fragment, computed, defineComponent, h, ref } from "vue";
|
|
10
10
|
import { fromMarkdown } from "mdast-util-from-markdown";
|
|
11
11
|
import { gfmFromMarkdown } from "mdast-util-gfm";
|
|
12
12
|
import { gfm } from "micromark-extension-gfm";
|
|
13
13
|
import "../styles/markdown.css";
|
|
14
|
+
//#region src/Markdown/ast.ts
|
|
15
|
+
function isMarkdownExtensionNode(node, plugin, name) {
|
|
16
|
+
if (node.type !== "extension" || node.plugin == null || node.name == null) return false;
|
|
17
|
+
if (plugin != null && node.plugin !== plugin) return false;
|
|
18
|
+
if (name != null && node.name !== name) return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
function plainText(node) {
|
|
22
|
+
if (node.type === "text" || node.type === "inlineCode" || node.type === "code" || node.type === "html") return node.value ?? "";
|
|
23
|
+
if (node.type === "image" || node.type === "imageReference") return node.alt ?? node.label ?? "";
|
|
24
|
+
if (node.type === "footnoteReference") return node.label ?? node.identifier ?? "";
|
|
25
|
+
if (node.type === "break") return "\n";
|
|
26
|
+
return (node.children ?? []).map((child) => plainText(child)).join("");
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
14
29
|
//#region src/Markdown/blocks.ts
|
|
15
30
|
function splitSourceLines(source) {
|
|
16
31
|
if (source.length === 0) return [];
|
|
@@ -261,11 +276,65 @@ function trimStreamingTail(tail) {
|
|
|
261
276
|
//#region src/Markdown/parse.ts
|
|
262
277
|
const markdownExtensions = [gfm(), { disable: { null: ["htmlFlow", "htmlText"] } }];
|
|
263
278
|
const mdastExtensions = [gfmFromMarkdown()];
|
|
264
|
-
function
|
|
265
|
-
|
|
279
|
+
function isAutolinkLiteral(node, source) {
|
|
280
|
+
if (node.type !== "link" || node.title != null && node.title !== "") return false;
|
|
281
|
+
const only = node.children?.length === 1 ? node.children[0] : null;
|
|
282
|
+
if (only == null || only.type !== "text" || only.value == null) return false;
|
|
283
|
+
const start = node.position?.start?.offset;
|
|
284
|
+
const end = node.position?.end?.offset;
|
|
285
|
+
if (start == null || end == null) return false;
|
|
286
|
+
const raw = source.slice(start, end);
|
|
287
|
+
if (raw.startsWith("<") || raw.startsWith("[")) return false;
|
|
288
|
+
return raw === only.value;
|
|
289
|
+
}
|
|
290
|
+
/** Turn bare autolinks back into text. Explicit links and `<url>` stay. */
|
|
291
|
+
function stripAutolinkLiterals(node, source) {
|
|
292
|
+
if (node.children == null) return node;
|
|
293
|
+
let changed = false;
|
|
294
|
+
const children = [];
|
|
295
|
+
for (const child of node.children) {
|
|
296
|
+
if (isAutolinkLiteral(child, source)) {
|
|
297
|
+
const start = child.position?.start?.offset ?? 0;
|
|
298
|
+
const end = child.position?.end?.offset ?? start;
|
|
299
|
+
children.push({
|
|
300
|
+
type: "text",
|
|
301
|
+
value: source.slice(start, end)
|
|
302
|
+
});
|
|
303
|
+
changed = true;
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
const next = stripAutolinkLiterals(child, source);
|
|
307
|
+
if (next !== child) changed = true;
|
|
308
|
+
children.push(next);
|
|
309
|
+
}
|
|
310
|
+
if (!changed) return node;
|
|
311
|
+
return {
|
|
312
|
+
...node,
|
|
313
|
+
children: mergeAdjacentText(children)
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
function mergeAdjacentText(children) {
|
|
317
|
+
const merged = [];
|
|
318
|
+
for (const child of children) {
|
|
319
|
+
const previous = merged[merged.length - 1];
|
|
320
|
+
if (previous?.type === "text" && child.type === "text") {
|
|
321
|
+
merged[merged.length - 1] = {
|
|
322
|
+
type: "text",
|
|
323
|
+
value: `${previous.value ?? ""}${child.value ?? ""}`
|
|
324
|
+
};
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
merged.push(child);
|
|
328
|
+
}
|
|
329
|
+
return merged;
|
|
330
|
+
}
|
|
331
|
+
function parseMarkdown(source, options) {
|
|
332
|
+
const root = fromMarkdown(source, {
|
|
266
333
|
extensions: markdownExtensions,
|
|
267
334
|
mdastExtensions
|
|
268
335
|
});
|
|
336
|
+
if (options?.autolink === "gfm") return root;
|
|
337
|
+
return stripAutolinkLiterals(root, source);
|
|
269
338
|
}
|
|
270
339
|
function createIncrementalMarkdownState() {
|
|
271
340
|
return {
|
|
@@ -292,7 +361,7 @@ function parseMarkdownIncremental(source, state, options) {
|
|
|
292
361
|
if (end > state.settledEnd) {
|
|
293
362
|
const slice = source.slice(state.settledEnd, end);
|
|
294
363
|
if (slice.trim() !== "") {
|
|
295
|
-
const children = parseMarkdown(slice).children ?? [];
|
|
364
|
+
const children = parseMarkdown(slice, { autolink: options?.autolink }).children ?? [];
|
|
296
365
|
state.blocks = state.blocks.concat(children);
|
|
297
366
|
}
|
|
298
367
|
state.settledEnd = end;
|
|
@@ -300,20 +369,126 @@ function parseMarkdownIncremental(source, state, options) {
|
|
|
300
369
|
state.settledSource = source;
|
|
301
370
|
const tail = source.slice(state.settledEnd);
|
|
302
371
|
const prepared = options?.trimTail === true ? trimStreamingTail(tail) : tail;
|
|
303
|
-
const tailBlocks = prepared.trim() === "" ? [] : parseMarkdown(prepared).children ?? [];
|
|
372
|
+
const tailBlocks = prepared.trim() === "" ? [] : parseMarkdown(prepared, { autolink: options?.autolink }).children ?? [];
|
|
304
373
|
return {
|
|
305
374
|
blocks: state.blocks.concat(tailBlocks),
|
|
306
375
|
settledCount: state.blocks.length
|
|
307
376
|
};
|
|
308
377
|
}
|
|
309
378
|
//#endregion
|
|
310
|
-
//#region src/Markdown/
|
|
311
|
-
function
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
if (
|
|
316
|
-
|
|
379
|
+
//#region src/Markdown/plugins.ts
|
|
380
|
+
function defineMarkdownPlugin(plugin) {
|
|
381
|
+
return plugin;
|
|
382
|
+
}
|
|
383
|
+
function applyMarkdownPlugins(root, plugins) {
|
|
384
|
+
if (plugins == null || plugins.length === 0) return root;
|
|
385
|
+
let current = root;
|
|
386
|
+
for (const plugin of plugins) {
|
|
387
|
+
if (plugin.transform == null) continue;
|
|
388
|
+
const reports = [];
|
|
389
|
+
const next = plugin.transform(current, { report(message) {
|
|
390
|
+
reports.push(message);
|
|
391
|
+
} });
|
|
392
|
+
for (const message of reports) if (typeof console !== "undefined") console.warn(`[Astryx] Markdown plugin "${plugin.name}": ${message}`);
|
|
393
|
+
if (next != null) current = next;
|
|
394
|
+
}
|
|
395
|
+
return current;
|
|
396
|
+
}
|
|
397
|
+
function splitText(text, plugins) {
|
|
398
|
+
const held = [];
|
|
399
|
+
for (const plugin of plugins) {
|
|
400
|
+
if (!plugin.pattern.global) {
|
|
401
|
+
if (typeof console !== "undefined") console.warn("[Astryx] Markdown inline plugin patterns need the g flag.");
|
|
402
|
+
continue;
|
|
403
|
+
}
|
|
404
|
+
plugin.pattern.lastIndex = 0;
|
|
405
|
+
let match = plugin.pattern.exec(text);
|
|
406
|
+
while (match != null) {
|
|
407
|
+
if (match[0].length === 0) {
|
|
408
|
+
plugin.pattern.lastIndex += 1;
|
|
409
|
+
match = plugin.pattern.exec(text);
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
let end = match.index + match[0].length;
|
|
413
|
+
if (plugin.getEndIndex != null) {
|
|
414
|
+
const refined = plugin.getEndIndex(text, match);
|
|
415
|
+
if (refined === false) {
|
|
416
|
+
match = plugin.pattern.exec(text);
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
end = refined;
|
|
420
|
+
}
|
|
421
|
+
if (end <= match.index) {
|
|
422
|
+
match = plugin.pattern.exec(text);
|
|
423
|
+
continue;
|
|
424
|
+
}
|
|
425
|
+
end = Math.min(end, text.length);
|
|
426
|
+
const node = plugin.replace(match);
|
|
427
|
+
if (node != null) held.push({
|
|
428
|
+
start: match.index,
|
|
429
|
+
end,
|
|
430
|
+
node
|
|
431
|
+
});
|
|
432
|
+
match = plugin.pattern.exec(text);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (held.length === 0) return null;
|
|
436
|
+
held.sort((left, right) => left.start - right.start);
|
|
437
|
+
const resolved = [];
|
|
438
|
+
let lastEnd = 0;
|
|
439
|
+
for (const item of held) if (item.start >= lastEnd) {
|
|
440
|
+
resolved.push(item);
|
|
441
|
+
lastEnd = item.end;
|
|
442
|
+
}
|
|
443
|
+
const nodes = [];
|
|
444
|
+
let cursor = 0;
|
|
445
|
+
for (const item of resolved) {
|
|
446
|
+
if (item.start > cursor) nodes.push({
|
|
447
|
+
type: "text",
|
|
448
|
+
value: text.slice(cursor, item.start)
|
|
449
|
+
});
|
|
450
|
+
nodes.push(item.node);
|
|
451
|
+
cursor = item.end;
|
|
452
|
+
}
|
|
453
|
+
if (cursor < text.length) nodes.push({
|
|
454
|
+
type: "text",
|
|
455
|
+
value: text.slice(cursor)
|
|
456
|
+
});
|
|
457
|
+
return nodes;
|
|
458
|
+
}
|
|
459
|
+
function mapInline(nodes, plugins) {
|
|
460
|
+
let changed = false;
|
|
461
|
+
const next = nodes.map((node) => {
|
|
462
|
+
if (node.type === "text" && node.value != null && node.value !== "") {
|
|
463
|
+
const parts = splitText(node.value, plugins);
|
|
464
|
+
if (parts != null) {
|
|
465
|
+
changed = true;
|
|
466
|
+
return parts;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (node.children != null) {
|
|
470
|
+
const children = mapInline(node.children, plugins);
|
|
471
|
+
if (children !== node.children) {
|
|
472
|
+
changed = true;
|
|
473
|
+
return {
|
|
474
|
+
...node,
|
|
475
|
+
children
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
return node;
|
|
480
|
+
});
|
|
481
|
+
if (!changed) return nodes;
|
|
482
|
+
return next.flat();
|
|
483
|
+
}
|
|
484
|
+
function applyInlinePlugins(root, plugins) {
|
|
485
|
+
if (plugins == null || plugins.length === 0 || root.children == null) return root;
|
|
486
|
+
const children = mapInline(root.children, plugins);
|
|
487
|
+
if (children === root.children) return root;
|
|
488
|
+
return {
|
|
489
|
+
...root,
|
|
490
|
+
children
|
|
491
|
+
};
|
|
317
492
|
}
|
|
318
493
|
//#endregion
|
|
319
494
|
//#region src/Markdown/slug.ts
|
|
@@ -527,6 +702,26 @@ function renderCitation(id, key, start, ctx) {
|
|
|
527
702
|
const title = source?.title?.trim() || id;
|
|
528
703
|
const href = source?.url == null ? null : sanitizeMarkdownLinkUrl(source.url);
|
|
529
704
|
const icon = source?.icon == null ? null : sanitizeMarkdownImageUrl(source.icon);
|
|
705
|
+
const accessibleName = ctx.citationLabel(number, title);
|
|
706
|
+
const fading = fadeClass(start, ctx.fade);
|
|
707
|
+
if (ctx.citationStyle === "number") {
|
|
708
|
+
const shared = {
|
|
709
|
+
"key": key,
|
|
710
|
+
"class": ["astryx-markdown__cite", fading],
|
|
711
|
+
"data-citation": String(number),
|
|
712
|
+
"data-citation-style": "number",
|
|
713
|
+
"aria-label": accessibleName,
|
|
714
|
+
title
|
|
715
|
+
};
|
|
716
|
+
const text = String(number);
|
|
717
|
+
if (href == null) return h("span", shared, text);
|
|
718
|
+
return h("a", {
|
|
719
|
+
...shared,
|
|
720
|
+
href,
|
|
721
|
+
rel: linkOpensInNewTab(href) ? "noopener noreferrer" : void 0,
|
|
722
|
+
target: linkOpensInNewTab(href) ? "_blank" : void 0
|
|
723
|
+
}, text);
|
|
724
|
+
}
|
|
530
725
|
const label = h("span", { class: "astryx-markdown__cite-label" }, title);
|
|
531
726
|
const iconNode = icon == null ? null : h("span", { class: "astryx-markdown__cite-icon" }, [h("img", {
|
|
532
727
|
alt: "",
|
|
@@ -534,26 +729,43 @@ function renderCitation(id, key, start, ctx) {
|
|
|
534
729
|
})]);
|
|
535
730
|
const className = [
|
|
536
731
|
"astryx-markdown__cite",
|
|
537
|
-
|
|
732
|
+
fading,
|
|
538
733
|
iconNode == null ? null : "astryx-markdown__cite--icon"
|
|
539
734
|
];
|
|
540
735
|
const children = iconNode == null ? [label] : [iconNode, label];
|
|
541
|
-
|
|
736
|
+
const shared = {
|
|
542
737
|
key,
|
|
543
738
|
"class": className,
|
|
544
739
|
"data-citation": String(number),
|
|
740
|
+
"data-citation-style": "label",
|
|
741
|
+
"aria-label": accessibleName,
|
|
545
742
|
title
|
|
546
|
-
}
|
|
743
|
+
};
|
|
744
|
+
if (href == null) return h("span", shared, children);
|
|
547
745
|
return h("a", {
|
|
548
|
-
|
|
549
|
-
"class": className,
|
|
550
|
-
"data-citation": String(number),
|
|
746
|
+
...shared,
|
|
551
747
|
href,
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
title
|
|
748
|
+
rel: linkOpensInNewTab(href) ? "noopener noreferrer" : void 0,
|
|
749
|
+
target: linkOpensInNewTab(href) ? "_blank" : void 0
|
|
555
750
|
}, children);
|
|
556
751
|
}
|
|
752
|
+
function extensionRenderer(node, ctx) {
|
|
753
|
+
const owner = node.plugin;
|
|
754
|
+
if (owner == null) return null;
|
|
755
|
+
const block = ctx.plugins?.find((plugin) => plugin.name === owner && plugin.render != null);
|
|
756
|
+
if (block?.render != null) return block.render;
|
|
757
|
+
return (ctx.inlinePlugins?.find((plugin) => plugin.name === owner && plugin.render != null))?.render ?? null;
|
|
758
|
+
}
|
|
759
|
+
function renderExtension(node, key, ctx) {
|
|
760
|
+
const render = extensionRenderer(node, ctx);
|
|
761
|
+
if (render != null) {
|
|
762
|
+
const rendered = render(node, { renderChildren: () => renderChildren(node.children, key, ctx) });
|
|
763
|
+
if (rendered != null) return rendered;
|
|
764
|
+
}
|
|
765
|
+
if (node.value != null && node.value !== "") return renderText(node.value, key, ctx);
|
|
766
|
+
if (node.children != null && node.children.length > 0) return h(Fragment, { key }, renderChildren(node.children, key, ctx));
|
|
767
|
+
return null;
|
|
768
|
+
}
|
|
557
769
|
function fadeClass(start, fade) {
|
|
558
770
|
if (!fade.active || fade.boundaries.length === 0) return void 0;
|
|
559
771
|
const oldest = fade.boundaries[0];
|
|
@@ -651,6 +863,7 @@ function renderInline(node, key, ctx) {
|
|
|
651
863
|
class: "astryx-markdown__fn"
|
|
652
864
|
}, [h(_sfc_main$7, { href: `#astryx-fn-${id}` }, () => labelNode)]);
|
|
653
865
|
}
|
|
866
|
+
case "extension": return renderExtension(node, key, ctx);
|
|
654
867
|
default:
|
|
655
868
|
if (node.children != null) return h(Fragment, { key }, renderChildren(node.children, key, ctx));
|
|
656
869
|
return null;
|
|
@@ -809,12 +1022,14 @@ function renderBlock(node, key, ctx) {
|
|
|
809
1022
|
code: value,
|
|
810
1023
|
language
|
|
811
1024
|
}, () => value);
|
|
1025
|
+
const fence = parseFenceLanguage(language);
|
|
812
1026
|
return h("div", {
|
|
813
1027
|
key,
|
|
814
1028
|
class: ["astryx-markdown__code", fadeClass(start, ctx.fade)]
|
|
815
1029
|
}, [h(_sfc_main$6, {
|
|
816
1030
|
code: value,
|
|
817
|
-
language: language
|
|
1031
|
+
language: fence.language,
|
|
1032
|
+
isDiff: fence.isDiff,
|
|
818
1033
|
width: "100%",
|
|
819
1034
|
isCollapsible: true
|
|
820
1035
|
})]);
|
|
@@ -874,6 +1089,7 @@ function renderBlock(node, key, ctx) {
|
|
|
874
1089
|
}
|
|
875
1090
|
case "definition": return null;
|
|
876
1091
|
case "image": return renderInline(node, key, ctx);
|
|
1092
|
+
case "extension": return renderExtension(node, key, ctx);
|
|
877
1093
|
default: return renderInline(node, key, ctx);
|
|
878
1094
|
}
|
|
879
1095
|
}
|
|
@@ -954,6 +1170,22 @@ const _sfc_main = defineComponent({
|
|
|
954
1170
|
type: Function,
|
|
955
1171
|
default: void 0
|
|
956
1172
|
},
|
|
1173
|
+
plugins: {
|
|
1174
|
+
type: Array,
|
|
1175
|
+
default: void 0
|
|
1176
|
+
},
|
|
1177
|
+
inlinePlugins: {
|
|
1178
|
+
type: Array,
|
|
1179
|
+
default: void 0
|
|
1180
|
+
},
|
|
1181
|
+
autolink: {
|
|
1182
|
+
type: String,
|
|
1183
|
+
default: void 0
|
|
1184
|
+
},
|
|
1185
|
+
citationStyle: {
|
|
1186
|
+
type: String,
|
|
1187
|
+
default: "label"
|
|
1188
|
+
},
|
|
957
1189
|
sources: {
|
|
958
1190
|
type: Object,
|
|
959
1191
|
default: void 0
|
|
@@ -970,27 +1202,35 @@ const _sfc_main = defineComponent({
|
|
|
970
1202
|
const cache = /* @__PURE__ */ new Map();
|
|
971
1203
|
let boundaries = [];
|
|
972
1204
|
let previousLength = 0;
|
|
1205
|
+
let seenAutolink = props.autolink;
|
|
973
1206
|
return () => {
|
|
974
1207
|
if (props.content == null) {
|
|
975
1208
|
const text = slotText(slots.default?.());
|
|
976
1209
|
if (slotSource.value !== text) slotSource.value = text;
|
|
977
1210
|
}
|
|
978
|
-
if (!props.isStreaming) {
|
|
1211
|
+
if (!props.isStreaming || seenAutolink !== props.autolink) {
|
|
979
1212
|
incremental.settledEnd = 0;
|
|
980
1213
|
incremental.settledSource = "";
|
|
981
1214
|
incremental.blocks = [];
|
|
1215
|
+
seenAutolink = props.autolink;
|
|
982
1216
|
}
|
|
983
1217
|
const shown = source.value;
|
|
984
1218
|
const inline = props.display === "inline";
|
|
985
1219
|
const parsed = inline || !props.isStreaming ? {
|
|
986
|
-
blocks: parseMarkdown(shown).children ?? [],
|
|
1220
|
+
blocks: parseMarkdown(shown, { autolink: props.autolink }).children ?? [],
|
|
987
1221
|
settledCount: 0
|
|
988
|
-
} : parseMarkdownIncremental(shown, incremental, {
|
|
1222
|
+
} : parseMarkdownIncremental(shown, incremental, {
|
|
1223
|
+
trimTail: true,
|
|
1224
|
+
autolink: props.autolink
|
|
1225
|
+
});
|
|
989
1226
|
if (!props.isStreaming || shown.length === 0) {
|
|
990
1227
|
boundaries = [];
|
|
991
1228
|
previousLength = 0;
|
|
992
1229
|
} else boundaries = computeBoundaries(boundaries, previousLength, fadeSpanCount());
|
|
993
|
-
const blocks =
|
|
1230
|
+
const blocks = applyInlinePlugins(applyMarkdownPlugins({
|
|
1231
|
+
type: "root",
|
|
1232
|
+
children: parsed.blocks
|
|
1233
|
+
}, props.plugins), props.inlinePlugins).children ?? [];
|
|
994
1234
|
const ctx = {
|
|
995
1235
|
components: props.components,
|
|
996
1236
|
fade: {
|
|
@@ -1008,6 +1248,10 @@ const _sfc_main = defineComponent({
|
|
|
1008
1248
|
slugs: assignHeadingSlugs(blocks),
|
|
1009
1249
|
sources: props.sources,
|
|
1010
1250
|
citationOrder: /* @__PURE__ */ new Map(),
|
|
1251
|
+
citationStyle: props.citationStyle ?? "label",
|
|
1252
|
+
citationLabel: messages.value.citation.label,
|
|
1253
|
+
plugins: props.plugins,
|
|
1254
|
+
inlinePlugins: props.inlinePlugins,
|
|
1011
1255
|
checkboxIndicator: checkboxIndicator.value
|
|
1012
1256
|
};
|
|
1013
1257
|
const children = renderMarkdownBlocks(blocks, inline ? 0 : parsed.settledCount, ctx, cache);
|
|
@@ -1035,4 +1279,4 @@ const _sfc_main = defineComponent({
|
|
|
1035
1279
|
}
|
|
1036
1280
|
});
|
|
1037
1281
|
//#endregion
|
|
1038
|
-
export {
|
|
1282
|
+
export { applyMarkdownPlugins as a, isMarkdownExtensionNode as c, applyInlinePlugins as i, slugify as n, defineMarkdownPlugin as o, uniqueSlug as r, parseMarkdown as s, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-CFaocx6j.js";
|
|
2
2
|
export { _sfc_main as MetadataList, _sfc_main$1 as MetadataListItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
2
|
import { Comment, Fragment, computed, defineComponent, h, inject, provide, ref, useId, useSlots } from "vue";
|
|
3
3
|
import "../styles/metadata-list.css";
|
|
4
4
|
//#region src/MetadataList/context.ts
|
package/dist/MobileNav/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-
|
|
1
|
+
import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-Dh3uLivq.js";
|
|
2
2
|
export { _sfc_main as MobileNav, _sfc_main$1 as MobileNavToggle, mobileNavKey };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-BvMdXVX9.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, watch } from "vue";
|
|
4
4
|
import "../styles/mobile-nav.css";
|
|
5
5
|
//#region src/MobileNav/context.ts
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { An as
|
|
1
|
+
import { An as MoreMenuDivider, Bn as MoreMenuSection, Fn as MoreMenuItemVariant, In as MoreMenuOption, Ln as MoreMenuPresentation, Mn as MoreMenuIcon, Nn as MoreMenuInitialFocus, Pn as MoreMenuItem, Rn as MoreMenuProps, Vn as MoreMenuSlots, jn as MoreMenuEmits, kn as _default, zn as MoreMenuResolvedPresentation } from "../index-B9rqmYxh.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|
package/dist/MoreMenu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../MoreMenu-
|
|
1
|
+
import { t as _sfc_main } from "../MoreMenu-B95nRSe8.js";
|
|
2
2
|
export { _sfc_main as MoreMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as getFocusables, t as focusElement } from "./focus-CpficIgf.js";
|
|
2
2
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
3
|
-
import { t as _sfc_main$5 } from "./Heading-Dugosn6j.js";
|
|
4
3
|
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
4
|
+
import { t as _sfc_main$5 } from "./Heading-B9C3LZlS.js";
|
|
5
5
|
import { t as _sfc_main$6 } from "./IconButton-BNQuz9W_.js";
|
|
6
6
|
import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
|
|
7
7
|
import { t as _sfc_main$8 } from "./Divider-BtwnL18I.js";
|
|
8
|
-
import { n as _sfc_main$10, t as _sfc_main$9 } from "./ListItem-
|
|
8
|
+
import { n as _sfc_main$10, t as _sfc_main$9 } from "./ListItem-CcRHWuEm.js";
|
|
9
9
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
10
10
|
import "../styles/more-menu.css";
|
|
11
11
|
//#region src/MoreMenu/context.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-
|
|
1
|
+
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-4TRnFGxv.js";
|
|
2
2
|
export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-
|
|
1
|
+
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-DuF5TECE.js";
|
|
2
2
|
export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -2,16 +2,16 @@ import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
|
2
2
|
import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
|
|
3
3
|
import { t as useDisclosureHandle } from "./useDisclosureHandle-Df3HhAfC.js";
|
|
4
4
|
import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
|
|
5
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
5
6
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as _sfc_main$1 } from "./BottomSheet-Dg95HB1s.js";
|
|
7
|
+
import { t as _sfc_main$1 } from "./BottomSheet-BV6vfgGu.js";
|
|
8
8
|
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
9
9
|
import { t as _sfc_main$3 } from "./Spinner-9cYUCnDy.js";
|
|
10
10
|
import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
|
|
11
11
|
import { t as _sfc_main$4 } from "./Field-8zRxzDHE.js";
|
|
12
12
|
import { t as INPUT_GROUP_KEY } from "./context-D5-MwxnN.js";
|
|
13
|
-
import { n as fieldStatusPlacement, r as _sfc_main$5, t as searchResultMessage } from "./searchResultMessage-
|
|
14
|
-
import { t as _sfc_main$6 } from "./Token-
|
|
13
|
+
import { n as fieldStatusPlacement, r as _sfc_main$5, t as searchResultMessage } from "./searchResultMessage-CCnq-_ce.js";
|
|
14
|
+
import { t as _sfc_main$6 } from "./Token-D2GsI_Ei.js";
|
|
15
15
|
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-BN9LQnon.js";
|
|
16
16
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
17
17
|
import "../styles/visually-hidden-utility.css";
|
|
@@ -5,6 +5,8 @@ import "../styles/nav-menu.css";
|
|
|
5
5
|
//#region src/NavMenu/context.ts
|
|
6
6
|
const navMenuKey = Symbol("astryx-nav-menu");
|
|
7
7
|
const navMenuCloseKey = Symbol("astryx-nav-menu-close");
|
|
8
|
+
/** 弹出层要求菜单把焦点放在哪一项。菜单可以自己收,调用方也可以用插槽参数盖过它。 */
|
|
9
|
+
const navMenuFocusKey = Symbol("astryx-nav-menu-focus");
|
|
8
10
|
//#endregion
|
|
9
11
|
//#region src/NavMenu/NavDisclosure.vue
|
|
10
12
|
const _hoisted_1 = ["data-placement"];
|
|
@@ -125,6 +127,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
125
127
|
trigger: anchorRef
|
|
126
128
|
});
|
|
127
129
|
provide(navMenuCloseKey, () => close(true));
|
|
130
|
+
provide(navMenuFocusKey, focusRequest);
|
|
128
131
|
watch(isOpen, (open) => {
|
|
129
132
|
emit("openChange", open);
|
|
130
133
|
});
|
|
@@ -162,4 +165,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
162
165
|
}
|
|
163
166
|
});
|
|
164
167
|
//#endregion
|
|
165
|
-
export { navMenuCloseKey as n,
|
|
168
|
+
export { navMenuKey as i, navMenuCloseKey as n, navMenuFocusKey as r, _sfc_main as t };
|