@opentiny/tiny-robot 0.2.1 → 0.3.0-alpha.0
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 +5 -5
- package/dist/attachments/index.js +602 -0
- package/dist/bubble/index.js +1 -1
- package/dist/container/index.js +10 -10
- package/dist/dropdown-menu/index.js +8 -8
- package/dist/feedback/index.js +20 -20
- package/dist/flow-layout-buttons/index.js +27 -27
- package/dist/history/index.js +46 -46
- package/dist/index.d.ts +231 -98
- package/dist/index.js +50 -46
- package/dist/index2.js +397 -330
- package/dist/question/index.js +64 -64
- package/dist/sender/index.js +906 -844
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +62 -62
- package/dist/suggestion-pills/index.js +80 -77
- package/dist/suggestion-popover/index.js +2 -2
- package/dist/tiny-robot-svgs.js +500 -174
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { CSSProperties } from 'vue';
|
|
|
15
15
|
import { DebuggerEvent } from 'vue';
|
|
16
16
|
import { DefineComponent } from 'vue';
|
|
17
17
|
import { ExtractPropTypes } from 'vue';
|
|
18
|
+
import { FileType as FileType_2 } from './index.type';
|
|
18
19
|
import { GlobalComponents } from 'vue';
|
|
19
20
|
import { GlobalDirectives } from 'vue';
|
|
20
21
|
import { InputMode as InputMode_2 } from './index.type';
|
|
@@ -38,8 +39,8 @@ import { WatchOptions } from 'vue';
|
|
|
38
39
|
import { WatchStopHandle } from 'vue';
|
|
39
40
|
|
|
40
41
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
41
|
-
placement: BubblePalcement_2;
|
|
42
42
|
type: "text" | "markdown";
|
|
43
|
+
placement: BubblePalcement_2;
|
|
43
44
|
maxWidth: string | number;
|
|
44
45
|
content: string;
|
|
45
46
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -69,15 +70,15 @@ theme: ThemeType_2;
|
|
|
69
70
|
declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
70
71
|
"update:selectedGroup": (value: string) => any;
|
|
71
72
|
} & {
|
|
72
|
-
"item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
|
|
73
73
|
close: () => any;
|
|
74
74
|
open: () => any;
|
|
75
|
-
"
|
|
75
|
+
"item-click": (item: SuggestionItem_2) => any;
|
|
76
|
+
"group-click": (group: SuggestionGroup) => any;
|
|
76
77
|
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
77
|
-
"onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
|
|
78
78
|
onClose?: (() => any) | undefined;
|
|
79
79
|
onOpen?: (() => any) | undefined;
|
|
80
|
-
"
|
|
80
|
+
"onItem-click"?: ((item: SuggestionItem_2) => any) | undefined;
|
|
81
|
+
"onGroup-click"?: ((group: SuggestionGroup) => any) | undefined;
|
|
81
82
|
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
82
83
|
}>, {
|
|
83
84
|
title: string;
|
|
@@ -133,10 +134,10 @@ setTemplate: (template: string, initialValues?: Record<string, string>) => void;
|
|
|
133
134
|
}, string, PublicProps, Readonly<SenderProps> & Readonly<{
|
|
134
135
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
135
136
|
}>, {
|
|
136
|
-
loading: boolean;
|
|
137
137
|
template: string;
|
|
138
|
-
mode: InputMode_2;
|
|
139
138
|
disabled: boolean;
|
|
139
|
+
mode: InputMode_2;
|
|
140
|
+
loading: boolean;
|
|
140
141
|
modelValue: string;
|
|
141
142
|
autofocus: boolean;
|
|
142
143
|
clearable: boolean;
|
|
@@ -146,6 +147,7 @@ placeholder: string;
|
|
|
146
147
|
hasContent: boolean;
|
|
147
148
|
allowSpeech: boolean;
|
|
148
149
|
allowFiles: boolean;
|
|
150
|
+
uploadTooltip: string;
|
|
149
151
|
submitType: SubmitTrigger_2;
|
|
150
152
|
autoSize: AutoSize_2;
|
|
151
153
|
maxLength: number;
|
|
@@ -685,14 +687,14 @@ onTrigger?: ((handler: TriggerHandler) => any) | undefined;
|
|
|
685
687
|
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
686
688
|
"onFill-template"?: ((template: string) => any) | undefined;
|
|
687
689
|
}>, {
|
|
688
|
-
loading: boolean;
|
|
689
690
|
title: string;
|
|
690
691
|
items: SuggestionItem[];
|
|
692
|
+
open: boolean;
|
|
693
|
+
loading: boolean;
|
|
691
694
|
categories: Category[];
|
|
692
695
|
theme: "light" | "dark";
|
|
693
696
|
maxVisibleItems: number;
|
|
694
697
|
triggerKeys: string[];
|
|
695
|
-
open: boolean;
|
|
696
698
|
closeOnOutsideClick: boolean;
|
|
697
699
|
defaultExpanded: boolean;
|
|
698
700
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -701,21 +703,21 @@ panelRef: ({
|
|
|
701
703
|
$: ComponentInternalInstance;
|
|
702
704
|
$data: {};
|
|
703
705
|
$props: Partial<{
|
|
704
|
-
loading: boolean;
|
|
705
706
|
title: string;
|
|
707
|
+
loading: boolean;
|
|
706
708
|
categories: Category[];
|
|
707
709
|
maxVisibleItems: number;
|
|
708
710
|
}> & Omit<{
|
|
709
|
-
readonly loading: boolean;
|
|
710
711
|
readonly title: string;
|
|
711
712
|
readonly items: SuggestionItem[];
|
|
713
|
+
readonly loading: boolean;
|
|
712
714
|
readonly categories: Category[];
|
|
713
715
|
readonly maxVisibleItems: number;
|
|
714
716
|
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
715
717
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
716
718
|
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
717
719
|
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
718
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
720
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
719
721
|
$attrs: {
|
|
720
722
|
[x: string]: unknown;
|
|
721
723
|
};
|
|
@@ -764,8 +766,8 @@ close: (...args: any[]) => void;
|
|
|
764
766
|
"category-select": (...args: any[]) => void;
|
|
765
767
|
"item-hover": (...args: any[]) => void;
|
|
766
768
|
}, string, {
|
|
767
|
-
loading: boolean;
|
|
768
769
|
title: string;
|
|
770
|
+
loading: boolean;
|
|
769
771
|
categories: Category[];
|
|
770
772
|
maxVisibleItems: number;
|
|
771
773
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -789,8 +791,8 @@ $forceUpdate: () => void;
|
|
|
789
791
|
$nextTick: nextTick;
|
|
790
792
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
791
793
|
} & Readonly<{
|
|
792
|
-
loading: boolean;
|
|
793
794
|
title: string;
|
|
795
|
+
loading: boolean;
|
|
794
796
|
categories: Category[];
|
|
795
797
|
maxVisibleItems: number;
|
|
796
798
|
}> & Omit<Readonly<ExtractPropTypes< {
|
|
@@ -819,7 +821,7 @@ onSelect?: ((...args: any[]) => any) | undefined;
|
|
|
819
821
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
820
822
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
821
823
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
822
|
-
}>, "handleKeyDown" | ("
|
|
824
|
+
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
823
825
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
824
826
|
}> & {} & ComponentCustomProperties & {} & {
|
|
825
827
|
$slots: {
|
|
@@ -1476,21 +1478,21 @@ declare function __VLS_template_7(): {
|
|
|
1476
1478
|
$: ComponentInternalInstance;
|
|
1477
1479
|
$data: {};
|
|
1478
1480
|
$props: Partial<{
|
|
1479
|
-
loading: boolean;
|
|
1480
1481
|
title: string;
|
|
1482
|
+
loading: boolean;
|
|
1481
1483
|
categories: Category[];
|
|
1482
1484
|
maxVisibleItems: number;
|
|
1483
1485
|
}> & Omit<{
|
|
1484
|
-
readonly loading: boolean;
|
|
1485
1486
|
readonly title: string;
|
|
1486
1487
|
readonly items: SuggestionItem[];
|
|
1488
|
+
readonly loading: boolean;
|
|
1487
1489
|
readonly categories: Category[];
|
|
1488
1490
|
readonly maxVisibleItems: number;
|
|
1489
1491
|
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
1490
1492
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
1491
1493
|
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1492
1494
|
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1493
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
1495
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
1494
1496
|
$attrs: {
|
|
1495
1497
|
[x: string]: unknown;
|
|
1496
1498
|
};
|
|
@@ -1539,8 +1541,8 @@ declare function __VLS_template_7(): {
|
|
|
1539
1541
|
"category-select": (...args: any[]) => void;
|
|
1540
1542
|
"item-hover": (...args: any[]) => void;
|
|
1541
1543
|
}, string, {
|
|
1542
|
-
loading: boolean;
|
|
1543
1544
|
title: string;
|
|
1545
|
+
loading: boolean;
|
|
1544
1546
|
categories: Category[];
|
|
1545
1547
|
maxVisibleItems: number;
|
|
1546
1548
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -1564,8 +1566,8 @@ declare function __VLS_template_7(): {
|
|
|
1564
1566
|
$nextTick: nextTick;
|
|
1565
1567
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1566
1568
|
} & Readonly<{
|
|
1567
|
-
loading: boolean;
|
|
1568
1569
|
title: string;
|
|
1570
|
+
loading: boolean;
|
|
1569
1571
|
categories: Category[];
|
|
1570
1572
|
maxVisibleItems: number;
|
|
1571
1573
|
}> & Omit<Readonly<ExtractPropTypes< {
|
|
@@ -1594,7 +1596,7 @@ declare function __VLS_template_7(): {
|
|
|
1594
1596
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
1595
1597
|
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1596
1598
|
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1597
|
-
}>, "handleKeyDown" | ("
|
|
1599
|
+
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
1598
1600
|
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1599
1601
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1600
1602
|
$slots: {
|
|
@@ -1715,6 +1717,12 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1715
1717
|
};
|
|
1716
1718
|
};
|
|
1717
1719
|
|
|
1720
|
+
export declare interface ActionButton {
|
|
1721
|
+
type: string;
|
|
1722
|
+
label: string;
|
|
1723
|
+
handler?: (file: Attachment) => void;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1718
1726
|
export declare interface ActionButtonsProps {
|
|
1719
1727
|
loading?: boolean;
|
|
1720
1728
|
disabled?: boolean;
|
|
@@ -1726,11 +1734,39 @@ export declare interface ActionButtonsProps {
|
|
|
1726
1734
|
isSupported: boolean;
|
|
1727
1735
|
};
|
|
1728
1736
|
allowFiles?: boolean;
|
|
1737
|
+
uploadTooltip?: string;
|
|
1729
1738
|
submitType?: SubmitTrigger;
|
|
1730
1739
|
showShortcuts?: boolean;
|
|
1731
1740
|
isOverLimit?: boolean;
|
|
1732
1741
|
}
|
|
1733
1742
|
|
|
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
|
+
|
|
1734
1770
|
export declare type AutoSize = boolean | {
|
|
1735
1771
|
minRows: number;
|
|
1736
1772
|
maxRows: number;
|
|
@@ -1745,7 +1781,7 @@ declare interface BaseHistoryProps {
|
|
|
1745
1781
|
selected?: string;
|
|
1746
1782
|
}
|
|
1747
1783
|
|
|
1748
|
-
declare const Bubble: typeof
|
|
1784
|
+
declare const Bubble: typeof _default_16 & {
|
|
1749
1785
|
install: typeof bubbleInstall;
|
|
1750
1786
|
};
|
|
1751
1787
|
export { Bubble }
|
|
@@ -1753,7 +1789,7 @@ export { Bubble as TrBubble }
|
|
|
1753
1789
|
|
|
1754
1790
|
declare const bubbleInstall: (app: App) => void;
|
|
1755
1791
|
|
|
1756
|
-
declare const BubbleList: typeof
|
|
1792
|
+
declare const BubbleList: typeof _default_17 & {
|
|
1757
1793
|
install: typeof bubbleListInstall;
|
|
1758
1794
|
};
|
|
1759
1795
|
export { BubbleList }
|
|
@@ -1859,125 +1895,206 @@ declare const _default: {
|
|
|
1859
1895
|
};
|
|
1860
1896
|
export default _default;
|
|
1861
1897
|
|
|
1862
|
-
declare const _default_10: typeof
|
|
1898
|
+
declare const _default_10: typeof _default_26 & {
|
|
1863
1899
|
install: typeof install_8;
|
|
1864
1900
|
};
|
|
1865
|
-
export { _default_10 as
|
|
1866
|
-
export { _default_10 as
|
|
1901
|
+
export { _default_10 as TrWelcome }
|
|
1902
|
+
export { _default_10 as Welcome }
|
|
1867
1903
|
|
|
1868
|
-
declare const _default_11: typeof
|
|
1904
|
+
declare const _default_11: typeof _default_27 & {
|
|
1869
1905
|
install: typeof install_9;
|
|
1870
1906
|
};
|
|
1871
|
-
export { _default_11 as
|
|
1872
|
-
export { _default_11 as
|
|
1907
|
+
export { _default_11 as Suggestion }
|
|
1908
|
+
export { _default_11 as TrSuggestion }
|
|
1873
1909
|
|
|
1874
1910
|
declare const _default_12: typeof _default_28 & {
|
|
1875
1911
|
install: typeof install_10;
|
|
1876
1912
|
};
|
|
1877
|
-
export { _default_12 as
|
|
1878
|
-
export { _default_12 as
|
|
1913
|
+
export { _default_12 as SuggestionPills }
|
|
1914
|
+
export { _default_12 as TrSuggestionPills }
|
|
1879
1915
|
|
|
1880
|
-
declare const _default_13: typeof
|
|
1916
|
+
declare const _default_13: typeof _default_30 & {
|
|
1881
1917
|
install: typeof install_11;
|
|
1882
1918
|
};
|
|
1883
|
-
export { _default_13 as
|
|
1884
|
-
export { _default_13 as
|
|
1919
|
+
export { _default_13 as Question }
|
|
1920
|
+
export { _default_13 as TrQuestion }
|
|
1921
|
+
|
|
1922
|
+
declare const _default_14: typeof _default_31 & {
|
|
1923
|
+
install: typeof install_12;
|
|
1924
|
+
};
|
|
1925
|
+
export { _default_14 as SuggestionPopover }
|
|
1926
|
+
export { _default_14 as TrSuggestionPopover }
|
|
1927
|
+
|
|
1928
|
+
declare const _default_15: DefineComponent<AttachmentsProps, {
|
|
1929
|
+
triggerUpload: typeof triggerFileSelect;
|
|
1930
|
+
addFiles: typeof handleDrop;
|
|
1931
|
+
clearFiles: () => void;
|
|
1932
|
+
getFiles: () => {
|
|
1933
|
+
previewUrl?: string | undefined;
|
|
1934
|
+
fileType?: FileType_2 | undefined;
|
|
1935
|
+
size?: number | undefined;
|
|
1936
|
+
progress?: number | undefined;
|
|
1937
|
+
isUploading?: boolean | undefined;
|
|
1938
|
+
messageType?: "error" | "warning" | "success" | "info" | "retry" | "uploading" | undefined;
|
|
1939
|
+
rawFile?: {
|
|
1940
|
+
readonly lastModified: number;
|
|
1941
|
+
readonly name: string;
|
|
1942
|
+
readonly webkitRelativePath: string;
|
|
1943
|
+
readonly size: number;
|
|
1944
|
+
readonly type: string;
|
|
1945
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
1946
|
+
bytes: () => Promise<Uint8Array>;
|
|
1947
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
1948
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
1949
|
+
text: () => Promise<string>;
|
|
1950
|
+
} | undefined;
|
|
1951
|
+
uid: string;
|
|
1952
|
+
name: string;
|
|
1953
|
+
status?: string | undefined;
|
|
1954
|
+
}[];
|
|
1955
|
+
getFileCount: () => number;
|
|
1956
|
+
hasFiles: () => boolean;
|
|
1957
|
+
formatFileSize: (size: number) => string;
|
|
1958
|
+
createAttachments: (files: File[]) => {
|
|
1959
|
+
uid: string;
|
|
1960
|
+
name: string;
|
|
1961
|
+
status: string;
|
|
1962
|
+
fileType: FileType_2;
|
|
1963
|
+
rawFile: File;
|
|
1964
|
+
size: number;
|
|
1965
|
+
previewUrl: string;
|
|
1966
|
+
}[];
|
|
1967
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1968
|
+
action: (...args: any[]) => void;
|
|
1969
|
+
"update:items": (...args: any[]) => void;
|
|
1970
|
+
"files-dropped": (...args: any[]) => void;
|
|
1971
|
+
"file-remove": (...args: any[]) => void;
|
|
1972
|
+
"file-preview": (...args: any[]) => void;
|
|
1973
|
+
"file-download": (...args: any[]) => void;
|
|
1974
|
+
"file-retry": (...args: any[]) => void;
|
|
1975
|
+
}, string, PublicProps, Readonly<AttachmentsProps> & Readonly<{
|
|
1976
|
+
onAction?: ((...args: any[]) => any) | undefined;
|
|
1977
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
1978
|
+
"onFiles-dropped"?: ((...args: any[]) => any) | undefined;
|
|
1979
|
+
"onFile-remove"?: ((...args: any[]) => any) | undefined;
|
|
1980
|
+
"onFile-preview"?: ((...args: any[]) => any) | undefined;
|
|
1981
|
+
"onFile-download"?: ((...args: any[]) => any) | undefined;
|
|
1982
|
+
"onFile-retry"?: ((...args: any[]) => any) | undefined;
|
|
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>;
|
|
1885
1991
|
|
|
1886
|
-
declare const
|
|
1992
|
+
declare const _default_16: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1887
1993
|
|
|
1888
|
-
declare const
|
|
1994
|
+
declare const _default_17: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1889
1995
|
scrollContainerRef: HTMLDivElement;
|
|
1890
1996
|
}, HTMLDivElement>;
|
|
1891
1997
|
|
|
1892
|
-
declare const
|
|
1998
|
+
declare const _default_18: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
1893
1999
|
|
|
1894
|
-
declare const
|
|
2000
|
+
declare const _default_19: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2001
|
+
|
|
2002
|
+
declare const _default_2: typeof _default_15 & {
|
|
2003
|
+
install: typeof install;
|
|
2004
|
+
};
|
|
2005
|
+
export { _default_2 as Attachments }
|
|
2006
|
+
export { _default_2 as TrAttachments }
|
|
1895
2007
|
|
|
1896
|
-
declare const
|
|
2008
|
+
declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1897
2009
|
|
|
1898
|
-
declare const
|
|
1899
|
-
operation: (name: string) => any;
|
|
2010
|
+
declare const _default_21: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1900
2011
|
action: (name: string) => any;
|
|
2012
|
+
operation: (name: string) => any;
|
|
1901
2013
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
1902
|
-
onOperation?: ((name: string) => any) | undefined;
|
|
1903
2014
|
onAction?: ((name: string) => any) | undefined;
|
|
2015
|
+
onOperation?: ((name: string) => any) | undefined;
|
|
1904
2016
|
}>, {
|
|
1905
2017
|
operationsLimit: number;
|
|
1906
2018
|
actionsLimit: number;
|
|
1907
2019
|
sourcesLinesLimit: number;
|
|
1908
2020
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1909
2021
|
|
|
1910
|
-
declare const
|
|
1911
|
-
install: typeof install;
|
|
1912
|
-
};
|
|
1913
|
-
export { _default_2 as Container }
|
|
1914
|
-
export { _default_2 as TrContainer }
|
|
1915
|
-
|
|
1916
|
-
declare const _default_20: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2022
|
+
declare const _default_22: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
1917
2023
|
size: string | number;
|
|
1918
2024
|
svgSize: string | number;
|
|
1919
2025
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
1920
2026
|
|
|
1921
|
-
declare const
|
|
1922
|
-
|
|
1923
|
-
declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
1924
|
-
|
|
1925
|
-
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2027
|
+
declare const _default_23: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1926
2028
|
|
|
1927
|
-
declare const _default_24:
|
|
2029
|
+
declare const _default_24: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
1928
2030
|
|
|
1929
|
-
declare const _default_25:
|
|
2031
|
+
declare const _default_25: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
1930
2032
|
|
|
1931
|
-
declare const _default_26:
|
|
2033
|
+
declare const _default_26: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
1932
2034
|
|
|
1933
|
-
declare const _default_27:
|
|
2035
|
+
declare const _default_27: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1934
2036
|
|
|
1935
|
-
declare const _default_28:
|
|
2037
|
+
declare const _default_28: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
1936
2038
|
|
|
1937
|
-
declare const _default_29:
|
|
2039
|
+
declare const _default_29: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
1938
2040
|
|
|
1939
|
-
declare const _default_3: typeof
|
|
2041
|
+
declare const _default_3: typeof _default_18 & {
|
|
1940
2042
|
install: typeof install_2;
|
|
1941
2043
|
};
|
|
1942
|
-
export { _default_3 as
|
|
1943
|
-
export { _default_3 as
|
|
2044
|
+
export { _default_3 as Container }
|
|
2045
|
+
export { _default_3 as TrContainer }
|
|
1944
2046
|
|
|
1945
|
-
declare const
|
|
2047
|
+
declare const _default_30: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2048
|
+
|
|
2049
|
+
declare const _default_31: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2050
|
+
|
|
2051
|
+
declare const _default_4: typeof _default_19 & {
|
|
1946
2052
|
install: typeof install_3;
|
|
1947
2053
|
};
|
|
1948
|
-
export { _default_4 as
|
|
1949
|
-
export { _default_4 as
|
|
2054
|
+
export { _default_4 as Conversations }
|
|
2055
|
+
export { _default_4 as TrConversations }
|
|
1950
2056
|
|
|
1951
|
-
declare const _default_5: typeof
|
|
2057
|
+
declare const _default_5: typeof _default_20 & {
|
|
1952
2058
|
install: typeof install_4;
|
|
1953
2059
|
};
|
|
1954
|
-
export { _default_5 as
|
|
1955
|
-
export { _default_5 as
|
|
2060
|
+
export { _default_5 as DropdownMenu }
|
|
2061
|
+
export { _default_5 as TrDropdownMenu }
|
|
1956
2062
|
|
|
1957
|
-
declare const _default_6: {
|
|
1958
|
-
install:
|
|
1959
|
-
name: string;
|
|
2063
|
+
declare const _default_6: typeof _default_21 & {
|
|
2064
|
+
install: typeof install_5;
|
|
1960
2065
|
};
|
|
1961
|
-
export { _default_6 as
|
|
1962
|
-
export { _default_6 as
|
|
2066
|
+
export { _default_6 as Feedback }
|
|
2067
|
+
export { _default_6 as TrFeedback }
|
|
1963
2068
|
|
|
1964
|
-
declare const _default_7:
|
|
1965
|
-
install:
|
|
2069
|
+
declare const _default_7: {
|
|
2070
|
+
install: <T>(app: App<T>) => void;
|
|
2071
|
+
name: string;
|
|
1966
2072
|
};
|
|
1967
|
-
export { _default_7 as
|
|
1968
|
-
export { _default_7 as
|
|
2073
|
+
export { _default_7 as History }
|
|
2074
|
+
export { _default_7 as TrHistory }
|
|
1969
2075
|
|
|
1970
|
-
declare const _default_8: typeof
|
|
2076
|
+
declare const _default_8: typeof _default_22 & {
|
|
1971
2077
|
install: typeof install_6;
|
|
1972
2078
|
};
|
|
1973
|
-
export { _default_8 as
|
|
1974
|
-
export { _default_8 as
|
|
2079
|
+
export { _default_8 as IconButton }
|
|
2080
|
+
export { _default_8 as TrIconButton }
|
|
1975
2081
|
|
|
1976
|
-
declare const _default_9: typeof
|
|
2082
|
+
declare const _default_9: typeof _default_25 & {
|
|
1977
2083
|
install: typeof install_7;
|
|
1978
2084
|
};
|
|
1979
|
-
export { _default_9 as
|
|
1980
|
-
export { _default_9 as
|
|
2085
|
+
export { _default_9 as Sender }
|
|
2086
|
+
export { _default_9 as TrSender }
|
|
2087
|
+
|
|
2088
|
+
export declare interface DragConfig {
|
|
2089
|
+
mode?: 'fullscreen' | 'container';
|
|
2090
|
+
target?: string | HTMLElement;
|
|
2091
|
+
overlay?: {
|
|
2092
|
+
zIndex?: number;
|
|
2093
|
+
enterDelay?: number;
|
|
2094
|
+
leaveDelay?: number;
|
|
2095
|
+
className?: string;
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
1981
2098
|
|
|
1982
2099
|
export declare interface DropdownMenuEmits {
|
|
1983
2100
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
@@ -2028,6 +2145,10 @@ export declare interface FeedbackProps {
|
|
|
2028
2145
|
sourcesLinesLimit?: number;
|
|
2029
2146
|
}
|
|
2030
2147
|
|
|
2148
|
+
export declare type FileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
2149
|
+
|
|
2150
|
+
declare function handleDrop(files: File[]): void;
|
|
2151
|
+
|
|
2031
2152
|
export declare type HistoryData = HistoryItem[] | HistoryGroup[];
|
|
2032
2153
|
|
|
2033
2154
|
export declare interface HistoryEvents {
|
|
@@ -2078,6 +2199,8 @@ declare const install_10: <T>(app: App<T>) => void;
|
|
|
2078
2199
|
|
|
2079
2200
|
declare const install_11: <T>(app: App<T>) => void;
|
|
2080
2201
|
|
|
2202
|
+
declare const install_12: <T>(app: App<T>) => void;
|
|
2203
|
+
|
|
2081
2204
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2082
2205
|
|
|
2083
2206
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2113,7 +2236,7 @@ export declare type MultiTabHistoryProps = {
|
|
|
2113
2236
|
data: Record<string, HistoryData>;
|
|
2114
2237
|
} & BaseHistoryProps;
|
|
2115
2238
|
|
|
2116
|
-
declare const Prompt: typeof
|
|
2239
|
+
declare const Prompt: typeof _default_23 & {
|
|
2117
2240
|
install: typeof installPrompt;
|
|
2118
2241
|
};
|
|
2119
2242
|
export { Prompt }
|
|
@@ -2146,7 +2269,7 @@ export declare interface PromptProps {
|
|
|
2146
2269
|
badge?: string | VNode;
|
|
2147
2270
|
}
|
|
2148
2271
|
|
|
2149
|
-
declare const Prompts: typeof
|
|
2272
|
+
declare const Prompts: typeof _default_24 & {
|
|
2150
2273
|
install: typeof installPrompts;
|
|
2151
2274
|
};
|
|
2152
2275
|
export { Prompts }
|
|
@@ -2244,6 +2367,8 @@ export declare type SenderEmits = {
|
|
|
2244
2367
|
(e: 'escape-press'): void;
|
|
2245
2368
|
(e: 'cancel'): void;
|
|
2246
2369
|
(e: 'reset-template'): void;
|
|
2370
|
+
(e: 'upload-online'): void;
|
|
2371
|
+
(e: 'files-selected', files: FileList | null): void;
|
|
2247
2372
|
};
|
|
2248
2373
|
|
|
2249
2374
|
export declare interface SenderProps {
|
|
@@ -2251,6 +2376,7 @@ export declare interface SenderProps {
|
|
|
2251
2376
|
autoSize?: AutoSize;
|
|
2252
2377
|
allowSpeech?: boolean;
|
|
2253
2378
|
allowFiles?: boolean;
|
|
2379
|
+
uploadTooltip?: string;
|
|
2254
2380
|
clearable?: boolean;
|
|
2255
2381
|
disabled?: boolean;
|
|
2256
2382
|
defaultValue?: string | null;
|
|
@@ -2313,12 +2439,7 @@ export declare interface SpeechState {
|
|
|
2313
2439
|
|
|
2314
2440
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
2315
2441
|
|
|
2316
|
-
declare
|
|
2317
|
-
id: string;
|
|
2318
|
-
text: string;
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
|
|
2442
|
+
declare type SuggestionData = (SuggestionItem_2 | SuggestionGroup)[];
|
|
2322
2443
|
|
|
2323
2444
|
/**
|
|
2324
2445
|
* 组件事件
|
|
@@ -2342,11 +2463,11 @@ export declare interface SuggestionEmits {
|
|
|
2342
2463
|
(e: 'fill-template', template: string): void;
|
|
2343
2464
|
}
|
|
2344
2465
|
|
|
2345
|
-
declare interface SuggestionGroup
|
|
2466
|
+
declare interface SuggestionGroup {
|
|
2346
2467
|
group: string;
|
|
2347
2468
|
label: string;
|
|
2348
2469
|
icon?: VNode | Component;
|
|
2349
|
-
items: SuggestionItem_2
|
|
2470
|
+
items: SuggestionItem_2[];
|
|
2350
2471
|
}
|
|
2351
2472
|
|
|
2352
2473
|
/**
|
|
@@ -2369,7 +2490,10 @@ export declare interface SuggestionItem {
|
|
|
2369
2490
|
template?: string;
|
|
2370
2491
|
}
|
|
2371
2492
|
|
|
2372
|
-
declare
|
|
2493
|
+
declare interface SuggestionItem_2 {
|
|
2494
|
+
id: string;
|
|
2495
|
+
text: string;
|
|
2496
|
+
}
|
|
2373
2497
|
|
|
2374
2498
|
export declare type SuggestionPillAction = {
|
|
2375
2499
|
type: 'popover';
|
|
@@ -2387,7 +2511,7 @@ export declare type SuggestionPillBaseItem<T> = {
|
|
|
2387
2511
|
action?: SuggestionPillAction;
|
|
2388
2512
|
} & T;
|
|
2389
2513
|
|
|
2390
|
-
declare const SuggestionPillButton: typeof
|
|
2514
|
+
declare const SuggestionPillButton: typeof _default_29 & {
|
|
2391
2515
|
install: typeof installPillButton;
|
|
2392
2516
|
};
|
|
2393
2517
|
export { SuggestionPillButton }
|
|
@@ -2435,8 +2559,8 @@ declare interface SuggestionPopoverEvents {
|
|
|
2435
2559
|
close?: () => void;
|
|
2436
2560
|
}
|
|
2437
2561
|
|
|
2438
|
-
declare interface SuggestionPopoverProps
|
|
2439
|
-
data: SuggestionData
|
|
2562
|
+
declare interface SuggestionPopoverProps {
|
|
2563
|
+
data: SuggestionData;
|
|
2440
2564
|
title?: string;
|
|
2441
2565
|
icon?: VNode | Component;
|
|
2442
2566
|
/**
|
|
@@ -2567,12 +2691,21 @@ export declare interface TriggerContext {
|
|
|
2567
2691
|
position: number;
|
|
2568
2692
|
}
|
|
2569
2693
|
|
|
2694
|
+
declare function triggerFileSelect(): void;
|
|
2695
|
+
|
|
2570
2696
|
/** 触发处理函数类型 */
|
|
2571
2697
|
export declare type TriggerHandler = (info: TriggerInfo) => void;
|
|
2572
2698
|
|
|
2573
2699
|
/** 触发信息类型 */
|
|
2574
2700
|
export declare type TriggerInfo = TriggerContext | false;
|
|
2575
2701
|
|
|
2702
|
+
export declare interface UploadFile {
|
|
2703
|
+
uid: string;
|
|
2704
|
+
name: string;
|
|
2705
|
+
status?: string;
|
|
2706
|
+
rawFile?: File;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2576
2709
|
export declare interface WelcomeProps {
|
|
2577
2710
|
title: string;
|
|
2578
2711
|
description: string;
|