@opentiny/tiny-robot 0.3.0-alpha.3 → 0.3.0-alpha.31
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/action-group/index.js +42 -39
- package/dist/attachments/index.js +526 -0
- package/dist/base-popper/index.js +4 -0
- package/dist/bubble/index.js +1613 -1624
- package/dist/container/index.js +44 -40
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +151 -64
- package/dist/feedback/index.js +73 -74
- package/dist/flow-layout-buttons/index.js +31 -28
- package/dist/history/index.js +2 -225
- package/dist/icon-button/index.js +18 -19
- package/dist/index.d.ts +1371 -934
- package/dist/index.js +218 -77
- package/dist/index2.js +277 -534
- package/dist/index3.js +693 -290
- package/dist/index4.js +146 -622
- package/dist/mcp-add-form/index.js +212 -0
- package/dist/mcp-server-picker/index.js +556 -0
- package/dist/no-data.js +4 -0
- package/dist/prompts/index.js +36 -39
- package/dist/sender/index.js +1140 -1217
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +131 -155
- package/dist/suggestion-popover/index.js +253 -221
- package/dist/theme-provider/index.js +83 -0
- package/dist/useSlotRefs.js +36 -0
- package/dist/utils.js +8 -13
- package/package.json +4 -9
- package/dist/close.js +0 -29
- package/dist/index5.js +0 -2157
- package/dist/index6.js +0 -4752
- package/dist/question/index.js +0 -429
- package/dist/suggestion/index.js +0 -497
- package/dist/tiny-robot-svgs.js +0 -643
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AllowedComponentProps } from 'vue';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
import { AutoSize as AutoSize_2 } from './index.type';
|
|
4
|
-
import { ChainItem } from './chain.vue';
|
|
5
3
|
import { Component } from 'vue';
|
|
6
4
|
import { ComponentCustomProperties } from 'vue';
|
|
7
5
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -10,16 +8,16 @@ import { ComponentOptionsBase } from 'vue';
|
|
|
10
8
|
import { ComponentOptionsMixin } from 'vue';
|
|
11
9
|
import { ComponentProvideOptions } from 'vue';
|
|
12
10
|
import { ComponentPublicInstance } from 'vue';
|
|
11
|
+
import { ComputedRef } from 'vue';
|
|
13
12
|
import { Config } from 'dompurify';
|
|
14
13
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
15
14
|
import { CSSProperties } from 'vue';
|
|
16
15
|
import { DebuggerEvent } from 'vue';
|
|
17
|
-
import { default as default_2 } from 'markdown-it';
|
|
18
16
|
import { DefineComponent } from 'vue';
|
|
17
|
+
import { Directive } from 'vue';
|
|
19
18
|
import { ExtractPropTypes } from 'vue';
|
|
20
19
|
import { GlobalComponents } from 'vue';
|
|
21
20
|
import { GlobalDirectives } from 'vue';
|
|
22
|
-
import { InputMode as InputMode_2 } from './index.type';
|
|
23
21
|
import { nextTick } from 'vue';
|
|
24
22
|
import { OnCleanup } from '@vue/reactivity';
|
|
25
23
|
import { Options } from 'markdown-it';
|
|
@@ -28,72 +26,136 @@ import { PublicProps } from 'vue';
|
|
|
28
26
|
import { Ref } from 'vue';
|
|
29
27
|
import { RendererElement } from 'vue';
|
|
30
28
|
import { RendererNode } from 'vue';
|
|
31
|
-
import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
|
|
32
29
|
import { ShallowUnwrapRef } from 'vue';
|
|
33
30
|
import { Slot } from 'vue';
|
|
34
|
-
import {
|
|
35
|
-
import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
|
|
36
|
-
import { ThemeType as ThemeType_2 } from './index.type';
|
|
37
|
-
import { TooltipContentProps } from './components/Tooltip.vue';
|
|
31
|
+
import { TransitionProps } from 'vue';
|
|
38
32
|
import { VNode } from 'vue';
|
|
39
33
|
import { VNodeProps } from 'vue';
|
|
40
34
|
import { WatchOptions } from 'vue';
|
|
41
35
|
import { WatchStopHandle } from 'vue';
|
|
42
36
|
|
|
43
37
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
44
|
-
content: string;
|
|
38
|
+
content: string | BubbleContentItem[];
|
|
45
39
|
placement: "start" | "end";
|
|
46
40
|
shape: "rounded" | "corner";
|
|
47
|
-
|
|
41
|
+
abortedText: string;
|
|
48
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
49
43
|
|
|
50
|
-
declare const __VLS_component_10: DefineComponent<
|
|
51
|
-
|
|
52
|
-
declare const __VLS_component_11: DefineComponent<QuestionProps, {
|
|
53
|
-
openModal: () => void;
|
|
54
|
-
closeModal: () => void;
|
|
55
|
-
toggleFloating: () => void;
|
|
56
|
-
setActiveCategory: (categoryId: string) => void;
|
|
57
|
-
refreshData: () => Promise<void>;
|
|
44
|
+
declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_4, {
|
|
45
|
+
update: () => void;
|
|
58
46
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
59
|
-
"question-click": (question: Question_2) => any;
|
|
60
|
-
"select-category": (category: Category_2) => any;
|
|
61
|
-
}, string, PublicProps, Readonly<QuestionProps> & Readonly<{
|
|
62
|
-
"onQuestion-click"?: ((question: Question_2) => any) | undefined;
|
|
63
|
-
"onSelect-category"?: ((category: Category_2) => any) | undefined;
|
|
64
|
-
}>, {
|
|
65
|
-
loading: boolean;
|
|
66
|
-
categories: Category_2[];
|
|
67
|
-
modalWidth: string;
|
|
68
|
-
closeOnClickOutside: boolean;
|
|
69
|
-
commonQuestions: Question_2[];
|
|
70
|
-
initialExpanded: boolean;
|
|
71
|
-
theme: ThemeType_2;
|
|
72
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
73
|
-
|
|
74
|
-
declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
75
47
|
"update:selectedGroup": (value: string) => any;
|
|
76
48
|
} & {
|
|
77
49
|
close: () => any;
|
|
78
50
|
open: () => any;
|
|
79
|
-
"item-click": (item:
|
|
51
|
+
"item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
|
|
52
|
+
"click-outside": (event: MouseEvent) => any;
|
|
80
53
|
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
81
|
-
}, string, PublicProps, Readonly<
|
|
54
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
|
|
82
55
|
onClose?: (() => any) | undefined;
|
|
83
56
|
onOpen?: (() => any) | undefined;
|
|
84
|
-
"onItem-click"?: ((item:
|
|
57
|
+
"onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
|
|
58
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
85
59
|
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
86
60
|
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
87
61
|
}>, {
|
|
88
62
|
title: string;
|
|
89
|
-
topOffset: string | number;
|
|
90
63
|
trigger: "click" | "manual";
|
|
91
64
|
groupShowMoreTrigger: "click" | "hover";
|
|
92
|
-
|
|
93
|
-
popoverHeight: string | number;
|
|
65
|
+
topOffset: number;
|
|
94
66
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
95
|
-
|
|
96
|
-
|
|
67
|
+
basePopperRef: ({
|
|
68
|
+
$: ComponentInternalInstance;
|
|
69
|
+
$data: {};
|
|
70
|
+
$props: {
|
|
71
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
72
|
+
readonly offset?: number | {
|
|
73
|
+
mainAxis?: number;
|
|
74
|
+
crossAxis?: number;
|
|
75
|
+
} | undefined;
|
|
76
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
77
|
+
readonly preventOverflow?: boolean | undefined;
|
|
78
|
+
readonly show?: boolean | undefined;
|
|
79
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
80
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
81
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
82
|
+
$attrs: {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
};
|
|
85
|
+
$refs: {
|
|
86
|
+
[x: string]: unknown;
|
|
87
|
+
};
|
|
88
|
+
$slots: Readonly<{
|
|
89
|
+
[name: string]: Slot<any> | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
$root: ComponentPublicInstance | null;
|
|
92
|
+
$parent: ComponentPublicInstance | null;
|
|
93
|
+
$host: Element | null;
|
|
94
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
95
|
+
$el: any;
|
|
96
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
97
|
+
appendTo?: string | HTMLElement;
|
|
98
|
+
offset?: number | {
|
|
99
|
+
mainAxis?: number;
|
|
100
|
+
crossAxis?: number;
|
|
101
|
+
};
|
|
102
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
103
|
+
preventOverflow?: boolean;
|
|
104
|
+
show?: boolean;
|
|
105
|
+
transitionProps?: TransitionProps;
|
|
106
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
107
|
+
}> & Readonly<{}>, {
|
|
108
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
109
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
110
|
+
update: () => void;
|
|
111
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
112
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
113
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
114
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
115
|
+
created?: (() => void) | (() => void)[];
|
|
116
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
117
|
+
mounted?: (() => void) | (() => void)[];
|
|
118
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
119
|
+
updated?: (() => void) | (() => void)[];
|
|
120
|
+
activated?: (() => void) | (() => void)[];
|
|
121
|
+
deactivated?: (() => void) | (() => void)[];
|
|
122
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
123
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
124
|
+
destroyed?: (() => void) | (() => void)[];
|
|
125
|
+
unmounted?: (() => void) | (() => void)[];
|
|
126
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
127
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
128
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
129
|
+
};
|
|
130
|
+
$forceUpdate: () => void;
|
|
131
|
+
$nextTick: nextTick;
|
|
132
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
133
|
+
} & Readonly<{
|
|
134
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
135
|
+
}> & Omit<Readonly<{
|
|
136
|
+
appendTo?: string | HTMLElement;
|
|
137
|
+
offset?: number | {
|
|
138
|
+
mainAxis?: number;
|
|
139
|
+
crossAxis?: number;
|
|
140
|
+
};
|
|
141
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
142
|
+
preventOverflow?: boolean;
|
|
143
|
+
show?: boolean;
|
|
144
|
+
transitionProps?: TransitionProps;
|
|
145
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
146
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
147
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
148
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
149
|
+
update: () => void;
|
|
150
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
151
|
+
$slots: Readonly<{
|
|
152
|
+
trigger?: () => VNode[];
|
|
153
|
+
content?: () => VNode[];
|
|
154
|
+
}> & {
|
|
155
|
+
trigger?: () => VNode[];
|
|
156
|
+
content?: () => VNode[];
|
|
157
|
+
};
|
|
158
|
+
}) | null;
|
|
97
159
|
listRef: HTMLUListElement;
|
|
98
160
|
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
99
161
|
show?: TooltipContentProps["show"];
|
|
@@ -115,37 +177,155 @@ show?: TooltipContentProps["show"];
|
|
|
115
177
|
}>, {}, {}, {}, {}, {}> | null;
|
|
116
178
|
}, any>;
|
|
117
179
|
|
|
180
|
+
declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
181
|
+
"update:theme": (value: string) => any;
|
|
182
|
+
"update:colorMode": (value: ColorMode) => any;
|
|
183
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
184
|
+
"onUpdate:theme"?: ((value: string) => any) | undefined;
|
|
185
|
+
"onUpdate:colorMode"?: ((value: ColorMode) => any) | undefined;
|
|
186
|
+
}>, {
|
|
187
|
+
targetElement: string;
|
|
188
|
+
storageKey: string;
|
|
189
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
190
|
+
|
|
191
|
+
declare const __VLS_component_12: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
192
|
+
align: "left" | "center" | "right" | string;
|
|
193
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
194
|
+
|
|
118
195
|
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
119
|
-
|
|
196
|
+
contentRenderers: Record<string, BubbleContentRenderer>;
|
|
120
197
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
121
198
|
|
|
122
199
|
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
123
200
|
"update:show": (value: boolean) => any;
|
|
124
201
|
"update:fullscreen": (value: boolean | undefined) => any;
|
|
202
|
+
} & {
|
|
203
|
+
close: () => any;
|
|
125
204
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
205
|
+
onClose?: (() => any) | undefined;
|
|
126
206
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
127
207
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
128
|
-
}>, {
|
|
208
|
+
}>, {
|
|
209
|
+
title: string;
|
|
210
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
211
|
+
|
|
212
|
+
declare const __VLS_component_4: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
129
213
|
|
|
130
|
-
declare const
|
|
214
|
+
declare const __VLS_component_5: DefineComponent<__VLS_PublicProps_2, {
|
|
215
|
+
update: () => void;
|
|
216
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
217
|
+
"update:show": (value: boolean) => any;
|
|
218
|
+
} & {
|
|
131
219
|
"item-click": (item: DropdownMenuItem) => any;
|
|
132
|
-
|
|
220
|
+
"click-outside": (event: MouseEvent) => any;
|
|
221
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
222
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
133
223
|
"onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
|
|
224
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
134
225
|
}>, {
|
|
135
|
-
|
|
136
|
-
topOffset: string | number;
|
|
226
|
+
trigger: "click" | "hover" | "manual";
|
|
137
227
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
138
|
-
|
|
139
|
-
|
|
228
|
+
basePopperRef: ({
|
|
229
|
+
$: ComponentInternalInstance;
|
|
230
|
+
$data: {};
|
|
231
|
+
$props: {
|
|
232
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
233
|
+
readonly offset?: number | {
|
|
234
|
+
mainAxis?: number;
|
|
235
|
+
crossAxis?: number;
|
|
236
|
+
} | undefined;
|
|
237
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
238
|
+
readonly preventOverflow?: boolean | undefined;
|
|
239
|
+
readonly show?: boolean | undefined;
|
|
240
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
241
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
242
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
243
|
+
$attrs: {
|
|
244
|
+
[x: string]: unknown;
|
|
245
|
+
};
|
|
246
|
+
$refs: {
|
|
247
|
+
[x: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
$slots: Readonly<{
|
|
250
|
+
[name: string]: Slot<any> | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
$root: ComponentPublicInstance | null;
|
|
253
|
+
$parent: ComponentPublicInstance | null;
|
|
254
|
+
$host: Element | null;
|
|
255
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
256
|
+
$el: any;
|
|
257
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
258
|
+
appendTo?: string | HTMLElement;
|
|
259
|
+
offset?: number | {
|
|
260
|
+
mainAxis?: number;
|
|
261
|
+
crossAxis?: number;
|
|
262
|
+
};
|
|
263
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
264
|
+
preventOverflow?: boolean;
|
|
265
|
+
show?: boolean;
|
|
266
|
+
transitionProps?: TransitionProps;
|
|
267
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
268
|
+
}> & Readonly<{}>, {
|
|
269
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
270
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
271
|
+
update: () => void;
|
|
272
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
273
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
274
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
275
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
276
|
+
created?: (() => void) | (() => void)[];
|
|
277
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
278
|
+
mounted?: (() => void) | (() => void)[];
|
|
279
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
280
|
+
updated?: (() => void) | (() => void)[];
|
|
281
|
+
activated?: (() => void) | (() => void)[];
|
|
282
|
+
deactivated?: (() => void) | (() => void)[];
|
|
283
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
284
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
285
|
+
destroyed?: (() => void) | (() => void)[];
|
|
286
|
+
unmounted?: (() => void) | (() => void)[];
|
|
287
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
288
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
289
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
290
|
+
};
|
|
291
|
+
$forceUpdate: () => void;
|
|
292
|
+
$nextTick: nextTick;
|
|
293
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
294
|
+
} & Readonly<{
|
|
295
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
296
|
+
}> & Omit<Readonly<{
|
|
297
|
+
appendTo?: string | HTMLElement;
|
|
298
|
+
offset?: number | {
|
|
299
|
+
mainAxis?: number;
|
|
300
|
+
crossAxis?: number;
|
|
301
|
+
};
|
|
302
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
303
|
+
preventOverflow?: boolean;
|
|
304
|
+
show?: boolean;
|
|
305
|
+
transitionProps?: TransitionProps;
|
|
306
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
307
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
308
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
309
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
310
|
+
update: () => void;
|
|
311
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
312
|
+
$slots: Readonly<{
|
|
313
|
+
trigger?: () => VNode[];
|
|
314
|
+
content?: () => VNode[];
|
|
315
|
+
}> & {
|
|
316
|
+
trigger?: () => VNode[];
|
|
317
|
+
content?: () => VNode[];
|
|
318
|
+
};
|
|
319
|
+
}) | null;
|
|
140
320
|
}, any>;
|
|
141
321
|
|
|
142
|
-
declare const
|
|
322
|
+
declare const __VLS_component_6: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
143
323
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
144
324
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
145
325
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
146
326
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
147
327
|
|
|
148
|
-
declare const
|
|
328
|
+
declare const __VLS_component_7: DefineComponent<SenderProps, {
|
|
149
329
|
focus: () => void;
|
|
150
330
|
blur: () => void;
|
|
151
331
|
clear: () => void;
|
|
@@ -153,63 +333,74 @@ submit: () => void;
|
|
|
153
333
|
startSpeech: () => void;
|
|
154
334
|
stopSpeech: () => void;
|
|
155
335
|
activateTemplateFirstField: () => void;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
336
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
337
|
+
clear: () => any;
|
|
338
|
+
blur: (event: FocusEvent) => any;
|
|
339
|
+
cancel: () => any;
|
|
340
|
+
focus: (event: FocusEvent) => any;
|
|
341
|
+
submit: (value: string) => any;
|
|
342
|
+
"update:modelValue": (value: string) => any;
|
|
343
|
+
"update:templateData": (value: UserItem[]) => any;
|
|
344
|
+
"speech-start": () => any;
|
|
345
|
+
"speech-end": (transcript?: string | undefined) => any;
|
|
346
|
+
"speech-interim": (transcript: string) => any;
|
|
347
|
+
"speech-error": (error: Error) => any;
|
|
348
|
+
"suggestion-select": (value: string) => any;
|
|
349
|
+
"escape-press": () => any;
|
|
350
|
+
"reset-template": () => any;
|
|
351
|
+
"files-selected": (files: File[]) => any;
|
|
161
352
|
}, string, PublicProps, Readonly<SenderProps> & Readonly<{
|
|
162
|
-
|
|
353
|
+
onClear?: (() => any) | undefined;
|
|
354
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
355
|
+
onCancel?: (() => any) | undefined;
|
|
356
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
357
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
358
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
359
|
+
"onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
|
|
360
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
361
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
362
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
363
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
364
|
+
"onSuggestion-select"?: ((value: string) => any) | undefined;
|
|
365
|
+
"onEscape-press"?: (() => any) | undefined;
|
|
366
|
+
"onReset-template"?: (() => any) | undefined;
|
|
367
|
+
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
163
368
|
}>, {
|
|
164
|
-
template: string;
|
|
165
|
-
mode: InputMode_2;
|
|
166
|
-
loading: boolean;
|
|
167
369
|
disabled: boolean;
|
|
168
370
|
modelValue: string;
|
|
169
|
-
autofocus: boolean;
|
|
170
|
-
clearable: boolean;
|
|
171
|
-
showWordLimit: boolean;
|
|
172
|
-
theme: ThemeType_2;
|
|
173
371
|
placeholder: string;
|
|
174
|
-
|
|
372
|
+
mode: InputMode;
|
|
373
|
+
loading: boolean;
|
|
374
|
+
autofocus: boolean;
|
|
175
375
|
allowSpeech: boolean;
|
|
176
376
|
allowFiles: boolean;
|
|
177
|
-
submitType:
|
|
178
|
-
|
|
377
|
+
submitType: SubmitTrigger;
|
|
378
|
+
stopText: string;
|
|
379
|
+
suggestions: ISuggestionItem[];
|
|
380
|
+
autoSize: AutoSize;
|
|
381
|
+
clearable: boolean;
|
|
179
382
|
maxLength: number;
|
|
180
|
-
|
|
383
|
+
showWordLimit: boolean;
|
|
181
384
|
suggestionPopupWidth: string | number;
|
|
182
|
-
|
|
385
|
+
theme: ThemeType;
|
|
386
|
+
templateData: UserItem[];
|
|
183
387
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
184
388
|
senderRef: HTMLDivElement;
|
|
185
389
|
inputWrapperRef: HTMLDivElement;
|
|
186
390
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
onInput?: ((value: string) => any) | undefined;
|
|
192
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
193
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
194
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
195
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
391
|
+
modelValue?: UserItem[];
|
|
392
|
+
}> & Readonly<{
|
|
393
|
+
onSubmit?: (() => any) | undefined;
|
|
394
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
196
395
|
}>, {
|
|
197
|
-
|
|
198
|
-
resetFields: () => void;
|
|
396
|
+
clearHistory: () => void;
|
|
199
397
|
activateFirstField: () => void;
|
|
200
|
-
getValueFromDOM: () => string;
|
|
201
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
202
398
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
203
|
-
"update:
|
|
399
|
+
"update:modelValue": (value: UserItem[]) => any;
|
|
204
400
|
} & {
|
|
205
|
-
|
|
206
|
-
focus: (event: FocusEvent) => any;
|
|
207
|
-
input: (value: string) => any;
|
|
208
|
-
submit: (value: string) => any;
|
|
209
|
-
"content-status": (hasContent: boolean) => any;
|
|
210
|
-
"empty-content": () => any;
|
|
401
|
+
submit: () => any;
|
|
211
402
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
212
|
-
|
|
403
|
+
editorRef: HTMLDivElement;
|
|
213
404
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
214
405
|
P: {};
|
|
215
406
|
B: {};
|
|
@@ -218,21 +409,13 @@ C: {};
|
|
|
218
409
|
M: {};
|
|
219
410
|
Defaults: {};
|
|
220
411
|
}, Readonly<{
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
onInput?: ((value: string) => any) | undefined;
|
|
226
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
227
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
228
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
229
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
412
|
+
modelValue?: UserItem[];
|
|
413
|
+
}> & Readonly<{
|
|
414
|
+
onSubmit?: (() => any) | undefined;
|
|
415
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
230
416
|
}>, {
|
|
231
|
-
|
|
232
|
-
resetFields: () => void;
|
|
417
|
+
clearHistory: () => void;
|
|
233
418
|
activateFirstField: () => void;
|
|
234
|
-
getValueFromDOM: () => string;
|
|
235
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
236
419
|
}, {}, {}, {}, {}> | null;
|
|
237
420
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
238
421
|
_constants: {
|
|
@@ -685,222 +868,75 @@ showTooltip: boolean;
|
|
|
685
868
|
inputBoxType: string;
|
|
686
869
|
}> | null;
|
|
687
870
|
buttonsContainerRef: HTMLDivElement;
|
|
688
|
-
suggestionsListRef: HTMLDivElement;
|
|
689
871
|
}, HTMLDivElement>;
|
|
690
872
|
|
|
691
|
-
declare const
|
|
692
|
-
align: "left" | "center" | "right" | string;
|
|
693
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
873
|
+
declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
694
874
|
|
|
695
|
-
declare const
|
|
696
|
-
|
|
697
|
-
keyDown: (e: KeyboardEvent) => void;
|
|
698
|
-
input: (event: Event, text: string) => boolean;
|
|
699
|
-
toggleExpand: () => void;
|
|
700
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
701
|
-
close: () => any;
|
|
702
|
-
select: (value: string, context?: TriggerContext | undefined) => any;
|
|
703
|
-
"suggestion-select": (item: SuggestionItem) => any;
|
|
704
|
-
"update:open": (value: boolean) => any;
|
|
705
|
-
trigger: (handler: TriggerHandler) => any;
|
|
706
|
-
"category-select": (category: Category) => any;
|
|
707
|
-
"update:expanded": (expanded: boolean) => any;
|
|
708
|
-
"fill-template": (template: string) => any;
|
|
709
|
-
}, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
|
|
710
|
-
onClose?: (() => any) | undefined;
|
|
711
|
-
onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
|
|
712
|
-
"onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
|
|
713
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
714
|
-
onTrigger?: ((handler: TriggerHandler) => any) | undefined;
|
|
715
|
-
"onCategory-select"?: ((category: Category) => any) | undefined;
|
|
716
|
-
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
717
|
-
"onFill-template"?: ((template: string) => any) | undefined;
|
|
718
|
-
}>, {
|
|
719
|
-
open: boolean;
|
|
720
|
-
items: SuggestionItem[];
|
|
721
|
-
title: string;
|
|
722
|
-
loading: boolean;
|
|
723
|
-
categories: Category[];
|
|
724
|
-
theme: "light" | "dark";
|
|
725
|
-
maxVisibleItems: number;
|
|
726
|
-
triggerKeys: string[];
|
|
727
|
-
closeOnOutsideClick: boolean;
|
|
728
|
-
defaultExpanded: boolean;
|
|
729
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
730
|
-
rootRef: HTMLDivElement;
|
|
731
|
-
panelRef: ({
|
|
732
|
-
$: ComponentInternalInstance;
|
|
733
|
-
$data: {};
|
|
734
|
-
$props: Partial<{
|
|
735
|
-
title: string;
|
|
736
|
-
loading: boolean;
|
|
737
|
-
categories: Category[];
|
|
738
|
-
maxVisibleItems: number;
|
|
739
|
-
}> & Omit<{
|
|
740
|
-
readonly items: SuggestionItem[];
|
|
741
|
-
readonly title: string;
|
|
742
|
-
readonly loading: boolean;
|
|
743
|
-
readonly categories: Category[];
|
|
744
|
-
readonly maxVisibleItems: number;
|
|
745
|
-
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
746
|
-
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
747
|
-
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
748
|
-
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
749
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
750
|
-
$attrs: {
|
|
751
|
-
[x: string]: unknown;
|
|
752
|
-
};
|
|
753
|
-
$refs: {
|
|
754
|
-
[x: string]: unknown;
|
|
755
|
-
};
|
|
756
|
-
$slots: Readonly<{
|
|
757
|
-
[name: string]: Slot<any> | undefined;
|
|
758
|
-
}>;
|
|
759
|
-
$root: ComponentPublicInstance | null;
|
|
760
|
-
$parent: ComponentPublicInstance | null;
|
|
761
|
-
$host: Element | null;
|
|
762
|
-
$emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
|
|
763
|
-
$el: HTMLDivElement;
|
|
764
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
765
|
-
items: {
|
|
766
|
-
type: PropType<SuggestionItem[]>;
|
|
767
|
-
required: true;
|
|
768
|
-
};
|
|
769
|
-
categories: {
|
|
770
|
-
type: PropType<Category[]>;
|
|
771
|
-
default: () => never[];
|
|
772
|
-
};
|
|
773
|
-
loading: {
|
|
774
|
-
type: BooleanConstructor;
|
|
775
|
-
default: boolean;
|
|
776
|
-
};
|
|
777
|
-
title: {
|
|
778
|
-
type: StringConstructor;
|
|
779
|
-
default: string;
|
|
780
|
-
};
|
|
781
|
-
maxVisibleItems: {
|
|
782
|
-
type: NumberConstructor;
|
|
783
|
-
default: number;
|
|
784
|
-
};
|
|
785
|
-
}>> & Readonly<{
|
|
786
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
787
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
788
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
789
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
790
|
-
}>, {
|
|
791
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
875
|
+
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {
|
|
876
|
+
children: ComputedRef<(HTMLElement | SVGElement)[]>;
|
|
792
877
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
793
|
-
close: (...args: any[]) => void;
|
|
794
|
-
select: (...args: any[]) => void;
|
|
795
|
-
"category-select": (...args: any[]) => void;
|
|
796
|
-
"item-hover": (...args: any[]) => void;
|
|
797
|
-
}, string, {
|
|
798
|
-
title: string;
|
|
799
|
-
loading: boolean;
|
|
800
|
-
categories: Category[];
|
|
801
|
-
maxVisibleItems: number;
|
|
802
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
803
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
804
|
-
created?: (() => void) | (() => void)[];
|
|
805
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
806
|
-
mounted?: (() => void) | (() => void)[];
|
|
807
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
808
|
-
updated?: (() => void) | (() => void)[];
|
|
809
|
-
activated?: (() => void) | (() => void)[];
|
|
810
|
-
deactivated?: (() => void) | (() => void)[];
|
|
811
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
812
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
813
|
-
destroyed?: (() => void) | (() => void)[];
|
|
814
|
-
unmounted?: (() => void) | (() => void)[];
|
|
815
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
816
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
817
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
818
|
-
};
|
|
819
|
-
$forceUpdate: () => void;
|
|
820
|
-
$nextTick: nextTick;
|
|
821
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
822
|
-
} & Readonly<{
|
|
823
|
-
title: string;
|
|
824
|
-
loading: boolean;
|
|
825
|
-
categories: Category[];
|
|
826
|
-
maxVisibleItems: number;
|
|
827
|
-
}> & Omit<Readonly<ExtractPropTypes< {
|
|
828
|
-
items: {
|
|
829
|
-
type: PropType<SuggestionItem[]>;
|
|
830
|
-
required: true;
|
|
831
|
-
};
|
|
832
|
-
categories: {
|
|
833
|
-
type: PropType<Category[]>;
|
|
834
|
-
default: () => never[];
|
|
835
|
-
};
|
|
836
|
-
loading: {
|
|
837
|
-
type: BooleanConstructor;
|
|
838
|
-
default: boolean;
|
|
839
|
-
};
|
|
840
|
-
title: {
|
|
841
|
-
type: StringConstructor;
|
|
842
|
-
default: string;
|
|
843
|
-
};
|
|
844
|
-
maxVisibleItems: {
|
|
845
|
-
type: NumberConstructor;
|
|
846
|
-
default: number;
|
|
847
|
-
};
|
|
848
|
-
}>> & Readonly<{
|
|
849
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
850
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
851
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
852
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
853
|
-
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
854
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
855
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
856
|
-
$slots: {
|
|
857
|
-
'title-icon'?(_: {}): any;
|
|
858
|
-
'loading-indicator'?(_: {}): any;
|
|
859
|
-
item?(_: {
|
|
860
|
-
item: SuggestionItem;
|
|
861
|
-
active: boolean;
|
|
862
|
-
}): any;
|
|
863
|
-
empty?(_: {}): any;
|
|
864
|
-
};
|
|
865
|
-
}) | null;
|
|
866
|
-
}, HTMLDivElement>;
|
|
867
|
-
|
|
868
|
-
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
869
878
|
"update:showAll": (value: boolean | undefined) => any;
|
|
870
879
|
} & {
|
|
871
|
-
"item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
|
|
872
880
|
"click-outside": (event: MouseEvent) => any;
|
|
873
|
-
}, string, PublicProps, Readonly<
|
|
874
|
-
"onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
|
|
881
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
875
882
|
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
876
883
|
"onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
|
|
877
884
|
}>, {
|
|
878
885
|
showAllButtonOn: "hover" | "always";
|
|
886
|
+
overflowMode: "expand" | "scroll";
|
|
879
887
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
880
888
|
containerWrapperRef: HTMLDivElement;
|
|
881
889
|
containerRef: HTMLDivElement;
|
|
890
|
+
staticMaybeItemRefs: unknown[];
|
|
891
|
+
floatingItemsRef: HTMLDivElement;
|
|
892
|
+
floatingMaybeItemRefs: unknown[];
|
|
882
893
|
}, HTMLDivElement>;
|
|
883
894
|
|
|
895
|
+
declare type __VLS_PrettifyLocal<T> = {
|
|
896
|
+
[K in keyof T]: T[K];
|
|
897
|
+
} & {};
|
|
898
|
+
|
|
884
899
|
declare type __VLS_Props = {
|
|
885
|
-
|
|
900
|
+
contentRenderers?: Record<string, BubbleContentRenderer>;
|
|
886
901
|
};
|
|
887
902
|
|
|
888
|
-
declare type __VLS_Props_2 =
|
|
903
|
+
declare type __VLS_Props_2 = ContainerProps;
|
|
904
|
+
|
|
905
|
+
declare type __VLS_Props_3 = DropdownMenuProps;
|
|
906
|
+
|
|
907
|
+
declare type __VLS_Props_4 = SuggestionPillsProps;
|
|
889
908
|
|
|
890
|
-
declare type
|
|
909
|
+
declare type __VLS_Props_5 = SuggestionPopoverProps;
|
|
910
|
+
|
|
911
|
+
declare type __VLS_Props_6 = ThemeProviderProps;
|
|
912
|
+
|
|
913
|
+
declare type __VLS_Props_7 = McpServerPickerProps;
|
|
891
914
|
|
|
892
915
|
declare type __VLS_PublicProps = {
|
|
893
916
|
'show': ContainerProps['show'];
|
|
894
917
|
'fullscreen'?: ContainerProps['fullscreen'];
|
|
895
|
-
};
|
|
918
|
+
} & __VLS_Props_2;
|
|
896
919
|
|
|
897
920
|
declare type __VLS_PublicProps_2 = {
|
|
898
|
-
'
|
|
899
|
-
} &
|
|
921
|
+
'show'?: boolean;
|
|
922
|
+
} & __VLS_Props_3;
|
|
900
923
|
|
|
901
924
|
declare type __VLS_PublicProps_3 = {
|
|
925
|
+
'showAll'?: SuggestionPillsProps['showAll'];
|
|
926
|
+
} & __VLS_Props_4;
|
|
927
|
+
|
|
928
|
+
declare type __VLS_PublicProps_4 = {
|
|
902
929
|
'selectedGroup'?: string;
|
|
903
|
-
} &
|
|
930
|
+
} & __VLS_Props_5;
|
|
931
|
+
|
|
932
|
+
declare type __VLS_PublicProps_5 = {
|
|
933
|
+
'theme'?: string;
|
|
934
|
+
'colorMode'?: ColorMode;
|
|
935
|
+
} & __VLS_Props_6;
|
|
936
|
+
|
|
937
|
+
declare type __VLS_PublicProps_6 = {
|
|
938
|
+
'visible': boolean;
|
|
939
|
+
} & __VLS_Props_7;
|
|
904
940
|
|
|
905
941
|
declare function __VLS_template(): {
|
|
906
942
|
attrs: Partial<{}>;
|
|
@@ -910,42 +946,108 @@ declare function __VLS_template(): {
|
|
|
910
946
|
};
|
|
911
947
|
|
|
912
948
|
declare function __VLS_template_10(): {
|
|
913
|
-
attrs: Partial<{}>;
|
|
914
|
-
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
915
|
-
refs: {};
|
|
916
|
-
rootEl: HTMLButtonElement;
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
declare function __VLS_template_11(): {
|
|
920
|
-
attrs: Partial<{}>;
|
|
921
|
-
slots: {
|
|
922
|
-
'category-label'?(_: {
|
|
923
|
-
category: Category_2;
|
|
924
|
-
}): any;
|
|
925
|
-
'question-item'?(_: {
|
|
926
|
-
question: Question_2;
|
|
927
|
-
index: number;
|
|
928
|
-
}): any;
|
|
929
|
-
'loading-indicator'?(_: {}): any;
|
|
930
|
-
'empty-state'?(_: {}): any;
|
|
931
|
-
};
|
|
932
|
-
refs: {};
|
|
933
|
-
rootEl: HTMLDivElement;
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
declare function __VLS_template_12(): {
|
|
937
949
|
attrs: Partial<{}>;
|
|
938
950
|
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
939
951
|
refs: {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
952
|
+
basePopperRef: ({
|
|
953
|
+
$: ComponentInternalInstance;
|
|
954
|
+
$data: {};
|
|
955
|
+
$props: {
|
|
956
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
957
|
+
readonly offset?: number | {
|
|
958
|
+
mainAxis?: number;
|
|
959
|
+
crossAxis?: number;
|
|
960
|
+
} | undefined;
|
|
961
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
962
|
+
readonly preventOverflow?: boolean | undefined;
|
|
963
|
+
readonly show?: boolean | undefined;
|
|
964
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
965
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
966
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
967
|
+
$attrs: {
|
|
968
|
+
[x: string]: unknown;
|
|
969
|
+
};
|
|
970
|
+
$refs: {
|
|
971
|
+
[x: string]: unknown;
|
|
972
|
+
};
|
|
973
|
+
$slots: Readonly<{
|
|
974
|
+
[name: string]: Slot<any> | undefined;
|
|
975
|
+
}>;
|
|
976
|
+
$root: ComponentPublicInstance | null;
|
|
977
|
+
$parent: ComponentPublicInstance | null;
|
|
978
|
+
$host: Element | null;
|
|
979
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
980
|
+
$el: any;
|
|
981
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
982
|
+
appendTo?: string | HTMLElement;
|
|
983
|
+
offset?: number | {
|
|
984
|
+
mainAxis?: number;
|
|
985
|
+
crossAxis?: number;
|
|
986
|
+
};
|
|
987
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
988
|
+
preventOverflow?: boolean;
|
|
989
|
+
show?: boolean;
|
|
990
|
+
transitionProps?: TransitionProps;
|
|
991
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
992
|
+
}> & Readonly<{}>, {
|
|
993
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
994
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
995
|
+
update: () => void;
|
|
996
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
997
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
998
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
999
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1000
|
+
created?: (() => void) | (() => void)[];
|
|
1001
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1002
|
+
mounted?: (() => void) | (() => void)[];
|
|
1003
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1004
|
+
updated?: (() => void) | (() => void)[];
|
|
1005
|
+
activated?: (() => void) | (() => void)[];
|
|
1006
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1007
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1008
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1009
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1010
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1011
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1012
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1013
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1014
|
+
};
|
|
1015
|
+
$forceUpdate: () => void;
|
|
1016
|
+
$nextTick: nextTick;
|
|
1017
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1018
|
+
} & Readonly<{
|
|
1019
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1020
|
+
}> & Omit<Readonly<{
|
|
1021
|
+
appendTo?: string | HTMLElement;
|
|
1022
|
+
offset?: number | {
|
|
1023
|
+
mainAxis?: number;
|
|
1024
|
+
crossAxis?: number;
|
|
1025
|
+
};
|
|
1026
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1027
|
+
preventOverflow?: boolean;
|
|
1028
|
+
show?: boolean;
|
|
1029
|
+
transitionProps?: TransitionProps;
|
|
1030
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1031
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1032
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1033
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1034
|
+
update: () => void;
|
|
1035
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1036
|
+
$slots: Readonly<{
|
|
1037
|
+
trigger?: () => VNode[];
|
|
1038
|
+
content?: () => VNode[];
|
|
1039
|
+
}> & {
|
|
1040
|
+
trigger?: () => VNode[];
|
|
1041
|
+
content?: () => VNode[];
|
|
1042
|
+
};
|
|
1043
|
+
}) | null;
|
|
1044
|
+
listRef: HTMLUListElement;
|
|
1045
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1046
|
+
show?: TooltipContentProps["show"];
|
|
1047
|
+
} & TooltipContentProps> & Readonly<{
|
|
1048
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1049
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1050
|
+
"update:show": (value: boolean | undefined) => any;
|
|
949
1051
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
950
1052
|
P: {};
|
|
951
1053
|
B: {};
|
|
@@ -962,6 +1064,22 @@ declare function __VLS_template_12(): {
|
|
|
962
1064
|
rootEl: any;
|
|
963
1065
|
};
|
|
964
1066
|
|
|
1067
|
+
declare function __VLS_template_11(): {
|
|
1068
|
+
attrs: Partial<{}>;
|
|
1069
|
+
slots: {
|
|
1070
|
+
default?(_: {}): any;
|
|
1071
|
+
};
|
|
1072
|
+
refs: {};
|
|
1073
|
+
rootEl: any;
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
declare function __VLS_template_12(): {
|
|
1077
|
+
attrs: Partial<{}>;
|
|
1078
|
+
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1079
|
+
refs: {};
|
|
1080
|
+
rootEl: HTMLDivElement;
|
|
1081
|
+
};
|
|
1082
|
+
|
|
965
1083
|
declare function __VLS_template_2(): {
|
|
966
1084
|
attrs: Partial<{}>;
|
|
967
1085
|
slots: {
|
|
@@ -980,22 +1098,125 @@ declare function __VLS_template_3(): {
|
|
|
980
1098
|
|
|
981
1099
|
declare function __VLS_template_4(): {
|
|
982
1100
|
attrs: Partial<{}>;
|
|
983
|
-
slots:
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1101
|
+
slots: {
|
|
1102
|
+
overlay?(_: {
|
|
1103
|
+
isDragging: true;
|
|
1104
|
+
}): any;
|
|
987
1105
|
};
|
|
1106
|
+
refs: {};
|
|
988
1107
|
rootEl: any;
|
|
989
1108
|
};
|
|
990
1109
|
|
|
991
1110
|
declare function __VLS_template_5(): {
|
|
1111
|
+
attrs: Partial<{}>;
|
|
1112
|
+
slots: {
|
|
1113
|
+
trigger?(_: {}): any;
|
|
1114
|
+
};
|
|
1115
|
+
refs: {
|
|
1116
|
+
basePopperRef: ({
|
|
1117
|
+
$: ComponentInternalInstance;
|
|
1118
|
+
$data: {};
|
|
1119
|
+
$props: {
|
|
1120
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
1121
|
+
readonly offset?: number | {
|
|
1122
|
+
mainAxis?: number;
|
|
1123
|
+
crossAxis?: number;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
1126
|
+
readonly preventOverflow?: boolean | undefined;
|
|
1127
|
+
readonly show?: boolean | undefined;
|
|
1128
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
1129
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
1130
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1131
|
+
$attrs: {
|
|
1132
|
+
[x: string]: unknown;
|
|
1133
|
+
};
|
|
1134
|
+
$refs: {
|
|
1135
|
+
[x: string]: unknown;
|
|
1136
|
+
};
|
|
1137
|
+
$slots: Readonly<{
|
|
1138
|
+
[name: string]: Slot<any> | undefined;
|
|
1139
|
+
}>;
|
|
1140
|
+
$root: ComponentPublicInstance | null;
|
|
1141
|
+
$parent: ComponentPublicInstance | null;
|
|
1142
|
+
$host: Element | null;
|
|
1143
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
1144
|
+
$el: any;
|
|
1145
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
1146
|
+
appendTo?: string | HTMLElement;
|
|
1147
|
+
offset?: number | {
|
|
1148
|
+
mainAxis?: number;
|
|
1149
|
+
crossAxis?: number;
|
|
1150
|
+
};
|
|
1151
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1152
|
+
preventOverflow?: boolean;
|
|
1153
|
+
show?: boolean;
|
|
1154
|
+
transitionProps?: TransitionProps;
|
|
1155
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1156
|
+
}> & Readonly<{}>, {
|
|
1157
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1158
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1159
|
+
update: () => void;
|
|
1160
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1161
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1162
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1163
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1164
|
+
created?: (() => void) | (() => void)[];
|
|
1165
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1166
|
+
mounted?: (() => void) | (() => void)[];
|
|
1167
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1168
|
+
updated?: (() => void) | (() => void)[];
|
|
1169
|
+
activated?: (() => void) | (() => void)[];
|
|
1170
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1171
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1172
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1173
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1174
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1175
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1176
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1177
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1178
|
+
};
|
|
1179
|
+
$forceUpdate: () => void;
|
|
1180
|
+
$nextTick: nextTick;
|
|
1181
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1182
|
+
} & Readonly<{
|
|
1183
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1184
|
+
}> & Omit<Readonly<{
|
|
1185
|
+
appendTo?: string | HTMLElement;
|
|
1186
|
+
offset?: number | {
|
|
1187
|
+
mainAxis?: number;
|
|
1188
|
+
crossAxis?: number;
|
|
1189
|
+
};
|
|
1190
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1191
|
+
preventOverflow?: boolean;
|
|
1192
|
+
show?: boolean;
|
|
1193
|
+
transitionProps?: TransitionProps;
|
|
1194
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1195
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1196
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1197
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1198
|
+
update: () => void;
|
|
1199
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1200
|
+
$slots: Readonly<{
|
|
1201
|
+
trigger?: () => VNode[];
|
|
1202
|
+
content?: () => VNode[];
|
|
1203
|
+
}> & {
|
|
1204
|
+
trigger?: () => VNode[];
|
|
1205
|
+
content?: () => VNode[];
|
|
1206
|
+
};
|
|
1207
|
+
}) | null;
|
|
1208
|
+
};
|
|
1209
|
+
rootEl: any;
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
declare function __VLS_template_6(): {
|
|
992
1213
|
attrs: Partial<{}>;
|
|
993
1214
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
994
1215
|
refs: {};
|
|
995
1216
|
rootEl: HTMLDivElement;
|
|
996
1217
|
};
|
|
997
1218
|
|
|
998
|
-
declare function
|
|
1219
|
+
declare function __VLS_template_7(): {
|
|
999
1220
|
attrs: Partial<{}>;
|
|
1000
1221
|
slots: {
|
|
1001
1222
|
header?(_: {}): any;
|
|
@@ -1010,32 +1231,19 @@ declare function __VLS_template_6(): {
|
|
|
1010
1231
|
senderRef: HTMLDivElement;
|
|
1011
1232
|
inputWrapperRef: HTMLDivElement;
|
|
1012
1233
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
onInput?: ((value: string) => any) | undefined;
|
|
1018
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
1019
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
1020
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
1021
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
1234
|
+
modelValue?: UserItem[];
|
|
1235
|
+
}> & Readonly<{
|
|
1236
|
+
onSubmit?: (() => any) | undefined;
|
|
1237
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
1022
1238
|
}>, {
|
|
1023
|
-
|
|
1024
|
-
resetFields: () => void;
|
|
1239
|
+
clearHistory: () => void;
|
|
1025
1240
|
activateFirstField: () => void;
|
|
1026
|
-
getValueFromDOM: () => string;
|
|
1027
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
1028
1241
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1029
|
-
"update:
|
|
1242
|
+
"update:modelValue": (value: UserItem[]) => any;
|
|
1030
1243
|
} & {
|
|
1031
|
-
|
|
1032
|
-
focus: (event: FocusEvent) => any;
|
|
1033
|
-
input: (value: string) => any;
|
|
1034
|
-
submit: (value: string) => any;
|
|
1035
|
-
"content-status": (hasContent: boolean) => any;
|
|
1036
|
-
"empty-content": () => any;
|
|
1244
|
+
submit: () => any;
|
|
1037
1245
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1038
|
-
|
|
1246
|
+
editorRef: HTMLDivElement;
|
|
1039
1247
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1040
1248
|
P: {};
|
|
1041
1249
|
B: {};
|
|
@@ -1044,21 +1252,13 @@ declare function __VLS_template_6(): {
|
|
|
1044
1252
|
M: {};
|
|
1045
1253
|
Defaults: {};
|
|
1046
1254
|
}, Readonly<{
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
onInput?: ((value: string) => any) | undefined;
|
|
1052
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
1053
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
1054
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
1055
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
1255
|
+
modelValue?: UserItem[];
|
|
1256
|
+
}> & Readonly<{
|
|
1257
|
+
onSubmit?: (() => any) | undefined;
|
|
1258
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
1056
1259
|
}>, {
|
|
1057
|
-
|
|
1058
|
-
resetFields: () => void;
|
|
1260
|
+
clearHistory: () => void;
|
|
1059
1261
|
activateFirstField: () => void;
|
|
1060
|
-
getValueFromDOM: () => string;
|
|
1061
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
1062
1262
|
}, {}, {}, {}, {}> | null;
|
|
1063
1263
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1064
1264
|
_constants: {
|
|
@@ -1511,179 +1711,15 @@ declare function __VLS_template_6(): {
|
|
|
1511
1711
|
inputBoxType: string;
|
|
1512
1712
|
}> | null;
|
|
1513
1713
|
buttonsContainerRef: HTMLDivElement;
|
|
1514
|
-
suggestionsListRef: HTMLDivElement;
|
|
1515
1714
|
};
|
|
1516
1715
|
rootEl: HTMLDivElement;
|
|
1517
1716
|
};
|
|
1518
1717
|
|
|
1519
|
-
declare function __VLS_template_7(): {
|
|
1520
|
-
attrs: Partial<{}>;
|
|
1521
|
-
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1522
|
-
refs: {};
|
|
1523
|
-
rootEl: HTMLDivElement;
|
|
1524
|
-
};
|
|
1525
|
-
|
|
1526
1718
|
declare function __VLS_template_8(): {
|
|
1527
1719
|
attrs: Partial<{}>;
|
|
1528
|
-
slots:
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}): any;
|
|
1532
|
-
trigger?(_: {
|
|
1533
|
-
onTrigger: TriggerHandler;
|
|
1534
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
1535
|
-
onInput: (event: Event, text: string) => boolean;
|
|
1536
|
-
}): any;
|
|
1537
|
-
'title-icon'?(_: {}): any;
|
|
1538
|
-
'category-label'?(_: {
|
|
1539
|
-
category: any;
|
|
1540
|
-
}): any;
|
|
1541
|
-
item?(_: {
|
|
1542
|
-
item: SuggestionItem;
|
|
1543
|
-
active: boolean;
|
|
1544
|
-
}): any;
|
|
1545
|
-
'loading-indicator'?(_: {}): any;
|
|
1546
|
-
empty?(_: {}): any;
|
|
1547
|
-
};
|
|
1548
|
-
refs: {
|
|
1549
|
-
rootRef: HTMLDivElement;
|
|
1550
|
-
panelRef: ({
|
|
1551
|
-
$: ComponentInternalInstance;
|
|
1552
|
-
$data: {};
|
|
1553
|
-
$props: Partial<{
|
|
1554
|
-
title: string;
|
|
1555
|
-
loading: boolean;
|
|
1556
|
-
categories: Category[];
|
|
1557
|
-
maxVisibleItems: number;
|
|
1558
|
-
}> & Omit<{
|
|
1559
|
-
readonly items: SuggestionItem[];
|
|
1560
|
-
readonly title: string;
|
|
1561
|
-
readonly loading: boolean;
|
|
1562
|
-
readonly categories: Category[];
|
|
1563
|
-
readonly maxVisibleItems: number;
|
|
1564
|
-
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
1565
|
-
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
1566
|
-
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1567
|
-
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1568
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
1569
|
-
$attrs: {
|
|
1570
|
-
[x: string]: unknown;
|
|
1571
|
-
};
|
|
1572
|
-
$refs: {
|
|
1573
|
-
[x: string]: unknown;
|
|
1574
|
-
};
|
|
1575
|
-
$slots: Readonly<{
|
|
1576
|
-
[name: string]: Slot<any> | undefined;
|
|
1577
|
-
}>;
|
|
1578
|
-
$root: ComponentPublicInstance | null;
|
|
1579
|
-
$parent: ComponentPublicInstance | null;
|
|
1580
|
-
$host: Element | null;
|
|
1581
|
-
$emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
|
|
1582
|
-
$el: HTMLDivElement;
|
|
1583
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
1584
|
-
items: {
|
|
1585
|
-
type: PropType<SuggestionItem[]>;
|
|
1586
|
-
required: true;
|
|
1587
|
-
};
|
|
1588
|
-
categories: {
|
|
1589
|
-
type: PropType<Category[]>;
|
|
1590
|
-
default: () => never[];
|
|
1591
|
-
};
|
|
1592
|
-
loading: {
|
|
1593
|
-
type: BooleanConstructor;
|
|
1594
|
-
default: boolean;
|
|
1595
|
-
};
|
|
1596
|
-
title: {
|
|
1597
|
-
type: StringConstructor;
|
|
1598
|
-
default: string;
|
|
1599
|
-
};
|
|
1600
|
-
maxVisibleItems: {
|
|
1601
|
-
type: NumberConstructor;
|
|
1602
|
-
default: number;
|
|
1603
|
-
};
|
|
1604
|
-
}>> & Readonly<{
|
|
1605
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
1606
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1607
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1608
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1609
|
-
}>, {
|
|
1610
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1611
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1612
|
-
close: (...args: any[]) => void;
|
|
1613
|
-
select: (...args: any[]) => void;
|
|
1614
|
-
"category-select": (...args: any[]) => void;
|
|
1615
|
-
"item-hover": (...args: any[]) => void;
|
|
1616
|
-
}, string, {
|
|
1617
|
-
title: string;
|
|
1618
|
-
loading: boolean;
|
|
1619
|
-
categories: Category[];
|
|
1620
|
-
maxVisibleItems: number;
|
|
1621
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1622
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
1623
|
-
created?: (() => void) | (() => void)[];
|
|
1624
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
1625
|
-
mounted?: (() => void) | (() => void)[];
|
|
1626
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
1627
|
-
updated?: (() => void) | (() => void)[];
|
|
1628
|
-
activated?: (() => void) | (() => void)[];
|
|
1629
|
-
deactivated?: (() => void) | (() => void)[];
|
|
1630
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
1631
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
1632
|
-
destroyed?: (() => void) | (() => void)[];
|
|
1633
|
-
unmounted?: (() => void) | (() => void)[];
|
|
1634
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1635
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1636
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1637
|
-
};
|
|
1638
|
-
$forceUpdate: () => void;
|
|
1639
|
-
$nextTick: nextTick;
|
|
1640
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1641
|
-
} & Readonly<{
|
|
1642
|
-
title: string;
|
|
1643
|
-
loading: boolean;
|
|
1644
|
-
categories: Category[];
|
|
1645
|
-
maxVisibleItems: number;
|
|
1646
|
-
}> & Omit<Readonly<ExtractPropTypes< {
|
|
1647
|
-
items: {
|
|
1648
|
-
type: PropType<SuggestionItem[]>;
|
|
1649
|
-
required: true;
|
|
1650
|
-
};
|
|
1651
|
-
categories: {
|
|
1652
|
-
type: PropType<Category[]>;
|
|
1653
|
-
default: () => never[];
|
|
1654
|
-
};
|
|
1655
|
-
loading: {
|
|
1656
|
-
type: BooleanConstructor;
|
|
1657
|
-
default: boolean;
|
|
1658
|
-
};
|
|
1659
|
-
title: {
|
|
1660
|
-
type: StringConstructor;
|
|
1661
|
-
default: string;
|
|
1662
|
-
};
|
|
1663
|
-
maxVisibleItems: {
|
|
1664
|
-
type: NumberConstructor;
|
|
1665
|
-
default: number;
|
|
1666
|
-
};
|
|
1667
|
-
}>> & Readonly<{
|
|
1668
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
1669
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1670
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1671
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1672
|
-
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
1673
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1674
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
1675
|
-
$slots: {
|
|
1676
|
-
'title-icon'?(_: {}): any;
|
|
1677
|
-
'loading-indicator'?(_: {}): any;
|
|
1678
|
-
item?(_: {
|
|
1679
|
-
item: SuggestionItem;
|
|
1680
|
-
active: boolean;
|
|
1681
|
-
}): any;
|
|
1682
|
-
empty?(_: {}): any;
|
|
1683
|
-
};
|
|
1684
|
-
}) | null;
|
|
1685
|
-
};
|
|
1686
|
-
rootEl: HTMLDivElement;
|
|
1720
|
+
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1721
|
+
refs: {};
|
|
1722
|
+
rootEl: HTMLButtonElement;
|
|
1687
1723
|
};
|
|
1688
1724
|
|
|
1689
1725
|
declare function __VLS_template_9(): {
|
|
@@ -1692,6 +1728,9 @@ declare function __VLS_template_9(): {
|
|
|
1692
1728
|
refs: {
|
|
1693
1729
|
containerWrapperRef: HTMLDivElement;
|
|
1694
1730
|
containerRef: HTMLDivElement;
|
|
1731
|
+
staticMaybeItemRefs: unknown[];
|
|
1732
|
+
floatingItemsRef: HTMLDivElement;
|
|
1733
|
+
floatingMaybeItemRefs: unknown[];
|
|
1695
1734
|
};
|
|
1696
1735
|
rootEl: HTMLDivElement;
|
|
1697
1736
|
};
|
|
@@ -1792,11 +1831,18 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1792
1831
|
};
|
|
1793
1832
|
};
|
|
1794
1833
|
|
|
1834
|
+
export declare interface ActionButton {
|
|
1835
|
+
type: string;
|
|
1836
|
+
label: string;
|
|
1837
|
+
handler?: (file: Attachment) => void;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1795
1840
|
export declare interface ActionButtonsProps {
|
|
1796
1841
|
loading?: boolean;
|
|
1797
1842
|
disabled?: boolean;
|
|
1798
1843
|
showClear?: boolean;
|
|
1799
1844
|
hasContent?: boolean;
|
|
1845
|
+
buttonGroup?: ButtonGroupConfig;
|
|
1800
1846
|
allowSpeech?: boolean;
|
|
1801
1847
|
speechStatus?: {
|
|
1802
1848
|
isRecording: boolean;
|
|
@@ -1806,6 +1852,33 @@ export declare interface ActionButtonsProps {
|
|
|
1806
1852
|
submitType?: SubmitTrigger;
|
|
1807
1853
|
showShortcuts?: boolean;
|
|
1808
1854
|
isOverLimit?: boolean;
|
|
1855
|
+
stopText?: string;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
export declare type AddType = 'form' | 'code';
|
|
1859
|
+
|
|
1860
|
+
export declare type Attachment = UrlAttachment | RawFileAttachment;
|
|
1861
|
+
|
|
1862
|
+
export declare interface AttachmentListEmits {
|
|
1863
|
+
(e: 'update:items', items: Attachment[]): void;
|
|
1864
|
+
(e: 'remove', file: Attachment): void;
|
|
1865
|
+
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
1866
|
+
(e: 'retry', file: Attachment): void;
|
|
1867
|
+
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
1868
|
+
(e: 'action', payload: {
|
|
1869
|
+
action: ActionButton;
|
|
1870
|
+
file: Attachment;
|
|
1871
|
+
}): void;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
export declare interface AttachmentListProps {
|
|
1875
|
+
items?: Attachment[];
|
|
1876
|
+
disabled?: boolean;
|
|
1877
|
+
wrap?: boolean;
|
|
1878
|
+
fileIcons?: Record<string, Component>;
|
|
1879
|
+
actions?: ActionButton[];
|
|
1880
|
+
variant?: DisplayVariant;
|
|
1881
|
+
fileMatchers?: FileTypeMatcher[];
|
|
1809
1882
|
}
|
|
1810
1883
|
|
|
1811
1884
|
export declare type AutoSize = boolean | {
|
|
@@ -1813,35 +1886,30 @@ export declare type AutoSize = boolean | {
|
|
|
1813
1886
|
maxRows: number;
|
|
1814
1887
|
};
|
|
1815
1888
|
|
|
1816
|
-
declare interface
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
selected?: string;
|
|
1889
|
+
export declare interface BaseAttachment {
|
|
1890
|
+
id?: string;
|
|
1891
|
+
name?: string;
|
|
1892
|
+
status?: FileStatus;
|
|
1893
|
+
fileType?: FileType;
|
|
1894
|
+
message?: string;
|
|
1823
1895
|
}
|
|
1824
1896
|
|
|
1825
|
-
declare
|
|
1897
|
+
declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
|
|
1898
|
+
|
|
1899
|
+
export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
1900
|
+
|
|
1901
|
+
declare interface BaseTextItem {
|
|
1902
|
+
id: string;
|
|
1903
|
+
type: string;
|
|
1904
|
+
content: string;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
declare const Bubble: typeof _default_18 & {
|
|
1826
1908
|
install: typeof bubbleInstall;
|
|
1827
1909
|
};
|
|
1828
1910
|
export { Bubble }
|
|
1829
1911
|
export { Bubble as TrBubble }
|
|
1830
1912
|
|
|
1831
|
-
export declare const BubbleChainMessageRenderer: DefineComponent< {
|
|
1832
|
-
items: ChainItem[];
|
|
1833
|
-
html?: boolean;
|
|
1834
|
-
contentClass?: string;
|
|
1835
|
-
contentRenderer?: (content: string) => string;
|
|
1836
|
-
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
1837
|
-
items: ChainItem[];
|
|
1838
|
-
html?: boolean;
|
|
1839
|
-
contentClass?: string;
|
|
1840
|
-
contentRenderer?: (content: string) => string;
|
|
1841
|
-
}> & Readonly<{}>, {
|
|
1842
|
-
html: boolean;
|
|
1843
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1844
|
-
|
|
1845
1913
|
export declare interface BubbleCommonProps {
|
|
1846
1914
|
/**
|
|
1847
1915
|
* 气泡对齐位置
|
|
@@ -1857,16 +1925,43 @@ export declare interface BubbleCommonProps {
|
|
|
1857
1925
|
shape?: 'rounded' | 'corner';
|
|
1858
1926
|
/**
|
|
1859
1927
|
* 气泡内容渲染器。
|
|
1860
|
-
* 如果 Bubble 中的
|
|
1928
|
+
* 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
|
|
1929
|
+
*/
|
|
1930
|
+
contentRenderer?: BubbleContentRenderer;
|
|
1931
|
+
/**
|
|
1932
|
+
* 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
|
|
1933
|
+
*/
|
|
1934
|
+
customContentField?: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* 气泡中止文本
|
|
1937
|
+
*/
|
|
1938
|
+
abortedText?: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* 气泡最大宽度
|
|
1861
1941
|
*/
|
|
1862
|
-
contentRenderer?: BubbleMessageRenderer;
|
|
1863
|
-
hidden?: boolean;
|
|
1864
1942
|
maxWidth?: string | number;
|
|
1865
1943
|
}
|
|
1866
1944
|
|
|
1945
|
+
export declare abstract class BubbleContentClassRenderer {
|
|
1946
|
+
abstract render(options: {
|
|
1947
|
+
[key: string]: any;
|
|
1948
|
+
}): VNode;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
export declare type BubbleContentFunctionRenderer = (options: {
|
|
1952
|
+
[key: string]: any;
|
|
1953
|
+
}) => VNode;
|
|
1954
|
+
|
|
1955
|
+
export declare interface BubbleContentItem {
|
|
1956
|
+
type: string;
|
|
1957
|
+
[key: string]: any;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
|
|
1961
|
+
|
|
1867
1962
|
declare const bubbleInstall: (app: App) => void;
|
|
1868
1963
|
|
|
1869
|
-
declare const BubbleList: typeof
|
|
1964
|
+
declare const BubbleList: typeof _default_19 & {
|
|
1870
1965
|
install: typeof bubbleListInstall;
|
|
1871
1966
|
};
|
|
1872
1967
|
export { BubbleList }
|
|
@@ -1893,18 +1988,16 @@ export declare interface BubbleListProps {
|
|
|
1893
1988
|
autoScroll?: boolean;
|
|
1894
1989
|
}
|
|
1895
1990
|
|
|
1896
|
-
export declare class
|
|
1897
|
-
readonly md: default_2;
|
|
1991
|
+
export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
|
|
1898
1992
|
readonly mdConfig: Options;
|
|
1899
1993
|
readonly dompurifyConfig: Config;
|
|
1900
1994
|
readonly sanitizeDisabled: boolean;
|
|
1901
|
-
readonly
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
};
|
|
1905
|
-
constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
|
|
1995
|
+
readonly defaultAttrs: Record<string, unknown>;
|
|
1996
|
+
private md;
|
|
1997
|
+
constructor(options?: BubbleMarkdownRendererOptions);
|
|
1906
1998
|
render(options: {
|
|
1907
1999
|
content?: string;
|
|
2000
|
+
[key: string]: unknown;
|
|
1908
2001
|
}): VNode<RendererNode, RendererElement, {
|
|
1909
2002
|
[key: string]: any;
|
|
1910
2003
|
}>;
|
|
@@ -1914,45 +2007,21 @@ declare interface BubbleMarkdownRendererOptions {
|
|
|
1914
2007
|
mdConfig?: Options;
|
|
1915
2008
|
dompurifyConfig?: Config;
|
|
1916
2009
|
sanitizeDisabled?: boolean;
|
|
1917
|
-
|
|
1918
|
-
class?: string;
|
|
1919
|
-
style?: string;
|
|
1920
|
-
};
|
|
2010
|
+
defaultAttrs?: Record<string, unknown>;
|
|
1921
2011
|
}
|
|
1922
2012
|
|
|
1923
|
-
export declare abstract class BubbleMessageClassRenderer {
|
|
1924
|
-
abstract render(options: {
|
|
1925
|
-
[key: string]: any;
|
|
1926
|
-
}): VNode;
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
export declare type BubbleMessageFunctionRenderer = (options: {
|
|
1930
|
-
[key: string]: any;
|
|
1931
|
-
}) => VNode;
|
|
1932
|
-
|
|
1933
|
-
export declare interface BubbleMessageProps {
|
|
1934
|
-
type: string;
|
|
1935
|
-
[key: string]: any;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component | {
|
|
1939
|
-
component: Component;
|
|
1940
|
-
defaultProps: Record<string, unknown>;
|
|
1941
|
-
};
|
|
1942
|
-
|
|
1943
2013
|
export declare interface BubbleProps extends BubbleCommonProps {
|
|
1944
2014
|
/**
|
|
1945
2015
|
* 气泡内容
|
|
1946
2016
|
*/
|
|
1947
|
-
content?: string;
|
|
1948
|
-
messages?: BubbleMessageProps[];
|
|
2017
|
+
content?: string | BubbleContentItem[];
|
|
1949
2018
|
id?: string | number | symbol;
|
|
1950
2019
|
role?: string;
|
|
1951
2020
|
loading?: boolean;
|
|
1952
2021
|
aborted?: boolean;
|
|
1953
2022
|
}
|
|
1954
2023
|
|
|
1955
|
-
declare const BubbleProvider: typeof
|
|
2024
|
+
declare const BubbleProvider: typeof _default_20 & {
|
|
1956
2025
|
install: typeof bubbleProviderInstall;
|
|
1957
2026
|
};
|
|
1958
2027
|
export { BubbleProvider }
|
|
@@ -1961,6 +2030,7 @@ export { BubbleProvider as TrBubbleProvider }
|
|
|
1961
2030
|
declare const bubbleProviderInstall: (app: App) => void;
|
|
1962
2031
|
|
|
1963
2032
|
export declare type BubbleRoleConfig = BubbleCommonProps & {
|
|
2033
|
+
hidden?: boolean;
|
|
1964
2034
|
slots?: BubbleSlots;
|
|
1965
2035
|
};
|
|
1966
2036
|
|
|
@@ -1976,25 +2046,15 @@ export declare interface BubbleSlots {
|
|
|
1976
2046
|
}) => unknown;
|
|
1977
2047
|
}
|
|
1978
2048
|
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
export declare interface Category {
|
|
1983
|
-
/** 唯一标识 */
|
|
1984
|
-
id: string;
|
|
1985
|
-
/** 显示名称 */
|
|
1986
|
-
label: string;
|
|
1987
|
-
/** 可选图标 */
|
|
1988
|
-
icon?: VNode;
|
|
1989
|
-
/** 该分类下的指令项 */
|
|
1990
|
-
items: SuggestionItem[];
|
|
2049
|
+
export declare interface ButtonGroupConfig {
|
|
2050
|
+
file?: ControlState & fileUploadConfig;
|
|
2051
|
+
submit?: ControlState;
|
|
1991
2052
|
}
|
|
1992
2053
|
|
|
1993
|
-
declare
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
questions: Question_2[];
|
|
2054
|
+
export declare type ColorMode = 'light' | 'dark' | 'auto';
|
|
2055
|
+
|
|
2056
|
+
export declare interface ContainerEmits {
|
|
2057
|
+
(e: 'close'): void;
|
|
1998
2058
|
}
|
|
1999
2059
|
|
|
2000
2060
|
export declare interface ContainerProps {
|
|
@@ -2006,6 +2066,7 @@ export declare interface ContainerProps {
|
|
|
2006
2066
|
* model:fullscreen
|
|
2007
2067
|
*/
|
|
2008
2068
|
fullscreen?: boolean;
|
|
2069
|
+
title?: string;
|
|
2009
2070
|
}
|
|
2010
2071
|
|
|
2011
2072
|
export declare interface ContainerSlots {
|
|
@@ -2015,139 +2076,350 @@ export declare interface ContainerSlots {
|
|
|
2015
2076
|
footer: () => unknown;
|
|
2016
2077
|
}
|
|
2017
2078
|
|
|
2079
|
+
export declare interface ControlState {
|
|
2080
|
+
tooltips?: string | TooltipRender;
|
|
2081
|
+
disabled?: boolean;
|
|
2082
|
+
tooltipPlacement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2018
2085
|
declare const _default: {
|
|
2019
2086
|
install<T>(app: App<T>): void;
|
|
2020
2087
|
};
|
|
2021
2088
|
export default _default;
|
|
2022
2089
|
|
|
2023
|
-
declare const _default_10: typeof
|
|
2024
|
-
install: typeof install_8;
|
|
2025
|
-
};
|
|
2026
|
-
export { _default_10 as Suggestion }
|
|
2027
|
-
export { _default_10 as TrSuggestion }
|
|
2028
|
-
|
|
2029
|
-
declare const _default_11: typeof _default_27 & {
|
|
2090
|
+
declare const _default_10: typeof _default_30 & {
|
|
2030
2091
|
install: typeof install_9;
|
|
2031
2092
|
};
|
|
2032
|
-
export {
|
|
2033
|
-
export {
|
|
2093
|
+
export { _default_10 as Sender }
|
|
2094
|
+
export { _default_10 as TrSender }
|
|
2034
2095
|
|
|
2035
|
-
declare const
|
|
2096
|
+
declare const _default_11: typeof _default_32 & {
|
|
2036
2097
|
install: typeof install_10;
|
|
2037
2098
|
};
|
|
2038
|
-
export {
|
|
2039
|
-
export {
|
|
2099
|
+
export { _default_11 as SuggestionPills }
|
|
2100
|
+
export { _default_11 as TrSuggestionPills }
|
|
2040
2101
|
|
|
2041
|
-
declare const
|
|
2102
|
+
declare const _default_12: typeof _default_33 & {
|
|
2042
2103
|
install: typeof install_11;
|
|
2043
2104
|
};
|
|
2044
|
-
export {
|
|
2045
|
-
export {
|
|
2105
|
+
export { _default_12 as SuggestionPopover }
|
|
2106
|
+
export { _default_12 as TrSuggestionPopover }
|
|
2107
|
+
|
|
2108
|
+
declare const _default_13: typeof _default_34 & {
|
|
2109
|
+
install: typeof install_12;
|
|
2110
|
+
};
|
|
2111
|
+
export { _default_13 as ThemeProvider }
|
|
2112
|
+
export { _default_13 as TrThemeProvider }
|
|
2113
|
+
|
|
2114
|
+
declare const _default_14: typeof _default_35 & {
|
|
2115
|
+
install: typeof install_13;
|
|
2116
|
+
};
|
|
2117
|
+
export { _default_14 as TrWelcome }
|
|
2118
|
+
export { _default_14 as Welcome }
|
|
2119
|
+
|
|
2120
|
+
declare const _default_15: typeof _default_36 & {
|
|
2121
|
+
install: typeof install_14;
|
|
2122
|
+
};
|
|
2123
|
+
export { _default_15 as McpServerPicker }
|
|
2124
|
+
export { _default_15 as TrMcpServerPicker }
|
|
2125
|
+
|
|
2126
|
+
declare const _default_16: typeof _default_37 & {
|
|
2127
|
+
install: typeof install_15;
|
|
2128
|
+
};
|
|
2129
|
+
export { _default_16 as McpAddForm }
|
|
2130
|
+
export { _default_16 as TrMcpAddForm }
|
|
2131
|
+
|
|
2132
|
+
declare const _default_17: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2133
|
+
"update:items": (items: Attachment[]) => any;
|
|
2134
|
+
remove: (file: Attachment) => any;
|
|
2135
|
+
download: (event: MouseEvent, file: Attachment) => any;
|
|
2136
|
+
retry: (file: Attachment) => any;
|
|
2137
|
+
preview: (event: MouseEvent, file: Attachment) => any;
|
|
2138
|
+
action: (payload: {
|
|
2139
|
+
action: ActionButton;
|
|
2140
|
+
file: Attachment;
|
|
2141
|
+
}) => any;
|
|
2142
|
+
}, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
|
|
2143
|
+
"onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
|
|
2144
|
+
onRemove?: ((file: Attachment) => any) | undefined;
|
|
2145
|
+
onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2146
|
+
onRetry?: ((file: Attachment) => any) | undefined;
|
|
2147
|
+
onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2148
|
+
onAction?: ((payload: {
|
|
2149
|
+
action: ActionButton;
|
|
2150
|
+
file: Attachment;
|
|
2151
|
+
}) => any) | undefined;
|
|
2152
|
+
}>, {
|
|
2153
|
+
actions: ActionButton[];
|
|
2154
|
+
fileMatchers: FileTypeMatcher[];
|
|
2155
|
+
variant: DisplayVariant;
|
|
2156
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2046
2157
|
|
|
2047
|
-
declare const
|
|
2158
|
+
declare const _default_18: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2048
2159
|
|
|
2049
|
-
declare const
|
|
2160
|
+
declare const _default_19: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2050
2161
|
scrollContainerRef: HTMLDivElement;
|
|
2051
2162
|
}, HTMLDivElement>;
|
|
2052
2163
|
|
|
2053
|
-
declare const
|
|
2164
|
+
declare const _default_2: typeof _default_17 & {
|
|
2165
|
+
install: typeof install;
|
|
2166
|
+
};
|
|
2167
|
+
export { _default_2 as Attachments }
|
|
2168
|
+
export { _default_2 as TrAttachments }
|
|
2054
2169
|
|
|
2055
|
-
declare const
|
|
2170
|
+
declare const _default_20: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2056
2171
|
|
|
2057
|
-
declare const
|
|
2172
|
+
declare const _default_21: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2058
2173
|
|
|
2059
|
-
declare const
|
|
2174
|
+
declare const _default_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2060
2175
|
|
|
2061
|
-
declare const
|
|
2062
|
-
install: typeof install;
|
|
2063
|
-
};
|
|
2064
|
-
export { _default_2 as Container }
|
|
2065
|
-
export { _default_2 as TrContainer }
|
|
2176
|
+
declare const _default_23: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2066
2177
|
|
|
2067
|
-
declare const
|
|
2068
|
-
|
|
2178
|
+
declare const _default_24: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2179
|
+
|
|
2180
|
+
declare const _default_25: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2069
2181
|
action: (name: string) => any;
|
|
2182
|
+
operation: (name: string) => any;
|
|
2070
2183
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
2071
|
-
onOperation?: ((name: string) => any) | undefined;
|
|
2072
2184
|
onAction?: ((name: string) => any) | undefined;
|
|
2185
|
+
onOperation?: ((name: string) => any) | undefined;
|
|
2073
2186
|
}>, {
|
|
2074
2187
|
operationsLimit: number;
|
|
2075
2188
|
actionsLimit: number;
|
|
2076
2189
|
sourcesLinesLimit: number;
|
|
2077
2190
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2078
2191
|
|
|
2079
|
-
declare const
|
|
2192
|
+
declare const _default_26: <T extends HistoryItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2193
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
2194
|
+
readonly "onItem-click"?: ((item: T) => any) | undefined;
|
|
2195
|
+
readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
|
|
2196
|
+
readonly "onItem-action"?: ((action: HistoryMenuItem, item: T) => any) | undefined;
|
|
2197
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onItem-click" | "onItem-title-change" | "onItem-action"> & HistoryProps<T> & Partial<{}>> & PublicProps;
|
|
2198
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
2199
|
+
attrs: any;
|
|
2200
|
+
slots: {};
|
|
2201
|
+
emit: ((evt: "item-click", item: T) => void) & ((evt: "item-title-change", newTitle: string, item: T) => void) & ((evt: "item-action", action: HistoryMenuItem, item: T) => void);
|
|
2202
|
+
}>) => VNode & {
|
|
2203
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
declare const _default_27: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2080
2207
|
size: string | number;
|
|
2081
2208
|
svgSize: string | number;
|
|
2082
2209
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2083
2210
|
|
|
2084
|
-
declare const
|
|
2211
|
+
declare const _default_28: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2212
|
+
size: "small" | "medium" | "large";
|
|
2213
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2085
2214
|
|
|
2086
|
-
declare const
|
|
2215
|
+
declare const _default_29: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2087
2216
|
|
|
2088
|
-
declare const
|
|
2217
|
+
declare const _default_3: typeof _default_21 & {
|
|
2218
|
+
install: typeof install_2;
|
|
2219
|
+
};
|
|
2220
|
+
export { _default_3 as Container }
|
|
2221
|
+
export { _default_3 as TrContainer }
|
|
2089
2222
|
|
|
2090
|
-
declare const
|
|
2223
|
+
declare const _default_30: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2091
2224
|
|
|
2092
|
-
declare const
|
|
2225
|
+
declare const _default_31: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2093
2226
|
|
|
2094
|
-
declare const
|
|
2227
|
+
declare const _default_32: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2095
2228
|
|
|
2096
|
-
declare const
|
|
2229
|
+
declare const _default_33: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2097
2230
|
|
|
2098
|
-
declare const
|
|
2231
|
+
declare const _default_34: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2099
2232
|
|
|
2100
|
-
declare const
|
|
2101
|
-
install: typeof install_2;
|
|
2102
|
-
};
|
|
2103
|
-
export { _default_3 as Conversations }
|
|
2104
|
-
export { _default_3 as TrConversations }
|
|
2233
|
+
declare const _default_35: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2105
2234
|
|
|
2106
|
-
declare const
|
|
2235
|
+
declare const _default_36: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2236
|
+
"update:visible": (value: boolean) => any;
|
|
2237
|
+
} & {
|
|
2238
|
+
refresh: (tab: "installed" | "market") => any;
|
|
2239
|
+
"update:visible": (visible: boolean) => any;
|
|
2240
|
+
"market-category-change": (category: string) => any;
|
|
2241
|
+
"tab-change": (activeTab: "installed" | "market") => any;
|
|
2242
|
+
"plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
|
|
2243
|
+
"plugin-delete": (plugin: PluginInfo) => any;
|
|
2244
|
+
"plugin-add": (plugin: PluginInfo) => any;
|
|
2245
|
+
"plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
|
|
2246
|
+
"tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
|
|
2247
|
+
"update:activeCount": (count: number) => any;
|
|
2248
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
|
|
2249
|
+
onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
2250
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2251
|
+
"onMarket-category-change"?: ((category: string) => any) | undefined;
|
|
2252
|
+
"onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
|
|
2253
|
+
"onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
|
|
2254
|
+
"onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2255
|
+
"onPlugin-add"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2256
|
+
"onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
|
|
2257
|
+
"onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
|
|
2258
|
+
"onUpdate:activeCount"?: ((count: number) => any) | undefined;
|
|
2259
|
+
}>, {
|
|
2260
|
+
title: string;
|
|
2261
|
+
loading: boolean;
|
|
2262
|
+
installedPlugins: PluginInfo[];
|
|
2263
|
+
marketPlugins: PluginInfo[];
|
|
2264
|
+
searchPlaceholder: string;
|
|
2265
|
+
enableSearch: boolean;
|
|
2266
|
+
installedSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
2267
|
+
marketSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
2268
|
+
marketCategoryOptions: MarketCategoryOption[];
|
|
2269
|
+
marketCategoryPlaceholder: string;
|
|
2270
|
+
enableMarketCategoryFilter: boolean;
|
|
2271
|
+
defaultActiveTab: "installed" | "market";
|
|
2272
|
+
showInstalledTab: boolean;
|
|
2273
|
+
showMarketTab: boolean;
|
|
2274
|
+
popupConfig: PopupConfig;
|
|
2275
|
+
installedTabTitle: string;
|
|
2276
|
+
marketTabTitle: string;
|
|
2277
|
+
showCustomAddButton: boolean;
|
|
2278
|
+
customAddButtonText: string;
|
|
2279
|
+
allowPluginToggle: boolean;
|
|
2280
|
+
allowToolToggle: boolean;
|
|
2281
|
+
allowPluginDelete: boolean;
|
|
2282
|
+
allowPluginAdd: boolean;
|
|
2283
|
+
marketLoading: boolean;
|
|
2284
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2285
|
+
|
|
2286
|
+
declare const _default_37: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2287
|
+
cancel: () => any;
|
|
2288
|
+
confirm: (type: AddType, data: string | McpAddFormData) => any;
|
|
2289
|
+
"update:addType": (value: AddType) => any;
|
|
2290
|
+
}, string, PublicProps, Readonly<McpAddFormProps> & Readonly<{
|
|
2291
|
+
onCancel?: (() => any) | undefined;
|
|
2292
|
+
onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
|
|
2293
|
+
"onUpdate:addType"?: ((value: AddType) => any) | undefined;
|
|
2294
|
+
}>, {
|
|
2295
|
+
addType: AddType;
|
|
2296
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2107
2297
|
|
|
2108
|
-
declare const _default_4: typeof
|
|
2298
|
+
declare const _default_4: typeof _default_22 & {
|
|
2109
2299
|
install: typeof install_3;
|
|
2110
2300
|
};
|
|
2111
|
-
export { _default_4 as
|
|
2112
|
-
export { _default_4 as
|
|
2301
|
+
export { _default_4 as Conversations }
|
|
2302
|
+
export { _default_4 as TrConversations }
|
|
2113
2303
|
|
|
2114
|
-
declare const _default_5: typeof
|
|
2304
|
+
declare const _default_5: typeof _default_23 & {
|
|
2115
2305
|
install: typeof install_4;
|
|
2116
2306
|
};
|
|
2117
|
-
export { _default_5 as
|
|
2118
|
-
export { _default_5 as
|
|
2307
|
+
export { _default_5 as DragOverlay }
|
|
2308
|
+
export { _default_5 as TrDragOverlay }
|
|
2119
2309
|
|
|
2120
|
-
declare const _default_6: {
|
|
2121
|
-
install: <T>(app: App<T>) => void;
|
|
2122
|
-
name: string;
|
|
2123
|
-
};
|
|
2124
|
-
export { _default_6 as History }
|
|
2125
|
-
export { _default_6 as TrHistory }
|
|
2126
|
-
|
|
2127
|
-
declare const _default_7: typeof _default_21 & {
|
|
2310
|
+
declare const _default_6: typeof _default_24 & {
|
|
2128
2311
|
install: typeof install_5;
|
|
2129
2312
|
};
|
|
2130
|
-
export {
|
|
2131
|
-
export {
|
|
2313
|
+
export { _default_6 as DropdownMenu }
|
|
2314
|
+
export { _default_6 as TrDropdownMenu }
|
|
2132
2315
|
|
|
2133
|
-
declare const
|
|
2316
|
+
declare const _default_7: typeof _default_25 & {
|
|
2134
2317
|
install: typeof install_6;
|
|
2135
2318
|
};
|
|
2136
|
-
export {
|
|
2137
|
-
export {
|
|
2319
|
+
export { _default_7 as Feedback }
|
|
2320
|
+
export { _default_7 as TrFeedback }
|
|
2138
2321
|
|
|
2139
|
-
declare const
|
|
2322
|
+
declare const _default_8: typeof _default_26 & {
|
|
2140
2323
|
install: typeof install_7;
|
|
2141
2324
|
};
|
|
2142
|
-
export {
|
|
2143
|
-
export {
|
|
2325
|
+
export { _default_8 as History }
|
|
2326
|
+
export { _default_8 as TrHistory }
|
|
2327
|
+
|
|
2328
|
+
declare const _default_9: typeof _default_27 & {
|
|
2329
|
+
install: typeof install_8;
|
|
2330
|
+
};
|
|
2331
|
+
export { _default_9 as IconButton }
|
|
2332
|
+
export { _default_9 as TrIconButton }
|
|
2333
|
+
|
|
2334
|
+
export declare type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
2335
|
+
|
|
2336
|
+
declare interface DragAwareElement extends HTMLElement {
|
|
2337
|
+
__vDropzoneHandlers__?: Handlers;
|
|
2338
|
+
__vDropzoneOptions__?: DragAwareOptions;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
* 拖拽上传组件的属性
|
|
2345
|
+
*/
|
|
2346
|
+
export declare interface DragOverlayProps {
|
|
2347
|
+
/**
|
|
2348
|
+
* 覆盖层标题
|
|
2349
|
+
* @default ''
|
|
2350
|
+
*/
|
|
2351
|
+
overlayTitle?: string;
|
|
2352
|
+
/**
|
|
2353
|
+
* 覆盖层描述文本数组
|
|
2354
|
+
* @default []
|
|
2355
|
+
*/
|
|
2356
|
+
overlayDescription?: string[];
|
|
2357
|
+
/**
|
|
2358
|
+
* 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
|
|
2359
|
+
* @default false
|
|
2360
|
+
*/
|
|
2361
|
+
isDragging?: boolean;
|
|
2362
|
+
/**
|
|
2363
|
+
* @description 拖拽目标元素,用于定位覆盖层
|
|
2364
|
+
* @default null
|
|
2365
|
+
*/
|
|
2366
|
+
dragTarget?: HTMLElement | null;
|
|
2367
|
+
/**
|
|
2368
|
+
* @description 是否全屏模式,控制覆盖层的边框显示
|
|
2369
|
+
* @default false
|
|
2370
|
+
*/
|
|
2371
|
+
fullscreen?: boolean;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
export declare interface DragOverlaySlots {
|
|
2375
|
+
/**
|
|
2376
|
+
* 覆盖层插槽,用于自定义拖拽时的覆盖层内容
|
|
2377
|
+
*/
|
|
2378
|
+
overlay?: (props: {
|
|
2379
|
+
isDragging: boolean;
|
|
2380
|
+
}) => unknown;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* 拖拽区域错误码
|
|
2385
|
+
*/
|
|
2386
|
+
declare enum DragZoneErrorCode {
|
|
2387
|
+
/**
|
|
2388
|
+
* 文件类型不允许
|
|
2389
|
+
*/
|
|
2390
|
+
FileTypeNotAllowed = "file-type-not-allowed",
|
|
2391
|
+
/**
|
|
2392
|
+
* 文件大小超出限制
|
|
2393
|
+
*/
|
|
2394
|
+
FileSizeExceeded = "file-size-exceeded",
|
|
2395
|
+
/**
|
|
2396
|
+
* 文件数量超出限制
|
|
2397
|
+
*/
|
|
2398
|
+
FileCountExceeded = "file-count-exceeded"
|
|
2399
|
+
}
|
|
2144
2400
|
|
|
2145
2401
|
export declare interface DropdownMenuEmits {
|
|
2146
2402
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
2403
|
+
/**
|
|
2404
|
+
* 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
|
|
2405
|
+
*/
|
|
2406
|
+
(e: 'click-outside', event: MouseEvent): void;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
export declare interface DropdownMenuEventProps {
|
|
2410
|
+
onItemClick?: (item: DropdownMenuItem) => void;
|
|
2411
|
+
onClickOutside?: (event: MouseEvent) => void;
|
|
2147
2412
|
}
|
|
2148
2413
|
|
|
2149
2414
|
export declare interface DropdownMenuEvents {
|
|
2415
|
+
/**
|
|
2416
|
+
* @deprecated
|
|
2417
|
+
*/
|
|
2150
2418
|
itemClick?: (item: DropdownMenuItem) => void;
|
|
2419
|
+
/**
|
|
2420
|
+
* @deprecated
|
|
2421
|
+
*/
|
|
2422
|
+
clickOutside?: (event: MouseEvent) => void;
|
|
2151
2423
|
}
|
|
2152
2424
|
|
|
2153
2425
|
export declare interface DropdownMenuItem {
|
|
@@ -2156,13 +2428,69 @@ export declare interface DropdownMenuItem {
|
|
|
2156
2428
|
}
|
|
2157
2429
|
|
|
2158
2430
|
export declare interface DropdownMenuProps {
|
|
2431
|
+
appendTo?: string | HTMLElement;
|
|
2159
2432
|
items: DropdownMenuItem[];
|
|
2160
|
-
|
|
2161
|
-
|
|
2433
|
+
/**
|
|
2434
|
+
* 当 trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
|
|
2435
|
+
* 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
|
|
2436
|
+
*/
|
|
2437
|
+
show?: boolean;
|
|
2438
|
+
/**
|
|
2439
|
+
* 触发方式。默认值为 'click'
|
|
2440
|
+
*/
|
|
2441
|
+
trigger?: 'click' | 'hover' | 'manual';
|
|
2162
2442
|
}
|
|
2163
2443
|
|
|
2164
2444
|
export declare interface DropdownMenuSlots {
|
|
2165
|
-
|
|
2445
|
+
trigger?: () => VNode | VNode[];
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* 拖拽上传组件的属性
|
|
2450
|
+
*/
|
|
2451
|
+
export declare interface DropzoneBinding {
|
|
2452
|
+
/**
|
|
2453
|
+
* 允许上传的文件类型, 与原生 input 的 accept 属性一致
|
|
2454
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
2455
|
+
* @example '.jpg,.png,image/*'
|
|
2456
|
+
*/
|
|
2457
|
+
accept?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* 是否允许多选
|
|
2460
|
+
* @default true
|
|
2461
|
+
*/
|
|
2462
|
+
multiple?: boolean;
|
|
2463
|
+
/**
|
|
2464
|
+
* 是否禁用拖拽
|
|
2465
|
+
* @default false
|
|
2466
|
+
*/
|
|
2467
|
+
disabled?: boolean;
|
|
2468
|
+
/**
|
|
2469
|
+
* 单个文件的最大大小(单位:字节)
|
|
2470
|
+
* @default 10 * 1024 * 1024 (10MB)
|
|
2471
|
+
*/
|
|
2472
|
+
maxSize?: number;
|
|
2473
|
+
/**
|
|
2474
|
+
* 允许上传的最大文件数量
|
|
2475
|
+
* @default 3
|
|
2476
|
+
*/
|
|
2477
|
+
maxFiles?: number;
|
|
2478
|
+
/**
|
|
2479
|
+
* 拖拽完成后的回调
|
|
2480
|
+
* @param files 上传的文件
|
|
2481
|
+
*/
|
|
2482
|
+
onDrop: (files: File[]) => void;
|
|
2483
|
+
/**
|
|
2484
|
+
* 拖拽失败后的回调
|
|
2485
|
+
* @param rejection 拒绝信息
|
|
2486
|
+
*/
|
|
2487
|
+
onError: (rejection: FileRejection) => void;
|
|
2488
|
+
/**
|
|
2489
|
+
* 拖拽开始时的回调
|
|
2490
|
+
* @param dragging 是否正在拖拽
|
|
2491
|
+
* @param element 拖拽目标元素
|
|
2492
|
+
*/
|
|
2493
|
+
onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
|
|
2166
2494
|
}
|
|
2167
2495
|
|
|
2168
2496
|
export declare interface FeedbackEvents {
|
|
@@ -2191,34 +2519,82 @@ export declare interface FeedbackProps {
|
|
|
2191
2519
|
sourcesLinesLimit?: number;
|
|
2192
2520
|
}
|
|
2193
2521
|
|
|
2194
|
-
export declare
|
|
2522
|
+
export declare interface FileCardEmits {
|
|
2523
|
+
(e: 'remove', file: Attachment): void;
|
|
2524
|
+
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
2525
|
+
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
2526
|
+
(e: 'retry', file: Attachment): void;
|
|
2527
|
+
(e: 'action', payload: {
|
|
2528
|
+
action: ActionButton;
|
|
2529
|
+
file: Attachment;
|
|
2530
|
+
}): void;
|
|
2531
|
+
}
|
|
2195
2532
|
|
|
2196
|
-
export declare interface
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2533
|
+
export declare interface FileCardProps extends BaseCardProps {
|
|
2534
|
+
file: Attachment;
|
|
2535
|
+
variant: 'picture' | 'card';
|
|
2536
|
+
showStatus?: boolean;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* 文件拒绝信息
|
|
2541
|
+
*/
|
|
2542
|
+
export declare interface FileRejection extends RejectionReason {
|
|
2543
|
+
files: File[];
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
export declare type FileStatus = 'uploading' | 'success' | 'error';
|
|
2547
|
+
|
|
2548
|
+
export declare type FileType = BaseFileType | string;
|
|
2549
|
+
|
|
2550
|
+
export declare interface FileTypeMatcher {
|
|
2551
|
+
type: string;
|
|
2552
|
+
matcher: (file: File | string) => boolean;
|
|
2553
|
+
icon?: Component;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
declare interface fileUploadConfig {
|
|
2557
|
+
accept?: string;
|
|
2558
|
+
multiple?: boolean;
|
|
2559
|
+
reset?: boolean;
|
|
2201
2560
|
}
|
|
2202
2561
|
|
|
2203
|
-
export declare interface
|
|
2562
|
+
export declare interface Handlers {
|
|
2563
|
+
handleDragEnter: (e: DragEvent) => void;
|
|
2564
|
+
handleDragOver: (e: DragEvent) => void;
|
|
2565
|
+
handleDragLeave: (e: DragEvent) => void;
|
|
2566
|
+
handleDrop: (e: DragEvent) => void;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
|
|
2570
|
+
|
|
2571
|
+
export declare type HistoryData<T extends HistoryItem> = T[] | HistoryGroup<T>[];
|
|
2572
|
+
|
|
2573
|
+
export declare interface HistoryGroup<T extends HistoryItem> {
|
|
2204
2574
|
group: string | symbol;
|
|
2205
|
-
items:
|
|
2575
|
+
items: T[];
|
|
2206
2576
|
}
|
|
2207
2577
|
|
|
2208
|
-
export declare interface HistoryItem
|
|
2209
|
-
id
|
|
2578
|
+
export declare interface HistoryItem {
|
|
2579
|
+
id?: string;
|
|
2210
2580
|
title: string;
|
|
2211
|
-
|
|
2212
|
-
data?: T;
|
|
2581
|
+
[x: string]: any;
|
|
2213
2582
|
}
|
|
2214
2583
|
|
|
2215
|
-
export declare interface
|
|
2584
|
+
export declare interface HistoryMenuItem {
|
|
2585
|
+
id: string;
|
|
2216
2586
|
text: string;
|
|
2217
|
-
|
|
2218
|
-
style?: CSSProperties;
|
|
2587
|
+
icon?: Component | VNode;
|
|
2219
2588
|
}
|
|
2220
2589
|
|
|
2221
|
-
export declare type HistoryProps =
|
|
2590
|
+
export declare type HistoryProps<T extends HistoryItem = HistoryItem> = {
|
|
2591
|
+
data: HistoryData<T>;
|
|
2592
|
+
selected?: string;
|
|
2593
|
+
showRenameControls?: boolean;
|
|
2594
|
+
renameControlOnClickOutside?: 'confirm' | 'cancel' | 'none';
|
|
2595
|
+
menuItems?: HistoryMenuItem[];
|
|
2596
|
+
menuListGap?: number;
|
|
2597
|
+
};
|
|
2222
2598
|
|
|
2223
2599
|
export declare interface IconButtonProps {
|
|
2224
2600
|
icon: VNode | Component;
|
|
@@ -2241,6 +2617,14 @@ declare const install_10: <T>(app: App<T>) => void;
|
|
|
2241
2617
|
|
|
2242
2618
|
declare const install_11: <T>(app: App<T>) => void;
|
|
2243
2619
|
|
|
2620
|
+
declare const install_12: <T>(app: App<T>) => void;
|
|
2621
|
+
|
|
2622
|
+
declare const install_13: <T>(app: App<T>) => void;
|
|
2623
|
+
|
|
2624
|
+
declare const install_14: <T>(app: App<T>) => void;
|
|
2625
|
+
|
|
2626
|
+
declare const install_15: <T>(app: App<T>) => void;
|
|
2627
|
+
|
|
2244
2628
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2245
2629
|
|
|
2246
2630
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2263,20 +2647,150 @@ declare const installPrompt: <T>(app: App<T>) => void;
|
|
|
2263
2647
|
|
|
2264
2648
|
declare const installPrompts: <T>(app: App<T>) => void;
|
|
2265
2649
|
|
|
2650
|
+
export declare interface ISuggestionItem {
|
|
2651
|
+
content: string;
|
|
2652
|
+
highlights?: string[] | HighlightFunction;
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2266
2655
|
export declare interface KeyboardHandler {
|
|
2267
2656
|
handleKeyPress: (e: KeyboardEvent) => void;
|
|
2268
2657
|
triggerSubmit: () => void;
|
|
2269
2658
|
}
|
|
2270
2659
|
|
|
2271
|
-
export declare
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2660
|
+
export declare interface MarketCategoryOption {
|
|
2661
|
+
value: string;
|
|
2662
|
+
label: string;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
export declare interface McpAddFormData {
|
|
2666
|
+
name: string;
|
|
2667
|
+
description: string;
|
|
2668
|
+
type: 'sse' | 'streamableHttp';
|
|
2669
|
+
url: string;
|
|
2670
|
+
headers: string;
|
|
2671
|
+
thumbnail?: File | null;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
export declare interface McpAddFormEmits {
|
|
2675
|
+
(e: 'update:addType', value: AddType): void;
|
|
2676
|
+
(e: 'confirm', type: AddType, data: McpAddFormData | string): void;
|
|
2677
|
+
(e: 'cancel'): void;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
export declare interface McpAddFormProps {
|
|
2681
|
+
addType?: AddType;
|
|
2682
|
+
formData?: McpAddFormData;
|
|
2683
|
+
codeData?: string;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
export declare interface McpServerPickerEmits {
|
|
2687
|
+
(e: 'market-category-change', category: string): void;
|
|
2688
|
+
(e: 'tab-change', activeTab: 'installed' | 'market'): void;
|
|
2689
|
+
(e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
|
|
2690
|
+
(e: 'plugin-delete', plugin: PluginInfo): void;
|
|
2691
|
+
(e: 'plugin-add', plugin: PluginInfo): void;
|
|
2692
|
+
(e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
|
|
2693
|
+
(e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
|
|
2694
|
+
(e: 'refresh', tab: 'installed' | 'market'): void;
|
|
2695
|
+
(e: 'update:activeCount', count: number): void;
|
|
2696
|
+
(e: 'update:visible', visible: boolean): void;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
export declare interface McpServerPickerProps {
|
|
2700
|
+
installedPlugins?: PluginInfo[];
|
|
2701
|
+
marketPlugins?: PluginInfo[];
|
|
2702
|
+
searchPlaceholder?: string;
|
|
2703
|
+
enableSearch?: boolean;
|
|
2704
|
+
installedSearchFn?: (query: string, item: PluginInfo) => boolean;
|
|
2705
|
+
marketSearchFn?: (query: string, item: PluginInfo) => boolean;
|
|
2706
|
+
marketCategoryOptions?: MarketCategoryOption[];
|
|
2707
|
+
marketCategoryPlaceholder?: string;
|
|
2708
|
+
enableMarketCategoryFilter?: boolean;
|
|
2709
|
+
defaultActiveTab?: 'installed' | 'market';
|
|
2710
|
+
showInstalledTab?: boolean;
|
|
2711
|
+
showMarketTab?: boolean;
|
|
2712
|
+
visible?: boolean;
|
|
2713
|
+
popupConfig?: PopupConfig;
|
|
2714
|
+
activeCount?: number;
|
|
2715
|
+
installedTabTitle?: string;
|
|
2716
|
+
marketTabTitle?: string;
|
|
2717
|
+
title?: string;
|
|
2718
|
+
showCustomAddButton?: boolean;
|
|
2719
|
+
customAddButtonText?: string;
|
|
2720
|
+
allowPluginToggle?: boolean;
|
|
2721
|
+
allowToolToggle?: boolean;
|
|
2722
|
+
allowPluginDelete?: boolean;
|
|
2723
|
+
allowPluginAdd?: boolean;
|
|
2724
|
+
loading?: boolean;
|
|
2725
|
+
marketLoading?: boolean;
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
2729
|
+
|
|
2730
|
+
export declare interface PluginCardEmits {
|
|
2731
|
+
(e: 'toggle-plugin', enabled: boolean): void;
|
|
2732
|
+
(e: 'toggle-tool', toolId: string, enabled: boolean): void;
|
|
2733
|
+
(e: 'add-plugin', plugin: PluginInfo): void;
|
|
2734
|
+
(e: 'delete-plugin'): void;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
export declare type PluginCardMode = 'installed' | 'market';
|
|
2738
|
+
|
|
2739
|
+
export declare interface PluginCardProps {
|
|
2740
|
+
plugin: PluginInfo;
|
|
2741
|
+
mode?: PluginCardMode;
|
|
2742
|
+
showToolCount?: boolean;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
export declare type PluginCreationData = PluginFormData | string;
|
|
2746
|
+
|
|
2747
|
+
export declare interface PluginFormData {
|
|
2748
|
+
name: string;
|
|
2749
|
+
description: string;
|
|
2750
|
+
type: 'sse' | 'streamableHttp';
|
|
2751
|
+
url: string;
|
|
2752
|
+
headers: string;
|
|
2753
|
+
thumbnail?: File | null;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
export declare interface PluginInfo {
|
|
2757
|
+
id: string;
|
|
2758
|
+
name: string;
|
|
2759
|
+
icon: string;
|
|
2760
|
+
description: string;
|
|
2761
|
+
enabled: boolean;
|
|
2762
|
+
expanded?: boolean;
|
|
2763
|
+
tools: PluginTool[];
|
|
2764
|
+
addState?: PluginAddState;
|
|
2765
|
+
category?: string;
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
export declare interface PluginModalEmits {
|
|
2769
|
+
(e: 'update:visible', value: boolean): void;
|
|
2770
|
+
(e: 'confirm', type: 'form' | 'code', data: PluginCreationData): void;
|
|
2771
|
+
}
|
|
2278
2772
|
|
|
2279
|
-
declare
|
|
2773
|
+
export declare interface PluginTool {
|
|
2774
|
+
id: string;
|
|
2775
|
+
name: string;
|
|
2776
|
+
description: string;
|
|
2777
|
+
enabled: boolean;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
export declare interface PopupConfig {
|
|
2781
|
+
type: 'fixed' | 'drawer';
|
|
2782
|
+
position?: {
|
|
2783
|
+
top?: string | number;
|
|
2784
|
+
left?: string | number;
|
|
2785
|
+
right?: string | number;
|
|
2786
|
+
bottom?: string | number;
|
|
2787
|
+
};
|
|
2788
|
+
drawer?: {
|
|
2789
|
+
direction: 'left' | 'right';
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
declare const Prompt: typeof _default_28 & {
|
|
2280
2794
|
install: typeof installPrompt;
|
|
2281
2795
|
};
|
|
2282
2796
|
export { Prompt }
|
|
@@ -2307,9 +2821,13 @@ export declare interface PromptProps {
|
|
|
2307
2821
|
* 提示徽章,显示在提示项的右上角
|
|
2308
2822
|
*/
|
|
2309
2823
|
badge?: string | VNode;
|
|
2824
|
+
/**
|
|
2825
|
+
* 提示项大小。默认 medium
|
|
2826
|
+
*/
|
|
2827
|
+
size?: 'small' | 'medium' | 'large';
|
|
2310
2828
|
}
|
|
2311
2829
|
|
|
2312
|
-
declare const Prompts: typeof
|
|
2830
|
+
declare const Prompts: typeof _default_29 & {
|
|
2313
2831
|
install: typeof installPrompts;
|
|
2314
2832
|
};
|
|
2315
2833
|
export { Prompts }
|
|
@@ -2346,55 +2864,23 @@ export declare interface PromptsSlots {
|
|
|
2346
2864
|
footer?: () => unknown;
|
|
2347
2865
|
}
|
|
2348
2866
|
|
|
2349
|
-
declare interface
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2867
|
+
export declare interface RawFileAttachment extends BaseAttachment {
|
|
2868
|
+
rawFile: File;
|
|
2869
|
+
url?: string;
|
|
2870
|
+
size?: number;
|
|
2353
2871
|
}
|
|
2354
2872
|
|
|
2355
2873
|
/**
|
|
2356
|
-
*
|
|
2874
|
+
* 文件拒绝原因
|
|
2357
2875
|
*/
|
|
2358
|
-
declare interface
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
* 包含多个分类,每个分类下有多个问题
|
|
2362
|
-
*/
|
|
2363
|
-
categories: Category_2[];
|
|
2364
|
-
/**
|
|
2365
|
-
* 浮动显示的问题列表
|
|
2366
|
-
* 显示在组件底部的常见问题胶囊
|
|
2367
|
-
*/
|
|
2368
|
-
commonQuestions: Question_2[];
|
|
2369
|
-
/**
|
|
2370
|
-
* 是否初始展开常见问题
|
|
2371
|
-
* @default false
|
|
2372
|
-
*/
|
|
2373
|
-
initialExpanded?: boolean;
|
|
2374
|
-
/**
|
|
2375
|
-
* 弹窗宽度
|
|
2376
|
-
* @default '640px'
|
|
2377
|
-
*/
|
|
2378
|
-
modalWidth?: string;
|
|
2379
|
-
/**
|
|
2380
|
-
* 主题类型
|
|
2381
|
-
* @default 'light'
|
|
2382
|
-
*/
|
|
2383
|
-
theme?: ThemeType_3;
|
|
2384
|
-
/**
|
|
2385
|
-
* 是否点击外部关闭弹窗
|
|
2386
|
-
* @default true
|
|
2387
|
-
*/
|
|
2388
|
-
closeOnClickOutside?: boolean;
|
|
2389
|
-
/**
|
|
2390
|
-
* 是否显示加载中状态
|
|
2391
|
-
* @default false
|
|
2392
|
-
*/
|
|
2393
|
-
loading?: boolean;
|
|
2876
|
+
export declare interface RejectionReason {
|
|
2877
|
+
code: DragZoneErrorCode;
|
|
2878
|
+
message: string;
|
|
2394
2879
|
}
|
|
2395
2880
|
|
|
2396
2881
|
export declare type SenderEmits = {
|
|
2397
2882
|
(e: 'update:modelValue', value: string): void;
|
|
2883
|
+
(e: 'update:templateData', value: UserItem[]): void;
|
|
2398
2884
|
(e: 'submit', value: string): void;
|
|
2399
2885
|
(e: 'clear'): void;
|
|
2400
2886
|
(e: 'speech-start'): void;
|
|
@@ -2407,6 +2893,7 @@ export declare type SenderEmits = {
|
|
|
2407
2893
|
(e: 'escape-press'): void;
|
|
2408
2894
|
(e: 'cancel'): void;
|
|
2409
2895
|
(e: 'reset-template'): void;
|
|
2896
|
+
(e: 'files-selected', files: File[]): void;
|
|
2410
2897
|
};
|
|
2411
2898
|
|
|
2412
2899
|
export declare interface SenderProps {
|
|
@@ -2421,33 +2908,19 @@ export declare interface SenderProps {
|
|
|
2421
2908
|
modelValue?: string;
|
|
2422
2909
|
mode?: InputMode;
|
|
2423
2910
|
maxLength?: number;
|
|
2911
|
+
buttonGroup?: ButtonGroupConfig;
|
|
2424
2912
|
submitType?: SubmitTrigger;
|
|
2425
2913
|
speech?: boolean | SpeechConfig;
|
|
2426
2914
|
placeholder?: string;
|
|
2427
2915
|
showWordLimit?: boolean;
|
|
2428
|
-
suggestions?:
|
|
2916
|
+
suggestions?: ISuggestionItem[];
|
|
2429
2917
|
suggestionPopupWidth?: string | number;
|
|
2918
|
+
activeSuggestionKeys?: string[];
|
|
2430
2919
|
theme?: ThemeType;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
templateInitialValues?: Record<string, string>;
|
|
2920
|
+
templateData?: UserItem[];
|
|
2921
|
+
stopText?: string;
|
|
2434
2922
|
}
|
|
2435
2923
|
|
|
2436
|
-
/**
|
|
2437
|
-
* 设置模板的参数接口
|
|
2438
|
-
*/
|
|
2439
|
-
export declare interface SetTemplateParams {
|
|
2440
|
-
/** 模板字符串,格式为普通文本与 [占位符] 的组合 */
|
|
2441
|
-
template: string;
|
|
2442
|
-
/** 字段初始值,键为占位符文本,值为初始内容 */
|
|
2443
|
-
initialValues?: Record<string, string>;
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
export declare type SingleTabHistoryProps = {
|
|
2447
|
-
tabTitle: string;
|
|
2448
|
-
data: HistoryData;
|
|
2449
|
-
} & BaseHistoryProps;
|
|
2450
|
-
|
|
2451
2924
|
export declare interface SpeechConfig {
|
|
2452
2925
|
lang?: string;
|
|
2453
2926
|
continuous?: boolean;
|
|
@@ -2477,81 +2950,23 @@ export declare interface SpeechState {
|
|
|
2477
2950
|
|
|
2478
2951
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
2479
2952
|
|
|
2480
|
-
declare interface SuggestionBaseItem {
|
|
2953
|
+
export declare interface SuggestionBaseItem {
|
|
2481
2954
|
id: string;
|
|
2482
2955
|
text: string;
|
|
2483
2956
|
}
|
|
2484
2957
|
|
|
2485
|
-
declare type SuggestionData<T = Record<string, unknown>> = (
|
|
2958
|
+
export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
|
|
2486
2959
|
|
|
2487
|
-
|
|
2488
|
-
* 组件事件
|
|
2489
|
-
*/
|
|
2490
|
-
export declare interface SuggestionEmits {
|
|
2491
|
-
/** 双向绑定打开状态 (v-model) */
|
|
2492
|
-
(e: 'update:open', value: boolean): void;
|
|
2493
|
-
/** 选中指令项 */
|
|
2494
|
-
(e: 'select', value: string, context?: TriggerContext): void;
|
|
2495
|
-
/** 关闭面板 */
|
|
2496
|
-
(e: 'close'): void;
|
|
2497
|
-
/** 触发回调 */
|
|
2498
|
-
(e: 'trigger', handler: TriggerHandler): void;
|
|
2499
|
-
/** 选择分类 */
|
|
2500
|
-
(e: 'category-select', category: Category): void;
|
|
2501
|
-
/** 点击胶囊指令 */
|
|
2502
|
-
(e: 'suggestion-select', item: SuggestionItem): void;
|
|
2503
|
-
/** 展开/收起状态变化 */
|
|
2504
|
-
(e: 'update:expanded', expanded: boolean): void;
|
|
2505
|
-
/** 填充模板到输入框 */
|
|
2506
|
-
(e: 'fill-template', template: string): void;
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
2960
|
+
export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
2510
2961
|
group: string;
|
|
2511
2962
|
label: string;
|
|
2512
2963
|
icon?: VNode | Component;
|
|
2513
|
-
items:
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
/**
|
|
2517
|
-
* 指令项定义
|
|
2518
|
-
*/
|
|
2519
|
-
export declare interface SuggestionItem {
|
|
2520
|
-
/** 唯一标识 */
|
|
2521
|
-
id: string;
|
|
2522
|
-
/** 显示文本 */
|
|
2523
|
-
text: string;
|
|
2524
|
-
/** 指令值 */
|
|
2525
|
-
value: string;
|
|
2526
|
-
/** 图标 */
|
|
2527
|
-
icon?: VNode;
|
|
2528
|
-
/** 关键词,用于搜索和过滤 */
|
|
2529
|
-
keywords?: string[];
|
|
2530
|
-
/** 描述文本 */
|
|
2531
|
-
description?: string;
|
|
2532
|
-
/** 指令模板,用于在输入框中显示可编辑的模板 */
|
|
2533
|
-
template?: string;
|
|
2964
|
+
items: SuggestionItem<T>[];
|
|
2534
2965
|
}
|
|
2535
2966
|
|
|
2536
|
-
declare type
|
|
2537
|
-
|
|
2538
|
-
export declare type SuggestionPillAction = {
|
|
2539
|
-
type: 'popover';
|
|
2540
|
-
props: SuggestionPopoverProps;
|
|
2541
|
-
slots?: Omit<SuggestionPopoverSlots, 'default'>;
|
|
2542
|
-
events?: SuggestionPopoverEvents;
|
|
2543
|
-
} | {
|
|
2544
|
-
type: 'menu';
|
|
2545
|
-
props: DropdownMenuProps;
|
|
2546
|
-
events?: DropdownMenuEvents;
|
|
2547
|
-
};
|
|
2548
|
-
|
|
2549
|
-
export declare type SuggestionPillBaseItem<T> = {
|
|
2550
|
-
id: string;
|
|
2551
|
-
action?: SuggestionPillAction;
|
|
2552
|
-
} & T;
|
|
2967
|
+
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2553
2968
|
|
|
2554
|
-
declare const SuggestionPillButton: typeof
|
|
2969
|
+
declare const SuggestionPillButton: typeof _default_31 & {
|
|
2555
2970
|
install: typeof installPillButton;
|
|
2556
2971
|
};
|
|
2557
2972
|
export { SuggestionPillButton }
|
|
@@ -2566,21 +2981,19 @@ export declare interface SuggestionPillButtonSlots {
|
|
|
2566
2981
|
icon?: () => unknown;
|
|
2567
2982
|
}
|
|
2568
2983
|
|
|
2569
|
-
export declare type SuggestionPillItem
|
|
2984
|
+
export declare type SuggestionPillItem = {
|
|
2570
2985
|
text: string;
|
|
2571
2986
|
icon?: VNode | Component;
|
|
2572
2987
|
} | {
|
|
2573
2988
|
text?: string;
|
|
2574
2989
|
icon: VNode | Component;
|
|
2575
|
-
}
|
|
2990
|
+
};
|
|
2576
2991
|
|
|
2577
2992
|
export declare interface SuggestionPillsEmits {
|
|
2578
|
-
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2579
2993
|
(e: 'click-outside', event: MouseEvent): void;
|
|
2580
2994
|
}
|
|
2581
2995
|
|
|
2582
2996
|
export declare interface SuggestionPillsProps {
|
|
2583
|
-
items?: SuggestionPillItem[];
|
|
2584
2997
|
/**
|
|
2585
2998
|
* model:showAll
|
|
2586
2999
|
*/
|
|
@@ -2592,22 +3005,64 @@ export declare interface SuggestionPillsProps {
|
|
|
2592
3005
|
* @default 'hover'
|
|
2593
3006
|
*/
|
|
2594
3007
|
showAllButtonOn?: 'hover' | 'always';
|
|
3008
|
+
/**
|
|
3009
|
+
* 控制多余按钮如何展示
|
|
3010
|
+
* - expand: 点击更多按钮展开所有项
|
|
3011
|
+
* - scroll: 横向滚动显示多余项
|
|
3012
|
+
* @default 'expand'
|
|
3013
|
+
*/
|
|
3014
|
+
overflowMode?: 'expand' | 'scroll';
|
|
3015
|
+
/**
|
|
3016
|
+
* 鼠标悬停时是否自动滚动到可见区域
|
|
3017
|
+
*/
|
|
3018
|
+
autoScrollOn?: 'mouseenter' | 'click';
|
|
2595
3019
|
}
|
|
2596
3020
|
|
|
2597
|
-
/**
|
|
2598
|
-
* @deprecated
|
|
2599
|
-
*/
|
|
2600
3021
|
export declare interface SuggestionPillsSlots {
|
|
2601
|
-
default?: () => VNode
|
|
3022
|
+
default?: () => VNode[];
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
export declare interface SuggestionPopoverEmits {
|
|
3026
|
+
(e: 'item-click', item: SuggestionItem): void;
|
|
3027
|
+
(e: 'group-click', group: SuggestionGroup): void;
|
|
3028
|
+
(e: 'open'): void;
|
|
3029
|
+
(e: 'close'): void;
|
|
3030
|
+
(e: 'click-outside', event: MouseEvent): void;
|
|
2602
3031
|
}
|
|
2603
3032
|
|
|
2604
|
-
declare interface
|
|
2605
|
-
|
|
3033
|
+
export declare interface SuggestionPopoverEventProps {
|
|
3034
|
+
onItemClick?: (item: SuggestionItem) => void;
|
|
3035
|
+
onGroupClick?: (group: SuggestionGroup) => void;
|
|
3036
|
+
onOpen?: () => void;
|
|
3037
|
+
onClose?: () => void;
|
|
3038
|
+
onClickOutside?: (event: MouseEvent) => void;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
export declare interface SuggestionPopoverEvents {
|
|
3042
|
+
/**
|
|
3043
|
+
* @deprecated use onItemClick in props instead
|
|
3044
|
+
*/
|
|
3045
|
+
itemClick?: (item: SuggestionItem) => void;
|
|
3046
|
+
/**
|
|
3047
|
+
* @deprecated use onGroupClick in props instead
|
|
3048
|
+
*/
|
|
2606
3049
|
groupClick?: (group: SuggestionGroup) => void;
|
|
3050
|
+
/**
|
|
3051
|
+
* @deprecated use onOpen in props instead
|
|
3052
|
+
*/
|
|
3053
|
+
open?: () => void;
|
|
3054
|
+
/**
|
|
3055
|
+
* @deprecated use onClose in props instead
|
|
3056
|
+
*/
|
|
2607
3057
|
close?: () => void;
|
|
3058
|
+
/**
|
|
3059
|
+
* @deprecated use onClickOutside in props instead
|
|
3060
|
+
*/
|
|
3061
|
+
clickOutside?: (event: MouseEvent) => void;
|
|
2608
3062
|
}
|
|
2609
3063
|
|
|
2610
|
-
declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
3064
|
+
export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
3065
|
+
appendTo?: string | HTMLElement;
|
|
2611
3066
|
data: SuggestionData<T>;
|
|
2612
3067
|
title?: string;
|
|
2613
3068
|
icon?: VNode | Component;
|
|
@@ -2625,125 +3080,107 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
|
2625
3080
|
selectedGroup?: string;
|
|
2626
3081
|
groupShowMoreTrigger?: 'click' | 'hover';
|
|
2627
3082
|
loading?: boolean;
|
|
2628
|
-
|
|
2629
|
-
popoverHeight?: string | number;
|
|
2630
|
-
topOffset?: string | number;
|
|
3083
|
+
topOffset?: number;
|
|
2631
3084
|
}
|
|
2632
3085
|
|
|
2633
|
-
declare interface SuggestionPopoverSlots {
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
3086
|
+
export declare interface SuggestionPopoverSlots {
|
|
3087
|
+
trigger?: () => VNode | VNode[];
|
|
3088
|
+
item?: ({ item }: {
|
|
3089
|
+
item: SuggestionItem;
|
|
3090
|
+
}) => VNode | VNode[];
|
|
3091
|
+
loading?: () => VNode | VNode[];
|
|
3092
|
+
empty?: () => VNode | VNode[];
|
|
3093
|
+
header?: () => VNode | VNode[];
|
|
3094
|
+
body?: () => VNode | VNode[];
|
|
2637
3095
|
}
|
|
2638
3096
|
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
export declare interface SuggestionProps {
|
|
2643
|
-
/** 触发快捷键列表 */
|
|
2644
|
-
triggerKeys?: string[];
|
|
2645
|
-
/** 指令项列表 */
|
|
2646
|
-
items: SuggestionItem[];
|
|
2647
|
-
/** 分类列表 */
|
|
2648
|
-
categories?: Category[];
|
|
2649
|
-
/** 是否显示面板 (支持v-model) */
|
|
2650
|
-
open?: boolean;
|
|
2651
|
-
/** 自定义类名 */
|
|
2652
|
-
className?: string;
|
|
2653
|
-
/** 主题,light或dark */
|
|
2654
|
-
theme?: 'light' | 'dark';
|
|
2655
|
-
/** 是否显示加载状态 */
|
|
2656
|
-
loading?: boolean;
|
|
2657
|
-
/** 是否点击外部关闭面板 */
|
|
2658
|
-
closeOnOutsideClick?: boolean;
|
|
2659
|
-
/** 面板标题 */
|
|
2660
|
-
title?: string;
|
|
2661
|
-
/** 最大显示条目数 */
|
|
2662
|
-
maxVisibleItems?: number;
|
|
2663
|
-
/** 默认是否展开完整指令列表 */
|
|
2664
|
-
defaultExpanded?: boolean;
|
|
3097
|
+
export declare interface SuggestionTextPart {
|
|
3098
|
+
text: string;
|
|
3099
|
+
isMatch: boolean;
|
|
2665
3100
|
}
|
|
2666
3101
|
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
/** 输入事件 */
|
|
2672
|
-
(e: 'input', value: string): void;
|
|
2673
|
-
/** 内容变更状态 - 通知父组件是否有内容 */
|
|
2674
|
-
(e: 'content-status', hasContent: boolean): void;
|
|
2675
|
-
/** 提交事件 */
|
|
2676
|
-
(e: 'submit', value: string): void;
|
|
2677
|
-
/** 聚焦事件 */
|
|
2678
|
-
(e: 'focus', event: FocusEvent): void;
|
|
2679
|
-
/** 失焦事件 */
|
|
2680
|
-
(e: 'blur', event: FocusEvent): void;
|
|
2681
|
-
/** 模板内容为空时触发,通知父组件可以退出模板编辑模式 */
|
|
2682
|
-
(e: 'empty-content'): void;
|
|
3102
|
+
declare interface TemplateItem extends BaseTextItem {
|
|
3103
|
+
type: 'template';
|
|
3104
|
+
prefix: string;
|
|
3105
|
+
suffix: string;
|
|
2683
3106
|
}
|
|
2684
3107
|
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
*/
|
|
2688
|
-
export declare interface TemplateEditorExpose {
|
|
2689
|
-
/** 聚焦到编辑器 */
|
|
2690
|
-
focus: () => void;
|
|
2691
|
-
/** 重置所有字段 */
|
|
2692
|
-
resetFields: () => void;
|
|
2693
|
-
/** 激活第一个字段 */
|
|
2694
|
-
activateFirstField: () => void;
|
|
2695
|
-
/** 获取当前DOM中的值 */
|
|
2696
|
-
getValueFromDOM: () => string;
|
|
2697
|
-
/** 设置模板和初始值 */
|
|
2698
|
-
setTemplate: (params: SetTemplateParams) => void;
|
|
3108
|
+
declare interface TextItem extends BaseTextItem {
|
|
3109
|
+
type: 'text';
|
|
2699
3110
|
}
|
|
2700
3111
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
3112
|
+
export declare interface ThemeProviderProps {
|
|
3113
|
+
/**
|
|
3114
|
+
* 颜色模式(v-model:colorMode),可选值:light、dark、auto,默认值:auto
|
|
3115
|
+
*/
|
|
3116
|
+
colorMode?: ColorMode;
|
|
3117
|
+
/**
|
|
3118
|
+
* 应用主题属性选择器的目标元素,默认值:html。主题只会影响 targetElement 下的元素
|
|
3119
|
+
*/
|
|
3120
|
+
targetElement?: string;
|
|
3121
|
+
/**
|
|
3122
|
+
* 主题(v-model:theme)
|
|
3123
|
+
*/
|
|
3124
|
+
theme?: string;
|
|
3125
|
+
storage?: ThemeStorage;
|
|
3126
|
+
storageKey?: string;
|
|
2709
3127
|
}
|
|
2710
3128
|
|
|
2711
|
-
|
|
2712
|
-
* 模板部分定义
|
|
2713
|
-
*/
|
|
2714
|
-
export declare interface TemplatePart {
|
|
2715
|
-
/** 内容文本 */
|
|
2716
|
-
content: string;
|
|
2717
|
-
/** 是否为可编辑字段 */
|
|
2718
|
-
isField: boolean;
|
|
2719
|
-
/** 占位符文本 (当字段为空时显示) */
|
|
2720
|
-
placeholder?: string;
|
|
2721
|
-
/** 字段索引 (用于标识可编辑字段) */
|
|
2722
|
-
fieldIndex?: number;
|
|
2723
|
-
}
|
|
3129
|
+
export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
|
|
2724
3130
|
|
|
2725
3131
|
/**
|
|
2726
3132
|
* 组件核心类型定义
|
|
2727
3133
|
*/
|
|
2728
3134
|
export declare type ThemeType = 'light' | 'dark';
|
|
2729
3135
|
|
|
2730
|
-
declare
|
|
3136
|
+
declare interface TooltipContentProps {
|
|
3137
|
+
show?: boolean;
|
|
3138
|
+
content: string;
|
|
3139
|
+
trigger?: HTMLElement | null;
|
|
3140
|
+
disabled?: boolean;
|
|
3141
|
+
placement?: 'top' | 'bottom';
|
|
3142
|
+
delayOpen?: number;
|
|
3143
|
+
delayClose?: number;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
export declare type TooltipRender = () => VNode | string;
|
|
2731
3147
|
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
/** 触发的文本 */
|
|
2737
|
-
text: string;
|
|
2738
|
-
/** 触发的位置 */
|
|
2739
|
-
position: number;
|
|
3148
|
+
export declare interface UrlAttachment extends BaseAttachment {
|
|
3149
|
+
url: string;
|
|
3150
|
+
size: number;
|
|
3151
|
+
rawFile?: File;
|
|
2740
3152
|
}
|
|
2741
3153
|
|
|
2742
|
-
|
|
2743
|
-
export declare type TriggerHandler = (info: TriggerInfo) => void;
|
|
3154
|
+
export declare type UserItem = UserTextItem | UserTemplateItem;
|
|
2744
3155
|
|
|
2745
|
-
|
|
2746
|
-
|
|
3156
|
+
export declare type UserTemplateItem = Omit<Pick<TemplateItem, 'type' | 'content'>, 'id'> & {
|
|
3157
|
+
id?: TemplateItem['id'];
|
|
3158
|
+
};
|
|
3159
|
+
|
|
3160
|
+
export declare type UserTextItem = Omit<TextItem, 'id'> & {
|
|
3161
|
+
id?: TextItem['id'];
|
|
3162
|
+
};
|
|
3163
|
+
|
|
3164
|
+
export declare const useTheme: () => {
|
|
3165
|
+
theme: Ref<string, string> | undefined;
|
|
3166
|
+
colorMode: Ref<ColorMode, ColorMode> | undefined;
|
|
3167
|
+
resolvedColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
|
|
3168
|
+
systemColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
|
|
3169
|
+
setTheme: (newTheme: string) => boolean;
|
|
3170
|
+
toggleColorMode: () => boolean;
|
|
3171
|
+
setColorMode: (mode: ColorMode) => boolean;
|
|
3172
|
+
};
|
|
3173
|
+
|
|
3174
|
+
export declare function useTouchDevice(): {
|
|
3175
|
+
isTouchDevice: Ref<boolean, boolean>;
|
|
3176
|
+
};
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* 拖拽区域指令
|
|
3180
|
+
* @param el 元素
|
|
3181
|
+
* @param binding 绑定
|
|
3182
|
+
*/
|
|
3183
|
+
export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
|
|
2747
3184
|
|
|
2748
3185
|
export declare interface WelcomeProps {
|
|
2749
3186
|
title: string;
|