@astryx-vue/core 0.1.1 → 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/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/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-BEyrkUtr.js → Calendar-CYhGDT6f.js} +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CO3mCs9A.js → Chat-C1aWl5V3.js} +1 -1
- 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 +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BL2sDOWK.js → CheckboxList-EsIEXjK_.js} +2 -2
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BqwJvw7o.js → Citation-C1X0Rde8.js} +1 -1
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- 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/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BOIb0zAp.js → DateInput-D2ErjXYO.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DLcbgUBi.js → DateRangeInput-fmQlr_A7.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-RitYX_Yx.js → DateTimeInput-Bs1JmcIp.js} +4 -4
- package/dist/Field/index.js +2 -2
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CYvEV503.js → FileInput-CmAfOpkA.js} +2 -2
- 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/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-Dnlp8cVx.js → Markdown-CwtLr3f_.js} +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DIsqS1Qb.js → MetadataList-DlXQTLog.js} +1 -1
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-aUZiDwHm.js → MobileNavToggle-CgQamG6E.js} +19 -12
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Bh8or2S6.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-C3S-4dIu.js → NumberInput-DspJO6z6.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-Kr4iJrNV.js → OverflowList-zXg3g6fy.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BRStpeSB.js → Pagination-DXfgMUKJ.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DS6oTV_j.js → RadioGroup-BqjdSCfJ.js} +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-pwr93I-z.js → RadioList-DI8ujXcT.js} +1 -1
- 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/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-DvEUIVEC.js → Selector-DlZpQh42.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-B7LX4RcP.js → SideNav-Cdrigq2A.js} +48 -26
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +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 +2 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-D5zWaITo.js → Table-7qRmlIQd.js} +5 -5
- 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.js +1 -1
- package/dist/{Thumbnail-DMOgWncm.js → Thumbnail-BWVzLLyI.js} +1 -1
- package/dist/{TimeField-DeQ1ukHl.js → TimeField-l3QzU6vC.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-jb1nLqZk.js → TimeInput-OkgX-xbQ.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-DrWwVQBL.js → Timestamp-DUoP9ari.js} +1 -1
- 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-CV2J94bn.js → Token-C4KD0fZD.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DF9r4hTW.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-BH_s3uap.js → TopNav-CZokS7E_.js} +57 -31
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-D9cR-w7r.js → TreeList-CIbAGOMf.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-s4DC1Qem.js → Typeahead-DIw-K4aa.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +5 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{context-BshXcNYX.js → context-D6ECRdc5.js} +84 -0
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-CsJpQElv.d.ts → index-2u4l3wq8.d.ts} +1 -1
- package/dist/{index-BlWLperN.d.ts → index-4FM5lQdV.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-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-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-AkMWQ97a.d.ts → index-C6RecznD.d.ts} +1 -1
- 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-g03bmR4K.d.ts → index-CT8KEpec.d.ts} +2 -2
- package/dist/{index-Bc0dgVM5.d.ts → index-CTolyeii.d.ts} +4 -4
- package/dist/index-CVn0GBdB.d.ts +115 -0
- package/dist/index-CX97hlld.d.ts +158 -0
- package/dist/index-CjtAH60j.d.ts +38 -0
- package/dist/{index-5R_pi3eT.d.ts → index-D-ZuubCK.d.ts} +3 -3
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-D3V7yRUP.d.ts → index-DGNqi2za.d.ts} +1 -1
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/{index-CR6sUmRT.d.ts → index-DXSs3rwa.d.ts} +3 -107
- package/dist/{index-CNcQmDrK.d.ts → index-DYChvBOM.d.ts} +42 -0
- package/dist/{index-CQ9F1f_F.d.ts → index-Df2YvC8o.d.ts} +297 -125
- package/dist/{index--dh0s8Li.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-BnNh5Iml.d.ts → index-SMh42NI8.d.ts} +99 -2
- package/dist/{index-12ObcW99.d.ts → index-ZJyk8RtQ.d.ts} +1 -1
- package/dist/{index-Q4gqBSIZ.d.ts → index-fa72tWIU.d.ts} +1 -1
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index.d.ts +75 -63
- package/dist/index.js +108 -89
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- package/dist/{index-Bovw9_8d.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/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/package.json +49 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/card.css +5 -1
- 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/field.css +12 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +19 -17
- package/styles/layout.css +280 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles.css +12 -0
- package/dist/Collapsible-BYg9soTk.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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { r as ResizableProps } from "./useResizable-CeESZS1v.js";
|
|
2
|
+
import { VNodeChild } from "vue";
|
|
3
|
+
//#region src/Resizable/types.d.ts
|
|
4
|
+
type ResizeDirection = 'horizontal' | 'vertical';
|
|
5
|
+
type ResizePosition = 'inline' | 'overlay';
|
|
6
|
+
type ResizePillPlacement = 'auto' | 'start' | 'end' | 'center';
|
|
7
|
+
interface ResizeHandleProps {
|
|
8
|
+
/** 拖拽方向。horizontal 改宽度,vertical 改高度。 @default 'horizontal' */
|
|
9
|
+
direction?: ResizeDirection;
|
|
10
|
+
/** inline 占一格,overlay 贴在父级边缘。 @default 'inline' */
|
|
11
|
+
position?: ResizePosition;
|
|
12
|
+
/** 面板在结束边时把拖拽方向反过来。 @default false */
|
|
13
|
+
isReversed?: boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
/** 画出 1px 分隔线。线本身就是把手。 @default false */
|
|
17
|
+
hasDivider?: boolean;
|
|
18
|
+
/** 静止时也显示握把。 @default true */
|
|
19
|
+
isAlwaysVisible?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 握把相对分隔线的位置。auto 靠面板一侧,面板收到 0 时翻到另一侧。
|
|
22
|
+
* @default 'auto'
|
|
23
|
+
*/
|
|
24
|
+
pillPlacement?: ResizePillPlacement;
|
|
25
|
+
/** 分隔条的无障碍名称。不传时用当前语言的默认文案。 */
|
|
26
|
+
label?: string;
|
|
27
|
+
resizable?: ResizableProps;
|
|
28
|
+
}
|
|
29
|
+
interface ResizeHandleSlots {
|
|
30
|
+
default?: () => VNodeChild;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/Resizable/ResizeHandle.vue.d.ts
|
|
34
|
+
type __VLS_Slots = ResizeHandleSlots;
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
|
|
36
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
|
|
38
|
+
isDisabled: boolean;
|
|
39
|
+
position: ResizePosition;
|
|
40
|
+
direction: ResizeDirection;
|
|
41
|
+
isReversed: boolean;
|
|
42
|
+
hasDivider: boolean;
|
|
43
|
+
isAlwaysVisible: boolean;
|
|
44
|
+
pillPlacement: ResizePillPlacement;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ResizePillPlacement as a, ResizeHandleSlots as i, ResizeDirection as n, ResizePosition as o, ResizeHandleProps as r, _default as t };
|
|
@@ -35,10 +35,10 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
|
|
|
35
35
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
size: "md" | "sm" | "lg";
|
|
38
|
+
step: number;
|
|
38
39
|
modelValue: number | null;
|
|
39
40
|
placeholder: string;
|
|
40
41
|
disabled: boolean;
|
|
41
|
-
step: number;
|
|
42
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const _default: typeof __VLS_export;
|
|
44
44
|
//#endregion
|
|
@@ -39,7 +39,7 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
39
39
|
onRemove?: ((event: Event) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
41
|
size: TokenSize;
|
|
42
|
-
color: "default" | "blue" | "cyan" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow"
|
|
42
|
+
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
43
43
|
labelHidden: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
removable: boolean;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { a as SearchableItem, i as SearchSource } from "./useAsyncSource-xpQovjV_.js";
|
|
2
|
+
import { VNode } from "vue";
|
|
3
|
+
//#region src/CommandPalette/types.d.ts
|
|
4
|
+
interface CommandPaletteProps<T extends SearchableItem = SearchableItem> {
|
|
5
|
+
/** Whether the palette is open. */
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
/** Where commands come from. An empty query calls `bootstrap`. */
|
|
8
|
+
searchSource: SearchSource<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Render in the page flow instead of a modal dialog. Docs use this for the
|
|
11
|
+
* preview.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
isInline?: boolean;
|
|
15
|
+
/** Accessible name of the dialog. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** @default 640 */
|
|
18
|
+
width?: number | string;
|
|
19
|
+
/** @default 480 */
|
|
20
|
+
maxHeight?: number | string;
|
|
21
|
+
/** Shown when a query returns nothing. */
|
|
22
|
+
emptySearchText?: string;
|
|
23
|
+
/** Shown before the source has anything to list. */
|
|
24
|
+
emptyBootstrapText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Selected id in picker mode. Bind with `v-model:value`.
|
|
27
|
+
*/
|
|
28
|
+
value?: string;
|
|
29
|
+
}
|
|
30
|
+
interface CommandPaletteEmits {
|
|
31
|
+
openChange: [isOpen: boolean];
|
|
32
|
+
}
|
|
33
|
+
interface CommandPaletteItemSlotProps<T extends SearchableItem = SearchableItem> {
|
|
34
|
+
item: T;
|
|
35
|
+
isSelected: boolean;
|
|
36
|
+
}
|
|
37
|
+
interface CommandPaletteSlots<T extends SearchableItem = SearchableItem> {
|
|
38
|
+
input?: () => VNode[];
|
|
39
|
+
footer?: () => VNode[];
|
|
40
|
+
item?: (props: CommandPaletteItemSlotProps<T>) => VNode[];
|
|
41
|
+
}
|
|
42
|
+
interface CommandPaletteInputProps {
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
/** @default true */
|
|
46
|
+
hasAutoFocus?: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface CommandPaletteListProps {
|
|
49
|
+
label?: string;
|
|
50
|
+
}
|
|
51
|
+
interface CommandPaletteGroupProps {
|
|
52
|
+
heading: string;
|
|
53
|
+
}
|
|
54
|
+
interface CommandPaletteItemProps {
|
|
55
|
+
value: string;
|
|
56
|
+
isDisabled?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/CommandPalette/CommandPalette.vue.d.ts
|
|
60
|
+
declare const __VLS_export$6: <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<{
|
|
61
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(CommandPaletteProps<T> & {
|
|
62
|
+
value?: string | undefined;
|
|
63
|
+
}) & {
|
|
64
|
+
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
65
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
66
|
+
}> & (typeof globalThis extends {
|
|
67
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
68
|
+
} ? P : {});
|
|
69
|
+
expose: (exposed: {}) => void;
|
|
70
|
+
attrs: any;
|
|
71
|
+
slots: CommandPaletteSlots<T>;
|
|
72
|
+
emit: ((evt: "openChange", isOpen: boolean) => void) & ((event: "update:value", value: string | undefined) => void);
|
|
73
|
+
}>) => import("vue").VNode & {
|
|
74
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
75
|
+
};
|
|
76
|
+
declare const _default$6: typeof __VLS_export$6;
|
|
77
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/CommandPalette/CommandPaletteEmpty.vue.d.ts
|
|
80
|
+
declare var __VLS_1$4: {};
|
|
81
|
+
type __VLS_Slots$5 = {} & {
|
|
82
|
+
default?: (props: typeof __VLS_1$4) => any;
|
|
83
|
+
};
|
|
84
|
+
declare const __VLS_base$5: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
86
|
+
declare const _default$5: typeof __VLS_export$5;
|
|
87
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/CommandPalette/CommandPaletteFooter.vue.d.ts
|
|
94
|
+
declare var __VLS_1$3: {};
|
|
95
|
+
type __VLS_Slots$4 = {} & {
|
|
96
|
+
default?: (props: typeof __VLS_1$3) => any;
|
|
97
|
+
};
|
|
98
|
+
declare const __VLS_base$4: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
100
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
101
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/CommandPalette/CommandPaletteGroup.vue.d.ts
|
|
108
|
+
declare var __VLS_1$2: {};
|
|
109
|
+
type __VLS_Slots$3 = {} & {
|
|
110
|
+
default?: (props: typeof __VLS_1$2) => any;
|
|
111
|
+
};
|
|
112
|
+
declare const __VLS_base$3: import("vue").DefineComponent<CommandPaletteGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
113
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
114
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
115
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
116
|
+
new (): {
|
|
117
|
+
$slots: S;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/CommandPalette/CommandPaletteInput.vue.d.ts
|
|
122
|
+
declare var __VLS_6: {};
|
|
123
|
+
type __VLS_Slots$2 = {} & {
|
|
124
|
+
end?: (props: typeof __VLS_6) => any;
|
|
125
|
+
};
|
|
126
|
+
declare const __VLS_base$2: import("vue").DefineComponent<CommandPaletteInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteInputProps> & Readonly<{}>, {
|
|
127
|
+
hasAutoFocus: boolean;
|
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
130
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
131
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/CommandPalette/CommandPaletteItem.vue.d.ts
|
|
138
|
+
declare var __VLS_1$1: {};
|
|
139
|
+
type __VLS_Slots$1 = {} & {
|
|
140
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
141
|
+
};
|
|
142
|
+
declare const __VLS_base$1: import("vue").DefineComponent<CommandPaletteItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteItemProps> & Readonly<{}>, {
|
|
143
|
+
isDisabled: boolean;
|
|
144
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
145
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
146
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
147
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
148
|
+
new (): {
|
|
149
|
+
$slots: S;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/CommandPalette/CommandPaletteList.vue.d.ts
|
|
154
|
+
declare var __VLS_1: {};
|
|
155
|
+
type __VLS_Slots = {} & {
|
|
156
|
+
default?: (props: typeof __VLS_1) => any;
|
|
157
|
+
};
|
|
158
|
+
declare const __VLS_base: import("vue").DefineComponent<CommandPaletteListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
159
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
160
|
+
declare const _default: typeof __VLS_export;
|
|
161
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
162
|
+
new (): {
|
|
163
|
+
$slots: S;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
//#endregion
|
|
167
|
+
export { _default$4 as a, CommandPaletteEmits as c, CommandPaletteItemProps as d, CommandPaletteItemSlotProps as f, CommandPaletteSlots as h, _default$3 as i, CommandPaletteGroupProps as l, CommandPaletteProps as m, _default$1 as n, _default$5 as o, CommandPaletteListProps as p, _default$2 as r, _default$6 as s, _default as t, CommandPaletteInputProps as u };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey, VNodeChild } from "vue";
|
|
2
|
+
//#region src/FormLayout/context.d.ts
|
|
3
|
+
type FormLayoutDirection = 'vertical' | 'horizontal' | 'horizontal-labels';
|
|
4
|
+
type FormOptionality = 'optional' | 'required';
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/FormLayout/types.d.ts
|
|
7
|
+
interface FormLayoutProps {
|
|
8
|
+
/**
|
|
9
|
+
* 字段的排列方向。
|
|
10
|
+
* vertical 从上到下,horizontal 等宽横排,horizontal-labels 标签在左、窄于 480px 时改回竖排。
|
|
11
|
+
* @default 'vertical'
|
|
12
|
+
*/
|
|
13
|
+
direction?: FormLayoutDirection;
|
|
14
|
+
/**
|
|
15
|
+
* 这份表单默认是选填还是必填。只影响例外项的标记和 aria-required,不写原生 required。
|
|
16
|
+
*/
|
|
17
|
+
defaultOptionality?: FormOptionality;
|
|
18
|
+
}
|
|
19
|
+
interface FormLayoutSlots {
|
|
20
|
+
default?: () => VNodeChild;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/FormLayout/FormLayout.vue.d.ts
|
|
24
|
+
type __VLS_Slots = FormLayoutSlots;
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<FormLayoutProps, {
|
|
26
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
27
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormLayoutProps> & Readonly<{}>, {
|
|
28
|
+
direction: FormLayoutDirection;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { FormOptionality as a, FormLayoutDirection as i, FormLayoutProps as n, FormLayoutSlots as r, _default as t };
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
showOn: OverlayShowOn;
|
|
179
178
|
scrim: OverlayScrimMode;
|
|
179
|
+
showOn: OverlayShowOn;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
showOn: OverlayShowOn;
|
|
196
195
|
scrim: OverlayScrimMode;
|
|
196
|
+
showOn: OverlayShowOn;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { n as SpacingStep } from "./types-D7QNSqoN.js";
|
|
2
|
+
import { VNodeChild } from "vue";
|
|
3
|
+
//#region src/AppShell/types.d.ts
|
|
4
|
+
type AppShellVariant = 'wash' | 'surface' | 'section' | 'elevated';
|
|
5
|
+
type AppShellHeight = 'fill' | 'auto';
|
|
6
|
+
type AppShellBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'none';
|
|
7
|
+
interface AppShellMobileNav {
|
|
8
|
+
/** 小于这个宽度时收起侧栏。 @default 'md' */
|
|
9
|
+
breakpoint?: AppShellBreakpoint;
|
|
10
|
+
/** 受控的抽屉开关。 */
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
/** 窄屏时要不要自动放开关。 @default true */
|
|
13
|
+
hasToggle?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface AppShellProps {
|
|
16
|
+
/** @default 'elevated' */
|
|
17
|
+
variant?: AppShellVariant;
|
|
18
|
+
/** 正文区内边距,用间距刻度。不传则贴边。 */
|
|
19
|
+
contentPadding?: SpacingStep;
|
|
20
|
+
/** @default 'fill' */
|
|
21
|
+
height?: AppShellHeight;
|
|
22
|
+
/**
|
|
23
|
+
* false 关掉移动导航。对象用来改断点和开关。
|
|
24
|
+
* 自定义抽屉用 mobileNav 插槽。
|
|
25
|
+
*/
|
|
26
|
+
mobileNav?: false | AppShellMobileNav;
|
|
27
|
+
}
|
|
28
|
+
interface AppShellSlots {
|
|
29
|
+
default?: () => VNodeChild;
|
|
30
|
+
topNav?: () => VNodeChild;
|
|
31
|
+
sideNav?: () => VNodeChild;
|
|
32
|
+
banner?: () => VNodeChild;
|
|
33
|
+
mobileNav?: () => VNodeChild;
|
|
34
|
+
}
|
|
35
|
+
interface AppShellEmits {
|
|
36
|
+
mobileNavOpenChange: [isOpen: boolean];
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/AppShell/AppShell.vue.d.ts
|
|
40
|
+
type __VLS_Props = AppShellProps;
|
|
41
|
+
type __VLS_Slots = AppShellSlots;
|
|
42
|
+
type __VLS_ModelProps = {
|
|
43
|
+
'mobileNavOpen'?: boolean;
|
|
44
|
+
};
|
|
45
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
46
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
47
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
48
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
"update:mobileNavOpen": (value: boolean) => any;
|
|
50
|
+
mobileNavOpenChange: (isOpen: boolean) => any;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
52
|
+
"onUpdate:mobileNavOpen"?: ((value: boolean) => any) | undefined;
|
|
53
|
+
onMobileNavOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
variant: AppShellVariant;
|
|
56
|
+
height: AppShellHeight;
|
|
57
|
+
mobileNav: false | AppShellMobileNav;
|
|
58
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
59
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
60
|
+
declare const _default: typeof __VLS_export;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { AppShellMobileNav as a, AppShellVariant as c, AppShellHeight as i, AppShellBreakpoint as n, AppShellProps as o, AppShellEmits as r, AppShellSlots as s, _default as t };
|
|
@@ -50,16 +50,16 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
|
|
|
50
50
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
51
51
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
|
|
53
|
+
isOpen: boolean;
|
|
54
54
|
placement: TooltipPlacement;
|
|
55
55
|
alignment: TooltipAlignment;
|
|
56
|
+
content: string;
|
|
56
57
|
delay: number;
|
|
57
58
|
hideDelay: number;
|
|
58
59
|
focusTrigger: TooltipFocusTrigger;
|
|
59
60
|
touchTrigger: TooltipTouchTrigger;
|
|
60
61
|
isEnabled: boolean;
|
|
61
62
|
hasHoverIndication: boolean | "auto";
|
|
62
|
-
isOpen: boolean;
|
|
63
63
|
isDefaultOpen: boolean;
|
|
64
64
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
65
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -71,8 +71,8 @@ declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {
|
|
|
71
71
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
73
|
size: SelectorSize;
|
|
74
|
-
modelValue: string | number | null;
|
|
75
74
|
status: SelectorStatus;
|
|
75
|
+
modelValue: string | number | null;
|
|
76
76
|
disabled: boolean;
|
|
77
77
|
clearable: boolean;
|
|
78
78
|
searchable: boolean;
|
|
@@ -130,8 +130,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
130
130
|
onMotionComplete?: ((motion: BottomSheetMotion) => any) | undefined;
|
|
131
131
|
onSnap?: ((visibleHeight: number) => any) | undefined;
|
|
132
132
|
}>, {
|
|
133
|
-
height: string | number;
|
|
134
133
|
padding: BottomSheetPadding;
|
|
134
|
+
height: string | number;
|
|
135
135
|
isInline: boolean;
|
|
136
136
|
snapPoints: readonly BottomSheetSnapPoint[];
|
|
137
137
|
purpose: BottomSheetPurpose;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { n as SpacingStep } from "./types-D7QNSqoN.js";
|
|
2
|
+
import { n as SizeValue } from "./size-BuTzpgnR.js";
|
|
3
|
+
import { ComputedRef, InjectionKey, VNodeChild } from "vue";
|
|
4
|
+
//#region src/Layout/context.d.ts
|
|
5
|
+
type LayoutArea = 'header' | 'start' | 'content' | 'end' | 'footer';
|
|
6
|
+
type LayoutHeight = 'fill' | 'auto';
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/Layout/types.d.ts
|
|
9
|
+
interface LayoutProps {
|
|
10
|
+
/**
|
|
11
|
+
* 对齐内容的最大宽度。分隔线仍然拉满。
|
|
12
|
+
* 数字是像素,字符串原样使用。百分比和内在宽度走约束宽度。
|
|
13
|
+
*/
|
|
14
|
+
contentWidth?: SizeValue;
|
|
15
|
+
/**
|
|
16
|
+
* fill 撑满容器,内容在中间滚动。auto 随内容长高。
|
|
17
|
+
* @default 'fill'
|
|
18
|
+
*/
|
|
19
|
+
height?: LayoutHeight;
|
|
20
|
+
/**
|
|
21
|
+
* 这一层自己的外缘间距。不会传给嵌套的 Layout。
|
|
22
|
+
*/
|
|
23
|
+
padding?: SpacingStep;
|
|
24
|
+
/**
|
|
25
|
+
* 页眉和页脚没写 hasDivider 时用的默认值。
|
|
26
|
+
*/
|
|
27
|
+
defaultHasDividers?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface LayoutSlots {
|
|
30
|
+
default?: () => VNodeChild;
|
|
31
|
+
header?: () => VNodeChild;
|
|
32
|
+
start?: () => VNodeChild;
|
|
33
|
+
end?: () => VNodeChild;
|
|
34
|
+
footer?: () => VNodeChild;
|
|
35
|
+
}
|
|
36
|
+
interface LayoutHeaderProps {
|
|
37
|
+
/** 底边分隔线。不传时用 Layout 的 defaultHasDividers,再没有就是 false。 */
|
|
38
|
+
hasDivider?: boolean;
|
|
39
|
+
/** 高度。数字是像素,字符串原样使用。 */
|
|
40
|
+
height?: SizeValue;
|
|
41
|
+
/** 内边距。0 表示内容自己管边距。 */
|
|
42
|
+
padding?: SpacingStep;
|
|
43
|
+
/** 只改底边内边距,方便标签下划线和分隔线贴住。 */
|
|
44
|
+
paddingBlockEnd?: SpacingStep;
|
|
45
|
+
label?: string;
|
|
46
|
+
role?: string;
|
|
47
|
+
}
|
|
48
|
+
interface LayoutHeaderSlots {
|
|
49
|
+
default?: () => VNodeChild;
|
|
50
|
+
}
|
|
51
|
+
interface LayoutFooterProps {
|
|
52
|
+
/** 顶边分隔线。不传时用 Layout 的 defaultHasDividers,再没有就是 false。 */
|
|
53
|
+
hasDivider?: boolean;
|
|
54
|
+
height?: SizeValue;
|
|
55
|
+
padding?: SpacingStep;
|
|
56
|
+
label?: string;
|
|
57
|
+
role?: string;
|
|
58
|
+
}
|
|
59
|
+
interface LayoutFooterSlots {
|
|
60
|
+
default?: () => VNodeChild;
|
|
61
|
+
}
|
|
62
|
+
interface LayoutContentProps {
|
|
63
|
+
padding?: SpacingStep;
|
|
64
|
+
/**
|
|
65
|
+
* 内容超出时在这块里滚动。
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
isScrollable?: boolean;
|
|
69
|
+
label?: string;
|
|
70
|
+
role?: string;
|
|
71
|
+
}
|
|
72
|
+
interface LayoutContentSlots {
|
|
73
|
+
default?: () => VNodeChild;
|
|
74
|
+
}
|
|
75
|
+
interface LayoutResizable {
|
|
76
|
+
_size: number;
|
|
77
|
+
}
|
|
78
|
+
interface LayoutPanelProps {
|
|
79
|
+
/** 朝向内容的那条边。和旁边的 ResizeHandle 分隔线不要同时开。 @default false */
|
|
80
|
+
hasDivider?: boolean;
|
|
81
|
+
padding?: SpacingStep;
|
|
82
|
+
/** @default true */
|
|
83
|
+
isScrollable?: boolean;
|
|
84
|
+
label?: string;
|
|
85
|
+
role?: string;
|
|
86
|
+
/** 宽度。数字是像素。传了 resizable 时以钩子的尺寸为准。 */
|
|
87
|
+
width?: SizeValue;
|
|
88
|
+
resizable?: LayoutResizable;
|
|
89
|
+
}
|
|
90
|
+
interface LayoutPanelSlots {
|
|
91
|
+
default?: () => VNodeChild;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/Layout/Layout.vue.d.ts
|
|
95
|
+
type __VLS_Slots$4 = LayoutSlots;
|
|
96
|
+
declare const __VLS_base$4: import("vue").DefineComponent<LayoutProps, {
|
|
97
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
98
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutProps> & Readonly<{}>, {
|
|
99
|
+
height: LayoutHeight;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
101
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
102
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
103
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/Layout/LayoutContent.vue.d.ts
|
|
110
|
+
type __VLS_Slots$3 = LayoutContentSlots;
|
|
111
|
+
declare const __VLS_base$3: import("vue").DefineComponent<LayoutContentProps, {
|
|
112
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
113
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutContentProps> & Readonly<{}>, {
|
|
114
|
+
isScrollable: boolean;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
117
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
118
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
119
|
+
new (): {
|
|
120
|
+
$slots: S;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/Layout/LayoutFooter.vue.d.ts
|
|
125
|
+
type __VLS_Slots$2 = LayoutFooterSlots;
|
|
126
|
+
declare const __VLS_base$2: import("vue").DefineComponent<LayoutFooterProps, {
|
|
127
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
128
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutFooterProps> & Readonly<{}>, {
|
|
129
|
+
hasDivider: boolean;
|
|
130
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
131
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
132
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
133
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
134
|
+
new (): {
|
|
135
|
+
$slots: S;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/Layout/LayoutHeader.vue.d.ts
|
|
140
|
+
type __VLS_Slots$1 = LayoutHeaderSlots;
|
|
141
|
+
declare const __VLS_base$1: import("vue").DefineComponent<LayoutHeaderProps, {
|
|
142
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
143
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutHeaderProps> & Readonly<{}>, {
|
|
144
|
+
hasDivider: boolean;
|
|
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/Layout/LayoutPanel.vue.d.ts
|
|
155
|
+
type __VLS_Slots = LayoutPanelSlots;
|
|
156
|
+
declare const __VLS_base: import("vue").DefineComponent<LayoutPanelProps, {
|
|
157
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
158
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutPanelProps> & Readonly<{}>, {
|
|
159
|
+
hasDivider: boolean;
|
|
160
|
+
isScrollable: boolean;
|
|
161
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
162
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
163
|
+
declare const _default: typeof __VLS_export;
|
|
164
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
165
|
+
new (): {
|
|
166
|
+
$slots: S;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
//#endregion
|
|
170
|
+
export { LayoutHeight as _, _default$4 as a, LayoutFooterProps as c, LayoutHeaderSlots as d, LayoutPanelProps as f, LayoutArea as g, LayoutSlots as h, _default$3 as i, LayoutFooterSlots as l, LayoutProps as m, _default$1 as n, LayoutContentProps as o, LayoutPanelSlots as p, _default$2 as r, LayoutContentSlots as s, _default as t, LayoutHeaderProps as u };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { VNodeChild } from "vue";
|
|
2
|
+
//#region src/AspectRatio/types.d.ts
|
|
3
|
+
/** 容器外形。ellipse 按 ratio 裁成椭圆,1 比 1 时是正圆。 */
|
|
4
|
+
type AspectRatioShape = 'rectangle' | 'ellipse';
|
|
5
|
+
/**
|
|
6
|
+
* 子元素在比例框里的尺寸。
|
|
7
|
+
* 不传时子元素自己负责尺寸。
|
|
8
|
+
*/
|
|
9
|
+
type AspectRatioFit = 'cover' | 'contain' | 'center';
|
|
10
|
+
interface AspectRatioProps {
|
|
11
|
+
/**
|
|
12
|
+
* 宽高比,宽除以高。16 比 9 写成 `16 / 9`。
|
|
13
|
+
* 写在类上的 CSS 变量里,不写成行内 aspect-ratio,方便外部样式覆盖。
|
|
14
|
+
*/
|
|
15
|
+
ratio: number;
|
|
16
|
+
/**
|
|
17
|
+
* 容器外形。
|
|
18
|
+
* @default 'rectangle'
|
|
19
|
+
*/
|
|
20
|
+
shape?: AspectRatioShape;
|
|
21
|
+
/**
|
|
22
|
+
* 子元素如何填满比例框。
|
|
23
|
+
* cover 裁切,contain 留边,center 保持原始尺寸并居中。
|
|
24
|
+
*/
|
|
25
|
+
fit?: AspectRatioFit;
|
|
26
|
+
}
|
|
27
|
+
interface AspectRatioSlots {
|
|
28
|
+
/** 放进比例框的内容。fit 有值时只放一个子元素。 */
|
|
29
|
+
default?: () => VNodeChild;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/AspectRatio/AspectRatio.vue.d.ts
|
|
33
|
+
type __VLS_Slots = AspectRatioSlots;
|
|
34
|
+
declare const __VLS_base: import("vue").DefineComponent<AspectRatioProps, {
|
|
35
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AspectRatioProps> & Readonly<{}>, {
|
|
37
|
+
shape: AspectRatioShape;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { AspectRatioSlots as a, AspectRatioShape as i, AspectRatioFit as n, AspectRatioProps as r, _default as t };
|
|
@@ -84,9 +84,9 @@ declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
84
84
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
85
85
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
|
-
|
|
88
|
-
placement: "start" | "end" | "above" | "below";
|
|
87
|
+
placement: "above" | "below" | "start" | "end";
|
|
89
88
|
alignment: "start" | "end" | "center";
|
|
89
|
+
hover: boolean;
|
|
90
90
|
hideDelay: number;
|
|
91
91
|
showDelay: number;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|