@opentiny/tiny-robot 0.3.0-alpha.0 → 0.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-group/index.js +13 -13
- package/dist/bubble/index.js +2141 -1360
- package/dist/close.js +1 -1
- package/dist/container/index.js +7 -7
- package/dist/dropdown-menu/index.js +38 -37
- package/dist/feedback/index.js +46 -45
- package/dist/flow-layout-buttons/index.js +20 -20
- package/dist/history/index.js +34 -35
- package/dist/index.d.ts +329 -290
- package/dist/index.js +62 -59
- package/dist/index2.js +343 -394
- package/dist/index3.js +129 -3717
- package/dist/index4.js +7 -7
- package/dist/index5.js +931 -2011
- package/dist/index6.js +1020 -891
- package/dist/loading.js +4 -0
- package/dist/prompts/index.js +2 -3
- package/dist/question/index.js +59 -59
- package/dist/sender/index.js +1017 -1025
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +95 -95
- package/dist/suggestion-pills/index.js +130 -109
- package/dist/suggestion-popover/index.js +243 -127
- package/dist/tiny-robot-svgs.js +211 -488
- package/dist/utils.js +15 -4
- package/package.json +4 -3
- package/dist/attachments/index.js +0 -602
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AllowedComponentProps } from 'vue';
|
|
2
2
|
import { App } from 'vue';
|
|
3
3
|
import { AutoSize as AutoSize_2 } from './index.type';
|
|
4
|
-
import {
|
|
4
|
+
import { ChainItem } from './chain.vue';
|
|
5
5
|
import { Component } from 'vue';
|
|
6
6
|
import { ComponentCustomProperties } from 'vue';
|
|
7
7
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -10,12 +10,13 @@ import { ComponentOptionsBase } from 'vue';
|
|
|
10
10
|
import { ComponentOptionsMixin } from 'vue';
|
|
11
11
|
import { ComponentProvideOptions } from 'vue';
|
|
12
12
|
import { ComponentPublicInstance } from 'vue';
|
|
13
|
+
import { Config } from 'dompurify';
|
|
13
14
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
14
15
|
import { CSSProperties } from 'vue';
|
|
15
16
|
import { DebuggerEvent } from 'vue';
|
|
17
|
+
import { default as default_2 } from 'markdown-it';
|
|
16
18
|
import { DefineComponent } from 'vue';
|
|
17
19
|
import { ExtractPropTypes } from 'vue';
|
|
18
|
-
import { FileType as FileType_2 } from './index.type';
|
|
19
20
|
import { GlobalComponents } from 'vue';
|
|
20
21
|
import { GlobalDirectives } from 'vue';
|
|
21
22
|
import { InputMode as InputMode_2 } from './index.type';
|
|
@@ -33,19 +34,22 @@ import { Slot } from 'vue';
|
|
|
33
34
|
import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
|
|
34
35
|
import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
|
|
35
36
|
import { ThemeType as ThemeType_2 } from './index.type';
|
|
37
|
+
import { TooltipContentProps } from './components/Tooltip.vue';
|
|
36
38
|
import { VNode } from 'vue';
|
|
37
39
|
import { VNodeProps } from 'vue';
|
|
38
40
|
import { WatchOptions } from 'vue';
|
|
39
41
|
import { WatchStopHandle } from 'vue';
|
|
40
42
|
|
|
41
43
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
42
|
-
type: "text" | "markdown";
|
|
43
|
-
placement: BubblePalcement_2;
|
|
44
|
-
maxWidth: string | number;
|
|
45
44
|
content: string;
|
|
45
|
+
placement: "start" | "end";
|
|
46
|
+
shape: "rounded" | "corner";
|
|
47
|
+
maxWidth: string | number;
|
|
46
48
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
47
49
|
|
|
48
|
-
declare const __VLS_component_10: DefineComponent<
|
|
50
|
+
declare const __VLS_component_10: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
51
|
+
|
|
52
|
+
declare const __VLS_component_11: DefineComponent<QuestionProps, {
|
|
49
53
|
openModal: () => void;
|
|
50
54
|
closeModal: () => void;
|
|
51
55
|
toggleFloating: () => void;
|
|
@@ -67,18 +71,18 @@ initialExpanded: boolean;
|
|
|
67
71
|
theme: ThemeType_2;
|
|
68
72
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
69
73
|
|
|
70
|
-
declare const
|
|
74
|
+
declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
71
75
|
"update:selectedGroup": (value: string) => any;
|
|
72
76
|
} & {
|
|
73
77
|
close: () => any;
|
|
74
78
|
open: () => any;
|
|
75
|
-
"item-click": (item: SuggestionItem_2) => any;
|
|
76
|
-
"group-click": (group: SuggestionGroup) => any;
|
|
79
|
+
"item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
|
|
80
|
+
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
77
81
|
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
78
82
|
onClose?: (() => any) | undefined;
|
|
79
83
|
onOpen?: (() => any) | undefined;
|
|
80
|
-
"onItem-click"?: ((item: SuggestionItem_2) => any) | undefined;
|
|
81
|
-
"onGroup-click"?: ((group: SuggestionGroup) => any) | undefined;
|
|
84
|
+
"onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
|
|
85
|
+
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
82
86
|
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
83
87
|
}>, {
|
|
84
88
|
title: string;
|
|
@@ -90,9 +94,32 @@ popoverHeight: string | number;
|
|
|
90
94
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
91
95
|
popoverTriggerRef: HTMLDivElement;
|
|
92
96
|
popoverRef: HTMLDivElement;
|
|
97
|
+
listRef: HTMLUListElement;
|
|
98
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
99
|
+
show?: TooltipContentProps["show"];
|
|
100
|
+
} & TooltipContentProps> & Readonly<{
|
|
101
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
102
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
103
|
+
"update:show": (value: boolean | undefined) => any;
|
|
104
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
105
|
+
P: {};
|
|
106
|
+
B: {};
|
|
107
|
+
D: {};
|
|
108
|
+
C: {};
|
|
109
|
+
M: {};
|
|
110
|
+
Defaults: {};
|
|
111
|
+
}, Readonly<{
|
|
112
|
+
show?: TooltipContentProps["show"];
|
|
113
|
+
} & TooltipContentProps> & Readonly<{
|
|
114
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
115
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
93
116
|
}, any>;
|
|
94
117
|
|
|
95
|
-
declare const __VLS_component_2: DefineComponent<
|
|
118
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
119
|
+
messageRenderers: Record<string, BubbleMessageRenderer>;
|
|
120
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
121
|
+
|
|
122
|
+
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
96
123
|
"update:show": (value: boolean) => any;
|
|
97
124
|
"update:fullscreen": (value: boolean | undefined) => any;
|
|
98
125
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -100,7 +127,7 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
100
127
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
101
128
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
102
129
|
|
|
103
|
-
declare const
|
|
130
|
+
declare const __VLS_component_4: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
104
131
|
"item-click": (item: DropdownMenuItem) => any;
|
|
105
132
|
}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
|
|
106
133
|
"onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
|
|
@@ -112,13 +139,13 @@ dropDownTriggerRef: HTMLDivElement;
|
|
|
112
139
|
dropdownMenuRef: HTMLDivElement;
|
|
113
140
|
}, any>;
|
|
114
141
|
|
|
115
|
-
declare const
|
|
142
|
+
declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
116
143
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
117
144
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
118
145
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
119
146
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
120
147
|
|
|
121
|
-
declare const
|
|
148
|
+
declare const __VLS_component_6: DefineComponent<SenderProps, {
|
|
122
149
|
focus: () => void;
|
|
123
150
|
blur: () => void;
|
|
124
151
|
clear: () => void;
|
|
@@ -135,9 +162,9 @@ setTemplate: (template: string, initialValues?: Record<string, string>) => void;
|
|
|
135
162
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
136
163
|
}>, {
|
|
137
164
|
template: string;
|
|
138
|
-
disabled: boolean;
|
|
139
165
|
mode: InputMode_2;
|
|
140
166
|
loading: boolean;
|
|
167
|
+
disabled: boolean;
|
|
141
168
|
modelValue: string;
|
|
142
169
|
autofocus: boolean;
|
|
143
170
|
clearable: boolean;
|
|
@@ -147,11 +174,11 @@ placeholder: string;
|
|
|
147
174
|
hasContent: boolean;
|
|
148
175
|
allowSpeech: boolean;
|
|
149
176
|
allowFiles: boolean;
|
|
150
|
-
uploadTooltip: string;
|
|
151
177
|
submitType: SubmitTrigger_2;
|
|
152
178
|
autoSize: AutoSize_2;
|
|
153
179
|
maxLength: number;
|
|
154
180
|
suggestions: string[];
|
|
181
|
+
suggestionPopupWidth: string | number;
|
|
155
182
|
templateInitialValues: Record<string, string>;
|
|
156
183
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
157
184
|
senderRef: HTMLDivElement;
|
|
@@ -159,9 +186,9 @@ inputWrapperRef: HTMLDivElement;
|
|
|
159
186
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
160
187
|
value?: string;
|
|
161
188
|
} & TemplateEditorProps_2> & Readonly<{
|
|
162
|
-
onInput?: ((value: string) => any) | undefined;
|
|
163
189
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
164
190
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
191
|
+
onInput?: ((value: string) => any) | undefined;
|
|
165
192
|
onSubmit?: ((value: string) => any) | undefined;
|
|
166
193
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
167
194
|
"onEmpty-content"?: (() => any) | undefined;
|
|
@@ -175,9 +202,9 @@ setTemplate: (params: SetTemplateParams_2) => void;
|
|
|
175
202
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
176
203
|
"update:value": (value: string) => any;
|
|
177
204
|
} & {
|
|
178
|
-
input: (value: string) => any;
|
|
179
205
|
blur: (event: FocusEvent) => any;
|
|
180
206
|
focus: (event: FocusEvent) => any;
|
|
207
|
+
input: (value: string) => any;
|
|
181
208
|
submit: (value: string) => any;
|
|
182
209
|
"content-status": (hasContent: boolean) => any;
|
|
183
210
|
"empty-content": () => any;
|
|
@@ -193,9 +220,9 @@ Defaults: {};
|
|
|
193
220
|
}, Readonly<{
|
|
194
221
|
value?: string;
|
|
195
222
|
} & TemplateEditorProps_2> & Readonly<{
|
|
196
|
-
onInput?: ((value: string) => any) | undefined;
|
|
197
223
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
198
224
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
225
|
+
onInput?: ((value: string) => any) | undefined;
|
|
199
226
|
onSubmit?: ((value: string) => any) | undefined;
|
|
200
227
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
201
228
|
"onEmpty-content"?: (() => any) | undefined;
|
|
@@ -388,6 +415,7 @@ tiny_mode_root: BooleanConstructor;
|
|
|
388
415
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
389
416
|
tiny_renderless: FunctionConstructor;
|
|
390
417
|
tiny_theme: StringConstructor;
|
|
418
|
+
tiny_mcp_config: ObjectConstructor;
|
|
391
419
|
tiny_chart_theme: ObjectConstructor;
|
|
392
420
|
}>>, () => VNode<RendererNode, RendererElement, {
|
|
393
421
|
[key: string]: any;
|
|
@@ -396,20 +424,20 @@ disabled: boolean;
|
|
|
396
424
|
type: string;
|
|
397
425
|
ellipsis: boolean;
|
|
398
426
|
mask: boolean;
|
|
427
|
+
vertical: boolean;
|
|
428
|
+
customClass: string;
|
|
399
429
|
tiny_mode_root: boolean;
|
|
400
430
|
_constants: Record<string, any>;
|
|
401
431
|
tabindex: string;
|
|
402
|
-
contentStyle: Record<string, any>;
|
|
403
|
-
customClass: string;
|
|
404
432
|
showTitle: boolean;
|
|
405
433
|
readonly: boolean;
|
|
406
434
|
hoverExpand: boolean;
|
|
407
435
|
memorySpace: number;
|
|
408
|
-
vertical: boolean;
|
|
409
436
|
selectMenu: {
|
|
410
437
|
id: string;
|
|
411
438
|
label: string;
|
|
412
439
|
}[];
|
|
440
|
+
contentStyle: Record<string, any>;
|
|
413
441
|
isSelect: boolean;
|
|
414
442
|
counter: boolean;
|
|
415
443
|
autosize: boolean | Record<string, any>;
|
|
@@ -615,6 +643,7 @@ tiny_mode_root: BooleanConstructor;
|
|
|
615
643
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
616
644
|
tiny_renderless: FunctionConstructor;
|
|
617
645
|
tiny_theme: StringConstructor;
|
|
646
|
+
tiny_mcp_config: ObjectConstructor;
|
|
618
647
|
tiny_chart_theme: ObjectConstructor;
|
|
619
648
|
}>>, () => VNode<RendererNode, RendererElement, {
|
|
620
649
|
[key: string]: any;
|
|
@@ -623,20 +652,20 @@ disabled: boolean;
|
|
|
623
652
|
type: string;
|
|
624
653
|
ellipsis: boolean;
|
|
625
654
|
mask: boolean;
|
|
655
|
+
vertical: boolean;
|
|
656
|
+
customClass: string;
|
|
626
657
|
tiny_mode_root: boolean;
|
|
627
658
|
_constants: Record<string, any>;
|
|
628
659
|
tabindex: string;
|
|
629
|
-
contentStyle: Record<string, any>;
|
|
630
|
-
customClass: string;
|
|
631
660
|
showTitle: boolean;
|
|
632
661
|
readonly: boolean;
|
|
633
662
|
hoverExpand: boolean;
|
|
634
663
|
memorySpace: number;
|
|
635
|
-
vertical: boolean;
|
|
636
664
|
selectMenu: {
|
|
637
665
|
id: string;
|
|
638
666
|
label: string;
|
|
639
667
|
}[];
|
|
668
|
+
contentStyle: Record<string, any>;
|
|
640
669
|
isSelect: boolean;
|
|
641
670
|
counter: boolean;
|
|
642
671
|
autosize: boolean | Record<string, any>;
|
|
@@ -659,18 +688,18 @@ buttonsContainerRef: HTMLDivElement;
|
|
|
659
688
|
suggestionsListRef: HTMLDivElement;
|
|
660
689
|
}, HTMLDivElement>;
|
|
661
690
|
|
|
662
|
-
declare const
|
|
691
|
+
declare const __VLS_component_7: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
663
692
|
align: "left" | "center" | "right" | string;
|
|
664
693
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
665
694
|
|
|
666
|
-
declare const
|
|
695
|
+
declare const __VLS_component_8: DefineComponent<SuggestionProps, {
|
|
667
696
|
trigger: TriggerHandler;
|
|
668
697
|
keyDown: (e: KeyboardEvent) => void;
|
|
669
698
|
input: (event: Event, text: string) => boolean;
|
|
670
699
|
toggleExpand: () => void;
|
|
671
700
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
672
|
-
select: (value: string, context?: TriggerContext | undefined) => any;
|
|
673
701
|
close: () => any;
|
|
702
|
+
select: (value: string, context?: TriggerContext | undefined) => any;
|
|
674
703
|
"suggestion-select": (item: SuggestionItem) => any;
|
|
675
704
|
"update:open": (value: boolean) => any;
|
|
676
705
|
trigger: (handler: TriggerHandler) => any;
|
|
@@ -678,8 +707,8 @@ trigger: (handler: TriggerHandler) => any;
|
|
|
678
707
|
"update:expanded": (expanded: boolean) => any;
|
|
679
708
|
"fill-template": (template: string) => any;
|
|
680
709
|
}, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
|
|
681
|
-
onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
|
|
682
710
|
onClose?: (() => any) | undefined;
|
|
711
|
+
onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
|
|
683
712
|
"onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
|
|
684
713
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
685
714
|
onTrigger?: ((handler: TriggerHandler) => any) | undefined;
|
|
@@ -687,9 +716,9 @@ onTrigger?: ((handler: TriggerHandler) => any) | undefined;
|
|
|
687
716
|
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
688
717
|
"onFill-template"?: ((template: string) => any) | undefined;
|
|
689
718
|
}>, {
|
|
690
|
-
title: string;
|
|
691
|
-
items: SuggestionItem[];
|
|
692
719
|
open: boolean;
|
|
720
|
+
items: SuggestionItem[];
|
|
721
|
+
title: string;
|
|
693
722
|
loading: boolean;
|
|
694
723
|
categories: Category[];
|
|
695
724
|
theme: "light" | "dark";
|
|
@@ -708,13 +737,13 @@ loading: boolean;
|
|
|
708
737
|
categories: Category[];
|
|
709
738
|
maxVisibleItems: number;
|
|
710
739
|
}> & Omit<{
|
|
711
|
-
readonly title: string;
|
|
712
740
|
readonly items: SuggestionItem[];
|
|
741
|
+
readonly title: string;
|
|
713
742
|
readonly loading: boolean;
|
|
714
743
|
readonly categories: Category[];
|
|
715
744
|
readonly maxVisibleItems: number;
|
|
716
|
-
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
717
745
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
746
|
+
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
718
747
|
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
719
748
|
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
720
749
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
@@ -730,7 +759,7 @@ $slots: Readonly<{
|
|
|
730
759
|
$root: ComponentPublicInstance | null;
|
|
731
760
|
$parent: ComponentPublicInstance | null;
|
|
732
761
|
$host: Element | null;
|
|
733
|
-
$emit: ((event: "
|
|
762
|
+
$emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
|
|
734
763
|
$el: HTMLDivElement;
|
|
735
764
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
736
765
|
items: {
|
|
@@ -754,15 +783,15 @@ type: NumberConstructor;
|
|
|
754
783
|
default: number;
|
|
755
784
|
};
|
|
756
785
|
}>> & Readonly<{
|
|
757
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
758
786
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
787
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
759
788
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
760
789
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
761
790
|
}>, {
|
|
762
791
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
763
792
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
764
|
-
select: (...args: any[]) => void;
|
|
765
793
|
close: (...args: any[]) => void;
|
|
794
|
+
select: (...args: any[]) => void;
|
|
766
795
|
"category-select": (...args: any[]) => void;
|
|
767
796
|
"item-hover": (...args: any[]) => void;
|
|
768
797
|
}, string, {
|
|
@@ -817,8 +846,8 @@ type: NumberConstructor;
|
|
|
817
846
|
default: number;
|
|
818
847
|
};
|
|
819
848
|
}>> & Readonly<{
|
|
820
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
821
849
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
850
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
822
851
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
823
852
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
824
853
|
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
@@ -836,22 +865,29 @@ empty?(_: {}): any;
|
|
|
836
865
|
}) | null;
|
|
837
866
|
}, HTMLDivElement>;
|
|
838
867
|
|
|
839
|
-
declare const
|
|
868
|
+
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
840
869
|
"update:showAll": (value: boolean | undefined) => any;
|
|
841
870
|
} & {
|
|
842
871
|
"item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
|
|
872
|
+
"click-outside": (event: MouseEvent) => any;
|
|
843
873
|
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
844
874
|
"onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
|
|
875
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
845
876
|
"onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
|
|
846
|
-
}>, {
|
|
877
|
+
}>, {
|
|
878
|
+
showAllButtonOn: "hover" | "always";
|
|
879
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
880
|
+
containerWrapperRef: HTMLDivElement;
|
|
847
881
|
containerRef: HTMLDivElement;
|
|
848
882
|
}, HTMLDivElement>;
|
|
849
883
|
|
|
850
|
-
declare
|
|
884
|
+
declare type __VLS_Props = {
|
|
885
|
+
messageRenderers?: Record<string, BubbleMessageRenderer>;
|
|
886
|
+
};
|
|
851
887
|
|
|
852
|
-
declare type
|
|
888
|
+
declare type __VLS_Props_2 = SuggestionPillsProps;
|
|
853
889
|
|
|
854
|
-
declare type
|
|
890
|
+
declare type __VLS_Props_3 = SuggestionPopoverProps;
|
|
855
891
|
|
|
856
892
|
declare type __VLS_PublicProps = {
|
|
857
893
|
'show': ContainerProps['show'];
|
|
@@ -860,11 +896,11 @@ declare type __VLS_PublicProps = {
|
|
|
860
896
|
|
|
861
897
|
declare type __VLS_PublicProps_2 = {
|
|
862
898
|
'showAll'?: SuggestionPillsProps['showAll'];
|
|
863
|
-
} &
|
|
899
|
+
} & __VLS_Props_2;
|
|
864
900
|
|
|
865
901
|
declare type __VLS_PublicProps_3 = {
|
|
866
902
|
'selectedGroup'?: string;
|
|
867
|
-
} &
|
|
903
|
+
} & __VLS_Props_3;
|
|
868
904
|
|
|
869
905
|
declare function __VLS_template(): {
|
|
870
906
|
attrs: Partial<{}>;
|
|
@@ -874,6 +910,13 @@ declare function __VLS_template(): {
|
|
|
874
910
|
};
|
|
875
911
|
|
|
876
912
|
declare function __VLS_template_10(): {
|
|
913
|
+
attrs: Partial<{}>;
|
|
914
|
+
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
915
|
+
refs: {};
|
|
916
|
+
rootEl: HTMLButtonElement;
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
declare function __VLS_template_11(): {
|
|
877
920
|
attrs: Partial<{}>;
|
|
878
921
|
slots: {
|
|
879
922
|
'category-label'?(_: {
|
|
@@ -890,24 +933,52 @@ declare function __VLS_template_10(): {
|
|
|
890
933
|
rootEl: HTMLDivElement;
|
|
891
934
|
};
|
|
892
935
|
|
|
893
|
-
declare function
|
|
936
|
+
declare function __VLS_template_12(): {
|
|
894
937
|
attrs: Partial<{}>;
|
|
895
938
|
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
896
939
|
refs: {
|
|
897
940
|
popoverTriggerRef: HTMLDivElement;
|
|
898
941
|
popoverRef: HTMLDivElement;
|
|
942
|
+
listRef: HTMLUListElement;
|
|
943
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
944
|
+
show?: TooltipContentProps["show"];
|
|
945
|
+
} & TooltipContentProps> & Readonly<{
|
|
946
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
947
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
948
|
+
"update:show": (value: boolean | undefined) => any;
|
|
949
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
950
|
+
P: {};
|
|
951
|
+
B: {};
|
|
952
|
+
D: {};
|
|
953
|
+
C: {};
|
|
954
|
+
M: {};
|
|
955
|
+
Defaults: {};
|
|
956
|
+
}, Readonly<{
|
|
957
|
+
show?: TooltipContentProps["show"];
|
|
958
|
+
} & TooltipContentProps> & Readonly<{
|
|
959
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
960
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
899
961
|
};
|
|
900
962
|
rootEl: any;
|
|
901
963
|
};
|
|
902
964
|
|
|
903
965
|
declare function __VLS_template_2(): {
|
|
966
|
+
attrs: Partial<{}>;
|
|
967
|
+
slots: {
|
|
968
|
+
default?(_: {}): any;
|
|
969
|
+
};
|
|
970
|
+
refs: {};
|
|
971
|
+
rootEl: any;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
declare function __VLS_template_3(): {
|
|
904
975
|
attrs: Partial<{}>;
|
|
905
976
|
slots: Readonly<ContainerSlots> & ContainerSlots;
|
|
906
977
|
refs: {};
|
|
907
978
|
rootEl: HTMLDivElement;
|
|
908
979
|
};
|
|
909
980
|
|
|
910
|
-
declare function
|
|
981
|
+
declare function __VLS_template_4(): {
|
|
911
982
|
attrs: Partial<{}>;
|
|
912
983
|
slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
|
|
913
984
|
refs: {
|
|
@@ -917,14 +988,14 @@ declare function __VLS_template_3(): {
|
|
|
917
988
|
rootEl: any;
|
|
918
989
|
};
|
|
919
990
|
|
|
920
|
-
declare function
|
|
991
|
+
declare function __VLS_template_5(): {
|
|
921
992
|
attrs: Partial<{}>;
|
|
922
993
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
923
994
|
refs: {};
|
|
924
995
|
rootEl: HTMLDivElement;
|
|
925
996
|
};
|
|
926
997
|
|
|
927
|
-
declare function
|
|
998
|
+
declare function __VLS_template_6(): {
|
|
928
999
|
attrs: Partial<{}>;
|
|
929
1000
|
slots: {
|
|
930
1001
|
header?(_: {}): any;
|
|
@@ -941,9 +1012,9 @@ declare function __VLS_template_5(): {
|
|
|
941
1012
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
942
1013
|
value?: string;
|
|
943
1014
|
} & TemplateEditorProps_2> & Readonly<{
|
|
944
|
-
onInput?: ((value: string) => any) | undefined;
|
|
945
1015
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
946
1016
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1017
|
+
onInput?: ((value: string) => any) | undefined;
|
|
947
1018
|
onSubmit?: ((value: string) => any) | undefined;
|
|
948
1019
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
949
1020
|
"onEmpty-content"?: (() => any) | undefined;
|
|
@@ -957,9 +1028,9 @@ declare function __VLS_template_5(): {
|
|
|
957
1028
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
958
1029
|
"update:value": (value: string) => any;
|
|
959
1030
|
} & {
|
|
960
|
-
input: (value: string) => any;
|
|
961
1031
|
blur: (event: FocusEvent) => any;
|
|
962
1032
|
focus: (event: FocusEvent) => any;
|
|
1033
|
+
input: (value: string) => any;
|
|
963
1034
|
submit: (value: string) => any;
|
|
964
1035
|
"content-status": (hasContent: boolean) => any;
|
|
965
1036
|
"empty-content": () => any;
|
|
@@ -975,9 +1046,9 @@ declare function __VLS_template_5(): {
|
|
|
975
1046
|
}, Readonly<{
|
|
976
1047
|
value?: string;
|
|
977
1048
|
} & TemplateEditorProps_2> & Readonly<{
|
|
978
|
-
onInput?: ((value: string) => any) | undefined;
|
|
979
1049
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
980
1050
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1051
|
+
onInput?: ((value: string) => any) | undefined;
|
|
981
1052
|
onSubmit?: ((value: string) => any) | undefined;
|
|
982
1053
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
983
1054
|
"onEmpty-content"?: (() => any) | undefined;
|
|
@@ -1170,6 +1241,7 @@ declare function __VLS_template_5(): {
|
|
|
1170
1241
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
1171
1242
|
tiny_renderless: FunctionConstructor;
|
|
1172
1243
|
tiny_theme: StringConstructor;
|
|
1244
|
+
tiny_mcp_config: ObjectConstructor;
|
|
1173
1245
|
tiny_chart_theme: ObjectConstructor;
|
|
1174
1246
|
}>>, () => VNode<RendererNode, RendererElement, {
|
|
1175
1247
|
[key: string]: any;
|
|
@@ -1178,20 +1250,20 @@ declare function __VLS_template_5(): {
|
|
|
1178
1250
|
type: string;
|
|
1179
1251
|
ellipsis: boolean;
|
|
1180
1252
|
mask: boolean;
|
|
1253
|
+
vertical: boolean;
|
|
1254
|
+
customClass: string;
|
|
1181
1255
|
tiny_mode_root: boolean;
|
|
1182
1256
|
_constants: Record<string, any>;
|
|
1183
1257
|
tabindex: string;
|
|
1184
|
-
contentStyle: Record<string, any>;
|
|
1185
|
-
customClass: string;
|
|
1186
1258
|
showTitle: boolean;
|
|
1187
1259
|
readonly: boolean;
|
|
1188
1260
|
hoverExpand: boolean;
|
|
1189
1261
|
memorySpace: number;
|
|
1190
|
-
vertical: boolean;
|
|
1191
1262
|
selectMenu: {
|
|
1192
1263
|
id: string;
|
|
1193
1264
|
label: string;
|
|
1194
1265
|
}[];
|
|
1266
|
+
contentStyle: Record<string, any>;
|
|
1195
1267
|
isSelect: boolean;
|
|
1196
1268
|
counter: boolean;
|
|
1197
1269
|
autosize: boolean | Record<string, any>;
|
|
@@ -1397,6 +1469,7 @@ declare function __VLS_template_5(): {
|
|
|
1397
1469
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
1398
1470
|
tiny_renderless: FunctionConstructor;
|
|
1399
1471
|
tiny_theme: StringConstructor;
|
|
1472
|
+
tiny_mcp_config: ObjectConstructor;
|
|
1400
1473
|
tiny_chart_theme: ObjectConstructor;
|
|
1401
1474
|
}>>, () => VNode<RendererNode, RendererElement, {
|
|
1402
1475
|
[key: string]: any;
|
|
@@ -1405,20 +1478,20 @@ declare function __VLS_template_5(): {
|
|
|
1405
1478
|
type: string;
|
|
1406
1479
|
ellipsis: boolean;
|
|
1407
1480
|
mask: boolean;
|
|
1481
|
+
vertical: boolean;
|
|
1482
|
+
customClass: string;
|
|
1408
1483
|
tiny_mode_root: boolean;
|
|
1409
1484
|
_constants: Record<string, any>;
|
|
1410
1485
|
tabindex: string;
|
|
1411
|
-
contentStyle: Record<string, any>;
|
|
1412
|
-
customClass: string;
|
|
1413
1486
|
showTitle: boolean;
|
|
1414
1487
|
readonly: boolean;
|
|
1415
1488
|
hoverExpand: boolean;
|
|
1416
1489
|
memorySpace: number;
|
|
1417
|
-
vertical: boolean;
|
|
1418
1490
|
selectMenu: {
|
|
1419
1491
|
id: string;
|
|
1420
1492
|
label: string;
|
|
1421
1493
|
}[];
|
|
1494
|
+
contentStyle: Record<string, any>;
|
|
1422
1495
|
isSelect: boolean;
|
|
1423
1496
|
counter: boolean;
|
|
1424
1497
|
autosize: boolean | Record<string, any>;
|
|
@@ -1443,14 +1516,14 @@ declare function __VLS_template_5(): {
|
|
|
1443
1516
|
rootEl: HTMLDivElement;
|
|
1444
1517
|
};
|
|
1445
1518
|
|
|
1446
|
-
declare function
|
|
1519
|
+
declare function __VLS_template_7(): {
|
|
1447
1520
|
attrs: Partial<{}>;
|
|
1448
1521
|
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1449
1522
|
refs: {};
|
|
1450
1523
|
rootEl: HTMLDivElement;
|
|
1451
1524
|
};
|
|
1452
1525
|
|
|
1453
|
-
declare function
|
|
1526
|
+
declare function __VLS_template_8(): {
|
|
1454
1527
|
attrs: Partial<{}>;
|
|
1455
1528
|
slots: {
|
|
1456
1529
|
'capsule-icon'?(_: {
|
|
@@ -1483,13 +1556,13 @@ declare function __VLS_template_7(): {
|
|
|
1483
1556
|
categories: Category[];
|
|
1484
1557
|
maxVisibleItems: number;
|
|
1485
1558
|
}> & Omit<{
|
|
1486
|
-
readonly title: string;
|
|
1487
1559
|
readonly items: SuggestionItem[];
|
|
1560
|
+
readonly title: string;
|
|
1488
1561
|
readonly loading: boolean;
|
|
1489
1562
|
readonly categories: Category[];
|
|
1490
1563
|
readonly maxVisibleItems: number;
|
|
1491
|
-
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
1492
1564
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
1565
|
+
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
1493
1566
|
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1494
1567
|
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1495
1568
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
@@ -1505,7 +1578,7 @@ declare function __VLS_template_7(): {
|
|
|
1505
1578
|
$root: ComponentPublicInstance | null;
|
|
1506
1579
|
$parent: ComponentPublicInstance | null;
|
|
1507
1580
|
$host: Element | null;
|
|
1508
|
-
$emit: ((event: "
|
|
1581
|
+
$emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
|
|
1509
1582
|
$el: HTMLDivElement;
|
|
1510
1583
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
1511
1584
|
items: {
|
|
@@ -1529,15 +1602,15 @@ declare function __VLS_template_7(): {
|
|
|
1529
1602
|
default: number;
|
|
1530
1603
|
};
|
|
1531
1604
|
}>> & Readonly<{
|
|
1532
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1533
1605
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
1606
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1534
1607
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1535
1608
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1536
1609
|
}>, {
|
|
1537
1610
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1538
1611
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1539
|
-
select: (...args: any[]) => void;
|
|
1540
1612
|
close: (...args: any[]) => void;
|
|
1613
|
+
select: (...args: any[]) => void;
|
|
1541
1614
|
"category-select": (...args: any[]) => void;
|
|
1542
1615
|
"item-hover": (...args: any[]) => void;
|
|
1543
1616
|
}, string, {
|
|
@@ -1592,8 +1665,8 @@ declare function __VLS_template_7(): {
|
|
|
1592
1665
|
default: number;
|
|
1593
1666
|
};
|
|
1594
1667
|
}>> & Readonly<{
|
|
1595
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1596
1668
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
1669
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1597
1670
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1598
1671
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1599
1672
|
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
@@ -1613,28 +1686,24 @@ declare function __VLS_template_7(): {
|
|
|
1613
1686
|
rootEl: HTMLDivElement;
|
|
1614
1687
|
};
|
|
1615
1688
|
|
|
1616
|
-
declare function
|
|
1689
|
+
declare function __VLS_template_9(): {
|
|
1617
1690
|
attrs: Partial<{}>;
|
|
1618
1691
|
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1619
1692
|
refs: {
|
|
1693
|
+
containerWrapperRef: HTMLDivElement;
|
|
1620
1694
|
containerRef: HTMLDivElement;
|
|
1621
1695
|
};
|
|
1622
1696
|
rootEl: HTMLDivElement;
|
|
1623
1697
|
};
|
|
1624
1698
|
|
|
1625
|
-
declare function __VLS_template_9(): {
|
|
1626
|
-
attrs: Partial<{}>;
|
|
1627
|
-
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1628
|
-
refs: {};
|
|
1629
|
-
rootEl: HTMLButtonElement;
|
|
1630
|
-
};
|
|
1631
|
-
|
|
1632
1699
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1633
1700
|
|
|
1634
1701
|
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
1635
1702
|
|
|
1636
1703
|
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
1637
1704
|
|
|
1705
|
+
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
1706
|
+
|
|
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>;
|
|
@@ -1669,6 +1738,12 @@ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
|
1669
1738
|
};
|
|
1670
1739
|
};
|
|
1671
1740
|
|
|
1741
|
+
declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
1742
|
+
new (): {
|
|
1743
|
+
$slots: S;
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1672
1747
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1673
1748
|
new (): {
|
|
1674
1749
|
$slots: S;
|
|
@@ -1717,12 +1792,6 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1717
1792
|
};
|
|
1718
1793
|
};
|
|
1719
1794
|
|
|
1720
|
-
export declare interface ActionButton {
|
|
1721
|
-
type: string;
|
|
1722
|
-
label: string;
|
|
1723
|
-
handler?: (file: Attachment) => void;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
1795
|
export declare interface ActionButtonsProps {
|
|
1727
1796
|
loading?: boolean;
|
|
1728
1797
|
disabled?: boolean;
|
|
@@ -1734,39 +1803,11 @@ export declare interface ActionButtonsProps {
|
|
|
1734
1803
|
isSupported: boolean;
|
|
1735
1804
|
};
|
|
1736
1805
|
allowFiles?: boolean;
|
|
1737
|
-
uploadTooltip?: string;
|
|
1738
1806
|
submitType?: SubmitTrigger;
|
|
1739
1807
|
showShortcuts?: boolean;
|
|
1740
1808
|
isOverLimit?: boolean;
|
|
1741
1809
|
}
|
|
1742
1810
|
|
|
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;
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
export declare interface AttachmentsProps {
|
|
1754
|
-
items?: Attachment[];
|
|
1755
|
-
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;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
1811
|
export declare type AutoSize = boolean | {
|
|
1771
1812
|
minRows: number;
|
|
1772
1813
|
maxRows: number;
|
|
@@ -1781,15 +1822,51 @@ declare interface BaseHistoryProps {
|
|
|
1781
1822
|
selected?: string;
|
|
1782
1823
|
}
|
|
1783
1824
|
|
|
1784
|
-
declare const Bubble: typeof
|
|
1825
|
+
declare const Bubble: typeof _default_14 & {
|
|
1785
1826
|
install: typeof bubbleInstall;
|
|
1786
1827
|
};
|
|
1787
1828
|
export { Bubble }
|
|
1788
1829
|
export { Bubble as TrBubble }
|
|
1789
1830
|
|
|
1831
|
+
export declare const BubbleChainMessageRenderer: DefineComponent< {
|
|
1832
|
+
items: ChainItem[];
|
|
1833
|
+
html?: boolean;
|
|
1834
|
+
contentClass?: string;
|
|
1835
|
+
contentRenderer?: (content: string) => string;
|
|
1836
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
1837
|
+
items: ChainItem[];
|
|
1838
|
+
html?: boolean;
|
|
1839
|
+
contentClass?: string;
|
|
1840
|
+
contentRenderer?: (content: string) => string;
|
|
1841
|
+
}> & Readonly<{}>, {
|
|
1842
|
+
html: boolean;
|
|
1843
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1844
|
+
|
|
1845
|
+
export declare interface BubbleCommonProps {
|
|
1846
|
+
/**
|
|
1847
|
+
* 气泡对齐位置
|
|
1848
|
+
*/
|
|
1849
|
+
placement?: 'start' | 'end';
|
|
1850
|
+
/**
|
|
1851
|
+
* 气泡头像
|
|
1852
|
+
*/
|
|
1853
|
+
avatar?: VNode;
|
|
1854
|
+
/**
|
|
1855
|
+
* 气泡形状,默认 'corner'
|
|
1856
|
+
*/
|
|
1857
|
+
shape?: 'rounded' | 'corner';
|
|
1858
|
+
/**
|
|
1859
|
+
* 气泡内容渲染器。
|
|
1860
|
+
* 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
|
|
1861
|
+
*/
|
|
1862
|
+
contentRenderer?: BubbleMessageRenderer;
|
|
1863
|
+
hidden?: boolean;
|
|
1864
|
+
maxWidth?: string | number;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1790
1867
|
declare const bubbleInstall: (app: App) => void;
|
|
1791
1868
|
|
|
1792
|
-
declare const BubbleList: typeof
|
|
1869
|
+
declare const BubbleList: typeof _default_15 & {
|
|
1793
1870
|
install: typeof bubbleListInstall;
|
|
1794
1871
|
};
|
|
1795
1872
|
export { BubbleList }
|
|
@@ -1805,37 +1882,85 @@ export declare interface BubbleListProps {
|
|
|
1805
1882
|
* 每个角色的默认配置项
|
|
1806
1883
|
*/
|
|
1807
1884
|
roles?: Record<string, BubbleRoleConfig>;
|
|
1885
|
+
/**
|
|
1886
|
+
* 列表是否加载中
|
|
1887
|
+
*/
|
|
1888
|
+
loading?: boolean;
|
|
1889
|
+
/**
|
|
1890
|
+
* 指定哪个角色可以有加载中状态
|
|
1891
|
+
*/
|
|
1892
|
+
loadingRole?: string;
|
|
1808
1893
|
autoScroll?: boolean;
|
|
1809
1894
|
}
|
|
1810
1895
|
|
|
1811
|
-
export declare
|
|
1896
|
+
export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
|
|
1897
|
+
readonly md: default_2;
|
|
1898
|
+
readonly mdConfig: Options;
|
|
1899
|
+
readonly dompurifyConfig: Config;
|
|
1900
|
+
readonly sanitizeDisabled: boolean;
|
|
1901
|
+
readonly styleOptions: {
|
|
1902
|
+
class?: string;
|
|
1903
|
+
style?: string;
|
|
1904
|
+
};
|
|
1905
|
+
constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
|
|
1906
|
+
render(options: {
|
|
1907
|
+
content?: string;
|
|
1908
|
+
}): VNode<RendererNode, RendererElement, {
|
|
1909
|
+
[key: string]: any;
|
|
1910
|
+
}>;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
declare interface BubbleMarkdownRendererOptions {
|
|
1914
|
+
mdConfig?: Options;
|
|
1915
|
+
dompurifyConfig?: Config;
|
|
1916
|
+
sanitizeDisabled?: boolean;
|
|
1917
|
+
styleOptions?: {
|
|
1918
|
+
class?: string;
|
|
1919
|
+
style?: string;
|
|
1920
|
+
};
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
export declare abstract class BubbleMessageClassRenderer {
|
|
1924
|
+
abstract render(options: {
|
|
1925
|
+
[key: string]: any;
|
|
1926
|
+
}): VNode;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
export declare type BubbleMessageFunctionRenderer = (options: {
|
|
1930
|
+
[key: string]: any;
|
|
1931
|
+
}) => VNode;
|
|
1812
1932
|
|
|
1813
|
-
export declare interface
|
|
1933
|
+
export declare interface BubbleMessageProps {
|
|
1934
|
+
type: string;
|
|
1935
|
+
[key: string]: any;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component | {
|
|
1939
|
+
component: Component;
|
|
1940
|
+
defaultProps: Record<string, unknown>;
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1943
|
+
export declare interface BubbleProps extends BubbleCommonProps {
|
|
1814
1944
|
/**
|
|
1815
1945
|
* 气泡内容
|
|
1816
1946
|
*/
|
|
1817
1947
|
content?: string;
|
|
1948
|
+
messages?: BubbleMessageProps[];
|
|
1818
1949
|
id?: string | number | symbol;
|
|
1819
|
-
/**
|
|
1820
|
-
* 气泡位置
|
|
1821
|
-
*/
|
|
1822
|
-
placement?: BubblePalcement;
|
|
1823
|
-
avatar?: VNode;
|
|
1824
1950
|
role?: string;
|
|
1825
|
-
/**
|
|
1826
|
-
* 内容类型
|
|
1827
|
-
*/
|
|
1828
|
-
type?: 'text' | 'markdown';
|
|
1829
1951
|
loading?: boolean;
|
|
1830
1952
|
aborted?: boolean;
|
|
1831
|
-
/**
|
|
1832
|
-
* type 为 'markdown' 时,markdown 的配置项
|
|
1833
|
-
*/
|
|
1834
|
-
mdConfig?: Options;
|
|
1835
|
-
maxWidth?: string | number;
|
|
1836
1953
|
}
|
|
1837
1954
|
|
|
1838
|
-
|
|
1955
|
+
declare const BubbleProvider: typeof _default_16 & {
|
|
1956
|
+
install: typeof bubbleProviderInstall;
|
|
1957
|
+
};
|
|
1958
|
+
export { BubbleProvider }
|
|
1959
|
+
export { BubbleProvider as TrBubbleProvider }
|
|
1960
|
+
|
|
1961
|
+
declare const bubbleProviderInstall: (app: App) => void;
|
|
1962
|
+
|
|
1963
|
+
export declare type BubbleRoleConfig = BubbleCommonProps & {
|
|
1839
1964
|
slots?: BubbleSlots;
|
|
1840
1965
|
};
|
|
1841
1966
|
|
|
@@ -1898,203 +2023,124 @@ export default _default;
|
|
|
1898
2023
|
declare const _default_10: typeof _default_26 & {
|
|
1899
2024
|
install: typeof install_8;
|
|
1900
2025
|
};
|
|
1901
|
-
export { _default_10 as
|
|
1902
|
-
export { _default_10 as
|
|
2026
|
+
export { _default_10 as Suggestion }
|
|
2027
|
+
export { _default_10 as TrSuggestion }
|
|
1903
2028
|
|
|
1904
2029
|
declare const _default_11: typeof _default_27 & {
|
|
1905
2030
|
install: typeof install_9;
|
|
1906
2031
|
};
|
|
1907
|
-
export { _default_11 as
|
|
1908
|
-
export { _default_11 as
|
|
2032
|
+
export { _default_11 as SuggestionPills }
|
|
2033
|
+
export { _default_11 as TrSuggestionPills }
|
|
1909
2034
|
|
|
1910
|
-
declare const _default_12: typeof
|
|
2035
|
+
declare const _default_12: typeof _default_29 & {
|
|
1911
2036
|
install: typeof install_10;
|
|
1912
2037
|
};
|
|
1913
|
-
export { _default_12 as
|
|
1914
|
-
export { _default_12 as
|
|
2038
|
+
export { _default_12 as Question }
|
|
2039
|
+
export { _default_12 as TrQuestion }
|
|
1915
2040
|
|
|
1916
2041
|
declare const _default_13: typeof _default_30 & {
|
|
1917
2042
|
install: typeof install_11;
|
|
1918
2043
|
};
|
|
1919
|
-
export { _default_13 as
|
|
1920
|
-
export { _default_13 as
|
|
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;
|
|
1983
|
-
}>, {
|
|
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>;
|
|
2044
|
+
export { _default_13 as SuggestionPopover }
|
|
2045
|
+
export { _default_13 as TrSuggestionPopover }
|
|
1991
2046
|
|
|
1992
|
-
declare const
|
|
2047
|
+
declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1993
2048
|
|
|
1994
|
-
declare const
|
|
2049
|
+
declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1995
2050
|
scrollContainerRef: HTMLDivElement;
|
|
1996
2051
|
}, HTMLDivElement>;
|
|
1997
2052
|
|
|
1998
|
-
declare const
|
|
2053
|
+
declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2054
|
+
|
|
2055
|
+
declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2056
|
+
|
|
2057
|
+
declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1999
2058
|
|
|
2000
|
-
declare const _default_19:
|
|
2059
|
+
declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2001
2060
|
|
|
2002
|
-
declare const _default_2: typeof
|
|
2061
|
+
declare const _default_2: typeof _default_17 & {
|
|
2003
2062
|
install: typeof install;
|
|
2004
2063
|
};
|
|
2005
|
-
export { _default_2 as
|
|
2006
|
-
export { _default_2 as
|
|
2064
|
+
export { _default_2 as Container }
|
|
2065
|
+
export { _default_2 as TrContainer }
|
|
2007
2066
|
|
|
2008
|
-
declare const _default_20:
|
|
2009
|
-
|
|
2010
|
-
declare const _default_21: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2011
|
-
action: (name: string) => any;
|
|
2067
|
+
declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2012
2068
|
operation: (name: string) => any;
|
|
2069
|
+
action: (name: string) => any;
|
|
2013
2070
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
2014
|
-
onAction?: ((name: string) => any) | undefined;
|
|
2015
2071
|
onOperation?: ((name: string) => any) | undefined;
|
|
2072
|
+
onAction?: ((name: string) => any) | undefined;
|
|
2016
2073
|
}>, {
|
|
2017
2074
|
operationsLimit: number;
|
|
2018
2075
|
actionsLimit: number;
|
|
2019
2076
|
sourcesLinesLimit: number;
|
|
2020
2077
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2021
2078
|
|
|
2022
|
-
declare const
|
|
2079
|
+
declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2023
2080
|
size: string | number;
|
|
2024
2081
|
svgSize: string | number;
|
|
2025
2082
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2026
2083
|
|
|
2027
|
-
declare const
|
|
2084
|
+
declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2028
2085
|
|
|
2029
|
-
declare const
|
|
2086
|
+
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2030
2087
|
|
|
2031
|
-
declare const
|
|
2088
|
+
declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2032
2089
|
|
|
2033
|
-
declare const
|
|
2090
|
+
declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2034
2091
|
|
|
2035
|
-
declare const
|
|
2092
|
+
declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2036
2093
|
|
|
2037
|
-
declare const
|
|
2094
|
+
declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2038
2095
|
|
|
2039
|
-
declare const
|
|
2096
|
+
declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2097
|
+
|
|
2098
|
+
declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2040
2099
|
|
|
2041
2100
|
declare const _default_3: typeof _default_18 & {
|
|
2042
2101
|
install: typeof install_2;
|
|
2043
2102
|
};
|
|
2044
|
-
export { _default_3 as
|
|
2045
|
-
export { _default_3 as
|
|
2046
|
-
|
|
2047
|
-
declare const _default_30: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2103
|
+
export { _default_3 as Conversations }
|
|
2104
|
+
export { _default_3 as TrConversations }
|
|
2048
2105
|
|
|
2049
|
-
declare const
|
|
2106
|
+
declare const _default_30: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2050
2107
|
|
|
2051
2108
|
declare const _default_4: typeof _default_19 & {
|
|
2052
2109
|
install: typeof install_3;
|
|
2053
2110
|
};
|
|
2054
|
-
export { _default_4 as
|
|
2055
|
-
export { _default_4 as
|
|
2111
|
+
export { _default_4 as DropdownMenu }
|
|
2112
|
+
export { _default_4 as TrDropdownMenu }
|
|
2056
2113
|
|
|
2057
2114
|
declare const _default_5: typeof _default_20 & {
|
|
2058
2115
|
install: typeof install_4;
|
|
2059
2116
|
};
|
|
2060
|
-
export { _default_5 as
|
|
2061
|
-
export { _default_5 as
|
|
2062
|
-
|
|
2063
|
-
declare const _default_6: typeof _default_21 & {
|
|
2064
|
-
install: typeof install_5;
|
|
2065
|
-
};
|
|
2066
|
-
export { _default_6 as Feedback }
|
|
2067
|
-
export { _default_6 as TrFeedback }
|
|
2117
|
+
export { _default_5 as Feedback }
|
|
2118
|
+
export { _default_5 as TrFeedback }
|
|
2068
2119
|
|
|
2069
|
-
declare const
|
|
2120
|
+
declare const _default_6: {
|
|
2070
2121
|
install: <T>(app: App<T>) => void;
|
|
2071
2122
|
name: string;
|
|
2072
2123
|
};
|
|
2073
|
-
export {
|
|
2074
|
-
export {
|
|
2124
|
+
export { _default_6 as History }
|
|
2125
|
+
export { _default_6 as TrHistory }
|
|
2075
2126
|
|
|
2076
|
-
declare const
|
|
2127
|
+
declare const _default_7: typeof _default_21 & {
|
|
2128
|
+
install: typeof install_5;
|
|
2129
|
+
};
|
|
2130
|
+
export { _default_7 as IconButton }
|
|
2131
|
+
export { _default_7 as TrIconButton }
|
|
2132
|
+
|
|
2133
|
+
declare const _default_8: typeof _default_24 & {
|
|
2077
2134
|
install: typeof install_6;
|
|
2078
2135
|
};
|
|
2079
|
-
export { _default_8 as
|
|
2080
|
-
export { _default_8 as
|
|
2136
|
+
export { _default_8 as Sender }
|
|
2137
|
+
export { _default_8 as TrSender }
|
|
2081
2138
|
|
|
2082
2139
|
declare const _default_9: typeof _default_25 & {
|
|
2083
2140
|
install: typeof install_7;
|
|
2084
2141
|
};
|
|
2085
|
-
export { _default_9 as
|
|
2086
|
-
export { _default_9 as
|
|
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
|
-
};
|
|
2097
|
-
}
|
|
2142
|
+
export { _default_9 as TrWelcome }
|
|
2143
|
+
export { _default_9 as Welcome }
|
|
2098
2144
|
|
|
2099
2145
|
export declare interface DropdownMenuEmits {
|
|
2100
2146
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
@@ -2145,10 +2191,6 @@ export declare interface FeedbackProps {
|
|
|
2145
2191
|
sourcesLinesLimit?: number;
|
|
2146
2192
|
}
|
|
2147
2193
|
|
|
2148
|
-
export declare type FileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
2149
|
-
|
|
2150
|
-
declare function handleDrop(files: File[]): void;
|
|
2151
|
-
|
|
2152
2194
|
export declare type HistoryData = HistoryItem[] | HistoryGroup[];
|
|
2153
2195
|
|
|
2154
2196
|
export declare interface HistoryEvents {
|
|
@@ -2199,8 +2241,6 @@ declare const install_10: <T>(app: App<T>) => void;
|
|
|
2199
2241
|
|
|
2200
2242
|
declare const install_11: <T>(app: App<T>) => void;
|
|
2201
2243
|
|
|
2202
|
-
declare const install_12: <T>(app: App<T>) => void;
|
|
2203
|
-
|
|
2204
2244
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2205
2245
|
|
|
2206
2246
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2236,7 +2276,7 @@ export declare type MultiTabHistoryProps = {
|
|
|
2236
2276
|
data: Record<string, HistoryData>;
|
|
2237
2277
|
} & BaseHistoryProps;
|
|
2238
2278
|
|
|
2239
|
-
declare const Prompt: typeof
|
|
2279
|
+
declare const Prompt: typeof _default_22 & {
|
|
2240
2280
|
install: typeof installPrompt;
|
|
2241
2281
|
};
|
|
2242
2282
|
export { Prompt }
|
|
@@ -2269,7 +2309,7 @@ export declare interface PromptProps {
|
|
|
2269
2309
|
badge?: string | VNode;
|
|
2270
2310
|
}
|
|
2271
2311
|
|
|
2272
|
-
declare const Prompts: typeof
|
|
2312
|
+
declare const Prompts: typeof _default_23 & {
|
|
2273
2313
|
install: typeof installPrompts;
|
|
2274
2314
|
};
|
|
2275
2315
|
export { Prompts }
|
|
@@ -2367,8 +2407,6 @@ export declare type SenderEmits = {
|
|
|
2367
2407
|
(e: 'escape-press'): void;
|
|
2368
2408
|
(e: 'cancel'): void;
|
|
2369
2409
|
(e: 'reset-template'): void;
|
|
2370
|
-
(e: 'upload-online'): void;
|
|
2371
|
-
(e: 'files-selected', files: FileList | null): void;
|
|
2372
2410
|
};
|
|
2373
2411
|
|
|
2374
2412
|
export declare interface SenderProps {
|
|
@@ -2376,7 +2414,6 @@ export declare interface SenderProps {
|
|
|
2376
2414
|
autoSize?: AutoSize;
|
|
2377
2415
|
allowSpeech?: boolean;
|
|
2378
2416
|
allowFiles?: boolean;
|
|
2379
|
-
uploadTooltip?: string;
|
|
2380
2417
|
clearable?: boolean;
|
|
2381
2418
|
disabled?: boolean;
|
|
2382
2419
|
defaultValue?: string | null;
|
|
@@ -2389,6 +2426,7 @@ export declare interface SenderProps {
|
|
|
2389
2426
|
placeholder?: string;
|
|
2390
2427
|
showWordLimit?: boolean;
|
|
2391
2428
|
suggestions?: string[];
|
|
2429
|
+
suggestionPopupWidth?: string | number;
|
|
2392
2430
|
theme?: ThemeType;
|
|
2393
2431
|
template?: string;
|
|
2394
2432
|
hasContent?: boolean;
|
|
@@ -2439,7 +2477,12 @@ export declare interface SpeechState {
|
|
|
2439
2477
|
|
|
2440
2478
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
2441
2479
|
|
|
2442
|
-
declare
|
|
2480
|
+
declare interface SuggestionBaseItem {
|
|
2481
|
+
id: string;
|
|
2482
|
+
text: string;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
|
|
2443
2486
|
|
|
2444
2487
|
/**
|
|
2445
2488
|
* 组件事件
|
|
@@ -2463,11 +2506,11 @@ export declare interface SuggestionEmits {
|
|
|
2463
2506
|
(e: 'fill-template', template: string): void;
|
|
2464
2507
|
}
|
|
2465
2508
|
|
|
2466
|
-
declare interface SuggestionGroup {
|
|
2509
|
+
declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
2467
2510
|
group: string;
|
|
2468
2511
|
label: string;
|
|
2469
2512
|
icon?: VNode | Component;
|
|
2470
|
-
items: SuggestionItem_2[];
|
|
2513
|
+
items: SuggestionItem_2<T>[];
|
|
2471
2514
|
}
|
|
2472
2515
|
|
|
2473
2516
|
/**
|
|
@@ -2490,10 +2533,7 @@ export declare interface SuggestionItem {
|
|
|
2490
2533
|
template?: string;
|
|
2491
2534
|
}
|
|
2492
2535
|
|
|
2493
|
-
declare
|
|
2494
|
-
id: string;
|
|
2495
|
-
text: string;
|
|
2496
|
-
}
|
|
2536
|
+
declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2497
2537
|
|
|
2498
2538
|
export declare type SuggestionPillAction = {
|
|
2499
2539
|
type: 'popover';
|
|
@@ -2511,7 +2551,7 @@ export declare type SuggestionPillBaseItem<T> = {
|
|
|
2511
2551
|
action?: SuggestionPillAction;
|
|
2512
2552
|
} & T;
|
|
2513
2553
|
|
|
2514
|
-
declare const SuggestionPillButton: typeof
|
|
2554
|
+
declare const SuggestionPillButton: typeof _default_28 & {
|
|
2515
2555
|
install: typeof installPillButton;
|
|
2516
2556
|
};
|
|
2517
2557
|
export { SuggestionPillButton }
|
|
@@ -2536,6 +2576,7 @@ export declare type SuggestionPillItem<T = Record<string, unknown>> = Suggestion
|
|
|
2536
2576
|
|
|
2537
2577
|
export declare interface SuggestionPillsEmits {
|
|
2538
2578
|
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2579
|
+
(e: 'click-outside', event: MouseEvent): void;
|
|
2539
2580
|
}
|
|
2540
2581
|
|
|
2541
2582
|
export declare interface SuggestionPillsProps {
|
|
@@ -2544,6 +2585,13 @@ export declare interface SuggestionPillsProps {
|
|
|
2544
2585
|
* model:showAll
|
|
2545
2586
|
*/
|
|
2546
2587
|
showAll?: boolean;
|
|
2588
|
+
/**
|
|
2589
|
+
* 显示更多按钮的时机
|
|
2590
|
+
* - hover: 鼠标悬停时显示
|
|
2591
|
+
* - always: 总是显示
|
|
2592
|
+
* @default 'hover'
|
|
2593
|
+
*/
|
|
2594
|
+
showAllButtonOn?: 'hover' | 'always';
|
|
2547
2595
|
}
|
|
2548
2596
|
|
|
2549
2597
|
/**
|
|
@@ -2559,8 +2607,8 @@ declare interface SuggestionPopoverEvents {
|
|
|
2559
2607
|
close?: () => void;
|
|
2560
2608
|
}
|
|
2561
2609
|
|
|
2562
|
-
declare interface SuggestionPopoverProps {
|
|
2563
|
-
data: SuggestionData
|
|
2610
|
+
declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
2611
|
+
data: SuggestionData<T>;
|
|
2564
2612
|
title?: string;
|
|
2565
2613
|
icon?: VNode | Component;
|
|
2566
2614
|
/**
|
|
@@ -2691,21 +2739,12 @@ export declare interface TriggerContext {
|
|
|
2691
2739
|
position: number;
|
|
2692
2740
|
}
|
|
2693
2741
|
|
|
2694
|
-
declare function triggerFileSelect(): void;
|
|
2695
|
-
|
|
2696
2742
|
/** 触发处理函数类型 */
|
|
2697
2743
|
export declare type TriggerHandler = (info: TriggerInfo) => void;
|
|
2698
2744
|
|
|
2699
2745
|
/** 触发信息类型 */
|
|
2700
2746
|
export declare type TriggerInfo = TriggerContext | false;
|
|
2701
2747
|
|
|
2702
|
-
export declare interface UploadFile {
|
|
2703
|
-
uid: string;
|
|
2704
|
-
name: string;
|
|
2705
|
-
status?: string;
|
|
2706
|
-
rawFile?: File;
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
2748
|
export declare interface WelcomeProps {
|
|
2710
2749
|
title: string;
|
|
2711
2750
|
description: string;
|