@opentiny/tiny-robot 0.3.0-alpha.0 → 0.3.0-alpha.1
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 +2003 -1230
- 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 +313 -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,49 @@ 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
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
1836
|
+
items: ChainItem[];
|
|
1837
|
+
html?: boolean;
|
|
1838
|
+
contentClass?: string;
|
|
1839
|
+
}> & Readonly<{}>, {
|
|
1840
|
+
html: boolean;
|
|
1841
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1842
|
+
|
|
1843
|
+
export declare interface BubbleCommonProps {
|
|
1844
|
+
/**
|
|
1845
|
+
* 气泡对齐位置
|
|
1846
|
+
*/
|
|
1847
|
+
placement?: 'start' | 'end';
|
|
1848
|
+
/**
|
|
1849
|
+
* 气泡头像
|
|
1850
|
+
*/
|
|
1851
|
+
avatar?: VNode;
|
|
1852
|
+
/**
|
|
1853
|
+
* 气泡形状,默认 'corner'
|
|
1854
|
+
*/
|
|
1855
|
+
shape?: 'rounded' | 'corner';
|
|
1856
|
+
/**
|
|
1857
|
+
* 气泡内容渲染器。
|
|
1858
|
+
* 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
|
|
1859
|
+
*/
|
|
1860
|
+
contentRenderer?: BubbleMessageRenderer;
|
|
1861
|
+
hidden?: boolean;
|
|
1862
|
+
maxWidth?: string | number;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1790
1865
|
declare const bubbleInstall: (app: App) => void;
|
|
1791
1866
|
|
|
1792
|
-
declare const BubbleList: typeof
|
|
1867
|
+
declare const BubbleList: typeof _default_15 & {
|
|
1793
1868
|
install: typeof bubbleListInstall;
|
|
1794
1869
|
};
|
|
1795
1870
|
export { BubbleList }
|
|
@@ -1805,37 +1880,71 @@ export declare interface BubbleListProps {
|
|
|
1805
1880
|
* 每个角色的默认配置项
|
|
1806
1881
|
*/
|
|
1807
1882
|
roles?: Record<string, BubbleRoleConfig>;
|
|
1883
|
+
/**
|
|
1884
|
+
* 列表是否加载中
|
|
1885
|
+
*/
|
|
1886
|
+
loading?: boolean;
|
|
1887
|
+
/**
|
|
1888
|
+
* 指定哪个角色可以有加载中状态
|
|
1889
|
+
*/
|
|
1890
|
+
loadingRole?: string;
|
|
1808
1891
|
autoScroll?: boolean;
|
|
1809
1892
|
}
|
|
1810
1893
|
|
|
1811
|
-
export declare
|
|
1894
|
+
export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
|
|
1895
|
+
readonly mdConfig: Options;
|
|
1896
|
+
readonly dompurifyConfig: Config & {
|
|
1897
|
+
disable?: boolean;
|
|
1898
|
+
};
|
|
1899
|
+
readonly md: default_2;
|
|
1900
|
+
constructor(mdConfig?: Options, dompurifyConfig?: Config & {
|
|
1901
|
+
disable?: boolean;
|
|
1902
|
+
});
|
|
1903
|
+
render(options: {
|
|
1904
|
+
content?: string;
|
|
1905
|
+
}): VNode<RendererNode, RendererElement, {
|
|
1906
|
+
[key: string]: any;
|
|
1907
|
+
}>;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
export declare abstract class BubbleMessageClassRenderer {
|
|
1911
|
+
abstract render(options: {
|
|
1912
|
+
[key: string]: any;
|
|
1913
|
+
}): VNode;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
export declare type BubbleMessageFunctionRenderer = (options: {
|
|
1917
|
+
[key: string]: any;
|
|
1918
|
+
}) => VNode;
|
|
1812
1919
|
|
|
1813
|
-
export declare interface
|
|
1920
|
+
export declare interface BubbleMessageProps {
|
|
1921
|
+
type: string;
|
|
1922
|
+
[key: string]: any;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component;
|
|
1926
|
+
|
|
1927
|
+
export declare interface BubbleProps extends BubbleCommonProps {
|
|
1814
1928
|
/**
|
|
1815
1929
|
* 气泡内容
|
|
1816
1930
|
*/
|
|
1817
1931
|
content?: string;
|
|
1932
|
+
messages?: BubbleMessageProps[];
|
|
1818
1933
|
id?: string | number | symbol;
|
|
1819
|
-
/**
|
|
1820
|
-
* 气泡位置
|
|
1821
|
-
*/
|
|
1822
|
-
placement?: BubblePalcement;
|
|
1823
|
-
avatar?: VNode;
|
|
1824
1934
|
role?: string;
|
|
1825
|
-
/**
|
|
1826
|
-
* 内容类型
|
|
1827
|
-
*/
|
|
1828
|
-
type?: 'text' | 'markdown';
|
|
1829
1935
|
loading?: boolean;
|
|
1830
1936
|
aborted?: boolean;
|
|
1831
|
-
/**
|
|
1832
|
-
* type 为 'markdown' 时,markdown 的配置项
|
|
1833
|
-
*/
|
|
1834
|
-
mdConfig?: Options;
|
|
1835
|
-
maxWidth?: string | number;
|
|
1836
1937
|
}
|
|
1837
1938
|
|
|
1838
|
-
|
|
1939
|
+
declare const BubbleProvider: typeof _default_16 & {
|
|
1940
|
+
install: typeof bubbleProviderInstall;
|
|
1941
|
+
};
|
|
1942
|
+
export { BubbleProvider }
|
|
1943
|
+
export { BubbleProvider as TrBubbleProvider }
|
|
1944
|
+
|
|
1945
|
+
declare const bubbleProviderInstall: (app: App) => void;
|
|
1946
|
+
|
|
1947
|
+
export declare type BubbleRoleConfig = BubbleCommonProps & {
|
|
1839
1948
|
slots?: BubbleSlots;
|
|
1840
1949
|
};
|
|
1841
1950
|
|
|
@@ -1898,203 +2007,124 @@ export default _default;
|
|
|
1898
2007
|
declare const _default_10: typeof _default_26 & {
|
|
1899
2008
|
install: typeof install_8;
|
|
1900
2009
|
};
|
|
1901
|
-
export { _default_10 as
|
|
1902
|
-
export { _default_10 as
|
|
2010
|
+
export { _default_10 as Suggestion }
|
|
2011
|
+
export { _default_10 as TrSuggestion }
|
|
1903
2012
|
|
|
1904
2013
|
declare const _default_11: typeof _default_27 & {
|
|
1905
2014
|
install: typeof install_9;
|
|
1906
2015
|
};
|
|
1907
|
-
export { _default_11 as
|
|
1908
|
-
export { _default_11 as
|
|
2016
|
+
export { _default_11 as SuggestionPills }
|
|
2017
|
+
export { _default_11 as TrSuggestionPills }
|
|
1909
2018
|
|
|
1910
|
-
declare const _default_12: typeof
|
|
2019
|
+
declare const _default_12: typeof _default_29 & {
|
|
1911
2020
|
install: typeof install_10;
|
|
1912
2021
|
};
|
|
1913
|
-
export { _default_12 as
|
|
1914
|
-
export { _default_12 as
|
|
2022
|
+
export { _default_12 as Question }
|
|
2023
|
+
export { _default_12 as TrQuestion }
|
|
1915
2024
|
|
|
1916
2025
|
declare const _default_13: typeof _default_30 & {
|
|
1917
2026
|
install: typeof install_11;
|
|
1918
2027
|
};
|
|
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>;
|
|
2028
|
+
export { _default_13 as SuggestionPopover }
|
|
2029
|
+
export { _default_13 as TrSuggestionPopover }
|
|
1991
2030
|
|
|
1992
|
-
declare const
|
|
2031
|
+
declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1993
2032
|
|
|
1994
|
-
declare const
|
|
2033
|
+
declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1995
2034
|
scrollContainerRef: HTMLDivElement;
|
|
1996
2035
|
}, HTMLDivElement>;
|
|
1997
2036
|
|
|
1998
|
-
declare const
|
|
2037
|
+
declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2038
|
+
|
|
2039
|
+
declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1999
2040
|
|
|
2000
|
-
declare const
|
|
2041
|
+
declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2001
2042
|
|
|
2002
|
-
declare const
|
|
2043
|
+
declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2044
|
+
|
|
2045
|
+
declare const _default_2: typeof _default_17 & {
|
|
2003
2046
|
install: typeof install;
|
|
2004
2047
|
};
|
|
2005
|
-
export { _default_2 as
|
|
2006
|
-
export { _default_2 as
|
|
2007
|
-
|
|
2008
|
-
declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2048
|
+
export { _default_2 as Container }
|
|
2049
|
+
export { _default_2 as TrContainer }
|
|
2009
2050
|
|
|
2010
|
-
declare const
|
|
2011
|
-
action: (name: string) => any;
|
|
2051
|
+
declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2012
2052
|
operation: (name: string) => any;
|
|
2053
|
+
action: (name: string) => any;
|
|
2013
2054
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
2014
|
-
onAction?: ((name: string) => any) | undefined;
|
|
2015
2055
|
onOperation?: ((name: string) => any) | undefined;
|
|
2056
|
+
onAction?: ((name: string) => any) | undefined;
|
|
2016
2057
|
}>, {
|
|
2017
2058
|
operationsLimit: number;
|
|
2018
2059
|
actionsLimit: number;
|
|
2019
2060
|
sourcesLinesLimit: number;
|
|
2020
2061
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2021
2062
|
|
|
2022
|
-
declare const
|
|
2063
|
+
declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2023
2064
|
size: string | number;
|
|
2024
2065
|
svgSize: string | number;
|
|
2025
2066
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2026
2067
|
|
|
2027
|
-
declare const
|
|
2068
|
+
declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2069
|
+
|
|
2070
|
+
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2028
2071
|
|
|
2029
|
-
declare const _default_24:
|
|
2072
|
+
declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2030
2073
|
|
|
2031
|
-
declare const _default_25:
|
|
2074
|
+
declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2032
2075
|
|
|
2033
|
-
declare const _default_26:
|
|
2076
|
+
declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2034
2077
|
|
|
2035
|
-
declare const _default_27:
|
|
2078
|
+
declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2036
2079
|
|
|
2037
|
-
declare const _default_28:
|
|
2080
|
+
declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2038
2081
|
|
|
2039
|
-
declare const _default_29:
|
|
2082
|
+
declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2040
2083
|
|
|
2041
2084
|
declare const _default_3: typeof _default_18 & {
|
|
2042
2085
|
install: typeof install_2;
|
|
2043
2086
|
};
|
|
2044
|
-
export { _default_3 as
|
|
2045
|
-
export { _default_3 as
|
|
2087
|
+
export { _default_3 as Conversations }
|
|
2088
|
+
export { _default_3 as TrConversations }
|
|
2046
2089
|
|
|
2047
|
-
declare const _default_30:
|
|
2048
|
-
|
|
2049
|
-
declare const _default_31: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2090
|
+
declare const _default_30: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2050
2091
|
|
|
2051
2092
|
declare const _default_4: typeof _default_19 & {
|
|
2052
2093
|
install: typeof install_3;
|
|
2053
2094
|
};
|
|
2054
|
-
export { _default_4 as
|
|
2055
|
-
export { _default_4 as
|
|
2095
|
+
export { _default_4 as DropdownMenu }
|
|
2096
|
+
export { _default_4 as TrDropdownMenu }
|
|
2056
2097
|
|
|
2057
2098
|
declare const _default_5: typeof _default_20 & {
|
|
2058
2099
|
install: typeof install_4;
|
|
2059
2100
|
};
|
|
2060
|
-
export { _default_5 as
|
|
2061
|
-
export { _default_5 as
|
|
2101
|
+
export { _default_5 as Feedback }
|
|
2102
|
+
export { _default_5 as TrFeedback }
|
|
2062
2103
|
|
|
2063
|
-
declare const _default_6:
|
|
2064
|
-
install: typeof install_5;
|
|
2065
|
-
};
|
|
2066
|
-
export { _default_6 as Feedback }
|
|
2067
|
-
export { _default_6 as TrFeedback }
|
|
2068
|
-
|
|
2069
|
-
declare const _default_7: {
|
|
2104
|
+
declare const _default_6: {
|
|
2070
2105
|
install: <T>(app: App<T>) => void;
|
|
2071
2106
|
name: string;
|
|
2072
2107
|
};
|
|
2073
|
-
export {
|
|
2074
|
-
export {
|
|
2108
|
+
export { _default_6 as History }
|
|
2109
|
+
export { _default_6 as TrHistory }
|
|
2110
|
+
|
|
2111
|
+
declare const _default_7: typeof _default_21 & {
|
|
2112
|
+
install: typeof install_5;
|
|
2113
|
+
};
|
|
2114
|
+
export { _default_7 as IconButton }
|
|
2115
|
+
export { _default_7 as TrIconButton }
|
|
2075
2116
|
|
|
2076
|
-
declare const _default_8: typeof
|
|
2117
|
+
declare const _default_8: typeof _default_24 & {
|
|
2077
2118
|
install: typeof install_6;
|
|
2078
2119
|
};
|
|
2079
|
-
export { _default_8 as
|
|
2080
|
-
export { _default_8 as
|
|
2120
|
+
export { _default_8 as Sender }
|
|
2121
|
+
export { _default_8 as TrSender }
|
|
2081
2122
|
|
|
2082
2123
|
declare const _default_9: typeof _default_25 & {
|
|
2083
2124
|
install: typeof install_7;
|
|
2084
2125
|
};
|
|
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
|
-
}
|
|
2126
|
+
export { _default_9 as TrWelcome }
|
|
2127
|
+
export { _default_9 as Welcome }
|
|
2098
2128
|
|
|
2099
2129
|
export declare interface DropdownMenuEmits {
|
|
2100
2130
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
@@ -2145,10 +2175,6 @@ export declare interface FeedbackProps {
|
|
|
2145
2175
|
sourcesLinesLimit?: number;
|
|
2146
2176
|
}
|
|
2147
2177
|
|
|
2148
|
-
export declare type FileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
2149
|
-
|
|
2150
|
-
declare function handleDrop(files: File[]): void;
|
|
2151
|
-
|
|
2152
2178
|
export declare type HistoryData = HistoryItem[] | HistoryGroup[];
|
|
2153
2179
|
|
|
2154
2180
|
export declare interface HistoryEvents {
|
|
@@ -2199,8 +2225,6 @@ declare const install_10: <T>(app: App<T>) => void;
|
|
|
2199
2225
|
|
|
2200
2226
|
declare const install_11: <T>(app: App<T>) => void;
|
|
2201
2227
|
|
|
2202
|
-
declare const install_12: <T>(app: App<T>) => void;
|
|
2203
|
-
|
|
2204
2228
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2205
2229
|
|
|
2206
2230
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2236,7 +2260,7 @@ export declare type MultiTabHistoryProps = {
|
|
|
2236
2260
|
data: Record<string, HistoryData>;
|
|
2237
2261
|
} & BaseHistoryProps;
|
|
2238
2262
|
|
|
2239
|
-
declare const Prompt: typeof
|
|
2263
|
+
declare const Prompt: typeof _default_22 & {
|
|
2240
2264
|
install: typeof installPrompt;
|
|
2241
2265
|
};
|
|
2242
2266
|
export { Prompt }
|
|
@@ -2269,7 +2293,7 @@ export declare interface PromptProps {
|
|
|
2269
2293
|
badge?: string | VNode;
|
|
2270
2294
|
}
|
|
2271
2295
|
|
|
2272
|
-
declare const Prompts: typeof
|
|
2296
|
+
declare const Prompts: typeof _default_23 & {
|
|
2273
2297
|
install: typeof installPrompts;
|
|
2274
2298
|
};
|
|
2275
2299
|
export { Prompts }
|
|
@@ -2367,8 +2391,6 @@ export declare type SenderEmits = {
|
|
|
2367
2391
|
(e: 'escape-press'): void;
|
|
2368
2392
|
(e: 'cancel'): void;
|
|
2369
2393
|
(e: 'reset-template'): void;
|
|
2370
|
-
(e: 'upload-online'): void;
|
|
2371
|
-
(e: 'files-selected', files: FileList | null): void;
|
|
2372
2394
|
};
|
|
2373
2395
|
|
|
2374
2396
|
export declare interface SenderProps {
|
|
@@ -2376,7 +2398,6 @@ export declare interface SenderProps {
|
|
|
2376
2398
|
autoSize?: AutoSize;
|
|
2377
2399
|
allowSpeech?: boolean;
|
|
2378
2400
|
allowFiles?: boolean;
|
|
2379
|
-
uploadTooltip?: string;
|
|
2380
2401
|
clearable?: boolean;
|
|
2381
2402
|
disabled?: boolean;
|
|
2382
2403
|
defaultValue?: string | null;
|
|
@@ -2389,6 +2410,7 @@ export declare interface SenderProps {
|
|
|
2389
2410
|
placeholder?: string;
|
|
2390
2411
|
showWordLimit?: boolean;
|
|
2391
2412
|
suggestions?: string[];
|
|
2413
|
+
suggestionPopupWidth?: string | number;
|
|
2392
2414
|
theme?: ThemeType;
|
|
2393
2415
|
template?: string;
|
|
2394
2416
|
hasContent?: boolean;
|
|
@@ -2439,7 +2461,12 @@ export declare interface SpeechState {
|
|
|
2439
2461
|
|
|
2440
2462
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
2441
2463
|
|
|
2442
|
-
declare
|
|
2464
|
+
declare interface SuggestionBaseItem {
|
|
2465
|
+
id: string;
|
|
2466
|
+
text: string;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
|
|
2443
2470
|
|
|
2444
2471
|
/**
|
|
2445
2472
|
* 组件事件
|
|
@@ -2463,11 +2490,11 @@ export declare interface SuggestionEmits {
|
|
|
2463
2490
|
(e: 'fill-template', template: string): void;
|
|
2464
2491
|
}
|
|
2465
2492
|
|
|
2466
|
-
declare interface SuggestionGroup {
|
|
2493
|
+
declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
2467
2494
|
group: string;
|
|
2468
2495
|
label: string;
|
|
2469
2496
|
icon?: VNode | Component;
|
|
2470
|
-
items: SuggestionItem_2[];
|
|
2497
|
+
items: SuggestionItem_2<T>[];
|
|
2471
2498
|
}
|
|
2472
2499
|
|
|
2473
2500
|
/**
|
|
@@ -2490,10 +2517,7 @@ export declare interface SuggestionItem {
|
|
|
2490
2517
|
template?: string;
|
|
2491
2518
|
}
|
|
2492
2519
|
|
|
2493
|
-
declare
|
|
2494
|
-
id: string;
|
|
2495
|
-
text: string;
|
|
2496
|
-
}
|
|
2520
|
+
declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2497
2521
|
|
|
2498
2522
|
export declare type SuggestionPillAction = {
|
|
2499
2523
|
type: 'popover';
|
|
@@ -2511,7 +2535,7 @@ export declare type SuggestionPillBaseItem<T> = {
|
|
|
2511
2535
|
action?: SuggestionPillAction;
|
|
2512
2536
|
} & T;
|
|
2513
2537
|
|
|
2514
|
-
declare const SuggestionPillButton: typeof
|
|
2538
|
+
declare const SuggestionPillButton: typeof _default_28 & {
|
|
2515
2539
|
install: typeof installPillButton;
|
|
2516
2540
|
};
|
|
2517
2541
|
export { SuggestionPillButton }
|
|
@@ -2536,6 +2560,7 @@ export declare type SuggestionPillItem<T = Record<string, unknown>> = Suggestion
|
|
|
2536
2560
|
|
|
2537
2561
|
export declare interface SuggestionPillsEmits {
|
|
2538
2562
|
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2563
|
+
(e: 'click-outside', event: MouseEvent): void;
|
|
2539
2564
|
}
|
|
2540
2565
|
|
|
2541
2566
|
export declare interface SuggestionPillsProps {
|
|
@@ -2544,6 +2569,13 @@ export declare interface SuggestionPillsProps {
|
|
|
2544
2569
|
* model:showAll
|
|
2545
2570
|
*/
|
|
2546
2571
|
showAll?: boolean;
|
|
2572
|
+
/**
|
|
2573
|
+
* 显示更多按钮的时机
|
|
2574
|
+
* - hover: 鼠标悬停时显示
|
|
2575
|
+
* - always: 总是显示
|
|
2576
|
+
* @default 'hover'
|
|
2577
|
+
*/
|
|
2578
|
+
showAllButtonOn?: 'hover' | 'always';
|
|
2547
2579
|
}
|
|
2548
2580
|
|
|
2549
2581
|
/**
|
|
@@ -2559,8 +2591,8 @@ declare interface SuggestionPopoverEvents {
|
|
|
2559
2591
|
close?: () => void;
|
|
2560
2592
|
}
|
|
2561
2593
|
|
|
2562
|
-
declare interface SuggestionPopoverProps {
|
|
2563
|
-
data: SuggestionData
|
|
2594
|
+
declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
2595
|
+
data: SuggestionData<T>;
|
|
2564
2596
|
title?: string;
|
|
2565
2597
|
icon?: VNode | Component;
|
|
2566
2598
|
/**
|
|
@@ -2691,21 +2723,12 @@ export declare interface TriggerContext {
|
|
|
2691
2723
|
position: number;
|
|
2692
2724
|
}
|
|
2693
2725
|
|
|
2694
|
-
declare function triggerFileSelect(): void;
|
|
2695
|
-
|
|
2696
2726
|
/** 触发处理函数类型 */
|
|
2697
2727
|
export declare type TriggerHandler = (info: TriggerInfo) => void;
|
|
2698
2728
|
|
|
2699
2729
|
/** 触发信息类型 */
|
|
2700
2730
|
export declare type TriggerInfo = TriggerContext | false;
|
|
2701
2731
|
|
|
2702
|
-
export declare interface UploadFile {
|
|
2703
|
-
uid: string;
|
|
2704
|
-
name: string;
|
|
2705
|
-
status?: string;
|
|
2706
|
-
rawFile?: File;
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
2732
|
export declare interface WelcomeProps {
|
|
2710
2733
|
title: string;
|
|
2711
2734
|
description: string;
|