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

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,36 @@ 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';
23
20
  import { nextTick } from 'vue';
24
21
  import { OnCleanup } from '@vue/reactivity';
25
22
  import { Options } from 'markdown-it';
26
- import { PropType } from 'vue';
27
23
  import { PublicProps } from 'vue';
28
24
  import { Ref } from 'vue';
29
- import { RendererElement } from 'vue';
30
- import { RendererNode } from 'vue';
31
- import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
32
25
  import { ShallowUnwrapRef } from 'vue';
33
26
  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
27
  import { TooltipContentProps } from './components/Tooltip.vue';
28
+ import { TransitionProps } from 'vue';
38
29
  import { VNode } from 'vue';
39
30
  import { VNodeProps } from 'vue';
40
31
  import { WatchOptions } from 'vue';
41
32
  import { WatchStopHandle } from 'vue';
42
33
 
43
34
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
44
- content: string;
45
- placement: "start" | "end";
46
- shape: "rounded" | "corner";
35
+ placement: BubblePalcement_2;
36
+ type: "text" | "markdown";
47
37
  maxWidth: string | number;
38
+ content: string;
48
39
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
49
40
 
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, {
41
+ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
123
42
  "update:show": (value: boolean) => any;
124
43
  "update:fullscreen": (value: boolean | undefined) => any;
125
44
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -127,626 +46,174 @@ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {},
127
46
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
128
47
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
129
48
 
130
- declare const __VLS_component_4: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
49
+ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
+ "update:show": (value: boolean) => any;
51
+ } & {
131
52
  "item-click": (item: DropdownMenuItem) => any;
132
- }, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
53
+ "click-outside": (event: MouseEvent) => any;
54
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
55
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
133
56
  "onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
57
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
134
58
  }>, {
135
- minWidth: string | number;
136
- topOffset: string | number;
59
+ trigger: "click" | "hover" | "manual";
137
60
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
138
- dropDownTriggerRef: HTMLDivElement;
139
- dropdownMenuRef: HTMLDivElement;
61
+ basePopperRef: ({
62
+ $: ComponentInternalInstance;
63
+ $data: {};
64
+ $props: {
65
+ readonly appendTo?: (string | HTMLElement) | undefined;
66
+ readonly offset?: number | {
67
+ mainAxis?: number;
68
+ crossAxis?: number;
69
+ } | undefined;
70
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
71
+ readonly preventOverflow?: boolean | undefined;
72
+ readonly show?: boolean | undefined;
73
+ readonly transitionProps?: TransitionProps | undefined;
74
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
75
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
76
+ $attrs: {
77
+ [x: string]: unknown;
78
+ };
79
+ $refs: {
80
+ [x: string]: unknown;
81
+ };
82
+ $slots: Readonly<{
83
+ [name: string]: Slot<any> | undefined;
84
+ }>;
85
+ $root: ComponentPublicInstance | null;
86
+ $parent: ComponentPublicInstance | null;
87
+ $host: Element | null;
88
+ $emit: (event: string, ...args: any[]) => void;
89
+ $el: any;
90
+ $options: ComponentOptionsBase<Readonly<{
91
+ appendTo?: string | HTMLElement;
92
+ offset?: number | {
93
+ mainAxis?: number;
94
+ crossAxis?: number;
95
+ };
96
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
97
+ preventOverflow?: boolean;
98
+ show?: boolean;
99
+ transitionProps?: TransitionProps;
100
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
101
+ }> & Readonly<{}>, {
102
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
103
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
104
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
105
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
106
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
107
+ beforeCreate?: (() => void) | (() => void)[];
108
+ created?: (() => void) | (() => void)[];
109
+ beforeMount?: (() => void) | (() => void)[];
110
+ mounted?: (() => void) | (() => void)[];
111
+ beforeUpdate?: (() => void) | (() => void)[];
112
+ updated?: (() => void) | (() => void)[];
113
+ activated?: (() => void) | (() => void)[];
114
+ deactivated?: (() => void) | (() => void)[];
115
+ beforeDestroy?: (() => void) | (() => void)[];
116
+ beforeUnmount?: (() => void) | (() => void)[];
117
+ destroyed?: (() => void) | (() => void)[];
118
+ unmounted?: (() => void) | (() => void)[];
119
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
120
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
121
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
122
+ };
123
+ $forceUpdate: () => void;
124
+ $nextTick: nextTick;
125
+ $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;
126
+ } & Readonly<{
127
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
128
+ }> & Omit<Readonly<{
129
+ appendTo?: string | HTMLElement;
130
+ offset?: number | {
131
+ mainAxis?: number;
132
+ crossAxis?: number;
133
+ };
134
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
135
+ preventOverflow?: boolean;
136
+ show?: boolean;
137
+ transitionProps?: TransitionProps;
138
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
139
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
140
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
141
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
142
+ }> & {} & ComponentCustomProperties & {} & {
143
+ $slots: Readonly<{
144
+ trigger?: () => VNode[];
145
+ content?: () => VNode[];
146
+ }> & {
147
+ trigger?: () => VNode[];
148
+ content?: () => VNode[];
149
+ };
150
+ }) | null;
140
151
  }, any>;
141
152
 
142
- declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
153
+ declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
143
154
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
144
155
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
145
156
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
146
157
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
147
158
 
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;
159
+ declare const __VLS_component_5: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
160
+
161
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_3, {
162
+ children: ComputedRef<(HTMLElement | SVGElement)[]>;
157
163
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
158
- [x: string]: any;
164
+ "update:showAll": (value: boolean | undefined) => any;
159
165
  } & {
160
- [x: string]: any;
161
- }, string, PublicProps, Readonly<SenderProps> & Readonly<{
162
- [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
166
+ "click-outside": (event: MouseEvent) => any;
167
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
168
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
169
+ "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
163
170
  }>, {
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>;
171
+ showAllButtonOn: "hover" | "always";
172
+ overflowMode: "expand" | "scroll";
183
173
  }, {}, {}, {}, 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;
174
+ containerWrapperRef: HTMLDivElement;
175
+ containerRef: HTMLDivElement;
176
+ staticMaybeItemRefs: unknown[];
177
+ floatingItemsRef: HTMLDivElement;
178
+ floatingMaybeItemRefs: unknown[];
689
179
  }, HTMLDivElement>;
690
180
 
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, {} & {
181
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
182
+ "update:selectedGroup": (value: string) => any;
183
+ } & {
701
184
  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<{
185
+ open: () => any;
186
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
187
+ "click-outside": (event: MouseEvent) => any;
188
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
189
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
710
190
  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;
191
+ onOpen?: (() => any) | undefined;
192
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
193
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
194
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
195
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
718
196
  }>, {
719
- open: boolean;
720
- items: SuggestionItem[];
721
197
  title: string;
722
- loading: boolean;
723
- categories: Category[];
724
- theme: "light" | "dark";
725
- maxVisibleItems: number;
726
- triggerKeys: string[];
727
- closeOnOutsideClick: boolean;
728
- defaultExpanded: boolean;
198
+ trigger: "click" | "manual";
199
+ groupShowMoreTrigger: "click" | "hover";
200
+ topOffset: number;
729
201
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
730
- rootRef: HTMLDivElement;
731
- panelRef: ({
202
+ basePopperRef: ({
732
203
  $: ComponentInternalInstance;
733
204
  $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">;
205
+ $props: {
206
+ readonly appendTo?: (string | HTMLElement) | undefined;
207
+ readonly offset?: number | {
208
+ mainAxis?: number;
209
+ crossAxis?: number;
210
+ } | undefined;
211
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
212
+ readonly preventOverflow?: boolean | undefined;
213
+ readonly show?: boolean | undefined;
214
+ readonly transitionProps?: TransitionProps | undefined;
215
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
216
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
750
217
  $attrs: {
751
218
  [x: string]: unknown;
752
219
  };
@@ -759,46 +226,24 @@ $slots: Readonly<{
759
226
  $root: ComponentPublicInstance | null;
760
227
  $parent: ComponentPublicInstance | null;
761
228
  $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;
229
+ $emit: (event: string, ...args: any[]) => void;
230
+ $el: any;
231
+ $options: ComponentOptionsBase<Readonly<{
232
+ appendTo?: string | HTMLElement;
233
+ offset?: number | {
234
+ mainAxis?: number;
235
+ crossAxis?: number;
236
+ };
237
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
238
+ preventOverflow?: boolean;
239
+ show?: boolean;
240
+ transitionProps?: TransitionProps;
241
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
242
+ }> & Readonly<{}>, {
243
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
244
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
245
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
246
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
802
247
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
803
248
  beforeCreate?: (() => void) | (() => void)[];
804
249
  created?: (() => void) | (() => void)[];
@@ -820,70 +265,56 @@ $forceUpdate: () => void;
820
265
  $nextTick: nextTick;
821
266
  $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
267
  } & 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;
268
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
269
+ }> & Omit<Readonly<{
270
+ appendTo?: string | HTMLElement;
271
+ offset?: number | {
272
+ mainAxis?: number;
273
+ crossAxis?: number;
274
+ };
275
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
276
+ preventOverflow?: boolean;
277
+ show?: boolean;
278
+ transitionProps?: TransitionProps;
279
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
280
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
281
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
282
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
855
283
  }> & {} & ComponentCustomProperties & {} & {
856
- $slots: {
857
- 'title-icon'?(_: {}): any;
858
- 'loading-indicator'?(_: {}): any;
859
- item?(_: {
860
- item: SuggestionItem;
861
- active: boolean;
862
- }): any;
863
- empty?(_: {}): any;
284
+ $slots: Readonly<{
285
+ trigger?: () => VNode[];
286
+ content?: () => VNode[];
287
+ }> & {
288
+ trigger?: () => VNode[];
289
+ content?: () => VNode[];
864
290
  };
865
291
  }) | null;
866
- }, HTMLDivElement>;
292
+ listRef: HTMLUListElement;
293
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
294
+ show?: TooltipContentProps["show"];
295
+ } & TooltipContentProps> & Readonly<{
296
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
297
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
298
+ "update:show": (value: boolean | undefined) => any;
299
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
300
+ P: {};
301
+ B: {};
302
+ D: {};
303
+ C: {};
304
+ M: {};
305
+ Defaults: {};
306
+ }, Readonly<{
307
+ show?: TooltipContentProps["show"];
308
+ } & TooltipContentProps> & Readonly<{
309
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
310
+ }>, {}, {}, {}, {}, {}> | null;
311
+ }, any>;
867
312
 
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>;
313
+ declare const __VLS_component_8: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
314
+ align: "left" | "center" | "right" | string;
315
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
883
316
 
884
- declare type __VLS_Props = {
885
- messageRenderers?: Record<string, BubbleMessageRenderer>;
886
- };
317
+ declare type __VLS_Props = DropdownMenuProps;
887
318
 
888
319
  declare type __VLS_Props_2 = SuggestionPillsProps;
889
320
 
@@ -895,10 +326,14 @@ declare type __VLS_PublicProps = {
895
326
  };
896
327
 
897
328
  declare type __VLS_PublicProps_2 = {
329
+ 'show'?: boolean;
330
+ } & __VLS_Props;
331
+
332
+ declare type __VLS_PublicProps_3 = {
898
333
  'showAll'?: SuggestionPillsProps['showAll'];
899
334
  } & __VLS_Props_2;
900
335
 
901
- declare type __VLS_PublicProps_3 = {
336
+ declare type __VLS_PublicProps_4 = {
902
337
  'selectedGroup'?: string;
903
338
  } & __VLS_Props_3;
904
339
 
@@ -909,663 +344,159 @@ declare function __VLS_template(): {
909
344
  rootEl: HTMLDivElement;
910
345
  };
911
346
 
912
- declare function __VLS_template_10(): {
347
+ declare function __VLS_template_2(): {
913
348
  attrs: Partial<{}>;
914
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
349
+ slots: Readonly<ContainerSlots> & ContainerSlots;
915
350
  refs: {};
916
- rootEl: HTMLButtonElement;
351
+ rootEl: HTMLDivElement;
917
352
  };
918
353
 
919
- declare function __VLS_template_11(): {
354
+ declare function __VLS_template_3(): {
920
355
  attrs: Partial<{}>;
921
356
  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;
357
+ trigger?(_: {}): any;
931
358
  };
932
- refs: {};
933
- rootEl: HTMLDivElement;
934
- };
935
-
936
- declare function __VLS_template_12(): {
937
- attrs: Partial<{}>;
938
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
939
359
  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;
360
+ basePopperRef: ({
361
+ $: ComponentInternalInstance;
362
+ $data: {};
363
+ $props: {
364
+ readonly appendTo?: (string | HTMLElement) | undefined;
365
+ readonly offset?: number | {
366
+ mainAxis?: number;
367
+ crossAxis?: number;
368
+ } | undefined;
369
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
370
+ readonly preventOverflow?: boolean | undefined;
371
+ readonly show?: boolean | undefined;
372
+ readonly transitionProps?: TransitionProps | undefined;
373
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
374
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
375
+ $attrs: {
376
+ [x: string]: unknown;
377
+ };
378
+ $refs: {
379
+ [x: string]: unknown;
380
+ };
381
+ $slots: Readonly<{
382
+ [name: string]: Slot<any> | undefined;
383
+ }>;
384
+ $root: ComponentPublicInstance | null;
385
+ $parent: ComponentPublicInstance | null;
386
+ $host: Element | null;
387
+ $emit: (event: string, ...args: any[]) => void;
388
+ $el: any;
389
+ $options: ComponentOptionsBase<Readonly<{
390
+ appendTo?: string | HTMLElement;
391
+ offset?: number | {
392
+ mainAxis?: number;
393
+ crossAxis?: number;
394
+ };
395
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
396
+ preventOverflow?: boolean;
397
+ show?: boolean;
398
+ transitionProps?: TransitionProps;
399
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
400
+ }> & Readonly<{}>, {
401
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
402
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
403
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
404
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
405
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
406
+ beforeCreate?: (() => void) | (() => void)[];
407
+ created?: (() => void) | (() => void)[];
408
+ beforeMount?: (() => void) | (() => void)[];
409
+ mounted?: (() => void) | (() => void)[];
410
+ beforeUpdate?: (() => void) | (() => void)[];
411
+ updated?: (() => void) | (() => void)[];
412
+ activated?: (() => void) | (() => void)[];
413
+ deactivated?: (() => void) | (() => void)[];
414
+ beforeDestroy?: (() => void) | (() => void)[];
415
+ beforeUnmount?: (() => void) | (() => void)[];
416
+ destroyed?: (() => void) | (() => void)[];
417
+ unmounted?: (() => void) | (() => void)[];
418
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
419
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
420
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
421
+ };
422
+ $forceUpdate: () => void;
423
+ $nextTick: nextTick;
424
+ $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;
425
+ } & Readonly<{
426
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
427
+ }> & Omit<Readonly<{
428
+ appendTo?: string | HTMLElement;
429
+ offset?: number | {
430
+ mainAxis?: number;
431
+ crossAxis?: number;
432
+ };
433
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
434
+ preventOverflow?: boolean;
435
+ show?: boolean;
436
+ transitionProps?: TransitionProps;
437
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
438
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
439
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
440
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
441
+ }> & {} & ComponentCustomProperties & {} & {
442
+ $slots: Readonly<{
443
+ trigger?: () => VNode[];
444
+ content?: () => VNode[];
445
+ }> & {
446
+ trigger?: () => VNode[];
447
+ content?: () => VNode[];
448
+ };
449
+ }) | null;
969
450
  };
970
- refs: {};
971
451
  rootEl: any;
972
452
  };
973
453
 
974
- declare function __VLS_template_3(): {
454
+ declare function __VLS_template_4(): {
975
455
  attrs: Partial<{}>;
976
- slots: Readonly<ContainerSlots> & ContainerSlots;
456
+ slots: Readonly<PromptsSlots> & PromptsSlots;
977
457
  refs: {};
978
458
  rootEl: HTMLDivElement;
979
459
  };
980
460
 
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
461
  declare function __VLS_template_5(): {
992
462
  attrs: Partial<{}>;
993
- slots: Readonly<PromptsSlots> & PromptsSlots;
463
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
994
464
  refs: {};
995
- rootEl: HTMLDivElement;
465
+ rootEl: HTMLButtonElement;
996
466
  };
997
467
 
998
468
  declare function __VLS_template_6(): {
999
469
  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
- };
470
+ slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1009
471
  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;
472
+ containerWrapperRef: HTMLDivElement;
473
+ containerRef: HTMLDivElement;
474
+ staticMaybeItemRefs: unknown[];
475
+ floatingItemsRef: HTMLDivElement;
476
+ floatingMaybeItemRefs: unknown[];
1515
477
  };
1516
478
  rootEl: HTMLDivElement;
1517
479
  };
1518
480
 
1519
481
  declare function __VLS_template_7(): {
1520
482
  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
- };
483
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1548
484
  refs: {
1549
- rootRef: HTMLDivElement;
1550
- panelRef: ({
485
+ basePopperRef: ({
1551
486
  $: ComponentInternalInstance;
1552
487
  $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">;
488
+ $props: {
489
+ readonly appendTo?: (string | HTMLElement) | undefined;
490
+ readonly offset?: number | {
491
+ mainAxis?: number;
492
+ crossAxis?: number;
493
+ } | undefined;
494
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
495
+ readonly preventOverflow?: boolean | undefined;
496
+ readonly show?: boolean | undefined;
497
+ readonly transitionProps?: TransitionProps | undefined;
498
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
499
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1569
500
  $attrs: {
1570
501
  [x: string]: unknown;
1571
502
  };
@@ -1578,46 +509,24 @@ declare function __VLS_template_8(): {
1578
509
  $root: ComponentPublicInstance | null;
1579
510
  $parent: ComponentPublicInstance | null;
1580
511
  $host: Element | null;
1581
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
1582
- $el: HTMLDivElement;
1583
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1584
- items: {
1585
- type: PropType<SuggestionItem[]>;
1586
- required: true;
1587
- };
1588
- categories: {
1589
- type: PropType<Category[]>;
1590
- default: () => never[];
1591
- };
1592
- loading: {
1593
- type: BooleanConstructor;
1594
- default: boolean;
1595
- };
1596
- title: {
1597
- type: StringConstructor;
1598
- default: string;
512
+ $emit: (event: string, ...args: any[]) => void;
513
+ $el: any;
514
+ $options: ComponentOptionsBase<Readonly<{
515
+ appendTo?: string | HTMLElement;
516
+ offset?: number | {
517
+ mainAxis?: number;
518
+ crossAxis?: number;
1599
519
  };
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;
520
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
521
+ preventOverflow?: boolean;
522
+ show?: boolean;
523
+ transitionProps?: TransitionProps;
524
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
525
+ }> & Readonly<{}>, {
526
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
527
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
528
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
529
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1621
530
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1622
531
  beforeCreate?: (() => void) | (() => void)[];
1623
532
  created?: (() => void) | (() => void)[];
@@ -1639,71 +548,62 @@ declare function __VLS_template_8(): {
1639
548
  $nextTick: nextTick;
1640
549
  $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
550
  } & 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;
551
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
552
+ }> & Omit<Readonly<{
553
+ appendTo?: string | HTMLElement;
554
+ offset?: number | {
555
+ mainAxis?: number;
556
+ crossAxis?: number;
557
+ };
558
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
559
+ preventOverflow?: boolean;
560
+ show?: boolean;
561
+ transitionProps?: TransitionProps;
562
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
563
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
564
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
565
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
1674
566
  }> & {} & ComponentCustomProperties & {} & {
1675
- $slots: {
1676
- 'title-icon'?(_: {}): any;
1677
- 'loading-indicator'?(_: {}): any;
1678
- item?(_: {
1679
- item: SuggestionItem;
1680
- active: boolean;
1681
- }): any;
1682
- empty?(_: {}): any;
567
+ $slots: Readonly<{
568
+ trigger?: () => VNode[];
569
+ content?: () => VNode[];
570
+ }> & {
571
+ trigger?: () => VNode[];
572
+ content?: () => VNode[];
1683
573
  };
1684
574
  }) | null;
575
+ listRef: HTMLUListElement;
576
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
577
+ show?: TooltipContentProps["show"];
578
+ } & TooltipContentProps> & Readonly<{
579
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
580
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
581
+ "update:show": (value: boolean | undefined) => any;
582
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
583
+ P: {};
584
+ B: {};
585
+ D: {};
586
+ C: {};
587
+ M: {};
588
+ Defaults: {};
589
+ }, Readonly<{
590
+ show?: TooltipContentProps["show"];
591
+ } & TooltipContentProps> & Readonly<{
592
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
593
+ }>, {}, {}, {}, {}, {}> | null;
1685
594
  };
1686
- rootEl: HTMLDivElement;
595
+ rootEl: any;
1687
596
  };
1688
597
 
1689
- declare function __VLS_template_9(): {
598
+ declare function __VLS_template_8(): {
1690
599
  attrs: Partial<{}>;
1691
- slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1692
- refs: {
1693
- containerWrapperRef: HTMLDivElement;
1694
- containerRef: HTMLDivElement;
1695
- };
600
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
601
+ refs: {};
1696
602
  rootEl: HTMLDivElement;
1697
603
  };
1698
604
 
1699
605
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1700
606
 
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
607
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1708
608
 
1709
609
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1718,32 +618,12 @@ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
1718
618
 
1719
619
  declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
1720
620
 
1721
- declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
1722
-
1723
621
  declare type __VLS_WithTemplateSlots<T, S> = T & {
1724
622
  new (): {
1725
623
  $slots: S;
1726
624
  };
1727
625
  };
1728
626
 
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
627
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1748
628
  new (): {
1749
629
  $slots: S;
@@ -1786,12 +666,6 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
1786
666
  };
1787
667
  };
1788
668
 
1789
- declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1790
- new (): {
1791
- $slots: S;
1792
- };
1793
- };
1794
-
1795
669
  export declare interface ActionButtonsProps {
1796
670
  loading?: boolean;
1797
671
  disabled?: boolean;
@@ -1806,6 +680,7 @@ export declare interface ActionButtonsProps {
1806
680
  submitType?: SubmitTrigger;
1807
681
  showShortcuts?: boolean;
1808
682
  isOverLimit?: boolean;
683
+ stopText?: string;
1809
684
  }
1810
685
 
1811
686
  export declare type AutoSize = boolean | {
@@ -1822,51 +697,21 @@ declare interface BaseHistoryProps {
1822
697
  selected?: string;
1823
698
  }
1824
699
 
1825
- declare const Bubble: typeof _default_14 & {
700
+ declare interface BaseTextItem {
701
+ id: string;
702
+ type: string;
703
+ content: string;
704
+ }
705
+
706
+ declare const Bubble: typeof _default_12 & {
1826
707
  install: typeof bubbleInstall;
1827
708
  };
1828
709
  export { Bubble }
1829
710
  export { Bubble as TrBubble }
1830
711
 
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
712
  declare const bubbleInstall: (app: App) => void;
1868
713
 
1869
- declare const BubbleList: typeof _default_15 & {
714
+ declare const BubbleList: typeof _default_13 & {
1870
715
  install: typeof bubbleListInstall;
1871
716
  };
1872
717
  export { BubbleList }
@@ -1882,85 +727,37 @@ export declare interface BubbleListProps {
1882
727
  * 每个角色的默认配置项
1883
728
  */
1884
729
  roles?: Record<string, BubbleRoleConfig>;
1885
- /**
1886
- * 列表是否加载中
1887
- */
1888
- loading?: boolean;
1889
- /**
1890
- * 指定哪个角色可以有加载中状态
1891
- */
1892
- loadingRole?: string;
1893
730
  autoScroll?: boolean;
1894
731
  }
1895
732
 
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
- };
733
+ export declare type BubblePalcement = 'start' | 'end';
1942
734
 
1943
- export declare interface BubbleProps extends BubbleCommonProps {
735
+ export declare interface BubbleProps {
1944
736
  /**
1945
737
  * 气泡内容
1946
738
  */
1947
739
  content?: string;
1948
- messages?: BubbleMessageProps[];
1949
740
  id?: string | number | symbol;
741
+ /**
742
+ * 气泡位置
743
+ */
744
+ placement?: BubblePalcement;
745
+ avatar?: VNode;
1950
746
  role?: string;
747
+ /**
748
+ * 内容类型
749
+ */
750
+ type?: 'text' | 'markdown';
1951
751
  loading?: boolean;
1952
752
  aborted?: boolean;
753
+ /**
754
+ * type 为 'markdown' 时,markdown 的配置项
755
+ */
756
+ mdConfig?: Options;
757
+ maxWidth?: string | number;
1953
758
  }
1954
759
 
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 & {
760
+ export declare type BubbleRoleConfig = Pick<BubbleProps, 'placement' | 'avatar' | 'type' | 'mdConfig' | 'maxWidth'> & {
1964
761
  slots?: BubbleSlots;
1965
762
  };
1966
763
 
@@ -1976,27 +773,6 @@ export declare interface BubbleSlots {
1976
773
  }) => unknown;
1977
774
  }
1978
775
 
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
776
  export declare interface ContainerProps {
2001
777
  /**
2002
778
  * model:show
@@ -2020,51 +796,31 @@ declare const _default: {
2020
796
  };
2021
797
  export default _default;
2022
798
 
2023
- declare const _default_10: typeof _default_26 & {
799
+ declare const _default_10: typeof _default_23 & {
2024
800
  install: typeof install_8;
2025
801
  };
2026
- export { _default_10 as Suggestion }
2027
- export { _default_10 as TrSuggestion }
802
+ export { _default_10 as SuggestionPopover }
803
+ export { _default_10 as TrSuggestionPopover }
2028
804
 
2029
- declare const _default_11: typeof _default_27 & {
805
+ declare const _default_11: typeof _default_24 & {
2030
806
  install: typeof install_9;
2031
807
  };
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 }
808
+ export { _default_11 as TrWelcome }
809
+ export { _default_11 as Welcome }
2040
810
 
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"]>;
811
+ declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2048
812
 
2049
- declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
813
+ declare const _default_13: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2050
814
  scrollContainerRef: HTMLDivElement;
2051
815
  }, HTMLDivElement>;
2052
816
 
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>;
817
+ declare const _default_14: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2058
818
 
2059
- declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
819
+ declare const _default_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2060
820
 
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 }
821
+ declare const _default_16: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2066
822
 
2067
- declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
823
+ declare const _default_17: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2068
824
  operation: (name: string) => any;
2069
825
  action: (name: string) => any;
2070
826
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -2076,42 +832,42 @@ actionsLimit: number;
2076
832
  sourcesLinesLimit: number;
2077
833
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2078
834
 
2079
- declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
835
+ declare const _default_18: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2080
836
  size: string | number;
2081
837
  svgSize: string | number;
2082
838
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2083
839
 
2084
- declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
840
+ declare const _default_19: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2085
841
 
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"]>;
842
+ declare const _default_2: typeof _default_14 & {
843
+ install: typeof install;
844
+ };
845
+ export { _default_2 as Container }
846
+ export { _default_2 as TrContainer }
2089
847
 
2090
- declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
848
+ declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2091
849
 
2092
- declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
850
+ declare const _default_21: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2093
851
 
2094
- declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
852
+ declare const _default_22: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2095
853
 
2096
- declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
854
+ declare const _default_23: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2097
855
 
2098
- declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
856
+ declare const _default_24: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2099
857
 
2100
- declare const _default_3: typeof _default_18 & {
858
+ declare const _default_3: typeof _default_15 & {
2101
859
  install: typeof install_2;
2102
860
  };
2103
861
  export { _default_3 as Conversations }
2104
862
  export { _default_3 as TrConversations }
2105
863
 
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 & {
864
+ declare const _default_4: typeof _default_16 & {
2109
865
  install: typeof install_3;
2110
866
  };
2111
867
  export { _default_4 as DropdownMenu }
2112
868
  export { _default_4 as TrDropdownMenu }
2113
869
 
2114
- declare const _default_5: typeof _default_20 & {
870
+ declare const _default_5: typeof _default_17 & {
2115
871
  install: typeof install_4;
2116
872
  };
2117
873
  export { _default_5 as Feedback }
@@ -2124,30 +880,46 @@ declare const _default_6: {
2124
880
  export { _default_6 as History }
2125
881
  export { _default_6 as TrHistory }
2126
882
 
2127
- declare const _default_7: typeof _default_21 & {
883
+ declare const _default_7: typeof _default_18 & {
2128
884
  install: typeof install_5;
2129
885
  };
2130
886
  export { _default_7 as IconButton }
2131
887
  export { _default_7 as TrIconButton }
2132
888
 
2133
- declare const _default_8: typeof _default_24 & {
889
+ declare const _default_8: typeof default_2 & {
2134
890
  install: typeof install_6;
2135
891
  };
2136
892
  export { _default_8 as Sender }
2137
893
  export { _default_8 as TrSender }
2138
894
 
2139
- declare const _default_9: typeof _default_25 & {
895
+ declare const _default_9: typeof _default_22 & {
2140
896
  install: typeof install_7;
2141
897
  };
2142
- export { _default_9 as TrWelcome }
2143
- export { _default_9 as Welcome }
898
+ export { _default_9 as SuggestionPills }
899
+ export { _default_9 as TrSuggestionPills }
2144
900
 
2145
901
  export declare interface DropdownMenuEmits {
2146
902
  (e: 'item-click', item: DropdownMenuItem): void;
903
+ /**
904
+ * 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
905
+ */
906
+ (e: 'click-outside', event: MouseEvent): void;
907
+ }
908
+
909
+ export declare interface DropdownMenuEventProps {
910
+ onItemClick?: (item: DropdownMenuItem) => void;
911
+ onClickOutside?: (event: MouseEvent) => void;
2147
912
  }
2148
913
 
2149
914
  export declare interface DropdownMenuEvents {
915
+ /**
916
+ * @deprecated
917
+ */
2150
918
  itemClick?: (item: DropdownMenuItem) => void;
919
+ /**
920
+ * @deprecated
921
+ */
922
+ clickOutside?: (event: MouseEvent) => void;
2151
923
  }
2152
924
 
2153
925
  export declare interface DropdownMenuItem {
@@ -2156,13 +928,21 @@ export declare interface DropdownMenuItem {
2156
928
  }
2157
929
 
2158
930
  export declare interface DropdownMenuProps {
931
+ appendTo?: string | HTMLElement;
2159
932
  items: DropdownMenuItem[];
2160
- minWidth?: string | number;
2161
- topOffset?: string | number;
933
+ /**
934
+ * trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
935
+ * 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
936
+ */
937
+ show?: boolean;
938
+ /**
939
+ * 触发方式。默认值为 'click'
940
+ */
941
+ trigger?: 'click' | 'hover' | 'manual';
2162
942
  }
2163
943
 
2164
944
  export declare interface DropdownMenuSlots {
2165
- default?: () => unknown;
945
+ trigger?: () => VNode | VNode[];
2166
946
  }
2167
947
 
2168
948
  export declare interface FeedbackEvents {
@@ -2237,10 +1017,6 @@ export declare type InputMode = 'single' | 'multiple';
2237
1017
 
2238
1018
  declare const install: <T>(app: App<T>) => void;
2239
1019
 
2240
- declare const install_10: <T>(app: App<T>) => void;
2241
-
2242
- declare const install_11: <T>(app: App<T>) => void;
2243
-
2244
1020
  declare const install_2: <T>(app: App<T>) => void;
2245
1021
 
2246
1022
  declare const install_3: <T>(app: App<T>) => void;
@@ -2276,7 +1052,7 @@ export declare type MultiTabHistoryProps = {
2276
1052
  data: Record<string, HistoryData>;
2277
1053
  } & BaseHistoryProps;
2278
1054
 
2279
- declare const Prompt: typeof _default_22 & {
1055
+ declare const Prompt: typeof _default_19 & {
2280
1056
  install: typeof installPrompt;
2281
1057
  };
2282
1058
  export { Prompt }
@@ -2309,7 +1085,7 @@ export declare interface PromptProps {
2309
1085
  badge?: string | VNode;
2310
1086
  }
2311
1087
 
2312
- declare const Prompts: typeof _default_23 & {
1088
+ declare const Prompts: typeof _default_20 & {
2313
1089
  install: typeof installPrompts;
2314
1090
  };
2315
1091
  export { Prompts }
@@ -2346,55 +1122,9 @@ export declare interface PromptsSlots {
2346
1122
  footer?: () => unknown;
2347
1123
  }
2348
1124
 
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
1125
  export declare type SenderEmits = {
2397
1126
  (e: 'update:modelValue', value: string): void;
1127
+ (e: 'update:templateData', value: UserItem[]): void;
2398
1128
  (e: 'submit', value: string): void;
2399
1129
  (e: 'clear'): void;
2400
1130
  (e: 'speech-start'): void;
@@ -2428,19 +1158,8 @@ export declare interface SenderProps {
2428
1158
  suggestions?: string[];
2429
1159
  suggestionPopupWidth?: string | number;
2430
1160
  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>;
1161
+ templateData?: UserItem[];
1162
+ stopText?: string;
2444
1163
  }
2445
1164
 
2446
1165
  export declare type SingleTabHistoryProps = {
@@ -2477,81 +1196,23 @@ export declare interface SpeechState {
2477
1196
 
2478
1197
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2479
1198
 
2480
- declare interface SuggestionBaseItem {
1199
+ export declare interface SuggestionBaseItem {
2481
1200
  id: string;
2482
1201
  text: string;
2483
1202
  }
2484
1203
 
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
- }
1204
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2508
1205
 
2509
- declare interface SuggestionGroup<T = Record<string, unknown>> {
1206
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2510
1207
  group: string;
2511
1208
  label: string;
2512
1209
  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;
1210
+ items: SuggestionItem<T>[];
2534
1211
  }
2535
1212
 
2536
- declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
2537
-
2538
- export declare type SuggestionPillAction = {
2539
- type: 'popover';
2540
- props: SuggestionPopoverProps;
2541
- slots?: Omit<SuggestionPopoverSlots, 'default'>;
2542
- events?: SuggestionPopoverEvents;
2543
- } | {
2544
- type: 'menu';
2545
- props: DropdownMenuProps;
2546
- events?: DropdownMenuEvents;
2547
- };
2548
-
2549
- export declare type SuggestionPillBaseItem<T> = {
2550
- id: string;
2551
- action?: SuggestionPillAction;
2552
- } & T;
1213
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2553
1214
 
2554
- declare const SuggestionPillButton: typeof _default_28 & {
1215
+ declare const SuggestionPillButton: typeof _default_21 & {
2555
1216
  install: typeof installPillButton;
2556
1217
  };
2557
1218
  export { SuggestionPillButton }
@@ -2566,21 +1227,19 @@ export declare interface SuggestionPillButtonSlots {
2566
1227
  icon?: () => unknown;
2567
1228
  }
2568
1229
 
2569
- export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
1230
+ export declare type SuggestionPillItem = {
2570
1231
  text: string;
2571
1232
  icon?: VNode | Component;
2572
1233
  } | {
2573
1234
  text?: string;
2574
1235
  icon: VNode | Component;
2575
- });
1236
+ };
2576
1237
 
2577
1238
  export declare interface SuggestionPillsEmits {
2578
- (e: 'item-click', item: SuggestionPillItem): void;
2579
1239
  (e: 'click-outside', event: MouseEvent): void;
2580
1240
  }
2581
1241
 
2582
1242
  export declare interface SuggestionPillsProps {
2583
- items?: SuggestionPillItem[];
2584
1243
  /**
2585
1244
  * model:showAll
2586
1245
  */
@@ -2592,22 +1251,65 @@ export declare interface SuggestionPillsProps {
2592
1251
  * @default 'hover'
2593
1252
  */
2594
1253
  showAllButtonOn?: 'hover' | 'always';
1254
+ /**
1255
+ * 控制多余按钮如何展示
1256
+ * - expand: 点击更多按钮展开所有项
1257
+ * - scroll: 横向滚动显示多余项
1258
+ * @default 'expand'
1259
+ */
1260
+ overflowMode?: 'expand' | 'scroll';
1261
+ /**
1262
+ * 鼠标悬停时是否自动滚动到可见区域
1263
+ * @default false
1264
+ */
1265
+ autoScrollOnHover?: boolean;
2595
1266
  }
2596
1267
 
2597
- /**
2598
- * @deprecated
2599
- */
2600
1268
  export declare interface SuggestionPillsSlots {
2601
- default?: () => VNode | VNode[];
1269
+ default?: () => VNode[];
1270
+ }
1271
+
1272
+ export declare interface SuggestionPopoverEmits {
1273
+ (e: 'item-click', item: SuggestionItem): void;
1274
+ (e: 'group-click', group: SuggestionGroup): void;
1275
+ (e: 'open'): void;
1276
+ (e: 'close'): void;
1277
+ (e: 'click-outside', event: MouseEvent): void;
2602
1278
  }
2603
1279
 
2604
- declare interface SuggestionPopoverEvents {
2605
- itemClick?: (item: SuggestionItem_2) => void;
1280
+ export declare interface SuggestionPopoverEventProps {
1281
+ onItemClick?: (item: SuggestionItem) => void;
1282
+ onGroupClick?: (group: SuggestionGroup) => void;
1283
+ onOpen?: () => void;
1284
+ onClose?: () => void;
1285
+ onClickOutside?: (event: MouseEvent) => void;
1286
+ }
1287
+
1288
+ export declare interface SuggestionPopoverEvents {
1289
+ /**
1290
+ * @deprecated use onItemClick in props instead
1291
+ */
1292
+ itemClick?: (item: SuggestionItem) => void;
1293
+ /**
1294
+ * @deprecated use onGroupClick in props instead
1295
+ */
2606
1296
  groupClick?: (group: SuggestionGroup) => void;
1297
+ /**
1298
+ * @deprecated use onOpen in props instead
1299
+ */
1300
+ open?: () => void;
1301
+ /**
1302
+ * @deprecated use onClose in props instead
1303
+ */
2607
1304
  close?: () => void;
1305
+ /**
1306
+ * @deprecated use onClickOutside in props instead
1307
+ */
1308
+ clickOutside?: (event: MouseEvent) => void;
2608
1309
  }
2609
1310
 
2610
- declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
1311
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
1312
+ appendTo?: string | HTMLElement;
2611
1313
  data: SuggestionData<T>;
2612
1314
  title?: string;
2613
1315
  icon?: VNode | Component;
@@ -2625,101 +1327,28 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2625
1327
  selectedGroup?: string;
2626
1328
  groupShowMoreTrigger?: 'click' | 'hover';
2627
1329
  loading?: boolean;
2628
- popoverWidth?: string | number;
2629
- popoverHeight?: string | number;
2630
- topOffset?: string | number;
1330
+ topOffset?: number;
2631
1331
  }
2632
1332
 
2633
- declare interface SuggestionPopoverSlots {
1333
+ export declare interface SuggestionPopoverSlots {
2634
1334
  default?: () => unknown;
2635
1335
  loading?: () => unknown;
2636
1336
  empty?: () => unknown;
2637
1337
  }
2638
1338
 
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;
1339
+ export declare interface SuggestionTextPart {
1340
+ text: string;
1341
+ isMatch: boolean;
2699
1342
  }
2700
1343
 
2701
- /**
2702
- * 模板编辑器属性
2703
- */
2704
- export declare interface TemplateEditorProps {
2705
- /** 当前值 */
2706
- value?: string;
2707
- /** 是否自动聚焦 */
2708
- autofocus?: boolean;
1344
+ declare interface TemplateItem extends BaseTextItem {
1345
+ type: 'template';
1346
+ prefix: string;
1347
+ suffix: string;
2709
1348
  }
2710
1349
 
2711
- /**
2712
- * 模板部分定义
2713
- */
2714
- export declare interface TemplatePart {
2715
- /** 内容文本 */
2716
- content: string;
2717
- /** 是否为可编辑字段 */
2718
- isField: boolean;
2719
- /** 占位符文本 (当字段为空时显示) */
2720
- placeholder?: string;
2721
- /** 字段索引 (用于标识可编辑字段) */
2722
- fieldIndex?: number;
1350
+ declare interface TextItem extends BaseTextItem {
1351
+ type: 'text';
2723
1352
  }
2724
1353
 
2725
1354
  /**
@@ -2727,23 +1356,11 @@ export declare interface TemplatePart {
2727
1356
  */
2728
1357
  export declare type ThemeType = 'light' | 'dark';
2729
1358
 
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
- }
1359
+ export declare type UserItem = UserTextItem | UserTemplateItem;
2741
1360
 
2742
- /** 触发处理函数类型 */
2743
- export declare type TriggerHandler = (info: TriggerInfo) => void;
1361
+ export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
2744
1362
 
2745
- /** 触发信息类型 */
2746
- export declare type TriggerInfo = TriggerContext | false;
1363
+ export declare type UserTextItem = Omit<TextItem, 'id'>;
2747
1364
 
2748
1365
  export declare interface WelcomeProps {
2749
1366
  title: string;