@opentiny/tiny-robot 0.2.0-alpha.4 → 0.2.0-alpha.6
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 +70 -68
- package/dist/bubble/index.js +18 -17
- package/dist/close.js +1 -1
- package/dist/container/index.js +9 -9
- package/dist/dropdown-menu/index.js +72 -0
- package/dist/feedback/index.js +33 -33
- package/dist/flow-layout-buttons/index.js +123 -0
- package/dist/history/index.js +44 -44
- package/dist/icon-button/index.js +17 -16
- package/dist/index.d.ts +380 -68
- package/dist/index.js +55 -40
- package/dist/index2.js +4588 -341
- package/dist/index3.js +457 -3847
- package/dist/index4.js +1 -1
- package/dist/index5.js +3727 -3069
- package/dist/index6.js +3107 -4493
- package/dist/question/index.js +109 -109
- package/dist/sender/index.js +892 -562
- package/dist/shared/index.js +8 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +76 -76
- package/dist/suggestion-pills/index.js +120 -0
- package/dist/suggestion-popover/index.js +178 -0
- package/dist/tiny-robot-svgs.js +300 -145
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { RendererNode } from 'vue';
|
|
|
29
29
|
import { ShallowUnwrapRef } from 'vue';
|
|
30
30
|
import { Slot } from 'vue';
|
|
31
31
|
import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
|
|
32
|
+
import { SuggestionPillItem as SuggestionPillItem_2 } from './index.type';
|
|
32
33
|
import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
|
|
33
34
|
import { ThemeType as ThemeType_2 } from './index.type';
|
|
34
35
|
import { VNode } from 'vue';
|
|
@@ -44,13 +45,50 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
44
45
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
45
46
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
46
47
|
|
|
47
|
-
declare const
|
|
48
|
+
declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
49
|
+
"update:selectedGroup": (value: string) => any;
|
|
50
|
+
} & {
|
|
51
|
+
"item-click": (item: SuggestionItem_2) => any;
|
|
52
|
+
close: () => any;
|
|
53
|
+
open: () => any;
|
|
54
|
+
"group-click": (group: SuggestionGroup) => any;
|
|
55
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
56
|
+
"onItem-click"?: ((item: SuggestionItem_2) => any) | undefined;
|
|
57
|
+
onClose?: (() => any) | undefined;
|
|
58
|
+
onOpen?: (() => any) | undefined;
|
|
59
|
+
"onGroup-click"?: ((group: SuggestionGroup) => any) | undefined;
|
|
60
|
+
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
title: string;
|
|
63
|
+
topOffset: string | number;
|
|
64
|
+
trigger: "click" | "manual";
|
|
65
|
+
groupShowMoreTrigger: "click" | "hover";
|
|
66
|
+
popoverWidth: string | number;
|
|
67
|
+
popoverHeight: string | number;
|
|
68
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
69
|
+
popoverTriggerRef: HTMLDivElement;
|
|
70
|
+
popoverRef: HTMLDivElement;
|
|
71
|
+
}, HTMLDivElement>;
|
|
72
|
+
|
|
73
|
+
declare const __VLS_component_2: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
74
|
+
"item-click": (item: DropdownMenuItem) => any;
|
|
75
|
+
}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
|
|
76
|
+
"onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
minWidth: string | number;
|
|
79
|
+
topOffset: string | number;
|
|
80
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
81
|
+
dropDownTriggerRef: HTMLDivElement;
|
|
82
|
+
dropdownMenuRef: HTMLDivElement;
|
|
83
|
+
}, HTMLDivElement>;
|
|
84
|
+
|
|
85
|
+
declare const __VLS_component_3: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
48
86
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
49
87
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
50
88
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
51
89
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
52
90
|
|
|
53
|
-
declare const
|
|
91
|
+
declare const __VLS_component_4: DefineComponent<SenderProps, {
|
|
54
92
|
focus: () => void;
|
|
55
93
|
blur: () => void;
|
|
56
94
|
clear: () => void;
|
|
@@ -67,9 +105,9 @@ activateTemplateFirstField: () => void;
|
|
|
67
105
|
}>, {
|
|
68
106
|
loading: boolean;
|
|
69
107
|
template: string;
|
|
108
|
+
mode: InputMode_2;
|
|
70
109
|
disabled: boolean;
|
|
71
110
|
modelValue: string;
|
|
72
|
-
mode: InputMode_2;
|
|
73
111
|
autofocus: boolean;
|
|
74
112
|
clearable: boolean;
|
|
75
113
|
showWordLimit: boolean;
|
|
@@ -78,26 +116,34 @@ hasContent: boolean;
|
|
|
78
116
|
allowSpeech: boolean;
|
|
79
117
|
allowFiles: boolean;
|
|
80
118
|
submitType: SubmitTrigger_2;
|
|
81
|
-
placeholder: string;
|
|
82
119
|
autoSize: AutoSize_2;
|
|
83
120
|
maxLength: number;
|
|
121
|
+
placeholder: string;
|
|
122
|
+
suggestions: string[];
|
|
123
|
+
templateInitialValues: Record<string, string>;
|
|
84
124
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
125
|
+
senderRef: HTMLDivElement;
|
|
85
126
|
inputWrapperRef: HTMLDivElement;
|
|
86
127
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<TemplateEditorProps_2> & Readonly<{
|
|
87
128
|
onInput?: ((value: string) => any) | undefined;
|
|
129
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
130
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
131
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
88
132
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
89
133
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
90
|
-
"onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
|
|
91
134
|
}>, {
|
|
92
135
|
activateFirstField: () => void;
|
|
93
136
|
resetFields: () => void;
|
|
137
|
+
focus: () => void;
|
|
94
138
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
95
139
|
input: (value: string) => any;
|
|
140
|
+
blur: (event: FocusEvent) => any;
|
|
141
|
+
focus: (event: FocusEvent) => any;
|
|
142
|
+
submit: (value: string) => any;
|
|
96
143
|
"update:value": (value: string) => any;
|
|
97
144
|
"content-status": (hasContent: boolean) => any;
|
|
98
|
-
"field-active": (isActive: boolean, index: number) => any;
|
|
99
145
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
100
|
-
|
|
146
|
+
contentEditableRef: HTMLDivElement;
|
|
101
147
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
102
148
|
P: {};
|
|
103
149
|
B: {};
|
|
@@ -107,12 +153,15 @@ M: {};
|
|
|
107
153
|
Defaults: {};
|
|
108
154
|
}, Readonly<TemplateEditorProps_2> & Readonly<{
|
|
109
155
|
onInput?: ((value: string) => any) | undefined;
|
|
156
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
157
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
158
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
110
159
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
111
160
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
112
|
-
"onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
|
|
113
161
|
}>, {
|
|
114
162
|
activateFirstField: () => void;
|
|
115
163
|
resetFields: () => void;
|
|
164
|
+
focus: () => void;
|
|
116
165
|
}, {}, {}, {}, {}> | null;
|
|
117
166
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
118
167
|
_constants: {
|
|
@@ -563,13 +612,14 @@ showTooltip: boolean;
|
|
|
563
612
|
inputBoxType: string;
|
|
564
613
|
}> | null;
|
|
565
614
|
buttonsContainerRef: HTMLDivElement;
|
|
615
|
+
suggestionsListRef: HTMLDivElement;
|
|
566
616
|
}, HTMLDivElement>;
|
|
567
617
|
|
|
568
|
-
declare const
|
|
618
|
+
declare const __VLS_component_5: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
569
619
|
align: "left" | "center" | "right" | string;
|
|
570
620
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
571
621
|
|
|
572
|
-
declare const
|
|
622
|
+
declare const __VLS_component_6: DefineComponent<SuggestionProps, {
|
|
573
623
|
trigger: TriggerHandler;
|
|
574
624
|
keyDown: (e: KeyboardEvent) => void;
|
|
575
625
|
input: (event: Event, text: string) => boolean;
|
|
@@ -742,7 +792,17 @@ empty?(_: {}): any;
|
|
|
742
792
|
}) | null;
|
|
743
793
|
}, HTMLDivElement>;
|
|
744
794
|
|
|
745
|
-
declare const
|
|
795
|
+
declare const __VLS_component_7: DefineComponent<SuggestionPillsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
796
|
+
"item-click": (item: SuggestionPillItem_2<Record<string, unknown>>) => any;
|
|
797
|
+
}, string, PublicProps, Readonly<SuggestionPillsProps> & Readonly<{
|
|
798
|
+
"onItem-click"?: ((item: SuggestionPillItem_2<Record<string, unknown>>) => any) | undefined;
|
|
799
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
800
|
+
containerRef: HTMLDivElement;
|
|
801
|
+
}, HTMLDivElement>;
|
|
802
|
+
|
|
803
|
+
declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
804
|
+
|
|
805
|
+
declare const __VLS_component_9: DefineComponent<QuestionProps, {
|
|
746
806
|
openModal: () => void;
|
|
747
807
|
closeModal: () => void;
|
|
748
808
|
toggleFloating: () => void;
|
|
@@ -764,11 +824,17 @@ initialExpanded: boolean;
|
|
|
764
824
|
theme: ThemeType_2;
|
|
765
825
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
766
826
|
|
|
827
|
+
declare type __VLS_Props = SuggestionPopoverProps;
|
|
828
|
+
|
|
767
829
|
declare type __VLS_PublicProps = {
|
|
768
830
|
'show': ContainerProps['show'];
|
|
769
831
|
'fullscreen'?: ContainerProps['fullscreen'];
|
|
770
832
|
};
|
|
771
833
|
|
|
834
|
+
declare type __VLS_PublicProps_2 = {
|
|
835
|
+
'selectedGroup'?: string;
|
|
836
|
+
} & __VLS_Props;
|
|
837
|
+
|
|
772
838
|
declare function __VLS_template(): {
|
|
773
839
|
attrs: Partial<{}>;
|
|
774
840
|
slots: Readonly<ContainerSlots> & ContainerSlots;
|
|
@@ -776,14 +842,34 @@ declare function __VLS_template(): {
|
|
|
776
842
|
rootEl: HTMLDivElement;
|
|
777
843
|
};
|
|
778
844
|
|
|
845
|
+
declare function __VLS_template_10(): {
|
|
846
|
+
attrs: Partial<{}>;
|
|
847
|
+
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
848
|
+
refs: {
|
|
849
|
+
popoverTriggerRef: HTMLDivElement;
|
|
850
|
+
popoverRef: HTMLDivElement;
|
|
851
|
+
};
|
|
852
|
+
rootEl: HTMLDivElement;
|
|
853
|
+
};
|
|
854
|
+
|
|
779
855
|
declare function __VLS_template_2(): {
|
|
856
|
+
attrs: Partial<{}>;
|
|
857
|
+
slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
|
|
858
|
+
refs: {
|
|
859
|
+
dropDownTriggerRef: HTMLDivElement;
|
|
860
|
+
dropdownMenuRef: HTMLDivElement;
|
|
861
|
+
};
|
|
862
|
+
rootEl: HTMLDivElement;
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
declare function __VLS_template_3(): {
|
|
780
866
|
attrs: Partial<{}>;
|
|
781
867
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
782
868
|
refs: {};
|
|
783
869
|
rootEl: HTMLDivElement;
|
|
784
870
|
};
|
|
785
871
|
|
|
786
|
-
declare function
|
|
872
|
+
declare function __VLS_template_4(): {
|
|
787
873
|
attrs: Partial<{}>;
|
|
788
874
|
slots: {
|
|
789
875
|
header?(_: {}): any;
|
|
@@ -795,22 +881,28 @@ declare function __VLS_template_3(): {
|
|
|
795
881
|
footer?(_: {}): any;
|
|
796
882
|
};
|
|
797
883
|
refs: {
|
|
884
|
+
senderRef: HTMLDivElement;
|
|
798
885
|
inputWrapperRef: HTMLDivElement;
|
|
799
886
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<TemplateEditorProps_2> & Readonly<{
|
|
800
887
|
onInput?: ((value: string) => any) | undefined;
|
|
888
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
889
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
890
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
801
891
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
802
892
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
803
|
-
"onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
|
|
804
893
|
}>, {
|
|
805
894
|
activateFirstField: () => void;
|
|
806
895
|
resetFields: () => void;
|
|
896
|
+
focus: () => void;
|
|
807
897
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
808
898
|
input: (value: string) => any;
|
|
899
|
+
blur: (event: FocusEvent) => any;
|
|
900
|
+
focus: (event: FocusEvent) => any;
|
|
901
|
+
submit: (value: string) => any;
|
|
809
902
|
"update:value": (value: string) => any;
|
|
810
903
|
"content-status": (hasContent: boolean) => any;
|
|
811
|
-
"field-active": (isActive: boolean, index: number) => any;
|
|
812
904
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
813
|
-
|
|
905
|
+
contentEditableRef: HTMLDivElement;
|
|
814
906
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
815
907
|
P: {};
|
|
816
908
|
B: {};
|
|
@@ -820,12 +912,15 @@ declare function __VLS_template_3(): {
|
|
|
820
912
|
Defaults: {};
|
|
821
913
|
}, Readonly<TemplateEditorProps_2> & Readonly<{
|
|
822
914
|
onInput?: ((value: string) => any) | undefined;
|
|
915
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
916
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
917
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
823
918
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
824
919
|
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
825
|
-
"onField-active"?: ((isActive: boolean, index: number) => any) | undefined;
|
|
826
920
|
}>, {
|
|
827
921
|
activateFirstField: () => void;
|
|
828
922
|
resetFields: () => void;
|
|
923
|
+
focus: () => void;
|
|
829
924
|
}, {}, {}, {}, {}> | null;
|
|
830
925
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
831
926
|
_constants: {
|
|
@@ -1276,18 +1371,19 @@ declare function __VLS_template_3(): {
|
|
|
1276
1371
|
inputBoxType: string;
|
|
1277
1372
|
}> | null;
|
|
1278
1373
|
buttonsContainerRef: HTMLDivElement;
|
|
1374
|
+
suggestionsListRef: HTMLDivElement;
|
|
1279
1375
|
};
|
|
1280
1376
|
rootEl: HTMLDivElement;
|
|
1281
1377
|
};
|
|
1282
1378
|
|
|
1283
|
-
declare function
|
|
1379
|
+
declare function __VLS_template_5(): {
|
|
1284
1380
|
attrs: Partial<{}>;
|
|
1285
1381
|
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1286
1382
|
refs: {};
|
|
1287
1383
|
rootEl: HTMLDivElement;
|
|
1288
1384
|
};
|
|
1289
1385
|
|
|
1290
|
-
declare function
|
|
1386
|
+
declare function __VLS_template_6(): {
|
|
1291
1387
|
attrs: Partial<{}>;
|
|
1292
1388
|
slots: {
|
|
1293
1389
|
'capsule-icon'?(_: {
|
|
@@ -1450,7 +1546,25 @@ declare function __VLS_template_5(): {
|
|
|
1450
1546
|
rootEl: HTMLDivElement;
|
|
1451
1547
|
};
|
|
1452
1548
|
|
|
1453
|
-
declare function
|
|
1549
|
+
declare function __VLS_template_7(): {
|
|
1550
|
+
attrs: Partial<{}>;
|
|
1551
|
+
slots: {
|
|
1552
|
+
default?(_: {}): any;
|
|
1553
|
+
};
|
|
1554
|
+
refs: {
|
|
1555
|
+
containerRef: HTMLDivElement;
|
|
1556
|
+
};
|
|
1557
|
+
rootEl: HTMLDivElement;
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
declare function __VLS_template_8(): {
|
|
1561
|
+
attrs: Partial<{}>;
|
|
1562
|
+
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1563
|
+
refs: {};
|
|
1564
|
+
rootEl: HTMLButtonElement;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
declare function __VLS_template_9(): {
|
|
1454
1568
|
attrs: Partial<{}>;
|
|
1455
1569
|
slots: {
|
|
1456
1570
|
'category-label'?(_: {
|
|
@@ -1469,6 +1583,8 @@ declare function __VLS_template_6(): {
|
|
|
1469
1583
|
|
|
1470
1584
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1471
1585
|
|
|
1586
|
+
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
1587
|
+
|
|
1472
1588
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1473
1589
|
|
|
1474
1590
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1479,12 +1595,24 @@ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
|
1479
1595
|
|
|
1480
1596
|
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
1481
1597
|
|
|
1598
|
+
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
1599
|
+
|
|
1600
|
+
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
1601
|
+
|
|
1602
|
+
declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
|
|
1603
|
+
|
|
1482
1604
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
1483
1605
|
new (): {
|
|
1484
1606
|
$slots: S;
|
|
1485
1607
|
};
|
|
1486
1608
|
};
|
|
1487
1609
|
|
|
1610
|
+
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
1611
|
+
new (): {
|
|
1612
|
+
$slots: S;
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1488
1616
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1489
1617
|
new (): {
|
|
1490
1618
|
$slots: S;
|
|
@@ -1515,6 +1643,24 @@ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
|
1515
1643
|
};
|
|
1516
1644
|
};
|
|
1517
1645
|
|
|
1646
|
+
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
1647
|
+
new (): {
|
|
1648
|
+
$slots: S;
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1652
|
+
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
1653
|
+
new (): {
|
|
1654
|
+
$slots: S;
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
1659
|
+
new (): {
|
|
1660
|
+
$slots: S;
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1518
1664
|
export declare interface ActionButtonsProps {
|
|
1519
1665
|
loading?: boolean;
|
|
1520
1666
|
disabled?: boolean;
|
|
@@ -1553,7 +1699,7 @@ export { Bubble as TrBubble }
|
|
|
1553
1699
|
|
|
1554
1700
|
declare const bubbleInstall: (app: App) => void;
|
|
1555
1701
|
|
|
1556
|
-
declare const BubbleList: typeof
|
|
1702
|
+
declare const BubbleList: typeof _default_14 & {
|
|
1557
1703
|
install: typeof bubbleListInstall;
|
|
1558
1704
|
};
|
|
1559
1705
|
export { BubbleList }
|
|
@@ -1659,21 +1805,41 @@ declare const _default: {
|
|
|
1659
1805
|
};
|
|
1660
1806
|
export default _default;
|
|
1661
1807
|
|
|
1662
|
-
declare const _default_10: typeof
|
|
1808
|
+
declare const _default_10: typeof _default_24 & {
|
|
1663
1809
|
install: typeof install_8;
|
|
1664
1810
|
};
|
|
1665
|
-
export { _default_10 as
|
|
1666
|
-
export { _default_10 as
|
|
1811
|
+
export { _default_10 as Suggestion }
|
|
1812
|
+
export { _default_10 as TrSuggestion }
|
|
1813
|
+
|
|
1814
|
+
declare const _default_11: typeof _default_25 & {
|
|
1815
|
+
install: typeof install_9;
|
|
1816
|
+
};
|
|
1817
|
+
export { _default_11 as SuggestionPills }
|
|
1818
|
+
export { _default_11 as TrSuggestionPills }
|
|
1819
|
+
|
|
1820
|
+
declare const _default_12: typeof _default_27 & {
|
|
1821
|
+
install: typeof install_10;
|
|
1822
|
+
};
|
|
1823
|
+
export { _default_12 as Question }
|
|
1824
|
+
export { _default_12 as TrQuestion }
|
|
1667
1825
|
|
|
1668
|
-
declare const
|
|
1669
|
-
|
|
1826
|
+
declare const _default_13: typeof _default_28 & {
|
|
1827
|
+
install: typeof install_11;
|
|
1828
|
+
};
|
|
1829
|
+
export { _default_13 as SuggestionPopover }
|
|
1830
|
+
export { _default_13 as TrSuggestionPopover }
|
|
1831
|
+
|
|
1832
|
+
declare const _default_14: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1833
|
+
scrollContainerRef: HTMLDivElement;
|
|
1670
1834
|
}, HTMLDivElement>;
|
|
1671
1835
|
|
|
1672
|
-
declare const
|
|
1836
|
+
declare const _default_15: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1837
|
+
|
|
1838
|
+
declare const _default_16: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1673
1839
|
|
|
1674
|
-
declare const
|
|
1840
|
+
declare const _default_17: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
1675
1841
|
|
|
1676
|
-
declare const
|
|
1842
|
+
declare const _default_18: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1677
1843
|
operation: (name: string) => any;
|
|
1678
1844
|
action: (name: string) => any;
|
|
1679
1845
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
@@ -1685,71 +1851,100 @@ actionsLimit: number;
|
|
|
1685
1851
|
sourcesLinesLimit: number;
|
|
1686
1852
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1687
1853
|
|
|
1688
|
-
declare const
|
|
1854
|
+
declare const _default_19: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
1689
1855
|
size: string | number;
|
|
1690
1856
|
svgSize: string | number;
|
|
1691
1857
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
1692
1858
|
|
|
1693
|
-
declare const
|
|
1694
|
-
|
|
1695
|
-
declare const _default_17: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
1696
|
-
|
|
1697
|
-
declare const _default_18: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1698
|
-
|
|
1699
|
-
declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
1700
|
-
|
|
1701
|
-
declare const _default_2: typeof _default_12 & {
|
|
1859
|
+
declare const _default_2: typeof _default_15 & {
|
|
1702
1860
|
install: typeof install;
|
|
1703
1861
|
};
|
|
1704
1862
|
export { _default_2 as Container }
|
|
1705
1863
|
export { _default_2 as TrContainer }
|
|
1706
1864
|
|
|
1707
|
-
declare const _default_20:
|
|
1865
|
+
declare const _default_20: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1866
|
+
|
|
1867
|
+
declare const _default_21: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1868
|
+
|
|
1869
|
+
declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
1708
1870
|
|
|
1709
|
-
declare const
|
|
1871
|
+
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
1710
1872
|
|
|
1711
|
-
declare const
|
|
1873
|
+
declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
1874
|
+
|
|
1875
|
+
declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1876
|
+
|
|
1877
|
+
declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
1878
|
+
|
|
1879
|
+
declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
1880
|
+
|
|
1881
|
+
declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
1882
|
+
|
|
1883
|
+
declare const _default_3: typeof _default_16 & {
|
|
1712
1884
|
install: typeof install_2;
|
|
1713
1885
|
};
|
|
1714
1886
|
export { _default_3 as Conversations }
|
|
1715
1887
|
export { _default_3 as TrConversations }
|
|
1716
1888
|
|
|
1717
|
-
declare const _default_4: typeof
|
|
1889
|
+
declare const _default_4: typeof _default_17 & {
|
|
1718
1890
|
install: typeof install_3;
|
|
1719
1891
|
};
|
|
1720
|
-
export { _default_4 as
|
|
1721
|
-
export { _default_4 as
|
|
1892
|
+
export { _default_4 as DropdownMenu }
|
|
1893
|
+
export { _default_4 as TrDropdownMenu }
|
|
1722
1894
|
|
|
1723
|
-
declare const _default_5: {
|
|
1724
|
-
install:
|
|
1725
|
-
name: string;
|
|
1895
|
+
declare const _default_5: typeof _default_18 & {
|
|
1896
|
+
install: typeof install_4;
|
|
1726
1897
|
};
|
|
1727
|
-
export { _default_5 as
|
|
1728
|
-
export { _default_5 as
|
|
1898
|
+
export { _default_5 as Feedback }
|
|
1899
|
+
export { _default_5 as TrFeedback }
|
|
1729
1900
|
|
|
1730
|
-
declare const _default_6:
|
|
1731
|
-
install:
|
|
1901
|
+
declare const _default_6: {
|
|
1902
|
+
install: <T>(app: App<T>) => void;
|
|
1903
|
+
name: string;
|
|
1732
1904
|
};
|
|
1733
|
-
export { _default_6 as
|
|
1734
|
-
export { _default_6 as
|
|
1905
|
+
export { _default_6 as History }
|
|
1906
|
+
export { _default_6 as TrHistory }
|
|
1735
1907
|
|
|
1736
|
-
declare const _default_7: typeof
|
|
1908
|
+
declare const _default_7: typeof _default_19 & {
|
|
1737
1909
|
install: typeof install_5;
|
|
1738
1910
|
};
|
|
1739
|
-
export { _default_7 as
|
|
1740
|
-
export { _default_7 as
|
|
1911
|
+
export { _default_7 as IconButton }
|
|
1912
|
+
export { _default_7 as TrIconButton }
|
|
1741
1913
|
|
|
1742
|
-
declare const _default_8: typeof
|
|
1914
|
+
declare const _default_8: typeof _default_22 & {
|
|
1743
1915
|
install: typeof install_6;
|
|
1744
1916
|
};
|
|
1745
|
-
export { _default_8 as
|
|
1746
|
-
export { _default_8 as
|
|
1917
|
+
export { _default_8 as Sender }
|
|
1918
|
+
export { _default_8 as TrSender }
|
|
1747
1919
|
|
|
1748
|
-
declare const _default_9: typeof
|
|
1920
|
+
declare const _default_9: typeof _default_23 & {
|
|
1749
1921
|
install: typeof install_7;
|
|
1750
1922
|
};
|
|
1751
|
-
export { _default_9 as
|
|
1752
|
-
export { _default_9 as
|
|
1923
|
+
export { _default_9 as TrWelcome }
|
|
1924
|
+
export { _default_9 as Welcome }
|
|
1925
|
+
|
|
1926
|
+
export declare interface DropdownMenuEmits {
|
|
1927
|
+
(e: 'item-click', item: DropdownMenuItem): void;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
export declare interface DropdownMenuEvents {
|
|
1931
|
+
itemClick?: (item: DropdownMenuItem) => void;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
export declare interface DropdownMenuItem {
|
|
1935
|
+
id: string;
|
|
1936
|
+
text: string;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
export declare interface DropdownMenuProps {
|
|
1940
|
+
items: DropdownMenuItem[];
|
|
1941
|
+
minWidth?: string | number;
|
|
1942
|
+
topOffset?: string | number;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
export declare interface DropdownMenuSlots {
|
|
1946
|
+
default?: () => unknown;
|
|
1947
|
+
}
|
|
1753
1948
|
|
|
1754
1949
|
export declare interface FeedbackEvents {
|
|
1755
1950
|
(e: 'operation', name: string): void;
|
|
@@ -1823,6 +2018,10 @@ export declare type InputMode = 'single' | 'multiple';
|
|
|
1823
2018
|
|
|
1824
2019
|
declare const install: <T>(app: App<T>) => void;
|
|
1825
2020
|
|
|
2021
|
+
declare const install_10: <T>(app: App<T>) => void;
|
|
2022
|
+
|
|
2023
|
+
declare const install_11: <T>(app: App<T>) => void;
|
|
2024
|
+
|
|
1826
2025
|
declare const install_2: <T>(app: App<T>) => void;
|
|
1827
2026
|
|
|
1828
2027
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -1837,6 +2036,10 @@ declare const install_7: <T>(app: App<T>) => void;
|
|
|
1837
2036
|
|
|
1838
2037
|
declare const install_8: <T>(app: App<T>) => void;
|
|
1839
2038
|
|
|
2039
|
+
declare const install_9: <T>(app: App<T>) => void;
|
|
2040
|
+
|
|
2041
|
+
declare const installPillButton: <T>(app: App<T>) => void;
|
|
2042
|
+
|
|
1840
2043
|
declare const installPrompt: <T>(app: App<T>) => void;
|
|
1841
2044
|
|
|
1842
2045
|
declare const installPrompts: <T>(app: App<T>) => void;
|
|
@@ -1854,7 +2057,7 @@ export declare type MultiTabHistoryProps = {
|
|
|
1854
2057
|
data: Record<string, HistoryData>;
|
|
1855
2058
|
} & BaseHistoryProps;
|
|
1856
2059
|
|
|
1857
|
-
declare const Prompt: typeof
|
|
2060
|
+
declare const Prompt: typeof _default_20 & {
|
|
1858
2061
|
install: typeof installPrompt;
|
|
1859
2062
|
};
|
|
1860
2063
|
export { Prompt }
|
|
@@ -1887,7 +2090,7 @@ export declare interface PromptProps {
|
|
|
1887
2090
|
badge?: string | VNode;
|
|
1888
2091
|
}
|
|
1889
2092
|
|
|
1890
|
-
declare const Prompts: typeof
|
|
2093
|
+
declare const Prompts: typeof _default_21 & {
|
|
1891
2094
|
install: typeof installPrompts;
|
|
1892
2095
|
};
|
|
1893
2096
|
export { Prompts }
|
|
@@ -1985,7 +2188,6 @@ export declare type SenderEmits = {
|
|
|
1985
2188
|
(e: 'escape-press'): void;
|
|
1986
2189
|
(e: 'cancel'): void;
|
|
1987
2190
|
(e: 'reset-template'): void;
|
|
1988
|
-
(e: 'fixed-link-click'): void;
|
|
1989
2191
|
};
|
|
1990
2192
|
|
|
1991
2193
|
export declare interface SenderProps {
|
|
@@ -2008,7 +2210,7 @@ export declare interface SenderProps {
|
|
|
2008
2210
|
theme?: ThemeType;
|
|
2009
2211
|
template?: string;
|
|
2010
2212
|
hasContent?: boolean;
|
|
2011
|
-
|
|
2213
|
+
templateInitialValues?: Record<string, string>;
|
|
2012
2214
|
}
|
|
2013
2215
|
|
|
2014
2216
|
export declare type SingleTabHistoryProps = {
|
|
@@ -2045,6 +2247,8 @@ export declare interface SpeechState {
|
|
|
2045
2247
|
|
|
2046
2248
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
2047
2249
|
|
|
2250
|
+
declare type SuggestionData = (SuggestionItem_2 | SuggestionGroup)[];
|
|
2251
|
+
|
|
2048
2252
|
/**
|
|
2049
2253
|
* 组件事件
|
|
2050
2254
|
*/
|
|
@@ -2067,6 +2271,13 @@ export declare interface SuggestionEmits {
|
|
|
2067
2271
|
(e: 'fill-template', template: string): void;
|
|
2068
2272
|
}
|
|
2069
2273
|
|
|
2274
|
+
declare interface SuggestionGroup {
|
|
2275
|
+
group: string;
|
|
2276
|
+
label: string;
|
|
2277
|
+
icon?: VNode | Component;
|
|
2278
|
+
items: SuggestionItem_2[];
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2070
2281
|
/**
|
|
2071
2282
|
* 指令项定义
|
|
2072
2283
|
*/
|
|
@@ -2087,6 +2298,97 @@ export declare interface SuggestionItem {
|
|
|
2087
2298
|
template?: string;
|
|
2088
2299
|
}
|
|
2089
2300
|
|
|
2301
|
+
declare interface SuggestionItem_2 {
|
|
2302
|
+
id: string;
|
|
2303
|
+
text: string;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export declare type SuggestionPillAction = {
|
|
2307
|
+
type: 'popover';
|
|
2308
|
+
props: SuggestionPopoverProps;
|
|
2309
|
+
slots?: Omit<SuggestionPopoverSlots, 'default'>;
|
|
2310
|
+
events?: SuggestionPopoverEvents;
|
|
2311
|
+
} | {
|
|
2312
|
+
type: 'menu';
|
|
2313
|
+
props: DropdownMenuProps;
|
|
2314
|
+
events?: DropdownMenuEvents;
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
export declare type SuggestionPillBaseItem<T> = {
|
|
2318
|
+
id: string;
|
|
2319
|
+
action?: SuggestionPillAction;
|
|
2320
|
+
} & T;
|
|
2321
|
+
|
|
2322
|
+
declare const SuggestionPillButton: typeof _default_26 & {
|
|
2323
|
+
install: typeof installPillButton;
|
|
2324
|
+
};
|
|
2325
|
+
export { SuggestionPillButton }
|
|
2326
|
+
export { SuggestionPillButton as TrSuggestionPillButton }
|
|
2327
|
+
|
|
2328
|
+
export declare interface SuggestionPillButtonProps {
|
|
2329
|
+
item?: SuggestionPillItem;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
export declare interface SuggestionPillButtonSlots {
|
|
2333
|
+
default?: () => unknown;
|
|
2334
|
+
icon?: () => unknown;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
|
|
2338
|
+
text: string;
|
|
2339
|
+
icon?: VNode | Component;
|
|
2340
|
+
} | {
|
|
2341
|
+
text?: string;
|
|
2342
|
+
icon: VNode | Component;
|
|
2343
|
+
});
|
|
2344
|
+
|
|
2345
|
+
export declare interface SuggestionPillsEmits {
|
|
2346
|
+
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
export declare interface SuggestionPillsProps {
|
|
2350
|
+
items?: SuggestionPillItem[];
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
export declare interface SuggestionPillsSlots {
|
|
2354
|
+
default?: () => VNode | VNode[];
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
declare interface SuggestionPopoverEvents {
|
|
2358
|
+
itemClick?: (item: SuggestionItem_2) => void;
|
|
2359
|
+
groupClick?: (group: SuggestionGroup) => void;
|
|
2360
|
+
close?: () => void;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
declare interface SuggestionPopoverProps {
|
|
2364
|
+
data: SuggestionData;
|
|
2365
|
+
title?: string;
|
|
2366
|
+
icon?: VNode | Component;
|
|
2367
|
+
/**
|
|
2368
|
+
* 是否显示弹窗,仅在 trigger 为 'manual' 时有效
|
|
2369
|
+
*/
|
|
2370
|
+
show?: boolean;
|
|
2371
|
+
/**
|
|
2372
|
+
* 触发方式。默认值为 'click'
|
|
2373
|
+
*/
|
|
2374
|
+
trigger?: 'click' | 'manual';
|
|
2375
|
+
/**
|
|
2376
|
+
* model:selectedGroup
|
|
2377
|
+
*/
|
|
2378
|
+
selectedGroup?: string;
|
|
2379
|
+
groupShowMoreTrigger?: 'click' | 'hover';
|
|
2380
|
+
loading?: boolean;
|
|
2381
|
+
popoverWidth?: string | number;
|
|
2382
|
+
popoverHeight?: string | number;
|
|
2383
|
+
topOffset?: string | number;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
declare interface SuggestionPopoverSlots {
|
|
2387
|
+
default?: () => unknown;
|
|
2388
|
+
loading?: () => unknown;
|
|
2389
|
+
empty?: () => unknown;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2090
2392
|
/**
|
|
2091
2393
|
* 组件属性
|
|
2092
2394
|
*/
|
|
@@ -2125,8 +2427,12 @@ export declare interface TemplateEditorEmits {
|
|
|
2125
2427
|
(e: 'input', value: string): void;
|
|
2126
2428
|
/** 内容变更状态 - 通知父组件是否有内容 */
|
|
2127
2429
|
(e: 'content-status', hasContent: boolean): void;
|
|
2128
|
-
/**
|
|
2129
|
-
(e: '
|
|
2430
|
+
/** 提交事件 */
|
|
2431
|
+
(e: 'submit', value: string): void;
|
|
2432
|
+
/** 聚焦事件 */
|
|
2433
|
+
(e: 'focus', event: FocusEvent): void;
|
|
2434
|
+
/** 失焦事件 */
|
|
2435
|
+
(e: 'blur', event: FocusEvent): void;
|
|
2130
2436
|
}
|
|
2131
2437
|
|
|
2132
2438
|
/**
|
|
@@ -2137,6 +2443,8 @@ export declare interface TemplateEditorExpose {
|
|
|
2137
2443
|
activateFirstField: () => void;
|
|
2138
2444
|
/** 重置所有字段 */
|
|
2139
2445
|
resetFields: () => void;
|
|
2446
|
+
/** 聚焦编辑器并将光标置于末尾 */
|
|
2447
|
+
focus: () => void;
|
|
2140
2448
|
}
|
|
2141
2449
|
|
|
2142
2450
|
/**
|
|
@@ -2147,6 +2455,10 @@ export declare interface TemplateEditorProps {
|
|
|
2147
2455
|
template: string;
|
|
2148
2456
|
/** 当前值 */
|
|
2149
2457
|
value?: string;
|
|
2458
|
+
/** 是否自动聚焦 */
|
|
2459
|
+
autofocus?: boolean;
|
|
2460
|
+
/** 字段初始值,键为占位符文本,值为初始内容 */
|
|
2461
|
+
initialValues?: Record<string, string>;
|
|
2150
2462
|
}
|
|
2151
2463
|
|
|
2152
2464
|
/**
|