@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
|
@@ -36,14 +36,22 @@ interface TooltipProps {
|
|
|
36
36
|
isOpen?: boolean;
|
|
37
37
|
/** 挂载时是否默认显示。 */
|
|
38
38
|
isDefaultOpen?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 为 true 时不再包一层 span,默认插槽的根元素自己当触发器。
|
|
41
|
+
* 标题和段落不能放进 span。
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
anchorsOnSelf?: boolean;
|
|
39
45
|
}
|
|
40
46
|
//#endregion
|
|
41
47
|
//#region src/Tooltip/Tooltip.vue.d.ts
|
|
42
|
-
declare var __VLS_1: {},
|
|
48
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {};
|
|
43
49
|
type __VLS_Slots = {} & {
|
|
44
50
|
default?: (props: typeof __VLS_1) => any;
|
|
45
51
|
} & {
|
|
46
|
-
|
|
52
|
+
default?: (props: typeof __VLS_3) => any;
|
|
53
|
+
} & {
|
|
54
|
+
content?: (props: typeof __VLS_11) => any;
|
|
47
55
|
};
|
|
48
56
|
declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
57
|
openChange: (isOpen: boolean) => any;
|
|
@@ -61,6 +69,7 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
|
|
|
61
69
|
isEnabled: boolean;
|
|
62
70
|
hasHoverIndication: boolean | "auto";
|
|
63
71
|
isDefaultOpen: boolean;
|
|
72
|
+
anchorsOnSelf: boolean;
|
|
64
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
74
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
66
75
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { r as LinkRoot } from "./types-D_J66aPN.js";
|
|
1
2
|
//#region src/Avatar/types.d.ts
|
|
2
3
|
type AvatarNamedSize = 'xsm' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
4
|
type AvatarNumericSize = 16 | 20 | 24 | 32 | 36 | 40 | 48 | 60 | 64 | 72 | 96 | 128 | 144 | 180;
|
|
@@ -36,6 +37,11 @@ interface AvatarProps {
|
|
|
36
37
|
* When set, the avatar renders as a link.
|
|
37
38
|
*/
|
|
38
39
|
href?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Custom link component used when `href` is set. Receives `href` and `to`.
|
|
42
|
+
* Without `href`, the avatar stays a button or a span.
|
|
43
|
+
*/
|
|
44
|
+
as?: LinkRoot;
|
|
39
45
|
/**
|
|
40
46
|
* HTML target for the link. Only applies when `href` is set.
|
|
41
47
|
*/
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
20
20
|
as: StackElement;
|
|
21
|
-
wrap: StackWrap;
|
|
22
21
|
direction: StackDirection;
|
|
22
|
+
wrap: StackWrap;
|
|
23
23
|
isScrollable: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -35,8 +35,8 @@ type __VLS_Slots$1 = {
|
|
|
35
35
|
default: () => unknown;
|
|
36
36
|
};
|
|
37
37
|
declare const __VLS_base$1: import("vue").DefineComponent<StackItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackItemProps> & Readonly<{}>, {
|
|
38
|
-
as: StackElement;
|
|
39
38
|
size: StackItemSize;
|
|
39
|
+
as: StackElement;
|
|
40
40
|
isScrollable: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -18,9 +18,9 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
18
18
|
isOpen: boolean;
|
|
19
19
|
placement: LayerPlacement;
|
|
20
20
|
alignment: LayerAlignment;
|
|
21
|
-
hasAutoFocus: boolean;
|
|
22
|
-
isEnabled: boolean;
|
|
23
21
|
role: PopoverRole;
|
|
22
|
+
isEnabled: boolean;
|
|
23
|
+
hasAutoFocus: boolean;
|
|
24
24
|
isModal: boolean;
|
|
25
25
|
hasCloseButton: boolean;
|
|
26
26
|
closeButtonLabel: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as PowerSearchMessages } from "./power-search-DrDfcoL1.js";
|
|
2
2
|
import { ComputedRef, InjectionKey, MaybeRefOrGetter } from "vue";
|
|
3
3
|
//#region src/locale/types.d.ts
|
|
4
|
+
/** 内置文案的两种语言。其他语言用 `loadAstryxCatalog` 接原版 JSON。 */
|
|
4
5
|
type AstryxLocale = 'en' | 'zh-CN';
|
|
5
6
|
//#endregion
|
|
6
7
|
//#region src/locale/messages/calendar.d.ts
|
|
@@ -141,6 +142,12 @@ interface InputMessages {
|
|
|
141
142
|
statusSuccess: string;
|
|
142
143
|
}
|
|
143
144
|
//#endregion
|
|
145
|
+
//#region src/locale/messages/keyboard-hint.d.ts
|
|
146
|
+
interface KeyboardHintMessages {
|
|
147
|
+
/** 方向键提示里,按键后面的那句说明。 */
|
|
148
|
+
navigate: string;
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
144
151
|
//#region src/locale/messages/layout.d.ts
|
|
145
152
|
interface LayoutMessages {
|
|
146
153
|
skipToContent: string;
|
|
@@ -208,6 +215,8 @@ interface NavMessages {
|
|
|
208
215
|
expandItem: (label: string) => string;
|
|
209
216
|
collapseItem: (label: string) => string;
|
|
210
217
|
submenu: (label: string) => string;
|
|
218
|
+
resizeSidebar: string;
|
|
219
|
+
opensInNewTab: string;
|
|
211
220
|
}
|
|
212
221
|
//#endregion
|
|
213
222
|
//#region src/locale/messages/number-input.d.ts
|
|
@@ -235,6 +244,20 @@ interface PaginationMessages {
|
|
|
235
244
|
compact: (page: number, totalPages: number) => string;
|
|
236
245
|
/** compact 变体的「Page X of Y」。 */
|
|
237
246
|
pageOf: (page: number, totalPages: number) => string;
|
|
247
|
+
/** 跳到第一页。 */
|
|
248
|
+
first: string;
|
|
249
|
+
/** 跳到最后一页。 */
|
|
250
|
+
last: string;
|
|
251
|
+
/** 一次后退多页时,上一页按钮的无障碍名。 */
|
|
252
|
+
previousBy: (step: number) => string;
|
|
253
|
+
/** 一次前进多页时,下一页按钮的无障碍名。 */
|
|
254
|
+
nextBy: (step: number) => string;
|
|
255
|
+
/** `input` 变体输入框前面的名词,例如 Page。 */
|
|
256
|
+
pageLabel: string;
|
|
257
|
+
/** 输入框自己的无障碍名。 */
|
|
258
|
+
goToPage: string;
|
|
259
|
+
/** 输入框后面的「/ 总页数」。 */
|
|
260
|
+
ofTotal: (totalPages: number) => string;
|
|
238
261
|
}
|
|
239
262
|
//#endregion
|
|
240
263
|
//#region src/locale/messages/selector.d.ts
|
|
@@ -366,6 +389,7 @@ interface AstryxMessages {
|
|
|
366
389
|
dropdownMenu: DropdownMenuMessages;
|
|
367
390
|
fileInput: FileInputMessages;
|
|
368
391
|
input: InputMessages;
|
|
392
|
+
keyboardHint: KeyboardHintMessages;
|
|
369
393
|
layout: LayoutMessages;
|
|
370
394
|
lightbox: LightboxMessages;
|
|
371
395
|
markdown: MarkdownMessages;
|
|
@@ -389,14 +413,66 @@ interface AstryxMessages {
|
|
|
389
413
|
}
|
|
390
414
|
//#endregion
|
|
391
415
|
//#region src/locale/context.d.ts
|
|
392
|
-
declare const astryxLocaleKey: InjectionKey<MaybeRefOrGetter<
|
|
393
|
-
declare
|
|
394
|
-
|
|
395
|
-
|
|
416
|
+
declare const astryxLocaleKey: InjectionKey<MaybeRefOrGetter<string>>;
|
|
417
|
+
declare const astryxMessagesKey: InjectionKey<MaybeRefOrGetter<AstryxMessages>>;
|
|
418
|
+
/**
|
|
419
|
+
* 把语言标签收成组件能用的写法。
|
|
420
|
+
* `en` 和 `en-*` 收成 `en`。`zh`、`zh-CN`、`zh-Hans` 收成 `zh-CN`。
|
|
421
|
+
* `zh-TW` 以及其他标签保留规范写法,用来接 `loadAstryxCatalog` 的结果。
|
|
422
|
+
* 空值和解析不了的标签回到 `en`。
|
|
423
|
+
*/
|
|
424
|
+
declare function normalizeLocale(locale: string | null | undefined): string;
|
|
425
|
+
declare function provideAstryxLocale(locale: MaybeRefOrGetter<string>, messages?: MaybeRefOrGetter<AstryxMessages>): void;
|
|
426
|
+
declare function useAstryxLocale(): ComputedRef<string>;
|
|
396
427
|
declare function useAstryxMessages(): ComputedRef<AstryxMessages>;
|
|
397
428
|
//#endregion
|
|
398
429
|
//#region src/locale/format.d.ts
|
|
399
|
-
declare function formatCalendarMonth(year: number, month: number, locale:
|
|
400
|
-
declare function weekdayNames(locale:
|
|
401
|
-
//#endregion
|
|
402
|
-
|
|
430
|
+
declare function formatCalendarMonth(year: number, month: number, locale: string): string;
|
|
431
|
+
declare function weekdayNames(locale: string, style: 'long' | 'narrow' | 'short'): string[];
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region src/locale/loadCatalog.d.ts
|
|
434
|
+
/** 原版 `locales/*.json` 里的一条。运行时目录也可以只给字符串。 */
|
|
435
|
+
type AstryxUpstreamMessage = string | {
|
|
436
|
+
defaultMessage: string;
|
|
437
|
+
description?: string;
|
|
438
|
+
};
|
|
439
|
+
/** 原版语言目录。键是 `@astryx.*`。 */
|
|
440
|
+
type AstryxUpstreamCatalog = Record<string, AstryxUpstreamMessage>;
|
|
441
|
+
type UnmappedUpstreamReason = 'no-slot' | 'invalid-entry' | 'unsupported-message' | 'placeholder-mismatch' | 'slot-taken';
|
|
442
|
+
interface UnmappedUpstreamEntry {
|
|
443
|
+
key: string;
|
|
444
|
+
/** 原句。解析不了时保留目录里的原文,不丢掉。 */
|
|
445
|
+
message: string;
|
|
446
|
+
reason: UnmappedUpstreamReason;
|
|
447
|
+
}
|
|
448
|
+
interface LoadedAstryxLocale {
|
|
449
|
+
locale: string;
|
|
450
|
+
messages: AstryxMessages;
|
|
451
|
+
/** 这份 JSON 里没有写进 `messages` 的键,原文在 `message`。 */
|
|
452
|
+
unmapped: readonly UnmappedUpstreamEntry[];
|
|
453
|
+
/** 映射表里有,但这份 JSON 没给的键。这些字段继续用英文。 */
|
|
454
|
+
missingKeys: readonly string[];
|
|
455
|
+
/** 没有任何原版键写进来、因此仍是英文的字段路径。 */
|
|
456
|
+
fallbackFields: readonly string[];
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* 把一份原版 Astryx locale JSON 映射成 `AstryxMessages`。
|
|
460
|
+
* 内置的 `en` 和 `zh-CN` 不会被改掉。返回值要交给 `provideAstryxLocale` 的第二个参数。
|
|
461
|
+
* `unmapped` 列出每一个没写进文案树的键。
|
|
462
|
+
*/
|
|
463
|
+
declare function loadAstryxCatalog(locale: string, catalog: AstryxUpstreamCatalog): LoadedAstryxLocale;
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/locale/useCollator.d.ts
|
|
466
|
+
/**
|
|
467
|
+
* 按当前语言比较字符串,对应原版的 `useCollator`。
|
|
468
|
+
* 没提供语言时用 `en`。`options` 用 ref 或 computed 包起来,变了才会重建比较器。
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```ts
|
|
472
|
+
* const collator = useCollator({ numeric: true })
|
|
473
|
+
* items.sort((a, b) => collator.value.compare(a.name, b.name))
|
|
474
|
+
* ```
|
|
475
|
+
*/
|
|
476
|
+
declare function useCollator(options?: MaybeRefOrGetter<Intl.CollatorOptions | undefined>): ComputedRef<Intl.Collator>;
|
|
477
|
+
//#endregion
|
|
478
|
+
export { AstryxLocale as _, UnmappedUpstreamEntry as a, formatCalendarMonth as c, astryxMessagesKey as d, normalizeLocale as f, AstryxMessages as g, useAstryxMessages as h, LoadedAstryxLocale as i, weekdayNames as l, useAstryxLocale as m, AstryxUpstreamCatalog as n, UnmappedUpstreamReason as o, provideAstryxLocale as p, AstryxUpstreamMessage as r, loadAstryxCatalog as s, useCollator as t, astryxLocaleKey as u };
|
|
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
26
26
|
}>, {
|
|
27
27
|
isSelected: boolean;
|
|
28
28
|
isDisabled: boolean;
|
|
29
|
-
isIconOnly: boolean;
|
|
30
29
|
size: NavItemSize;
|
|
30
|
+
isIconOnly: boolean;
|
|
31
31
|
block: boolean;
|
|
32
32
|
plain: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -45,6 +45,11 @@ interface BottomSheetProps {
|
|
|
45
45
|
* heading to derive a name from.
|
|
46
46
|
*/
|
|
47
47
|
label: string;
|
|
48
|
+
/**
|
|
49
|
+
* 放进 `BottomSheetSwitcher` 时的名字。切换器靠它决定哪一张是当前页。
|
|
50
|
+
* 单独使用时可以不传。
|
|
51
|
+
*/
|
|
52
|
+
sheetId?: string;
|
|
48
53
|
/**
|
|
49
54
|
* Renders the panel in the document flow instead of a native `<dialog>`,
|
|
50
55
|
* without a scrim, focus trap, or motion. Used to preview the surface inside
|
|
@@ -107,13 +112,13 @@ interface BottomSheetSlots {
|
|
|
107
112
|
}
|
|
108
113
|
//#endregion
|
|
109
114
|
//#region src/BottomSheet/BottomSheet.vue.d.ts
|
|
110
|
-
type __VLS_Props = BottomSheetProps;
|
|
111
|
-
type __VLS_Slots = BottomSheetSlots;
|
|
112
|
-
type __VLS_ModelProps = {
|
|
115
|
+
type __VLS_Props$1 = BottomSheetProps;
|
|
116
|
+
type __VLS_Slots$1 = BottomSheetSlots;
|
|
117
|
+
type __VLS_ModelProps$1 = {
|
|
113
118
|
'isOpen'?: boolean;
|
|
114
119
|
};
|
|
115
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
116
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
120
|
+
type __VLS_PublicProps$1 = __VLS_Props$1 & __VLS_ModelProps$1;
|
|
121
|
+
declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps$1, {
|
|
117
122
|
element: import("vue").ComputedRef<HTMLElement | null>;
|
|
118
123
|
focus: (options?: FocusOptions) => void | undefined;
|
|
119
124
|
blur: () => void | undefined;
|
|
@@ -123,7 +128,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
123
128
|
motionStart: (motion: BottomSheetMotion) => any;
|
|
124
129
|
motionComplete: (motion: BottomSheetMotion) => any;
|
|
125
130
|
snap: (visibleHeight: number) => any;
|
|
126
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
131
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
|
|
127
132
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
128
133
|
"onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
129
134
|
onMotionStart?: ((motion: BottomSheetMotion) => any) | undefined;
|
|
@@ -138,6 +143,43 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
138
143
|
hasScrim: boolean;
|
|
139
144
|
finalFocusRef: import("vue").MaybeRef<HTMLElement | null>;
|
|
140
145
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
146
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
147
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
148
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
149
|
+
new (): {
|
|
150
|
+
$slots: S;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/BottomSheet/BottomSheetSwitcher.vue.d.ts
|
|
155
|
+
type __VLS_Props = {
|
|
156
|
+
/** 整段流程的无障碍名。不传时用当前那张底栏的 `label`。 */
|
|
157
|
+
label?: string;
|
|
158
|
+
/**
|
|
159
|
+
* 整段流程怎么被关掉。不传时跟当前那张底栏的 `purpose` 走。
|
|
160
|
+
*/
|
|
161
|
+
purpose?: BottomSheetPurpose;
|
|
162
|
+
/**
|
|
163
|
+
* 是否给整段流程一块遮罩。换页时遮罩留着,直到流程关掉。
|
|
164
|
+
* @default true
|
|
165
|
+
*/
|
|
166
|
+
hasScrim?: boolean;
|
|
167
|
+
};
|
|
168
|
+
type __VLS_ModelProps = {
|
|
169
|
+
'activeSheet'?: string | null;
|
|
170
|
+
};
|
|
171
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
172
|
+
declare var __VLS_1: {};
|
|
173
|
+
type __VLS_Slots = {} & {
|
|
174
|
+
default?: (props: typeof __VLS_1) => any;
|
|
175
|
+
};
|
|
176
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
177
|
+
"update:activeSheet": (value: string | null) => any;
|
|
178
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
179
|
+
"onUpdate:activeSheet"?: ((value: string | null) => any) | undefined;
|
|
180
|
+
}>, {
|
|
181
|
+
hasScrim: boolean;
|
|
182
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
141
183
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
142
184
|
declare const _default: typeof __VLS_export;
|
|
143
185
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -146,4 +188,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
146
188
|
};
|
|
147
189
|
};
|
|
148
190
|
//#endregion
|
|
149
|
-
export {
|
|
191
|
+
export { BottomSheetMotion as a, BottomSheetPurpose as c, BottomSheetState as d, BottomSheetHeight as i, BottomSheetSlots as l, _default$1 as n, BottomSheetPadding as o, BottomSheetEmits as r, BottomSheetProps as s, _default as t, BottomSheetSnapPoint as u };
|
|
@@ -373,12 +373,12 @@ declare const __VLS_base: import("vue").DefineComponent<PowerSearchProps, {
|
|
|
373
373
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
374
374
|
"onUpdate:filters"?: ((filters: PowerSearchFilter[]) => any) | undefined;
|
|
375
375
|
}>, {
|
|
376
|
-
status: PowerSearchStatus;
|
|
377
376
|
size: PowerSearchSize;
|
|
377
|
+
status: PowerSearchStatus;
|
|
378
378
|
statusVariant: PowerSearchStatusVariant;
|
|
379
379
|
disabled: boolean;
|
|
380
|
-
labelHidden: boolean;
|
|
381
380
|
clearable: boolean;
|
|
381
|
+
labelHidden: boolean;
|
|
382
382
|
overflow: PowerSearchOverflow;
|
|
383
383
|
readOnly: boolean;
|
|
384
384
|
maxTokenLength: number;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
|
|
|
47
47
|
onChange?: ((value: number | null) => any) | undefined;
|
|
48
48
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
49
49
|
}>, {
|
|
50
|
-
step: number;
|
|
51
50
|
size: "sm" | "md" | "lg";
|
|
51
|
+
step: number;
|
|
52
52
|
modelValue: number | null;
|
|
53
53
|
placeholder: string;
|
|
54
54
|
disabled: boolean;
|
|
@@ -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
|
|
@@ -204,6 +215,7 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
|
|
|
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,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'
|
|
@@ -68,10 +95,12 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
|
|
|
68
95
|
}>, {
|
|
69
96
|
variant: PaginationVariant;
|
|
70
97
|
size: PaginationSize;
|
|
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;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TextProps, c as TextType, i as TextJustify, n as TextColor, r as TextDisplay, s as TextTruncateTooltip, t as TextAs } from "./types-D9nP_X-c.js";
|
|
2
2
|
//#region src/Text/Text.vue.d.ts
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_13: {}, __VLS_21: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_13) => any;
|
|
6
|
+
} & {
|
|
7
|
+
default?: (props: typeof __VLS_21) => any;
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
|
|
8
10
|
type: TextType;
|
|
9
11
|
as: TextAs;
|
|
10
12
|
color: TextColor;
|
|
11
13
|
display: TextDisplay;
|
|
14
|
+
justify: TextJustify;
|
|
12
15
|
maxLines: number;
|
|
16
|
+
hasTruncateTooltip: TextTruncateTooltip;
|
|
13
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
//#region src/ProgressBar/types.d.ts
|
|
2
2
|
type ProgressBarSize = 'sm' | 'md' | 'lg';
|
|
3
3
|
type ProgressBarVariant = 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
4
|
+
/** 轨道上的目标刻度。`value` 和进度条用同一把尺子,`label` 是无障碍名,也是悬停和聚焦时的提示。 */
|
|
5
|
+
interface ProgressBarMark {
|
|
6
|
+
value: number;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
4
9
|
interface ProgressBarProps {
|
|
5
10
|
value?: number;
|
|
6
11
|
min?: number;
|
|
@@ -23,6 +28,11 @@ interface ProgressBarProps {
|
|
|
23
28
|
valueText?: string;
|
|
24
29
|
/** 用当前值和最大值生成数值文案,例如 `3.2 GB / 5 GB`。 */
|
|
25
30
|
formatValueLabel?: (value: number, max: number) => string;
|
|
31
|
+
/**
|
|
32
|
+
* 轨道上的目标刻度。不确定进度时不画。
|
|
33
|
+
* 落在填充色里的刻度用填充色上的前景色,还在轨道上的用主要文字色。
|
|
34
|
+
*/
|
|
35
|
+
marks?: readonly ProgressBarMark[];
|
|
26
36
|
width?: number | string;
|
|
27
37
|
}
|
|
28
38
|
//#endregion
|
|
@@ -37,4 +47,4 @@ declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {},
|
|
|
37
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
48
|
declare const _default: typeof __VLS_export;
|
|
39
49
|
//#endregion
|
|
40
|
-
export { ProgressBarVariant as i,
|
|
50
|
+
export { ProgressBarVariant as a, ProgressBarSize as i, ProgressBarMark as n, ProgressBarProps as r, _default as t };
|
|
@@ -36,8 +36,8 @@ declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
|
|
|
36
36
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
37
37
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
|
|
38
38
|
isDisabled: boolean;
|
|
39
|
-
position: ResizePosition;
|
|
40
39
|
direction: ResizeDirection;
|
|
40
|
+
position: ResizePosition;
|
|
41
41
|
isReversed: boolean;
|
|
42
42
|
hasDivider: boolean;
|
|
43
43
|
isAlwaysVisible: boolean;
|