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