@opentiny/tiny-robot 0.2.13 → 0.3.0-alpha.1
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 +39 -42
- package/dist/bubble/index.js +2003 -1229
- package/dist/container/index.js +4 -4
- package/dist/dropdown-menu/index.js +62 -77
- package/dist/feedback/index.js +42 -42
- package/dist/flow-layout-buttons/index.js +31 -34
- package/dist/history/index.js +42 -42
- package/dist/index.d.ts +350 -437
- package/dist/index.js +64 -57
- package/dist/index2.js +290 -358
- package/dist/loading.js +4 -0
- package/dist/question/index.js +54 -54
- package/dist/sender/index.js +1128 -935
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +74 -74
- package/dist/suggestion-pills/index.js +129 -179
- package/dist/suggestion-popover/index.js +177 -189
- package/dist/tiny-robot-svgs.js +197 -148
- package/dist/utils.js +15 -4
- package/package.json +4 -3
- package/dist/base-popper/index.js +0 -108
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 { ChainItem } from './chain.vue';
|
|
5
5
|
import { Component } from 'vue';
|
|
6
6
|
import { ComponentCustomProperties } from 'vue';
|
|
7
7
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -10,16 +10,16 @@ import { ComponentOptionsBase } from 'vue';
|
|
|
10
10
|
import { ComponentOptionsMixin } from 'vue';
|
|
11
11
|
import { ComponentProvideOptions } from 'vue';
|
|
12
12
|
import { ComponentPublicInstance } from 'vue';
|
|
13
|
-
import {
|
|
13
|
+
import { Config } from 'dompurify';
|
|
14
14
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
15
15
|
import { CSSProperties } from 'vue';
|
|
16
16
|
import { DebuggerEvent } from 'vue';
|
|
17
|
+
import { default as default_2 } from 'markdown-it';
|
|
17
18
|
import { DefineComponent } from 'vue';
|
|
18
19
|
import { ExtractPropTypes } from 'vue';
|
|
19
20
|
import { GlobalComponents } from 'vue';
|
|
20
21
|
import { GlobalDirectives } from 'vue';
|
|
21
22
|
import { InputMode as InputMode_2 } from './index.type';
|
|
22
|
-
import { MaybeElement } from '@vueuse/core';
|
|
23
23
|
import { nextTick } from 'vue';
|
|
24
24
|
import { OnCleanup } from '@vue/reactivity';
|
|
25
25
|
import { Options } from 'markdown-it';
|
|
@@ -28,25 +28,28 @@ import { PublicProps } from 'vue';
|
|
|
28
28
|
import { Ref } from 'vue';
|
|
29
29
|
import { RendererElement } from 'vue';
|
|
30
30
|
import { RendererNode } from 'vue';
|
|
31
|
+
import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
|
|
31
32
|
import { ShallowUnwrapRef } from 'vue';
|
|
32
33
|
import { Slot } from 'vue';
|
|
33
34
|
import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
|
|
35
|
+
import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
|
|
34
36
|
import { ThemeType as ThemeType_2 } from './index.type';
|
|
35
37
|
import { TooltipContentProps } from './components/Tooltip.vue';
|
|
36
|
-
import { TransitionProps } from 'vue';
|
|
37
38
|
import { VNode } from 'vue';
|
|
38
39
|
import { VNodeProps } from 'vue';
|
|
39
40
|
import { WatchOptions } from 'vue';
|
|
40
41
|
import { WatchStopHandle } from 'vue';
|
|
41
42
|
|
|
42
43
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
43
|
-
placement: BubblePalcement_2;
|
|
44
|
-
type: "text" | "markdown";
|
|
45
|
-
maxWidth: string | number;
|
|
46
44
|
content: string;
|
|
45
|
+
placement: "start" | "end";
|
|
46
|
+
shape: "rounded" | "corner";
|
|
47
|
+
maxWidth: string | number;
|
|
47
48
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
48
49
|
|
|
49
|
-
declare const __VLS_component_10: DefineComponent<
|
|
50
|
+
declare const __VLS_component_10: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
51
|
+
|
|
52
|
+
declare const __VLS_component_11: DefineComponent<QuestionProps, {
|
|
50
53
|
openModal: () => void;
|
|
51
54
|
closeModal: () => void;
|
|
52
55
|
toggleFloating: () => void;
|
|
@@ -68,28 +71,26 @@ initialExpanded: boolean;
|
|
|
68
71
|
theme: ThemeType_2;
|
|
69
72
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
70
73
|
|
|
71
|
-
declare const
|
|
74
|
+
declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
75
|
"update:selectedGroup": (value: string) => any;
|
|
73
76
|
} & {
|
|
74
77
|
close: () => any;
|
|
75
78
|
open: () => any;
|
|
76
79
|
"item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
|
|
77
|
-
"click-outside": (event: MouseEvent) => any;
|
|
78
80
|
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
79
81
|
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
80
82
|
onClose?: (() => any) | undefined;
|
|
81
83
|
onOpen?: (() => any) | undefined;
|
|
82
84
|
"onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
|
|
83
|
-
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
84
85
|
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
85
86
|
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
86
87
|
}>, {
|
|
87
88
|
title: string;
|
|
89
|
+
topOffset: string | number;
|
|
88
90
|
trigger: "click" | "manual";
|
|
89
91
|
groupShowMoreTrigger: "click" | "hover";
|
|
90
92
|
popoverWidth: string | number;
|
|
91
93
|
popoverHeight: string | number;
|
|
92
|
-
topOffset: string | number;
|
|
93
94
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
94
95
|
popoverTriggerRef: HTMLDivElement;
|
|
95
96
|
popoverRef: HTMLDivElement;
|
|
@@ -114,7 +115,11 @@ show?: TooltipContentProps["show"];
|
|
|
114
115
|
}>, {}, {}, {}, {}, {}> | null;
|
|
115
116
|
}, any>;
|
|
116
117
|
|
|
117
|
-
declare const __VLS_component_2: DefineComponent<
|
|
118
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
119
|
+
messageRenderers: Record<string, BubbleMessageRenderer>;
|
|
120
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
121
|
+
|
|
122
|
+
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
118
123
|
"update:show": (value: boolean) => any;
|
|
119
124
|
"update:fullscreen": (value: boolean | undefined) => any;
|
|
120
125
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -122,121 +127,25 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
122
127
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
123
128
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
124
129
|
|
|
125
|
-
declare const
|
|
130
|
+
declare const __VLS_component_4: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
126
131
|
"item-click": (item: DropdownMenuItem) => any;
|
|
127
|
-
"click-outside": (event: MouseEvent) => any;
|
|
128
132
|
}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
|
|
129
133
|
"onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
|
|
130
|
-
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
131
134
|
}>, {
|
|
132
|
-
|
|
135
|
+
minWidth: string | number;
|
|
136
|
+
topOffset: string | number;
|
|
133
137
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
$data: {};
|
|
137
|
-
$props: {
|
|
138
|
-
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
139
|
-
readonly offset?: number | {
|
|
140
|
-
mainAxis?: number;
|
|
141
|
-
crossAxis?: number;
|
|
142
|
-
} | undefined;
|
|
143
|
-
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
144
|
-
readonly preventOverflow?: boolean | undefined;
|
|
145
|
-
readonly renderAllTriggers?: boolean | undefined;
|
|
146
|
-
readonly show?: boolean | undefined;
|
|
147
|
-
readonly transitionProps?: TransitionProps | undefined;
|
|
148
|
-
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
149
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
150
|
-
$attrs: {
|
|
151
|
-
[x: string]: unknown;
|
|
152
|
-
};
|
|
153
|
-
$refs: {
|
|
154
|
-
[x: string]: unknown;
|
|
155
|
-
} & {
|
|
156
|
-
popperRef: HTMLDivElement;
|
|
157
|
-
};
|
|
158
|
-
$slots: Readonly<{
|
|
159
|
-
[name: string]: Slot<any> | undefined;
|
|
160
|
-
}>;
|
|
161
|
-
$root: ComponentPublicInstance | null;
|
|
162
|
-
$parent: ComponentPublicInstance | null;
|
|
163
|
-
$host: Element | null;
|
|
164
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
165
|
-
$el: any;
|
|
166
|
-
$options: ComponentOptionsBase<Readonly<{
|
|
167
|
-
appendTo?: string | HTMLElement;
|
|
168
|
-
offset?: number | {
|
|
169
|
-
mainAxis?: number;
|
|
170
|
-
crossAxis?: number;
|
|
171
|
-
};
|
|
172
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
173
|
-
preventOverflow?: boolean;
|
|
174
|
-
renderAllTriggers?: boolean;
|
|
175
|
-
show?: boolean;
|
|
176
|
-
transitionProps?: TransitionProps;
|
|
177
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
178
|
-
}> & Readonly<{}>, {
|
|
179
|
-
triggerRef: ComputedRef<MaybeElement>;
|
|
180
|
-
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
181
|
-
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
182
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
183
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
184
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
185
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
186
|
-
created?: (() => void) | (() => void)[];
|
|
187
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
188
|
-
mounted?: (() => void) | (() => void)[];
|
|
189
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
190
|
-
updated?: (() => void) | (() => void)[];
|
|
191
|
-
activated?: (() => void) | (() => void)[];
|
|
192
|
-
deactivated?: (() => void) | (() => void)[];
|
|
193
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
194
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
195
|
-
destroyed?: (() => void) | (() => void)[];
|
|
196
|
-
unmounted?: (() => void) | (() => void)[];
|
|
197
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
198
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
199
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
200
|
-
};
|
|
201
|
-
$forceUpdate: () => void;
|
|
202
|
-
$nextTick: nextTick;
|
|
203
|
-
$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;
|
|
204
|
-
} & Readonly<{
|
|
205
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
206
|
-
}> & Omit<Readonly<{
|
|
207
|
-
appendTo?: string | HTMLElement;
|
|
208
|
-
offset?: number | {
|
|
209
|
-
mainAxis?: number;
|
|
210
|
-
crossAxis?: number;
|
|
211
|
-
};
|
|
212
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
213
|
-
preventOverflow?: boolean;
|
|
214
|
-
renderAllTriggers?: boolean;
|
|
215
|
-
show?: boolean;
|
|
216
|
-
transitionProps?: TransitionProps;
|
|
217
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
218
|
-
}> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
|
|
219
|
-
triggerRef: ComputedRef<MaybeElement>;
|
|
220
|
-
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
221
|
-
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
222
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
223
|
-
$slots: Readonly<{
|
|
224
|
-
trigger?: () => VNode | VNode[];
|
|
225
|
-
content?: () => VNode | VNode[];
|
|
226
|
-
}> & {
|
|
227
|
-
trigger?: () => VNode | VNode[];
|
|
228
|
-
content?: () => VNode | VNode[];
|
|
229
|
-
};
|
|
230
|
-
}) | null;
|
|
138
|
+
dropDownTriggerRef: HTMLDivElement;
|
|
139
|
+
dropdownMenuRef: HTMLDivElement;
|
|
231
140
|
}, any>;
|
|
232
141
|
|
|
233
|
-
declare const
|
|
142
|
+
declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
234
143
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
235
144
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
236
145
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
237
146
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
238
147
|
|
|
239
|
-
declare const
|
|
148
|
+
declare const __VLS_component_6: DefineComponent<SenderProps, {
|
|
240
149
|
focus: () => void;
|
|
241
150
|
blur: () => void;
|
|
242
151
|
clear: () => void;
|
|
@@ -244,6 +153,7 @@ submit: () => void;
|
|
|
244
153
|
startSpeech: () => void;
|
|
245
154
|
stopSpeech: () => void;
|
|
246
155
|
activateTemplateFirstField: () => void;
|
|
156
|
+
setTemplate: (template: string, initialValues?: Record<string, string>) => void;
|
|
247
157
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
248
158
|
[x: string]: any;
|
|
249
159
|
} & {
|
|
@@ -251,43 +161,55 @@ activateTemplateFirstField: () => void;
|
|
|
251
161
|
}, string, PublicProps, Readonly<SenderProps> & Readonly<{
|
|
252
162
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
253
163
|
}>, {
|
|
254
|
-
loading: boolean;
|
|
255
164
|
template: string;
|
|
256
165
|
mode: InputMode_2;
|
|
166
|
+
loading: boolean;
|
|
257
167
|
disabled: boolean;
|
|
258
168
|
modelValue: string;
|
|
259
169
|
autofocus: boolean;
|
|
260
170
|
clearable: boolean;
|
|
261
171
|
showWordLimit: boolean;
|
|
262
172
|
theme: ThemeType_2;
|
|
173
|
+
placeholder: string;
|
|
263
174
|
hasContent: boolean;
|
|
264
175
|
allowSpeech: boolean;
|
|
265
176
|
allowFiles: boolean;
|
|
266
177
|
submitType: SubmitTrigger_2;
|
|
267
|
-
stopText: string;
|
|
268
178
|
autoSize: AutoSize_2;
|
|
269
179
|
maxLength: number;
|
|
270
|
-
placeholder: string;
|
|
271
180
|
suggestions: string[];
|
|
272
181
|
suggestionPopupWidth: string | number;
|
|
273
|
-
|
|
182
|
+
templateInitialValues: Record<string, string>;
|
|
274
183
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
275
184
|
senderRef: HTMLDivElement;
|
|
276
185
|
inputWrapperRef: HTMLDivElement;
|
|
277
186
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
278
|
-
|
|
279
|
-
}> & Readonly<{
|
|
280
|
-
|
|
281
|
-
|
|
187
|
+
value?: string;
|
|
188
|
+
} & TemplateEditorProps_2> & Readonly<{
|
|
189
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
190
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
191
|
+
onInput?: ((value: string) => any) | undefined;
|
|
192
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
193
|
+
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
194
|
+
"onEmpty-content"?: (() => any) | undefined;
|
|
195
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
282
196
|
}>, {
|
|
283
|
-
|
|
197
|
+
focus: () => void;
|
|
198
|
+
resetFields: () => void;
|
|
284
199
|
activateFirstField: () => void;
|
|
200
|
+
getValueFromDOM: () => string;
|
|
201
|
+
setTemplate: (params: SetTemplateParams_2) => void;
|
|
285
202
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
286
|
-
"update:
|
|
203
|
+
"update:value": (value: string) => any;
|
|
287
204
|
} & {
|
|
288
|
-
|
|
205
|
+
blur: (event: FocusEvent) => any;
|
|
206
|
+
focus: (event: FocusEvent) => any;
|
|
207
|
+
input: (value: string) => any;
|
|
208
|
+
submit: (value: string) => any;
|
|
209
|
+
"content-status": (hasContent: boolean) => any;
|
|
210
|
+
"empty-content": () => any;
|
|
289
211
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
290
|
-
|
|
212
|
+
contentEditableRef: HTMLDivElement;
|
|
291
213
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
292
214
|
P: {};
|
|
293
215
|
B: {};
|
|
@@ -296,13 +218,21 @@ C: {};
|
|
|
296
218
|
M: {};
|
|
297
219
|
Defaults: {};
|
|
298
220
|
}, Readonly<{
|
|
299
|
-
|
|
300
|
-
}> & Readonly<{
|
|
301
|
-
|
|
302
|
-
|
|
221
|
+
value?: string;
|
|
222
|
+
} & TemplateEditorProps_2> & Readonly<{
|
|
223
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
224
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
225
|
+
onInput?: ((value: string) => any) | undefined;
|
|
226
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
227
|
+
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
228
|
+
"onEmpty-content"?: (() => any) | undefined;
|
|
229
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
303
230
|
}>, {
|
|
304
|
-
|
|
231
|
+
focus: () => void;
|
|
232
|
+
resetFields: () => void;
|
|
305
233
|
activateFirstField: () => void;
|
|
234
|
+
getValueFromDOM: () => string;
|
|
235
|
+
setTemplate: (params: SetTemplateParams_2) => void;
|
|
306
236
|
}, {}, {}, {}, {}> | null;
|
|
307
237
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
308
238
|
_constants: {
|
|
@@ -758,11 +688,11 @@ buttonsContainerRef: HTMLDivElement;
|
|
|
758
688
|
suggestionsListRef: HTMLDivElement;
|
|
759
689
|
}, HTMLDivElement>;
|
|
760
690
|
|
|
761
|
-
declare const
|
|
691
|
+
declare const __VLS_component_7: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
762
692
|
align: "left" | "center" | "right" | string;
|
|
763
693
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
764
694
|
|
|
765
|
-
declare const
|
|
695
|
+
declare const __VLS_component_8: DefineComponent<SuggestionProps, {
|
|
766
696
|
trigger: TriggerHandler;
|
|
767
697
|
keyDown: (e: KeyboardEvent) => void;
|
|
768
698
|
input: (event: Event, text: string) => boolean;
|
|
@@ -770,26 +700,26 @@ toggleExpand: () => void;
|
|
|
770
700
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
771
701
|
close: () => any;
|
|
772
702
|
select: (value: string, context?: TriggerContext | undefined) => any;
|
|
773
|
-
trigger: (handler: TriggerHandler) => any;
|
|
774
703
|
"suggestion-select": (item: SuggestionItem) => any;
|
|
775
704
|
"update:open": (value: boolean) => any;
|
|
705
|
+
trigger: (handler: TriggerHandler) => any;
|
|
776
706
|
"category-select": (category: Category) => any;
|
|
777
707
|
"update:expanded": (expanded: boolean) => any;
|
|
778
708
|
"fill-template": (template: string) => any;
|
|
779
709
|
}, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
|
|
780
710
|
onClose?: (() => any) | undefined;
|
|
781
711
|
onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
|
|
782
|
-
onTrigger?: ((handler: TriggerHandler) => any) | undefined;
|
|
783
712
|
"onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
|
|
784
713
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
714
|
+
onTrigger?: ((handler: TriggerHandler) => any) | undefined;
|
|
785
715
|
"onCategory-select"?: ((category: Category) => any) | undefined;
|
|
786
716
|
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
787
717
|
"onFill-template"?: ((template: string) => any) | undefined;
|
|
788
718
|
}>, {
|
|
789
719
|
open: boolean;
|
|
790
|
-
loading: boolean;
|
|
791
|
-
title: string;
|
|
792
720
|
items: SuggestionItem[];
|
|
721
|
+
title: string;
|
|
722
|
+
loading: boolean;
|
|
793
723
|
categories: Category[];
|
|
794
724
|
theme: "light" | "dark";
|
|
795
725
|
maxVisibleItems: number;
|
|
@@ -802,21 +732,21 @@ panelRef: ({
|
|
|
802
732
|
$: ComponentInternalInstance;
|
|
803
733
|
$data: {};
|
|
804
734
|
$props: Partial<{
|
|
805
|
-
loading: boolean;
|
|
806
735
|
title: string;
|
|
736
|
+
loading: boolean;
|
|
807
737
|
categories: Category[];
|
|
808
738
|
maxVisibleItems: number;
|
|
809
739
|
}> & Omit<{
|
|
810
|
-
readonly loading: boolean;
|
|
811
|
-
readonly title: string;
|
|
812
740
|
readonly items: SuggestionItem[];
|
|
741
|
+
readonly title: string;
|
|
742
|
+
readonly loading: boolean;
|
|
813
743
|
readonly categories: Category[];
|
|
814
744
|
readonly maxVisibleItems: number;
|
|
815
745
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
816
746
|
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
817
747
|
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
818
748
|
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
819
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
749
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
820
750
|
$attrs: {
|
|
821
751
|
[x: string]: unknown;
|
|
822
752
|
};
|
|
@@ -865,8 +795,8 @@ select: (...args: any[]) => void;
|
|
|
865
795
|
"category-select": (...args: any[]) => void;
|
|
866
796
|
"item-hover": (...args: any[]) => void;
|
|
867
797
|
}, string, {
|
|
868
|
-
loading: boolean;
|
|
869
798
|
title: string;
|
|
799
|
+
loading: boolean;
|
|
870
800
|
categories: Category[];
|
|
871
801
|
maxVisibleItems: number;
|
|
872
802
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -890,8 +820,8 @@ $forceUpdate: () => void;
|
|
|
890
820
|
$nextTick: nextTick;
|
|
891
821
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
892
822
|
} & Readonly<{
|
|
893
|
-
loading: boolean;
|
|
894
823
|
title: string;
|
|
824
|
+
loading: boolean;
|
|
895
825
|
categories: Category[];
|
|
896
826
|
maxVisibleItems: number;
|
|
897
827
|
}> & Omit<Readonly<ExtractPropTypes< {
|
|
@@ -920,7 +850,7 @@ onClose?: ((...args: any[]) => any) | undefined;
|
|
|
920
850
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
921
851
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
922
852
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
923
|
-
}>, "handleKeyDown" | ("
|
|
853
|
+
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
924
854
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
925
855
|
}> & {} & ComponentCustomProperties & {} & {
|
|
926
856
|
$slots: {
|
|
@@ -935,7 +865,7 @@ empty?(_: {}): any;
|
|
|
935
865
|
}) | null;
|
|
936
866
|
}, HTMLDivElement>;
|
|
937
867
|
|
|
938
|
-
declare const
|
|
868
|
+
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
939
869
|
"update:showAll": (value: boolean | undefined) => any;
|
|
940
870
|
} & {
|
|
941
871
|
"item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
|
|
@@ -946,18 +876,18 @@ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_2, {}, {}, {}
|
|
|
946
876
|
"onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
|
|
947
877
|
}>, {
|
|
948
878
|
showAllButtonOn: "hover" | "always";
|
|
949
|
-
overflowMode: "expand" | "scroll";
|
|
950
879
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
951
880
|
containerWrapperRef: HTMLDivElement;
|
|
952
881
|
containerRef: HTMLDivElement;
|
|
953
|
-
floatingItemsRef: HTMLDivElement;
|
|
954
882
|
}, HTMLDivElement>;
|
|
955
883
|
|
|
956
|
-
declare
|
|
884
|
+
declare type __VLS_Props = {
|
|
885
|
+
messageRenderers?: Record<string, BubbleMessageRenderer>;
|
|
886
|
+
};
|
|
957
887
|
|
|
958
|
-
declare type
|
|
888
|
+
declare type __VLS_Props_2 = SuggestionPillsProps;
|
|
959
889
|
|
|
960
|
-
declare type
|
|
890
|
+
declare type __VLS_Props_3 = SuggestionPopoverProps;
|
|
961
891
|
|
|
962
892
|
declare type __VLS_PublicProps = {
|
|
963
893
|
'show': ContainerProps['show'];
|
|
@@ -966,11 +896,11 @@ declare type __VLS_PublicProps = {
|
|
|
966
896
|
|
|
967
897
|
declare type __VLS_PublicProps_2 = {
|
|
968
898
|
'showAll'?: SuggestionPillsProps['showAll'];
|
|
969
|
-
} &
|
|
899
|
+
} & __VLS_Props_2;
|
|
970
900
|
|
|
971
901
|
declare type __VLS_PublicProps_3 = {
|
|
972
902
|
'selectedGroup'?: string;
|
|
973
|
-
} &
|
|
903
|
+
} & __VLS_Props_3;
|
|
974
904
|
|
|
975
905
|
declare function __VLS_template(): {
|
|
976
906
|
attrs: Partial<{}>;
|
|
@@ -980,6 +910,13 @@ declare function __VLS_template(): {
|
|
|
980
910
|
};
|
|
981
911
|
|
|
982
912
|
declare function __VLS_template_10(): {
|
|
913
|
+
attrs: Partial<{}>;
|
|
914
|
+
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
915
|
+
refs: {};
|
|
916
|
+
rootEl: HTMLButtonElement;
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
declare function __VLS_template_11(): {
|
|
983
920
|
attrs: Partial<{}>;
|
|
984
921
|
slots: {
|
|
985
922
|
'category-label'?(_: {
|
|
@@ -996,7 +933,7 @@ declare function __VLS_template_10(): {
|
|
|
996
933
|
rootEl: HTMLDivElement;
|
|
997
934
|
};
|
|
998
935
|
|
|
999
|
-
declare function
|
|
936
|
+
declare function __VLS_template_12(): {
|
|
1000
937
|
attrs: Partial<{}>;
|
|
1001
938
|
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
1002
939
|
refs: {
|
|
@@ -1026,127 +963,39 @@ declare function __VLS_template_11(): {
|
|
|
1026
963
|
};
|
|
1027
964
|
|
|
1028
965
|
declare function __VLS_template_2(): {
|
|
966
|
+
attrs: Partial<{}>;
|
|
967
|
+
slots: {
|
|
968
|
+
default?(_: {}): any;
|
|
969
|
+
};
|
|
970
|
+
refs: {};
|
|
971
|
+
rootEl: any;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
declare function __VLS_template_3(): {
|
|
1029
975
|
attrs: Partial<{}>;
|
|
1030
976
|
slots: Readonly<ContainerSlots> & ContainerSlots;
|
|
1031
977
|
refs: {};
|
|
1032
978
|
rootEl: HTMLDivElement;
|
|
1033
979
|
};
|
|
1034
980
|
|
|
1035
|
-
declare function
|
|
981
|
+
declare function __VLS_template_4(): {
|
|
1036
982
|
attrs: Partial<{}>;
|
|
1037
|
-
slots:
|
|
1038
|
-
trigger?(_: {}): any;
|
|
1039
|
-
};
|
|
983
|
+
slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
|
|
1040
984
|
refs: {
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
$data: {};
|
|
1044
|
-
$props: {
|
|
1045
|
-
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
1046
|
-
readonly offset?: number | {
|
|
1047
|
-
mainAxis?: number;
|
|
1048
|
-
crossAxis?: number;
|
|
1049
|
-
} | undefined;
|
|
1050
|
-
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
1051
|
-
readonly preventOverflow?: boolean | undefined;
|
|
1052
|
-
readonly renderAllTriggers?: boolean | undefined;
|
|
1053
|
-
readonly show?: boolean | undefined;
|
|
1054
|
-
readonly transitionProps?: TransitionProps | undefined;
|
|
1055
|
-
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
1056
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1057
|
-
$attrs: {
|
|
1058
|
-
[x: string]: unknown;
|
|
1059
|
-
};
|
|
1060
|
-
$refs: {
|
|
1061
|
-
[x: string]: unknown;
|
|
1062
|
-
} & {
|
|
1063
|
-
popperRef: HTMLDivElement;
|
|
1064
|
-
};
|
|
1065
|
-
$slots: Readonly<{
|
|
1066
|
-
[name: string]: Slot<any> | undefined;
|
|
1067
|
-
}>;
|
|
1068
|
-
$root: ComponentPublicInstance | null;
|
|
1069
|
-
$parent: ComponentPublicInstance | null;
|
|
1070
|
-
$host: Element | null;
|
|
1071
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
1072
|
-
$el: any;
|
|
1073
|
-
$options: ComponentOptionsBase<Readonly<{
|
|
1074
|
-
appendTo?: string | HTMLElement;
|
|
1075
|
-
offset?: number | {
|
|
1076
|
-
mainAxis?: number;
|
|
1077
|
-
crossAxis?: number;
|
|
1078
|
-
};
|
|
1079
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1080
|
-
preventOverflow?: boolean;
|
|
1081
|
-
renderAllTriggers?: boolean;
|
|
1082
|
-
show?: boolean;
|
|
1083
|
-
transitionProps?: TransitionProps;
|
|
1084
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1085
|
-
}> & Readonly<{}>, {
|
|
1086
|
-
triggerRef: ComputedRef<MaybeElement>;
|
|
1087
|
-
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
1088
|
-
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
1089
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1090
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1091
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1092
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
1093
|
-
created?: (() => void) | (() => void)[];
|
|
1094
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
1095
|
-
mounted?: (() => void) | (() => void)[];
|
|
1096
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
1097
|
-
updated?: (() => void) | (() => void)[];
|
|
1098
|
-
activated?: (() => void) | (() => void)[];
|
|
1099
|
-
deactivated?: (() => void) | (() => void)[];
|
|
1100
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
1101
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
1102
|
-
destroyed?: (() => void) | (() => void)[];
|
|
1103
|
-
unmounted?: (() => void) | (() => void)[];
|
|
1104
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1105
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1106
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1107
|
-
};
|
|
1108
|
-
$forceUpdate: () => void;
|
|
1109
|
-
$nextTick: nextTick;
|
|
1110
|
-
$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;
|
|
1111
|
-
} & Readonly<{
|
|
1112
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1113
|
-
}> & Omit<Readonly<{
|
|
1114
|
-
appendTo?: string | HTMLElement;
|
|
1115
|
-
offset?: number | {
|
|
1116
|
-
mainAxis?: number;
|
|
1117
|
-
crossAxis?: number;
|
|
1118
|
-
};
|
|
1119
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1120
|
-
preventOverflow?: boolean;
|
|
1121
|
-
renderAllTriggers?: boolean;
|
|
1122
|
-
show?: boolean;
|
|
1123
|
-
transitionProps?: TransitionProps;
|
|
1124
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1125
|
-
}> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
|
|
1126
|
-
triggerRef: ComputedRef<MaybeElement>;
|
|
1127
|
-
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
1128
|
-
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
1129
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
1130
|
-
$slots: Readonly<{
|
|
1131
|
-
trigger?: () => VNode | VNode[];
|
|
1132
|
-
content?: () => VNode | VNode[];
|
|
1133
|
-
}> & {
|
|
1134
|
-
trigger?: () => VNode | VNode[];
|
|
1135
|
-
content?: () => VNode | VNode[];
|
|
1136
|
-
};
|
|
1137
|
-
}) | null;
|
|
985
|
+
dropDownTriggerRef: HTMLDivElement;
|
|
986
|
+
dropdownMenuRef: HTMLDivElement;
|
|
1138
987
|
};
|
|
1139
988
|
rootEl: any;
|
|
1140
989
|
};
|
|
1141
990
|
|
|
1142
|
-
declare function
|
|
991
|
+
declare function __VLS_template_5(): {
|
|
1143
992
|
attrs: Partial<{}>;
|
|
1144
993
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
1145
994
|
refs: {};
|
|
1146
995
|
rootEl: HTMLDivElement;
|
|
1147
996
|
};
|
|
1148
997
|
|
|
1149
|
-
declare function
|
|
998
|
+
declare function __VLS_template_6(): {
|
|
1150
999
|
attrs: Partial<{}>;
|
|
1151
1000
|
slots: {
|
|
1152
1001
|
header?(_: {}): any;
|
|
@@ -1161,19 +1010,32 @@ declare function __VLS_template_5(): {
|
|
|
1161
1010
|
senderRef: HTMLDivElement;
|
|
1162
1011
|
inputWrapperRef: HTMLDivElement;
|
|
1163
1012
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1164
|
-
|
|
1165
|
-
}> & Readonly<{
|
|
1166
|
-
|
|
1167
|
-
|
|
1013
|
+
value?: string;
|
|
1014
|
+
} & TemplateEditorProps_2> & Readonly<{
|
|
1015
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1016
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1017
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1018
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
1019
|
+
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
1020
|
+
"onEmpty-content"?: (() => any) | undefined;
|
|
1021
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
1168
1022
|
}>, {
|
|
1169
|
-
|
|
1023
|
+
focus: () => void;
|
|
1024
|
+
resetFields: () => void;
|
|
1170
1025
|
activateFirstField: () => void;
|
|
1026
|
+
getValueFromDOM: () => string;
|
|
1027
|
+
setTemplate: (params: SetTemplateParams_2) => void;
|
|
1171
1028
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1172
|
-
"update:
|
|
1029
|
+
"update:value": (value: string) => any;
|
|
1173
1030
|
} & {
|
|
1174
|
-
|
|
1031
|
+
blur: (event: FocusEvent) => any;
|
|
1032
|
+
focus: (event: FocusEvent) => any;
|
|
1033
|
+
input: (value: string) => any;
|
|
1034
|
+
submit: (value: string) => any;
|
|
1035
|
+
"content-status": (hasContent: boolean) => any;
|
|
1036
|
+
"empty-content": () => any;
|
|
1175
1037
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1176
|
-
|
|
1038
|
+
contentEditableRef: HTMLDivElement;
|
|
1177
1039
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1178
1040
|
P: {};
|
|
1179
1041
|
B: {};
|
|
@@ -1182,13 +1044,21 @@ declare function __VLS_template_5(): {
|
|
|
1182
1044
|
M: {};
|
|
1183
1045
|
Defaults: {};
|
|
1184
1046
|
}, Readonly<{
|
|
1185
|
-
|
|
1186
|
-
}> & Readonly<{
|
|
1187
|
-
|
|
1188
|
-
|
|
1047
|
+
value?: string;
|
|
1048
|
+
} & TemplateEditorProps_2> & Readonly<{
|
|
1049
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1050
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1051
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1052
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
1053
|
+
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
1054
|
+
"onEmpty-content"?: (() => any) | undefined;
|
|
1055
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
1189
1056
|
}>, {
|
|
1190
|
-
|
|
1057
|
+
focus: () => void;
|
|
1058
|
+
resetFields: () => void;
|
|
1191
1059
|
activateFirstField: () => void;
|
|
1060
|
+
getValueFromDOM: () => string;
|
|
1061
|
+
setTemplate: (params: SetTemplateParams_2) => void;
|
|
1192
1062
|
}, {}, {}, {}, {}> | null;
|
|
1193
1063
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1194
1064
|
_constants: {
|
|
@@ -1646,14 +1516,14 @@ declare function __VLS_template_5(): {
|
|
|
1646
1516
|
rootEl: HTMLDivElement;
|
|
1647
1517
|
};
|
|
1648
1518
|
|
|
1649
|
-
declare function
|
|
1519
|
+
declare function __VLS_template_7(): {
|
|
1650
1520
|
attrs: Partial<{}>;
|
|
1651
1521
|
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1652
1522
|
refs: {};
|
|
1653
1523
|
rootEl: HTMLDivElement;
|
|
1654
1524
|
};
|
|
1655
1525
|
|
|
1656
|
-
declare function
|
|
1526
|
+
declare function __VLS_template_8(): {
|
|
1657
1527
|
attrs: Partial<{}>;
|
|
1658
1528
|
slots: {
|
|
1659
1529
|
'capsule-icon'?(_: {
|
|
@@ -1681,21 +1551,21 @@ declare function __VLS_template_7(): {
|
|
|
1681
1551
|
$: ComponentInternalInstance;
|
|
1682
1552
|
$data: {};
|
|
1683
1553
|
$props: Partial<{
|
|
1684
|
-
loading: boolean;
|
|
1685
1554
|
title: string;
|
|
1555
|
+
loading: boolean;
|
|
1686
1556
|
categories: Category[];
|
|
1687
1557
|
maxVisibleItems: number;
|
|
1688
1558
|
}> & Omit<{
|
|
1689
|
-
readonly loading: boolean;
|
|
1690
|
-
readonly title: string;
|
|
1691
1559
|
readonly items: SuggestionItem[];
|
|
1560
|
+
readonly title: string;
|
|
1561
|
+
readonly loading: boolean;
|
|
1692
1562
|
readonly categories: Category[];
|
|
1693
1563
|
readonly maxVisibleItems: number;
|
|
1694
1564
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
1695
1565
|
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
1696
1566
|
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1697
1567
|
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1698
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
1568
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
1699
1569
|
$attrs: {
|
|
1700
1570
|
[x: string]: unknown;
|
|
1701
1571
|
};
|
|
@@ -1744,8 +1614,8 @@ declare function __VLS_template_7(): {
|
|
|
1744
1614
|
"category-select": (...args: any[]) => void;
|
|
1745
1615
|
"item-hover": (...args: any[]) => void;
|
|
1746
1616
|
}, string, {
|
|
1747
|
-
loading: boolean;
|
|
1748
1617
|
title: string;
|
|
1618
|
+
loading: boolean;
|
|
1749
1619
|
categories: Category[];
|
|
1750
1620
|
maxVisibleItems: number;
|
|
1751
1621
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -1769,8 +1639,8 @@ declare function __VLS_template_7(): {
|
|
|
1769
1639
|
$nextTick: nextTick;
|
|
1770
1640
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1771
1641
|
} & Readonly<{
|
|
1772
|
-
loading: boolean;
|
|
1773
1642
|
title: string;
|
|
1643
|
+
loading: boolean;
|
|
1774
1644
|
categories: Category[];
|
|
1775
1645
|
maxVisibleItems: number;
|
|
1776
1646
|
}> & Omit<Readonly<ExtractPropTypes< {
|
|
@@ -1799,7 +1669,7 @@ declare function __VLS_template_7(): {
|
|
|
1799
1669
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1800
1670
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1801
1671
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1802
|
-
}>, "handleKeyDown" | ("
|
|
1672
|
+
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
1803
1673
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1804
1674
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1805
1675
|
$slots: {
|
|
@@ -1816,30 +1686,24 @@ declare function __VLS_template_7(): {
|
|
|
1816
1686
|
rootEl: HTMLDivElement;
|
|
1817
1687
|
};
|
|
1818
1688
|
|
|
1819
|
-
declare function
|
|
1689
|
+
declare function __VLS_template_9(): {
|
|
1820
1690
|
attrs: Partial<{}>;
|
|
1821
1691
|
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1822
1692
|
refs: {
|
|
1823
1693
|
containerWrapperRef: HTMLDivElement;
|
|
1824
1694
|
containerRef: HTMLDivElement;
|
|
1825
|
-
floatingItemsRef: HTMLDivElement;
|
|
1826
1695
|
};
|
|
1827
1696
|
rootEl: HTMLDivElement;
|
|
1828
1697
|
};
|
|
1829
1698
|
|
|
1830
|
-
declare function __VLS_template_9(): {
|
|
1831
|
-
attrs: Partial<{}>;
|
|
1832
|
-
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1833
|
-
refs: {};
|
|
1834
|
-
rootEl: HTMLButtonElement;
|
|
1835
|
-
};
|
|
1836
|
-
|
|
1837
1699
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1838
1700
|
|
|
1839
1701
|
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
1840
1702
|
|
|
1841
1703
|
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
1842
1704
|
|
|
1705
|
+
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
1706
|
+
|
|
1843
1707
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1844
1708
|
|
|
1845
1709
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1874,6 +1738,12 @@ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
|
1874
1738
|
};
|
|
1875
1739
|
};
|
|
1876
1740
|
|
|
1741
|
+
declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
1742
|
+
new (): {
|
|
1743
|
+
$slots: S;
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1877
1747
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1878
1748
|
new (): {
|
|
1879
1749
|
$slots: S;
|
|
@@ -1936,7 +1806,6 @@ export declare interface ActionButtonsProps {
|
|
|
1936
1806
|
submitType?: SubmitTrigger;
|
|
1937
1807
|
showShortcuts?: boolean;
|
|
1938
1808
|
isOverLimit?: boolean;
|
|
1939
|
-
stopText?: string;
|
|
1940
1809
|
}
|
|
1941
1810
|
|
|
1942
1811
|
export declare type AutoSize = boolean | {
|
|
@@ -1953,18 +1822,46 @@ declare interface BaseHistoryProps {
|
|
|
1953
1822
|
selected?: string;
|
|
1954
1823
|
}
|
|
1955
1824
|
|
|
1956
|
-
declare interface BaseTextItem {
|
|
1957
|
-
id: string;
|
|
1958
|
-
type: string;
|
|
1959
|
-
content: string;
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
1825
|
declare const Bubble: typeof _default_14 & {
|
|
1963
1826
|
install: typeof bubbleInstall;
|
|
1964
1827
|
};
|
|
1965
1828
|
export { Bubble }
|
|
1966
1829
|
export { Bubble as TrBubble }
|
|
1967
1830
|
|
|
1831
|
+
export declare const BubbleChainMessageRenderer: DefineComponent< {
|
|
1832
|
+
items: ChainItem[];
|
|
1833
|
+
html?: boolean;
|
|
1834
|
+
contentClass?: string;
|
|
1835
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
1836
|
+
items: ChainItem[];
|
|
1837
|
+
html?: boolean;
|
|
1838
|
+
contentClass?: string;
|
|
1839
|
+
}> & Readonly<{}>, {
|
|
1840
|
+
html: boolean;
|
|
1841
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1842
|
+
|
|
1843
|
+
export declare interface BubbleCommonProps {
|
|
1844
|
+
/**
|
|
1845
|
+
* 气泡对齐位置
|
|
1846
|
+
*/
|
|
1847
|
+
placement?: 'start' | 'end';
|
|
1848
|
+
/**
|
|
1849
|
+
* 气泡头像
|
|
1850
|
+
*/
|
|
1851
|
+
avatar?: VNode;
|
|
1852
|
+
/**
|
|
1853
|
+
* 气泡形状,默认 'corner'
|
|
1854
|
+
*/
|
|
1855
|
+
shape?: 'rounded' | 'corner';
|
|
1856
|
+
/**
|
|
1857
|
+
* 气泡内容渲染器。
|
|
1858
|
+
* 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
|
|
1859
|
+
*/
|
|
1860
|
+
contentRenderer?: BubbleMessageRenderer;
|
|
1861
|
+
hidden?: boolean;
|
|
1862
|
+
maxWidth?: string | number;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1968
1865
|
declare const bubbleInstall: (app: App) => void;
|
|
1969
1866
|
|
|
1970
1867
|
declare const BubbleList: typeof _default_15 & {
|
|
@@ -1983,37 +1880,71 @@ export declare interface BubbleListProps {
|
|
|
1983
1880
|
* 每个角色的默认配置项
|
|
1984
1881
|
*/
|
|
1985
1882
|
roles?: Record<string, BubbleRoleConfig>;
|
|
1883
|
+
/**
|
|
1884
|
+
* 列表是否加载中
|
|
1885
|
+
*/
|
|
1886
|
+
loading?: boolean;
|
|
1887
|
+
/**
|
|
1888
|
+
* 指定哪个角色可以有加载中状态
|
|
1889
|
+
*/
|
|
1890
|
+
loadingRole?: string;
|
|
1986
1891
|
autoScroll?: boolean;
|
|
1987
1892
|
}
|
|
1988
1893
|
|
|
1989
|
-
export declare
|
|
1894
|
+
export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
|
|
1895
|
+
readonly mdConfig: Options;
|
|
1896
|
+
readonly dompurifyConfig: Config & {
|
|
1897
|
+
disable?: boolean;
|
|
1898
|
+
};
|
|
1899
|
+
readonly md: default_2;
|
|
1900
|
+
constructor(mdConfig?: Options, dompurifyConfig?: Config & {
|
|
1901
|
+
disable?: boolean;
|
|
1902
|
+
});
|
|
1903
|
+
render(options: {
|
|
1904
|
+
content?: string;
|
|
1905
|
+
}): VNode<RendererNode, RendererElement, {
|
|
1906
|
+
[key: string]: any;
|
|
1907
|
+
}>;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
export declare abstract class BubbleMessageClassRenderer {
|
|
1911
|
+
abstract render(options: {
|
|
1912
|
+
[key: string]: any;
|
|
1913
|
+
}): VNode;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
export declare type BubbleMessageFunctionRenderer = (options: {
|
|
1917
|
+
[key: string]: any;
|
|
1918
|
+
}) => VNode;
|
|
1919
|
+
|
|
1920
|
+
export declare interface BubbleMessageProps {
|
|
1921
|
+
type: string;
|
|
1922
|
+
[key: string]: any;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component;
|
|
1990
1926
|
|
|
1991
|
-
export declare interface BubbleProps {
|
|
1927
|
+
export declare interface BubbleProps extends BubbleCommonProps {
|
|
1992
1928
|
/**
|
|
1993
1929
|
* 气泡内容
|
|
1994
1930
|
*/
|
|
1995
1931
|
content?: string;
|
|
1932
|
+
messages?: BubbleMessageProps[];
|
|
1996
1933
|
id?: string | number | symbol;
|
|
1997
|
-
/**
|
|
1998
|
-
* 气泡位置
|
|
1999
|
-
*/
|
|
2000
|
-
placement?: BubblePalcement;
|
|
2001
|
-
avatar?: VNode;
|
|
2002
1934
|
role?: string;
|
|
2003
|
-
/**
|
|
2004
|
-
* 内容类型
|
|
2005
|
-
*/
|
|
2006
|
-
type?: 'text' | 'markdown';
|
|
2007
1935
|
loading?: boolean;
|
|
2008
1936
|
aborted?: boolean;
|
|
2009
|
-
/**
|
|
2010
|
-
* type 为 'markdown' 时,markdown 的配置项
|
|
2011
|
-
*/
|
|
2012
|
-
mdConfig?: Options;
|
|
2013
|
-
maxWidth?: string | number;
|
|
2014
1937
|
}
|
|
2015
1938
|
|
|
2016
|
-
|
|
1939
|
+
declare const BubbleProvider: typeof _default_16 & {
|
|
1940
|
+
install: typeof bubbleProviderInstall;
|
|
1941
|
+
};
|
|
1942
|
+
export { BubbleProvider }
|
|
1943
|
+
export { BubbleProvider as TrBubbleProvider }
|
|
1944
|
+
|
|
1945
|
+
declare const bubbleProviderInstall: (app: App) => void;
|
|
1946
|
+
|
|
1947
|
+
export declare type BubbleRoleConfig = BubbleCommonProps & {
|
|
2017
1948
|
slots?: BubbleSlots;
|
|
2018
1949
|
};
|
|
2019
1950
|
|
|
@@ -2073,25 +2004,25 @@ declare const _default: {
|
|
|
2073
2004
|
};
|
|
2074
2005
|
export default _default;
|
|
2075
2006
|
|
|
2076
|
-
declare const _default_10: typeof
|
|
2007
|
+
declare const _default_10: typeof _default_26 & {
|
|
2077
2008
|
install: typeof install_8;
|
|
2078
2009
|
};
|
|
2079
2010
|
export { _default_10 as Suggestion }
|
|
2080
2011
|
export { _default_10 as TrSuggestion }
|
|
2081
2012
|
|
|
2082
|
-
declare const _default_11: typeof
|
|
2013
|
+
declare const _default_11: typeof _default_27 & {
|
|
2083
2014
|
install: typeof install_9;
|
|
2084
2015
|
};
|
|
2085
2016
|
export { _default_11 as SuggestionPills }
|
|
2086
2017
|
export { _default_11 as TrSuggestionPills }
|
|
2087
2018
|
|
|
2088
|
-
declare const _default_12: typeof
|
|
2019
|
+
declare const _default_12: typeof _default_29 & {
|
|
2089
2020
|
install: typeof install_10;
|
|
2090
2021
|
};
|
|
2091
2022
|
export { _default_12 as Question }
|
|
2092
2023
|
export { _default_12 as TrQuestion }
|
|
2093
2024
|
|
|
2094
|
-
declare const _default_13: typeof
|
|
2025
|
+
declare const _default_13: typeof _default_30 & {
|
|
2095
2026
|
install: typeof install_11;
|
|
2096
2027
|
};
|
|
2097
2028
|
export { _default_13 as SuggestionPopover }
|
|
@@ -2105,11 +2036,19 @@ scrollContainerRef: HTMLDivElement;
|
|
|
2105
2036
|
|
|
2106
2037
|
declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2107
2038
|
|
|
2108
|
-
declare const _default_17:
|
|
2039
|
+
declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2040
|
+
|
|
2041
|
+
declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2109
2042
|
|
|
2110
|
-
declare const
|
|
2043
|
+
declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2044
|
+
|
|
2045
|
+
declare const _default_2: typeof _default_17 & {
|
|
2046
|
+
install: typeof install;
|
|
2047
|
+
};
|
|
2048
|
+
export { _default_2 as Container }
|
|
2049
|
+
export { _default_2 as TrContainer }
|
|
2111
2050
|
|
|
2112
|
-
declare const
|
|
2051
|
+
declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2113
2052
|
operation: (name: string) => any;
|
|
2114
2053
|
action: (name: string) => any;
|
|
2115
2054
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
@@ -2121,20 +2060,12 @@ actionsLimit: number;
|
|
|
2121
2060
|
sourcesLinesLimit: number;
|
|
2122
2061
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2123
2062
|
|
|
2124
|
-
declare const
|
|
2125
|
-
install: typeof install;
|
|
2126
|
-
};
|
|
2127
|
-
export { _default_2 as Container }
|
|
2128
|
-
export { _default_2 as TrContainer }
|
|
2129
|
-
|
|
2130
|
-
declare const _default_20: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2063
|
+
declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2131
2064
|
size: string | number;
|
|
2132
2065
|
svgSize: string | number;
|
|
2133
2066
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2134
2067
|
|
|
2135
|
-
declare const
|
|
2136
|
-
|
|
2137
|
-
declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2068
|
+
declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2138
2069
|
|
|
2139
2070
|
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2140
2071
|
|
|
@@ -2150,19 +2081,21 @@ declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10,
|
|
|
2150
2081
|
|
|
2151
2082
|
declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2152
2083
|
|
|
2153
|
-
declare const _default_3: typeof
|
|
2084
|
+
declare const _default_3: typeof _default_18 & {
|
|
2154
2085
|
install: typeof install_2;
|
|
2155
2086
|
};
|
|
2156
2087
|
export { _default_3 as Conversations }
|
|
2157
2088
|
export { _default_3 as TrConversations }
|
|
2158
2089
|
|
|
2159
|
-
declare const
|
|
2090
|
+
declare const _default_30: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2091
|
+
|
|
2092
|
+
declare const _default_4: typeof _default_19 & {
|
|
2160
2093
|
install: typeof install_3;
|
|
2161
2094
|
};
|
|
2162
2095
|
export { _default_4 as DropdownMenu }
|
|
2163
2096
|
export { _default_4 as TrDropdownMenu }
|
|
2164
2097
|
|
|
2165
|
-
declare const _default_5: typeof
|
|
2098
|
+
declare const _default_5: typeof _default_20 & {
|
|
2166
2099
|
install: typeof install_4;
|
|
2167
2100
|
};
|
|
2168
2101
|
export { _default_5 as Feedback }
|
|
@@ -2175,19 +2108,19 @@ declare const _default_6: {
|
|
|
2175
2108
|
export { _default_6 as History }
|
|
2176
2109
|
export { _default_6 as TrHistory }
|
|
2177
2110
|
|
|
2178
|
-
declare const _default_7: typeof
|
|
2111
|
+
declare const _default_7: typeof _default_21 & {
|
|
2179
2112
|
install: typeof install_5;
|
|
2180
2113
|
};
|
|
2181
2114
|
export { _default_7 as IconButton }
|
|
2182
2115
|
export { _default_7 as TrIconButton }
|
|
2183
2116
|
|
|
2184
|
-
declare const _default_8: typeof
|
|
2117
|
+
declare const _default_8: typeof _default_24 & {
|
|
2185
2118
|
install: typeof install_6;
|
|
2186
2119
|
};
|
|
2187
2120
|
export { _default_8 as Sender }
|
|
2188
2121
|
export { _default_8 as TrSender }
|
|
2189
2122
|
|
|
2190
|
-
declare const _default_9: typeof
|
|
2123
|
+
declare const _default_9: typeof _default_25 & {
|
|
2191
2124
|
install: typeof install_7;
|
|
2192
2125
|
};
|
|
2193
2126
|
export { _default_9 as TrWelcome }
|
|
@@ -2195,26 +2128,10 @@ export { _default_9 as Welcome }
|
|
|
2195
2128
|
|
|
2196
2129
|
export declare interface DropdownMenuEmits {
|
|
2197
2130
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
2198
|
-
/**
|
|
2199
|
-
* 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
|
|
2200
|
-
*/
|
|
2201
|
-
(e: 'click-outside', event: MouseEvent): void;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
export declare interface DropdownMenuEventProps {
|
|
2205
|
-
onItemClick?: (item: DropdownMenuItem) => void;
|
|
2206
|
-
onClickOutside?: (event: MouseEvent) => void;
|
|
2207
2131
|
}
|
|
2208
2132
|
|
|
2209
2133
|
export declare interface DropdownMenuEvents {
|
|
2210
|
-
/**
|
|
2211
|
-
* @deprecated
|
|
2212
|
-
*/
|
|
2213
2134
|
itemClick?: (item: DropdownMenuItem) => void;
|
|
2214
|
-
/**
|
|
2215
|
-
* @deprecated
|
|
2216
|
-
*/
|
|
2217
|
-
clickOutside?: (event: MouseEvent) => void;
|
|
2218
2135
|
}
|
|
2219
2136
|
|
|
2220
2137
|
export declare interface DropdownMenuItem {
|
|
@@ -2223,20 +2140,13 @@ export declare interface DropdownMenuItem {
|
|
|
2223
2140
|
}
|
|
2224
2141
|
|
|
2225
2142
|
export declare interface DropdownMenuProps {
|
|
2226
|
-
appendTo?: string | HTMLElement;
|
|
2227
2143
|
items: DropdownMenuItem[];
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
*/
|
|
2231
|
-
show?: boolean;
|
|
2232
|
-
/**
|
|
2233
|
-
* 触发方式。默认值为 'click'
|
|
2234
|
-
*/
|
|
2235
|
-
trigger?: 'click' | 'hover' | 'manual';
|
|
2144
|
+
minWidth?: string | number;
|
|
2145
|
+
topOffset?: string | number;
|
|
2236
2146
|
}
|
|
2237
2147
|
|
|
2238
2148
|
export declare interface DropdownMenuSlots {
|
|
2239
|
-
|
|
2149
|
+
default?: () => unknown;
|
|
2240
2150
|
}
|
|
2241
2151
|
|
|
2242
2152
|
export declare interface FeedbackEvents {
|
|
@@ -2350,7 +2260,7 @@ export declare type MultiTabHistoryProps = {
|
|
|
2350
2260
|
data: Record<string, HistoryData>;
|
|
2351
2261
|
} & BaseHistoryProps;
|
|
2352
2262
|
|
|
2353
|
-
declare const Prompt: typeof
|
|
2263
|
+
declare const Prompt: typeof _default_22 & {
|
|
2354
2264
|
install: typeof installPrompt;
|
|
2355
2265
|
};
|
|
2356
2266
|
export { Prompt }
|
|
@@ -2383,7 +2293,7 @@ export declare interface PromptProps {
|
|
|
2383
2293
|
badge?: string | VNode;
|
|
2384
2294
|
}
|
|
2385
2295
|
|
|
2386
|
-
declare const Prompts: typeof
|
|
2296
|
+
declare const Prompts: typeof _default_23 & {
|
|
2387
2297
|
install: typeof installPrompts;
|
|
2388
2298
|
};
|
|
2389
2299
|
export { Prompts }
|
|
@@ -2469,7 +2379,6 @@ declare interface QuestionProps {
|
|
|
2469
2379
|
|
|
2470
2380
|
export declare type SenderEmits = {
|
|
2471
2381
|
(e: 'update:modelValue', value: string): void;
|
|
2472
|
-
(e: 'update:templateData', value: UserItem[]): void;
|
|
2473
2382
|
(e: 'submit', value: string): void;
|
|
2474
2383
|
(e: 'clear'): void;
|
|
2475
2384
|
(e: 'speech-start'): void;
|
|
@@ -2505,8 +2414,17 @@ export declare interface SenderProps {
|
|
|
2505
2414
|
theme?: ThemeType;
|
|
2506
2415
|
template?: string;
|
|
2507
2416
|
hasContent?: boolean;
|
|
2508
|
-
|
|
2509
|
-
|
|
2417
|
+
templateInitialValues?: Record<string, string>;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* 设置模板的参数接口
|
|
2422
|
+
*/
|
|
2423
|
+
export declare interface SetTemplateParams {
|
|
2424
|
+
/** 模板字符串,格式为普通文本与 [占位符] 的组合 */
|
|
2425
|
+
template: string;
|
|
2426
|
+
/** 字段初始值,键为占位符文本,值为初始内容 */
|
|
2427
|
+
initialValues?: Record<string, string>;
|
|
2510
2428
|
}
|
|
2511
2429
|
|
|
2512
2430
|
export declare type SingleTabHistoryProps = {
|
|
@@ -2601,14 +2519,23 @@ export declare interface SuggestionItem {
|
|
|
2601
2519
|
|
|
2602
2520
|
declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2603
2521
|
|
|
2604
|
-
export declare type SuggestionPillAction =
|
|
2522
|
+
export declare type SuggestionPillAction = {
|
|
2523
|
+
type: 'popover';
|
|
2524
|
+
props: SuggestionPopoverProps;
|
|
2525
|
+
slots?: Omit<SuggestionPopoverSlots, 'default'>;
|
|
2526
|
+
events?: SuggestionPopoverEvents;
|
|
2527
|
+
} | {
|
|
2528
|
+
type: 'menu';
|
|
2529
|
+
props: DropdownMenuProps;
|
|
2530
|
+
events?: DropdownMenuEvents;
|
|
2531
|
+
};
|
|
2605
2532
|
|
|
2606
2533
|
export declare type SuggestionPillBaseItem<T> = {
|
|
2607
2534
|
id: string;
|
|
2608
2535
|
action?: SuggestionPillAction;
|
|
2609
2536
|
} & T;
|
|
2610
2537
|
|
|
2611
|
-
declare const SuggestionPillButton: typeof
|
|
2538
|
+
declare const SuggestionPillButton: typeof _default_28 & {
|
|
2612
2539
|
install: typeof installPillButton;
|
|
2613
2540
|
};
|
|
2614
2541
|
export { SuggestionPillButton }
|
|
@@ -2631,25 +2558,6 @@ export declare type SuggestionPillItem<T = Record<string, unknown>> = Suggestion
|
|
|
2631
2558
|
icon: VNode | Component;
|
|
2632
2559
|
});
|
|
2633
2560
|
|
|
2634
|
-
export declare type SuggestionPillMenuAction = {
|
|
2635
|
-
type: 'menu';
|
|
2636
|
-
props: DropdownMenuProps & DropdownMenuEventProps;
|
|
2637
|
-
/**
|
|
2638
|
-
* @deprecated use onXXX in props instead
|
|
2639
|
-
*/
|
|
2640
|
-
events?: DropdownMenuEvents;
|
|
2641
|
-
};
|
|
2642
|
-
|
|
2643
|
-
export declare type SuggestionPillPopoverAction = {
|
|
2644
|
-
type: 'popover';
|
|
2645
|
-
props: SuggestionPopoverProps & SuggestionPopoverEventProps;
|
|
2646
|
-
slots?: Omit<SuggestionPopoverSlots, 'default'>;
|
|
2647
|
-
/**
|
|
2648
|
-
* @deprecated use onXXX in props instead
|
|
2649
|
-
*/
|
|
2650
|
-
events?: SuggestionPopoverEvents;
|
|
2651
|
-
};
|
|
2652
|
-
|
|
2653
2561
|
export declare interface SuggestionPillsEmits {
|
|
2654
2562
|
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2655
2563
|
(e: 'click-outside', event: MouseEvent): void;
|
|
@@ -2668,18 +2576,6 @@ export declare interface SuggestionPillsProps {
|
|
|
2668
2576
|
* @default 'hover'
|
|
2669
2577
|
*/
|
|
2670
2578
|
showAllButtonOn?: 'hover' | 'always';
|
|
2671
|
-
/**
|
|
2672
|
-
* 控制多余按钮如何展示
|
|
2673
|
-
* - expand: 点击更多按钮展开所有项
|
|
2674
|
-
* - scroll: 横向滚动显示多余项
|
|
2675
|
-
* @default 'expand'
|
|
2676
|
-
*/
|
|
2677
|
-
overflowMode?: 'expand' | 'scroll';
|
|
2678
|
-
/**
|
|
2679
|
-
* 鼠标悬停时是否自动滚动到可见区域
|
|
2680
|
-
* @default false
|
|
2681
|
-
*/
|
|
2682
|
-
autoScrollOnHover?: boolean;
|
|
2683
2579
|
}
|
|
2684
2580
|
|
|
2685
2581
|
/**
|
|
@@ -2689,35 +2585,10 @@ export declare interface SuggestionPillsSlots {
|
|
|
2689
2585
|
default?: () => VNode | VNode[];
|
|
2690
2586
|
}
|
|
2691
2587
|
|
|
2692
|
-
declare interface SuggestionPopoverEventProps {
|
|
2693
|
-
onItemClick?: (item: SuggestionItem_2) => void;
|
|
2694
|
-
onGroupClick?: (group: SuggestionGroup) => void;
|
|
2695
|
-
onOpen?: () => void;
|
|
2696
|
-
onClose?: () => void;
|
|
2697
|
-
onClickOutside?: (event: MouseEvent) => void;
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
2588
|
declare interface SuggestionPopoverEvents {
|
|
2701
|
-
/**
|
|
2702
|
-
* @deprecated use onItemClick in props instead
|
|
2703
|
-
*/
|
|
2704
2589
|
itemClick?: (item: SuggestionItem_2) => void;
|
|
2705
|
-
/**
|
|
2706
|
-
* @deprecated use onGroupClick in props instead
|
|
2707
|
-
*/
|
|
2708
2590
|
groupClick?: (group: SuggestionGroup) => void;
|
|
2709
|
-
/**
|
|
2710
|
-
* @deprecated use onOpen in props instead
|
|
2711
|
-
*/
|
|
2712
|
-
open?: () => void;
|
|
2713
|
-
/**
|
|
2714
|
-
* @deprecated use onClose in props instead
|
|
2715
|
-
*/
|
|
2716
2591
|
close?: () => void;
|
|
2717
|
-
/**
|
|
2718
|
-
* @deprecated use onClickOutside in props instead
|
|
2719
|
-
*/
|
|
2720
|
-
clickOutside?: (event: MouseEvent) => void;
|
|
2721
2592
|
}
|
|
2722
2593
|
|
|
2723
2594
|
declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
@@ -2777,14 +2648,62 @@ export declare interface SuggestionProps {
|
|
|
2777
2648
|
defaultExpanded?: boolean;
|
|
2778
2649
|
}
|
|
2779
2650
|
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2651
|
+
/**
|
|
2652
|
+
* 模板编辑器事件
|
|
2653
|
+
*/
|
|
2654
|
+
export declare interface TemplateEditorEmits {
|
|
2655
|
+
/** 输入事件 */
|
|
2656
|
+
(e: 'input', value: string): void;
|
|
2657
|
+
/** 内容变更状态 - 通知父组件是否有内容 */
|
|
2658
|
+
(e: 'content-status', hasContent: boolean): void;
|
|
2659
|
+
/** 提交事件 */
|
|
2660
|
+
(e: 'submit', value: string): void;
|
|
2661
|
+
/** 聚焦事件 */
|
|
2662
|
+
(e: 'focus', event: FocusEvent): void;
|
|
2663
|
+
/** 失焦事件 */
|
|
2664
|
+
(e: 'blur', event: FocusEvent): void;
|
|
2665
|
+
/** 模板内容为空时触发,通知父组件可以退出模板编辑模式 */
|
|
2666
|
+
(e: 'empty-content'): void;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* 模板编辑器暴露的方法
|
|
2671
|
+
*/
|
|
2672
|
+
export declare interface TemplateEditorExpose {
|
|
2673
|
+
/** 聚焦到编辑器 */
|
|
2674
|
+
focus: () => void;
|
|
2675
|
+
/** 重置所有字段 */
|
|
2676
|
+
resetFields: () => void;
|
|
2677
|
+
/** 激活第一个字段 */
|
|
2678
|
+
activateFirstField: () => void;
|
|
2679
|
+
/** 获取当前DOM中的值 */
|
|
2680
|
+
getValueFromDOM: () => string;
|
|
2681
|
+
/** 设置模板和初始值 */
|
|
2682
|
+
setTemplate: (params: SetTemplateParams) => void;
|
|
2784
2683
|
}
|
|
2785
2684
|
|
|
2786
|
-
|
|
2787
|
-
|
|
2685
|
+
/**
|
|
2686
|
+
* 模板编辑器属性
|
|
2687
|
+
*/
|
|
2688
|
+
export declare interface TemplateEditorProps {
|
|
2689
|
+
/** 当前值 */
|
|
2690
|
+
value?: string;
|
|
2691
|
+
/** 是否自动聚焦 */
|
|
2692
|
+
autofocus?: boolean;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
/**
|
|
2696
|
+
* 模板部分定义
|
|
2697
|
+
*/
|
|
2698
|
+
export declare interface TemplatePart {
|
|
2699
|
+
/** 内容文本 */
|
|
2700
|
+
content: string;
|
|
2701
|
+
/** 是否为可编辑字段 */
|
|
2702
|
+
isField: boolean;
|
|
2703
|
+
/** 占位符文本 (当字段为空时显示) */
|
|
2704
|
+
placeholder?: string;
|
|
2705
|
+
/** 字段索引 (用于标识可编辑字段) */
|
|
2706
|
+
fieldIndex?: number;
|
|
2788
2707
|
}
|
|
2789
2708
|
|
|
2790
2709
|
/**
|
|
@@ -2810,12 +2729,6 @@ export declare type TriggerHandler = (info: TriggerInfo) => void;
|
|
|
2810
2729
|
/** 触发信息类型 */
|
|
2811
2730
|
export declare type TriggerInfo = TriggerContext | false;
|
|
2812
2731
|
|
|
2813
|
-
export declare type UserItem = UserTextItem | UserTemplateItem;
|
|
2814
|
-
|
|
2815
|
-
export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
|
|
2816
|
-
|
|
2817
|
-
export declare type UserTextItem = Omit<TextItem, 'id'>;
|
|
2818
|
-
|
|
2819
2732
|
export declare interface WelcomeProps {
|
|
2820
2733
|
title: string;
|
|
2821
2734
|
description: string;
|