@opentiny/tiny-robot 0.3.0-alpha.3 → 0.3.0-alpha.5

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/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
- import { AutoSize as AutoSize_2 } from './index.type';
4
- import { ChainItem } from './chain.vue';
3
+ import { BubblePalcement as BubblePalcement_2 } from './index.type';
5
4
  import { Component } from 'vue';
6
5
  import { ComponentCustomProperties } from 'vue';
7
6
  import { ComponentCustomProps } from 'vue';
@@ -10,116 +9,37 @@ import { ComponentOptionsBase } from 'vue';
10
9
  import { ComponentOptionsMixin } from 'vue';
11
10
  import { ComponentProvideOptions } from 'vue';
12
11
  import { ComponentPublicInstance } from 'vue';
13
- import { Config } from 'dompurify';
12
+ import { ComputedRef } from 'vue';
14
13
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
15
14
  import { CSSProperties } from 'vue';
16
15
  import { DebuggerEvent } from 'vue';
17
- import { default as default_2 } from 'markdown-it';
16
+ import { default as default_2 } from './index.vue';
18
17
  import { DefineComponent } from 'vue';
19
- import { ExtractPropTypes } from 'vue';
20
18
  import { GlobalComponents } from 'vue';
21
19
  import { GlobalDirectives } from 'vue';
22
- import { InputMode as InputMode_2 } from './index.type';
20
+ import { MaybeElement } from '@vueuse/core';
23
21
  import { nextTick } from 'vue';
24
22
  import { OnCleanup } from '@vue/reactivity';
25
23
  import { Options } from 'markdown-it';
26
- import { PropType } from 'vue';
27
24
  import { PublicProps } from 'vue';
28
25
  import { Ref } from 'vue';
29
- import { RendererElement } from 'vue';
30
- import { RendererNode } from 'vue';
31
- import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
32
26
  import { ShallowUnwrapRef } from 'vue';
33
27
  import { Slot } from 'vue';
34
- import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
35
- import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
36
- import { ThemeType as ThemeType_2 } from './index.type';
37
28
  import { TooltipContentProps } from './components/Tooltip.vue';
29
+ import { TransitionProps } from 'vue';
38
30
  import { VNode } from 'vue';
39
31
  import { VNodeProps } from 'vue';
40
32
  import { WatchOptions } from 'vue';
41
33
  import { WatchStopHandle } from 'vue';
42
34
 
43
35
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
44
- content: string;
45
- placement: "start" | "end";
46
- shape: "rounded" | "corner";
36
+ placement: BubblePalcement_2;
37
+ type: "text" | "markdown";
47
38
  maxWidth: string | number;
39
+ content: string;
48
40
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
49
41
 
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, {
53
- openModal: () => void;
54
- closeModal: () => void;
55
- toggleFloating: () => void;
56
- setActiveCategory: (categoryId: string) => void;
57
- refreshData: () => Promise<void>;
58
- }, {}, {}, {}, 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
- "update:selectedGroup": (value: string) => any;
76
- } & {
77
- close: () => any;
78
- open: () => any;
79
- "item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
80
- "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
81
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
82
- onClose?: (() => any) | undefined;
83
- onOpen?: (() => any) | undefined;
84
- "onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
85
- "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
86
- "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
87
- }>, {
88
- title: string;
89
- topOffset: string | number;
90
- trigger: "click" | "manual";
91
- groupShowMoreTrigger: "click" | "hover";
92
- popoverWidth: string | number;
93
- popoverHeight: string | number;
94
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
95
- popoverTriggerRef: HTMLDivElement;
96
- popoverRef: HTMLDivElement;
97
- listRef: HTMLUListElement;
98
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
99
- show?: TooltipContentProps["show"];
100
- } & TooltipContentProps> & Readonly<{
101
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
102
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
103
- "update:show": (value: boolean | undefined) => any;
104
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
105
- P: {};
106
- B: {};
107
- D: {};
108
- C: {};
109
- M: {};
110
- Defaults: {};
111
- }, Readonly<{
112
- show?: TooltipContentProps["show"];
113
- } & TooltipContentProps> & Readonly<{
114
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
115
- }>, {}, {}, {}, {}, {}> | null;
116
- }, any>;
117
-
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, {
42
+ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
123
43
  "update:show": (value: boolean) => any;
124
44
  "update:fullscreen": (value: boolean | undefined) => any;
125
45
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -127,631 +47,186 @@ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {},
127
47
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
128
48
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
129
49
 
130
- declare const __VLS_component_4: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
50
+ declare const __VLS_component_3: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
131
51
  "item-click": (item: DropdownMenuItem) => any;
52
+ "click-outside": (event: MouseEvent) => any;
132
53
  }, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
133
54
  "onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
55
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
134
56
  }>, {
135
- minWidth: string | number;
136
- topOffset: string | number;
57
+ trigger: "click" | "hover" | "manual";
137
58
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
138
- dropDownTriggerRef: HTMLDivElement;
139
- dropdownMenuRef: HTMLDivElement;
59
+ basePopperRef: ({
60
+ $: ComponentInternalInstance;
61
+ $data: {};
62
+ $props: {
63
+ readonly appendTo?: (string | HTMLElement) | undefined;
64
+ readonly offset?: number | {
65
+ mainAxis?: number;
66
+ crossAxis?: number;
67
+ } | undefined;
68
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
69
+ readonly preventOverflow?: boolean | undefined;
70
+ readonly renderAllTriggers?: boolean | undefined;
71
+ readonly show?: boolean | undefined;
72
+ readonly transitionProps?: TransitionProps | undefined;
73
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
74
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
75
+ $attrs: {
76
+ [x: string]: unknown;
77
+ };
78
+ $refs: {
79
+ [x: string]: unknown;
80
+ } & {
81
+ popperRef: HTMLDivElement;
82
+ };
83
+ $slots: Readonly<{
84
+ [name: string]: Slot<any> | undefined;
85
+ }>;
86
+ $root: ComponentPublicInstance | null;
87
+ $parent: ComponentPublicInstance | null;
88
+ $host: Element | null;
89
+ $emit: (event: string, ...args: any[]) => void;
90
+ $el: any;
91
+ $options: ComponentOptionsBase<Readonly<{
92
+ appendTo?: string | HTMLElement;
93
+ offset?: number | {
94
+ mainAxis?: number;
95
+ crossAxis?: number;
96
+ };
97
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
98
+ preventOverflow?: boolean;
99
+ renderAllTriggers?: boolean;
100
+ show?: boolean;
101
+ transitionProps?: TransitionProps;
102
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
103
+ }> & Readonly<{}>, {
104
+ triggerRef: ComputedRef<MaybeElement>;
105
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
106
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
107
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
108
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
109
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
110
+ beforeCreate?: (() => void) | (() => void)[];
111
+ created?: (() => void) | (() => void)[];
112
+ beforeMount?: (() => void) | (() => void)[];
113
+ mounted?: (() => void) | (() => void)[];
114
+ beforeUpdate?: (() => void) | (() => void)[];
115
+ updated?: (() => void) | (() => void)[];
116
+ activated?: (() => void) | (() => void)[];
117
+ deactivated?: (() => void) | (() => void)[];
118
+ beforeDestroy?: (() => void) | (() => void)[];
119
+ beforeUnmount?: (() => void) | (() => void)[];
120
+ destroyed?: (() => void) | (() => void)[];
121
+ unmounted?: (() => void) | (() => void)[];
122
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
123
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
124
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
125
+ };
126
+ $forceUpdate: () => void;
127
+ $nextTick: nextTick;
128
+ $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;
129
+ } & Readonly<{
130
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
131
+ }> & Omit<Readonly<{
132
+ appendTo?: string | HTMLElement;
133
+ offset?: number | {
134
+ mainAxis?: number;
135
+ crossAxis?: number;
136
+ };
137
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
138
+ preventOverflow?: boolean;
139
+ renderAllTriggers?: boolean;
140
+ show?: boolean;
141
+ transitionProps?: TransitionProps;
142
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
143
+ }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
144
+ triggerRef: ComputedRef<MaybeElement>;
145
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
146
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
147
+ }> & {} & ComponentCustomProperties & {} & {
148
+ $slots: Readonly<{
149
+ trigger?: () => VNode[];
150
+ content?: () => VNode[];
151
+ backdrop?: () => VNode[];
152
+ }> & {
153
+ trigger?: () => VNode[];
154
+ content?: () => VNode[];
155
+ backdrop?: () => VNode[];
156
+ };
157
+ }) | null;
140
158
  }, any>;
141
159
 
142
- declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
160
+ declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
143
161
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
144
162
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
145
163
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
146
164
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
147
165
 
148
- declare const __VLS_component_6: DefineComponent<SenderProps, {
149
- focus: () => void;
150
- blur: () => void;
151
- clear: () => void;
152
- submit: () => void;
153
- startSpeech: () => void;
154
- stopSpeech: () => void;
155
- activateTemplateFirstField: () => void;
156
- setTemplate: (template: string, initialValues?: Record<string, string>) => void;
157
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
158
- [x: string]: any;
166
+ declare const __VLS_component_5: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
167
+
168
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
169
+ "update:showAll": (value: boolean | undefined) => any;
159
170
  } & {
160
- [x: string]: any;
161
- }, string, PublicProps, Readonly<SenderProps> & Readonly<{
162
- [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
171
+ "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
172
+ "click-outside": (event: MouseEvent) => any;
173
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
174
+ "onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
175
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
176
+ "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
163
177
  }>, {
164
- template: string;
165
- mode: InputMode_2;
166
- loading: boolean;
167
- disabled: boolean;
168
- modelValue: string;
169
- autofocus: boolean;
170
- clearable: boolean;
171
- showWordLimit: boolean;
172
- theme: ThemeType_2;
173
- placeholder: string;
174
- hasContent: boolean;
175
- allowSpeech: boolean;
176
- allowFiles: boolean;
177
- submitType: SubmitTrigger_2;
178
- autoSize: AutoSize_2;
179
- maxLength: number;
180
- suggestions: string[];
181
- suggestionPopupWidth: string | number;
182
- templateInitialValues: Record<string, string>;
178
+ showAllButtonOn: "hover" | "always";
179
+ overflowMode: "expand" | "scroll";
183
180
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
184
- senderRef: HTMLDivElement;
185
- inputWrapperRef: HTMLDivElement;
186
- templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
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;
196
- }>, {
197
- focus: () => void;
198
- resetFields: () => void;
199
- activateFirstField: () => void;
200
- getValueFromDOM: () => string;
201
- setTemplate: (params: SetTemplateParams_2) => void;
202
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
203
- "update:value": (value: string) => any;
204
- } & {
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;
211
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
212
- contentEditableRef: HTMLDivElement;
213
- }, HTMLDivElement, ComponentProvideOptions, {
214
- P: {};
215
- B: {};
216
- D: {};
217
- C: {};
218
- M: {};
219
- Defaults: {};
220
- }, Readonly<{
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;
230
- }>, {
231
- focus: () => void;
232
- resetFields: () => void;
233
- activateFirstField: () => void;
234
- getValueFromDOM: () => string;
235
- setTemplate: (params: SetTemplateParams_2) => void;
236
- }, {}, {}, {}, {}> | null;
237
- inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
238
- _constants: {
239
- type: ObjectConstructor;
240
- default: () => {
241
- INPUT_PC: string;
242
- INPUTGROUP_PC: string;
243
- INPUT_MOBILE: string;
244
- INPUTGROUP_MOBILE: string;
245
- Mode: string;
246
- inputMode(mode: any): string;
247
- inputGroupMode(mode: any): string;
248
- VALIDATE_ICON: {
249
- Validating: string;
250
- Success: string;
251
- Error: string;
252
- };
253
- COMPONENT_NAME: {
254
- FormItem: string;
255
- };
256
- MASKSYMBOL: string;
257
- TEXTAREA_HEIGHT_MOBILE: number;
258
- };
259
- };
260
- name: StringConstructor;
261
- size: StringConstructor;
262
- form: StringConstructor;
263
- label: StringConstructor;
264
- height: NumberConstructor;
265
- resize: StringConstructor;
266
- tabindex: {
267
- type: StringConstructor;
268
- default: string;
269
- };
270
- disabled: BooleanConstructor;
271
- readonly: BooleanConstructor;
272
- hoverExpand: BooleanConstructor;
273
- mask: BooleanConstructor;
274
- suffixIcon: (StringConstructor | ObjectConstructor)[];
275
- prefixIcon: (StringConstructor | ObjectConstructor)[];
276
- modelValue: PropType<string | number | null>;
277
- type: {
278
- type: StringConstructor;
279
- default: string;
280
- };
281
- memorySpace: {
282
- type: NumberConstructor;
283
- default: number;
284
- };
285
- vertical: {
286
- type: BooleanConstructor;
287
- default: boolean;
288
- };
289
- selectMenu: {
290
- type: {
291
- (arrayLength: number): {
292
- id: string;
293
- label: string;
294
- }[];
295
- (...items: {
296
- id: string;
297
- label: string;
298
- }[]): {
299
- id: string;
300
- label: string;
301
- }[];
302
- new (arrayLength: number): {
303
- id: string;
304
- label: string;
305
- }[];
306
- new (...items: {
307
- id: string;
308
- label: string;
309
- }[]): {
310
- id: string;
311
- label: string;
312
- }[];
313
- isArray(arg: any): arg is any[];
314
- readonly prototype: any[];
315
- from<T>(arrayLike: ArrayLike<T>): T[];
316
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
317
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
318
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
319
- of<T_4>(...items: T_4[]): T_4[];
320
- readonly [Symbol.species]: ArrayConstructor;
321
- };
322
- default: () => never[];
323
- };
324
- ellipsis: {
325
- type: BooleanConstructor;
326
- default: boolean;
327
- };
328
- contentStyle: {
329
- type: ObjectConstructor;
330
- default: () => {};
331
- };
332
- isSelect: {
333
- type: BooleanConstructor;
334
- default: boolean;
335
- };
336
- tips: StringConstructor;
337
- counter: {
338
- type: BooleanConstructor;
339
- default: boolean;
340
- };
341
- autosize: {
342
- type: (BooleanConstructor | ObjectConstructor)[];
343
- default: boolean;
344
- };
345
- clearable: {
346
- type: BooleanConstructor;
347
- default: boolean;
348
- };
349
- autocomplete: {
350
- type: StringConstructor;
351
- default: string;
352
- };
353
- showPassword: {
354
- type: BooleanConstructor;
355
- default: boolean;
356
- };
357
- showWordLimit: {
358
- type: BooleanConstructor;
359
- default: boolean;
360
- };
361
- showTitle: {
362
- type: BooleanConstructor;
363
- default: boolean;
364
- };
365
- validateEvent: {
366
- type: BooleanConstructor;
367
- default: boolean;
368
- };
369
- popupMore: {
370
- type: BooleanConstructor;
371
- default: boolean;
372
- };
373
- textareaTitle: {
374
- type: StringConstructor;
375
- default: string;
376
- };
377
- displayOnly: {
378
- type: BooleanConstructor;
379
- default: boolean;
380
- };
381
- displayOnlyContent: {
382
- type: StringConstructor;
383
- default: string;
384
- };
385
- customClass: {
386
- type: StringConstructor;
387
- default: string;
388
- };
389
- frontClearIcon: {
390
- type: BooleanConstructor;
391
- default: boolean;
392
- };
393
- showEmptyValue: {
394
- type: BooleanConstructor;
395
- default: undefined;
396
- };
397
- textAlign: {
398
- type: StringConstructor;
399
- default: string;
400
- };
401
- width: {
402
- type: PropType<string | number | null>;
403
- };
404
- showTooltip: {
405
- type: BooleanConstructor;
406
- default: boolean;
407
- };
408
- inputBoxType: {
409
- type: StringConstructor;
410
- default: string;
411
- validator: (value: string) => boolean;
412
- };
413
- tiny_mode: StringConstructor;
414
- tiny_mode_root: BooleanConstructor;
415
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
416
- tiny_renderless: FunctionConstructor;
417
- tiny_theme: StringConstructor;
418
- tiny_mcp_config: ObjectConstructor;
419
- tiny_chart_theme: ObjectConstructor;
420
- }>>, () => VNode<RendererNode, RendererElement, {
421
- [key: string]: any;
422
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
423
- disabled: boolean;
424
- type: string;
425
- ellipsis: boolean;
426
- mask: boolean;
427
- vertical: boolean;
428
- customClass: string;
429
- tiny_mode_root: boolean;
430
- _constants: Record<string, any>;
431
- tabindex: string;
432
- showTitle: boolean;
433
- readonly: boolean;
434
- hoverExpand: boolean;
435
- memorySpace: number;
436
- selectMenu: {
437
- id: string;
438
- label: string;
439
- }[];
440
- contentStyle: Record<string, any>;
441
- isSelect: boolean;
442
- counter: boolean;
443
- autosize: boolean | Record<string, any>;
444
- clearable: boolean;
445
- autocomplete: string;
446
- showPassword: boolean;
447
- showWordLimit: boolean;
448
- validateEvent: boolean;
449
- popupMore: boolean;
450
- textareaTitle: string;
451
- displayOnly: boolean;
452
- displayOnlyContent: string;
453
- frontClearIcon: boolean;
454
- showEmptyValue: boolean;
455
- textAlign: string;
456
- showTooltip: boolean;
457
- inputBoxType: string;
458
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
459
- P: {};
460
- B: {};
461
- D: {};
462
- C: {};
463
- M: {};
464
- Defaults: {};
465
- }, Readonly<ExtractPropTypes< {
466
- _constants: {
467
- type: ObjectConstructor;
468
- default: () => {
469
- INPUT_PC: string;
470
- INPUTGROUP_PC: string;
471
- INPUT_MOBILE: string;
472
- INPUTGROUP_MOBILE: string;
473
- Mode: string;
474
- inputMode(mode: any): string;
475
- inputGroupMode(mode: any): string;
476
- VALIDATE_ICON: {
477
- Validating: string;
478
- Success: string;
479
- Error: string;
480
- };
481
- COMPONENT_NAME: {
482
- FormItem: string;
483
- };
484
- MASKSYMBOL: string;
485
- TEXTAREA_HEIGHT_MOBILE: number;
486
- };
487
- };
488
- name: StringConstructor;
489
- size: StringConstructor;
490
- form: StringConstructor;
491
- label: StringConstructor;
492
- height: NumberConstructor;
493
- resize: StringConstructor;
494
- tabindex: {
495
- type: StringConstructor;
496
- default: string;
497
- };
498
- disabled: BooleanConstructor;
499
- readonly: BooleanConstructor;
500
- hoverExpand: BooleanConstructor;
501
- mask: BooleanConstructor;
502
- suffixIcon: (StringConstructor | ObjectConstructor)[];
503
- prefixIcon: (StringConstructor | ObjectConstructor)[];
504
- modelValue: PropType<string | number | null>;
505
- type: {
506
- type: StringConstructor;
507
- default: string;
508
- };
509
- memorySpace: {
510
- type: NumberConstructor;
511
- default: number;
512
- };
513
- vertical: {
514
- type: BooleanConstructor;
515
- default: boolean;
516
- };
517
- selectMenu: {
518
- type: {
519
- (arrayLength: number): {
520
- id: string;
521
- label: string;
522
- }[];
523
- (...items: {
524
- id: string;
525
- label: string;
526
- }[]): {
527
- id: string;
528
- label: string;
529
- }[];
530
- new (arrayLength: number): {
531
- id: string;
532
- label: string;
533
- }[];
534
- new (...items: {
535
- id: string;
536
- label: string;
537
- }[]): {
538
- id: string;
539
- label: string;
540
- }[];
541
- isArray(arg: any): arg is any[];
542
- readonly prototype: any[];
543
- from<T>(arrayLike: ArrayLike<T>): T[];
544
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
545
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
546
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
547
- of<T_4>(...items: T_4[]): T_4[];
548
- readonly [Symbol.species]: ArrayConstructor;
549
- };
550
- default: () => never[];
551
- };
552
- ellipsis: {
553
- type: BooleanConstructor;
554
- default: boolean;
555
- };
556
- contentStyle: {
557
- type: ObjectConstructor;
558
- default: () => {};
559
- };
560
- isSelect: {
561
- type: BooleanConstructor;
562
- default: boolean;
563
- };
564
- tips: StringConstructor;
565
- counter: {
566
- type: BooleanConstructor;
567
- default: boolean;
568
- };
569
- autosize: {
570
- type: (BooleanConstructor | ObjectConstructor)[];
571
- default: boolean;
572
- };
573
- clearable: {
574
- type: BooleanConstructor;
575
- default: boolean;
576
- };
577
- autocomplete: {
578
- type: StringConstructor;
579
- default: string;
580
- };
581
- showPassword: {
582
- type: BooleanConstructor;
583
- default: boolean;
584
- };
585
- showWordLimit: {
586
- type: BooleanConstructor;
587
- default: boolean;
588
- };
589
- showTitle: {
590
- type: BooleanConstructor;
591
- default: boolean;
592
- };
593
- validateEvent: {
594
- type: BooleanConstructor;
595
- default: boolean;
596
- };
597
- popupMore: {
598
- type: BooleanConstructor;
599
- default: boolean;
600
- };
601
- textareaTitle: {
602
- type: StringConstructor;
603
- default: string;
604
- };
605
- displayOnly: {
606
- type: BooleanConstructor;
607
- default: boolean;
608
- };
609
- displayOnlyContent: {
610
- type: StringConstructor;
611
- default: string;
612
- };
613
- customClass: {
614
- type: StringConstructor;
615
- default: string;
616
- };
617
- frontClearIcon: {
618
- type: BooleanConstructor;
619
- default: boolean;
620
- };
621
- showEmptyValue: {
622
- type: BooleanConstructor;
623
- default: undefined;
624
- };
625
- textAlign: {
626
- type: StringConstructor;
627
- default: string;
628
- };
629
- width: {
630
- type: PropType<string | number | null>;
631
- };
632
- showTooltip: {
633
- type: BooleanConstructor;
634
- default: boolean;
635
- };
636
- inputBoxType: {
637
- type: StringConstructor;
638
- default: string;
639
- validator: (value: string) => boolean;
640
- };
641
- tiny_mode: StringConstructor;
642
- tiny_mode_root: BooleanConstructor;
643
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
644
- tiny_renderless: FunctionConstructor;
645
- tiny_theme: StringConstructor;
646
- tiny_mcp_config: ObjectConstructor;
647
- tiny_chart_theme: ObjectConstructor;
648
- }>>, () => VNode<RendererNode, RendererElement, {
649
- [key: string]: any;
650
- }>, {}, {}, {}, {
651
- disabled: boolean;
652
- type: string;
653
- ellipsis: boolean;
654
- mask: boolean;
655
- vertical: boolean;
656
- customClass: string;
657
- tiny_mode_root: boolean;
658
- _constants: Record<string, any>;
659
- tabindex: string;
660
- showTitle: boolean;
661
- readonly: boolean;
662
- hoverExpand: boolean;
663
- memorySpace: number;
664
- selectMenu: {
665
- id: string;
666
- label: string;
667
- }[];
668
- contentStyle: Record<string, any>;
669
- isSelect: boolean;
670
- counter: boolean;
671
- autosize: boolean | Record<string, any>;
672
- clearable: boolean;
673
- autocomplete: string;
674
- showPassword: boolean;
675
- showWordLimit: boolean;
676
- validateEvent: boolean;
677
- popupMore: boolean;
678
- textareaTitle: string;
679
- displayOnly: boolean;
680
- displayOnlyContent: string;
681
- frontClearIcon: boolean;
682
- showEmptyValue: boolean;
683
- textAlign: string;
684
- showTooltip: boolean;
685
- inputBoxType: string;
686
- }> | null;
687
- buttonsContainerRef: HTMLDivElement;
688
- suggestionsListRef: HTMLDivElement;
181
+ containerWrapperRef: HTMLDivElement;
182
+ containerRef: HTMLDivElement;
183
+ floatingItemsRef: HTMLDivElement;
689
184
  }, HTMLDivElement>;
690
185
 
691
- declare const __VLS_component_7: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
692
- align: "left" | "center" | "right" | string;
693
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
694
-
695
- declare const __VLS_component_8: DefineComponent<SuggestionProps, {
696
- trigger: TriggerHandler;
697
- keyDown: (e: KeyboardEvent) => void;
698
- input: (event: Event, text: string) => boolean;
699
- toggleExpand: () => void;
700
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
186
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
187
+ "update:selectedGroup": (value: string) => any;
188
+ } & {
701
189
  close: () => any;
702
- select: (value: string, context?: TriggerContext | undefined) => any;
703
- "suggestion-select": (item: SuggestionItem) => any;
704
- "update:open": (value: boolean) => any;
705
- trigger: (handler: TriggerHandler) => any;
706
- "category-select": (category: Category) => any;
707
- "update:expanded": (expanded: boolean) => any;
708
- "fill-template": (template: string) => any;
709
- }, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
190
+ open: () => any;
191
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
192
+ "click-outside": (event: MouseEvent) => any;
193
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
194
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
710
195
  onClose?: (() => any) | undefined;
711
- onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
712
- "onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
713
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
714
- onTrigger?: ((handler: TriggerHandler) => any) | undefined;
715
- "onCategory-select"?: ((category: Category) => any) | undefined;
716
- "onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
717
- "onFill-template"?: ((template: string) => any) | undefined;
196
+ onOpen?: (() => any) | undefined;
197
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
198
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
199
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
200
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
718
201
  }>, {
719
- open: boolean;
720
- items: SuggestionItem[];
721
202
  title: string;
722
- loading: boolean;
723
- categories: Category[];
724
- theme: "light" | "dark";
725
- maxVisibleItems: number;
726
- triggerKeys: string[];
727
- closeOnOutsideClick: boolean;
728
- defaultExpanded: boolean;
203
+ trigger: "click" | "manual";
204
+ groupShowMoreTrigger: "click" | "hover";
205
+ topOffset: number;
729
206
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
730
- rootRef: HTMLDivElement;
731
- panelRef: ({
207
+ basePopperRef: ({
732
208
  $: ComponentInternalInstance;
733
209
  $data: {};
734
- $props: Partial<{
735
- title: string;
736
- loading: boolean;
737
- categories: Category[];
738
- maxVisibleItems: number;
739
- }> & Omit<{
740
- readonly items: SuggestionItem[];
741
- readonly title: string;
742
- readonly loading: boolean;
743
- readonly categories: Category[];
744
- readonly maxVisibleItems: number;
745
- readonly onClose?: ((...args: any[]) => any) | undefined;
746
- readonly onSelect?: ((...args: any[]) => any) | undefined;
747
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
748
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
749
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
210
+ $props: {
211
+ readonly appendTo?: (string | HTMLElement) | undefined;
212
+ readonly offset?: number | {
213
+ mainAxis?: number;
214
+ crossAxis?: number;
215
+ } | undefined;
216
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
217
+ readonly preventOverflow?: boolean | undefined;
218
+ readonly renderAllTriggers?: boolean | undefined;
219
+ readonly show?: boolean | undefined;
220
+ readonly transitionProps?: TransitionProps | undefined;
221
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
222
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
750
223
  $attrs: {
751
224
  [x: string]: unknown;
752
225
  };
753
226
  $refs: {
754
227
  [x: string]: unknown;
228
+ } & {
229
+ popperRef: HTMLDivElement;
755
230
  };
756
231
  $slots: Readonly<{
757
232
  [name: string]: Slot<any> | undefined;
@@ -759,46 +234,26 @@ $slots: Readonly<{
759
234
  $root: ComponentPublicInstance | null;
760
235
  $parent: ComponentPublicInstance | null;
761
236
  $host: Element | null;
762
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
763
- $el: HTMLDivElement;
764
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
765
- items: {
766
- type: PropType<SuggestionItem[]>;
767
- required: true;
768
- };
769
- categories: {
770
- type: PropType<Category[]>;
771
- default: () => never[];
772
- };
773
- loading: {
774
- type: BooleanConstructor;
775
- default: boolean;
776
- };
777
- title: {
778
- type: StringConstructor;
779
- default: string;
780
- };
781
- maxVisibleItems: {
782
- type: NumberConstructor;
783
- default: number;
784
- };
785
- }>> & Readonly<{
786
- onClose?: ((...args: any[]) => any) | undefined;
787
- onSelect?: ((...args: any[]) => any) | undefined;
788
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
789
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
790
- }>, {
791
- handleKeyDown: (e: KeyboardEvent) => void;
792
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
793
- close: (...args: any[]) => void;
794
- select: (...args: any[]) => void;
795
- "category-select": (...args: any[]) => void;
796
- "item-hover": (...args: any[]) => void;
797
- }, string, {
798
- title: string;
799
- loading: boolean;
800
- categories: Category[];
801
- maxVisibleItems: number;
237
+ $emit: (event: string, ...args: any[]) => void;
238
+ $el: any;
239
+ $options: ComponentOptionsBase<Readonly<{
240
+ appendTo?: string | HTMLElement;
241
+ offset?: number | {
242
+ mainAxis?: number;
243
+ crossAxis?: number;
244
+ };
245
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
246
+ preventOverflow?: boolean;
247
+ renderAllTriggers?: boolean;
248
+ show?: boolean;
249
+ transitionProps?: TransitionProps;
250
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
251
+ }> & Readonly<{}>, {
252
+ triggerRef: ComputedRef<MaybeElement>;
253
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
254
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
255
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
256
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
802
257
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
803
258
  beforeCreate?: (() => void) | (() => void)[];
804
259
  created?: (() => void) | (() => void)[];
@@ -820,74 +275,62 @@ $forceUpdate: () => void;
820
275
  $nextTick: nextTick;
821
276
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
822
277
  } & Readonly<{
823
- title: string;
824
- loading: boolean;
825
- categories: Category[];
826
- maxVisibleItems: number;
827
- }> & Omit<Readonly<ExtractPropTypes< {
828
- items: {
829
- type: PropType<SuggestionItem[]>;
830
- required: true;
831
- };
832
- categories: {
833
- type: PropType<Category[]>;
834
- default: () => never[];
835
- };
836
- loading: {
837
- type: BooleanConstructor;
838
- default: boolean;
839
- };
840
- title: {
841
- type: StringConstructor;
842
- default: string;
843
- };
844
- maxVisibleItems: {
845
- type: NumberConstructor;
846
- default: number;
847
- };
848
- }>> & Readonly<{
849
- onClose?: ((...args: any[]) => any) | undefined;
850
- onSelect?: ((...args: any[]) => any) | undefined;
851
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
852
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
853
- }>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
854
- handleKeyDown: (e: KeyboardEvent) => void;
278
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
279
+ }> & Omit<Readonly<{
280
+ appendTo?: string | HTMLElement;
281
+ offset?: number | {
282
+ mainAxis?: number;
283
+ crossAxis?: number;
284
+ };
285
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
286
+ preventOverflow?: boolean;
287
+ renderAllTriggers?: boolean;
288
+ show?: boolean;
289
+ transitionProps?: TransitionProps;
290
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
291
+ }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
292
+ triggerRef: ComputedRef<MaybeElement>;
293
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
294
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
855
295
  }> & {} & ComponentCustomProperties & {} & {
856
- $slots: {
857
- 'title-icon'?(_: {}): any;
858
- 'loading-indicator'?(_: {}): any;
859
- item?(_: {
860
- item: SuggestionItem;
861
- active: boolean;
862
- }): any;
863
- empty?(_: {}): any;
296
+ $slots: Readonly<{
297
+ trigger?: () => VNode[];
298
+ content?: () => VNode[];
299
+ backdrop?: () => VNode[];
300
+ }> & {
301
+ trigger?: () => VNode[];
302
+ content?: () => VNode[];
303
+ backdrop?: () => VNode[];
864
304
  };
865
305
  }) | null;
866
- }, HTMLDivElement>;
867
-
868
- declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
869
- "update:showAll": (value: boolean | undefined) => any;
870
- } & {
871
- "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
872
- "click-outside": (event: MouseEvent) => any;
873
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
874
- "onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
875
- "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
876
- "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
877
- }>, {
878
- showAllButtonOn: "hover" | "always";
879
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
880
- containerWrapperRef: HTMLDivElement;
881
- containerRef: HTMLDivElement;
882
- }, HTMLDivElement>;
306
+ listRef: HTMLUListElement;
307
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
308
+ show?: TooltipContentProps["show"];
309
+ } & TooltipContentProps> & Readonly<{
310
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
311
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
312
+ "update:show": (value: boolean | undefined) => any;
313
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
314
+ P: {};
315
+ B: {};
316
+ D: {};
317
+ C: {};
318
+ M: {};
319
+ Defaults: {};
320
+ }, Readonly<{
321
+ show?: TooltipContentProps["show"];
322
+ } & TooltipContentProps> & Readonly<{
323
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
324
+ }>, {}, {}, {}, {}, {}> | null;
325
+ }, any>;
883
326
 
884
- declare type __VLS_Props = {
885
- messageRenderers?: Record<string, BubbleMessageRenderer>;
886
- };
327
+ declare const __VLS_component_8: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
328
+ align: "left" | "center" | "right" | string;
329
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
887
330
 
888
- declare type __VLS_Props_2 = SuggestionPillsProps;
331
+ declare type __VLS_Props = SuggestionPillsProps;
889
332
 
890
- declare type __VLS_Props_3 = SuggestionPopoverProps;
333
+ declare type __VLS_Props_2 = SuggestionPopoverProps;
891
334
 
892
335
  declare type __VLS_PublicProps = {
893
336
  'show': ContainerProps['show'];
@@ -896,11 +339,11 @@ declare type __VLS_PublicProps = {
896
339
 
897
340
  declare type __VLS_PublicProps_2 = {
898
341
  'showAll'?: SuggestionPillsProps['showAll'];
899
- } & __VLS_Props_2;
342
+ } & __VLS_Props;
900
343
 
901
344
  declare type __VLS_PublicProps_3 = {
902
345
  'selectedGroup'?: string;
903
- } & __VLS_Props_3;
346
+ } & __VLS_Props_2;
904
347
 
905
348
  declare function __VLS_template(): {
906
349
  attrs: Partial<{}>;
@@ -909,668 +352,174 @@ declare function __VLS_template(): {
909
352
  rootEl: HTMLDivElement;
910
353
  };
911
354
 
912
- declare function __VLS_template_10(): {
355
+ declare function __VLS_template_2(): {
913
356
  attrs: Partial<{}>;
914
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
357
+ slots: Readonly<ContainerSlots> & ContainerSlots;
915
358
  refs: {};
916
- rootEl: HTMLButtonElement;
359
+ rootEl: HTMLDivElement;
917
360
  };
918
361
 
919
- declare function __VLS_template_11(): {
362
+ declare function __VLS_template_3(): {
920
363
  attrs: Partial<{}>;
921
364
  slots: {
922
- 'category-label'?(_: {
923
- category: Category_2;
924
- }): any;
925
- 'question-item'?(_: {
926
- question: Question_2;
927
- index: number;
928
- }): any;
929
- 'loading-indicator'?(_: {}): any;
930
- 'empty-state'?(_: {}): any;
365
+ trigger?(_: {}): any;
931
366
  };
932
- refs: {};
933
- rootEl: HTMLDivElement;
934
- };
935
-
936
- declare function __VLS_template_12(): {
937
- attrs: Partial<{}>;
938
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
939
367
  refs: {
940
- popoverTriggerRef: HTMLDivElement;
941
- popoverRef: HTMLDivElement;
942
- listRef: HTMLUListElement;
943
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
944
- show?: TooltipContentProps["show"];
945
- } & TooltipContentProps> & Readonly<{
946
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
947
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
948
- "update:show": (value: boolean | undefined) => any;
949
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
950
- P: {};
951
- B: {};
952
- D: {};
953
- C: {};
954
- M: {};
955
- Defaults: {};
956
- }, Readonly<{
957
- show?: TooltipContentProps["show"];
958
- } & TooltipContentProps> & Readonly<{
959
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
960
- }>, {}, {}, {}, {}, {}> | null;
961
- };
962
- rootEl: any;
963
- };
964
-
965
- declare function __VLS_template_2(): {
966
- attrs: Partial<{}>;
967
- slots: {
968
- default?(_: {}): any;
368
+ basePopperRef: ({
369
+ $: ComponentInternalInstance;
370
+ $data: {};
371
+ $props: {
372
+ readonly appendTo?: (string | HTMLElement) | undefined;
373
+ readonly offset?: number | {
374
+ mainAxis?: number;
375
+ crossAxis?: number;
376
+ } | undefined;
377
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
378
+ readonly preventOverflow?: boolean | undefined;
379
+ readonly renderAllTriggers?: boolean | undefined;
380
+ readonly show?: boolean | undefined;
381
+ readonly transitionProps?: TransitionProps | undefined;
382
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
383
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
384
+ $attrs: {
385
+ [x: string]: unknown;
386
+ };
387
+ $refs: {
388
+ [x: string]: unknown;
389
+ } & {
390
+ popperRef: HTMLDivElement;
391
+ };
392
+ $slots: Readonly<{
393
+ [name: string]: Slot<any> | undefined;
394
+ }>;
395
+ $root: ComponentPublicInstance | null;
396
+ $parent: ComponentPublicInstance | null;
397
+ $host: Element | null;
398
+ $emit: (event: string, ...args: any[]) => void;
399
+ $el: any;
400
+ $options: ComponentOptionsBase<Readonly<{
401
+ appendTo?: string | HTMLElement;
402
+ offset?: number | {
403
+ mainAxis?: number;
404
+ crossAxis?: number;
405
+ };
406
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
407
+ preventOverflow?: boolean;
408
+ renderAllTriggers?: boolean;
409
+ show?: boolean;
410
+ transitionProps?: TransitionProps;
411
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
412
+ }> & Readonly<{}>, {
413
+ triggerRef: ComputedRef<MaybeElement>;
414
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
415
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
416
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
417
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
418
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
419
+ beforeCreate?: (() => void) | (() => void)[];
420
+ created?: (() => void) | (() => void)[];
421
+ beforeMount?: (() => void) | (() => void)[];
422
+ mounted?: (() => void) | (() => void)[];
423
+ beforeUpdate?: (() => void) | (() => void)[];
424
+ updated?: (() => void) | (() => void)[];
425
+ activated?: (() => void) | (() => void)[];
426
+ deactivated?: (() => void) | (() => void)[];
427
+ beforeDestroy?: (() => void) | (() => void)[];
428
+ beforeUnmount?: (() => void) | (() => void)[];
429
+ destroyed?: (() => void) | (() => void)[];
430
+ unmounted?: (() => void) | (() => void)[];
431
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
432
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
433
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
434
+ };
435
+ $forceUpdate: () => void;
436
+ $nextTick: nextTick;
437
+ $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;
438
+ } & Readonly<{
439
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
440
+ }> & Omit<Readonly<{
441
+ appendTo?: string | HTMLElement;
442
+ offset?: number | {
443
+ mainAxis?: number;
444
+ crossAxis?: number;
445
+ };
446
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
447
+ preventOverflow?: boolean;
448
+ renderAllTriggers?: boolean;
449
+ show?: boolean;
450
+ transitionProps?: TransitionProps;
451
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
452
+ }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
453
+ triggerRef: ComputedRef<MaybeElement>;
454
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
455
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
456
+ }> & {} & ComponentCustomProperties & {} & {
457
+ $slots: Readonly<{
458
+ trigger?: () => VNode[];
459
+ content?: () => VNode[];
460
+ backdrop?: () => VNode[];
461
+ }> & {
462
+ trigger?: () => VNode[];
463
+ content?: () => VNode[];
464
+ backdrop?: () => VNode[];
465
+ };
466
+ }) | null;
969
467
  };
970
- refs: {};
971
468
  rootEl: any;
972
469
  };
973
470
 
974
- declare function __VLS_template_3(): {
471
+ declare function __VLS_template_4(): {
975
472
  attrs: Partial<{}>;
976
- slots: Readonly<ContainerSlots> & ContainerSlots;
473
+ slots: Readonly<PromptsSlots> & PromptsSlots;
977
474
  refs: {};
978
475
  rootEl: HTMLDivElement;
979
476
  };
980
477
 
981
- declare function __VLS_template_4(): {
982
- attrs: Partial<{}>;
983
- slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
984
- refs: {
985
- dropDownTriggerRef: HTMLDivElement;
986
- dropdownMenuRef: HTMLDivElement;
987
- };
988
- rootEl: any;
989
- };
990
-
991
478
  declare function __VLS_template_5(): {
992
479
  attrs: Partial<{}>;
993
- slots: Readonly<PromptsSlots> & PromptsSlots;
480
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
994
481
  refs: {};
995
- rootEl: HTMLDivElement;
482
+ rootEl: HTMLButtonElement;
996
483
  };
997
484
 
998
485
  declare function __VLS_template_6(): {
999
486
  attrs: Partial<{}>;
1000
- slots: {
1001
- header?(_: {}): any;
1002
- prefix?(_: {}): any;
1003
- decorativeContent?(_: {}): any;
1004
- actions?(_: {}): any;
1005
- 'footer-left'?(_: {}): any;
1006
- 'footer-right'?(_: {}): any;
1007
- footer?(_: {}): any;
1008
- };
487
+ slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1009
488
  refs: {
1010
- senderRef: HTMLDivElement;
1011
- inputWrapperRef: HTMLDivElement;
1012
- templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
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;
1022
- }>, {
1023
- focus: () => void;
1024
- resetFields: () => void;
1025
- activateFirstField: () => void;
1026
- getValueFromDOM: () => string;
1027
- setTemplate: (params: SetTemplateParams_2) => void;
1028
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1029
- "update:value": (value: string) => any;
1030
- } & {
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;
1037
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1038
- contentEditableRef: HTMLDivElement;
1039
- }, HTMLDivElement, ComponentProvideOptions, {
1040
- P: {};
1041
- B: {};
1042
- D: {};
1043
- C: {};
1044
- M: {};
1045
- Defaults: {};
1046
- }, Readonly<{
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;
1056
- }>, {
1057
- focus: () => void;
1058
- resetFields: () => void;
1059
- activateFirstField: () => void;
1060
- getValueFromDOM: () => string;
1061
- setTemplate: (params: SetTemplateParams_2) => void;
1062
- }, {}, {}, {}, {}> | null;
1063
- inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1064
- _constants: {
1065
- type: ObjectConstructor;
1066
- default: () => {
1067
- INPUT_PC: string;
1068
- INPUTGROUP_PC: string;
1069
- INPUT_MOBILE: string;
1070
- INPUTGROUP_MOBILE: string;
1071
- Mode: string;
1072
- inputMode(mode: any): string;
1073
- inputGroupMode(mode: any): string;
1074
- VALIDATE_ICON: {
1075
- Validating: string;
1076
- Success: string;
1077
- Error: string;
1078
- };
1079
- COMPONENT_NAME: {
1080
- FormItem: string;
1081
- };
1082
- MASKSYMBOL: string;
1083
- TEXTAREA_HEIGHT_MOBILE: number;
1084
- };
1085
- };
1086
- name: StringConstructor;
1087
- size: StringConstructor;
1088
- form: StringConstructor;
1089
- label: StringConstructor;
1090
- height: NumberConstructor;
1091
- resize: StringConstructor;
1092
- tabindex: {
1093
- type: StringConstructor;
1094
- default: string;
1095
- };
1096
- disabled: BooleanConstructor;
1097
- readonly: BooleanConstructor;
1098
- hoverExpand: BooleanConstructor;
1099
- mask: BooleanConstructor;
1100
- suffixIcon: (StringConstructor | ObjectConstructor)[];
1101
- prefixIcon: (StringConstructor | ObjectConstructor)[];
1102
- modelValue: PropType<string | number | null>;
1103
- type: {
1104
- type: StringConstructor;
1105
- default: string;
1106
- };
1107
- memorySpace: {
1108
- type: NumberConstructor;
1109
- default: number;
1110
- };
1111
- vertical: {
1112
- type: BooleanConstructor;
1113
- default: boolean;
1114
- };
1115
- selectMenu: {
1116
- type: {
1117
- (arrayLength: number): {
1118
- id: string;
1119
- label: string;
1120
- }[];
1121
- (...items: {
1122
- id: string;
1123
- label: string;
1124
- }[]): {
1125
- id: string;
1126
- label: string;
1127
- }[];
1128
- new (arrayLength: number): {
1129
- id: string;
1130
- label: string;
1131
- }[];
1132
- new (...items: {
1133
- id: string;
1134
- label: string;
1135
- }[]): {
1136
- id: string;
1137
- label: string;
1138
- }[];
1139
- isArray(arg: any): arg is any[];
1140
- readonly prototype: any[];
1141
- from<T>(arrayLike: ArrayLike<T>): T[];
1142
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
1143
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
1144
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
1145
- of<T_4>(...items: T_4[]): T_4[];
1146
- readonly [Symbol.species]: ArrayConstructor;
1147
- };
1148
- default: () => never[];
1149
- };
1150
- ellipsis: {
1151
- type: BooleanConstructor;
1152
- default: boolean;
1153
- };
1154
- contentStyle: {
1155
- type: ObjectConstructor;
1156
- default: () => {};
1157
- };
1158
- isSelect: {
1159
- type: BooleanConstructor;
1160
- default: boolean;
1161
- };
1162
- tips: StringConstructor;
1163
- counter: {
1164
- type: BooleanConstructor;
1165
- default: boolean;
1166
- };
1167
- autosize: {
1168
- type: (BooleanConstructor | ObjectConstructor)[];
1169
- default: boolean;
1170
- };
1171
- clearable: {
1172
- type: BooleanConstructor;
1173
- default: boolean;
1174
- };
1175
- autocomplete: {
1176
- type: StringConstructor;
1177
- default: string;
1178
- };
1179
- showPassword: {
1180
- type: BooleanConstructor;
1181
- default: boolean;
1182
- };
1183
- showWordLimit: {
1184
- type: BooleanConstructor;
1185
- default: boolean;
1186
- };
1187
- showTitle: {
1188
- type: BooleanConstructor;
1189
- default: boolean;
1190
- };
1191
- validateEvent: {
1192
- type: BooleanConstructor;
1193
- default: boolean;
1194
- };
1195
- popupMore: {
1196
- type: BooleanConstructor;
1197
- default: boolean;
1198
- };
1199
- textareaTitle: {
1200
- type: StringConstructor;
1201
- default: string;
1202
- };
1203
- displayOnly: {
1204
- type: BooleanConstructor;
1205
- default: boolean;
1206
- };
1207
- displayOnlyContent: {
1208
- type: StringConstructor;
1209
- default: string;
1210
- };
1211
- customClass: {
1212
- type: StringConstructor;
1213
- default: string;
1214
- };
1215
- frontClearIcon: {
1216
- type: BooleanConstructor;
1217
- default: boolean;
1218
- };
1219
- showEmptyValue: {
1220
- type: BooleanConstructor;
1221
- default: undefined;
1222
- };
1223
- textAlign: {
1224
- type: StringConstructor;
1225
- default: string;
1226
- };
1227
- width: {
1228
- type: PropType<string | number | null>;
1229
- };
1230
- showTooltip: {
1231
- type: BooleanConstructor;
1232
- default: boolean;
1233
- };
1234
- inputBoxType: {
1235
- type: StringConstructor;
1236
- default: string;
1237
- validator: (value: string) => boolean;
1238
- };
1239
- tiny_mode: StringConstructor;
1240
- tiny_mode_root: BooleanConstructor;
1241
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
1242
- tiny_renderless: FunctionConstructor;
1243
- tiny_theme: StringConstructor;
1244
- tiny_mcp_config: ObjectConstructor;
1245
- tiny_chart_theme: ObjectConstructor;
1246
- }>>, () => VNode<RendererNode, RendererElement, {
1247
- [key: string]: any;
1248
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1249
- disabled: boolean;
1250
- type: string;
1251
- ellipsis: boolean;
1252
- mask: boolean;
1253
- vertical: boolean;
1254
- customClass: string;
1255
- tiny_mode_root: boolean;
1256
- _constants: Record<string, any>;
1257
- tabindex: string;
1258
- showTitle: boolean;
1259
- readonly: boolean;
1260
- hoverExpand: boolean;
1261
- memorySpace: number;
1262
- selectMenu: {
1263
- id: string;
1264
- label: string;
1265
- }[];
1266
- contentStyle: Record<string, any>;
1267
- isSelect: boolean;
1268
- counter: boolean;
1269
- autosize: boolean | Record<string, any>;
1270
- clearable: boolean;
1271
- autocomplete: string;
1272
- showPassword: boolean;
1273
- showWordLimit: boolean;
1274
- validateEvent: boolean;
1275
- popupMore: boolean;
1276
- textareaTitle: string;
1277
- displayOnly: boolean;
1278
- displayOnlyContent: string;
1279
- frontClearIcon: boolean;
1280
- showEmptyValue: boolean;
1281
- textAlign: string;
1282
- showTooltip: boolean;
1283
- inputBoxType: string;
1284
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1285
- P: {};
1286
- B: {};
1287
- D: {};
1288
- C: {};
1289
- M: {};
1290
- Defaults: {};
1291
- }, Readonly<ExtractPropTypes< {
1292
- _constants: {
1293
- type: ObjectConstructor;
1294
- default: () => {
1295
- INPUT_PC: string;
1296
- INPUTGROUP_PC: string;
1297
- INPUT_MOBILE: string;
1298
- INPUTGROUP_MOBILE: string;
1299
- Mode: string;
1300
- inputMode(mode: any): string;
1301
- inputGroupMode(mode: any): string;
1302
- VALIDATE_ICON: {
1303
- Validating: string;
1304
- Success: string;
1305
- Error: string;
1306
- };
1307
- COMPONENT_NAME: {
1308
- FormItem: string;
1309
- };
1310
- MASKSYMBOL: string;
1311
- TEXTAREA_HEIGHT_MOBILE: number;
1312
- };
1313
- };
1314
- name: StringConstructor;
1315
- size: StringConstructor;
1316
- form: StringConstructor;
1317
- label: StringConstructor;
1318
- height: NumberConstructor;
1319
- resize: StringConstructor;
1320
- tabindex: {
1321
- type: StringConstructor;
1322
- default: string;
1323
- };
1324
- disabled: BooleanConstructor;
1325
- readonly: BooleanConstructor;
1326
- hoverExpand: BooleanConstructor;
1327
- mask: BooleanConstructor;
1328
- suffixIcon: (StringConstructor | ObjectConstructor)[];
1329
- prefixIcon: (StringConstructor | ObjectConstructor)[];
1330
- modelValue: PropType<string | number | null>;
1331
- type: {
1332
- type: StringConstructor;
1333
- default: string;
1334
- };
1335
- memorySpace: {
1336
- type: NumberConstructor;
1337
- default: number;
1338
- };
1339
- vertical: {
1340
- type: BooleanConstructor;
1341
- default: boolean;
1342
- };
1343
- selectMenu: {
1344
- type: {
1345
- (arrayLength: number): {
1346
- id: string;
1347
- label: string;
1348
- }[];
1349
- (...items: {
1350
- id: string;
1351
- label: string;
1352
- }[]): {
1353
- id: string;
1354
- label: string;
1355
- }[];
1356
- new (arrayLength: number): {
1357
- id: string;
1358
- label: string;
1359
- }[];
1360
- new (...items: {
1361
- id: string;
1362
- label: string;
1363
- }[]): {
1364
- id: string;
1365
- label: string;
1366
- }[];
1367
- isArray(arg: any): arg is any[];
1368
- readonly prototype: any[];
1369
- from<T>(arrayLike: ArrayLike<T>): T[];
1370
- from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
1371
- from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
1372
- from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
1373
- of<T_4>(...items: T_4[]): T_4[];
1374
- readonly [Symbol.species]: ArrayConstructor;
1375
- };
1376
- default: () => never[];
1377
- };
1378
- ellipsis: {
1379
- type: BooleanConstructor;
1380
- default: boolean;
1381
- };
1382
- contentStyle: {
1383
- type: ObjectConstructor;
1384
- default: () => {};
1385
- };
1386
- isSelect: {
1387
- type: BooleanConstructor;
1388
- default: boolean;
1389
- };
1390
- tips: StringConstructor;
1391
- counter: {
1392
- type: BooleanConstructor;
1393
- default: boolean;
1394
- };
1395
- autosize: {
1396
- type: (BooleanConstructor | ObjectConstructor)[];
1397
- default: boolean;
1398
- };
1399
- clearable: {
1400
- type: BooleanConstructor;
1401
- default: boolean;
1402
- };
1403
- autocomplete: {
1404
- type: StringConstructor;
1405
- default: string;
1406
- };
1407
- showPassword: {
1408
- type: BooleanConstructor;
1409
- default: boolean;
1410
- };
1411
- showWordLimit: {
1412
- type: BooleanConstructor;
1413
- default: boolean;
1414
- };
1415
- showTitle: {
1416
- type: BooleanConstructor;
1417
- default: boolean;
1418
- };
1419
- validateEvent: {
1420
- type: BooleanConstructor;
1421
- default: boolean;
1422
- };
1423
- popupMore: {
1424
- type: BooleanConstructor;
1425
- default: boolean;
1426
- };
1427
- textareaTitle: {
1428
- type: StringConstructor;
1429
- default: string;
1430
- };
1431
- displayOnly: {
1432
- type: BooleanConstructor;
1433
- default: boolean;
1434
- };
1435
- displayOnlyContent: {
1436
- type: StringConstructor;
1437
- default: string;
1438
- };
1439
- customClass: {
1440
- type: StringConstructor;
1441
- default: string;
1442
- };
1443
- frontClearIcon: {
1444
- type: BooleanConstructor;
1445
- default: boolean;
1446
- };
1447
- showEmptyValue: {
1448
- type: BooleanConstructor;
1449
- default: undefined;
1450
- };
1451
- textAlign: {
1452
- type: StringConstructor;
1453
- default: string;
1454
- };
1455
- width: {
1456
- type: PropType<string | number | null>;
1457
- };
1458
- showTooltip: {
1459
- type: BooleanConstructor;
1460
- default: boolean;
1461
- };
1462
- inputBoxType: {
1463
- type: StringConstructor;
1464
- default: string;
1465
- validator: (value: string) => boolean;
1466
- };
1467
- tiny_mode: StringConstructor;
1468
- tiny_mode_root: BooleanConstructor;
1469
- tiny_template: (ObjectConstructor | FunctionConstructor)[];
1470
- tiny_renderless: FunctionConstructor;
1471
- tiny_theme: StringConstructor;
1472
- tiny_mcp_config: ObjectConstructor;
1473
- tiny_chart_theme: ObjectConstructor;
1474
- }>>, () => VNode<RendererNode, RendererElement, {
1475
- [key: string]: any;
1476
- }>, {}, {}, {}, {
1477
- disabled: boolean;
1478
- type: string;
1479
- ellipsis: boolean;
1480
- mask: boolean;
1481
- vertical: boolean;
1482
- customClass: string;
1483
- tiny_mode_root: boolean;
1484
- _constants: Record<string, any>;
1485
- tabindex: string;
1486
- showTitle: boolean;
1487
- readonly: boolean;
1488
- hoverExpand: boolean;
1489
- memorySpace: number;
1490
- selectMenu: {
1491
- id: string;
1492
- label: string;
1493
- }[];
1494
- contentStyle: Record<string, any>;
1495
- isSelect: boolean;
1496
- counter: boolean;
1497
- autosize: boolean | Record<string, any>;
1498
- clearable: boolean;
1499
- autocomplete: string;
1500
- showPassword: boolean;
1501
- showWordLimit: boolean;
1502
- validateEvent: boolean;
1503
- popupMore: boolean;
1504
- textareaTitle: string;
1505
- displayOnly: boolean;
1506
- displayOnlyContent: string;
1507
- frontClearIcon: boolean;
1508
- showEmptyValue: boolean;
1509
- textAlign: string;
1510
- showTooltip: boolean;
1511
- inputBoxType: string;
1512
- }> | null;
1513
- buttonsContainerRef: HTMLDivElement;
1514
- suggestionsListRef: HTMLDivElement;
489
+ containerWrapperRef: HTMLDivElement;
490
+ containerRef: HTMLDivElement;
491
+ floatingItemsRef: HTMLDivElement;
1515
492
  };
1516
493
  rootEl: HTMLDivElement;
1517
494
  };
1518
495
 
1519
496
  declare function __VLS_template_7(): {
1520
497
  attrs: Partial<{}>;
1521
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1522
- refs: {};
1523
- rootEl: HTMLDivElement;
1524
- };
1525
-
1526
- declare function __VLS_template_8(): {
1527
- attrs: Partial<{}>;
1528
- slots: {
1529
- 'capsule-icon'?(_: {
1530
- suggestion: any;
1531
- }): any;
1532
- trigger?(_: {
1533
- onTrigger: TriggerHandler;
1534
- onKeyDown: (e: KeyboardEvent) => void;
1535
- onInput: (event: Event, text: string) => boolean;
1536
- }): any;
1537
- 'title-icon'?(_: {}): any;
1538
- 'category-label'?(_: {
1539
- category: any;
1540
- }): any;
1541
- item?(_: {
1542
- item: SuggestionItem;
1543
- active: boolean;
1544
- }): any;
1545
- 'loading-indicator'?(_: {}): any;
1546
- empty?(_: {}): any;
1547
- };
498
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1548
499
  refs: {
1549
- rootRef: HTMLDivElement;
1550
- panelRef: ({
500
+ basePopperRef: ({
1551
501
  $: ComponentInternalInstance;
1552
502
  $data: {};
1553
- $props: Partial<{
1554
- title: string;
1555
- loading: boolean;
1556
- categories: Category[];
1557
- maxVisibleItems: number;
1558
- }> & Omit<{
1559
- readonly items: SuggestionItem[];
1560
- readonly title: string;
1561
- readonly loading: boolean;
1562
- readonly categories: Category[];
1563
- readonly maxVisibleItems: number;
1564
- readonly onClose?: ((...args: any[]) => any) | undefined;
1565
- readonly onSelect?: ((...args: any[]) => any) | undefined;
1566
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
1567
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
1568
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
503
+ $props: {
504
+ readonly appendTo?: (string | HTMLElement) | undefined;
505
+ readonly offset?: number | {
506
+ mainAxis?: number;
507
+ crossAxis?: number;
508
+ } | undefined;
509
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
510
+ readonly preventOverflow?: boolean | undefined;
511
+ readonly renderAllTriggers?: boolean | undefined;
512
+ readonly show?: boolean | undefined;
513
+ readonly transitionProps?: TransitionProps | undefined;
514
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
515
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1569
516
  $attrs: {
1570
517
  [x: string]: unknown;
1571
518
  };
1572
519
  $refs: {
1573
520
  [x: string]: unknown;
521
+ } & {
522
+ popperRef: HTMLDivElement;
1574
523
  };
1575
524
  $slots: Readonly<{
1576
525
  [name: string]: Slot<any> | undefined;
@@ -1578,46 +527,26 @@ declare function __VLS_template_8(): {
1578
527
  $root: ComponentPublicInstance | null;
1579
528
  $parent: ComponentPublicInstance | null;
1580
529
  $host: Element | null;
1581
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
1582
- $el: HTMLDivElement;
1583
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1584
- items: {
1585
- type: PropType<SuggestionItem[]>;
1586
- required: true;
1587
- };
1588
- categories: {
1589
- type: PropType<Category[]>;
1590
- default: () => never[];
1591
- };
1592
- loading: {
1593
- type: BooleanConstructor;
1594
- default: boolean;
530
+ $emit: (event: string, ...args: any[]) => void;
531
+ $el: any;
532
+ $options: ComponentOptionsBase<Readonly<{
533
+ appendTo?: string | HTMLElement;
534
+ offset?: number | {
535
+ mainAxis?: number;
536
+ crossAxis?: number;
1595
537
  };
1596
- title: {
1597
- type: StringConstructor;
1598
- default: string;
1599
- };
1600
- maxVisibleItems: {
1601
- type: NumberConstructor;
1602
- default: number;
1603
- };
1604
- }>> & Readonly<{
1605
- onClose?: ((...args: any[]) => any) | undefined;
1606
- onSelect?: ((...args: any[]) => any) | undefined;
1607
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1608
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1609
- }>, {
1610
- handleKeyDown: (e: KeyboardEvent) => void;
1611
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1612
- close: (...args: any[]) => void;
1613
- select: (...args: any[]) => void;
1614
- "category-select": (...args: any[]) => void;
1615
- "item-hover": (...args: any[]) => void;
1616
- }, string, {
1617
- title: string;
1618
- loading: boolean;
1619
- categories: Category[];
1620
- maxVisibleItems: number;
538
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
539
+ preventOverflow?: boolean;
540
+ renderAllTriggers?: boolean;
541
+ show?: boolean;
542
+ transitionProps?: TransitionProps;
543
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
544
+ }> & Readonly<{}>, {
545
+ triggerRef: ComputedRef<MaybeElement>;
546
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
547
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
548
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
549
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1621
550
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1622
551
  beforeCreate?: (() => void) | (() => void)[];
1623
552
  created?: (() => void) | (() => void)[];
@@ -1639,71 +568,66 @@ declare function __VLS_template_8(): {
1639
568
  $nextTick: nextTick;
1640
569
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1641
570
  } & Readonly<{
1642
- title: string;
1643
- loading: boolean;
1644
- categories: Category[];
1645
- maxVisibleItems: number;
1646
- }> & Omit<Readonly<ExtractPropTypes< {
1647
- items: {
1648
- type: PropType<SuggestionItem[]>;
1649
- required: true;
1650
- };
1651
- categories: {
1652
- type: PropType<Category[]>;
1653
- default: () => never[];
1654
- };
1655
- loading: {
1656
- type: BooleanConstructor;
1657
- default: boolean;
1658
- };
1659
- title: {
1660
- type: StringConstructor;
1661
- default: string;
1662
- };
1663
- maxVisibleItems: {
1664
- type: NumberConstructor;
1665
- default: number;
1666
- };
1667
- }>> & Readonly<{
1668
- onClose?: ((...args: any[]) => any) | undefined;
1669
- onSelect?: ((...args: any[]) => any) | undefined;
1670
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1671
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1672
- }>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
1673
- handleKeyDown: (e: KeyboardEvent) => void;
571
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
572
+ }> & Omit<Readonly<{
573
+ appendTo?: string | HTMLElement;
574
+ offset?: number | {
575
+ mainAxis?: number;
576
+ crossAxis?: number;
577
+ };
578
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
579
+ preventOverflow?: boolean;
580
+ renderAllTriggers?: boolean;
581
+ show?: boolean;
582
+ transitionProps?: TransitionProps;
583
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
584
+ }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
585
+ triggerRef: ComputedRef<MaybeElement>;
586
+ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
587
+ popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
1674
588
  }> & {} & ComponentCustomProperties & {} & {
1675
- $slots: {
1676
- 'title-icon'?(_: {}): any;
1677
- 'loading-indicator'?(_: {}): any;
1678
- item?(_: {
1679
- item: SuggestionItem;
1680
- active: boolean;
1681
- }): any;
1682
- empty?(_: {}): any;
589
+ $slots: Readonly<{
590
+ trigger?: () => VNode[];
591
+ content?: () => VNode[];
592
+ backdrop?: () => VNode[];
593
+ }> & {
594
+ trigger?: () => VNode[];
595
+ content?: () => VNode[];
596
+ backdrop?: () => VNode[];
1683
597
  };
1684
598
  }) | null;
599
+ listRef: HTMLUListElement;
600
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
601
+ show?: TooltipContentProps["show"];
602
+ } & TooltipContentProps> & Readonly<{
603
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
604
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
605
+ "update:show": (value: boolean | undefined) => any;
606
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
607
+ P: {};
608
+ B: {};
609
+ D: {};
610
+ C: {};
611
+ M: {};
612
+ Defaults: {};
613
+ }, Readonly<{
614
+ show?: TooltipContentProps["show"];
615
+ } & TooltipContentProps> & Readonly<{
616
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
617
+ }>, {}, {}, {}, {}, {}> | null;
1685
618
  };
1686
- rootEl: HTMLDivElement;
619
+ rootEl: any;
1687
620
  };
1688
621
 
1689
- declare function __VLS_template_9(): {
622
+ declare function __VLS_template_8(): {
1690
623
  attrs: Partial<{}>;
1691
- slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1692
- refs: {
1693
- containerWrapperRef: HTMLDivElement;
1694
- containerRef: HTMLDivElement;
1695
- };
624
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
625
+ refs: {};
1696
626
  rootEl: HTMLDivElement;
1697
627
  };
1698
628
 
1699
629
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1700
630
 
1701
- declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1702
-
1703
- declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1704
-
1705
- declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
1706
-
1707
631
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1708
632
 
1709
633
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1718,32 +642,12 @@ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
1718
642
 
1719
643
  declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
1720
644
 
1721
- declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
1722
-
1723
645
  declare type __VLS_WithTemplateSlots<T, S> = T & {
1724
646
  new (): {
1725
647
  $slots: S;
1726
648
  };
1727
649
  };
1728
650
 
1729
- declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1730
- new (): {
1731
- $slots: S;
1732
- };
1733
- };
1734
-
1735
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1736
- new (): {
1737
- $slots: S;
1738
- };
1739
- };
1740
-
1741
- declare type __VLS_WithTemplateSlots_12<T, S> = T & {
1742
- new (): {
1743
- $slots: S;
1744
- };
1745
- };
1746
-
1747
651
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1748
652
  new (): {
1749
653
  $slots: S;
@@ -1786,12 +690,6 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
1786
690
  };
1787
691
  };
1788
692
 
1789
- declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1790
- new (): {
1791
- $slots: S;
1792
- };
1793
- };
1794
-
1795
693
  export declare interface ActionButtonsProps {
1796
694
  loading?: boolean;
1797
695
  disabled?: boolean;
@@ -1806,6 +704,7 @@ export declare interface ActionButtonsProps {
1806
704
  submitType?: SubmitTrigger;
1807
705
  showShortcuts?: boolean;
1808
706
  isOverLimit?: boolean;
707
+ stopText?: string;
1809
708
  }
1810
709
 
1811
710
  export declare type AutoSize = boolean | {
@@ -1822,51 +721,21 @@ declare interface BaseHistoryProps {
1822
721
  selected?: string;
1823
722
  }
1824
723
 
1825
- declare const Bubble: typeof _default_14 & {
724
+ declare interface BaseTextItem {
725
+ id: string;
726
+ type: string;
727
+ content: string;
728
+ }
729
+
730
+ declare const Bubble: typeof _default_12 & {
1826
731
  install: typeof bubbleInstall;
1827
732
  };
1828
733
  export { Bubble }
1829
734
  export { Bubble as TrBubble }
1830
735
 
1831
- export declare const BubbleChainMessageRenderer: DefineComponent< {
1832
- items: ChainItem[];
1833
- html?: boolean;
1834
- contentClass?: string;
1835
- contentRenderer?: (content: string) => string;
1836
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
1837
- items: ChainItem[];
1838
- html?: boolean;
1839
- contentClass?: string;
1840
- contentRenderer?: (content: string) => string;
1841
- }> & Readonly<{}>, {
1842
- html: boolean;
1843
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1844
-
1845
- export declare interface BubbleCommonProps {
1846
- /**
1847
- * 气泡对齐位置
1848
- */
1849
- placement?: 'start' | 'end';
1850
- /**
1851
- * 气泡头像
1852
- */
1853
- avatar?: VNode;
1854
- /**
1855
- * 气泡形状,默认 'corner'
1856
- */
1857
- shape?: 'rounded' | 'corner';
1858
- /**
1859
- * 气泡内容渲染器。
1860
- * 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1861
- */
1862
- contentRenderer?: BubbleMessageRenderer;
1863
- hidden?: boolean;
1864
- maxWidth?: string | number;
1865
- }
1866
-
1867
736
  declare const bubbleInstall: (app: App) => void;
1868
737
 
1869
- declare const BubbleList: typeof _default_15 & {
738
+ declare const BubbleList: typeof _default_13 & {
1870
739
  install: typeof bubbleListInstall;
1871
740
  };
1872
741
  export { BubbleList }
@@ -1882,85 +751,37 @@ export declare interface BubbleListProps {
1882
751
  * 每个角色的默认配置项
1883
752
  */
1884
753
  roles?: Record<string, BubbleRoleConfig>;
1885
- /**
1886
- * 列表是否加载中
1887
- */
1888
- loading?: boolean;
1889
- /**
1890
- * 指定哪个角色可以有加载中状态
1891
- */
1892
- loadingRole?: string;
1893
754
  autoScroll?: boolean;
1894
755
  }
1895
756
 
1896
- export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
1897
- readonly md: default_2;
1898
- readonly mdConfig: Options;
1899
- readonly dompurifyConfig: Config;
1900
- readonly sanitizeDisabled: boolean;
1901
- readonly styleOptions: {
1902
- class?: string;
1903
- style?: string;
1904
- };
1905
- constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
1906
- render(options: {
1907
- content?: string;
1908
- }): VNode<RendererNode, RendererElement, {
1909
- [key: string]: any;
1910
- }>;
1911
- }
1912
-
1913
- declare interface BubbleMarkdownRendererOptions {
1914
- mdConfig?: Options;
1915
- dompurifyConfig?: Config;
1916
- sanitizeDisabled?: boolean;
1917
- styleOptions?: {
1918
- class?: string;
1919
- style?: string;
1920
- };
1921
- }
1922
-
1923
- export declare abstract class BubbleMessageClassRenderer {
1924
- abstract render(options: {
1925
- [key: string]: any;
1926
- }): VNode;
1927
- }
1928
-
1929
- export declare type BubbleMessageFunctionRenderer = (options: {
1930
- [key: string]: any;
1931
- }) => VNode;
1932
-
1933
- export declare interface BubbleMessageProps {
1934
- type: string;
1935
- [key: string]: any;
1936
- }
1937
-
1938
- export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component | {
1939
- component: Component;
1940
- defaultProps: Record<string, unknown>;
1941
- };
757
+ export declare type BubblePalcement = 'start' | 'end';
1942
758
 
1943
- export declare interface BubbleProps extends BubbleCommonProps {
759
+ export declare interface BubbleProps {
1944
760
  /**
1945
761
  * 气泡内容
1946
762
  */
1947
763
  content?: string;
1948
- messages?: BubbleMessageProps[];
1949
764
  id?: string | number | symbol;
765
+ /**
766
+ * 气泡位置
767
+ */
768
+ placement?: BubblePalcement;
769
+ avatar?: VNode;
1950
770
  role?: string;
771
+ /**
772
+ * 内容类型
773
+ */
774
+ type?: 'text' | 'markdown';
1951
775
  loading?: boolean;
1952
776
  aborted?: boolean;
777
+ /**
778
+ * type 为 'markdown' 时,markdown 的配置项
779
+ */
780
+ mdConfig?: Options;
781
+ maxWidth?: string | number;
1953
782
  }
1954
783
 
1955
- declare const BubbleProvider: typeof _default_16 & {
1956
- install: typeof bubbleProviderInstall;
1957
- };
1958
- export { BubbleProvider }
1959
- export { BubbleProvider as TrBubbleProvider }
1960
-
1961
- declare const bubbleProviderInstall: (app: App) => void;
1962
-
1963
- export declare type BubbleRoleConfig = BubbleCommonProps & {
784
+ export declare type BubbleRoleConfig = Pick<BubbleProps, 'placement' | 'avatar' | 'type' | 'mdConfig' | 'maxWidth'> & {
1964
785
  slots?: BubbleSlots;
1965
786
  };
1966
787
 
@@ -1976,27 +797,6 @@ export declare interface BubbleSlots {
1976
797
  }) => unknown;
1977
798
  }
1978
799
 
1979
- /**
1980
- * 分类定义
1981
- */
1982
- export declare interface Category {
1983
- /** 唯一标识 */
1984
- id: string;
1985
- /** 显示名称 */
1986
- label: string;
1987
- /** 可选图标 */
1988
- icon?: VNode;
1989
- /** 该分类下的指令项 */
1990
- items: SuggestionItem[];
1991
- }
1992
-
1993
- declare interface Category_2 {
1994
- id: string;
1995
- label: string;
1996
- icon?: string;
1997
- questions: Question_2[];
1998
- }
1999
-
2000
800
  export declare interface ContainerProps {
2001
801
  /**
2002
802
  * model:show
@@ -2020,51 +820,31 @@ declare const _default: {
2020
820
  };
2021
821
  export default _default;
2022
822
 
2023
- declare const _default_10: typeof _default_26 & {
823
+ declare const _default_10: typeof _default_23 & {
2024
824
  install: typeof install_8;
2025
825
  };
2026
- export { _default_10 as Suggestion }
2027
- export { _default_10 as TrSuggestion }
826
+ export { _default_10 as SuggestionPopover }
827
+ export { _default_10 as TrSuggestionPopover }
2028
828
 
2029
- declare const _default_11: typeof _default_27 & {
829
+ declare const _default_11: typeof _default_24 & {
2030
830
  install: typeof install_9;
2031
831
  };
2032
- export { _default_11 as SuggestionPills }
2033
- export { _default_11 as TrSuggestionPills }
2034
-
2035
- declare const _default_12: typeof _default_29 & {
2036
- install: typeof install_10;
2037
- };
2038
- export { _default_12 as Question }
2039
- export { _default_12 as TrQuestion }
832
+ export { _default_11 as TrWelcome }
833
+ export { _default_11 as Welcome }
2040
834
 
2041
- declare const _default_13: typeof _default_30 & {
2042
- install: typeof install_11;
2043
- };
2044
- export { _default_13 as SuggestionPopover }
2045
- export { _default_13 as TrSuggestionPopover }
2046
-
2047
- declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
835
+ declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2048
836
 
2049
- declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
837
+ declare const _default_13: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2050
838
  scrollContainerRef: HTMLDivElement;
2051
839
  }, HTMLDivElement>;
2052
840
 
2053
- declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2054
-
2055
- declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2056
-
2057
- declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
841
+ declare const _default_14: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2058
842
 
2059
- declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
843
+ declare const _default_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2060
844
 
2061
- declare const _default_2: typeof _default_17 & {
2062
- install: typeof install;
2063
- };
2064
- export { _default_2 as Container }
2065
- export { _default_2 as TrContainer }
845
+ declare const _default_16: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2066
846
 
2067
- declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
847
+ declare const _default_17: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2068
848
  operation: (name: string) => any;
2069
849
  action: (name: string) => any;
2070
850
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -2076,42 +856,42 @@ actionsLimit: number;
2076
856
  sourcesLinesLimit: number;
2077
857
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2078
858
 
2079
- declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
859
+ declare const _default_18: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2080
860
  size: string | number;
2081
861
  svgSize: string | number;
2082
862
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2083
863
 
2084
- declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
864
+ declare const _default_19: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2085
865
 
2086
- declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2087
-
2088
- declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
866
+ declare const _default_2: typeof _default_14 & {
867
+ install: typeof install;
868
+ };
869
+ export { _default_2 as Container }
870
+ export { _default_2 as TrContainer }
2089
871
 
2090
- declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
872
+ declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2091
873
 
2092
- declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
874
+ declare const _default_21: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2093
875
 
2094
- declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
876
+ declare const _default_22: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2095
877
 
2096
- declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
878
+ declare const _default_23: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2097
879
 
2098
- declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
880
+ declare const _default_24: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2099
881
 
2100
- declare const _default_3: typeof _default_18 & {
882
+ declare const _default_3: typeof _default_15 & {
2101
883
  install: typeof install_2;
2102
884
  };
2103
885
  export { _default_3 as Conversations }
2104
886
  export { _default_3 as TrConversations }
2105
887
 
2106
- declare const _default_30: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2107
-
2108
- declare const _default_4: typeof _default_19 & {
888
+ declare const _default_4: typeof _default_16 & {
2109
889
  install: typeof install_3;
2110
890
  };
2111
891
  export { _default_4 as DropdownMenu }
2112
892
  export { _default_4 as TrDropdownMenu }
2113
893
 
2114
- declare const _default_5: typeof _default_20 & {
894
+ declare const _default_5: typeof _default_17 & {
2115
895
  install: typeof install_4;
2116
896
  };
2117
897
  export { _default_5 as Feedback }
@@ -2124,30 +904,46 @@ declare const _default_6: {
2124
904
  export { _default_6 as History }
2125
905
  export { _default_6 as TrHistory }
2126
906
 
2127
- declare const _default_7: typeof _default_21 & {
907
+ declare const _default_7: typeof _default_18 & {
2128
908
  install: typeof install_5;
2129
909
  };
2130
910
  export { _default_7 as IconButton }
2131
911
  export { _default_7 as TrIconButton }
2132
912
 
2133
- declare const _default_8: typeof _default_24 & {
913
+ declare const _default_8: typeof default_2 & {
2134
914
  install: typeof install_6;
2135
915
  };
2136
916
  export { _default_8 as Sender }
2137
917
  export { _default_8 as TrSender }
2138
918
 
2139
- declare const _default_9: typeof _default_25 & {
919
+ declare const _default_9: typeof _default_22 & {
2140
920
  install: typeof install_7;
2141
921
  };
2142
- export { _default_9 as TrWelcome }
2143
- export { _default_9 as Welcome }
922
+ export { _default_9 as SuggestionPills }
923
+ export { _default_9 as TrSuggestionPills }
2144
924
 
2145
925
  export declare interface DropdownMenuEmits {
2146
926
  (e: 'item-click', item: DropdownMenuItem): void;
927
+ /**
928
+ * 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
929
+ */
930
+ (e: 'click-outside', event: MouseEvent): void;
931
+ }
932
+
933
+ export declare interface DropdownMenuEventProps {
934
+ onItemClick?: (item: DropdownMenuItem) => void;
935
+ onClickOutside?: (event: MouseEvent) => void;
2147
936
  }
2148
937
 
2149
938
  export declare interface DropdownMenuEvents {
939
+ /**
940
+ * @deprecated
941
+ */
2150
942
  itemClick?: (item: DropdownMenuItem) => void;
943
+ /**
944
+ * @deprecated
945
+ */
946
+ clickOutside?: (event: MouseEvent) => void;
2151
947
  }
2152
948
 
2153
949
  export declare interface DropdownMenuItem {
@@ -2156,13 +952,20 @@ export declare interface DropdownMenuItem {
2156
952
  }
2157
953
 
2158
954
  export declare interface DropdownMenuProps {
955
+ appendTo?: string | HTMLElement;
2159
956
  items: DropdownMenuItem[];
2160
- minWidth?: string | number;
2161
- topOffset?: string | number;
957
+ /**
958
+ * 是否显示菜单,仅在 trigger 为 'manual' 时有效
959
+ */
960
+ show?: boolean;
961
+ /**
962
+ * 触发方式。默认值为 'click'
963
+ */
964
+ trigger?: 'click' | 'hover' | 'manual';
2162
965
  }
2163
966
 
2164
967
  export declare interface DropdownMenuSlots {
2165
- default?: () => unknown;
968
+ trigger?: () => VNode | VNode[];
2166
969
  }
2167
970
 
2168
971
  export declare interface FeedbackEvents {
@@ -2237,10 +1040,6 @@ export declare type InputMode = 'single' | 'multiple';
2237
1040
 
2238
1041
  declare const install: <T>(app: App<T>) => void;
2239
1042
 
2240
- declare const install_10: <T>(app: App<T>) => void;
2241
-
2242
- declare const install_11: <T>(app: App<T>) => void;
2243
-
2244
1043
  declare const install_2: <T>(app: App<T>) => void;
2245
1044
 
2246
1045
  declare const install_3: <T>(app: App<T>) => void;
@@ -2276,7 +1075,7 @@ export declare type MultiTabHistoryProps = {
2276
1075
  data: Record<string, HistoryData>;
2277
1076
  } & BaseHistoryProps;
2278
1077
 
2279
- declare const Prompt: typeof _default_22 & {
1078
+ declare const Prompt: typeof _default_19 & {
2280
1079
  install: typeof installPrompt;
2281
1080
  };
2282
1081
  export { Prompt }
@@ -2309,7 +1108,7 @@ export declare interface PromptProps {
2309
1108
  badge?: string | VNode;
2310
1109
  }
2311
1110
 
2312
- declare const Prompts: typeof _default_23 & {
1111
+ declare const Prompts: typeof _default_20 & {
2313
1112
  install: typeof installPrompts;
2314
1113
  };
2315
1114
  export { Prompts }
@@ -2346,55 +1145,9 @@ export declare interface PromptsSlots {
2346
1145
  footer?: () => unknown;
2347
1146
  }
2348
1147
 
2349
- declare interface Question_2 {
2350
- id: string;
2351
- text: string;
2352
- keywords?: string[];
2353
- }
2354
-
2355
- /**
2356
- * Question组件属性定义
2357
- */
2358
- declare interface QuestionProps {
2359
- /**
2360
- * 问题分类列表
2361
- * 包含多个分类,每个分类下有多个问题
2362
- */
2363
- categories: Category_2[];
2364
- /**
2365
- * 浮动显示的问题列表
2366
- * 显示在组件底部的常见问题胶囊
2367
- */
2368
- commonQuestions: Question_2[];
2369
- /**
2370
- * 是否初始展开常见问题
2371
- * @default false
2372
- */
2373
- initialExpanded?: boolean;
2374
- /**
2375
- * 弹窗宽度
2376
- * @default '640px'
2377
- */
2378
- modalWidth?: string;
2379
- /**
2380
- * 主题类型
2381
- * @default 'light'
2382
- */
2383
- theme?: ThemeType_3;
2384
- /**
2385
- * 是否点击外部关闭弹窗
2386
- * @default true
2387
- */
2388
- closeOnClickOutside?: boolean;
2389
- /**
2390
- * 是否显示加载中状态
2391
- * @default false
2392
- */
2393
- loading?: boolean;
2394
- }
2395
-
2396
1148
  export declare type SenderEmits = {
2397
1149
  (e: 'update:modelValue', value: string): void;
1150
+ (e: 'update:templateData', value: UserItem[]): void;
2398
1151
  (e: 'submit', value: string): void;
2399
1152
  (e: 'clear'): void;
2400
1153
  (e: 'speech-start'): void;
@@ -2428,19 +1181,8 @@ export declare interface SenderProps {
2428
1181
  suggestions?: string[];
2429
1182
  suggestionPopupWidth?: string | number;
2430
1183
  theme?: ThemeType;
2431
- template?: string;
2432
- hasContent?: boolean;
2433
- templateInitialValues?: Record<string, string>;
2434
- }
2435
-
2436
- /**
2437
- * 设置模板的参数接口
2438
- */
2439
- export declare interface SetTemplateParams {
2440
- /** 模板字符串,格式为普通文本与 [占位符] 的组合 */
2441
- template: string;
2442
- /** 字段初始值,键为占位符文本,值为初始内容 */
2443
- initialValues?: Record<string, string>;
1184
+ templateData?: UserItem[];
1185
+ stopText?: string;
2444
1186
  }
2445
1187
 
2446
1188
  export declare type SingleTabHistoryProps = {
@@ -2477,81 +1219,30 @@ export declare interface SpeechState {
2477
1219
 
2478
1220
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2479
1221
 
2480
- declare interface SuggestionBaseItem {
1222
+ export declare interface SuggestionBaseItem {
2481
1223
  id: string;
2482
1224
  text: string;
2483
1225
  }
2484
1226
 
2485
- declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
2486
-
2487
- /**
2488
- * 组件事件
2489
- */
2490
- export declare interface SuggestionEmits {
2491
- /** 双向绑定打开状态 (v-model) */
2492
- (e: 'update:open', value: boolean): void;
2493
- /** 选中指令项 */
2494
- (e: 'select', value: string, context?: TriggerContext): void;
2495
- /** 关闭面板 */
2496
- (e: 'close'): void;
2497
- /** 触发回调 */
2498
- (e: 'trigger', handler: TriggerHandler): void;
2499
- /** 选择分类 */
2500
- (e: 'category-select', category: Category): void;
2501
- /** 点击胶囊指令 */
2502
- (e: 'suggestion-select', item: SuggestionItem): void;
2503
- /** 展开/收起状态变化 */
2504
- (e: 'update:expanded', expanded: boolean): void;
2505
- /** 填充模板到输入框 */
2506
- (e: 'fill-template', template: string): void;
2507
- }
1227
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2508
1228
 
2509
- declare interface SuggestionGroup<T = Record<string, unknown>> {
1229
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2510
1230
  group: string;
2511
1231
  label: string;
2512
1232
  icon?: VNode | Component;
2513
- items: SuggestionItem_2<T>[];
2514
- }
2515
-
2516
- /**
2517
- * 指令项定义
2518
- */
2519
- export declare interface SuggestionItem {
2520
- /** 唯一标识 */
2521
- id: string;
2522
- /** 显示文本 */
2523
- text: string;
2524
- /** 指令值 */
2525
- value: string;
2526
- /** 图标 */
2527
- icon?: VNode;
2528
- /** 关键词,用于搜索和过滤 */
2529
- keywords?: string[];
2530
- /** 描述文本 */
2531
- description?: string;
2532
- /** 指令模板,用于在输入框中显示可编辑的模板 */
2533
- template?: string;
1233
+ items: SuggestionItem<T>[];
2534
1234
  }
2535
1235
 
2536
- declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
1236
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2537
1237
 
2538
- export declare type SuggestionPillAction = {
2539
- type: 'popover';
2540
- props: SuggestionPopoverProps;
2541
- slots?: Omit<SuggestionPopoverSlots, 'default'>;
2542
- events?: SuggestionPopoverEvents;
2543
- } | {
2544
- type: 'menu';
2545
- props: DropdownMenuProps;
2546
- events?: DropdownMenuEvents;
2547
- };
1238
+ export declare type SuggestionPillAction = SuggestionPillPopoverAction | SuggestionPillMenuAction;
2548
1239
 
2549
1240
  export declare type SuggestionPillBaseItem<T> = {
2550
1241
  id: string;
2551
1242
  action?: SuggestionPillAction;
2552
1243
  } & T;
2553
1244
 
2554
- declare const SuggestionPillButton: typeof _default_28 & {
1245
+ declare const SuggestionPillButton: typeof _default_21 & {
2555
1246
  install: typeof installPillButton;
2556
1247
  };
2557
1248
  export { SuggestionPillButton }
@@ -2574,6 +1265,25 @@ export declare type SuggestionPillItem<T = Record<string, unknown>> = Suggestion
2574
1265
  icon: VNode | Component;
2575
1266
  });
2576
1267
 
1268
+ export declare type SuggestionPillMenuAction = {
1269
+ type: 'menu';
1270
+ props: DropdownMenuProps & DropdownMenuEventProps;
1271
+ /**
1272
+ * @deprecated use onXXX in props instead
1273
+ */
1274
+ events?: DropdownMenuEvents;
1275
+ };
1276
+
1277
+ export declare type SuggestionPillPopoverAction = {
1278
+ type: 'popover';
1279
+ props: SuggestionPopoverProps & SuggestionPopoverEventProps;
1280
+ slots?: Omit<SuggestionPopoverSlots, 'default'>;
1281
+ /**
1282
+ * @deprecated use onXXX in props instead
1283
+ */
1284
+ events?: SuggestionPopoverEvents;
1285
+ };
1286
+
2577
1287
  export declare interface SuggestionPillsEmits {
2578
1288
  (e: 'item-click', item: SuggestionPillItem): void;
2579
1289
  (e: 'click-outside', event: MouseEvent): void;
@@ -2592,6 +1302,18 @@ export declare interface SuggestionPillsProps {
2592
1302
  * @default 'hover'
2593
1303
  */
2594
1304
  showAllButtonOn?: 'hover' | 'always';
1305
+ /**
1306
+ * 控制多余按钮如何展示
1307
+ * - expand: 点击更多按钮展开所有项
1308
+ * - scroll: 横向滚动显示多余项
1309
+ * @default 'expand'
1310
+ */
1311
+ overflowMode?: 'expand' | 'scroll';
1312
+ /**
1313
+ * 鼠标悬停时是否自动滚动到可见区域
1314
+ * @default false
1315
+ */
1316
+ autoScrollOnHover?: boolean;
2595
1317
  }
2596
1318
 
2597
1319
  /**
@@ -2601,13 +1323,47 @@ export declare interface SuggestionPillsSlots {
2601
1323
  default?: () => VNode | VNode[];
2602
1324
  }
2603
1325
 
2604
- declare interface SuggestionPopoverEvents {
2605
- itemClick?: (item: SuggestionItem_2) => void;
1326
+ export declare interface SuggestionPopoverEmits {
1327
+ (e: 'item-click', item: SuggestionItem): void;
1328
+ (e: 'group-click', group: SuggestionGroup): void;
1329
+ (e: 'open'): void;
1330
+ (e: 'close'): void;
1331
+ (e: 'click-outside', event: MouseEvent): void;
1332
+ }
1333
+
1334
+ export declare interface SuggestionPopoverEventProps {
1335
+ onItemClick?: (item: SuggestionItem) => void;
1336
+ onGroupClick?: (group: SuggestionGroup) => void;
1337
+ onOpen?: () => void;
1338
+ onClose?: () => void;
1339
+ onClickOutside?: (event: MouseEvent) => void;
1340
+ }
1341
+
1342
+ export declare interface SuggestionPopoverEvents {
1343
+ /**
1344
+ * @deprecated use onItemClick in props instead
1345
+ */
1346
+ itemClick?: (item: SuggestionItem) => void;
1347
+ /**
1348
+ * @deprecated use onGroupClick in props instead
1349
+ */
2606
1350
  groupClick?: (group: SuggestionGroup) => void;
1351
+ /**
1352
+ * @deprecated use onOpen in props instead
1353
+ */
1354
+ open?: () => void;
1355
+ /**
1356
+ * @deprecated use onClose in props instead
1357
+ */
2607
1358
  close?: () => void;
1359
+ /**
1360
+ * @deprecated use onClickOutside in props instead
1361
+ */
1362
+ clickOutside?: (event: MouseEvent) => void;
2608
1363
  }
2609
1364
 
2610
- declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
1365
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
1366
+ appendTo?: string | HTMLElement;
2611
1367
  data: SuggestionData<T>;
2612
1368
  title?: string;
2613
1369
  icon?: VNode | Component;
@@ -2625,101 +1381,28 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2625
1381
  selectedGroup?: string;
2626
1382
  groupShowMoreTrigger?: 'click' | 'hover';
2627
1383
  loading?: boolean;
2628
- popoverWidth?: string | number;
2629
- popoverHeight?: string | number;
2630
- topOffset?: string | number;
1384
+ topOffset?: number;
2631
1385
  }
2632
1386
 
2633
- declare interface SuggestionPopoverSlots {
1387
+ export declare interface SuggestionPopoverSlots {
2634
1388
  default?: () => unknown;
2635
1389
  loading?: () => unknown;
2636
1390
  empty?: () => unknown;
2637
1391
  }
2638
1392
 
2639
- /**
2640
- * 组件属性
2641
- */
2642
- export declare interface SuggestionProps {
2643
- /** 触发快捷键列表 */
2644
- triggerKeys?: string[];
2645
- /** 指令项列表 */
2646
- items: SuggestionItem[];
2647
- /** 分类列表 */
2648
- categories?: Category[];
2649
- /** 是否显示面板 (支持v-model) */
2650
- open?: boolean;
2651
- /** 自定义类名 */
2652
- className?: string;
2653
- /** 主题,light或dark */
2654
- theme?: 'light' | 'dark';
2655
- /** 是否显示加载状态 */
2656
- loading?: boolean;
2657
- /** 是否点击外部关闭面板 */
2658
- closeOnOutsideClick?: boolean;
2659
- /** 面板标题 */
2660
- title?: string;
2661
- /** 最大显示条目数 */
2662
- maxVisibleItems?: number;
2663
- /** 默认是否展开完整指令列表 */
2664
- defaultExpanded?: boolean;
2665
- }
2666
-
2667
- /**
2668
- * 模板编辑器事件
2669
- */
2670
- export declare interface TemplateEditorEmits {
2671
- /** 输入事件 */
2672
- (e: 'input', value: string): void;
2673
- /** 内容变更状态 - 通知父组件是否有内容 */
2674
- (e: 'content-status', hasContent: boolean): void;
2675
- /** 提交事件 */
2676
- (e: 'submit', value: string): void;
2677
- /** 聚焦事件 */
2678
- (e: 'focus', event: FocusEvent): void;
2679
- /** 失焦事件 */
2680
- (e: 'blur', event: FocusEvent): void;
2681
- /** 模板内容为空时触发,通知父组件可以退出模板编辑模式 */
2682
- (e: 'empty-content'): void;
2683
- }
2684
-
2685
- /**
2686
- * 模板编辑器暴露的方法
2687
- */
2688
- export declare interface TemplateEditorExpose {
2689
- /** 聚焦到编辑器 */
2690
- focus: () => void;
2691
- /** 重置所有字段 */
2692
- resetFields: () => void;
2693
- /** 激活第一个字段 */
2694
- activateFirstField: () => void;
2695
- /** 获取当前DOM中的值 */
2696
- getValueFromDOM: () => string;
2697
- /** 设置模板和初始值 */
2698
- setTemplate: (params: SetTemplateParams) => void;
1393
+ export declare interface SuggestionTextPart {
1394
+ text: string;
1395
+ isMatch: boolean;
2699
1396
  }
2700
1397
 
2701
- /**
2702
- * 模板编辑器属性
2703
- */
2704
- export declare interface TemplateEditorProps {
2705
- /** 当前值 */
2706
- value?: string;
2707
- /** 是否自动聚焦 */
2708
- autofocus?: boolean;
1398
+ declare interface TemplateItem extends BaseTextItem {
1399
+ type: 'template';
1400
+ prefix: string;
1401
+ suffix: string;
2709
1402
  }
2710
1403
 
2711
- /**
2712
- * 模板部分定义
2713
- */
2714
- export declare interface TemplatePart {
2715
- /** 内容文本 */
2716
- content: string;
2717
- /** 是否为可编辑字段 */
2718
- isField: boolean;
2719
- /** 占位符文本 (当字段为空时显示) */
2720
- placeholder?: string;
2721
- /** 字段索引 (用于标识可编辑字段) */
2722
- fieldIndex?: number;
1404
+ declare interface TextItem extends BaseTextItem {
1405
+ type: 'text';
2723
1406
  }
2724
1407
 
2725
1408
  /**
@@ -2727,23 +1410,11 @@ export declare interface TemplatePart {
2727
1410
  */
2728
1411
  export declare type ThemeType = 'light' | 'dark';
2729
1412
 
2730
- declare type ThemeType_3 = 'light' | 'dark';
2731
-
2732
- /**
2733
- * 触发位置信息
2734
- */
2735
- export declare interface TriggerContext {
2736
- /** 触发的文本 */
2737
- text: string;
2738
- /** 触发的位置 */
2739
- position: number;
2740
- }
1413
+ export declare type UserItem = UserTextItem | UserTemplateItem;
2741
1414
 
2742
- /** 触发处理函数类型 */
2743
- export declare type TriggerHandler = (info: TriggerInfo) => void;
1415
+ export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
2744
1416
 
2745
- /** 触发信息类型 */
2746
- export declare type TriggerInfo = TriggerContext | false;
1417
+ export declare type UserTextItem = Omit<TextItem, 'id'>;
2747
1418
 
2748
1419
  export declare interface WelcomeProps {
2749
1420
  title: string;