@opentiny/tiny-robot 0.3.0-alpha.0 → 0.3.0-alpha.10

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
@@ -10,29 +10,33 @@ import { ComponentOptionsBase } from 'vue';
10
10
  import { ComponentOptionsMixin } from 'vue';
11
11
  import { ComponentProvideOptions } from 'vue';
12
12
  import { ComponentPublicInstance } from 'vue';
13
+ import { ComputedRef } from 'vue';
13
14
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
14
15
  import { CSSProperties } from 'vue';
15
16
  import { DebuggerEvent } from 'vue';
16
17
  import { DefineComponent } from 'vue';
18
+ import { Directive } from 'vue';
19
+ import { DisplayVariant as DisplayVariant_2 } from './index.type';
17
20
  import { ExtractPropTypes } from 'vue';
18
- import { FileType as FileType_2 } from './index.type';
21
+ import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
19
22
  import { GlobalComponents } from 'vue';
20
23
  import { GlobalDirectives } from 'vue';
21
24
  import { InputMode as InputMode_2 } from './index.type';
22
25
  import { nextTick } from 'vue';
23
26
  import { OnCleanup } from '@vue/reactivity';
24
27
  import { Options } from 'markdown-it';
28
+ import { Props } from './components/SuggestionList.vue';
25
29
  import { PropType } from 'vue';
26
30
  import { PublicProps } from 'vue';
27
31
  import { Ref } from 'vue';
28
32
  import { RendererElement } from 'vue';
29
33
  import { RendererNode } from 'vue';
30
- import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
31
34
  import { ShallowUnwrapRef } from 'vue';
32
35
  import { Slot } from 'vue';
33
36
  import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
34
- import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
35
37
  import { ThemeType as ThemeType_2 } from './index.type';
38
+ import { TooltipContentProps } from './components/Tooltip.vue';
39
+ import { TransitionProps } from 'vue';
36
40
  import { VNode } from 'vue';
37
41
  import { VNodeProps } from 'vue';
38
42
  import { WatchOptions } from 'vue';
@@ -40,58 +44,15 @@ import { WatchStopHandle } from 'vue';
40
44
 
41
45
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
42
46
  type: "text" | "markdown";
47
+ content: string;
43
48
  placement: BubblePalcement_2;
44
49
  maxWidth: string | number;
45
- content: string;
46
50
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
47
51
 
48
- declare const __VLS_component_10: DefineComponent<QuestionProps, {
49
- openModal: () => void;
50
- closeModal: () => void;
51
- toggleFloating: () => void;
52
- setActiveCategory: (categoryId: string) => void;
53
- refreshData: () => Promise<void>;
54
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
55
- "question-click": (question: Question_2) => any;
56
- "select-category": (category: Category_2) => any;
57
- }, string, PublicProps, Readonly<QuestionProps> & Readonly<{
58
- "onQuestion-click"?: ((question: Question_2) => any) | undefined;
59
- "onSelect-category"?: ((category: Category_2) => any) | undefined;
60
- }>, {
61
- loading: boolean;
62
- categories: Category_2[];
63
- modalWidth: string;
64
- closeOnClickOutside: boolean;
65
- commonQuestions: Question_2[];
66
- initialExpanded: boolean;
67
- theme: ThemeType_2;
52
+ declare const __VLS_component_10: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
53
+ align: "left" | "center" | "right" | string;
68
54
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
69
55
 
70
- declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
71
- "update:selectedGroup": (value: string) => any;
72
- } & {
73
- close: () => any;
74
- open: () => any;
75
- "item-click": (item: SuggestionItem_2) => any;
76
- "group-click": (group: SuggestionGroup) => any;
77
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
78
- onClose?: (() => any) | undefined;
79
- onOpen?: (() => any) | undefined;
80
- "onItem-click"?: ((item: SuggestionItem_2) => any) | undefined;
81
- "onGroup-click"?: ((group: SuggestionGroup) => any) | undefined;
82
- "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
83
- }>, {
84
- title: string;
85
- topOffset: string | number;
86
- trigger: "click" | "manual";
87
- groupShowMoreTrigger: "click" | "hover";
88
- popoverWidth: string | number;
89
- popoverHeight: string | number;
90
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
91
- popoverTriggerRef: HTMLDivElement;
92
- popoverRef: HTMLDivElement;
93
- }, any>;
94
-
95
56
  declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
96
57
  "update:show": (value: boolean) => any;
97
58
  "update:fullscreen": (value: boolean | undefined) => any;
@@ -100,25 +61,123 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
100
61
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
101
62
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
102
63
 
103
- declare const __VLS_component_3: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
64
+ declare const __VLS_component_3: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
65
+
66
+ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_2, {
67
+ update: () => void;
68
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
69
+ "update:show": (value: boolean) => any;
70
+ } & {
104
71
  "item-click": (item: DropdownMenuItem) => any;
105
- }, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
72
+ "click-outside": (event: MouseEvent) => any;
73
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
74
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
106
75
  "onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
76
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
107
77
  }>, {
108
- minWidth: string | number;
109
- topOffset: string | number;
78
+ trigger: "click" | "hover" | "manual";
110
79
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
111
- dropDownTriggerRef: HTMLDivElement;
112
- dropdownMenuRef: HTMLDivElement;
80
+ basePopperRef: ({
81
+ $: ComponentInternalInstance;
82
+ $data: {};
83
+ $props: {
84
+ readonly appendTo?: (string | HTMLElement) | undefined;
85
+ readonly offset?: number | {
86
+ mainAxis?: number;
87
+ crossAxis?: number;
88
+ } | undefined;
89
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
90
+ readonly preventOverflow?: boolean | undefined;
91
+ readonly show?: boolean | undefined;
92
+ readonly transitionProps?: TransitionProps | undefined;
93
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
94
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
95
+ $attrs: {
96
+ [x: string]: unknown;
97
+ };
98
+ $refs: {
99
+ [x: string]: unknown;
100
+ };
101
+ $slots: Readonly<{
102
+ [name: string]: Slot<any> | undefined;
103
+ }>;
104
+ $root: ComponentPublicInstance | null;
105
+ $parent: ComponentPublicInstance | null;
106
+ $host: Element | null;
107
+ $emit: (event: string, ...args: any[]) => void;
108
+ $el: any;
109
+ $options: ComponentOptionsBase<Readonly<{
110
+ appendTo?: string | HTMLElement;
111
+ offset?: number | {
112
+ mainAxis?: number;
113
+ crossAxis?: number;
114
+ };
115
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
116
+ preventOverflow?: boolean;
117
+ show?: boolean;
118
+ transitionProps?: TransitionProps;
119
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
120
+ }> & Readonly<{}>, {
121
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
122
+ popperRef: ComputedRef<HTMLDivElement | null>;
123
+ update: () => void;
124
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
125
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
126
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
127
+ beforeCreate?: (() => void) | (() => void)[];
128
+ created?: (() => void) | (() => void)[];
129
+ beforeMount?: (() => void) | (() => void)[];
130
+ mounted?: (() => void) | (() => void)[];
131
+ beforeUpdate?: (() => void) | (() => void)[];
132
+ updated?: (() => void) | (() => void)[];
133
+ activated?: (() => void) | (() => void)[];
134
+ deactivated?: (() => void) | (() => void)[];
135
+ beforeDestroy?: (() => void) | (() => void)[];
136
+ beforeUnmount?: (() => void) | (() => void)[];
137
+ destroyed?: (() => void) | (() => void)[];
138
+ unmounted?: (() => void) | (() => void)[];
139
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
140
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
141
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
142
+ };
143
+ $forceUpdate: () => void;
144
+ $nextTick: nextTick;
145
+ $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;
146
+ } & Readonly<{
147
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
148
+ }> & Omit<Readonly<{
149
+ appendTo?: string | HTMLElement;
150
+ offset?: number | {
151
+ mainAxis?: number;
152
+ crossAxis?: number;
153
+ };
154
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
155
+ preventOverflow?: boolean;
156
+ show?: boolean;
157
+ transitionProps?: TransitionProps;
158
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
159
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
160
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
161
+ popperRef: ComputedRef<HTMLDivElement | null>;
162
+ update: () => void;
163
+ }> & {} & ComponentCustomProperties & {} & {
164
+ $slots: Readonly<{
165
+ trigger?: () => VNode[];
166
+ content?: () => VNode[];
167
+ }> & {
168
+ trigger?: () => VNode[];
169
+ content?: () => VNode[];
170
+ };
171
+ }) | null;
113
172
  }, any>;
114
173
 
115
- declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
174
+ declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
116
175
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
117
176
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
118
177
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
119
178
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
120
179
 
121
- declare const __VLS_component_5: DefineComponent<SenderProps, {
180
+ declare const __VLS_component_6: DefineComponent<SenderProps, {
122
181
  focus: () => void;
123
182
  blur: () => void;
124
183
  clear: () => void;
@@ -126,7 +185,6 @@ submit: () => void;
126
185
  startSpeech: () => void;
127
186
  stopSpeech: () => void;
128
187
  activateTemplateFirstField: () => void;
129
- setTemplate: (template: string, initialValues?: Record<string, string>) => void;
130
188
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
131
189
  [x: string]: any;
132
190
  } & {
@@ -134,55 +192,41 @@ setTemplate: (template: string, initialValues?: Record<string, string>) => void;
134
192
  }, string, PublicProps, Readonly<SenderProps> & Readonly<{
135
193
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
136
194
  }>, {
137
- template: string;
138
195
  disabled: boolean;
139
- mode: InputMode_2;
140
- loading: boolean;
141
196
  modelValue: string;
197
+ loading: boolean;
198
+ mode: InputMode_2;
142
199
  autofocus: boolean;
143
200
  clearable: boolean;
144
201
  showWordLimit: boolean;
145
- theme: ThemeType_2;
146
- placeholder: string;
147
- hasContent: boolean;
148
202
  allowSpeech: boolean;
149
203
  allowFiles: boolean;
150
- uploadTooltip: string;
151
204
  submitType: SubmitTrigger_2;
205
+ stopText: string;
206
+ suggestions: string[];
152
207
  autoSize: AutoSize_2;
153
208
  maxLength: number;
154
- suggestions: string[];
155
- templateInitialValues: Record<string, string>;
209
+ placeholder: string;
210
+ suggestionPopupWidth: string | number;
211
+ theme: ThemeType_2;
212
+ templateData: UserItem[];
156
213
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
157
214
  senderRef: HTMLDivElement;
158
215
  inputWrapperRef: HTMLDivElement;
159
216
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
160
- value?: string;
161
- } & TemplateEditorProps_2> & Readonly<{
162
- onInput?: ((value: string) => any) | undefined;
163
- onBlur?: ((event: FocusEvent) => any) | undefined;
164
- onFocus?: ((event: FocusEvent) => any) | undefined;
165
- onSubmit?: ((value: string) => any) | undefined;
166
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
167
- "onEmpty-content"?: (() => any) | undefined;
168
- "onUpdate:value"?: ((value: string) => any) | undefined;
217
+ modelValue?: UserItem[];
218
+ }> & Readonly<{
219
+ onSubmit?: (() => any) | undefined;
220
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
169
221
  }>, {
170
- focus: () => void;
171
- resetFields: () => void;
222
+ clearHistory: () => void;
172
223
  activateFirstField: () => void;
173
- getValueFromDOM: () => string;
174
- setTemplate: (params: SetTemplateParams_2) => void;
175
224
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
176
- "update:value": (value: string) => any;
225
+ "update:modelValue": (value: UserItem[]) => any;
177
226
  } & {
178
- input: (value: string) => any;
179
- blur: (event: FocusEvent) => any;
180
- focus: (event: FocusEvent) => any;
181
- submit: (value: string) => any;
182
- "content-status": (hasContent: boolean) => any;
183
- "empty-content": () => any;
227
+ submit: () => any;
184
228
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
185
- contentEditableRef: HTMLDivElement;
229
+ editorRef: HTMLDivElement;
186
230
  }, HTMLDivElement, ComponentProvideOptions, {
187
231
  P: {};
188
232
  B: {};
@@ -191,21 +235,13 @@ C: {};
191
235
  M: {};
192
236
  Defaults: {};
193
237
  }, Readonly<{
194
- value?: string;
195
- } & TemplateEditorProps_2> & Readonly<{
196
- onInput?: ((value: string) => any) | undefined;
197
- onBlur?: ((event: FocusEvent) => any) | undefined;
198
- onFocus?: ((event: FocusEvent) => any) | undefined;
199
- onSubmit?: ((value: string) => any) | undefined;
200
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
201
- "onEmpty-content"?: (() => any) | undefined;
202
- "onUpdate:value"?: ((value: string) => any) | undefined;
238
+ modelValue?: UserItem[];
239
+ }> & Readonly<{
240
+ onSubmit?: (() => any) | undefined;
241
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
203
242
  }>, {
204
- focus: () => void;
205
- resetFields: () => void;
243
+ clearHistory: () => void;
206
244
  activateFirstField: () => void;
207
- getValueFromDOM: () => string;
208
- setTemplate: (params: SetTemplateParams_2) => void;
209
245
  }, {}, {}, {}, {}> | null;
210
246
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
211
247
  _constants: {
@@ -388,6 +424,7 @@ tiny_mode_root: BooleanConstructor;
388
424
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
389
425
  tiny_renderless: FunctionConstructor;
390
426
  tiny_theme: StringConstructor;
427
+ tiny_mcp_config: ObjectConstructor;
391
428
  tiny_chart_theme: ObjectConstructor;
392
429
  }>>, () => VNode<RendererNode, RendererElement, {
393
430
  [key: string]: any;
@@ -396,20 +433,20 @@ disabled: boolean;
396
433
  type: string;
397
434
  ellipsis: boolean;
398
435
  mask: boolean;
436
+ vertical: boolean;
437
+ customClass: string;
399
438
  tiny_mode_root: boolean;
400
439
  _constants: Record<string, any>;
401
440
  tabindex: string;
402
- contentStyle: Record<string, any>;
403
- customClass: string;
404
441
  showTitle: boolean;
405
442
  readonly: boolean;
406
443
  hoverExpand: boolean;
407
444
  memorySpace: number;
408
- vertical: boolean;
409
445
  selectMenu: {
410
446
  id: string;
411
447
  label: string;
412
448
  }[];
449
+ contentStyle: Record<string, any>;
413
450
  isSelect: boolean;
414
451
  counter: boolean;
415
452
  autosize: boolean | Record<string, any>;
@@ -615,6 +652,7 @@ tiny_mode_root: BooleanConstructor;
615
652
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
616
653
  tiny_renderless: FunctionConstructor;
617
654
  tiny_theme: StringConstructor;
655
+ tiny_mcp_config: ObjectConstructor;
618
656
  tiny_chart_theme: ObjectConstructor;
619
657
  }>>, () => VNode<RendererNode, RendererElement, {
620
658
  [key: string]: any;
@@ -623,20 +661,20 @@ disabled: boolean;
623
661
  type: string;
624
662
  ellipsis: boolean;
625
663
  mask: boolean;
664
+ vertical: boolean;
665
+ customClass: string;
626
666
  tiny_mode_root: boolean;
627
667
  _constants: Record<string, any>;
628
668
  tabindex: string;
629
- contentStyle: Record<string, any>;
630
- customClass: string;
631
669
  showTitle: boolean;
632
670
  readonly: boolean;
633
671
  hoverExpand: boolean;
634
672
  memorySpace: number;
635
- vertical: boolean;
636
673
  selectMenu: {
637
674
  id: string;
638
675
  label: string;
639
676
  }[];
677
+ contentStyle: Record<string, any>;
640
678
  isSelect: boolean;
641
679
  counter: boolean;
642
680
  autosize: boolean | Record<string, any>;
@@ -656,68 +694,90 @@ showTooltip: boolean;
656
694
  inputBoxType: string;
657
695
  }> | null;
658
696
  buttonsContainerRef: HTMLDivElement;
697
+ suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
698
+ onSelect?: ((item: string) => any) | undefined;
699
+ "onItem-hover"?: ((index: number) => any) | undefined;
700
+ "onItem-leave"?: (() => any) | undefined;
701
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
702
+ select: (item: string) => any;
703
+ "item-hover": (index: number) => any;
704
+ "item-leave": () => any;
705
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
659
706
  suggestionsListRef: HTMLDivElement;
707
+ }, any, ComponentProvideOptions, {
708
+ P: {};
709
+ B: {};
710
+ D: {};
711
+ C: {};
712
+ M: {};
713
+ Defaults: {};
714
+ }, Readonly<Props> & Readonly<{
715
+ onSelect?: ((item: string) => any) | undefined;
716
+ "onItem-hover"?: ((index: number) => any) | undefined;
717
+ "onItem-leave"?: (() => any) | undefined;
718
+ }>, {}, {}, {}, {}, {}> | null;
660
719
  }, HTMLDivElement>;
661
720
 
662
- declare const __VLS_component_6: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
663
- align: "left" | "center" | "right" | string;
664
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
721
+ declare const __VLS_component_7: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
722
+
723
+ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_3, {
724
+ children: ComputedRef<(HTMLElement | SVGElement)[]>;
725
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
726
+ "update:showAll": (value: boolean | undefined) => any;
727
+ } & {
728
+ "click-outside": (event: MouseEvent) => any;
729
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
730
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
731
+ "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
732
+ }>, {
733
+ showAllButtonOn: "hover" | "always";
734
+ overflowMode: "expand" | "scroll";
735
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
736
+ containerWrapperRef: HTMLDivElement;
737
+ containerRef: HTMLDivElement;
738
+ staticMaybeItemRefs: unknown[];
739
+ floatingItemsRef: HTMLDivElement;
740
+ floatingMaybeItemRefs: unknown[];
741
+ }, HTMLDivElement>;
665
742
 
666
- declare const __VLS_component_7: DefineComponent<SuggestionProps, {
667
- trigger: TriggerHandler;
668
- keyDown: (e: KeyboardEvent) => void;
669
- input: (event: Event, text: string) => boolean;
670
- toggleExpand: () => void;
671
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
672
- select: (value: string, context?: TriggerContext | undefined) => any;
743
+ declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_4, {
744
+ update: () => void;
745
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
746
+ "update:selectedGroup": (value: string) => any;
747
+ } & {
673
748
  close: () => any;
674
- "suggestion-select": (item: SuggestionItem) => any;
675
- "update:open": (value: boolean) => any;
676
- trigger: (handler: TriggerHandler) => any;
677
- "category-select": (category: Category) => any;
678
- "update:expanded": (expanded: boolean) => any;
679
- "fill-template": (template: string) => any;
680
- }, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
681
- onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
749
+ open: () => any;
750
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
751
+ "click-outside": (event: MouseEvent) => any;
752
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
753
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
682
754
  onClose?: (() => any) | undefined;
683
- "onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
684
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
685
- onTrigger?: ((handler: TriggerHandler) => any) | undefined;
686
- "onCategory-select"?: ((category: Category) => any) | undefined;
687
- "onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
688
- "onFill-template"?: ((template: string) => any) | undefined;
755
+ onOpen?: (() => any) | undefined;
756
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
757
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
758
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
759
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
689
760
  }>, {
690
761
  title: string;
691
- items: SuggestionItem[];
692
- open: boolean;
693
- loading: boolean;
694
- categories: Category[];
695
- theme: "light" | "dark";
696
- maxVisibleItems: number;
697
- triggerKeys: string[];
698
- closeOnOutsideClick: boolean;
699
- defaultExpanded: boolean;
762
+ trigger: "click" | "manual";
763
+ groupShowMoreTrigger: "click" | "hover";
764
+ topOffset: number;
700
765
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
701
- rootRef: HTMLDivElement;
702
- panelRef: ({
766
+ basePopperRef: ({
703
767
  $: ComponentInternalInstance;
704
768
  $data: {};
705
- $props: Partial<{
706
- title: string;
707
- loading: boolean;
708
- categories: Category[];
709
- maxVisibleItems: number;
710
- }> & Omit<{
711
- readonly title: string;
712
- readonly items: SuggestionItem[];
713
- readonly loading: boolean;
714
- readonly categories: Category[];
715
- readonly maxVisibleItems: number;
716
- readonly onSelect?: ((...args: any[]) => any) | undefined;
717
- readonly onClose?: ((...args: any[]) => any) | undefined;
718
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
719
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
720
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
769
+ $props: {
770
+ readonly appendTo?: (string | HTMLElement) | undefined;
771
+ readonly offset?: number | {
772
+ mainAxis?: number;
773
+ crossAxis?: number;
774
+ } | undefined;
775
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
776
+ readonly preventOverflow?: boolean | undefined;
777
+ readonly show?: boolean | undefined;
778
+ readonly transitionProps?: TransitionProps | undefined;
779
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
780
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
721
781
  $attrs: {
722
782
  [x: string]: unknown;
723
783
  };
@@ -730,46 +790,25 @@ $slots: Readonly<{
730
790
  $root: ComponentPublicInstance | null;
731
791
  $parent: ComponentPublicInstance | null;
732
792
  $host: Element | null;
733
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
734
- $el: HTMLDivElement;
735
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
736
- items: {
737
- type: PropType<SuggestionItem[]>;
738
- required: true;
739
- };
740
- categories: {
741
- type: PropType<Category[]>;
742
- default: () => never[];
743
- };
744
- loading: {
745
- type: BooleanConstructor;
746
- default: boolean;
747
- };
748
- title: {
749
- type: StringConstructor;
750
- default: string;
751
- };
752
- maxVisibleItems: {
753
- type: NumberConstructor;
754
- default: number;
755
- };
756
- }>> & Readonly<{
757
- onSelect?: ((...args: any[]) => any) | undefined;
758
- onClose?: ((...args: any[]) => any) | undefined;
759
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
760
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
761
- }>, {
762
- handleKeyDown: (e: KeyboardEvent) => void;
763
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
764
- select: (...args: any[]) => void;
765
- close: (...args: any[]) => void;
766
- "category-select": (...args: any[]) => void;
767
- "item-hover": (...args: any[]) => void;
768
- }, string, {
769
- title: string;
770
- loading: boolean;
771
- categories: Category[];
772
- maxVisibleItems: number;
793
+ $emit: (event: string, ...args: any[]) => void;
794
+ $el: any;
795
+ $options: ComponentOptionsBase<Readonly<{
796
+ appendTo?: string | HTMLElement;
797
+ offset?: number | {
798
+ mainAxis?: number;
799
+ crossAxis?: number;
800
+ };
801
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
802
+ preventOverflow?: boolean;
803
+ show?: boolean;
804
+ transitionProps?: TransitionProps;
805
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
806
+ }> & Readonly<{}>, {
807
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
808
+ popperRef: ComputedRef<HTMLDivElement | null>;
809
+ update: () => void;
810
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
811
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
773
812
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
774
813
  beforeCreate?: (() => void) | (() => void)[];
775
814
  created?: (() => void) | (() => void)[];
@@ -791,67 +830,57 @@ $forceUpdate: () => void;
791
830
  $nextTick: nextTick;
792
831
  $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;
793
832
  } & Readonly<{
794
- title: string;
795
- loading: boolean;
796
- categories: Category[];
797
- maxVisibleItems: number;
798
- }> & Omit<Readonly<ExtractPropTypes< {
799
- items: {
800
- type: PropType<SuggestionItem[]>;
801
- required: true;
802
- };
803
- categories: {
804
- type: PropType<Category[]>;
805
- default: () => never[];
806
- };
807
- loading: {
808
- type: BooleanConstructor;
809
- default: boolean;
810
- };
811
- title: {
812
- type: StringConstructor;
813
- default: string;
814
- };
815
- maxVisibleItems: {
816
- type: NumberConstructor;
817
- default: number;
818
- };
819
- }>> & Readonly<{
820
- onSelect?: ((...args: any[]) => any) | undefined;
821
- onClose?: ((...args: any[]) => any) | undefined;
822
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
823
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
824
- }>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
825
- handleKeyDown: (e: KeyboardEvent) => void;
833
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
834
+ }> & Omit<Readonly<{
835
+ appendTo?: string | HTMLElement;
836
+ offset?: number | {
837
+ mainAxis?: number;
838
+ crossAxis?: number;
839
+ };
840
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
841
+ preventOverflow?: boolean;
842
+ show?: boolean;
843
+ transitionProps?: TransitionProps;
844
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
845
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
846
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
847
+ popperRef: ComputedRef<HTMLDivElement | null>;
848
+ update: () => void;
826
849
  }> & {} & ComponentCustomProperties & {} & {
827
- $slots: {
828
- 'title-icon'?(_: {}): any;
829
- 'loading-indicator'?(_: {}): any;
830
- item?(_: {
831
- item: SuggestionItem;
832
- active: boolean;
833
- }): any;
834
- empty?(_: {}): any;
850
+ $slots: Readonly<{
851
+ trigger?: () => VNode[];
852
+ content?: () => VNode[];
853
+ }> & {
854
+ trigger?: () => VNode[];
855
+ content?: () => VNode[];
835
856
  };
836
857
  }) | null;
837
- }, HTMLDivElement>;
838
-
839
- declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
840
- "update:showAll": (value: boolean | undefined) => any;
841
- } & {
842
- "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
843
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
844
- "onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
845
- "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
846
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
847
- containerRef: HTMLDivElement;
848
- }, HTMLDivElement>;
858
+ listRef: HTMLUListElement;
859
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
860
+ show?: TooltipContentProps["show"];
861
+ } & TooltipContentProps> & Readonly<{
862
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
863
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
864
+ "update:show": (value: boolean | undefined) => any;
865
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
866
+ P: {};
867
+ B: {};
868
+ D: {};
869
+ C: {};
870
+ M: {};
871
+ Defaults: {};
872
+ }, Readonly<{
873
+ show?: TooltipContentProps["show"];
874
+ } & TooltipContentProps> & Readonly<{
875
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
876
+ }>, {}, {}, {}, {}, {}> | null;
877
+ }, any>;
849
878
 
850
- declare const __VLS_component_9: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
879
+ declare type __VLS_Props = DropdownMenuProps;
851
880
 
852
- declare type __VLS_Props = SuggestionPillsProps;
881
+ declare type __VLS_Props_2 = SuggestionPillsProps;
853
882
 
854
- declare type __VLS_Props_2 = SuggestionPopoverProps;
883
+ declare type __VLS_Props_3 = SuggestionPopoverProps;
855
884
 
856
885
  declare type __VLS_PublicProps = {
857
886
  'show': ContainerProps['show'];
@@ -859,13 +888,17 @@ declare type __VLS_PublicProps = {
859
888
  };
860
889
 
861
890
  declare type __VLS_PublicProps_2 = {
862
- 'showAll'?: SuggestionPillsProps['showAll'];
891
+ 'show'?: boolean;
863
892
  } & __VLS_Props;
864
893
 
865
894
  declare type __VLS_PublicProps_3 = {
866
- 'selectedGroup'?: string;
895
+ 'showAll'?: SuggestionPillsProps['showAll'];
867
896
  } & __VLS_Props_2;
868
897
 
898
+ declare type __VLS_PublicProps_4 = {
899
+ 'selectedGroup'?: string;
900
+ } & __VLS_Props_3;
901
+
869
902
  declare function __VLS_template(): {
870
903
  attrs: Partial<{}>;
871
904
  slots: Readonly<BubbleSlots> & BubbleSlots;
@@ -875,31 +908,11 @@ declare function __VLS_template(): {
875
908
 
876
909
  declare function __VLS_template_10(): {
877
910
  attrs: Partial<{}>;
878
- slots: {
879
- 'category-label'?(_: {
880
- category: Category_2;
881
- }): any;
882
- 'question-item'?(_: {
883
- question: Question_2;
884
- index: number;
885
- }): any;
886
- 'loading-indicator'?(_: {}): any;
887
- 'empty-state'?(_: {}): any;
888
- };
911
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
889
912
  refs: {};
890
913
  rootEl: HTMLDivElement;
891
914
  };
892
915
 
893
- declare function __VLS_template_11(): {
894
- attrs: Partial<{}>;
895
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
896
- refs: {
897
- popoverTriggerRef: HTMLDivElement;
898
- popoverRef: HTMLDivElement;
899
- };
900
- rootEl: any;
901
- };
902
-
903
916
  declare function __VLS_template_2(): {
904
917
  attrs: Partial<{}>;
905
918
  slots: Readonly<ContainerSlots> & ContainerSlots;
@@ -909,22 +922,125 @@ declare function __VLS_template_2(): {
909
922
 
910
923
  declare function __VLS_template_3(): {
911
924
  attrs: Partial<{}>;
912
- slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
913
- refs: {
914
- dropDownTriggerRef: HTMLDivElement;
915
- dropdownMenuRef: HTMLDivElement;
925
+ slots: {
926
+ overlay?(_: {
927
+ isDragging: true;
928
+ }): any;
916
929
  };
930
+ refs: {};
917
931
  rootEl: any;
918
932
  };
919
933
 
920
934
  declare function __VLS_template_4(): {
935
+ attrs: Partial<{}>;
936
+ slots: {
937
+ trigger?(_: {}): any;
938
+ };
939
+ refs: {
940
+ basePopperRef: ({
941
+ $: ComponentInternalInstance;
942
+ $data: {};
943
+ $props: {
944
+ readonly appendTo?: (string | HTMLElement) | undefined;
945
+ readonly offset?: number | {
946
+ mainAxis?: number;
947
+ crossAxis?: number;
948
+ } | undefined;
949
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
950
+ readonly preventOverflow?: boolean | undefined;
951
+ readonly show?: boolean | undefined;
952
+ readonly transitionProps?: TransitionProps | undefined;
953
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
954
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
955
+ $attrs: {
956
+ [x: string]: unknown;
957
+ };
958
+ $refs: {
959
+ [x: string]: unknown;
960
+ };
961
+ $slots: Readonly<{
962
+ [name: string]: Slot<any> | undefined;
963
+ }>;
964
+ $root: ComponentPublicInstance | null;
965
+ $parent: ComponentPublicInstance | null;
966
+ $host: Element | null;
967
+ $emit: (event: string, ...args: any[]) => void;
968
+ $el: any;
969
+ $options: ComponentOptionsBase<Readonly<{
970
+ appendTo?: string | HTMLElement;
971
+ offset?: number | {
972
+ mainAxis?: number;
973
+ crossAxis?: number;
974
+ };
975
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
976
+ preventOverflow?: boolean;
977
+ show?: boolean;
978
+ transitionProps?: TransitionProps;
979
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
980
+ }> & Readonly<{}>, {
981
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
982
+ popperRef: ComputedRef<HTMLDivElement | null>;
983
+ update: () => void;
984
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
985
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
986
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
987
+ beforeCreate?: (() => void) | (() => void)[];
988
+ created?: (() => void) | (() => void)[];
989
+ beforeMount?: (() => void) | (() => void)[];
990
+ mounted?: (() => void) | (() => void)[];
991
+ beforeUpdate?: (() => void) | (() => void)[];
992
+ updated?: (() => void) | (() => void)[];
993
+ activated?: (() => void) | (() => void)[];
994
+ deactivated?: (() => void) | (() => void)[];
995
+ beforeDestroy?: (() => void) | (() => void)[];
996
+ beforeUnmount?: (() => void) | (() => void)[];
997
+ destroyed?: (() => void) | (() => void)[];
998
+ unmounted?: (() => void) | (() => void)[];
999
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1000
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1001
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1002
+ };
1003
+ $forceUpdate: () => void;
1004
+ $nextTick: nextTick;
1005
+ $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;
1006
+ } & Readonly<{
1007
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1008
+ }> & Omit<Readonly<{
1009
+ appendTo?: string | HTMLElement;
1010
+ offset?: number | {
1011
+ mainAxis?: number;
1012
+ crossAxis?: number;
1013
+ };
1014
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1015
+ preventOverflow?: boolean;
1016
+ show?: boolean;
1017
+ transitionProps?: TransitionProps;
1018
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1019
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1020
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1021
+ popperRef: ComputedRef<HTMLDivElement | null>;
1022
+ update: () => void;
1023
+ }> & {} & ComponentCustomProperties & {} & {
1024
+ $slots: Readonly<{
1025
+ trigger?: () => VNode[];
1026
+ content?: () => VNode[];
1027
+ }> & {
1028
+ trigger?: () => VNode[];
1029
+ content?: () => VNode[];
1030
+ };
1031
+ }) | null;
1032
+ };
1033
+ rootEl: any;
1034
+ };
1035
+
1036
+ declare function __VLS_template_5(): {
921
1037
  attrs: Partial<{}>;
922
1038
  slots: Readonly<PromptsSlots> & PromptsSlots;
923
1039
  refs: {};
924
1040
  rootEl: HTMLDivElement;
925
1041
  };
926
1042
 
927
- declare function __VLS_template_5(): {
1043
+ declare function __VLS_template_6(): {
928
1044
  attrs: Partial<{}>;
929
1045
  slots: {
930
1046
  header?(_: {}): any;
@@ -939,32 +1055,19 @@ declare function __VLS_template_5(): {
939
1055
  senderRef: HTMLDivElement;
940
1056
  inputWrapperRef: HTMLDivElement;
941
1057
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
942
- value?: string;
943
- } & TemplateEditorProps_2> & Readonly<{
944
- onInput?: ((value: string) => any) | undefined;
945
- onBlur?: ((event: FocusEvent) => any) | undefined;
946
- onFocus?: ((event: FocusEvent) => any) | undefined;
947
- onSubmit?: ((value: string) => any) | undefined;
948
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
949
- "onEmpty-content"?: (() => any) | undefined;
950
- "onUpdate:value"?: ((value: string) => any) | undefined;
1058
+ modelValue?: UserItem[];
1059
+ }> & Readonly<{
1060
+ onSubmit?: (() => any) | undefined;
1061
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
951
1062
  }>, {
952
- focus: () => void;
953
- resetFields: () => void;
1063
+ clearHistory: () => void;
954
1064
  activateFirstField: () => void;
955
- getValueFromDOM: () => string;
956
- setTemplate: (params: SetTemplateParams_2) => void;
957
1065
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
958
- "update:value": (value: string) => any;
1066
+ "update:modelValue": (value: UserItem[]) => any;
959
1067
  } & {
960
- input: (value: string) => any;
961
- blur: (event: FocusEvent) => any;
962
- focus: (event: FocusEvent) => any;
963
- submit: (value: string) => any;
964
- "content-status": (hasContent: boolean) => any;
965
- "empty-content": () => any;
1068
+ submit: () => any;
966
1069
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
967
- contentEditableRef: HTMLDivElement;
1070
+ editorRef: HTMLDivElement;
968
1071
  }, HTMLDivElement, ComponentProvideOptions, {
969
1072
  P: {};
970
1073
  B: {};
@@ -973,21 +1076,13 @@ declare function __VLS_template_5(): {
973
1076
  M: {};
974
1077
  Defaults: {};
975
1078
  }, Readonly<{
976
- value?: string;
977
- } & TemplateEditorProps_2> & Readonly<{
978
- onInput?: ((value: string) => any) | undefined;
979
- onBlur?: ((event: FocusEvent) => any) | undefined;
980
- onFocus?: ((event: FocusEvent) => any) | undefined;
981
- onSubmit?: ((value: string) => any) | undefined;
982
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
983
- "onEmpty-content"?: (() => any) | undefined;
984
- "onUpdate:value"?: ((value: string) => any) | undefined;
1079
+ modelValue?: UserItem[];
1080
+ }> & Readonly<{
1081
+ onSubmit?: (() => any) | undefined;
1082
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
985
1083
  }>, {
986
- focus: () => void;
987
- resetFields: () => void;
1084
+ clearHistory: () => void;
988
1085
  activateFirstField: () => void;
989
- getValueFromDOM: () => string;
990
- setTemplate: (params: SetTemplateParams_2) => void;
991
1086
  }, {}, {}, {}, {}> | null;
992
1087
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
993
1088
  _constants: {
@@ -1170,6 +1265,7 @@ declare function __VLS_template_5(): {
1170
1265
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
1171
1266
  tiny_renderless: FunctionConstructor;
1172
1267
  tiny_theme: StringConstructor;
1268
+ tiny_mcp_config: ObjectConstructor;
1173
1269
  tiny_chart_theme: ObjectConstructor;
1174
1270
  }>>, () => VNode<RendererNode, RendererElement, {
1175
1271
  [key: string]: any;
@@ -1178,20 +1274,20 @@ declare function __VLS_template_5(): {
1178
1274
  type: string;
1179
1275
  ellipsis: boolean;
1180
1276
  mask: boolean;
1277
+ vertical: boolean;
1278
+ customClass: string;
1181
1279
  tiny_mode_root: boolean;
1182
1280
  _constants: Record<string, any>;
1183
1281
  tabindex: string;
1184
- contentStyle: Record<string, any>;
1185
- customClass: string;
1186
1282
  showTitle: boolean;
1187
1283
  readonly: boolean;
1188
1284
  hoverExpand: boolean;
1189
1285
  memorySpace: number;
1190
- vertical: boolean;
1191
1286
  selectMenu: {
1192
1287
  id: string;
1193
1288
  label: string;
1194
1289
  }[];
1290
+ contentStyle: Record<string, any>;
1195
1291
  isSelect: boolean;
1196
1292
  counter: boolean;
1197
1293
  autosize: boolean | Record<string, any>;
@@ -1397,6 +1493,7 @@ declare function __VLS_template_5(): {
1397
1493
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
1398
1494
  tiny_renderless: FunctionConstructor;
1399
1495
  tiny_theme: StringConstructor;
1496
+ tiny_mcp_config: ObjectConstructor;
1400
1497
  tiny_chart_theme: ObjectConstructor;
1401
1498
  }>>, () => VNode<RendererNode, RendererElement, {
1402
1499
  [key: string]: any;
@@ -1405,20 +1502,20 @@ declare function __VLS_template_5(): {
1405
1502
  type: string;
1406
1503
  ellipsis: boolean;
1407
1504
  mask: boolean;
1505
+ vertical: boolean;
1506
+ customClass: string;
1408
1507
  tiny_mode_root: boolean;
1409
1508
  _constants: Record<string, any>;
1410
1509
  tabindex: string;
1411
- contentStyle: Record<string, any>;
1412
- customClass: string;
1413
1510
  showTitle: boolean;
1414
1511
  readonly: boolean;
1415
1512
  hoverExpand: boolean;
1416
1513
  memorySpace: number;
1417
- vertical: boolean;
1418
1514
  selectMenu: {
1419
1515
  id: string;
1420
1516
  label: string;
1421
1517
  }[];
1518
+ contentStyle: Record<string, any>;
1422
1519
  isSelect: boolean;
1423
1520
  counter: boolean;
1424
1521
  autosize: boolean | Record<string, any>;
@@ -1438,61 +1535,71 @@ declare function __VLS_template_5(): {
1438
1535
  inputBoxType: string;
1439
1536
  }> | null;
1440
1537
  buttonsContainerRef: HTMLDivElement;
1538
+ suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
1539
+ onSelect?: ((item: string) => any) | undefined;
1540
+ "onItem-hover"?: ((index: number) => any) | undefined;
1541
+ "onItem-leave"?: (() => any) | undefined;
1542
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1543
+ select: (item: string) => any;
1544
+ "item-hover": (index: number) => any;
1545
+ "item-leave": () => any;
1546
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1441
1547
  suggestionsListRef: HTMLDivElement;
1442
- };
1443
- rootEl: HTMLDivElement;
1548
+ }, any, ComponentProvideOptions, {
1549
+ P: {};
1550
+ B: {};
1551
+ D: {};
1552
+ C: {};
1553
+ M: {};
1554
+ Defaults: {};
1555
+ }, Readonly<Props> & Readonly<{
1556
+ onSelect?: ((item: string) => any) | undefined;
1557
+ "onItem-hover"?: ((index: number) => any) | undefined;
1558
+ "onItem-leave"?: (() => any) | undefined;
1559
+ }>, {}, {}, {}, {}, {}> | null;
1560
+ };
1561
+ rootEl: HTMLDivElement;
1444
1562
  };
1445
1563
 
1446
- declare function __VLS_template_6(): {
1564
+ declare function __VLS_template_7(): {
1447
1565
  attrs: Partial<{}>;
1448
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1566
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1449
1567
  refs: {};
1450
- rootEl: HTMLDivElement;
1568
+ rootEl: HTMLButtonElement;
1451
1569
  };
1452
1570
 
1453
- declare function __VLS_template_7(): {
1571
+ declare function __VLS_template_8(): {
1454
1572
  attrs: Partial<{}>;
1455
- slots: {
1456
- 'capsule-icon'?(_: {
1457
- suggestion: any;
1458
- }): any;
1459
- trigger?(_: {
1460
- onTrigger: TriggerHandler;
1461
- onKeyDown: (e: KeyboardEvent) => void;
1462
- onInput: (event: Event, text: string) => boolean;
1463
- }): any;
1464
- 'title-icon'?(_: {}): any;
1465
- 'category-label'?(_: {
1466
- category: any;
1467
- }): any;
1468
- item?(_: {
1469
- item: SuggestionItem;
1470
- active: boolean;
1471
- }): any;
1472
- 'loading-indicator'?(_: {}): any;
1473
- empty?(_: {}): any;
1573
+ slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1574
+ refs: {
1575
+ containerWrapperRef: HTMLDivElement;
1576
+ containerRef: HTMLDivElement;
1577
+ staticMaybeItemRefs: unknown[];
1578
+ floatingItemsRef: HTMLDivElement;
1579
+ floatingMaybeItemRefs: unknown[];
1474
1580
  };
1581
+ rootEl: HTMLDivElement;
1582
+ };
1583
+
1584
+ declare function __VLS_template_9(): {
1585
+ attrs: Partial<{}>;
1586
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1475
1587
  refs: {
1476
- rootRef: HTMLDivElement;
1477
- panelRef: ({
1588
+ basePopperRef: ({
1478
1589
  $: ComponentInternalInstance;
1479
1590
  $data: {};
1480
- $props: Partial<{
1481
- title: string;
1482
- loading: boolean;
1483
- categories: Category[];
1484
- maxVisibleItems: number;
1485
- }> & Omit<{
1486
- readonly title: string;
1487
- readonly items: SuggestionItem[];
1488
- readonly loading: boolean;
1489
- readonly categories: Category[];
1490
- readonly maxVisibleItems: number;
1491
- readonly onSelect?: ((...args: any[]) => any) | undefined;
1492
- readonly onClose?: ((...args: any[]) => any) | undefined;
1493
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
1494
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
1495
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
1591
+ $props: {
1592
+ readonly appendTo?: (string | HTMLElement) | undefined;
1593
+ readonly offset?: number | {
1594
+ mainAxis?: number;
1595
+ crossAxis?: number;
1596
+ } | undefined;
1597
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
1598
+ readonly preventOverflow?: boolean | undefined;
1599
+ readonly show?: boolean | undefined;
1600
+ readonly transitionProps?: TransitionProps | undefined;
1601
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1602
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1496
1603
  $attrs: {
1497
1604
  [x: string]: unknown;
1498
1605
  };
@@ -1505,46 +1612,25 @@ declare function __VLS_template_7(): {
1505
1612
  $root: ComponentPublicInstance | null;
1506
1613
  $parent: ComponentPublicInstance | null;
1507
1614
  $host: Element | null;
1508
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
1509
- $el: HTMLDivElement;
1510
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1511
- items: {
1512
- type: PropType<SuggestionItem[]>;
1513
- required: true;
1615
+ $emit: (event: string, ...args: any[]) => void;
1616
+ $el: any;
1617
+ $options: ComponentOptionsBase<Readonly<{
1618
+ appendTo?: string | HTMLElement;
1619
+ offset?: number | {
1620
+ mainAxis?: number;
1621
+ crossAxis?: number;
1514
1622
  };
1515
- categories: {
1516
- type: PropType<Category[]>;
1517
- default: () => never[];
1518
- };
1519
- loading: {
1520
- type: BooleanConstructor;
1521
- default: boolean;
1522
- };
1523
- title: {
1524
- type: StringConstructor;
1525
- default: string;
1526
- };
1527
- maxVisibleItems: {
1528
- type: NumberConstructor;
1529
- default: number;
1530
- };
1531
- }>> & Readonly<{
1532
- onSelect?: ((...args: any[]) => any) | undefined;
1533
- onClose?: ((...args: any[]) => any) | undefined;
1534
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1535
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1536
- }>, {
1537
- handleKeyDown: (e: KeyboardEvent) => void;
1538
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1539
- select: (...args: any[]) => void;
1540
- close: (...args: any[]) => void;
1541
- "category-select": (...args: any[]) => void;
1542
- "item-hover": (...args: any[]) => void;
1543
- }, string, {
1544
- title: string;
1545
- loading: boolean;
1546
- categories: Category[];
1547
- maxVisibleItems: number;
1623
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1624
+ preventOverflow?: boolean;
1625
+ show?: boolean;
1626
+ transitionProps?: TransitionProps;
1627
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1628
+ }> & Readonly<{}>, {
1629
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1630
+ popperRef: ComputedRef<HTMLDivElement | null>;
1631
+ update: () => void;
1632
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1633
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1548
1634
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1549
1635
  beforeCreate?: (() => void) | (() => void)[];
1550
1636
  created?: (() => void) | (() => void)[];
@@ -1566,75 +1652,58 @@ declare function __VLS_template_7(): {
1566
1652
  $nextTick: nextTick;
1567
1653
  $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;
1568
1654
  } & Readonly<{
1569
- title: string;
1570
- loading: boolean;
1571
- categories: Category[];
1572
- maxVisibleItems: number;
1573
- }> & Omit<Readonly<ExtractPropTypes< {
1574
- items: {
1575
- type: PropType<SuggestionItem[]>;
1576
- required: true;
1577
- };
1578
- categories: {
1579
- type: PropType<Category[]>;
1580
- default: () => never[];
1581
- };
1582
- loading: {
1583
- type: BooleanConstructor;
1584
- default: boolean;
1585
- };
1586
- title: {
1587
- type: StringConstructor;
1588
- default: string;
1589
- };
1590
- maxVisibleItems: {
1591
- type: NumberConstructor;
1592
- default: number;
1593
- };
1594
- }>> & Readonly<{
1595
- onSelect?: ((...args: any[]) => any) | undefined;
1596
- onClose?: ((...args: any[]) => any) | undefined;
1597
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1598
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1599
- }>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
1600
- handleKeyDown: (e: KeyboardEvent) => void;
1655
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1656
+ }> & Omit<Readonly<{
1657
+ appendTo?: string | HTMLElement;
1658
+ offset?: number | {
1659
+ mainAxis?: number;
1660
+ crossAxis?: number;
1661
+ };
1662
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1663
+ preventOverflow?: boolean;
1664
+ show?: boolean;
1665
+ transitionProps?: TransitionProps;
1666
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1667
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1668
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1669
+ popperRef: ComputedRef<HTMLDivElement | null>;
1670
+ update: () => void;
1601
1671
  }> & {} & ComponentCustomProperties & {} & {
1602
- $slots: {
1603
- 'title-icon'?(_: {}): any;
1604
- 'loading-indicator'?(_: {}): any;
1605
- item?(_: {
1606
- item: SuggestionItem;
1607
- active: boolean;
1608
- }): any;
1609
- empty?(_: {}): any;
1672
+ $slots: Readonly<{
1673
+ trigger?: () => VNode[];
1674
+ content?: () => VNode[];
1675
+ }> & {
1676
+ trigger?: () => VNode[];
1677
+ content?: () => VNode[];
1610
1678
  };
1611
1679
  }) | null;
1680
+ listRef: HTMLUListElement;
1681
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1682
+ show?: TooltipContentProps["show"];
1683
+ } & TooltipContentProps> & Readonly<{
1684
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1685
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1686
+ "update:show": (value: boolean | undefined) => any;
1687
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1688
+ P: {};
1689
+ B: {};
1690
+ D: {};
1691
+ C: {};
1692
+ M: {};
1693
+ Defaults: {};
1694
+ }, Readonly<{
1695
+ show?: TooltipContentProps["show"];
1696
+ } & TooltipContentProps> & Readonly<{
1697
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1698
+ }>, {}, {}, {}, {}, {}> | null;
1612
1699
  };
1613
- rootEl: HTMLDivElement;
1614
- };
1615
-
1616
- declare function __VLS_template_8(): {
1617
- attrs: Partial<{}>;
1618
- slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1619
- refs: {
1620
- containerRef: HTMLDivElement;
1621
- };
1622
- rootEl: HTMLDivElement;
1623
- };
1624
-
1625
- declare function __VLS_template_9(): {
1626
- attrs: Partial<{}>;
1627
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1628
- refs: {};
1629
- rootEl: HTMLButtonElement;
1700
+ rootEl: any;
1630
1701
  };
1631
1702
 
1632
1703
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1633
1704
 
1634
1705
  declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1635
1706
 
1636
- declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1637
-
1638
1707
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1639
1708
 
1640
1709
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1663,12 +1732,6 @@ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1663
1732
  };
1664
1733
  };
1665
1734
 
1666
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1667
- new (): {
1668
- $slots: S;
1669
- };
1670
- };
1671
-
1672
1735
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1673
1736
  new (): {
1674
1737
  $slots: S;
@@ -1728,43 +1791,41 @@ export declare interface ActionButtonsProps {
1728
1791
  disabled?: boolean;
1729
1792
  showClear?: boolean;
1730
1793
  hasContent?: boolean;
1794
+ buttonGroup?: ButtonGroupConfig;
1731
1795
  allowSpeech?: boolean;
1732
1796
  speechStatus?: {
1733
1797
  isRecording: boolean;
1734
1798
  isSupported: boolean;
1735
1799
  };
1736
1800
  allowFiles?: boolean;
1737
- uploadTooltip?: string;
1738
1801
  submitType?: SubmitTrigger;
1739
1802
  showShortcuts?: boolean;
1740
1803
  isOverLimit?: boolean;
1804
+ stopText?: string;
1741
1805
  }
1742
1806
 
1743
- export declare interface Attachment extends UploadFile {
1744
- previewUrl?: string;
1745
- fileType?: FileType;
1746
- size?: number;
1747
- progress?: number;
1748
- isUploading?: boolean;
1749
- messageType?: 'error' | 'warning' | 'success' | 'info' | 'retry' | 'uploading';
1750
- rawFile?: File;
1807
+ export declare type Attachment = UrlAttachment | RawFileAttachment;
1808
+
1809
+ export declare interface AttachmentListEmits {
1810
+ (e: 'update:items', items: Attachment[]): void;
1811
+ (e: 'remove', file: Attachment): void;
1812
+ (e: 'download', event: MouseEvent, file: Attachment): void;
1813
+ (e: 'retry', file: Attachment): void;
1814
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
1815
+ (e: 'action', payload: {
1816
+ action: ActionButton;
1817
+ file: Attachment;
1818
+ }): void;
1751
1819
  }
1752
1820
 
1753
- export declare interface AttachmentsProps {
1821
+ export declare interface AttachmentListProps {
1754
1822
  items?: Attachment[];
1755
1823
  disabled?: boolean;
1756
- overflow?: 'wrap' | 'scrollX' | 'scrollY';
1757
- drag?: boolean | DragConfig;
1758
- fileIcons?: Record<FileType, Component>;
1759
- rootClass?: string;
1760
- styles?: {
1761
- root?: CSSProperties;
1762
- card?: CSSProperties;
1763
- overlay?: CSSProperties;
1764
- };
1765
- statusType?: 'info' | 'progress' | 'operate' | 'message' | 'default';
1766
- customActions?: ActionButton[];
1767
- triggerUpload?: number;
1824
+ wrap?: boolean;
1825
+ fileIcons?: Record<string, Component>;
1826
+ actions?: ActionButton[];
1827
+ variant?: DisplayVariant;
1828
+ fileMatchers?: FileTypeMatcher[];
1768
1829
  }
1769
1830
 
1770
1831
  export declare type AutoSize = boolean | {
@@ -1772,6 +1833,18 @@ export declare type AutoSize = boolean | {
1772
1833
  maxRows: number;
1773
1834
  };
1774
1835
 
1836
+ export declare interface BaseAttachment {
1837
+ id?: string;
1838
+ name?: string;
1839
+ status?: FileStatus;
1840
+ fileType?: FileType;
1841
+ message?: string;
1842
+ }
1843
+
1844
+ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
1845
+
1846
+ export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1847
+
1775
1848
  declare interface BaseHistoryProps {
1776
1849
  activeTab?: string;
1777
1850
  searchBar?: boolean;
@@ -1781,7 +1854,13 @@ declare interface BaseHistoryProps {
1781
1854
  selected?: string;
1782
1855
  }
1783
1856
 
1784
- declare const Bubble: typeof _default_16 & {
1857
+ declare interface BaseTextItem {
1858
+ id: string;
1859
+ type: string;
1860
+ content: string;
1861
+ }
1862
+
1863
+ declare const Bubble: typeof _default_15 & {
1785
1864
  install: typeof bubbleInstall;
1786
1865
  };
1787
1866
  export { Bubble }
@@ -1789,7 +1868,7 @@ export { Bubble as TrBubble }
1789
1868
 
1790
1869
  declare const bubbleInstall: (app: App) => void;
1791
1870
 
1792
- declare const BubbleList: typeof _default_17 & {
1871
+ declare const BubbleList: typeof _default_16 & {
1793
1872
  install: typeof bubbleListInstall;
1794
1873
  };
1795
1874
  export { BubbleList }
@@ -1851,25 +1930,9 @@ export declare interface BubbleSlots {
1851
1930
  }) => unknown;
1852
1931
  }
1853
1932
 
1854
- /**
1855
- * 分类定义
1856
- */
1857
- export declare interface Category {
1858
- /** 唯一标识 */
1859
- id: string;
1860
- /** 显示名称 */
1861
- label: string;
1862
- /** 可选图标 */
1863
- icon?: VNode;
1864
- /** 该分类下的指令项 */
1865
- items: SuggestionItem[];
1866
- }
1867
-
1868
- declare interface Category_2 {
1869
- id: string;
1870
- label: string;
1871
- icon?: string;
1872
- questions: Question_2[];
1933
+ export declare interface ButtonGroupConfig {
1934
+ file?: ControlState & fileUploadConfig;
1935
+ submit?: ControlState;
1873
1936
  }
1874
1937
 
1875
1938
  export declare interface ContainerProps {
@@ -1890,122 +1953,85 @@ export declare interface ContainerSlots {
1890
1953
  footer: () => unknown;
1891
1954
  }
1892
1955
 
1956
+ export declare interface ControlState {
1957
+ tooltips?: string | TooltipRender;
1958
+ disabled?: boolean;
1959
+ }
1960
+
1893
1961
  declare const _default: {
1894
1962
  install<T>(app: App<T>): void;
1895
1963
  };
1896
1964
  export default _default;
1897
1965
 
1898
- declare const _default_10: typeof _default_26 & {
1966
+ declare const _default_10: typeof _default_25 & {
1899
1967
  install: typeof install_8;
1900
1968
  };
1901
- export { _default_10 as TrWelcome }
1902
- export { _default_10 as Welcome }
1969
+ export { _default_10 as Sender }
1970
+ export { _default_10 as TrSender }
1903
1971
 
1904
1972
  declare const _default_11: typeof _default_27 & {
1905
1973
  install: typeof install_9;
1906
1974
  };
1907
- export { _default_11 as Suggestion }
1908
- export { _default_11 as TrSuggestion }
1975
+ export { _default_11 as SuggestionPills }
1976
+ export { _default_11 as TrSuggestionPills }
1909
1977
 
1910
1978
  declare const _default_12: typeof _default_28 & {
1911
1979
  install: typeof install_10;
1912
1980
  };
1913
- export { _default_12 as SuggestionPills }
1914
- export { _default_12 as TrSuggestionPills }
1981
+ export { _default_12 as SuggestionPopover }
1982
+ export { _default_12 as TrSuggestionPopover }
1915
1983
 
1916
- declare const _default_13: typeof _default_30 & {
1984
+ declare const _default_13: typeof _default_29 & {
1917
1985
  install: typeof install_11;
1918
1986
  };
1919
- export { _default_13 as Question }
1920
- export { _default_13 as TrQuestion }
1921
-
1922
- declare const _default_14: typeof _default_31 & {
1923
- install: typeof install_12;
1924
- };
1925
- export { _default_14 as SuggestionPopover }
1926
- export { _default_14 as TrSuggestionPopover }
1927
-
1928
- declare const _default_15: DefineComponent<AttachmentsProps, {
1929
- triggerUpload: typeof triggerFileSelect;
1930
- addFiles: typeof handleDrop;
1931
- clearFiles: () => void;
1932
- getFiles: () => {
1933
- previewUrl?: string | undefined;
1934
- fileType?: FileType_2 | undefined;
1935
- size?: number | undefined;
1936
- progress?: number | undefined;
1937
- isUploading?: boolean | undefined;
1938
- messageType?: "error" | "warning" | "success" | "info" | "retry" | "uploading" | undefined;
1939
- rawFile?: {
1940
- readonly lastModified: number;
1941
- readonly name: string;
1942
- readonly webkitRelativePath: string;
1943
- readonly size: number;
1944
- readonly type: string;
1945
- arrayBuffer: () => Promise<ArrayBuffer>;
1946
- bytes: () => Promise<Uint8Array>;
1947
- slice: (start?: number, end?: number, contentType?: string) => Blob;
1948
- stream: () => ReadableStream<Uint8Array>;
1949
- text: () => Promise<string>;
1950
- } | undefined;
1951
- uid: string;
1952
- name: string;
1953
- status?: string | undefined;
1954
- }[];
1955
- getFileCount: () => number;
1956
- hasFiles: () => boolean;
1957
- formatFileSize: (size: number) => string;
1958
- createAttachments: (files: File[]) => {
1959
- uid: string;
1960
- name: string;
1961
- status: string;
1962
- fileType: FileType_2;
1963
- rawFile: File;
1964
- size: number;
1965
- previewUrl: string;
1966
- }[];
1967
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1968
- action: (...args: any[]) => void;
1969
- "update:items": (...args: any[]) => void;
1970
- "files-dropped": (...args: any[]) => void;
1971
- "file-remove": (...args: any[]) => void;
1972
- "file-preview": (...args: any[]) => void;
1973
- "file-download": (...args: any[]) => void;
1974
- "file-retry": (...args: any[]) => void;
1975
- }, string, PublicProps, Readonly<AttachmentsProps> & Readonly<{
1976
- onAction?: ((...args: any[]) => any) | undefined;
1977
- "onUpdate:items"?: ((...args: any[]) => any) | undefined;
1978
- "onFiles-dropped"?: ((...args: any[]) => any) | undefined;
1979
- "onFile-remove"?: ((...args: any[]) => any) | undefined;
1980
- "onFile-preview"?: ((...args: any[]) => any) | undefined;
1981
- "onFile-download"?: ((...args: any[]) => any) | undefined;
1982
- "onFile-retry"?: ((...args: any[]) => any) | undefined;
1987
+ export { _default_13 as TrWelcome }
1988
+ export { _default_13 as Welcome }
1989
+
1990
+ declare const _default_14: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1991
+ "update:items": (items: Attachment[]) => any;
1992
+ remove: (file: Attachment) => any;
1993
+ download: (event: MouseEvent, file: Attachment) => any;
1994
+ retry: (file: Attachment) => any;
1995
+ preview: (event: MouseEvent, file: Attachment) => any;
1996
+ action: (payload: {
1997
+ action: ActionButton;
1998
+ file: Attachment;
1999
+ }) => any;
2000
+ }, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
2001
+ "onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
2002
+ onRemove?: ((file: Attachment) => any) | undefined;
2003
+ onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2004
+ onRetry?: ((file: Attachment) => any) | undefined;
2005
+ onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2006
+ onAction?: ((payload: {
2007
+ action: ActionButton;
2008
+ file: Attachment;
2009
+ }) => any) | undefined;
1983
2010
  }>, {
1984
- disabled: boolean;
1985
- statusType: "info" | "progress" | "operate" | "message" | "default";
1986
- overflow: "wrap" | "scrollX" | "scrollY";
1987
- triggerUpload: number;
1988
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
1989
- dropZoneRef: HTMLDivElement;
1990
- }, HTMLDivElement>;
2011
+ actions: ActionButton[];
2012
+ fileMatchers: FileTypeMatcher_2[];
2013
+ variant: DisplayVariant_2;
2014
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1991
2015
 
1992
- declare const _default_16: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2016
+ declare const _default_15: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1993
2017
 
1994
- declare const _default_17: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2018
+ declare const _default_16: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1995
2019
  scrollContainerRef: HTMLDivElement;
1996
2020
  }, HTMLDivElement>;
1997
2021
 
1998
- declare const _default_18: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2022
+ declare const _default_17: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2023
+
2024
+ declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1999
2025
 
2000
- declare const _default_19: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2026
+ declare const _default_19: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2001
2027
 
2002
- declare const _default_2: typeof _default_15 & {
2028
+ declare const _default_2: typeof _default_14 & {
2003
2029
  install: typeof install;
2004
2030
  };
2005
2031
  export { _default_2 as Attachments }
2006
2032
  export { _default_2 as TrAttachments }
2007
2033
 
2008
- declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2034
+ declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2009
2035
 
2010
2036
  declare const _default_21: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2011
2037
  action: (name: string) => any;
@@ -2026,82 +2052,150 @@ svgSize: string | number;
2026
2052
 
2027
2053
  declare const _default_23: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2028
2054
 
2029
- declare const _default_24: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2055
+ declare const _default_24: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2030
2056
 
2031
- declare const _default_25: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2057
+ declare const _default_25: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2032
2058
 
2033
- declare const _default_26: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2059
+ declare const _default_26: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2034
2060
 
2035
- declare const _default_27: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2061
+ declare const _default_27: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2036
2062
 
2037
- declare const _default_28: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2063
+ declare const _default_28: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2038
2064
 
2039
- declare const _default_29: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2065
+ declare const _default_29: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2040
2066
 
2041
- declare const _default_3: typeof _default_18 & {
2067
+ declare const _default_3: typeof _default_17 & {
2042
2068
  install: typeof install_2;
2043
2069
  };
2044
2070
  export { _default_3 as Container }
2045
2071
  export { _default_3 as TrContainer }
2046
2072
 
2047
- declare const _default_30: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2048
-
2049
- declare const _default_31: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2050
-
2051
- declare const _default_4: typeof _default_19 & {
2073
+ declare const _default_4: typeof _default_18 & {
2052
2074
  install: typeof install_3;
2053
2075
  };
2054
2076
  export { _default_4 as Conversations }
2055
2077
  export { _default_4 as TrConversations }
2056
2078
 
2057
- declare const _default_5: typeof _default_20 & {
2079
+ declare const _default_5: typeof _default_19 & {
2058
2080
  install: typeof install_4;
2059
2081
  };
2060
- export { _default_5 as DropdownMenu }
2061
- export { _default_5 as TrDropdownMenu }
2082
+ export { _default_5 as DragOverlay }
2083
+ export { _default_5 as TrDragOverlay }
2062
2084
 
2063
- declare const _default_6: typeof _default_21 & {
2085
+ declare const _default_6: typeof _default_20 & {
2064
2086
  install: typeof install_5;
2065
2087
  };
2066
- export { _default_6 as Feedback }
2067
- export { _default_6 as TrFeedback }
2088
+ export { _default_6 as DropdownMenu }
2089
+ export { _default_6 as TrDropdownMenu }
2068
2090
 
2069
- declare const _default_7: {
2070
- install: <T>(app: App<T>) => void;
2071
- name: string;
2091
+ declare const _default_7: typeof _default_21 & {
2092
+ install: typeof install_6;
2072
2093
  };
2073
- export { _default_7 as History }
2074
- export { _default_7 as TrHistory }
2094
+ export { _default_7 as Feedback }
2095
+ export { _default_7 as TrFeedback }
2075
2096
 
2076
- declare const _default_8: typeof _default_22 & {
2077
- install: typeof install_6;
2097
+ declare const _default_8: {
2098
+ install: <T>(app: App<T>) => void;
2099
+ name: string;
2078
2100
  };
2079
- export { _default_8 as IconButton }
2080
- export { _default_8 as TrIconButton }
2101
+ export { _default_8 as History }
2102
+ export { _default_8 as TrHistory }
2081
2103
 
2082
- declare const _default_9: typeof _default_25 & {
2104
+ declare const _default_9: typeof _default_22 & {
2083
2105
  install: typeof install_7;
2084
2106
  };
2085
- export { _default_9 as Sender }
2086
- export { _default_9 as TrSender }
2087
-
2088
- export declare interface DragConfig {
2089
- mode?: 'fullscreen' | 'container';
2090
- target?: string | HTMLElement;
2091
- overlay?: {
2092
- zIndex?: number;
2093
- enterDelay?: number;
2094
- leaveDelay?: number;
2095
- className?: string;
2096
- };
2107
+ export { _default_9 as IconButton }
2108
+ export { _default_9 as TrIconButton }
2109
+
2110
+ export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2111
+
2112
+ declare interface DragAwareElement extends HTMLElement {
2113
+ __vDropzoneHandlers__?: Handlers;
2114
+ __vDropzoneOptions__?: DragAwareOptions;
2115
+ }
2116
+
2117
+ declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
2118
+
2119
+ /**
2120
+ * 拖拽上传组件的属性
2121
+ */
2122
+ export declare interface DragOverlayProps {
2123
+ /**
2124
+ * 覆盖层标题
2125
+ * @default ''
2126
+ */
2127
+ overlayTitle?: string;
2128
+ /**
2129
+ * 覆盖层描述文本数组
2130
+ * @default []
2131
+ */
2132
+ overlayDescription?: string[];
2133
+ /**
2134
+ * 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
2135
+ * @default false
2136
+ */
2137
+ isDragging?: boolean;
2138
+ /**
2139
+ * @description 拖拽目标元素,用于定位覆盖层
2140
+ * @default null
2141
+ */
2142
+ dragTarget?: HTMLElement | null;
2143
+ /**
2144
+ * @description 是否全屏模式,控制覆盖层的边框显示
2145
+ * @default false
2146
+ */
2147
+ fullscreen?: boolean;
2148
+ }
2149
+
2150
+ export declare interface DragOverlaySlots {
2151
+ /**
2152
+ * 覆盖层插槽,用于自定义拖拽时的覆盖层内容
2153
+ */
2154
+ overlay?: (props: {
2155
+ isDragging: boolean;
2156
+ }) => unknown;
2157
+ }
2158
+
2159
+ /**
2160
+ * 拖拽区域错误码
2161
+ */
2162
+ declare enum DragZoneErrorCode {
2163
+ /**
2164
+ * 文件类型不允许
2165
+ */
2166
+ FileTypeNotAllowed = "file-type-not-allowed",
2167
+ /**
2168
+ * 文件大小超出限制
2169
+ */
2170
+ FileSizeExceeded = "file-size-exceeded",
2171
+ /**
2172
+ * 文件数量超出限制
2173
+ */
2174
+ FileCountExceeded = "file-count-exceeded"
2097
2175
  }
2098
2176
 
2099
2177
  export declare interface DropdownMenuEmits {
2100
2178
  (e: 'item-click', item: DropdownMenuItem): void;
2179
+ /**
2180
+ * 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
2181
+ */
2182
+ (e: 'click-outside', event: MouseEvent): void;
2183
+ }
2184
+
2185
+ export declare interface DropdownMenuEventProps {
2186
+ onItemClick?: (item: DropdownMenuItem) => void;
2187
+ onClickOutside?: (event: MouseEvent) => void;
2101
2188
  }
2102
2189
 
2103
2190
  export declare interface DropdownMenuEvents {
2191
+ /**
2192
+ * @deprecated
2193
+ */
2104
2194
  itemClick?: (item: DropdownMenuItem) => void;
2195
+ /**
2196
+ * @deprecated
2197
+ */
2198
+ clickOutside?: (event: MouseEvent) => void;
2105
2199
  }
2106
2200
 
2107
2201
  export declare interface DropdownMenuItem {
@@ -2110,13 +2204,69 @@ export declare interface DropdownMenuItem {
2110
2204
  }
2111
2205
 
2112
2206
  export declare interface DropdownMenuProps {
2207
+ appendTo?: string | HTMLElement;
2113
2208
  items: DropdownMenuItem[];
2114
- minWidth?: string | number;
2115
- topOffset?: string | number;
2209
+ /**
2210
+ * trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
2211
+ * 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
2212
+ */
2213
+ show?: boolean;
2214
+ /**
2215
+ * 触发方式。默认值为 'click'
2216
+ */
2217
+ trigger?: 'click' | 'hover' | 'manual';
2116
2218
  }
2117
2219
 
2118
2220
  export declare interface DropdownMenuSlots {
2119
- default?: () => unknown;
2221
+ trigger?: () => VNode | VNode[];
2222
+ }
2223
+
2224
+ /**
2225
+ * 拖拽上传组件的属性
2226
+ */
2227
+ export declare interface DropzoneBinding {
2228
+ /**
2229
+ * 允许上传的文件类型, 与原生 input 的 accept 属性一致
2230
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
2231
+ * @example '.jpg,.png,image/*'
2232
+ */
2233
+ accept?: string;
2234
+ /**
2235
+ * 是否允许多选
2236
+ * @default true
2237
+ */
2238
+ multiple?: boolean;
2239
+ /**
2240
+ * 是否禁用拖拽
2241
+ * @default false
2242
+ */
2243
+ disabled?: boolean;
2244
+ /**
2245
+ * 单个文件的最大大小(单位:字节)
2246
+ * @default 10 * 1024 * 1024 (10MB)
2247
+ */
2248
+ maxSize?: number;
2249
+ /**
2250
+ * 允许上传的最大文件数量
2251
+ * @default 3
2252
+ */
2253
+ maxFiles?: number;
2254
+ /**
2255
+ * 拖拽完成后的回调
2256
+ * @param files 上传的文件
2257
+ */
2258
+ onDrop: (files: File[]) => void;
2259
+ /**
2260
+ * 拖拽失败后的回调
2261
+ * @param rejection 拒绝信息
2262
+ */
2263
+ onError: (rejection: FileRejection) => void;
2264
+ /**
2265
+ * 拖拽开始时的回调
2266
+ * @param dragging 是否正在拖拽
2267
+ * @param element 拖拽目标元素
2268
+ */
2269
+ onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
2120
2270
  }
2121
2271
 
2122
2272
  export declare interface FeedbackEvents {
@@ -2145,9 +2295,51 @@ export declare interface FeedbackProps {
2145
2295
  sourcesLinesLimit?: number;
2146
2296
  }
2147
2297
 
2148
- export declare type FileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
2298
+ export declare interface FileCardEmits {
2299
+ (e: 'remove', file: Attachment): void;
2300
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
2301
+ (e: 'download', event: MouseEvent, file: Attachment): void;
2302
+ (e: 'retry', file: Attachment): void;
2303
+ (e: 'action', payload: {
2304
+ action: ActionButton;
2305
+ file: Attachment;
2306
+ }): void;
2307
+ }
2308
+
2309
+ export declare interface FileCardProps extends BaseCardProps {
2310
+ file: Attachment;
2311
+ variant: 'picture' | 'card';
2312
+ showStatus?: boolean;
2313
+ }
2314
+
2315
+ /**
2316
+ * 文件拒绝信息
2317
+ */
2318
+ export declare interface FileRejection extends RejectionReason {
2319
+ files: File[];
2320
+ }
2321
+
2322
+ export declare type FileStatus = 'uploading' | 'success' | 'error';
2323
+
2324
+ export declare type FileType = BaseFileType | string;
2325
+
2326
+ export declare interface FileTypeMatcher {
2327
+ type: string;
2328
+ matcher: (file: File | string) => boolean;
2329
+ icon?: Component;
2330
+ }
2331
+
2332
+ declare interface fileUploadConfig {
2333
+ accept?: string;
2334
+ multiple?: boolean;
2335
+ }
2149
2336
 
2150
- declare function handleDrop(files: File[]): void;
2337
+ export declare interface Handlers {
2338
+ handleDragEnter: (e: DragEvent) => void;
2339
+ handleDragOver: (e: DragEvent) => void;
2340
+ handleDragLeave: (e: DragEvent) => void;
2341
+ handleDrop: (e: DragEvent) => void;
2342
+ }
2151
2343
 
2152
2344
  export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2153
2345
 
@@ -2199,8 +2391,6 @@ declare const install_10: <T>(app: App<T>) => void;
2199
2391
 
2200
2392
  declare const install_11: <T>(app: App<T>) => void;
2201
2393
 
2202
- declare const install_12: <T>(app: App<T>) => void;
2203
-
2204
2394
  declare const install_2: <T>(app: App<T>) => void;
2205
2395
 
2206
2396
  declare const install_3: <T>(app: App<T>) => void;
@@ -2306,55 +2496,23 @@ export declare interface PromptsSlots {
2306
2496
  footer?: () => unknown;
2307
2497
  }
2308
2498
 
2309
- declare interface Question_2 {
2310
- id: string;
2311
- text: string;
2312
- keywords?: string[];
2499
+ export declare interface RawFileAttachment extends BaseAttachment {
2500
+ rawFile: File;
2501
+ url?: string;
2502
+ size?: number;
2313
2503
  }
2314
2504
 
2315
2505
  /**
2316
- * Question组件属性定义
2506
+ * 文件拒绝原因
2317
2507
  */
2318
- declare interface QuestionProps {
2319
- /**
2320
- * 问题分类列表
2321
- * 包含多个分类,每个分类下有多个问题
2322
- */
2323
- categories: Category_2[];
2324
- /**
2325
- * 浮动显示的问题列表
2326
- * 显示在组件底部的常见问题胶囊
2327
- */
2328
- commonQuestions: Question_2[];
2329
- /**
2330
- * 是否初始展开常见问题
2331
- * @default false
2332
- */
2333
- initialExpanded?: boolean;
2334
- /**
2335
- * 弹窗宽度
2336
- * @default '640px'
2337
- */
2338
- modalWidth?: string;
2339
- /**
2340
- * 主题类型
2341
- * @default 'light'
2342
- */
2343
- theme?: ThemeType_3;
2344
- /**
2345
- * 是否点击外部关闭弹窗
2346
- * @default true
2347
- */
2348
- closeOnClickOutside?: boolean;
2349
- /**
2350
- * 是否显示加载中状态
2351
- * @default false
2352
- */
2353
- loading?: boolean;
2508
+ export declare interface RejectionReason {
2509
+ code: DragZoneErrorCode;
2510
+ message: string;
2354
2511
  }
2355
2512
 
2356
2513
  export declare type SenderEmits = {
2357
2514
  (e: 'update:modelValue', value: string): void;
2515
+ (e: 'update:templateData', value: UserItem[]): void;
2358
2516
  (e: 'submit', value: string): void;
2359
2517
  (e: 'clear'): void;
2360
2518
  (e: 'speech-start'): void;
@@ -2367,8 +2525,7 @@ export declare type SenderEmits = {
2367
2525
  (e: 'escape-press'): void;
2368
2526
  (e: 'cancel'): void;
2369
2527
  (e: 'reset-template'): void;
2370
- (e: 'upload-online'): void;
2371
- (e: 'files-selected', files: FileList | null): void;
2528
+ (e: 'files-selected', files: File[]): void;
2372
2529
  };
2373
2530
 
2374
2531
  export declare interface SenderProps {
@@ -2376,7 +2533,6 @@ export declare interface SenderProps {
2376
2533
  autoSize?: AutoSize;
2377
2534
  allowSpeech?: boolean;
2378
2535
  allowFiles?: boolean;
2379
- uploadTooltip?: string;
2380
2536
  clearable?: boolean;
2381
2537
  disabled?: boolean;
2382
2538
  defaultValue?: string | null;
@@ -2384,25 +2540,16 @@ export declare interface SenderProps {
2384
2540
  modelValue?: string;
2385
2541
  mode?: InputMode;
2386
2542
  maxLength?: number;
2543
+ buttonGroup?: ButtonGroupConfig;
2387
2544
  submitType?: SubmitTrigger;
2388
2545
  speech?: boolean | SpeechConfig;
2389
2546
  placeholder?: string;
2390
2547
  showWordLimit?: boolean;
2391
2548
  suggestions?: string[];
2549
+ suggestionPopupWidth?: string | number;
2392
2550
  theme?: ThemeType;
2393
- template?: string;
2394
- hasContent?: boolean;
2395
- templateInitialValues?: Record<string, string>;
2396
- }
2397
-
2398
- /**
2399
- * 设置模板的参数接口
2400
- */
2401
- export declare interface SetTemplateParams {
2402
- /** 模板字符串,格式为普通文本与 [占位符] 的组合 */
2403
- template: string;
2404
- /** 字段初始值,键为占位符文本,值为初始内容 */
2405
- initialValues?: Record<string, string>;
2551
+ templateData?: UserItem[];
2552
+ stopText?: string;
2406
2553
  }
2407
2554
 
2408
2555
  export declare type SingleTabHistoryProps = {
@@ -2439,79 +2586,23 @@ export declare interface SpeechState {
2439
2586
 
2440
2587
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2441
2588
 
2442
- declare type SuggestionData = (SuggestionItem_2 | SuggestionGroup)[];
2443
-
2444
- /**
2445
- * 组件事件
2446
- */
2447
- export declare interface SuggestionEmits {
2448
- /** 双向绑定打开状态 (v-model) */
2449
- (e: 'update:open', value: boolean): void;
2450
- /** 选中指令项 */
2451
- (e: 'select', value: string, context?: TriggerContext): void;
2452
- /** 关闭面板 */
2453
- (e: 'close'): void;
2454
- /** 触发回调 */
2455
- (e: 'trigger', handler: TriggerHandler): void;
2456
- /** 选择分类 */
2457
- (e: 'category-select', category: Category): void;
2458
- /** 点击胶囊指令 */
2459
- (e: 'suggestion-select', item: SuggestionItem): void;
2460
- /** 展开/收起状态变化 */
2461
- (e: 'update:expanded', expanded: boolean): void;
2462
- /** 填充模板到输入框 */
2463
- (e: 'fill-template', template: string): void;
2464
- }
2465
-
2466
- declare interface SuggestionGroup {
2467
- group: string;
2468
- label: string;
2469
- icon?: VNode | Component;
2470
- items: SuggestionItem_2[];
2471
- }
2472
-
2473
- /**
2474
- * 指令项定义
2475
- */
2476
- export declare interface SuggestionItem {
2477
- /** 唯一标识 */
2589
+ export declare interface SuggestionBaseItem {
2478
2590
  id: string;
2479
- /** 显示文本 */
2480
2591
  text: string;
2481
- /** 指令值 */
2482
- value: string;
2483
- /** 图标 */
2484
- icon?: VNode;
2485
- /** 关键词,用于搜索和过滤 */
2486
- keywords?: string[];
2487
- /** 描述文本 */
2488
- description?: string;
2489
- /** 指令模板,用于在输入框中显示可编辑的模板 */
2490
- template?: string;
2491
2592
  }
2492
2593
 
2493
- declare interface SuggestionItem_2 {
2494
- id: string;
2495
- text: string;
2496
- }
2594
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2497
2595
 
2498
- export declare type SuggestionPillAction = {
2499
- type: 'popover';
2500
- props: SuggestionPopoverProps;
2501
- slots?: Omit<SuggestionPopoverSlots, 'default'>;
2502
- events?: SuggestionPopoverEvents;
2503
- } | {
2504
- type: 'menu';
2505
- props: DropdownMenuProps;
2506
- events?: DropdownMenuEvents;
2507
- };
2596
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2597
+ group: string;
2598
+ label: string;
2599
+ icon?: VNode | Component;
2600
+ items: SuggestionItem<T>[];
2601
+ }
2508
2602
 
2509
- export declare type SuggestionPillBaseItem<T> = {
2510
- id: string;
2511
- action?: SuggestionPillAction;
2512
- } & T;
2603
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2513
2604
 
2514
- declare const SuggestionPillButton: typeof _default_29 & {
2605
+ declare const SuggestionPillButton: typeof _default_26 & {
2515
2606
  install: typeof installPillButton;
2516
2607
  };
2517
2608
  export { SuggestionPillButton }
@@ -2526,41 +2617,89 @@ export declare interface SuggestionPillButtonSlots {
2526
2617
  icon?: () => unknown;
2527
2618
  }
2528
2619
 
2529
- export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
2620
+ export declare type SuggestionPillItem = {
2530
2621
  text: string;
2531
2622
  icon?: VNode | Component;
2532
2623
  } | {
2533
2624
  text?: string;
2534
2625
  icon: VNode | Component;
2535
- });
2626
+ };
2536
2627
 
2537
2628
  export declare interface SuggestionPillsEmits {
2538
- (e: 'item-click', item: SuggestionPillItem): void;
2629
+ (e: 'click-outside', event: MouseEvent): void;
2539
2630
  }
2540
2631
 
2541
2632
  export declare interface SuggestionPillsProps {
2542
- items?: SuggestionPillItem[];
2543
2633
  /**
2544
2634
  * model:showAll
2545
2635
  */
2546
2636
  showAll?: boolean;
2637
+ /**
2638
+ * 显示更多按钮的时机
2639
+ * - hover: 鼠标悬停时显示
2640
+ * - always: 总是显示
2641
+ * @default 'hover'
2642
+ */
2643
+ showAllButtonOn?: 'hover' | 'always';
2644
+ /**
2645
+ * 控制多余按钮如何展示
2646
+ * - expand: 点击更多按钮展开所有项
2647
+ * - scroll: 横向滚动显示多余项
2648
+ * @default 'expand'
2649
+ */
2650
+ overflowMode?: 'expand' | 'scroll';
2651
+ /**
2652
+ * 鼠标悬停时是否自动滚动到可见区域
2653
+ */
2654
+ autoScrollOn?: 'mouseenter' | 'click';
2547
2655
  }
2548
2656
 
2549
- /**
2550
- * @deprecated
2551
- */
2552
2657
  export declare interface SuggestionPillsSlots {
2553
- default?: () => VNode | VNode[];
2658
+ default?: () => VNode[];
2659
+ }
2660
+
2661
+ export declare interface SuggestionPopoverEmits {
2662
+ (e: 'item-click', item: SuggestionItem): void;
2663
+ (e: 'group-click', group: SuggestionGroup): void;
2664
+ (e: 'open'): void;
2665
+ (e: 'close'): void;
2666
+ (e: 'click-outside', event: MouseEvent): void;
2667
+ }
2668
+
2669
+ export declare interface SuggestionPopoverEventProps {
2670
+ onItemClick?: (item: SuggestionItem) => void;
2671
+ onGroupClick?: (group: SuggestionGroup) => void;
2672
+ onOpen?: () => void;
2673
+ onClose?: () => void;
2674
+ onClickOutside?: (event: MouseEvent) => void;
2554
2675
  }
2555
2676
 
2556
- declare interface SuggestionPopoverEvents {
2557
- itemClick?: (item: SuggestionItem_2) => void;
2677
+ export declare interface SuggestionPopoverEvents {
2678
+ /**
2679
+ * @deprecated use onItemClick in props instead
2680
+ */
2681
+ itemClick?: (item: SuggestionItem) => void;
2682
+ /**
2683
+ * @deprecated use onGroupClick in props instead
2684
+ */
2558
2685
  groupClick?: (group: SuggestionGroup) => void;
2686
+ /**
2687
+ * @deprecated use onOpen in props instead
2688
+ */
2689
+ open?: () => void;
2690
+ /**
2691
+ * @deprecated use onClose in props instead
2692
+ */
2559
2693
  close?: () => void;
2694
+ /**
2695
+ * @deprecated use onClickOutside in props instead
2696
+ */
2697
+ clickOutside?: (event: MouseEvent) => void;
2560
2698
  }
2561
2699
 
2562
- declare interface SuggestionPopoverProps {
2563
- data: SuggestionData;
2700
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2701
+ appendTo?: string | HTMLElement;
2702
+ data: SuggestionData<T>;
2564
2703
  title?: string;
2565
2704
  icon?: VNode | Component;
2566
2705
  /**
@@ -2577,101 +2716,33 @@ declare interface SuggestionPopoverProps {
2577
2716
  selectedGroup?: string;
2578
2717
  groupShowMoreTrigger?: 'click' | 'hover';
2579
2718
  loading?: boolean;
2580
- popoverWidth?: string | number;
2581
- popoverHeight?: string | number;
2582
- topOffset?: string | number;
2583
- }
2584
-
2585
- declare interface SuggestionPopoverSlots {
2586
- default?: () => unknown;
2587
- loading?: () => unknown;
2588
- empty?: () => unknown;
2589
- }
2590
-
2591
- /**
2592
- * 组件属性
2593
- */
2594
- export declare interface SuggestionProps {
2595
- /** 触发快捷键列表 */
2596
- triggerKeys?: string[];
2597
- /** 指令项列表 */
2598
- items: SuggestionItem[];
2599
- /** 分类列表 */
2600
- categories?: Category[];
2601
- /** 是否显示面板 (支持v-model) */
2602
- open?: boolean;
2603
- /** 自定义类名 */
2604
- className?: string;
2605
- /** 主题,light或dark */
2606
- theme?: 'light' | 'dark';
2607
- /** 是否显示加载状态 */
2608
- loading?: boolean;
2609
- /** 是否点击外部关闭面板 */
2610
- closeOnOutsideClick?: boolean;
2611
- /** 面板标题 */
2612
- title?: string;
2613
- /** 最大显示条目数 */
2614
- maxVisibleItems?: number;
2615
- /** 默认是否展开完整指令列表 */
2616
- defaultExpanded?: boolean;
2719
+ topOffset?: number;
2617
2720
  }
2618
2721
 
2619
- /**
2620
- * 模板编辑器事件
2621
- */
2622
- export declare interface TemplateEditorEmits {
2623
- /** 输入事件 */
2624
- (e: 'input', value: string): void;
2625
- /** 内容变更状态 - 通知父组件是否有内容 */
2626
- (e: 'content-status', hasContent: boolean): void;
2627
- /** 提交事件 */
2628
- (e: 'submit', value: string): void;
2629
- /** 聚焦事件 */
2630
- (e: 'focus', event: FocusEvent): void;
2631
- /** 失焦事件 */
2632
- (e: 'blur', event: FocusEvent): void;
2633
- /** 模板内容为空时触发,通知父组件可以退出模板编辑模式 */
2634
- (e: 'empty-content'): void;
2722
+ export declare interface SuggestionPopoverSlots {
2723
+ trigger?: () => VNode | VNode[];
2724
+ item?: ({ item }: {
2725
+ item: SuggestionItem;
2726
+ }) => VNode | VNode[];
2727
+ loading?: () => VNode | VNode[];
2728
+ empty?: () => VNode | VNode[];
2729
+ header?: () => VNode | VNode[];
2730
+ body?: () => VNode | VNode[];
2635
2731
  }
2636
2732
 
2637
- /**
2638
- * 模板编辑器暴露的方法
2639
- */
2640
- export declare interface TemplateEditorExpose {
2641
- /** 聚焦到编辑器 */
2642
- focus: () => void;
2643
- /** 重置所有字段 */
2644
- resetFields: () => void;
2645
- /** 激活第一个字段 */
2646
- activateFirstField: () => void;
2647
- /** 获取当前DOM中的值 */
2648
- getValueFromDOM: () => string;
2649
- /** 设置模板和初始值 */
2650
- setTemplate: (params: SetTemplateParams) => void;
2733
+ export declare interface SuggestionTextPart {
2734
+ text: string;
2735
+ isMatch: boolean;
2651
2736
  }
2652
2737
 
2653
- /**
2654
- * 模板编辑器属性
2655
- */
2656
- export declare interface TemplateEditorProps {
2657
- /** 当前值 */
2658
- value?: string;
2659
- /** 是否自动聚焦 */
2660
- autofocus?: boolean;
2738
+ declare interface TemplateItem extends BaseTextItem {
2739
+ type: 'template';
2740
+ prefix: string;
2741
+ suffix: string;
2661
2742
  }
2662
2743
 
2663
- /**
2664
- * 模板部分定义
2665
- */
2666
- export declare interface TemplatePart {
2667
- /** 内容文本 */
2668
- content: string;
2669
- /** 是否为可编辑字段 */
2670
- isField: boolean;
2671
- /** 占位符文本 (当字段为空时显示) */
2672
- placeholder?: string;
2673
- /** 字段索引 (用于标识可编辑字段) */
2674
- fieldIndex?: number;
2744
+ declare interface TextItem extends BaseTextItem {
2745
+ type: 'text';
2675
2746
  }
2676
2747
 
2677
2748
  /**
@@ -2679,32 +2750,26 @@ export declare interface TemplatePart {
2679
2750
  */
2680
2751
  export declare type ThemeType = 'light' | 'dark';
2681
2752
 
2682
- declare type ThemeType_3 = 'light' | 'dark';
2753
+ export declare type TooltipRender = () => VNode | string;
2683
2754
 
2684
- /**
2685
- * 触发位置信息
2686
- */
2687
- export declare interface TriggerContext {
2688
- /** 触发的文本 */
2689
- text: string;
2690
- /** 触发的位置 */
2691
- position: number;
2755
+ export declare interface UrlAttachment extends BaseAttachment {
2756
+ url: string;
2757
+ size: number;
2758
+ rawFile?: File;
2692
2759
  }
2693
2760
 
2694
- declare function triggerFileSelect(): void;
2761
+ export declare type UserItem = UserTextItem | UserTemplateItem;
2695
2762
 
2696
- /** 触发处理函数类型 */
2697
- export declare type TriggerHandler = (info: TriggerInfo) => void;
2763
+ export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
2698
2764
 
2699
- /** 触发信息类型 */
2700
- export declare type TriggerInfo = TriggerContext | false;
2765
+ export declare type UserTextItem = Omit<TextItem, 'id'>;
2701
2766
 
2702
- export declare interface UploadFile {
2703
- uid: string;
2704
- name: string;
2705
- status?: string;
2706
- rawFile?: File;
2707
- }
2767
+ /**
2768
+ * 拖拽区域指令
2769
+ * @param el 元素
2770
+ * @param binding 绑定
2771
+ */
2772
+ export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
2708
2773
 
2709
2774
  export declare interface WelcomeProps {
2710
2775
  title: string;