@opentiny/tiny-robot 0.2.12 → 0.2.14

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
@@ -46,74 +46,6 @@ maxWidth: string | number;
46
46
  content: string;
47
47
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
48
 
49
- declare const __VLS_component_10: DefineComponent<QuestionProps, {
50
- openModal: () => void;
51
- closeModal: () => void;
52
- toggleFloating: () => void;
53
- setActiveCategory: (categoryId: string) => void;
54
- refreshData: () => Promise<void>;
55
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
56
- "question-click": (question: Question_2) => any;
57
- "select-category": (category: Category_2) => any;
58
- }, string, PublicProps, Readonly<QuestionProps> & Readonly<{
59
- "onQuestion-click"?: ((question: Question_2) => any) | undefined;
60
- "onSelect-category"?: ((category: Category_2) => any) | undefined;
61
- }>, {
62
- loading: boolean;
63
- categories: Category_2[];
64
- modalWidth: string;
65
- closeOnClickOutside: boolean;
66
- commonQuestions: Question_2[];
67
- initialExpanded: boolean;
68
- theme: ThemeType_2;
69
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
70
-
71
- declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
72
- "update:selectedGroup": (value: string) => any;
73
- } & {
74
- close: () => any;
75
- open: () => any;
76
- "item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
77
- "click-outside": (event: MouseEvent) => any;
78
- "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
79
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
80
- onClose?: (() => any) | undefined;
81
- onOpen?: (() => any) | undefined;
82
- "onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
83
- "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
84
- "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
85
- "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
86
- }>, {
87
- title: string;
88
- trigger: "click" | "manual";
89
- groupShowMoreTrigger: "click" | "hover";
90
- popoverWidth: string | number;
91
- popoverHeight: string | number;
92
- topOffset: string | number;
93
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
94
- popoverTriggerRef: HTMLDivElement;
95
- popoverRef: HTMLDivElement;
96
- listRef: HTMLUListElement;
97
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
98
- show?: TooltipContentProps["show"];
99
- } & TooltipContentProps> & Readonly<{
100
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
101
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
102
- "update:show": (value: boolean | undefined) => any;
103
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
104
- P: {};
105
- B: {};
106
- D: {};
107
- C: {};
108
- M: {};
109
- Defaults: {};
110
- }, Readonly<{
111
- show?: TooltipContentProps["show"];
112
- } & TooltipContentProps> & Readonly<{
113
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
114
- }>, {}, {}, {}, {}, {}> | null;
115
- }, any>;
116
-
117
49
  declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
118
50
  "update:show": (value: boolean) => any;
119
51
  "update:fullscreen": (value: boolean | undefined) => any;
@@ -135,6 +67,7 @@ basePopperRef: ({
135
67
  $: ComponentInternalInstance;
136
68
  $data: {};
137
69
  $props: {
70
+ readonly appendTo?: (string | HTMLElement) | undefined;
138
71
  readonly offset?: number | {
139
72
  mainAxis?: number;
140
73
  crossAxis?: number;
@@ -163,6 +96,7 @@ $host: Element | null;
163
96
  $emit: (event: string, ...args: any[]) => void;
164
97
  $el: any;
165
98
  $options: ComponentOptionsBase<Readonly<{
99
+ appendTo?: string | HTMLElement;
166
100
  offset?: number | {
167
101
  mainAxis?: number;
168
102
  crossAxis?: number;
@@ -202,6 +136,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
202
136
  } & Readonly<{
203
137
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
204
138
  }> & Omit<Readonly<{
139
+ appendTo?: string | HTMLElement;
205
140
  offset?: number | {
206
141
  mainAxis?: number;
207
142
  crossAxis?: number;
@@ -218,11 +153,11 @@ triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
218
153
  popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
219
154
  }> & {} & ComponentCustomProperties & {} & {
220
155
  $slots: Readonly<{
221
- trigger?: () => VNode | VNode[];
222
- content?: () => VNode | VNode[];
156
+ trigger?: () => VNode[];
157
+ content?: () => VNode[];
223
158
  }> & {
224
- trigger?: () => VNode | VNode[];
225
- content?: () => VNode | VNode[];
159
+ trigger?: () => VNode[];
160
+ content?: () => VNode[];
226
161
  };
227
162
  }) | null;
228
163
  }, any>;
@@ -249,15 +184,12 @@ activateTemplateFirstField: () => void;
249
184
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
250
185
  }>, {
251
186
  loading: boolean;
252
- template: string;
253
187
  mode: InputMode_2;
254
188
  disabled: boolean;
255
189
  modelValue: string;
256
190
  autofocus: boolean;
257
191
  clearable: boolean;
258
192
  showWordLimit: boolean;
259
- theme: ThemeType_2;
260
- hasContent: boolean;
261
193
  allowSpeech: boolean;
262
194
  allowFiles: boolean;
263
195
  submitType: SubmitTrigger_2;
@@ -267,6 +199,7 @@ maxLength: number;
267
199
  placeholder: string;
268
200
  suggestions: string[];
269
201
  suggestionPopupWidth: string | number;
202
+ theme: ThemeType_2;
270
203
  templateData: UserItem[];
271
204
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
272
205
  senderRef: HTMLDivElement;
@@ -274,8 +207,8 @@ inputWrapperRef: HTMLDivElement;
274
207
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
275
208
  modelValue?: UserItem[];
276
209
  }> & Readonly<{
277
- onSubmit?: (() => any) | undefined;
278
210
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
211
+ onSubmit?: (() => any) | undefined;
279
212
  }>, {
280
213
  clearHistory: () => void;
281
214
  activateFirstField: () => void;
@@ -295,8 +228,8 @@ Defaults: {};
295
228
  }, Readonly<{
296
229
  modelValue?: UserItem[];
297
230
  }> & Readonly<{
298
- onSubmit?: (() => any) | undefined;
299
231
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
232
+ onSubmit?: (() => any) | undefined;
300
233
  }>, {
301
234
  clearHistory: () => void;
302
235
  activateFirstField: () => void;
@@ -755,184 +688,9 @@ buttonsContainerRef: HTMLDivElement;
755
688
  suggestionsListRef: HTMLDivElement;
756
689
  }, HTMLDivElement>;
757
690
 
758
- declare const __VLS_component_6: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
759
- align: "left" | "center" | "right" | string;
760
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
691
+ declare const __VLS_component_6: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
761
692
 
762
- declare const __VLS_component_7: DefineComponent<SuggestionProps, {
763
- trigger: TriggerHandler;
764
- keyDown: (e: KeyboardEvent) => void;
765
- input: (event: Event, text: string) => boolean;
766
- toggleExpand: () => void;
767
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
768
- close: () => any;
769
- select: (value: string, context?: TriggerContext | undefined) => any;
770
- trigger: (handler: TriggerHandler) => any;
771
- "suggestion-select": (item: SuggestionItem) => any;
772
- "update:open": (value: boolean) => any;
773
- "category-select": (category: Category) => any;
774
- "update:expanded": (expanded: boolean) => any;
775
- "fill-template": (template: string) => any;
776
- }, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
777
- onClose?: (() => any) | undefined;
778
- onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
779
- onTrigger?: ((handler: TriggerHandler) => any) | undefined;
780
- "onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
781
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
782
- "onCategory-select"?: ((category: Category) => any) | undefined;
783
- "onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
784
- "onFill-template"?: ((template: string) => any) | undefined;
785
- }>, {
786
- open: boolean;
787
- loading: boolean;
788
- title: string;
789
- items: SuggestionItem[];
790
- categories: Category[];
791
- theme: "light" | "dark";
792
- maxVisibleItems: number;
793
- triggerKeys: string[];
794
- closeOnOutsideClick: boolean;
795
- defaultExpanded: boolean;
796
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
797
- rootRef: HTMLDivElement;
798
- panelRef: ({
799
- $: ComponentInternalInstance;
800
- $data: {};
801
- $props: Partial<{
802
- loading: boolean;
803
- title: string;
804
- categories: Category[];
805
- maxVisibleItems: number;
806
- }> & Omit<{
807
- readonly loading: boolean;
808
- readonly title: string;
809
- readonly items: SuggestionItem[];
810
- readonly categories: Category[];
811
- readonly maxVisibleItems: number;
812
- readonly onClose?: ((...args: any[]) => any) | undefined;
813
- readonly onSelect?: ((...args: any[]) => any) | undefined;
814
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
815
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
816
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "title" | "categories" | "maxVisibleItems">;
817
- $attrs: {
818
- [x: string]: unknown;
819
- };
820
- $refs: {
821
- [x: string]: unknown;
822
- };
823
- $slots: Readonly<{
824
- [name: string]: Slot<any> | undefined;
825
- }>;
826
- $root: ComponentPublicInstance | null;
827
- $parent: ComponentPublicInstance | null;
828
- $host: Element | null;
829
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
830
- $el: HTMLDivElement;
831
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
832
- items: {
833
- type: PropType<SuggestionItem[]>;
834
- required: true;
835
- };
836
- categories: {
837
- type: PropType<Category[]>;
838
- default: () => never[];
839
- };
840
- loading: {
841
- type: BooleanConstructor;
842
- default: boolean;
843
- };
844
- title: {
845
- type: StringConstructor;
846
- default: string;
847
- };
848
- maxVisibleItems: {
849
- type: NumberConstructor;
850
- default: number;
851
- };
852
- }>> & Readonly<{
853
- onClose?: ((...args: any[]) => any) | undefined;
854
- onSelect?: ((...args: any[]) => any) | undefined;
855
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
856
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
857
- }>, {
858
- handleKeyDown: (e: KeyboardEvent) => void;
859
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
860
- close: (...args: any[]) => void;
861
- select: (...args: any[]) => void;
862
- "category-select": (...args: any[]) => void;
863
- "item-hover": (...args: any[]) => void;
864
- }, string, {
865
- loading: boolean;
866
- title: string;
867
- categories: Category[];
868
- maxVisibleItems: number;
869
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
870
- beforeCreate?: (() => void) | (() => void)[];
871
- created?: (() => void) | (() => void)[];
872
- beforeMount?: (() => void) | (() => void)[];
873
- mounted?: (() => void) | (() => void)[];
874
- beforeUpdate?: (() => void) | (() => void)[];
875
- updated?: (() => void) | (() => void)[];
876
- activated?: (() => void) | (() => void)[];
877
- deactivated?: (() => void) | (() => void)[];
878
- beforeDestroy?: (() => void) | (() => void)[];
879
- beforeUnmount?: (() => void) | (() => void)[];
880
- destroyed?: (() => void) | (() => void)[];
881
- unmounted?: (() => void) | (() => void)[];
882
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
883
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
884
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
885
- };
886
- $forceUpdate: () => void;
887
- $nextTick: nextTick;
888
- $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;
889
- } & Readonly<{
890
- loading: boolean;
891
- title: string;
892
- categories: Category[];
893
- maxVisibleItems: number;
894
- }> & Omit<Readonly<ExtractPropTypes< {
895
- items: {
896
- type: PropType<SuggestionItem[]>;
897
- required: true;
898
- };
899
- categories: {
900
- type: PropType<Category[]>;
901
- default: () => never[];
902
- };
903
- loading: {
904
- type: BooleanConstructor;
905
- default: boolean;
906
- };
907
- title: {
908
- type: StringConstructor;
909
- default: string;
910
- };
911
- maxVisibleItems: {
912
- type: NumberConstructor;
913
- default: number;
914
- };
915
- }>> & Readonly<{
916
- onClose?: ((...args: any[]) => any) | undefined;
917
- onSelect?: ((...args: any[]) => any) | undefined;
918
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
919
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
920
- }>, "handleKeyDown" | ("loading" | "title" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
921
- handleKeyDown: (e: KeyboardEvent) => void;
922
- }> & {} & ComponentCustomProperties & {} & {
923
- $slots: {
924
- 'title-icon'?(_: {}): any;
925
- 'loading-indicator'?(_: {}): any;
926
- item?(_: {
927
- item: SuggestionItem;
928
- active: boolean;
929
- }): any;
930
- empty?(_: {}): any;
931
- };
932
- }) | null;
933
- }, HTMLDivElement>;
934
-
935
- declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
693
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
936
694
  "update:showAll": (value: boolean | undefined) => any;
937
695
  } & {
938
696
  "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
@@ -950,7 +708,55 @@ containerRef: HTMLDivElement;
950
708
  floatingItemsRef: HTMLDivElement;
951
709
  }, HTMLDivElement>;
952
710
 
953
- declare const __VLS_component_9: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
711
+ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
712
+ "update:selectedGroup": (value: string) => any;
713
+ } & {
714
+ close: () => any;
715
+ open: () => any;
716
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
717
+ "click-outside": (event: MouseEvent) => any;
718
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
719
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
720
+ onClose?: (() => any) | undefined;
721
+ onOpen?: (() => any) | undefined;
722
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
723
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
724
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
725
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
726
+ }>, {
727
+ title: string;
728
+ trigger: "click" | "manual";
729
+ groupShowMoreTrigger: "click" | "hover";
730
+ popoverWidth: string | number;
731
+ popoverHeight: string | number;
732
+ topOffset: string | number;
733
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
734
+ popoverTriggerRef: HTMLDivElement;
735
+ popoverRef: HTMLDivElement;
736
+ listRef: HTMLUListElement;
737
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
738
+ show?: TooltipContentProps["show"];
739
+ } & TooltipContentProps> & Readonly<{
740
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
741
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
742
+ "update:show": (value: boolean | undefined) => any;
743
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
744
+ P: {};
745
+ B: {};
746
+ D: {};
747
+ C: {};
748
+ M: {};
749
+ Defaults: {};
750
+ }, Readonly<{
751
+ show?: TooltipContentProps["show"];
752
+ } & TooltipContentProps> & Readonly<{
753
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
754
+ }>, {}, {}, {}, {}, {}> | null;
755
+ }, any>;
756
+
757
+ declare const __VLS_component_9: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
758
+ align: "left" | "center" | "right" | string;
759
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
954
760
 
955
761
  declare type __VLS_Props = SuggestionPillsProps;
956
762
 
@@ -976,52 +782,6 @@ declare function __VLS_template(): {
976
782
  rootEl: HTMLDivElement;
977
783
  };
978
784
 
979
- declare function __VLS_template_10(): {
980
- attrs: Partial<{}>;
981
- slots: {
982
- 'category-label'?(_: {
983
- category: Category_2;
984
- }): any;
985
- 'question-item'?(_: {
986
- question: Question_2;
987
- index: number;
988
- }): any;
989
- 'loading-indicator'?(_: {}): any;
990
- 'empty-state'?(_: {}): any;
991
- };
992
- refs: {};
993
- rootEl: HTMLDivElement;
994
- };
995
-
996
- declare function __VLS_template_11(): {
997
- attrs: Partial<{}>;
998
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
999
- refs: {
1000
- popoverTriggerRef: HTMLDivElement;
1001
- popoverRef: HTMLDivElement;
1002
- listRef: HTMLUListElement;
1003
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1004
- show?: TooltipContentProps["show"];
1005
- } & TooltipContentProps> & Readonly<{
1006
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1007
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1008
- "update:show": (value: boolean | undefined) => any;
1009
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1010
- P: {};
1011
- B: {};
1012
- D: {};
1013
- C: {};
1014
- M: {};
1015
- Defaults: {};
1016
- }, Readonly<{
1017
- show?: TooltipContentProps["show"];
1018
- } & TooltipContentProps> & Readonly<{
1019
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1020
- }>, {}, {}, {}, {}, {}> | null;
1021
- };
1022
- rootEl: any;
1023
- };
1024
-
1025
785
  declare function __VLS_template_2(): {
1026
786
  attrs: Partial<{}>;
1027
787
  slots: Readonly<ContainerSlots> & ContainerSlots;
@@ -1039,6 +799,7 @@ declare function __VLS_template_3(): {
1039
799
  $: ComponentInternalInstance;
1040
800
  $data: {};
1041
801
  $props: {
802
+ readonly appendTo?: (string | HTMLElement) | undefined;
1042
803
  readonly offset?: number | {
1043
804
  mainAxis?: number;
1044
805
  crossAxis?: number;
@@ -1067,6 +828,7 @@ declare function __VLS_template_3(): {
1067
828
  $emit: (event: string, ...args: any[]) => void;
1068
829
  $el: any;
1069
830
  $options: ComponentOptionsBase<Readonly<{
831
+ appendTo?: string | HTMLElement;
1070
832
  offset?: number | {
1071
833
  mainAxis?: number;
1072
834
  crossAxis?: number;
@@ -1106,6 +868,7 @@ declare function __VLS_template_3(): {
1106
868
  } & Readonly<{
1107
869
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1108
870
  }> & Omit<Readonly<{
871
+ appendTo?: string | HTMLElement;
1109
872
  offset?: number | {
1110
873
  mainAxis?: number;
1111
874
  crossAxis?: number;
@@ -1122,11 +885,11 @@ declare function __VLS_template_3(): {
1122
885
  popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
1123
886
  }> & {} & ComponentCustomProperties & {} & {
1124
887
  $slots: Readonly<{
1125
- trigger?: () => VNode | VNode[];
1126
- content?: () => VNode | VNode[];
888
+ trigger?: () => VNode[];
889
+ content?: () => VNode[];
1127
890
  }> & {
1128
- trigger?: () => VNode | VNode[];
1129
- content?: () => VNode | VNode[];
891
+ trigger?: () => VNode[];
892
+ content?: () => VNode[];
1130
893
  };
1131
894
  }) | null;
1132
895
  };
@@ -1157,8 +920,8 @@ declare function __VLS_template_5(): {
1157
920
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1158
921
  modelValue?: UserItem[];
1159
922
  }> & Readonly<{
1160
- onSubmit?: (() => any) | undefined;
1161
923
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
924
+ onSubmit?: (() => any) | undefined;
1162
925
  }>, {
1163
926
  clearHistory: () => void;
1164
927
  activateFirstField: () => void;
@@ -1178,8 +941,8 @@ declare function __VLS_template_5(): {
1178
941
  }, Readonly<{
1179
942
  modelValue?: UserItem[];
1180
943
  }> & Readonly<{
1181
- onSubmit?: (() => any) | undefined;
1182
944
  "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
945
+ onSubmit?: (() => any) | undefined;
1183
946
  }>, {
1184
947
  clearHistory: () => void;
1185
948
  activateFirstField: () => void;
@@ -1642,198 +1405,60 @@ declare function __VLS_template_5(): {
1642
1405
 
1643
1406
  declare function __VLS_template_6(): {
1644
1407
  attrs: Partial<{}>;
1645
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1408
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1646
1409
  refs: {};
1647
- rootEl: HTMLDivElement;
1410
+ rootEl: HTMLButtonElement;
1648
1411
  };
1649
1412
 
1650
1413
  declare function __VLS_template_7(): {
1651
1414
  attrs: Partial<{}>;
1652
- slots: {
1653
- 'capsule-icon'?(_: {
1654
- suggestion: any;
1655
- }): any;
1656
- trigger?(_: {
1657
- onTrigger: TriggerHandler;
1658
- onKeyDown: (e: KeyboardEvent) => void;
1659
- onInput: (event: Event, text: string) => boolean;
1660
- }): any;
1661
- 'title-icon'?(_: {}): any;
1662
- 'category-label'?(_: {
1663
- category: any;
1664
- }): any;
1665
- item?(_: {
1666
- item: SuggestionItem;
1667
- active: boolean;
1668
- }): any;
1669
- 'loading-indicator'?(_: {}): any;
1670
- empty?(_: {}): any;
1671
- };
1415
+ slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1672
1416
  refs: {
1673
- rootRef: HTMLDivElement;
1674
- panelRef: ({
1675
- $: ComponentInternalInstance;
1676
- $data: {};
1677
- $props: Partial<{
1678
- loading: boolean;
1679
- title: string;
1680
- categories: Category[];
1681
- maxVisibleItems: number;
1682
- }> & Omit<{
1683
- readonly loading: boolean;
1684
- readonly title: string;
1685
- readonly items: SuggestionItem[];
1686
- readonly categories: Category[];
1687
- readonly maxVisibleItems: number;
1688
- readonly onClose?: ((...args: any[]) => any) | undefined;
1689
- readonly onSelect?: ((...args: any[]) => any) | undefined;
1690
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
1691
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
1692
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "title" | "categories" | "maxVisibleItems">;
1693
- $attrs: {
1694
- [x: string]: unknown;
1695
- };
1696
- $refs: {
1697
- [x: string]: unknown;
1698
- };
1699
- $slots: Readonly<{
1700
- [name: string]: Slot<any> | undefined;
1701
- }>;
1702
- $root: ComponentPublicInstance | null;
1703
- $parent: ComponentPublicInstance | null;
1704
- $host: Element | null;
1705
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
1706
- $el: HTMLDivElement;
1707
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1708
- items: {
1709
- type: PropType<SuggestionItem[]>;
1710
- required: true;
1711
- };
1712
- categories: {
1713
- type: PropType<Category[]>;
1714
- default: () => never[];
1715
- };
1716
- loading: {
1717
- type: BooleanConstructor;
1718
- default: boolean;
1719
- };
1720
- title: {
1721
- type: StringConstructor;
1722
- default: string;
1723
- };
1724
- maxVisibleItems: {
1725
- type: NumberConstructor;
1726
- default: number;
1727
- };
1728
- }>> & Readonly<{
1729
- onClose?: ((...args: any[]) => any) | undefined;
1730
- onSelect?: ((...args: any[]) => any) | undefined;
1731
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1732
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1733
- }>, {
1734
- handleKeyDown: (e: KeyboardEvent) => void;
1735
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1736
- close: (...args: any[]) => void;
1737
- select: (...args: any[]) => void;
1738
- "category-select": (...args: any[]) => void;
1739
- "item-hover": (...args: any[]) => void;
1740
- }, string, {
1741
- loading: boolean;
1742
- title: string;
1743
- categories: Category[];
1744
- maxVisibleItems: number;
1745
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1746
- beforeCreate?: (() => void) | (() => void)[];
1747
- created?: (() => void) | (() => void)[];
1748
- beforeMount?: (() => void) | (() => void)[];
1749
- mounted?: (() => void) | (() => void)[];
1750
- beforeUpdate?: (() => void) | (() => void)[];
1751
- updated?: (() => void) | (() => void)[];
1752
- activated?: (() => void) | (() => void)[];
1753
- deactivated?: (() => void) | (() => void)[];
1754
- beforeDestroy?: (() => void) | (() => void)[];
1755
- beforeUnmount?: (() => void) | (() => void)[];
1756
- destroyed?: (() => void) | (() => void)[];
1757
- unmounted?: (() => void) | (() => void)[];
1758
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1759
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1760
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1761
- };
1762
- $forceUpdate: () => void;
1763
- $nextTick: nextTick;
1764
- $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;
1765
- } & Readonly<{
1766
- loading: boolean;
1767
- title: string;
1768
- categories: Category[];
1769
- maxVisibleItems: number;
1770
- }> & Omit<Readonly<ExtractPropTypes< {
1771
- items: {
1772
- type: PropType<SuggestionItem[]>;
1773
- required: true;
1774
- };
1775
- categories: {
1776
- type: PropType<Category[]>;
1777
- default: () => never[];
1778
- };
1779
- loading: {
1780
- type: BooleanConstructor;
1781
- default: boolean;
1782
- };
1783
- title: {
1784
- type: StringConstructor;
1785
- default: string;
1786
- };
1787
- maxVisibleItems: {
1788
- type: NumberConstructor;
1789
- default: number;
1790
- };
1791
- }>> & Readonly<{
1792
- onClose?: ((...args: any[]) => any) | undefined;
1793
- onSelect?: ((...args: any[]) => any) | undefined;
1794
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1795
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1796
- }>, "handleKeyDown" | ("loading" | "title" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
1797
- handleKeyDown: (e: KeyboardEvent) => void;
1798
- }> & {} & ComponentCustomProperties & {} & {
1799
- $slots: {
1800
- 'title-icon'?(_: {}): any;
1801
- 'loading-indicator'?(_: {}): any;
1802
- item?(_: {
1803
- item: SuggestionItem;
1804
- active: boolean;
1805
- }): any;
1806
- empty?(_: {}): any;
1807
- };
1808
- }) | null;
1417
+ containerWrapperRef: HTMLDivElement;
1418
+ containerRef: HTMLDivElement;
1419
+ floatingItemsRef: HTMLDivElement;
1809
1420
  };
1810
1421
  rootEl: HTMLDivElement;
1811
1422
  };
1812
1423
 
1813
1424
  declare function __VLS_template_8(): {
1814
1425
  attrs: Partial<{}>;
1815
- slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1426
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1816
1427
  refs: {
1817
- containerWrapperRef: HTMLDivElement;
1818
- containerRef: HTMLDivElement;
1819
- floatingItemsRef: HTMLDivElement;
1428
+ popoverTriggerRef: HTMLDivElement;
1429
+ popoverRef: HTMLDivElement;
1430
+ listRef: HTMLUListElement;
1431
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1432
+ show?: TooltipContentProps["show"];
1433
+ } & TooltipContentProps> & Readonly<{
1434
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1435
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1436
+ "update:show": (value: boolean | undefined) => any;
1437
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1438
+ P: {};
1439
+ B: {};
1440
+ D: {};
1441
+ C: {};
1442
+ M: {};
1443
+ Defaults: {};
1444
+ }, Readonly<{
1445
+ show?: TooltipContentProps["show"];
1446
+ } & TooltipContentProps> & Readonly<{
1447
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1448
+ }>, {}, {}, {}, {}, {}> | null;
1820
1449
  };
1821
- rootEl: HTMLDivElement;
1450
+ rootEl: any;
1822
1451
  };
1823
1452
 
1824
1453
  declare function __VLS_template_9(): {
1825
1454
  attrs: Partial<{}>;
1826
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1455
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
1827
1456
  refs: {};
1828
- rootEl: HTMLButtonElement;
1457
+ rootEl: HTMLDivElement;
1829
1458
  };
1830
1459
 
1831
1460
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1832
1461
 
1833
- declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1834
-
1835
- declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1836
-
1837
1462
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1838
1463
 
1839
1464
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1856,18 +1481,6 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
1856
1481
  };
1857
1482
  };
1858
1483
 
1859
- declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1860
- new (): {
1861
- $slots: S;
1862
- };
1863
- };
1864
-
1865
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1866
- new (): {
1867
- $slots: S;
1868
- };
1869
- };
1870
-
1871
1484
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1872
1485
  new (): {
1873
1486
  $slots: S;
@@ -1953,7 +1566,7 @@ declare interface BaseTextItem {
1953
1566
  content: string;
1954
1567
  }
1955
1568
 
1956
- declare const Bubble: typeof _default_14 & {
1569
+ declare const Bubble: typeof _default_12 & {
1957
1570
  install: typeof bubbleInstall;
1958
1571
  };
1959
1572
  export { Bubble }
@@ -1961,7 +1574,7 @@ export { Bubble as TrBubble }
1961
1574
 
1962
1575
  declare const bubbleInstall: (app: App) => void;
1963
1576
 
1964
- declare const BubbleList: typeof _default_15 & {
1577
+ declare const BubbleList: typeof _default_13 & {
1965
1578
  install: typeof bubbleListInstall;
1966
1579
  };
1967
1580
  export { BubbleList }
@@ -2023,27 +1636,6 @@ export declare interface BubbleSlots {
2023
1636
  }) => unknown;
2024
1637
  }
2025
1638
 
2026
- /**
2027
- * 分类定义
2028
- */
2029
- export declare interface Category {
2030
- /** 唯一标识 */
2031
- id: string;
2032
- /** 显示名称 */
2033
- label: string;
2034
- /** 可选图标 */
2035
- icon?: VNode;
2036
- /** 该分类下的指令项 */
2037
- items: SuggestionItem[];
2038
- }
2039
-
2040
- declare interface Category_2 {
2041
- id: string;
2042
- label: string;
2043
- icon?: string;
2044
- questions: Question_2[];
2045
- }
2046
-
2047
1639
  export declare interface ContainerProps {
2048
1640
  /**
2049
1641
  * model:show
@@ -2067,43 +1659,31 @@ declare const _default: {
2067
1659
  };
2068
1660
  export default _default;
2069
1661
 
2070
- declare const _default_10: typeof _default_25 & {
1662
+ declare const _default_10: typeof _default_24 & {
2071
1663
  install: typeof install_8;
2072
1664
  };
2073
- export { _default_10 as Suggestion }
2074
- export { _default_10 as TrSuggestion }
1665
+ export { _default_10 as SuggestionPopover }
1666
+ export { _default_10 as TrSuggestionPopover }
2075
1667
 
2076
- declare const _default_11: typeof _default_26 & {
1668
+ declare const _default_11: typeof _default_25 & {
2077
1669
  install: typeof install_9;
2078
1670
  };
2079
- export { _default_11 as SuggestionPills }
2080
- export { _default_11 as TrSuggestionPills }
2081
-
2082
- declare const _default_12: typeof _default_28 & {
2083
- install: typeof install_10;
2084
- };
2085
- export { _default_12 as Question }
2086
- export { _default_12 as TrQuestion }
2087
-
2088
- declare const _default_13: typeof _default_29 & {
2089
- install: typeof install_11;
2090
- };
2091
- export { _default_13 as SuggestionPopover }
2092
- export { _default_13 as TrSuggestionPopover }
1671
+ export { _default_11 as TrWelcome }
1672
+ export { _default_11 as Welcome }
2093
1673
 
2094
- declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1674
+ declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2095
1675
 
2096
- declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1676
+ declare const _default_13: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2097
1677
  scrollContainerRef: HTMLDivElement;
2098
1678
  }, HTMLDivElement>;
2099
1679
 
2100
- declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1680
+ declare const _default_14: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2101
1681
 
2102
- declare const _default_17: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1682
+ declare const _default_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2103
1683
 
2104
- declare const _default_18: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1684
+ declare const _default_16: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2105
1685
 
2106
- declare const _default_19: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1686
+ declare const _default_17: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2107
1687
  operation: (name: string) => any;
2108
1688
  action: (name: string) => any;
2109
1689
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -2115,48 +1695,44 @@ actionsLimit: number;
2115
1695
  sourcesLinesLimit: number;
2116
1696
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2117
1697
 
2118
- declare const _default_2: typeof _default_16 & {
2119
- install: typeof install;
2120
- };
2121
- export { _default_2 as Container }
2122
- export { _default_2 as TrContainer }
2123
-
2124
- declare const _default_20: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
1698
+ declare const _default_18: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2125
1699
  size: string | number;
2126
1700
  svgSize: string | number;
2127
1701
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2128
1702
 
2129
- declare const _default_21: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2130
-
2131
- declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1703
+ declare const _default_19: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2132
1704
 
2133
- declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1705
+ declare const _default_2: typeof _default_14 & {
1706
+ install: typeof install;
1707
+ };
1708
+ export { _default_2 as Container }
1709
+ export { _default_2 as TrContainer }
2134
1710
 
2135
- declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1711
+ declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2136
1712
 
2137
- declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1713
+ declare const _default_21: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2138
1714
 
2139
- declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1715
+ declare const _default_22: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2140
1716
 
2141
- declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1717
+ declare const _default_23: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2142
1718
 
2143
- declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1719
+ declare const _default_24: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2144
1720
 
2145
- declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1721
+ declare const _default_25: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2146
1722
 
2147
- declare const _default_3: typeof _default_17 & {
1723
+ declare const _default_3: typeof _default_15 & {
2148
1724
  install: typeof install_2;
2149
1725
  };
2150
1726
  export { _default_3 as Conversations }
2151
1727
  export { _default_3 as TrConversations }
2152
1728
 
2153
- declare const _default_4: typeof _default_18 & {
1729
+ declare const _default_4: typeof _default_16 & {
2154
1730
  install: typeof install_3;
2155
1731
  };
2156
1732
  export { _default_4 as DropdownMenu }
2157
1733
  export { _default_4 as TrDropdownMenu }
2158
1734
 
2159
- declare const _default_5: typeof _default_19 & {
1735
+ declare const _default_5: typeof _default_17 & {
2160
1736
  install: typeof install_4;
2161
1737
  };
2162
1738
  export { _default_5 as Feedback }
@@ -2169,23 +1745,23 @@ declare const _default_6: {
2169
1745
  export { _default_6 as History }
2170
1746
  export { _default_6 as TrHistory }
2171
1747
 
2172
- declare const _default_7: typeof _default_20 & {
1748
+ declare const _default_7: typeof _default_18 & {
2173
1749
  install: typeof install_5;
2174
1750
  };
2175
1751
  export { _default_7 as IconButton }
2176
1752
  export { _default_7 as TrIconButton }
2177
1753
 
2178
- declare const _default_8: typeof _default_23 & {
1754
+ declare const _default_8: typeof _default_21 & {
2179
1755
  install: typeof install_6;
2180
1756
  };
2181
1757
  export { _default_8 as Sender }
2182
1758
  export { _default_8 as TrSender }
2183
1759
 
2184
- declare const _default_9: typeof _default_24 & {
1760
+ declare const _default_9: typeof _default_23 & {
2185
1761
  install: typeof install_7;
2186
1762
  };
2187
- export { _default_9 as TrWelcome }
2188
- export { _default_9 as Welcome }
1763
+ export { _default_9 as SuggestionPills }
1764
+ export { _default_9 as TrSuggestionPills }
2189
1765
 
2190
1766
  export declare interface DropdownMenuEmits {
2191
1767
  (e: 'item-click', item: DropdownMenuItem): void;
@@ -2217,6 +1793,7 @@ export declare interface DropdownMenuItem {
2217
1793
  }
2218
1794
 
2219
1795
  export declare interface DropdownMenuProps {
1796
+ appendTo?: string | HTMLElement;
2220
1797
  items: DropdownMenuItem[];
2221
1798
  /**
2222
1799
  * 是否显示菜单,仅在 trigger 为 'manual' 时有效
@@ -2304,10 +1881,6 @@ export declare type InputMode = 'single' | 'multiple';
2304
1881
 
2305
1882
  declare const install: <T>(app: App<T>) => void;
2306
1883
 
2307
- declare const install_10: <T>(app: App<T>) => void;
2308
-
2309
- declare const install_11: <T>(app: App<T>) => void;
2310
-
2311
1884
  declare const install_2: <T>(app: App<T>) => void;
2312
1885
 
2313
1886
  declare const install_3: <T>(app: App<T>) => void;
@@ -2343,7 +1916,7 @@ export declare type MultiTabHistoryProps = {
2343
1916
  data: Record<string, HistoryData>;
2344
1917
  } & BaseHistoryProps;
2345
1918
 
2346
- declare const Prompt: typeof _default_21 & {
1919
+ declare const Prompt: typeof _default_19 & {
2347
1920
  install: typeof installPrompt;
2348
1921
  };
2349
1922
  export { Prompt }
@@ -2376,7 +1949,7 @@ export declare interface PromptProps {
2376
1949
  badge?: string | VNode;
2377
1950
  }
2378
1951
 
2379
- declare const Prompts: typeof _default_22 & {
1952
+ declare const Prompts: typeof _default_20 & {
2380
1953
  install: typeof installPrompts;
2381
1954
  };
2382
1955
  export { Prompts }
@@ -2413,53 +1986,6 @@ export declare interface PromptsSlots {
2413
1986
  footer?: () => unknown;
2414
1987
  }
2415
1988
 
2416
- declare interface Question_2 {
2417
- id: string;
2418
- text: string;
2419
- keywords?: string[];
2420
- }
2421
-
2422
- /**
2423
- * Question组件属性定义
2424
- */
2425
- declare interface QuestionProps {
2426
- /**
2427
- * 问题分类列表
2428
- * 包含多个分类,每个分类下有多个问题
2429
- */
2430
- categories: Category_2[];
2431
- /**
2432
- * 浮动显示的问题列表
2433
- * 显示在组件底部的常见问题胶囊
2434
- */
2435
- commonQuestions: Question_2[];
2436
- /**
2437
- * 是否初始展开常见问题
2438
- * @default false
2439
- */
2440
- initialExpanded?: boolean;
2441
- /**
2442
- * 弹窗宽度
2443
- * @default '640px'
2444
- */
2445
- modalWidth?: string;
2446
- /**
2447
- * 主题类型
2448
- * @default 'light'
2449
- */
2450
- theme?: ThemeType_3;
2451
- /**
2452
- * 是否点击外部关闭弹窗
2453
- * @default true
2454
- */
2455
- closeOnClickOutside?: boolean;
2456
- /**
2457
- * 是否显示加载中状态
2458
- * @default false
2459
- */
2460
- loading?: boolean;
2461
- }
2462
-
2463
1989
  export declare type SenderEmits = {
2464
1990
  (e: 'update:modelValue', value: string): void;
2465
1991
  (e: 'update:templateData', value: UserItem[]): void;
@@ -2496,8 +2022,6 @@ export declare interface SenderProps {
2496
2022
  suggestions?: string[];
2497
2023
  suggestionPopupWidth?: string | number;
2498
2024
  theme?: ThemeType;
2499
- template?: string;
2500
- hasContent?: boolean;
2501
2025
  templateData?: UserItem[];
2502
2026
  stopText?: string;
2503
2027
  }
@@ -2536,63 +2060,21 @@ export declare interface SpeechState {
2536
2060
 
2537
2061
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2538
2062
 
2539
- declare interface SuggestionBaseItem {
2063
+ export declare interface SuggestionBaseItem {
2540
2064
  id: string;
2541
2065
  text: string;
2542
2066
  }
2543
2067
 
2544
- declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
2068
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2545
2069
 
2546
- /**
2547
- * 组件事件
2548
- */
2549
- export declare interface SuggestionEmits {
2550
- /** 双向绑定打开状态 (v-model) */
2551
- (e: 'update:open', value: boolean): void;
2552
- /** 选中指令项 */
2553
- (e: 'select', value: string, context?: TriggerContext): void;
2554
- /** 关闭面板 */
2555
- (e: 'close'): void;
2556
- /** 触发回调 */
2557
- (e: 'trigger', handler: TriggerHandler): void;
2558
- /** 选择分类 */
2559
- (e: 'category-select', category: Category): void;
2560
- /** 点击胶囊指令 */
2561
- (e: 'suggestion-select', item: SuggestionItem): void;
2562
- /** 展开/收起状态变化 */
2563
- (e: 'update:expanded', expanded: boolean): void;
2564
- /** 填充模板到输入框 */
2565
- (e: 'fill-template', template: string): void;
2566
- }
2567
-
2568
- declare interface SuggestionGroup<T = Record<string, unknown>> {
2070
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2569
2071
  group: string;
2570
2072
  label: string;
2571
2073
  icon?: VNode | Component;
2572
- items: SuggestionItem_2<T>[];
2074
+ items: SuggestionItem<T>[];
2573
2075
  }
2574
2076
 
2575
- /**
2576
- * 指令项定义
2577
- */
2578
- export declare interface SuggestionItem {
2579
- /** 唯一标识 */
2580
- id: string;
2581
- /** 显示文本 */
2582
- text: string;
2583
- /** 指令值 */
2584
- value: string;
2585
- /** 图标 */
2586
- icon?: VNode;
2587
- /** 关键词,用于搜索和过滤 */
2588
- keywords?: string[];
2589
- /** 描述文本 */
2590
- description?: string;
2591
- /** 指令模板,用于在输入框中显示可编辑的模板 */
2592
- template?: string;
2593
- }
2594
-
2595
- declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
2077
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2596
2078
 
2597
2079
  export declare type SuggestionPillAction = SuggestionPillPopoverAction | SuggestionPillMenuAction;
2598
2080
 
@@ -2601,7 +2083,7 @@ export declare type SuggestionPillBaseItem<T> = {
2601
2083
  action?: SuggestionPillAction;
2602
2084
  } & T;
2603
2085
 
2604
- declare const SuggestionPillButton: typeof _default_27 & {
2086
+ declare const SuggestionPillButton: typeof _default_22 & {
2605
2087
  install: typeof installPillButton;
2606
2088
  };
2607
2089
  export { SuggestionPillButton }
@@ -2682,19 +2164,27 @@ export declare interface SuggestionPillsSlots {
2682
2164
  default?: () => VNode | VNode[];
2683
2165
  }
2684
2166
 
2685
- declare interface SuggestionPopoverEventProps {
2686
- onItemClick?: (item: SuggestionItem_2) => void;
2167
+ export declare interface SuggestionPopoverEmits {
2168
+ (e: 'item-click', item: SuggestionItem): void;
2169
+ (e: 'group-click', group: SuggestionGroup): void;
2170
+ (e: 'open'): void;
2171
+ (e: 'close'): void;
2172
+ (e: 'click-outside', event: MouseEvent): void;
2173
+ }
2174
+
2175
+ export declare interface SuggestionPopoverEventProps {
2176
+ onItemClick?: (item: SuggestionItem) => void;
2687
2177
  onGroupClick?: (group: SuggestionGroup) => void;
2688
2178
  onOpen?: () => void;
2689
2179
  onClose?: () => void;
2690
2180
  onClickOutside?: (event: MouseEvent) => void;
2691
2181
  }
2692
2182
 
2693
- declare interface SuggestionPopoverEvents {
2183
+ export declare interface SuggestionPopoverEvents {
2694
2184
  /**
2695
2185
  * @deprecated use onItemClick in props instead
2696
2186
  */
2697
- itemClick?: (item: SuggestionItem_2) => void;
2187
+ itemClick?: (item: SuggestionItem) => void;
2698
2188
  /**
2699
2189
  * @deprecated use onGroupClick in props instead
2700
2190
  */
@@ -2713,7 +2203,7 @@ declare interface SuggestionPopoverEvents {
2713
2203
  clickOutside?: (event: MouseEvent) => void;
2714
2204
  }
2715
2205
 
2716
- declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2206
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2717
2207
  data: SuggestionData<T>;
2718
2208
  title?: string;
2719
2209
  icon?: VNode | Component;
@@ -2736,40 +2226,12 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2736
2226
  topOffset?: string | number;
2737
2227
  }
2738
2228
 
2739
- declare interface SuggestionPopoverSlots {
2229
+ export declare interface SuggestionPopoverSlots {
2740
2230
  default?: () => unknown;
2741
2231
  loading?: () => unknown;
2742
2232
  empty?: () => unknown;
2743
2233
  }
2744
2234
 
2745
- /**
2746
- * 组件属性
2747
- */
2748
- export declare interface SuggestionProps {
2749
- /** 触发快捷键列表 */
2750
- triggerKeys?: string[];
2751
- /** 指令项列表 */
2752
- items: SuggestionItem[];
2753
- /** 分类列表 */
2754
- categories?: Category[];
2755
- /** 是否显示面板 (支持v-model) */
2756
- open?: boolean;
2757
- /** 自定义类名 */
2758
- className?: string;
2759
- /** 主题,light或dark */
2760
- theme?: 'light' | 'dark';
2761
- /** 是否显示加载状态 */
2762
- loading?: boolean;
2763
- /** 是否点击外部关闭面板 */
2764
- closeOnOutsideClick?: boolean;
2765
- /** 面板标题 */
2766
- title?: string;
2767
- /** 最大显示条目数 */
2768
- maxVisibleItems?: number;
2769
- /** 默认是否展开完整指令列表 */
2770
- defaultExpanded?: boolean;
2771
- }
2772
-
2773
2235
  declare interface TemplateItem extends BaseTextItem {
2774
2236
  type: 'template';
2775
2237
  prefix: string;
@@ -2785,24 +2247,6 @@ declare interface TextItem extends BaseTextItem {
2785
2247
  */
2786
2248
  export declare type ThemeType = 'light' | 'dark';
2787
2249
 
2788
- declare type ThemeType_3 = 'light' | 'dark';
2789
-
2790
- /**
2791
- * 触发位置信息
2792
- */
2793
- export declare interface TriggerContext {
2794
- /** 触发的文本 */
2795
- text: string;
2796
- /** 触发的位置 */
2797
- position: number;
2798
- }
2799
-
2800
- /** 触发处理函数类型 */
2801
- export declare type TriggerHandler = (info: TriggerInfo) => void;
2802
-
2803
- /** 触发信息类型 */
2804
- export declare type TriggerInfo = TriggerContext | false;
2805
-
2806
2250
  export declare type UserItem = UserTextItem | UserTemplateItem;
2807
2251
 
2808
2252
  export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;