@astryx-vue/core 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.d.ts +1 -1
- 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/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
- package/dist/Chat/index.d.ts +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/Collapsible/index.d.ts +1 -1
- 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/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- 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.js +1 -1
- package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/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.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/TabList/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-DMQG6kdM.d.ts → index-6yB8BtEu.d.ts} +2 -2
- package/dist/{index-f4NGT-e2.d.ts → index-B4OOtNP8.d.ts} +3 -3
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
- package/dist/{index-D1Twv_fL.d.ts → index-BcZI402h.d.ts} +4 -4
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- 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-BMn9ghAX.d.ts → index-Bu0Zd1uw.d.ts} +3 -3
- package/dist/{index-Ctu32CLv.d.ts → index-BxhJqiZ7.d.ts} +2 -2
- package/dist/{index-CA6RbRWx.d.ts → index-By2mSzUA.d.ts} +1 -1
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
- package/dist/{index-DAiGhkNZ.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-ViSV0RBx.d.ts → index-CI9kyg74.d.ts} +12 -2
- package/dist/{index-C-QpeUlQ.d.ts → index-CNjbOgty.d.ts} +2 -2
- package/dist/{index-BB5yVIN-.d.ts → index-CUCcYKxl.d.ts} +3 -3
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-xfkEuGLY.d.ts → index-CZeoAr0a.d.ts} +2 -2
- package/dist/{index-C2sfHfBw.d.ts → index-D-ezcKaY.d.ts} +3 -3
- package/dist/{index-BcJBLWJ0.d.ts → index-DA52oIdw.d.ts} +2 -2
- package/dist/{index-D7-WTV6I.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-BTAgQRP0.d.ts → index-EtZgovdH.d.ts} +169 -81
- 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-D8o50qOE.d.ts → index-cL3q7O4R.d.ts} +32 -3
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DkVEBdWa.d.ts → index-fa72tWIU.d.ts} +2 -2
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-foQMNKZO.d.ts → index-hCpxKePE.d.ts} +49 -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 +81 -80
- 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 +3 -1
- 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-IdK2g5B4.d.ts} +2 -2
|
@@ -69,15 +69,50 @@ interface NavDisclosureSlots {
|
|
|
69
69
|
focusRequest: NavMenuFocusRequest;
|
|
70
70
|
}) => unknown;
|
|
71
71
|
}
|
|
72
|
+
interface NavHeadingMenuProps {
|
|
73
|
+
/** 菜单的无障碍名称。标题没传时可以自己写。 */
|
|
74
|
+
label?: string;
|
|
75
|
+
/** 菜单宽度档,也会传给每一项的内边距。 @default 'md' */
|
|
76
|
+
size?: NavMenuSize;
|
|
77
|
+
/** 覆盖按档位算出的最小宽度。数字按像素。 */
|
|
78
|
+
minWidth?: number | string;
|
|
79
|
+
/** 键盘打开后聚焦第一项或最后一项。 */
|
|
80
|
+
focusRequest?: NavMenuFocusRequest;
|
|
81
|
+
}
|
|
82
|
+
interface NavHeadingMenuEmits {
|
|
83
|
+
close: [];
|
|
84
|
+
}
|
|
85
|
+
interface NavHeadingMenuItemProps {
|
|
86
|
+
/** 主文字。自定义内容用默认插槽,插槽优先。 */
|
|
87
|
+
label?: string;
|
|
88
|
+
/** 主文字下面的辅助说明。 */
|
|
89
|
+
description?: string;
|
|
90
|
+
/** 有地址时渲染成链接。 */
|
|
91
|
+
href?: string;
|
|
92
|
+
/** 链接根组件。 */
|
|
93
|
+
as?: NavLinkComponent;
|
|
94
|
+
/** 图标 CSS class。 */
|
|
95
|
+
iconClass?: string;
|
|
96
|
+
/** 禁用后不响应点击,方向键和首字母查找也会跳过。 @default false */
|
|
97
|
+
isDisabled?: boolean;
|
|
98
|
+
}
|
|
99
|
+
interface NavHeadingMenuItemEmits {
|
|
100
|
+
click: [event: MouseEvent];
|
|
101
|
+
}
|
|
102
|
+
interface NavHeadingMenuItemSlots {
|
|
103
|
+
/** 自定义主文字。有插槽时不再显示 `label`。 */
|
|
104
|
+
default?: () => unknown;
|
|
105
|
+
icon?: () => unknown;
|
|
106
|
+
}
|
|
72
107
|
//#endregion
|
|
73
108
|
//#region src/NavMenu/NavDisclosure.vue.d.ts
|
|
74
109
|
type __VLS_Props = NavDisclosureProps;
|
|
75
|
-
type __VLS_Slots$
|
|
110
|
+
type __VLS_Slots$4 = NavDisclosureSlots;
|
|
76
111
|
type __VLS_ModelProps = {
|
|
77
112
|
'isOpen'?: boolean;
|
|
78
113
|
};
|
|
79
114
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
80
|
-
declare const __VLS_base$
|
|
115
|
+
declare const __VLS_base$4: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
116
|
openChange: (isOpen: boolean) => any;
|
|
82
117
|
"update:isOpen": (value: boolean) => any;
|
|
83
118
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -90,6 +125,44 @@ declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
90
125
|
hover: boolean;
|
|
91
126
|
showDelay: number;
|
|
92
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
128
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
129
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
130
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
131
|
+
new (): {
|
|
132
|
+
$slots: S;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/NavMenu/NavHeadingMenu.vue.d.ts
|
|
137
|
+
declare var __VLS_1$1: {};
|
|
138
|
+
type __VLS_Slots$3 = {} & {
|
|
139
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
140
|
+
};
|
|
141
|
+
declare const __VLS_base$3: import("vue").DefineComponent<NavHeadingMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
142
|
+
close: () => any;
|
|
143
|
+
}, string, import("vue").PublicProps, Readonly<NavHeadingMenuProps> & Readonly<{
|
|
144
|
+
onClose?: (() => any) | undefined;
|
|
145
|
+
}>, {
|
|
146
|
+
size: NavMenuSize;
|
|
147
|
+
focusRequest: NavMenuFocusRequest;
|
|
148
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
149
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
150
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
151
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
152
|
+
new (): {
|
|
153
|
+
$slots: S;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/NavMenu/NavHeadingMenuItem.vue.d.ts
|
|
158
|
+
type __VLS_Slots$2 = NavHeadingMenuItemSlots;
|
|
159
|
+
declare const __VLS_base$2: import("vue").DefineComponent<NavHeadingMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
160
|
+
click: (event: MouseEvent) => any;
|
|
161
|
+
}, string, import("vue").PublicProps, Readonly<NavHeadingMenuItemProps> & Readonly<{
|
|
162
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
163
|
+
}>, {
|
|
164
|
+
isDisabled: boolean;
|
|
165
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
93
166
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
94
167
|
declare const _default$2: typeof __VLS_export$2;
|
|
95
168
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
@@ -138,4 +211,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
138
211
|
};
|
|
139
212
|
};
|
|
140
213
|
//#endregion
|
|
141
|
-
export {
|
|
214
|
+
export { _default$4 as a, NavHeadingMenuItemEmits as c, NavMenuEmits as d, NavMenuItemEmits as f, NavMenuSize as g, NavMenuFocusRequest as h, _default$3 as i, NavHeadingMenuItemProps as l, NavMenuProps as m, _default$1 as n, NavDisclosureProps as o, NavMenuItemProps as p, _default$2 as r, NavHeadingMenuEmits as s, _default as t, NavHeadingMenuProps as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as TextType, l as TextWeight, n as TextColor, o as TextSize } from "./types-D9nP_X-c.js";
|
|
2
2
|
//#region src/Timer/format.d.ts
|
|
3
3
|
type TimerFormat = 'elapsed' | 'clock';
|
|
4
4
|
interface TimerPresentation {
|
|
@@ -142,8 +142,8 @@ type __VLS_Slots$1 = GridSlots;
|
|
|
142
142
|
declare const __VLS_base$1: import("vue").DefineComponent<GridProps, {
|
|
143
143
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
144
144
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridProps> & Readonly<{}>, {
|
|
145
|
-
align: GridAlignment;
|
|
146
145
|
justify: GridAlignment;
|
|
146
|
+
align: GridAlignment;
|
|
147
147
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
148
148
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
149
149
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/Pagination/types.d.ts
|
|
2
2
|
/** 上一页和下一页之间显示什么。 */
|
|
3
|
-
type PaginationVariant = 'pages' | 'count' | 'compact' | 'dots' | 'none';
|
|
3
|
+
type PaginationVariant = 'pages' | 'count' | 'compact' | 'dots' | 'input' | 'none';
|
|
4
4
|
/** 控件尺寸。 */
|
|
5
5
|
type PaginationSize = 'sm' | 'md';
|
|
6
6
|
interface PaginationProps {
|
|
@@ -17,10 +17,37 @@ interface PaginationProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* 中间区域的形态。
|
|
19
19
|
* `pages` 是页码,`count` 是「起–止 / 总数」,`compact` 是「第几页 / 共几页」,
|
|
20
|
-
* `dots` 是圆点,`none` 只留上一页和下一页。
|
|
20
|
+
* `dots` 是圆点,`input` 是可输入的页码,`none` 只留上一页和下一页。
|
|
21
21
|
* @default 'pages'
|
|
22
22
|
*/
|
|
23
23
|
variant?: PaginationVariant;
|
|
24
|
+
/**
|
|
25
|
+
* `pages` 形态下,当前页两侧各留几个页码。不传时宽容器是 1,窄容器会再收一档。
|
|
26
|
+
*/
|
|
27
|
+
siblingCount?: number;
|
|
28
|
+
/**
|
|
29
|
+
* 上一页 / 下一页每次跳几页。越过边界时停在第一页或最后一页。
|
|
30
|
+
* @default 1
|
|
31
|
+
*/
|
|
32
|
+
step?: number;
|
|
33
|
+
/**
|
|
34
|
+
* 总数还不知道时,后面是否还有内容。`total` 大于 0 时以总条目数为准,这个值不再生效。
|
|
35
|
+
*/
|
|
36
|
+
hasMore?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* `input` 形态里,输入框前面的名词。不传时用当前语言的「Page」或「页」。
|
|
39
|
+
*/
|
|
40
|
+
pageLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 是否在上一页 / 下一页外侧放跳到首尾的按钮。
|
|
43
|
+
* 不传时只在 `input` 形态、并且总页数已知时显示。
|
|
44
|
+
* `null` 和缺省是同一件事。布尔属性缺省会被当成 false,所以这里用 null 表示没指定。
|
|
45
|
+
*/
|
|
46
|
+
hasFirstLast?: boolean | null;
|
|
47
|
+
/**
|
|
48
|
+
* 页码已经提交之后再跑的动作。控件会在它结束前标成忙碌,失败也不会把页码改回去。
|
|
49
|
+
*/
|
|
50
|
+
changeAction?: (page: number) => void | Promise<void>;
|
|
24
51
|
/**
|
|
25
52
|
* 控件高度。
|
|
26
53
|
* @default 'md'
|
|
@@ -66,12 +93,14 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
|
|
|
66
93
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
67
94
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
68
95
|
}>, {
|
|
69
|
-
variant: PaginationVariant;
|
|
70
96
|
size: PaginationSize;
|
|
97
|
+
variant: PaginationVariant;
|
|
98
|
+
step: number;
|
|
71
99
|
disabled: boolean;
|
|
72
100
|
page: number;
|
|
73
101
|
pageSize: number;
|
|
74
102
|
total: number;
|
|
103
|
+
hasFirstLast: boolean | null;
|
|
75
104
|
showSizeChanger: boolean;
|
|
76
105
|
pageSizeOptions: number[];
|
|
77
106
|
showTotal: boolean;
|
|
@@ -4,6 +4,10 @@ type HeadingType = 'display-1' | 'display-2' | 'display-3' | 'body' | 'large' |
|
|
|
4
4
|
type HeadingColor = 'primary' | 'secondary' | 'accent' | 'inherit';
|
|
5
5
|
type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
6
6
|
type HeadingDisplay = 'block' | 'inline';
|
|
7
|
+
type HeadingWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
8
|
+
type HeadingWordBreak = 'break-word' | 'break-all';
|
|
9
|
+
type HeadingJustify = 'start' | 'center' | 'end';
|
|
10
|
+
type HeadingTruncateTooltip = boolean | 'above' | 'below' | 'start' | 'end';
|
|
7
11
|
interface HeadingProps {
|
|
8
12
|
/**
|
|
9
13
|
* Heading level (1-6). Determines the semantic HTML element (h1–h6).
|
|
@@ -27,22 +31,55 @@ interface HeadingProps {
|
|
|
27
31
|
* @default 'block'
|
|
28
32
|
*/
|
|
29
33
|
display?: HeadingDisplay;
|
|
34
|
+
/**
|
|
35
|
+
* Document outline level when it should differ from the visual `level`.
|
|
36
|
+
* The element stays `h{level}`; assistive technology reads this instead.
|
|
37
|
+
*/
|
|
38
|
+
accessibilityLevel?: HeadingLevel;
|
|
39
|
+
/**
|
|
40
|
+
* CSS `text-wrap` behavior.
|
|
41
|
+
*/
|
|
42
|
+
textWrap?: HeadingWrap;
|
|
43
|
+
/**
|
|
44
|
+
* How long unbroken strings break. Single-line truncation defaults to
|
|
45
|
+
* `break-all`; more than one line defaults to `break-word`.
|
|
46
|
+
*/
|
|
47
|
+
wordBreak?: HeadingWordBreak;
|
|
48
|
+
/**
|
|
49
|
+
* Text alignment. `start` and `end` follow the writing direction.
|
|
50
|
+
* @default 'start'
|
|
51
|
+
*/
|
|
52
|
+
justify?: HeadingJustify;
|
|
53
|
+
/**
|
|
54
|
+
* Draws a line through the text.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
hasStrikethrough?: boolean;
|
|
30
58
|
/**
|
|
31
59
|
* Maximum lines before truncation. 0 means no truncation.
|
|
32
60
|
* @default 0
|
|
33
61
|
*/
|
|
34
62
|
maxLines?: number;
|
|
63
|
+
/**
|
|
64
|
+
* 截断之后要不要把全文放进提示。`true` 出现在上方,方位字符串指定位置,`false` 关掉。
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
hasTruncateTooltip?: HeadingTruncateTooltip;
|
|
35
68
|
}
|
|
36
69
|
//#endregion
|
|
37
70
|
//#region src/Heading/Heading.vue.d.ts
|
|
38
|
-
declare var
|
|
71
|
+
declare var __VLS_13: {}, __VLS_21: {};
|
|
39
72
|
type __VLS_Slots = {} & {
|
|
40
|
-
default?: (props: typeof
|
|
73
|
+
default?: (props: typeof __VLS_13) => any;
|
|
74
|
+
} & {
|
|
75
|
+
default?: (props: typeof __VLS_21) => any;
|
|
41
76
|
};
|
|
42
77
|
declare const __VLS_base: import("vue").DefineComponent<HeadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeadingProps> & Readonly<{}>, {
|
|
43
78
|
color: HeadingColor;
|
|
44
79
|
display: HeadingDisplay;
|
|
80
|
+
justify: HeadingJustify;
|
|
45
81
|
maxLines: number;
|
|
82
|
+
hasTruncateTooltip: HeadingTruncateTooltip;
|
|
46
83
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
84
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
85
|
declare const _default: typeof __VLS_export;
|
|
@@ -52,4 +89,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
52
89
|
};
|
|
53
90
|
};
|
|
54
91
|
//#endregion
|
|
55
|
-
export {
|
|
92
|
+
export { HeadingLevel as a, HeadingType as c, HeadingWrap as d, HeadingJustify as i, HeadingWeight as l, HeadingColor as n, HeadingProps as o, HeadingDisplay as r, HeadingTruncateTooltip as s, _default as t, HeadingWordBreak as u };
|
|
@@ -24,10 +24,10 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<NavItemProps> & Readonly<{
|
|
25
25
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
|
|
27
|
+
size: NavItemSize;
|
|
28
28
|
isDisabled: boolean;
|
|
29
29
|
isIconOnly: boolean;
|
|
30
|
-
|
|
30
|
+
isSelected: boolean;
|
|
31
31
|
block: boolean;
|
|
32
32
|
plain: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -125,8 +125,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
125
125
|
onChange?: ((value: string) => any) | undefined;
|
|
126
126
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
127
127
|
}>, {
|
|
128
|
-
isDisabled: boolean;
|
|
129
128
|
size: SegmentedControlSize;
|
|
129
|
+
isDisabled: boolean;
|
|
130
130
|
layout: SegmentedControlLayout;
|
|
131
131
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
132
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as SyntaxThemeDefinition, o as SyntaxThemeTokens, s as SyntaxTokenKey } from "./syntaxTheme-CwVEcVDk.js";
|
|
2
2
|
import "./useClipboard-CU-kfqeJ.js";
|
|
3
3
|
import { ComputedRef, VNodeChild } from "vue";
|
|
4
4
|
//#region src/Code/types.d.ts
|
|
@@ -96,6 +96,17 @@ interface CodeBlockProps {
|
|
|
96
96
|
hasLineNumbers?: boolean;
|
|
97
97
|
/** One-indexed line numbers to emphasize with an accent background. */
|
|
98
98
|
highlightLines?: number[];
|
|
99
|
+
/**
|
|
100
|
+
* Paint the code as a unified diff over `language`.
|
|
101
|
+
*
|
|
102
|
+
* A line starting with `+` is added, `-` is removed, and `@@` is a hunk
|
|
103
|
+
* header. A `--- ` line directly followed by a `+++ ` line and then `@@`
|
|
104
|
+
* is a file header. The glyph sits in its own column. The rest of every
|
|
105
|
+
* line keeps this language's syntax colors. Copy still writes `code`,
|
|
106
|
+
* glyphs included. The header reads `diff`, or `<language> diff`.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
isDiff?: boolean;
|
|
99
110
|
/**
|
|
100
111
|
* Whether to show the copy button.
|
|
101
112
|
* @default true
|
|
@@ -198,12 +209,13 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
|
|
|
198
209
|
}, string, import("vue").PublicProps, Readonly<CodeBlockProps> & Readonly<{
|
|
199
210
|
onCopy?: (() => any) | undefined;
|
|
200
211
|
}>, {
|
|
201
|
-
width: string;
|
|
202
212
|
size: CodeBlockSize;
|
|
213
|
+
width: string;
|
|
203
214
|
container: CodeBlockContainer;
|
|
204
215
|
language: string;
|
|
205
216
|
hasLanguageLabel: boolean;
|
|
206
217
|
hasLineNumbers: boolean;
|
|
218
|
+
isDiff: boolean;
|
|
207
219
|
hasCopyButton: boolean;
|
|
208
220
|
isWrapped: boolean;
|
|
209
221
|
isCollapsible: boolean;
|
|
@@ -215,6 +227,40 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
|
|
|
215
227
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
216
228
|
declare const _default$1: typeof __VLS_export$1;
|
|
217
229
|
//#endregion
|
|
230
|
+
//#region src/Code/diff.d.ts
|
|
231
|
+
/** How a unified-diff line reads: what it adds, removes, frames, or keeps. */
|
|
232
|
+
type DiffLineKind = 'added' | 'removed' | 'header' | 'context';
|
|
233
|
+
interface DiffLines {
|
|
234
|
+
kinds: DiffLineKind[];
|
|
235
|
+
glyphs: string[];
|
|
236
|
+
content: string[];
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Read a fence info string the way a diff layer does.
|
|
240
|
+
* `diff` is the layer over plaintext. `diff-<lang>` is the layer over that
|
|
241
|
+
* language. Anything else, including `patch`, is just a language name.
|
|
242
|
+
*/
|
|
243
|
+
declare function parseFenceLanguage(info: string | undefined): {
|
|
244
|
+
language: string;
|
|
245
|
+
isDiff: boolean;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Split a diff into the glyph column and the code the base language sees.
|
|
249
|
+
* Added, removed, and space-led context lines lose their first character.
|
|
250
|
+
* A context line with no leading space keeps all of it. Header lines
|
|
251
|
+
* contribute an empty line so token offsets stay per line; the renderer
|
|
252
|
+
* paints those rows from the original text.
|
|
253
|
+
*/
|
|
254
|
+
declare function splitDiffLines(lines: readonly string[]): DiffLines;
|
|
255
|
+
/**
|
|
256
|
+
* Classify one line by its first character.
|
|
257
|
+
* `+` is added, `-` is removed, `@@` is a hunk header. A `--- ` line
|
|
258
|
+
* directly followed by a `+++ ` line and then an `@@` line is a file header
|
|
259
|
+
* wherever it occurs. Every other `---` or `+++` line is a change, so
|
|
260
|
+
* `---i;` is never mistaken for a header.
|
|
261
|
+
*/
|
|
262
|
+
declare function diffLineKind(line: string, isFileHeader?: boolean): DiffLineKind;
|
|
263
|
+
//#endregion
|
|
218
264
|
//#region src/Code/highlightRanges.d.ts
|
|
219
265
|
/** Token types painted by the stylesheet, so they never need a generated rule. */
|
|
220
266
|
declare const HIGHLIGHTED_TOKEN_TYPES: readonly ["keyword", "string", "comment", "number", "function", "type", "tag", "attribute", "property", "operator", "constant", "punctuation", "variable"];
|
|
@@ -306,4 +352,4 @@ interface UseSyntaxThemeReturn {
|
|
|
306
352
|
*/
|
|
307
353
|
declare function useSyntaxTheme(): UseSyntaxThemeReturn | null;
|
|
308
354
|
//#endregion
|
|
309
|
-
export {
|
|
355
|
+
export { _default$2 as A, CodeSlots as B, applyHighlightRanges as C, parseFenceLanguage as D, diffLineKind as E, CodeBlockTokenizer as F, TokenLine as H, CodeColor as I, CodeHighlightMode as L, CodeBlockEmits as M, CodeBlockProps as N, splitDiffLines as O, CodeBlockSize as P, CodeProps as R, HIGHLIGHTED_TOKEN_TYPES as S, DiffLines as T, SyntaxToken as V, oneDarkPro as _, tokenize as a, tokyoNight as b, allSyntaxPresets as c, darkSyntaxPresets as d, dracula as f, nord as g, monokai as h, flatTokensToLines as i, CodeBlockContainer as j, _default$1 as k, catppuccinLatte as l, lightSyntaxPresets as m, useSyntaxTheme as n, tokenizeAsync as o, githubLight as p, SYNC_TOKENIZE_THRESHOLD as r, _default as s, UseSyntaxThemeReturn as t, catppuccinMocha as u, oneLight as v, DiffLineKind as w, tokyoNightLight as x, solarizedLight as y, CodeSize as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useAsyncSource-xpQovjV_.js";
|
|
2
2
|
import "./useClipboard-CU-kfqeJ.js";
|
|
3
3
|
import "./useResizable-CUoNPmUw.js";
|
|
4
|
-
import { CSSProperties, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
4
|
+
import { CSSProperties, Component, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
5
5
|
import { CalendarDate } from "@internationalized/date";
|
|
6
6
|
//#region src/composables/useDateRange.d.ts
|
|
7
7
|
interface ISODateRange {
|
|
@@ -245,6 +245,47 @@ interface Combobox<T = string | number> {
|
|
|
245
245
|
*/
|
|
246
246
|
declare function useCombobox<T = string | number>(options: UseComboboxOptions<T>): Combobox<T>;
|
|
247
247
|
//#endregion
|
|
248
|
+
//#region src/composables/useContainerReveal.d.ts
|
|
249
|
+
interface UseContainerRevealOptions {
|
|
250
|
+
/**
|
|
251
|
+
* 为 false 时什么样式都不加,里面的内容一直可见。
|
|
252
|
+
* 每次调用都会重新读,所以可以随组件自己的开关变。
|
|
253
|
+
*/
|
|
254
|
+
isEnabled?: MaybeRefOrGetter<boolean>;
|
|
255
|
+
}
|
|
256
|
+
interface ContainerRevealOptions {
|
|
257
|
+
/**
|
|
258
|
+
* 指针必须停这么多毫秒,悬停揭示才开始。键盘和粗指针不等待。
|
|
259
|
+
*/
|
|
260
|
+
hoverDelay?: number;
|
|
261
|
+
/**
|
|
262
|
+
* 把容器钉在揭示或收起。`inactive` 仍让键盘焦点和粗指针看见内容。
|
|
263
|
+
*/
|
|
264
|
+
forceState?: 'active' | 'inactive';
|
|
265
|
+
}
|
|
266
|
+
interface ContentRevealOptions {
|
|
267
|
+
/** 反过来:平时可见,悬停时藏起。只影响指针,键盘和触摸仍看得到。 */
|
|
268
|
+
isRevealInverted?: boolean;
|
|
269
|
+
/** 藏起时仍占位,避免布局跳动。 */
|
|
270
|
+
isLayoutPreserved?: boolean;
|
|
271
|
+
/** 这一块自己的可见性,不跟容器走。`hidden` 在焦点进来时仍会露出。 */
|
|
272
|
+
forceVisibility?: 'shown' | 'hidden';
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* 悬停或键盘焦点时才露出行内操作。状态写在容器的自定义属性上,
|
|
276
|
+
* 嵌套容器会盖住外层,所以两层不会串。内容用透明度和定位藏起,不从无障碍树里拿掉。
|
|
277
|
+
*/
|
|
278
|
+
interface UseContainerReveal {
|
|
279
|
+
containerProps: (reveal?: ContainerRevealOptions) => {
|
|
280
|
+
class?: string | Record<string, boolean>;
|
|
281
|
+
style?: CSSProperties;
|
|
282
|
+
};
|
|
283
|
+
contentProps: (reveal?: ContentRevealOptions) => {
|
|
284
|
+
class?: string | Record<string, boolean>;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
declare function useContainerReveal(options?: UseContainerRevealOptions): UseContainerReveal;
|
|
288
|
+
//#endregion
|
|
248
289
|
//#region src/composables/useControllableState.d.ts
|
|
249
290
|
interface UseControllableStateOptions<T> {
|
|
250
291
|
/**
|
|
@@ -492,6 +533,63 @@ interface Hotkey {
|
|
|
492
533
|
*/
|
|
493
534
|
declare function useHotkeys(hotkeys: MaybeRefOrGetter<readonly Hotkey[]>): void;
|
|
494
535
|
//#endregion
|
|
536
|
+
//#region src/composables/useImageMode.d.ts
|
|
537
|
+
interface ImageSampleRegion {
|
|
538
|
+
/** 左边缘,0 是左,1 是右。 */
|
|
539
|
+
x: number;
|
|
540
|
+
/** 上边缘,0 是上,1 是下。 */
|
|
541
|
+
y: number;
|
|
542
|
+
/** 宽度占整张图的比例。 */
|
|
543
|
+
width: number;
|
|
544
|
+
/** 高度占整张图的比例。 */
|
|
545
|
+
height: number;
|
|
546
|
+
}
|
|
547
|
+
interface UseImageModeOptions {
|
|
548
|
+
/** 只采样这一块。不传时用整张图。坐标都是 0 到 1。 */
|
|
549
|
+
region?: ImageSampleRegion;
|
|
550
|
+
/** 低于这个亮度算暗,高于算亮。 */
|
|
551
|
+
threshold?: number;
|
|
552
|
+
/** 还在加载,或者读图失败时返回的值。 */
|
|
553
|
+
fallback?: 'dark' | 'light' | null;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* APCA 感知亮度。先把 sRGB 按 2.4 线性化,再用接近 BT.709 的系数合成,
|
|
557
|
+
* 最后做 0.56 次方,让 0.5 接近视觉上的中灰。饱和色比简单的伽马亮度更准。
|
|
558
|
+
*/
|
|
559
|
+
declare function perceptualLightness(r: number, g: number, b: number): number;
|
|
560
|
+
/** 一组采样像素的平均亮度,再和阈值比出深浅。 */
|
|
561
|
+
declare function imageModeFromPixels(pixels: Uint8ClampedArray, threshold?: number): 'dark' | 'light';
|
|
562
|
+
/**
|
|
563
|
+
* 按图片亮度判断该用深色还是浅色前景。采样走 OffscreenCanvas,不往页面上画。
|
|
564
|
+
* 跨域或网络失败时返回 `fallback`。
|
|
565
|
+
*/
|
|
566
|
+
declare function useImageMode(src: MaybeRefOrGetter<string | null | undefined>, options?: MaybeRefOrGetter<UseImageModeOptions>): Ref<'dark' | 'light' | null>;
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region src/composables/useKeyboardHint.d.ts
|
|
569
|
+
type KeyboardHintOrientation = 'horizontal' | 'vertical' | 'both';
|
|
570
|
+
interface UseKeyboardHintOptions {
|
|
571
|
+
/** 提示里画哪些方向键。 */
|
|
572
|
+
orientation?: KeyboardHintOrientation;
|
|
573
|
+
/** 出现之后多久自己消失,单位毫秒。 */
|
|
574
|
+
dismissAfterMs?: number;
|
|
575
|
+
/** 为 false 时这个实例不再提示。 */
|
|
576
|
+
isEnabled?: boolean;
|
|
577
|
+
}
|
|
578
|
+
interface UseKeyboardHint {
|
|
579
|
+
visible: Ref<boolean>;
|
|
580
|
+
anchor: Ref<HTMLElement | null>;
|
|
581
|
+
orientation: ComputedRef<KeyboardHintOrientation>;
|
|
582
|
+
onFocus: (event: FocusEvent) => void;
|
|
583
|
+
onBlur: (event: FocusEvent) => void;
|
|
584
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
585
|
+
Hint: Component;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* 一组方向键控件第一次被键盘点进来时,在当前项旁边短暂提示「用方向键移动」。
|
|
589
|
+
* 按过方向键、超时或焦点离开之后不再出现。
|
|
590
|
+
*/
|
|
591
|
+
declare function useKeyboardHint(options?: UseKeyboardHintOptions): UseKeyboardHint;
|
|
592
|
+
//#endregion
|
|
495
593
|
//#region src/composables/useListFocus.d.ts
|
|
496
594
|
/**
|
|
497
595
|
* 一维列表的方向。
|
|
@@ -614,6 +712,37 @@ declare function useLongPress(options: LongPressOptions): LongPressHandlers;
|
|
|
614
712
|
*/
|
|
615
713
|
declare function useMediaQuery(query: string): Ref<boolean>;
|
|
616
714
|
//#endregion
|
|
715
|
+
//#region src/ContextMenu/useMenuPress.d.ts
|
|
716
|
+
/** Forget an armed swallower. Called when a surface unmounts and in tests. */
|
|
717
|
+
declare function resetMenuPress(): void;
|
|
718
|
+
interface MenuPressOptions {
|
|
719
|
+
/** The element carrying `role="menu"` for this level. */
|
|
720
|
+
menuRef: Ref<HTMLElement | null>;
|
|
721
|
+
/** Whether the surface carries the press model right now. */
|
|
722
|
+
isEnabled: () => boolean;
|
|
723
|
+
/** A mouse press that began inside the menu was released outside it. */
|
|
724
|
+
onDismiss: () => void;
|
|
725
|
+
}
|
|
726
|
+
interface MenuPress {
|
|
727
|
+
/** Attach to the menu root's `pointerdown`. */
|
|
728
|
+
onPointerDown: (event: PointerEvent) => void;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* The press model of a painted menu surface.
|
|
732
|
+
*
|
|
733
|
+
* A finger's pointer events stay with the element it landed on, so the gesture
|
|
734
|
+
* is tracked at the document level by `pointerId`:
|
|
735
|
+
*
|
|
736
|
+
* - The highlight follows the finger.
|
|
737
|
+
* - The row under the RELEASE acts, the way its own click would, carrying the
|
|
738
|
+
* release's modifiers; the browser's own click for that gesture is swallowed
|
|
739
|
+
* so the row never acts twice.
|
|
740
|
+
* - A finger released outside leaves the menu open; a mouse released outside
|
|
741
|
+
* dismisses it.
|
|
742
|
+
* - `pointercancel` and a second pointer end the gesture with nothing acting.
|
|
743
|
+
*/
|
|
744
|
+
declare function useMenuPress(options: MenuPressOptions): MenuPress;
|
|
745
|
+
//#endregion
|
|
617
746
|
//#region src/composables/useMonthGrid.d.ts
|
|
618
747
|
declare function toISODate(date: CalendarDate): string;
|
|
619
748
|
declare function parseISODate(value: string): CalendarDate;
|
|
@@ -884,4 +1013,4 @@ interface UseTypeaheadReturn {
|
|
|
884
1013
|
*/
|
|
885
1014
|
declare function useTypeahead(options: UseTypeaheadOptions): UseTypeaheadReturn;
|
|
886
1015
|
//#endregion
|
|
887
|
-
export {
|
|
1016
|
+
export { UseKeyboardHint as $, useContainerReveal as $t, computeOverflow as A, isRangeWithinSpan as An, DatePresentation as At, MenuPress as B, formatISOTime as Bt, useRestoreFocus as C, ISODateRange as Cn, FieldControlStateInput as Ct, ComputeOverflowResult as D, compareISODate as Dn, DisclosureHandle as Dt, ComputeOverflowInput as E, applyRangeClick as En, useDismiss as Et, addMonths as F, ISOTimeString as Ft, LongPressHandlers as G, shiftTime as Gt, resetMenuPress as H, parseDisplayTime as Ht, buildMonthGrid as I, NativePicker as It, ListFocus as J, useControllableState as Jt, LongPressOptions as K, ControllableState as Kt, parseISODate as L, ParsedTime as Lt, NumberField as M, orderRange as Mn, resolveDatePresentation as Mt, UseNumberFieldOptions as N, resolveWeekStart as Nn, resolveDateSurface as Nt, UseOverflowOptions as O, formatDateRange as On, DisclosureHandleRef as Ot, useNumberField as P, spanDays as Pn, HourFormat as Pt, KeyboardHintOrientation as Q, UseContainerRevealOptions as Qt, toISODate as R, TimePresentation as Rt, UseRestoreFocusOptions as S, useAnnounce as Sn, FieldControlState as St, usePendingChange as T, WeekStartsOn as Tn, UseDismissOptions as Tt, useMenuPress as U, parseISOTime as Ut, MenuPressOptions as V, isTimeInRange as Vt, useMediaQuery as W, resolveTimeSurface as Wt, UseListFocusOptions as X, ContentRevealOptions as Xt, ListFocusOrientation as Y, ContainerRevealOptions as Yt, useListFocus as Z, UseContainerReveal as Zt, ScrollableAreaState as _, AppShellMobile as _n, FileRejection as _t, UseStreamingTextOptions as a, ClickableContainerHandlers as an, perceptualLightness as at, useScrollableArea as b, AnnounceFn as bn, formatFileSize as bt, ScrollOverflowState as c, useClickableContainer as cn, useHotkeys as ct, useScrollLock as d, UseChatStreamScrollReturn as dn, GridRovingFocus as dt, Combobox as en, UseKeyboardHintOptions as et, ScrollAxis as f, useChatStreamScroll as fn, UseGridRovingFocusOptions as ft, ScrollStickyContainment as g, useChatNewMessages as gn, useFocusTrap as gt, ScrollRole as h, UseChatNewMessagesReturn as hn, UseFocusTrapOptions as ht, StreamingTextSpeed as i, useCoarsePointer as in, imageModeFromPixels as it, useOverflow as j, isSameRange as jn, DateSurface as jt, UseOverflowReturn as k, isDayOutsideSpan as kn, useDisclosureHandle as kt, UseScrollOverflowResult as l, ChatScrollToBottomOptions as ln, HandleRef as lt, ScrollOverscroll as m, UseChatNewMessagesOptions as mn, FocusTrap as mt, UseTypeaheadReturn as n, UseComboboxOptions as nn, ImageSampleRegion as nt, snapToGraphemeBoundary as o, INTERACTIVE_SELECTORS as on, useImageMode as ot, ScrollAxisState as p, CHAT_MESSAGE_CLASS as pn, useGridRovingFocus as pt, useLongPress as q, UseControllableStateOptions as qt, useTypeahead as r, useCombobox as rn, UseImageModeOptions as rt, useStreamingText as s, UseClickableContainerOptions as sn, Hotkey as st, UseTypeaheadOptions as t, ComboboxOption as tn, useKeyboardHint as tt, useScrollOverflow as u, UseChatStreamScrollOptions as un, useHandleRef as ut, UseScrollableAreaOptions as v, appShellMobileKey as vn, FileSelectionOptions as vt, PendingChange as w, RangeClickResult as wn, useFieldControlState as wt, RestoreFocus as x, AnnouncePoliteness as xn, selectFiles as xt, UseScrollableAreaResult as y, useAppShellMobile as yn, FileSelectionResult as yt, todayISODate as z, formatDisplayTime as zt };
|