@astryx-vue/core 0.1.0 → 0.1.3
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 +1 -1
- package/dist/AppShell/index.d.ts +2 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AppShell-b0PWt9Fz.js +249 -0
- package/dist/AspectRatio/index.d.ts +2 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AspectRatio-Bij7e-tq.js +40 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DpYFXwgb.js → Calendar-CYhGDT6f.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-C1aWl5V3.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-EsIEXjK_.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-C1X0Rde8.js} +2 -2
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/Collapsible-BS9ctCQV.js +192 -0
- package/dist/CommandPalette/index.d.ts +2 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/CommandPalette-u5h_E05P.js +489 -0
- package/dist/ComplexSelector/index.d.ts +2 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ComplexSelector-BHmGWml0.js +293 -0
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-D2ErjXYO.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-fmQlr_A7.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-Bs1JmcIp.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -4
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CmAfOpkA.js +238 -0
- package/dist/FormLayout/index.d.ts +2 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/FormLayout-D47FjiOq.js +40 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/Layout/index.d.ts +2 -0
- package/dist/Layout/index.js +3 -0
- package/dist/Layout-Bed3kP0M.js +56 -0
- package/dist/LayoutPanel-C34uOq3e.js +358 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-CwtLr3f_.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DlXQTLog.js +124 -0
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-CgQamG6E.js} +19 -12
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-DT8ZccMI.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-DspJO6z6.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-zXg3g6fy.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-DXfgMUKJ.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-BqjdSCfJ.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-DI8ujXcT.js +122 -0
- package/dist/Resizable/index.d.ts +2 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/Resizable-BuGKvU9I.js +261 -0
- package/dist/ScrollableArea/index.d.ts +2 -0
- package/dist/ScrollableArea/index.js +2 -0
- package/dist/ScrollableArea-DQDYjnxO.js +78 -0
- package/dist/Section/index.d.ts +2 -0
- package/dist/Section/index.js +2 -0
- package/dist/Section-C48Wqfc7.js +68 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +2 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/SelectableCard-Bj5s_tIN.js +108 -0
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DlZpQh42.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-Cdrigq2A.js} +49 -27
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper-DxmLfh8O.js +423 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +2 -2
- package/dist/TabList-C411uNQU.js +380 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-7qRmlIQd.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-BWVzLLyI.js +163 -0
- package/dist/TimeField-l3QzU6vC.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-OkgX-xbQ.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DUoP9ari.js +465 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Ctf9jekS.js → Token-C4KD0fZD.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-BA8sTMPZ.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CjbMCbkC.js → TopNav-CZokS7E_.js} +57 -31
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-CIbAGOMf.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-DIw-K4aa.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +8 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{locale-56lkR7OK.js → context-D6ECRdc5.js} +267 -18
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-2u4l3wq8.d.ts} +2 -2
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/index-Be1czg3M.d.ts +167 -0
- package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/index-BrJzFA5X.d.ts +38 -0
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/index-By2mSzUA.d.ts +67 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-C6RecznD.d.ts} +3 -3
- package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
- package/dist/index-CDdRQQF3.d.ts +170 -0
- package/dist/index-COqjznX0.d.ts +47 -0
- package/dist/{index-Cz9ZHVf6.d.ts → index-CT8KEpec.d.ts} +2 -2
- package/dist/{index-CxspvLBl.d.ts → index-CTolyeii.d.ts} +1 -1
- package/dist/index-CVn0GBdB.d.ts +115 -0
- package/dist/index-CX97hlld.d.ts +158 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/index-CjtAH60j.d.ts +38 -0
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-JeZ0YTyd.d.ts → index-D-ZuubCK.d.ts} +4 -4
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-C8NW9xre.d.ts → index-DGNqi2za.d.ts} +7 -7
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/index-DXSs3rwa.d.ts +252 -0
- package/dist/{index-C0S2Xzoi.d.ts → index-DYChvBOM.d.ts} +135 -0
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-Df2YvC8o.d.ts} +717 -147
- package/dist/{index-DjOdQv5B.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-DBcbfStA.d.ts → index-SMh42NI8.d.ts} +182 -2
- package/dist/{index-Cdi82rTW.d.ts → index-ZJyk8RtQ.d.ts} +6 -2
- package/dist/{index-BeJqhW4l.d.ts → index-fa72tWIU.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +76 -59
- package/dist/index.js +119 -78
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- package/dist/{index-Cp0NlzQv.d.ts → types-Db3Owy8Q.d.ts} +1 -36
- package/dist/types-JktRxujg.d.ts +107 -0
- package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
- package/dist/useClickableContainer-DyNpnSEa.js +112 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +97 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/card.css +5 -1
- package/styles/checkbox-list.css +15 -0
- package/styles/clickable-card.css +101 -0
- package/styles/collapsible.css +37 -0
- package/styles/command-palette.css +183 -0
- package/styles/complex-selector.css +114 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +14 -3
- package/styles/file-input.css +87 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +19 -17
- package/styles/icon.css +32 -0
- package/styles/layout.css +280 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/selector.css +10 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +23 -0
- package/dist/Collapsible-ByXCGhT8.js +0 -102
- package/dist/TabList-LV1U4ZD6.js +0 -184
- package/dist/composables-Dq9RS33w.js +0 -111
- package/dist/index-TnaIHsCS.d.ts +0 -87
|
@@ -195,12 +195,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
195
195
|
default: undefined;
|
|
196
196
|
};
|
|
197
197
|
}>> & Readonly<{}>, {
|
|
198
|
+
density: MarkdownDensity | undefined;
|
|
198
199
|
display: MarkdownDisplay | undefined;
|
|
199
200
|
content: string;
|
|
200
201
|
contentAlign: MarkdownAlign | undefined;
|
|
201
202
|
contentWidth: string | number | undefined;
|
|
202
203
|
components: MarkdownComponents | undefined;
|
|
203
|
-
density: MarkdownDensity | undefined;
|
|
204
204
|
headingLevelStart: MarkdownHeadingLevel | undefined;
|
|
205
205
|
onLinkClick: ((href: string, event: MouseEvent) => void | false) | undefined;
|
|
206
206
|
sources: Record<string, MarkdownSource> | undefined;
|
|
@@ -72,10 +72,10 @@ interface TokenizerSlots<T extends SearchableItem = SearchableItem> {
|
|
|
72
72
|
//#region src/Tokenizer/Tokenizer.vue.d.ts
|
|
73
73
|
declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
74
74
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
|
|
75
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
76
75
|
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
77
|
-
|
|
76
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
78
77
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
78
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
79
79
|
}> & (typeof globalThis extends {
|
|
80
80
|
__VLS_PROPS_FALLBACK: infer P;
|
|
81
81
|
} ? P : {});
|
|
@@ -85,7 +85,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
85
85
|
}>) => void;
|
|
86
86
|
attrs: any;
|
|
87
87
|
slots: TokenizerSlots<T>;
|
|
88
|
-
emit: ((evt: "
|
|
88
|
+
emit: ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "search", query: string) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "openChange", isOpen: boolean) => void);
|
|
89
89
|
}>) => import("vue").VNode & {
|
|
90
90
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
91
91
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "./useClipboard-CU-kfqeJ.js";
|
|
2
2
|
import "./useAsyncSource-xpQovjV_.js";
|
|
3
|
-
import
|
|
3
|
+
import "./useResizable-CeESZS1v.js";
|
|
4
|
+
import { CSSProperties, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
5
|
+
import { CalendarDate } from "@internationalized/date";
|
|
4
6
|
//#region src/composables/internal/announce.d.ts
|
|
5
7
|
/**
|
|
6
8
|
* 对应原版 Astryx 的 `hooks/useAnnounce`。
|
|
@@ -12,6 +14,22 @@ type AnnouncePoliteness = 'polite' | 'assertive';
|
|
|
12
14
|
type AnnounceFn = (message: string, politeness?: AnnouncePoliteness) => void;
|
|
13
15
|
declare function useAnnounce(): AnnounceFn;
|
|
14
16
|
//#endregion
|
|
17
|
+
//#region src/composables/useAppShellMobile.d.ts
|
|
18
|
+
interface AppShellMobile {
|
|
19
|
+
isMobile: boolean;
|
|
20
|
+
isMobileNavOpen: boolean;
|
|
21
|
+
mobileNavId?: string;
|
|
22
|
+
isMobileNavEnabled: boolean;
|
|
23
|
+
hasAutoToggle: boolean;
|
|
24
|
+
hasSideNav: boolean;
|
|
25
|
+
toggleMobileNav: () => void;
|
|
26
|
+
openMobileNav: () => void;
|
|
27
|
+
closeMobileNav: () => void;
|
|
28
|
+
}
|
|
29
|
+
declare const appShellMobileKey: InjectionKey<AppShellMobile>;
|
|
30
|
+
/** 外壳外面、或者关掉了移动导航时,返回一组不会做事的默认值。 */
|
|
31
|
+
declare function useAppShellMobile(): AppShellMobile;
|
|
32
|
+
//#endregion
|
|
15
33
|
//#region src/composables/useChatNewMessages.d.ts
|
|
16
34
|
/** Class that marks a transcript row `useChatNewMessages` watches. */
|
|
17
35
|
declare const CHAT_MESSAGE_CLASS = "astryx-chat-message";
|
|
@@ -106,6 +124,42 @@ interface UseChatStreamScrollReturn {
|
|
|
106
124
|
*/
|
|
107
125
|
declare function useChatStreamScroll(options: UseChatStreamScrollOptions): UseChatStreamScrollReturn;
|
|
108
126
|
//#endregion
|
|
127
|
+
//#region src/composables/useClickableContainer.d.ts
|
|
128
|
+
/**
|
|
129
|
+
* 对应原版 Astryx 的 `hooks/useClickableContainer`。
|
|
130
|
+
*
|
|
131
|
+
* 让整块容器可点,同时把点在嵌套按钮、链接、输入框上的点击留给那些控件自己。
|
|
132
|
+
* ClickableCard 和 SelectableCard 都走这里,避免两套“点到谁算谁”的判断。
|
|
133
|
+
*/
|
|
134
|
+
declare const INTERACTIVE_SELECTORS: string;
|
|
135
|
+
interface UseClickableContainerOptions {
|
|
136
|
+
/** 外层容器。 */
|
|
137
|
+
containerRef: Ref<HTMLElement | null>;
|
|
138
|
+
/** 容器里真正获得键盘焦点的控件,例如视觉上隐藏的链接或复选框。 */
|
|
139
|
+
interactiveRef?: Ref<HTMLElement | null>;
|
|
140
|
+
/** 点在容器表面上时调用。 */
|
|
141
|
+
onClick?: (event: MouseEvent) => void;
|
|
142
|
+
/** 有地址时,点表面会导航到这里。 */
|
|
143
|
+
href?: string;
|
|
144
|
+
/** 链接的 target。`_blank` 会在新标签打开。 */
|
|
145
|
+
target?: string;
|
|
146
|
+
/** 停用后,表面点击和中键都不再响应。 */
|
|
147
|
+
disabled?: boolean;
|
|
148
|
+
}
|
|
149
|
+
interface ClickableContainerHandlers {
|
|
150
|
+
onClick: (event: MouseEvent) => void;
|
|
151
|
+
onMouseUp: (event: MouseEvent) => void;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* 把容器的 click / mouseup 交给调用方绑到根元素上。
|
|
155
|
+
* 组件挂载后会给容器加上 `data-pressable-container`,嵌套的可点容器因此不会互相抢走点击。
|
|
156
|
+
*/
|
|
157
|
+
declare function useClickableContainer(options: UseClickableContainerOptions): ClickableContainerHandlers;
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/composables/useCoarsePointer.d.ts
|
|
160
|
+
/** 粗指针(触摸)为 true。服务端和细指针设备为 false。 */
|
|
161
|
+
declare function useCoarsePointer(): ComputedRef<boolean>;
|
|
162
|
+
//#endregion
|
|
109
163
|
//#region src/composables/useCombobox.d.ts
|
|
110
164
|
interface ComboboxOption {
|
|
111
165
|
value: string | number;
|
|
@@ -198,6 +252,30 @@ interface ControllableState<T> {
|
|
|
198
252
|
*/
|
|
199
253
|
declare function useControllableState<T>(options: UseControllableStateOptions<T>): ControllableState<T>;
|
|
200
254
|
//#endregion
|
|
255
|
+
//#region src/composables/useDateRange.d.ts
|
|
256
|
+
interface ISODateRange {
|
|
257
|
+
start: string;
|
|
258
|
+
end: string;
|
|
259
|
+
}
|
|
260
|
+
type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
|
|
261
|
+
declare function resolveWeekStart(value: WeekStartsOn | number | undefined): number;
|
|
262
|
+
declare function compareISODate(a: string, b: string): number;
|
|
263
|
+
declare function spanDays(start: string, end: string): number;
|
|
264
|
+
declare function orderRange(a: string, b: string): ISODateRange;
|
|
265
|
+
declare function isSameRange(a: ISODateRange | null, b: ISODateRange | null): boolean;
|
|
266
|
+
declare function isRangeWithinSpan(range: ISODateRange, minRangeSpan?: number, maxRangeSpan?: number): boolean;
|
|
267
|
+
interface RangeClickResult {
|
|
268
|
+
pending: string | null;
|
|
269
|
+
commit: ISODateRange | null;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* 第一次点击记下起点。第二次点击在跨度合法时提交区间。
|
|
273
|
+
* 再次点击起点时,最短跨度允许单日就提交单日,否则取消这次选择。
|
|
274
|
+
*/
|
|
275
|
+
declare function applyRangeClick(pending: string | null, day: string, minRangeSpan?: number, maxRangeSpan?: number): RangeClickResult;
|
|
276
|
+
declare function isDayOutsideSpan(pending: string | null, day: string, minRangeSpan?: number, maxRangeSpan?: number): boolean;
|
|
277
|
+
declare function formatDateRange(range: ISODateRange | null, locale: string): string;
|
|
278
|
+
//#endregion
|
|
201
279
|
//#region src/composables/useDismiss.d.ts
|
|
202
280
|
interface UseDismissOptions {
|
|
203
281
|
/** 要监听点击外部的容器元素 */
|
|
@@ -222,6 +300,26 @@ interface UseDismissOptions {
|
|
|
222
300
|
*/
|
|
223
301
|
declare function useDismiss(options: UseDismissOptions): void;
|
|
224
302
|
//#endregion
|
|
303
|
+
//#region src/composables/useFileSelection.d.ts
|
|
304
|
+
interface FileRejection {
|
|
305
|
+
code: 'type' | 'size' | 'count';
|
|
306
|
+
fileName?: string;
|
|
307
|
+
maxSize?: number;
|
|
308
|
+
maxFiles?: number;
|
|
309
|
+
}
|
|
310
|
+
interface FileSelectionOptions {
|
|
311
|
+
accept?: string;
|
|
312
|
+
maxSize?: number;
|
|
313
|
+
maxFiles?: number;
|
|
314
|
+
isMultiple?: boolean;
|
|
315
|
+
}
|
|
316
|
+
interface FileSelectionResult {
|
|
317
|
+
files: File | File[] | null;
|
|
318
|
+
rejections: FileRejection[];
|
|
319
|
+
}
|
|
320
|
+
declare function formatFileSize(bytes: number): string;
|
|
321
|
+
declare function selectFiles(list: FileList | File[] | null | undefined, options: FileSelectionOptions): FileSelectionResult;
|
|
322
|
+
//#endregion
|
|
225
323
|
//#region src/composables/useFocusTrap.d.ts
|
|
226
324
|
interface UseFocusTrapOptions {
|
|
227
325
|
/** 要陷阱焦点的容器元素 */
|
|
@@ -431,6 +529,16 @@ declare function useLongPress(options: LongPressOptions): LongPressHandlers;
|
|
|
431
529
|
*/
|
|
432
530
|
declare function useMediaQuery(query: string): Ref<boolean>;
|
|
433
531
|
//#endregion
|
|
532
|
+
//#region src/composables/useMonthGrid.d.ts
|
|
533
|
+
declare function toISODate(date: CalendarDate): string;
|
|
534
|
+
declare function parseISODate(value: string): CalendarDate;
|
|
535
|
+
declare function buildMonthGrid(year: number, month: number, weekStartsOn?: WeekStartsOn | number): string[][];
|
|
536
|
+
declare function addMonths(year: number, month: number, amount: number): {
|
|
537
|
+
year: number;
|
|
538
|
+
month: number;
|
|
539
|
+
};
|
|
540
|
+
declare function todayISODate(): string;
|
|
541
|
+
//#endregion
|
|
434
542
|
//#region src/composables/useNumberField.d.ts
|
|
435
543
|
interface UseNumberFieldOptions {
|
|
436
544
|
/** 当前值 */
|
|
@@ -573,9 +681,57 @@ interface RestoreFocus {
|
|
|
573
681
|
*/
|
|
574
682
|
declare function useRestoreFocus(options: UseRestoreFocusOptions): RestoreFocus;
|
|
575
683
|
//#endregion
|
|
684
|
+
//#region src/composables/useScrollableArea.d.ts
|
|
685
|
+
type ScrollAxis = 'inline' | 'block' | 'both';
|
|
686
|
+
type ScrollOverscroll = 'allow' | 'contain';
|
|
687
|
+
type ScrollStickyContainment = 'whenScrollable' | 'always';
|
|
688
|
+
type ScrollRole = 'group' | 'region';
|
|
689
|
+
interface ScrollAxisState {
|
|
690
|
+
isScrollable: boolean;
|
|
691
|
+
atStart: boolean;
|
|
692
|
+
atEnd: boolean;
|
|
693
|
+
}
|
|
694
|
+
interface ScrollableAreaState {
|
|
695
|
+
inline: ScrollAxisState;
|
|
696
|
+
block: ScrollAxisState;
|
|
697
|
+
}
|
|
698
|
+
interface UseScrollableAreaOptions {
|
|
699
|
+
axis?: ScrollAxis;
|
|
700
|
+
label: string;
|
|
701
|
+
role?: ScrollRole;
|
|
702
|
+
overscroll?: ScrollOverscroll;
|
|
703
|
+
stickyContainment?: ScrollStickyContainment;
|
|
704
|
+
}
|
|
705
|
+
declare function useScrollableArea(options: UseScrollableAreaOptions): UseScrollableAreaResult;
|
|
706
|
+
interface UseScrollableAreaResult {
|
|
707
|
+
viewport: (element: unknown) => void;
|
|
708
|
+
content: Ref<HTMLElement | null>;
|
|
709
|
+
viewportAttrs: ComputedRef<Record<string, string | number | undefined>>;
|
|
710
|
+
viewportStyle: ComputedRef<CSSProperties>;
|
|
711
|
+
state: ComputedRef<ScrollableAreaState>;
|
|
712
|
+
}
|
|
713
|
+
//#endregion
|
|
576
714
|
//#region src/composables/internal/scrollLock.d.ts
|
|
577
715
|
declare function useScrollLock(isLocked: Ref<boolean>): void;
|
|
578
716
|
//#endregion
|
|
717
|
+
//#region src/composables/useScrollOverflow.d.ts
|
|
718
|
+
interface ScrollOverflowState {
|
|
719
|
+
overflowStart: boolean;
|
|
720
|
+
overflowEnd: boolean;
|
|
721
|
+
hasOverflow: boolean;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* 观察一个横向滚动容器,报告起始边和结束边有没有被挡住。
|
|
725
|
+
* 容差 1px,滚动和尺寸变化都会重新量。
|
|
726
|
+
*/
|
|
727
|
+
declare function useScrollOverflow(): UseScrollOverflowResult;
|
|
728
|
+
interface UseScrollOverflowResult {
|
|
729
|
+
scrollRef: (node: HTMLElement | null) => void;
|
|
730
|
+
overflowStart: Ref<boolean>;
|
|
731
|
+
overflowEnd: Ref<boolean>;
|
|
732
|
+
hasOverflow: Ref<boolean>;
|
|
733
|
+
}
|
|
734
|
+
//#endregion
|
|
579
735
|
//#region src/composables/useStreamingText.d.ts
|
|
580
736
|
type StreamingTextSpeed = 'natural' | 'fast' | 'instant';
|
|
581
737
|
interface UseStreamingTextOptions {
|
|
@@ -600,6 +756,30 @@ declare function snapToGraphemeBoundary(text: string, offset: number): number;
|
|
|
600
756
|
*/
|
|
601
757
|
declare function useStreamingText(targetText: MaybeRefOrGetter<string>, isStreaming?: MaybeRefOrGetter<boolean>, options?: MaybeRefOrGetter<UseStreamingTextOptions>): ComputedRef<string>;
|
|
602
758
|
//#endregion
|
|
759
|
+
//#region src/composables/useTimeValue.d.ts
|
|
760
|
+
type HourFormat = '12h' | '24h';
|
|
761
|
+
type ISOTimeString = string;
|
|
762
|
+
interface ParsedTime {
|
|
763
|
+
hours: number;
|
|
764
|
+
minutes: number;
|
|
765
|
+
seconds: number;
|
|
766
|
+
}
|
|
767
|
+
declare function parseISOTime(value: string): ParsedTime | null;
|
|
768
|
+
declare function formatISOTime(time: ParsedTime, hasSeconds: boolean): ISOTimeString;
|
|
769
|
+
declare function formatDisplayTime(value: string, hourFormat: HourFormat, hasSeconds: boolean): string;
|
|
770
|
+
declare function parseDisplayTime(text: string, hasSeconds: boolean): ISOTimeString | null;
|
|
771
|
+
declare function shiftTime(value: string, minuteDelta: number, hasSeconds: boolean): ISOTimeString;
|
|
772
|
+
declare function isTimeInRange(value: string, min?: string, max?: string): boolean;
|
|
773
|
+
type TimePresentation = 'text-input' | 'popover' | 'bottom-sheet' | 'native' | 'adaptive-bottom-sheet' | 'adaptive-native';
|
|
774
|
+
type NativePicker = 'touch' | 'always' | 'never';
|
|
775
|
+
declare function resolveTimeSurface(options: {
|
|
776
|
+
presentation?: TimePresentation;
|
|
777
|
+
nativePicker?: NativePicker;
|
|
778
|
+
coarse: boolean;
|
|
779
|
+
hasSeconds: boolean;
|
|
780
|
+
increment: number;
|
|
781
|
+
}): 'text' | 'native';
|
|
782
|
+
//#endregion
|
|
603
783
|
//#region src/composables/useTypeahead.d.ts
|
|
604
784
|
interface UseTypeaheadOptions {
|
|
605
785
|
/** 当前 DOM 顺序上的标签。某一项可以是 null,表示这个下标不能匹配。 */
|
|
@@ -632,4 +812,4 @@ interface UseTypeaheadReturn {
|
|
|
632
812
|
*/
|
|
633
813
|
declare function useTypeahead(options: UseTypeaheadOptions): UseTypeaheadReturn;
|
|
634
814
|
//#endregion
|
|
635
|
-
export {
|
|
815
|
+
export { useLongPress as $, useAppShellMobile as $t, UseScrollableAreaOptions as A, spanDays as At, computeOverflow as B, INTERACTIVE_SELECTORS as Bt, useScrollLock as C, compareISODate as Ct, ScrollRole as D, isSameRange as Dt, ScrollOverscroll as E, isRangeWithinSpan as Et, useRestoreFocus as F, ComboboxOption as Ft, addMonths as G, UseChatStreamScrollReturn as Gt, NumberField as H, useClickableContainer as Ht, ComputeOverflowInput as I, UseComboboxOptions as It, toISODate as J, UseChatNewMessagesOptions as Jt, buildMonthGrid as K, useChatStreamScroll as Kt, ComputeOverflowResult as L, useCombobox as Lt, useScrollableArea as M, UseControllableStateOptions as Mt, RestoreFocus as N, useControllableState as Nt, ScrollStickyContainment as O, orderRange as Ot, UseRestoreFocusOptions as P, Combobox as Pt, LongPressOptions as Q, appShellMobileKey as Qt, UseOverflowOptions as R, useCoarsePointer as Rt, useScrollOverflow as S, applyRangeClick as St, ScrollAxisState as T, isDayOutsideSpan as Tt, UseNumberFieldOptions as U, ChatScrollToBottomOptions as Ut, useOverflow as V, UseClickableContainerOptions as Vt, useNumberField as W, UseChatStreamScrollOptions as Wt, useMediaQuery as X, useChatNewMessages as Xt, todayISODate as Y, UseChatNewMessagesReturn as Yt, LongPressHandlers as Z, AppShellMobile as Zt, UseStreamingTextOptions as _, UseDismissOptions as _t, ISOTimeString as a, useHotkeys as at, ScrollOverflowState as b, RangeClickResult as bt, TimePresentation as c, useGridRovingFocus as ct, isTimeInRange as d, useFocusTrap as dt, AnnounceFn as en, ListFocus as et, parseDisplayTime as f, FileRejection as ft, StreamingTextSpeed as g, selectFiles as gt, shiftTime as h, formatFileSize as ht, HourFormat as i, Hotkey as it, UseScrollableAreaResult as j, ControllableState as jt, ScrollableAreaState as k, resolveWeekStart as kt, formatDisplayTime as l, FocusTrap as lt, resolveTimeSurface as m, FileSelectionResult as mt, UseTypeaheadReturn as n, useAnnounce as nn, UseListFocusOptions as nt, NativePicker as o, GridRovingFocus as ot, parseISOTime as p, FileSelectionOptions as pt, parseISODate as q, CHAT_MESSAGE_CLASS as qt, useTypeahead as r, useListFocus as rt, ParsedTime as s, UseGridRovingFocusOptions as st, UseTypeaheadOptions as t, AnnouncePoliteness as tn, ListFocusOrientation as tt, formatISOTime as u, UseFocusTrapOptions as ut, snapToGraphemeBoundary as v, useDismiss as vt, ScrollAxis as w, formatDateRange as wt, UseScrollOverflowResult as x, WeekStartsOn as xt, useStreamingText as y, ISODateRange as yt, UseOverflowReturn as z, ClickableContainerHandlers as zt };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
//#region src/DateInput/types.d.ts
|
|
2
2
|
interface DateInputProps {
|
|
3
|
+
/** 输入框 id。不传时组件自己生成。 */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** 额外的无障碍描述,接在字段说明后面。 */
|
|
6
|
+
describedBy?: string;
|
|
3
7
|
/** 当前选中的日期 */
|
|
4
8
|
modelValue?: Date | null;
|
|
5
9
|
/** 占位符文本 */
|
|
@@ -47,10 +51,10 @@ declare const __VLS_base: import("vue").DefineComponent<DateInputProps, {}, {},
|
|
|
47
51
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
48
52
|
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
49
53
|
}>, {
|
|
50
|
-
size: "
|
|
54
|
+
size: "md" | "sm" | "lg";
|
|
55
|
+
status: "default" | "success" | "warning" | "error";
|
|
51
56
|
modelValue: Date | null;
|
|
52
57
|
disabled: boolean;
|
|
53
|
-
status: "default" | "success" | "warning" | "error";
|
|
54
58
|
clearable: boolean;
|
|
55
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
60
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -24,11 +24,11 @@ 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
|
-
isIconOnly: boolean;
|
|
28
|
-
isDisabled: boolean;
|
|
29
27
|
size: NavItemSize;
|
|
30
|
-
|
|
28
|
+
isDisabled: boolean;
|
|
29
|
+
isIconOnly: boolean;
|
|
31
30
|
isSelected: boolean;
|
|
31
|
+
block: boolean;
|
|
32
32
|
plain: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -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 { a as FieldSlots, l as FieldStatusVariant, n as FieldLabelSlots, r as FieldProps,
|
|
1
|
+
import { a as FieldSlots, l as FieldStatusVariant, n as FieldLabelSlots, r as FieldProps, t as FieldLabelProps } from "./types-3eXh_5os.js";
|
|
2
2
|
//#region src/Field/Field.vue.d.ts
|
|
3
3
|
type __VLS_Slots$1 = FieldSlots;
|
|
4
4
|
declare const __VLS_base$1: import("vue").DefineComponent<FieldProps, {
|
|
@@ -6,8 +6,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<FieldProps, {
|
|
|
6
6
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {
|
|
7
7
|
statusVariant: "tooltip" | FieldStatusVariant;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export$
|
|
10
|
-
declare const _default$
|
|
9
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
10
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
11
11
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
12
12
|
new (): {
|
|
13
13
|
$slots: S;
|
|
@@ -22,20 +22,12 @@ declare const __VLS_base: import("vue").DefineComponent<FieldLabelProps, {
|
|
|
22
22
|
optionalLabel: string;
|
|
23
23
|
requiredLabel: string;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const __VLS_export
|
|
26
|
-
declare const _default
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
28
|
new (): {
|
|
29
29
|
$slots: S;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
|
-
|
|
34
|
-
declare const __VLS_export: import("vue").DefineComponent<FieldStatusProps, {
|
|
35
|
-
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
36
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldStatusProps> & Readonly<{}>, {
|
|
37
|
-
variant: FieldStatusVariant;
|
|
38
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
declare const _default: typeof __VLS_export;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { _default$1 as n, _default$2 as r, _default as t };
|
|
33
|
+
export { _default$1 as n, _default as t };
|
|
@@ -85,16 +85,16 @@ declare const __VLS_base: import("vue").DefineComponent<HoverCardProps, {
|
|
|
85
85
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
87
|
label: string;
|
|
88
|
-
|
|
88
|
+
isOpen: boolean;
|
|
89
89
|
placement: HoverCardPlacement;
|
|
90
90
|
alignment: HoverCardAlignment;
|
|
91
|
+
content: string;
|
|
91
92
|
delay: number;
|
|
92
93
|
hideDelay: number;
|
|
93
94
|
focusTrigger: HoverCardFocusTrigger;
|
|
94
95
|
touchTrigger: HoverCardTouchTrigger;
|
|
95
96
|
isEnabled: boolean;
|
|
96
97
|
hasHoverIndication: HoverCardHoverIndication;
|
|
97
|
-
isOpen: boolean;
|
|
98
98
|
isDefaultOpen: boolean;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
100
100
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { n as SizeValue, t as PaddingInput } from "./size-BuTzpgnR.js";
|
|
2
|
+
import { VNodeChild } from "vue";
|
|
3
|
+
//#region src/Section/types.d.ts
|
|
4
|
+
type SectionVariant = 'section' | 'transparent' | 'muted';
|
|
5
|
+
type SectionDivider = 'top' | 'bottom' | 'start' | 'end';
|
|
6
|
+
interface SectionProps extends PaddingInput {
|
|
7
|
+
/**
|
|
8
|
+
* 背景。section 用表面色,muted 用弱化底,transparent 不铺底。
|
|
9
|
+
* @default 'section'
|
|
10
|
+
*/
|
|
11
|
+
variant?: SectionVariant;
|
|
12
|
+
/** 宽度。数字是像素,字符串原样使用。 */
|
|
13
|
+
width?: SizeValue;
|
|
14
|
+
/** 高度。数字是像素,字符串原样使用。 */
|
|
15
|
+
height?: SizeValue;
|
|
16
|
+
/** 最大宽度。数字是像素,字符串原样使用。 */
|
|
17
|
+
maxWidth?: SizeValue;
|
|
18
|
+
/** 最小高度。数字是像素,字符串原样使用。 */
|
|
19
|
+
minHeight?: SizeValue;
|
|
20
|
+
/** 哪些边画分隔线。start / end 随书写方向翻转。 */
|
|
21
|
+
dividers?: SectionDivider[];
|
|
22
|
+
}
|
|
23
|
+
interface SectionSlots {
|
|
24
|
+
default?: () => VNodeChild;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/Section/Section.vue.d.ts
|
|
28
|
+
type __VLS_Slots = SectionSlots;
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<SectionProps, {
|
|
30
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionProps> & Readonly<{}>, {
|
|
32
|
+
variant: SectionVariant;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SectionVariant as a, SectionSlots as i, SectionDivider as n, SectionProps as r, _default as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
//#region src/MetadataList/types.d.ts
|
|
3
|
+
type MetadataListColumns = 'multi' | 'single' | number;
|
|
4
|
+
type MetadataListOrientation = 'vertical' | 'horizontal';
|
|
5
|
+
type MetadataListLabelPosition = 'start' | 'top';
|
|
6
|
+
interface MetadataListLabelConfig {
|
|
7
|
+
/** `start` puts the label beside the value. `top` stacks it above. */
|
|
8
|
+
position?: MetadataListLabelPosition;
|
|
9
|
+
/** Label track width. Numbers are pixels. Only applies to side labels. */
|
|
10
|
+
width?: number | string;
|
|
11
|
+
}
|
|
12
|
+
interface MetadataListProps {
|
|
13
|
+
columns?: MetadataListColumns;
|
|
14
|
+
label?: MetadataListLabelConfig;
|
|
15
|
+
/** Collapse items past this count behind a show more control. Ignored when horizontal. */
|
|
16
|
+
maxNumOfItems?: number;
|
|
17
|
+
/**
|
|
18
|
+
* `horizontal` flows items in a wrapping row and ignores `columns`, `label`,
|
|
19
|
+
* and `maxNumOfItems`.
|
|
20
|
+
* @default 'vertical'
|
|
21
|
+
*/
|
|
22
|
+
orientation?: MetadataListOrientation;
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
interface MetadataListSlots {
|
|
26
|
+
default?: () => VNode[];
|
|
27
|
+
title?: () => VNode[];
|
|
28
|
+
}
|
|
29
|
+
interface MetadataListItemProps {
|
|
30
|
+
label: string;
|
|
31
|
+
}
|
|
32
|
+
interface MetadataListItemSlots {
|
|
33
|
+
default?: () => VNode[];
|
|
34
|
+
icon?: () => VNode[];
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/MetadataList/MetadataList.vue.d.ts
|
|
38
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
39
|
+
declare const __VLS_export$1: import("vue").DefineComponent<{
|
|
40
|
+
columns?: MetadataListColumns | undefined;
|
|
41
|
+
label?: MetadataListLabelConfig | undefined;
|
|
42
|
+
maxNumOfItems?: number | undefined;
|
|
43
|
+
orientation?: MetadataListOrientation | undefined;
|
|
44
|
+
title?: string | undefined;
|
|
45
|
+
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
48
|
+
columns?: MetadataListColumns | undefined;
|
|
49
|
+
label?: MetadataListLabelConfig | undefined;
|
|
50
|
+
maxNumOfItems?: number | undefined;
|
|
51
|
+
orientation?: MetadataListOrientation | undefined;
|
|
52
|
+
title?: string | undefined;
|
|
53
|
+
}> & Readonly<{}>, {
|
|
54
|
+
label: Record<string, any>;
|
|
55
|
+
orientation: string;
|
|
56
|
+
title: string;
|
|
57
|
+
columns: string | number;
|
|
58
|
+
maxNumOfItems: number;
|
|
59
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/MetadataList/MetadataListItem.vue.d.ts
|
|
62
|
+
declare const _default: typeof __VLS_export;
|
|
63
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
64
|
+
label: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
|
+
label: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { MetadataListItemSlots as a, MetadataListOrientation as c, MetadataListItemProps as i, MetadataListProps as l, _default$1 as n, MetadataListLabelConfig as o, MetadataListColumns as r, MetadataListLabelPosition as s, _default as t, MetadataListSlots as u };
|