@opentiny/tiny-robot 0.3.0-alpha.1 → 0.3.0-alpha.10
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 +43 -40
- package/dist/attachments/index.js +526 -0
- package/dist/base-popper/index.js +4 -0
- package/dist/bubble/index.js +1229 -2003
- package/dist/close.js +1 -1
- package/dist/container/index.js +4 -4
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +84 -64
- package/dist/feedback/index.js +39 -39
- package/dist/flow-layout-buttons/index.js +23 -20
- package/dist/history/index.js +37 -37
- package/dist/icon-button/index.js +18 -19
- package/dist/index.d.ts +952 -910
- package/dist/index.js +196 -77
- package/dist/index2.js +609 -524
- package/dist/index3.js +671 -290
- package/dist/index4.js +136 -622
- package/dist/index5.js +226 -2068
- package/dist/index6.js +2069 -4665
- package/dist/index7.js +4749 -0
- package/dist/question/index.js +84 -84
- package/dist/sender/index.js +1091 -1186
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +92 -92
- package/dist/suggestion-pills/index.js +131 -155
- package/dist/suggestion-popover/index.js +255 -225
- package/dist/tiny-robot-svgs.js +559 -234
- package/dist/useSlotRefs.js +36 -0
- package/dist/utils.js +4 -15
- package/package.json +3 -4
- package/dist/loading.js +0 -4
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 { BubblePalcement as BubblePalcement_2 } from './index.type';
|
|
5
5
|
import { Component } from 'vue';
|
|
6
6
|
import { ComponentCustomProperties } from 'vue';
|
|
7
7
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -10,116 +10,50 @@ import { ComponentOptionsBase } from 'vue';
|
|
|
10
10
|
import { ComponentOptionsMixin } from 'vue';
|
|
11
11
|
import { ComponentProvideOptions } from 'vue';
|
|
12
12
|
import { ComponentPublicInstance } from 'vue';
|
|
13
|
-
import {
|
|
13
|
+
import { ComputedRef } from 'vue';
|
|
14
14
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
15
15
|
import { CSSProperties } from 'vue';
|
|
16
16
|
import { DebuggerEvent } from 'vue';
|
|
17
|
-
import { default as default_2 } from 'markdown-it';
|
|
18
17
|
import { DefineComponent } from 'vue';
|
|
18
|
+
import { Directive } from 'vue';
|
|
19
|
+
import { DisplayVariant as DisplayVariant_2 } from './index.type';
|
|
19
20
|
import { ExtractPropTypes } from 'vue';
|
|
21
|
+
import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
|
|
20
22
|
import { GlobalComponents } from 'vue';
|
|
21
23
|
import { GlobalDirectives } from 'vue';
|
|
22
24
|
import { InputMode as InputMode_2 } from './index.type';
|
|
23
25
|
import { nextTick } from 'vue';
|
|
24
26
|
import { OnCleanup } from '@vue/reactivity';
|
|
25
27
|
import { Options } from 'markdown-it';
|
|
28
|
+
import { Props } from './components/SuggestionList.vue';
|
|
26
29
|
import { PropType } from 'vue';
|
|
27
30
|
import { PublicProps } from 'vue';
|
|
28
31
|
import { Ref } from 'vue';
|
|
29
32
|
import { RendererElement } from 'vue';
|
|
30
33
|
import { RendererNode } from 'vue';
|
|
31
|
-
import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
|
|
32
34
|
import { ShallowUnwrapRef } from 'vue';
|
|
33
35
|
import { Slot } from 'vue';
|
|
34
36
|
import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
|
|
35
|
-
import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
|
|
36
37
|
import { ThemeType as ThemeType_2 } from './index.type';
|
|
37
38
|
import { TooltipContentProps } from './components/Tooltip.vue';
|
|
39
|
+
import { TransitionProps } from 'vue';
|
|
38
40
|
import { VNode } from 'vue';
|
|
39
41
|
import { VNodeProps } from 'vue';
|
|
40
42
|
import { WatchOptions } from 'vue';
|
|
41
43
|
import { WatchStopHandle } from 'vue';
|
|
42
44
|
|
|
43
45
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
46
|
+
type: "text" | "markdown";
|
|
44
47
|
content: string;
|
|
45
|
-
placement:
|
|
46
|
-
shape: "rounded" | "corner";
|
|
48
|
+
placement: BubblePalcement_2;
|
|
47
49
|
maxWidth: string | number;
|
|
48
50
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
49
51
|
|
|
50
|
-
declare const __VLS_component_10: DefineComponent<
|
|
51
|
-
|
|
52
|
-
declare const __VLS_component_11: DefineComponent<QuestionProps, {
|
|
53
|
-
openModal: () => void;
|
|
54
|
-
closeModal: () => void;
|
|
55
|
-
toggleFloating: () => void;
|
|
56
|
-
setActiveCategory: (categoryId: string) => void;
|
|
57
|
-
refreshData: () => Promise<void>;
|
|
58
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
59
|
-
"question-click": (question: Question_2) => any;
|
|
60
|
-
"select-category": (category: Category_2) => any;
|
|
61
|
-
}, string, PublicProps, Readonly<QuestionProps> & Readonly<{
|
|
62
|
-
"onQuestion-click"?: ((question: Question_2) => any) | undefined;
|
|
63
|
-
"onSelect-category"?: ((category: Category_2) => any) | undefined;
|
|
64
|
-
}>, {
|
|
65
|
-
loading: boolean;
|
|
66
|
-
categories: Category_2[];
|
|
67
|
-
modalWidth: string;
|
|
68
|
-
closeOnClickOutside: boolean;
|
|
69
|
-
commonQuestions: Question_2[];
|
|
70
|
-
initialExpanded: boolean;
|
|
71
|
-
theme: ThemeType_2;
|
|
52
|
+
declare const __VLS_component_10: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
53
|
+
align: "left" | "center" | "right" | string;
|
|
72
54
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
73
55
|
|
|
74
|
-
declare const
|
|
75
|
-
"update:selectedGroup": (value: string) => any;
|
|
76
|
-
} & {
|
|
77
|
-
close: () => any;
|
|
78
|
-
open: () => any;
|
|
79
|
-
"item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
|
|
80
|
-
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
81
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
82
|
-
onClose?: (() => any) | undefined;
|
|
83
|
-
onOpen?: (() => any) | undefined;
|
|
84
|
-
"onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
|
|
85
|
-
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
86
|
-
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
87
|
-
}>, {
|
|
88
|
-
title: string;
|
|
89
|
-
topOffset: string | number;
|
|
90
|
-
trigger: "click" | "manual";
|
|
91
|
-
groupShowMoreTrigger: "click" | "hover";
|
|
92
|
-
popoverWidth: string | number;
|
|
93
|
-
popoverHeight: string | number;
|
|
94
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
95
|
-
popoverTriggerRef: HTMLDivElement;
|
|
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;
|
|
116
|
-
}, any>;
|
|
117
|
-
|
|
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, {
|
|
56
|
+
declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
123
57
|
"update:show": (value: boolean) => any;
|
|
124
58
|
"update:fullscreen": (value: boolean | undefined) => any;
|
|
125
59
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -127,16 +61,114 @@ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
127
61
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
128
62
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
129
63
|
|
|
130
|
-
declare const
|
|
64
|
+
declare const __VLS_component_3: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
65
|
+
|
|
66
|
+
declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_2, {
|
|
67
|
+
update: () => void;
|
|
68
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
69
|
+
"update:show": (value: boolean) => any;
|
|
70
|
+
} & {
|
|
131
71
|
"item-click": (item: DropdownMenuItem) => any;
|
|
132
|
-
|
|
72
|
+
"click-outside": (event: MouseEvent) => any;
|
|
73
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
74
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
133
75
|
"onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
|
|
76
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
134
77
|
}>, {
|
|
135
|
-
|
|
136
|
-
topOffset: string | number;
|
|
78
|
+
trigger: "click" | "hover" | "manual";
|
|
137
79
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
138
|
-
|
|
139
|
-
|
|
80
|
+
basePopperRef: ({
|
|
81
|
+
$: ComponentInternalInstance;
|
|
82
|
+
$data: {};
|
|
83
|
+
$props: {
|
|
84
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
85
|
+
readonly offset?: number | {
|
|
86
|
+
mainAxis?: number;
|
|
87
|
+
crossAxis?: number;
|
|
88
|
+
} | undefined;
|
|
89
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
90
|
+
readonly preventOverflow?: boolean | undefined;
|
|
91
|
+
readonly show?: boolean | undefined;
|
|
92
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
93
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
94
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
95
|
+
$attrs: {
|
|
96
|
+
[x: string]: unknown;
|
|
97
|
+
};
|
|
98
|
+
$refs: {
|
|
99
|
+
[x: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
$slots: Readonly<{
|
|
102
|
+
[name: string]: Slot<any> | undefined;
|
|
103
|
+
}>;
|
|
104
|
+
$root: ComponentPublicInstance | null;
|
|
105
|
+
$parent: ComponentPublicInstance | null;
|
|
106
|
+
$host: Element | null;
|
|
107
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
108
|
+
$el: any;
|
|
109
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
110
|
+
appendTo?: string | HTMLElement;
|
|
111
|
+
offset?: number | {
|
|
112
|
+
mainAxis?: number;
|
|
113
|
+
crossAxis?: number;
|
|
114
|
+
};
|
|
115
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
116
|
+
preventOverflow?: boolean;
|
|
117
|
+
show?: boolean;
|
|
118
|
+
transitionProps?: TransitionProps;
|
|
119
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
120
|
+
}> & Readonly<{}>, {
|
|
121
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
122
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
123
|
+
update: () => void;
|
|
124
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
125
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
126
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
127
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
128
|
+
created?: (() => void) | (() => void)[];
|
|
129
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
130
|
+
mounted?: (() => void) | (() => void)[];
|
|
131
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
132
|
+
updated?: (() => void) | (() => void)[];
|
|
133
|
+
activated?: (() => void) | (() => void)[];
|
|
134
|
+
deactivated?: (() => void) | (() => void)[];
|
|
135
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
136
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
137
|
+
destroyed?: (() => void) | (() => void)[];
|
|
138
|
+
unmounted?: (() => void) | (() => void)[];
|
|
139
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
140
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
141
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
142
|
+
};
|
|
143
|
+
$forceUpdate: () => void;
|
|
144
|
+
$nextTick: nextTick;
|
|
145
|
+
$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;
|
|
146
|
+
} & Readonly<{
|
|
147
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
148
|
+
}> & Omit<Readonly<{
|
|
149
|
+
appendTo?: string | HTMLElement;
|
|
150
|
+
offset?: number | {
|
|
151
|
+
mainAxis?: number;
|
|
152
|
+
crossAxis?: number;
|
|
153
|
+
};
|
|
154
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
155
|
+
preventOverflow?: boolean;
|
|
156
|
+
show?: boolean;
|
|
157
|
+
transitionProps?: TransitionProps;
|
|
158
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
159
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
160
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
161
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
162
|
+
update: () => void;
|
|
163
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
164
|
+
$slots: Readonly<{
|
|
165
|
+
trigger?: () => VNode[];
|
|
166
|
+
content?: () => VNode[];
|
|
167
|
+
}> & {
|
|
168
|
+
trigger?: () => VNode[];
|
|
169
|
+
content?: () => VNode[];
|
|
170
|
+
};
|
|
171
|
+
}) | null;
|
|
140
172
|
}, any>;
|
|
141
173
|
|
|
142
174
|
declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -153,7 +185,6 @@ submit: () => void;
|
|
|
153
185
|
startSpeech: () => void;
|
|
154
186
|
stopSpeech: () => void;
|
|
155
187
|
activateTemplateFirstField: () => void;
|
|
156
|
-
setTemplate: (template: string, initialValues?: Record<string, string>) => void;
|
|
157
188
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
158
189
|
[x: string]: any;
|
|
159
190
|
} & {
|
|
@@ -161,55 +192,41 @@ setTemplate: (template: string, initialValues?: Record<string, string>) => void;
|
|
|
161
192
|
}, string, PublicProps, Readonly<SenderProps> & Readonly<{
|
|
162
193
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
163
194
|
}>, {
|
|
164
|
-
template: string;
|
|
165
|
-
mode: InputMode_2;
|
|
166
|
-
loading: boolean;
|
|
167
195
|
disabled: boolean;
|
|
168
196
|
modelValue: string;
|
|
197
|
+
loading: boolean;
|
|
198
|
+
mode: InputMode_2;
|
|
169
199
|
autofocus: boolean;
|
|
170
200
|
clearable: boolean;
|
|
171
201
|
showWordLimit: boolean;
|
|
172
|
-
theme: ThemeType_2;
|
|
173
|
-
placeholder: string;
|
|
174
|
-
hasContent: boolean;
|
|
175
202
|
allowSpeech: boolean;
|
|
176
203
|
allowFiles: boolean;
|
|
177
204
|
submitType: SubmitTrigger_2;
|
|
205
|
+
stopText: string;
|
|
206
|
+
suggestions: string[];
|
|
178
207
|
autoSize: AutoSize_2;
|
|
179
208
|
maxLength: number;
|
|
180
|
-
|
|
209
|
+
placeholder: string;
|
|
181
210
|
suggestionPopupWidth: string | number;
|
|
182
|
-
|
|
211
|
+
theme: ThemeType_2;
|
|
212
|
+
templateData: UserItem[];
|
|
183
213
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
184
214
|
senderRef: HTMLDivElement;
|
|
185
215
|
inputWrapperRef: HTMLDivElement;
|
|
186
216
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
onInput?: ((value: string) => any) | undefined;
|
|
192
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
193
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
194
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
195
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
217
|
+
modelValue?: UserItem[];
|
|
218
|
+
}> & Readonly<{
|
|
219
|
+
onSubmit?: (() => any) | undefined;
|
|
220
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
196
221
|
}>, {
|
|
197
|
-
|
|
198
|
-
resetFields: () => void;
|
|
222
|
+
clearHistory: () => void;
|
|
199
223
|
activateFirstField: () => void;
|
|
200
|
-
getValueFromDOM: () => string;
|
|
201
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
202
224
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
203
|
-
"update:
|
|
225
|
+
"update:modelValue": (value: UserItem[]) => any;
|
|
204
226
|
} & {
|
|
205
|
-
|
|
206
|
-
focus: (event: FocusEvent) => any;
|
|
207
|
-
input: (value: string) => any;
|
|
208
|
-
submit: (value: string) => any;
|
|
209
|
-
"content-status": (hasContent: boolean) => any;
|
|
210
|
-
"empty-content": () => any;
|
|
227
|
+
submit: () => any;
|
|
211
228
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
212
|
-
|
|
229
|
+
editorRef: HTMLDivElement;
|
|
213
230
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
214
231
|
P: {};
|
|
215
232
|
B: {};
|
|
@@ -218,21 +235,13 @@ C: {};
|
|
|
218
235
|
M: {};
|
|
219
236
|
Defaults: {};
|
|
220
237
|
}, Readonly<{
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
onInput?: ((value: string) => any) | undefined;
|
|
226
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
227
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
228
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
229
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
238
|
+
modelValue?: UserItem[];
|
|
239
|
+
}> & Readonly<{
|
|
240
|
+
onSubmit?: (() => any) | undefined;
|
|
241
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
230
242
|
}>, {
|
|
231
|
-
|
|
232
|
-
resetFields: () => void;
|
|
243
|
+
clearHistory: () => void;
|
|
233
244
|
activateFirstField: () => void;
|
|
234
|
-
getValueFromDOM: () => string;
|
|
235
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
236
245
|
}, {}, {}, {}, {}> | null;
|
|
237
246
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
238
247
|
_constants: {
|
|
@@ -685,68 +694,90 @@ showTooltip: boolean;
|
|
|
685
694
|
inputBoxType: string;
|
|
686
695
|
}> | null;
|
|
687
696
|
buttonsContainerRef: HTMLDivElement;
|
|
697
|
+
suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
|
|
698
|
+
onSelect?: ((item: string) => any) | undefined;
|
|
699
|
+
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
700
|
+
"onItem-leave"?: (() => any) | undefined;
|
|
701
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
702
|
+
select: (item: string) => any;
|
|
703
|
+
"item-hover": (index: number) => any;
|
|
704
|
+
"item-leave": () => any;
|
|
705
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
688
706
|
suggestionsListRef: HTMLDivElement;
|
|
707
|
+
}, any, ComponentProvideOptions, {
|
|
708
|
+
P: {};
|
|
709
|
+
B: {};
|
|
710
|
+
D: {};
|
|
711
|
+
C: {};
|
|
712
|
+
M: {};
|
|
713
|
+
Defaults: {};
|
|
714
|
+
}, Readonly<Props> & Readonly<{
|
|
715
|
+
onSelect?: ((item: string) => any) | undefined;
|
|
716
|
+
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
717
|
+
"onItem-leave"?: (() => any) | undefined;
|
|
718
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
689
719
|
}, HTMLDivElement>;
|
|
690
720
|
|
|
691
|
-
declare const __VLS_component_7: DefineComponent<
|
|
692
|
-
|
|
693
|
-
|
|
721
|
+
declare const __VLS_component_7: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
722
|
+
|
|
723
|
+
declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_3, {
|
|
724
|
+
children: ComputedRef<(HTMLElement | SVGElement)[]>;
|
|
725
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
726
|
+
"update:showAll": (value: boolean | undefined) => any;
|
|
727
|
+
} & {
|
|
728
|
+
"click-outside": (event: MouseEvent) => any;
|
|
729
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
730
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
731
|
+
"onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
|
|
732
|
+
}>, {
|
|
733
|
+
showAllButtonOn: "hover" | "always";
|
|
734
|
+
overflowMode: "expand" | "scroll";
|
|
735
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
736
|
+
containerWrapperRef: HTMLDivElement;
|
|
737
|
+
containerRef: HTMLDivElement;
|
|
738
|
+
staticMaybeItemRefs: unknown[];
|
|
739
|
+
floatingItemsRef: HTMLDivElement;
|
|
740
|
+
floatingMaybeItemRefs: unknown[];
|
|
741
|
+
}, HTMLDivElement>;
|
|
694
742
|
|
|
695
|
-
declare const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
743
|
+
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_4, {
|
|
744
|
+
update: () => void;
|
|
745
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
746
|
+
"update:selectedGroup": (value: string) => any;
|
|
747
|
+
} & {
|
|
701
748
|
close: () => any;
|
|
702
|
-
|
|
703
|
-
"
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
"update:expanded": (expanded: boolean) => any;
|
|
708
|
-
"fill-template": (template: string) => any;
|
|
709
|
-
}, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
|
|
749
|
+
open: () => any;
|
|
750
|
+
"item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
|
|
751
|
+
"click-outside": (event: MouseEvent) => any;
|
|
752
|
+
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
753
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
|
|
710
754
|
onClose?: (() => any) | undefined;
|
|
711
|
-
|
|
712
|
-
"
|
|
713
|
-
"
|
|
714
|
-
|
|
715
|
-
"
|
|
716
|
-
"onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
|
|
717
|
-
"onFill-template"?: ((template: string) => any) | undefined;
|
|
755
|
+
onOpen?: (() => any) | undefined;
|
|
756
|
+
"onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
|
|
757
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
758
|
+
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
759
|
+
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
718
760
|
}>, {
|
|
719
|
-
open: boolean;
|
|
720
|
-
items: SuggestionItem[];
|
|
721
761
|
title: string;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
maxVisibleItems: number;
|
|
726
|
-
triggerKeys: string[];
|
|
727
|
-
closeOnOutsideClick: boolean;
|
|
728
|
-
defaultExpanded: boolean;
|
|
762
|
+
trigger: "click" | "manual";
|
|
763
|
+
groupShowMoreTrigger: "click" | "hover";
|
|
764
|
+
topOffset: number;
|
|
729
765
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
730
|
-
|
|
731
|
-
panelRef: ({
|
|
766
|
+
basePopperRef: ({
|
|
732
767
|
$: ComponentInternalInstance;
|
|
733
768
|
$data: {};
|
|
734
|
-
$props:
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
740
|
-
readonly
|
|
741
|
-
readonly
|
|
742
|
-
readonly
|
|
743
|
-
readonly
|
|
744
|
-
readonly
|
|
745
|
-
|
|
746
|
-
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
747
|
-
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
748
|
-
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
749
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
769
|
+
$props: {
|
|
770
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
771
|
+
readonly offset?: number | {
|
|
772
|
+
mainAxis?: number;
|
|
773
|
+
crossAxis?: number;
|
|
774
|
+
} | undefined;
|
|
775
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
776
|
+
readonly preventOverflow?: boolean | undefined;
|
|
777
|
+
readonly show?: boolean | undefined;
|
|
778
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
779
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
780
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
750
781
|
$attrs: {
|
|
751
782
|
[x: string]: unknown;
|
|
752
783
|
};
|
|
@@ -759,46 +790,25 @@ $slots: Readonly<{
|
|
|
759
790
|
$root: ComponentPublicInstance | null;
|
|
760
791
|
$parent: ComponentPublicInstance | null;
|
|
761
792
|
$host: Element | null;
|
|
762
|
-
$emit: (
|
|
763
|
-
$el:
|
|
764
|
-
$options: ComponentOptionsBase<Readonly<
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
maxVisibleItems: {
|
|
782
|
-
type: NumberConstructor;
|
|
783
|
-
default: number;
|
|
784
|
-
};
|
|
785
|
-
}>> & Readonly<{
|
|
786
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
787
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
788
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
789
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
790
|
-
}>, {
|
|
791
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
792
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
793
|
-
close: (...args: any[]) => void;
|
|
794
|
-
select: (...args: any[]) => void;
|
|
795
|
-
"category-select": (...args: any[]) => void;
|
|
796
|
-
"item-hover": (...args: any[]) => void;
|
|
797
|
-
}, string, {
|
|
798
|
-
title: string;
|
|
799
|
-
loading: boolean;
|
|
800
|
-
categories: Category[];
|
|
801
|
-
maxVisibleItems: number;
|
|
793
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
794
|
+
$el: any;
|
|
795
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
796
|
+
appendTo?: string | HTMLElement;
|
|
797
|
+
offset?: number | {
|
|
798
|
+
mainAxis?: number;
|
|
799
|
+
crossAxis?: number;
|
|
800
|
+
};
|
|
801
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
802
|
+
preventOverflow?: boolean;
|
|
803
|
+
show?: boolean;
|
|
804
|
+
transitionProps?: TransitionProps;
|
|
805
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
806
|
+
}> & Readonly<{}>, {
|
|
807
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
808
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
809
|
+
update: () => void;
|
|
810
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
811
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
802
812
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
803
813
|
beforeCreate?: (() => void) | (() => void)[];
|
|
804
814
|
created?: (() => void) | (() => void)[];
|
|
@@ -820,70 +830,53 @@ $forceUpdate: () => void;
|
|
|
820
830
|
$nextTick: nextTick;
|
|
821
831
|
$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;
|
|
822
832
|
} & Readonly<{
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
};
|
|
840
|
-
title: {
|
|
841
|
-
type: StringConstructor;
|
|
842
|
-
default: string;
|
|
843
|
-
};
|
|
844
|
-
maxVisibleItems: {
|
|
845
|
-
type: NumberConstructor;
|
|
846
|
-
default: number;
|
|
847
|
-
};
|
|
848
|
-
}>> & Readonly<{
|
|
849
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
850
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
851
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
852
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
853
|
-
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
854
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
833
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
834
|
+
}> & Omit<Readonly<{
|
|
835
|
+
appendTo?: string | HTMLElement;
|
|
836
|
+
offset?: number | {
|
|
837
|
+
mainAxis?: number;
|
|
838
|
+
crossAxis?: number;
|
|
839
|
+
};
|
|
840
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
841
|
+
preventOverflow?: boolean;
|
|
842
|
+
show?: boolean;
|
|
843
|
+
transitionProps?: TransitionProps;
|
|
844
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
845
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
846
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
847
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
848
|
+
update: () => void;
|
|
855
849
|
}> & {} & ComponentCustomProperties & {} & {
|
|
856
|
-
$slots: {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
}): any;
|
|
863
|
-
empty?(_: {}): any;
|
|
850
|
+
$slots: Readonly<{
|
|
851
|
+
trigger?: () => VNode[];
|
|
852
|
+
content?: () => VNode[];
|
|
853
|
+
}> & {
|
|
854
|
+
trigger?: () => VNode[];
|
|
855
|
+
content?: () => VNode[];
|
|
864
856
|
};
|
|
865
857
|
}) | null;
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
"
|
|
873
|
-
}, string,
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
858
|
+
listRef: HTMLUListElement;
|
|
859
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
860
|
+
show?: TooltipContentProps["show"];
|
|
861
|
+
} & TooltipContentProps> & Readonly<{
|
|
862
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
863
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
864
|
+
"update:show": (value: boolean | undefined) => any;
|
|
865
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
866
|
+
P: {};
|
|
867
|
+
B: {};
|
|
868
|
+
D: {};
|
|
869
|
+
C: {};
|
|
870
|
+
M: {};
|
|
871
|
+
Defaults: {};
|
|
872
|
+
}, Readonly<{
|
|
873
|
+
show?: TooltipContentProps["show"];
|
|
874
|
+
} & TooltipContentProps> & Readonly<{
|
|
875
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
876
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
877
|
+
}, any>;
|
|
883
878
|
|
|
884
|
-
declare type __VLS_Props =
|
|
885
|
-
messageRenderers?: Record<string, BubbleMessageRenderer>;
|
|
886
|
-
};
|
|
879
|
+
declare type __VLS_Props = DropdownMenuProps;
|
|
887
880
|
|
|
888
881
|
declare type __VLS_Props_2 = SuggestionPillsProps;
|
|
889
882
|
|
|
@@ -895,10 +888,14 @@ declare type __VLS_PublicProps = {
|
|
|
895
888
|
};
|
|
896
889
|
|
|
897
890
|
declare type __VLS_PublicProps_2 = {
|
|
891
|
+
'show'?: boolean;
|
|
892
|
+
} & __VLS_Props;
|
|
893
|
+
|
|
894
|
+
declare type __VLS_PublicProps_3 = {
|
|
898
895
|
'showAll'?: SuggestionPillsProps['showAll'];
|
|
899
896
|
} & __VLS_Props_2;
|
|
900
897
|
|
|
901
|
-
declare type
|
|
898
|
+
declare type __VLS_PublicProps_4 = {
|
|
902
899
|
'selectedGroup'?: string;
|
|
903
900
|
} & __VLS_Props_3;
|
|
904
901
|
|
|
@@ -911,79 +908,127 @@ declare function __VLS_template(): {
|
|
|
911
908
|
|
|
912
909
|
declare function __VLS_template_10(): {
|
|
913
910
|
attrs: Partial<{}>;
|
|
914
|
-
slots: Readonly<
|
|
911
|
+
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
915
912
|
refs: {};
|
|
916
|
-
rootEl:
|
|
913
|
+
rootEl: HTMLDivElement;
|
|
917
914
|
};
|
|
918
915
|
|
|
919
|
-
declare function
|
|
916
|
+
declare function __VLS_template_2(): {
|
|
920
917
|
attrs: Partial<{}>;
|
|
921
|
-
slots:
|
|
922
|
-
'category-label'?(_: {
|
|
923
|
-
category: Category_2;
|
|
924
|
-
}): any;
|
|
925
|
-
'question-item'?(_: {
|
|
926
|
-
question: Question_2;
|
|
927
|
-
index: number;
|
|
928
|
-
}): any;
|
|
929
|
-
'loading-indicator'?(_: {}): any;
|
|
930
|
-
'empty-state'?(_: {}): any;
|
|
931
|
-
};
|
|
918
|
+
slots: Readonly<ContainerSlots> & ContainerSlots;
|
|
932
919
|
refs: {};
|
|
933
920
|
rootEl: HTMLDivElement;
|
|
934
921
|
};
|
|
935
922
|
|
|
936
|
-
declare function
|
|
937
|
-
attrs: Partial<{}>;
|
|
938
|
-
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
939
|
-
refs: {
|
|
940
|
-
popoverTriggerRef: HTMLDivElement;
|
|
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;
|
|
961
|
-
};
|
|
962
|
-
rootEl: any;
|
|
963
|
-
};
|
|
964
|
-
|
|
965
|
-
declare function __VLS_template_2(): {
|
|
923
|
+
declare function __VLS_template_3(): {
|
|
966
924
|
attrs: Partial<{}>;
|
|
967
925
|
slots: {
|
|
968
|
-
|
|
926
|
+
overlay?(_: {
|
|
927
|
+
isDragging: true;
|
|
928
|
+
}): any;
|
|
969
929
|
};
|
|
970
930
|
refs: {};
|
|
971
931
|
rootEl: any;
|
|
972
932
|
};
|
|
973
933
|
|
|
974
|
-
declare function __VLS_template_3(): {
|
|
975
|
-
attrs: Partial<{}>;
|
|
976
|
-
slots: Readonly<ContainerSlots> & ContainerSlots;
|
|
977
|
-
refs: {};
|
|
978
|
-
rootEl: HTMLDivElement;
|
|
979
|
-
};
|
|
980
|
-
|
|
981
934
|
declare function __VLS_template_4(): {
|
|
982
935
|
attrs: Partial<{}>;
|
|
983
|
-
slots:
|
|
936
|
+
slots: {
|
|
937
|
+
trigger?(_: {}): any;
|
|
938
|
+
};
|
|
984
939
|
refs: {
|
|
985
|
-
|
|
986
|
-
|
|
940
|
+
basePopperRef: ({
|
|
941
|
+
$: ComponentInternalInstance;
|
|
942
|
+
$data: {};
|
|
943
|
+
$props: {
|
|
944
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
945
|
+
readonly offset?: number | {
|
|
946
|
+
mainAxis?: number;
|
|
947
|
+
crossAxis?: number;
|
|
948
|
+
} | undefined;
|
|
949
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
950
|
+
readonly preventOverflow?: boolean | undefined;
|
|
951
|
+
readonly show?: boolean | undefined;
|
|
952
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
953
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
954
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
955
|
+
$attrs: {
|
|
956
|
+
[x: string]: unknown;
|
|
957
|
+
};
|
|
958
|
+
$refs: {
|
|
959
|
+
[x: string]: unknown;
|
|
960
|
+
};
|
|
961
|
+
$slots: Readonly<{
|
|
962
|
+
[name: string]: Slot<any> | undefined;
|
|
963
|
+
}>;
|
|
964
|
+
$root: ComponentPublicInstance | null;
|
|
965
|
+
$parent: ComponentPublicInstance | null;
|
|
966
|
+
$host: Element | null;
|
|
967
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
968
|
+
$el: any;
|
|
969
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
970
|
+
appendTo?: string | HTMLElement;
|
|
971
|
+
offset?: number | {
|
|
972
|
+
mainAxis?: number;
|
|
973
|
+
crossAxis?: number;
|
|
974
|
+
};
|
|
975
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
976
|
+
preventOverflow?: boolean;
|
|
977
|
+
show?: boolean;
|
|
978
|
+
transitionProps?: TransitionProps;
|
|
979
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
980
|
+
}> & Readonly<{}>, {
|
|
981
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
982
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
983
|
+
update: () => void;
|
|
984
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
985
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
986
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
987
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
988
|
+
created?: (() => void) | (() => void)[];
|
|
989
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
990
|
+
mounted?: (() => void) | (() => void)[];
|
|
991
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
992
|
+
updated?: (() => void) | (() => void)[];
|
|
993
|
+
activated?: (() => void) | (() => void)[];
|
|
994
|
+
deactivated?: (() => void) | (() => void)[];
|
|
995
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
996
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
997
|
+
destroyed?: (() => void) | (() => void)[];
|
|
998
|
+
unmounted?: (() => void) | (() => void)[];
|
|
999
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1000
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1001
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1002
|
+
};
|
|
1003
|
+
$forceUpdate: () => void;
|
|
1004
|
+
$nextTick: nextTick;
|
|
1005
|
+
$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;
|
|
1006
|
+
} & Readonly<{
|
|
1007
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1008
|
+
}> & Omit<Readonly<{
|
|
1009
|
+
appendTo?: string | HTMLElement;
|
|
1010
|
+
offset?: number | {
|
|
1011
|
+
mainAxis?: number;
|
|
1012
|
+
crossAxis?: number;
|
|
1013
|
+
};
|
|
1014
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1015
|
+
preventOverflow?: boolean;
|
|
1016
|
+
show?: boolean;
|
|
1017
|
+
transitionProps?: TransitionProps;
|
|
1018
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1019
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1020
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1021
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1022
|
+
update: () => void;
|
|
1023
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1024
|
+
$slots: Readonly<{
|
|
1025
|
+
trigger?: () => VNode[];
|
|
1026
|
+
content?: () => VNode[];
|
|
1027
|
+
}> & {
|
|
1028
|
+
trigger?: () => VNode[];
|
|
1029
|
+
content?: () => VNode[];
|
|
1030
|
+
};
|
|
1031
|
+
}) | null;
|
|
987
1032
|
};
|
|
988
1033
|
rootEl: any;
|
|
989
1034
|
};
|
|
@@ -1010,32 +1055,19 @@ declare function __VLS_template_6(): {
|
|
|
1010
1055
|
senderRef: HTMLDivElement;
|
|
1011
1056
|
inputWrapperRef: HTMLDivElement;
|
|
1012
1057
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
onInput?: ((value: string) => any) | undefined;
|
|
1018
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
1019
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
1020
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
1021
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
1058
|
+
modelValue?: UserItem[];
|
|
1059
|
+
}> & Readonly<{
|
|
1060
|
+
onSubmit?: (() => any) | undefined;
|
|
1061
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
1022
1062
|
}>, {
|
|
1023
|
-
|
|
1024
|
-
resetFields: () => void;
|
|
1063
|
+
clearHistory: () => void;
|
|
1025
1064
|
activateFirstField: () => void;
|
|
1026
|
-
getValueFromDOM: () => string;
|
|
1027
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
1028
1065
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1029
|
-
"update:
|
|
1066
|
+
"update:modelValue": (value: UserItem[]) => any;
|
|
1030
1067
|
} & {
|
|
1031
|
-
|
|
1032
|
-
focus: (event: FocusEvent) => any;
|
|
1033
|
-
input: (value: string) => any;
|
|
1034
|
-
submit: (value: string) => any;
|
|
1035
|
-
"content-status": (hasContent: boolean) => any;
|
|
1036
|
-
"empty-content": () => any;
|
|
1068
|
+
submit: () => any;
|
|
1037
1069
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1038
|
-
|
|
1070
|
+
editorRef: HTMLDivElement;
|
|
1039
1071
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1040
1072
|
P: {};
|
|
1041
1073
|
B: {};
|
|
@@ -1044,21 +1076,13 @@ declare function __VLS_template_6(): {
|
|
|
1044
1076
|
M: {};
|
|
1045
1077
|
Defaults: {};
|
|
1046
1078
|
}, Readonly<{
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
onInput?: ((value: string) => any) | undefined;
|
|
1052
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
1053
|
-
"onContent-status"?: ((hasContent: boolean) => any) | undefined;
|
|
1054
|
-
"onEmpty-content"?: (() => any) | undefined;
|
|
1055
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
1079
|
+
modelValue?: UserItem[];
|
|
1080
|
+
}> & Readonly<{
|
|
1081
|
+
onSubmit?: (() => any) | undefined;
|
|
1082
|
+
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
1056
1083
|
}>, {
|
|
1057
|
-
|
|
1058
|
-
resetFields: () => void;
|
|
1084
|
+
clearHistory: () => void;
|
|
1059
1085
|
activateFirstField: () => void;
|
|
1060
|
-
getValueFromDOM: () => string;
|
|
1061
|
-
setTemplate: (params: SetTemplateParams_2) => void;
|
|
1062
1086
|
}, {}, {}, {}, {}> | null;
|
|
1063
1087
|
inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1064
1088
|
_constants: {
|
|
@@ -1511,61 +1535,71 @@ declare function __VLS_template_6(): {
|
|
|
1511
1535
|
inputBoxType: string;
|
|
1512
1536
|
}> | null;
|
|
1513
1537
|
buttonsContainerRef: HTMLDivElement;
|
|
1538
|
+
suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
|
|
1539
|
+
onSelect?: ((item: string) => any) | undefined;
|
|
1540
|
+
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
1541
|
+
"onItem-leave"?: (() => any) | undefined;
|
|
1542
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1543
|
+
select: (item: string) => any;
|
|
1544
|
+
"item-hover": (index: number) => any;
|
|
1545
|
+
"item-leave": () => any;
|
|
1546
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1514
1547
|
suggestionsListRef: HTMLDivElement;
|
|
1548
|
+
}, any, ComponentProvideOptions, {
|
|
1549
|
+
P: {};
|
|
1550
|
+
B: {};
|
|
1551
|
+
D: {};
|
|
1552
|
+
C: {};
|
|
1553
|
+
M: {};
|
|
1554
|
+
Defaults: {};
|
|
1555
|
+
}, Readonly<Props> & Readonly<{
|
|
1556
|
+
onSelect?: ((item: string) => any) | undefined;
|
|
1557
|
+
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
1558
|
+
"onItem-leave"?: (() => any) | undefined;
|
|
1559
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
1515
1560
|
};
|
|
1516
1561
|
rootEl: HTMLDivElement;
|
|
1517
1562
|
};
|
|
1518
1563
|
|
|
1519
1564
|
declare function __VLS_template_7(): {
|
|
1520
1565
|
attrs: Partial<{}>;
|
|
1521
|
-
slots: Readonly<
|
|
1566
|
+
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1522
1567
|
refs: {};
|
|
1523
|
-
rootEl:
|
|
1568
|
+
rootEl: HTMLButtonElement;
|
|
1524
1569
|
};
|
|
1525
1570
|
|
|
1526
1571
|
declare function __VLS_template_8(): {
|
|
1527
1572
|
attrs: Partial<{}>;
|
|
1528
|
-
slots:
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
onInput: (event: Event, text: string) => boolean;
|
|
1536
|
-
}): any;
|
|
1537
|
-
'title-icon'?(_: {}): any;
|
|
1538
|
-
'category-label'?(_: {
|
|
1539
|
-
category: any;
|
|
1540
|
-
}): any;
|
|
1541
|
-
item?(_: {
|
|
1542
|
-
item: SuggestionItem;
|
|
1543
|
-
active: boolean;
|
|
1544
|
-
}): any;
|
|
1545
|
-
'loading-indicator'?(_: {}): any;
|
|
1546
|
-
empty?(_: {}): any;
|
|
1573
|
+
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1574
|
+
refs: {
|
|
1575
|
+
containerWrapperRef: HTMLDivElement;
|
|
1576
|
+
containerRef: HTMLDivElement;
|
|
1577
|
+
staticMaybeItemRefs: unknown[];
|
|
1578
|
+
floatingItemsRef: HTMLDivElement;
|
|
1579
|
+
floatingMaybeItemRefs: unknown[];
|
|
1547
1580
|
};
|
|
1581
|
+
rootEl: HTMLDivElement;
|
|
1582
|
+
};
|
|
1583
|
+
|
|
1584
|
+
declare function __VLS_template_9(): {
|
|
1585
|
+
attrs: Partial<{}>;
|
|
1586
|
+
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
1548
1587
|
refs: {
|
|
1549
|
-
|
|
1550
|
-
panelRef: ({
|
|
1588
|
+
basePopperRef: ({
|
|
1551
1589
|
$: ComponentInternalInstance;
|
|
1552
1590
|
$data: {};
|
|
1553
|
-
$props:
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
readonly
|
|
1560
|
-
readonly
|
|
1561
|
-
readonly
|
|
1562
|
-
readonly
|
|
1563
|
-
readonly
|
|
1564
|
-
|
|
1565
|
-
readonly onSelect?: ((...args: any[]) => any) | undefined;
|
|
1566
|
-
readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1567
|
-
readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1568
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
|
|
1591
|
+
$props: {
|
|
1592
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
1593
|
+
readonly offset?: number | {
|
|
1594
|
+
mainAxis?: number;
|
|
1595
|
+
crossAxis?: number;
|
|
1596
|
+
} | undefined;
|
|
1597
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
1598
|
+
readonly preventOverflow?: boolean | undefined;
|
|
1599
|
+
readonly show?: boolean | undefined;
|
|
1600
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
1601
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
1602
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1569
1603
|
$attrs: {
|
|
1570
1604
|
[x: string]: unknown;
|
|
1571
1605
|
};
|
|
@@ -1578,46 +1612,25 @@ declare function __VLS_template_8(): {
|
|
|
1578
1612
|
$root: ComponentPublicInstance | null;
|
|
1579
1613
|
$parent: ComponentPublicInstance | null;
|
|
1580
1614
|
$host: Element | null;
|
|
1581
|
-
$emit: (
|
|
1582
|
-
$el:
|
|
1583
|
-
$options: ComponentOptionsBase<Readonly<
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
categories: {
|
|
1589
|
-
type: PropType<Category[]>;
|
|
1590
|
-
default: () => never[];
|
|
1615
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
1616
|
+
$el: any;
|
|
1617
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
1618
|
+
appendTo?: string | HTMLElement;
|
|
1619
|
+
offset?: number | {
|
|
1620
|
+
mainAxis?: number;
|
|
1621
|
+
crossAxis?: number;
|
|
1591
1622
|
};
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
};
|
|
1604
|
-
}>> & Readonly<{
|
|
1605
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
1606
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1607
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1608
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1609
|
-
}>, {
|
|
1610
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1611
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1612
|
-
close: (...args: any[]) => void;
|
|
1613
|
-
select: (...args: any[]) => void;
|
|
1614
|
-
"category-select": (...args: any[]) => void;
|
|
1615
|
-
"item-hover": (...args: any[]) => void;
|
|
1616
|
-
}, string, {
|
|
1617
|
-
title: string;
|
|
1618
|
-
loading: boolean;
|
|
1619
|
-
categories: Category[];
|
|
1620
|
-
maxVisibleItems: number;
|
|
1623
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1624
|
+
preventOverflow?: boolean;
|
|
1625
|
+
show?: boolean;
|
|
1626
|
+
transitionProps?: TransitionProps;
|
|
1627
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1628
|
+
}> & Readonly<{}>, {
|
|
1629
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1630
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1631
|
+
update: () => void;
|
|
1632
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1633
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1621
1634
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1622
1635
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1623
1636
|
created?: (() => void) | (() => void)[];
|
|
@@ -1639,71 +1652,58 @@ declare function __VLS_template_8(): {
|
|
|
1639
1652
|
$nextTick: nextTick;
|
|
1640
1653
|
$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;
|
|
1641
1654
|
} & Readonly<{
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
};
|
|
1659
|
-
title: {
|
|
1660
|
-
type: StringConstructor;
|
|
1661
|
-
default: string;
|
|
1662
|
-
};
|
|
1663
|
-
maxVisibleItems: {
|
|
1664
|
-
type: NumberConstructor;
|
|
1665
|
-
default: number;
|
|
1666
|
-
};
|
|
1667
|
-
}>> & Readonly<{
|
|
1668
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
1669
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1670
|
-
"onCategory-select"?: ((...args: any[]) => any) | undefined;
|
|
1671
|
-
"onItem-hover"?: ((...args: any[]) => any) | undefined;
|
|
1672
|
-
}>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
|
|
1673
|
-
handleKeyDown: (e: KeyboardEvent) => void;
|
|
1655
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1656
|
+
}> & Omit<Readonly<{
|
|
1657
|
+
appendTo?: string | HTMLElement;
|
|
1658
|
+
offset?: number | {
|
|
1659
|
+
mainAxis?: number;
|
|
1660
|
+
crossAxis?: number;
|
|
1661
|
+
};
|
|
1662
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1663
|
+
preventOverflow?: boolean;
|
|
1664
|
+
show?: boolean;
|
|
1665
|
+
transitionProps?: TransitionProps;
|
|
1666
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1667
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1668
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1669
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1670
|
+
update: () => void;
|
|
1674
1671
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1675
|
-
$slots: {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
}): any;
|
|
1682
|
-
empty?(_: {}): any;
|
|
1672
|
+
$slots: Readonly<{
|
|
1673
|
+
trigger?: () => VNode[];
|
|
1674
|
+
content?: () => VNode[];
|
|
1675
|
+
}> & {
|
|
1676
|
+
trigger?: () => VNode[];
|
|
1677
|
+
content?: () => VNode[];
|
|
1683
1678
|
};
|
|
1684
1679
|
}) | null;
|
|
1680
|
+
listRef: HTMLUListElement;
|
|
1681
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1682
|
+
show?: TooltipContentProps["show"];
|
|
1683
|
+
} & TooltipContentProps> & Readonly<{
|
|
1684
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1685
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1686
|
+
"update:show": (value: boolean | undefined) => any;
|
|
1687
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1688
|
+
P: {};
|
|
1689
|
+
B: {};
|
|
1690
|
+
D: {};
|
|
1691
|
+
C: {};
|
|
1692
|
+
M: {};
|
|
1693
|
+
Defaults: {};
|
|
1694
|
+
}, Readonly<{
|
|
1695
|
+
show?: TooltipContentProps["show"];
|
|
1696
|
+
} & TooltipContentProps> & Readonly<{
|
|
1697
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1698
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
1685
1699
|
};
|
|
1686
|
-
rootEl:
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
declare function __VLS_template_9(): {
|
|
1690
|
-
attrs: Partial<{}>;
|
|
1691
|
-
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1692
|
-
refs: {
|
|
1693
|
-
containerWrapperRef: HTMLDivElement;
|
|
1694
|
-
containerRef: HTMLDivElement;
|
|
1695
|
-
};
|
|
1696
|
-
rootEl: HTMLDivElement;
|
|
1700
|
+
rootEl: any;
|
|
1697
1701
|
};
|
|
1698
1702
|
|
|
1699
1703
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1700
1704
|
|
|
1701
1705
|
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
1702
1706
|
|
|
1703
|
-
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
1704
|
-
|
|
1705
|
-
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
1706
|
-
|
|
1707
1707
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1708
1708
|
|
|
1709
1709
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1732,18 +1732,6 @@ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
|
1732
1732
|
};
|
|
1733
1733
|
};
|
|
1734
1734
|
|
|
1735
|
-
declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
1736
|
-
new (): {
|
|
1737
|
-
$slots: S;
|
|
1738
|
-
};
|
|
1739
|
-
};
|
|
1740
|
-
|
|
1741
|
-
declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
1742
|
-
new (): {
|
|
1743
|
-
$slots: S;
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
|
|
1747
1735
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1748
1736
|
new (): {
|
|
1749
1737
|
$slots: S;
|
|
@@ -1792,11 +1780,18 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1792
1780
|
};
|
|
1793
1781
|
};
|
|
1794
1782
|
|
|
1783
|
+
export declare interface ActionButton {
|
|
1784
|
+
type: string;
|
|
1785
|
+
label: string;
|
|
1786
|
+
handler?: (file: Attachment) => void;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1795
1789
|
export declare interface ActionButtonsProps {
|
|
1796
1790
|
loading?: boolean;
|
|
1797
1791
|
disabled?: boolean;
|
|
1798
1792
|
showClear?: boolean;
|
|
1799
1793
|
hasContent?: boolean;
|
|
1794
|
+
buttonGroup?: ButtonGroupConfig;
|
|
1800
1795
|
allowSpeech?: boolean;
|
|
1801
1796
|
speechStatus?: {
|
|
1802
1797
|
isRecording: boolean;
|
|
@@ -1806,6 +1801,31 @@ export declare interface ActionButtonsProps {
|
|
|
1806
1801
|
submitType?: SubmitTrigger;
|
|
1807
1802
|
showShortcuts?: boolean;
|
|
1808
1803
|
isOverLimit?: boolean;
|
|
1804
|
+
stopText?: string;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
export declare type Attachment = UrlAttachment | RawFileAttachment;
|
|
1808
|
+
|
|
1809
|
+
export declare interface AttachmentListEmits {
|
|
1810
|
+
(e: 'update:items', items: Attachment[]): void;
|
|
1811
|
+
(e: 'remove', file: Attachment): void;
|
|
1812
|
+
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
1813
|
+
(e: 'retry', file: Attachment): void;
|
|
1814
|
+
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
1815
|
+
(e: 'action', payload: {
|
|
1816
|
+
action: ActionButton;
|
|
1817
|
+
file: Attachment;
|
|
1818
|
+
}): void;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
export declare interface AttachmentListProps {
|
|
1822
|
+
items?: Attachment[];
|
|
1823
|
+
disabled?: boolean;
|
|
1824
|
+
wrap?: boolean;
|
|
1825
|
+
fileIcons?: Record<string, Component>;
|
|
1826
|
+
actions?: ActionButton[];
|
|
1827
|
+
variant?: DisplayVariant;
|
|
1828
|
+
fileMatchers?: FileTypeMatcher[];
|
|
1809
1829
|
}
|
|
1810
1830
|
|
|
1811
1831
|
export declare type AutoSize = boolean | {
|
|
@@ -1813,6 +1833,18 @@ export declare type AutoSize = boolean | {
|
|
|
1813
1833
|
maxRows: number;
|
|
1814
1834
|
};
|
|
1815
1835
|
|
|
1836
|
+
export declare interface BaseAttachment {
|
|
1837
|
+
id?: string;
|
|
1838
|
+
name?: string;
|
|
1839
|
+
status?: FileStatus;
|
|
1840
|
+
fileType?: FileType;
|
|
1841
|
+
message?: string;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
|
|
1845
|
+
|
|
1846
|
+
export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
1847
|
+
|
|
1816
1848
|
declare interface BaseHistoryProps {
|
|
1817
1849
|
activeTab?: string;
|
|
1818
1850
|
searchBar?: boolean;
|
|
@@ -1822,49 +1854,21 @@ declare interface BaseHistoryProps {
|
|
|
1822
1854
|
selected?: string;
|
|
1823
1855
|
}
|
|
1824
1856
|
|
|
1825
|
-
declare
|
|
1857
|
+
declare interface BaseTextItem {
|
|
1858
|
+
id: string;
|
|
1859
|
+
type: string;
|
|
1860
|
+
content: string;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
declare const Bubble: typeof _default_15 & {
|
|
1826
1864
|
install: typeof bubbleInstall;
|
|
1827
1865
|
};
|
|
1828
1866
|
export { Bubble }
|
|
1829
1867
|
export { Bubble as TrBubble }
|
|
1830
1868
|
|
|
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
|
-
|
|
1865
1869
|
declare const bubbleInstall: (app: App) => void;
|
|
1866
1870
|
|
|
1867
|
-
declare const BubbleList: typeof
|
|
1871
|
+
declare const BubbleList: typeof _default_16 & {
|
|
1868
1872
|
install: typeof bubbleListInstall;
|
|
1869
1873
|
};
|
|
1870
1874
|
export { BubbleList }
|
|
@@ -1880,71 +1884,37 @@ export declare interface BubbleListProps {
|
|
|
1880
1884
|
* 每个角色的默认配置项
|
|
1881
1885
|
*/
|
|
1882
1886
|
roles?: Record<string, BubbleRoleConfig>;
|
|
1883
|
-
/**
|
|
1884
|
-
* 列表是否加载中
|
|
1885
|
-
*/
|
|
1886
|
-
loading?: boolean;
|
|
1887
|
-
/**
|
|
1888
|
-
* 指定哪个角色可以有加载中状态
|
|
1889
|
-
*/
|
|
1890
|
-
loadingRole?: string;
|
|
1891
1887
|
autoScroll?: boolean;
|
|
1892
1888
|
}
|
|
1893
1889
|
|
|
1894
|
-
export declare
|
|
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;
|
|
1919
|
-
|
|
1920
|
-
export declare interface BubbleMessageProps {
|
|
1921
|
-
type: string;
|
|
1922
|
-
[key: string]: any;
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component;
|
|
1890
|
+
export declare type BubblePalcement = 'start' | 'end';
|
|
1926
1891
|
|
|
1927
|
-
export declare interface BubbleProps
|
|
1892
|
+
export declare interface BubbleProps {
|
|
1928
1893
|
/**
|
|
1929
1894
|
* 气泡内容
|
|
1930
1895
|
*/
|
|
1931
1896
|
content?: string;
|
|
1932
|
-
messages?: BubbleMessageProps[];
|
|
1933
1897
|
id?: string | number | symbol;
|
|
1898
|
+
/**
|
|
1899
|
+
* 气泡位置
|
|
1900
|
+
*/
|
|
1901
|
+
placement?: BubblePalcement;
|
|
1902
|
+
avatar?: VNode;
|
|
1934
1903
|
role?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* 内容类型
|
|
1906
|
+
*/
|
|
1907
|
+
type?: 'text' | 'markdown';
|
|
1935
1908
|
loading?: boolean;
|
|
1936
1909
|
aborted?: boolean;
|
|
1910
|
+
/**
|
|
1911
|
+
* type 为 'markdown' 时,markdown 的配置项
|
|
1912
|
+
*/
|
|
1913
|
+
mdConfig?: Options;
|
|
1914
|
+
maxWidth?: string | number;
|
|
1937
1915
|
}
|
|
1938
1916
|
|
|
1939
|
-
declare
|
|
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 & {
|
|
1917
|
+
export declare type BubbleRoleConfig = Pick<BubbleProps, 'placement' | 'avatar' | 'type' | 'mdConfig' | 'maxWidth'> & {
|
|
1948
1918
|
slots?: BubbleSlots;
|
|
1949
1919
|
};
|
|
1950
1920
|
|
|
@@ -1960,25 +1930,9 @@ export declare interface BubbleSlots {
|
|
|
1960
1930
|
}) => unknown;
|
|
1961
1931
|
}
|
|
1962
1932
|
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
export declare interface Category {
|
|
1967
|
-
/** 唯一标识 */
|
|
1968
|
-
id: string;
|
|
1969
|
-
/** 显示名称 */
|
|
1970
|
-
label: string;
|
|
1971
|
-
/** 可选图标 */
|
|
1972
|
-
icon?: VNode;
|
|
1973
|
-
/** 该分类下的指令项 */
|
|
1974
|
-
items: SuggestionItem[];
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
declare interface Category_2 {
|
|
1978
|
-
id: string;
|
|
1979
|
-
label: string;
|
|
1980
|
-
icon?: string;
|
|
1981
|
-
questions: Question_2[];
|
|
1933
|
+
export declare interface ButtonGroupConfig {
|
|
1934
|
+
file?: ControlState & fileUploadConfig;
|
|
1935
|
+
submit?: ControlState;
|
|
1982
1936
|
}
|
|
1983
1937
|
|
|
1984
1938
|
export declare interface ContainerProps {
|
|
@@ -1999,16 +1953,21 @@ export declare interface ContainerSlots {
|
|
|
1999
1953
|
footer: () => unknown;
|
|
2000
1954
|
}
|
|
2001
1955
|
|
|
1956
|
+
export declare interface ControlState {
|
|
1957
|
+
tooltips?: string | TooltipRender;
|
|
1958
|
+
disabled?: boolean;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
2002
1961
|
declare const _default: {
|
|
2003
1962
|
install<T>(app: App<T>): void;
|
|
2004
1963
|
};
|
|
2005
1964
|
export default _default;
|
|
2006
1965
|
|
|
2007
|
-
declare const _default_10: typeof
|
|
1966
|
+
declare const _default_10: typeof _default_25 & {
|
|
2008
1967
|
install: typeof install_8;
|
|
2009
1968
|
};
|
|
2010
|
-
export { _default_10 as
|
|
2011
|
-
export { _default_10 as
|
|
1969
|
+
export { _default_10 as Sender }
|
|
1970
|
+
export { _default_10 as TrSender }
|
|
2012
1971
|
|
|
2013
1972
|
declare const _default_11: typeof _default_27 & {
|
|
2014
1973
|
install: typeof install_9;
|
|
@@ -2016,122 +1975,227 @@ declare const _default_11: typeof _default_27 & {
|
|
|
2016
1975
|
export { _default_11 as SuggestionPills }
|
|
2017
1976
|
export { _default_11 as TrSuggestionPills }
|
|
2018
1977
|
|
|
2019
|
-
declare const _default_12: typeof
|
|
1978
|
+
declare const _default_12: typeof _default_28 & {
|
|
2020
1979
|
install: typeof install_10;
|
|
2021
1980
|
};
|
|
2022
|
-
export { _default_12 as
|
|
2023
|
-
export { _default_12 as
|
|
1981
|
+
export { _default_12 as SuggestionPopover }
|
|
1982
|
+
export { _default_12 as TrSuggestionPopover }
|
|
2024
1983
|
|
|
2025
|
-
declare const _default_13: typeof
|
|
1984
|
+
declare const _default_13: typeof _default_29 & {
|
|
2026
1985
|
install: typeof install_11;
|
|
2027
1986
|
};
|
|
2028
|
-
export { _default_13 as
|
|
2029
|
-
export { _default_13 as
|
|
1987
|
+
export { _default_13 as TrWelcome }
|
|
1988
|
+
export { _default_13 as Welcome }
|
|
1989
|
+
|
|
1990
|
+
declare const _default_14: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1991
|
+
"update:items": (items: Attachment[]) => any;
|
|
1992
|
+
remove: (file: Attachment) => any;
|
|
1993
|
+
download: (event: MouseEvent, file: Attachment) => any;
|
|
1994
|
+
retry: (file: Attachment) => any;
|
|
1995
|
+
preview: (event: MouseEvent, file: Attachment) => any;
|
|
1996
|
+
action: (payload: {
|
|
1997
|
+
action: ActionButton;
|
|
1998
|
+
file: Attachment;
|
|
1999
|
+
}) => any;
|
|
2000
|
+
}, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
|
|
2001
|
+
"onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
|
|
2002
|
+
onRemove?: ((file: Attachment) => any) | undefined;
|
|
2003
|
+
onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2004
|
+
onRetry?: ((file: Attachment) => any) | undefined;
|
|
2005
|
+
onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2006
|
+
onAction?: ((payload: {
|
|
2007
|
+
action: ActionButton;
|
|
2008
|
+
file: Attachment;
|
|
2009
|
+
}) => any) | undefined;
|
|
2010
|
+
}>, {
|
|
2011
|
+
actions: ActionButton[];
|
|
2012
|
+
fileMatchers: FileTypeMatcher_2[];
|
|
2013
|
+
variant: DisplayVariant_2;
|
|
2014
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2030
2015
|
|
|
2031
|
-
declare const
|
|
2016
|
+
declare const _default_15: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2032
2017
|
|
|
2033
|
-
declare const
|
|
2018
|
+
declare const _default_16: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2034
2019
|
scrollContainerRef: HTMLDivElement;
|
|
2035
2020
|
}, HTMLDivElement>;
|
|
2036
2021
|
|
|
2037
|
-
declare const
|
|
2038
|
-
|
|
2039
|
-
declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2022
|
+
declare const _default_17: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2040
2023
|
|
|
2041
2024
|
declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2042
2025
|
|
|
2043
|
-
declare const _default_19:
|
|
2026
|
+
declare const _default_19: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2044
2027
|
|
|
2045
|
-
declare const _default_2: typeof
|
|
2028
|
+
declare const _default_2: typeof _default_14 & {
|
|
2046
2029
|
install: typeof install;
|
|
2047
2030
|
};
|
|
2048
|
-
export { _default_2 as
|
|
2049
|
-
export { _default_2 as
|
|
2031
|
+
export { _default_2 as Attachments }
|
|
2032
|
+
export { _default_2 as TrAttachments }
|
|
2050
2033
|
|
|
2051
|
-
declare const _default_20:
|
|
2052
|
-
|
|
2034
|
+
declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2035
|
+
|
|
2036
|
+
declare const _default_21: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2053
2037
|
action: (name: string) => any;
|
|
2038
|
+
operation: (name: string) => any;
|
|
2054
2039
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
2055
|
-
onOperation?: ((name: string) => any) | undefined;
|
|
2056
2040
|
onAction?: ((name: string) => any) | undefined;
|
|
2041
|
+
onOperation?: ((name: string) => any) | undefined;
|
|
2057
2042
|
}>, {
|
|
2058
2043
|
operationsLimit: number;
|
|
2059
2044
|
actionsLimit: number;
|
|
2060
2045
|
sourcesLinesLimit: number;
|
|
2061
2046
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2062
2047
|
|
|
2063
|
-
declare const
|
|
2048
|
+
declare const _default_22: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2064
2049
|
size: string | number;
|
|
2065
2050
|
svgSize: string | number;
|
|
2066
2051
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2067
2052
|
|
|
2068
|
-
declare const
|
|
2069
|
-
|
|
2070
|
-
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2053
|
+
declare const _default_23: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2071
2054
|
|
|
2072
|
-
declare const _default_24:
|
|
2055
|
+
declare const _default_24: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2073
2056
|
|
|
2074
|
-
declare const _default_25:
|
|
2057
|
+
declare const _default_25: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2075
2058
|
|
|
2076
|
-
declare const _default_26:
|
|
2059
|
+
declare const _default_26: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2077
2060
|
|
|
2078
|
-
declare const _default_27:
|
|
2061
|
+
declare const _default_27: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2079
2062
|
|
|
2080
|
-
declare const _default_28:
|
|
2063
|
+
declare const _default_28: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2081
2064
|
|
|
2082
|
-
declare const _default_29:
|
|
2065
|
+
declare const _default_29: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2083
2066
|
|
|
2084
|
-
declare const _default_3: typeof
|
|
2067
|
+
declare const _default_3: typeof _default_17 & {
|
|
2085
2068
|
install: typeof install_2;
|
|
2086
2069
|
};
|
|
2087
|
-
export { _default_3 as
|
|
2088
|
-
export { _default_3 as
|
|
2070
|
+
export { _default_3 as Container }
|
|
2071
|
+
export { _default_3 as TrContainer }
|
|
2089
2072
|
|
|
2090
|
-
declare const
|
|
2091
|
-
|
|
2092
|
-
declare const _default_4: typeof _default_19 & {
|
|
2073
|
+
declare const _default_4: typeof _default_18 & {
|
|
2093
2074
|
install: typeof install_3;
|
|
2094
2075
|
};
|
|
2095
|
-
export { _default_4 as
|
|
2096
|
-
export { _default_4 as
|
|
2076
|
+
export { _default_4 as Conversations }
|
|
2077
|
+
export { _default_4 as TrConversations }
|
|
2097
2078
|
|
|
2098
|
-
declare const _default_5: typeof
|
|
2079
|
+
declare const _default_5: typeof _default_19 & {
|
|
2099
2080
|
install: typeof install_4;
|
|
2100
2081
|
};
|
|
2101
|
-
export { _default_5 as
|
|
2102
|
-
export { _default_5 as
|
|
2082
|
+
export { _default_5 as DragOverlay }
|
|
2083
|
+
export { _default_5 as TrDragOverlay }
|
|
2103
2084
|
|
|
2104
|
-
declare const _default_6: {
|
|
2105
|
-
install:
|
|
2106
|
-
name: string;
|
|
2085
|
+
declare const _default_6: typeof _default_20 & {
|
|
2086
|
+
install: typeof install_5;
|
|
2107
2087
|
};
|
|
2108
|
-
export { _default_6 as
|
|
2109
|
-
export { _default_6 as
|
|
2088
|
+
export { _default_6 as DropdownMenu }
|
|
2089
|
+
export { _default_6 as TrDropdownMenu }
|
|
2110
2090
|
|
|
2111
2091
|
declare const _default_7: typeof _default_21 & {
|
|
2112
|
-
install: typeof
|
|
2092
|
+
install: typeof install_6;
|
|
2113
2093
|
};
|
|
2114
|
-
export { _default_7 as
|
|
2115
|
-
export { _default_7 as
|
|
2094
|
+
export { _default_7 as Feedback }
|
|
2095
|
+
export { _default_7 as TrFeedback }
|
|
2116
2096
|
|
|
2117
|
-
declare const _default_8:
|
|
2118
|
-
install:
|
|
2097
|
+
declare const _default_8: {
|
|
2098
|
+
install: <T>(app: App<T>) => void;
|
|
2099
|
+
name: string;
|
|
2119
2100
|
};
|
|
2120
|
-
export { _default_8 as
|
|
2121
|
-
export { _default_8 as
|
|
2101
|
+
export { _default_8 as History }
|
|
2102
|
+
export { _default_8 as TrHistory }
|
|
2122
2103
|
|
|
2123
|
-
declare const _default_9: typeof
|
|
2104
|
+
declare const _default_9: typeof _default_22 & {
|
|
2124
2105
|
install: typeof install_7;
|
|
2125
2106
|
};
|
|
2126
|
-
export { _default_9 as
|
|
2127
|
-
export { _default_9 as
|
|
2107
|
+
export { _default_9 as IconButton }
|
|
2108
|
+
export { _default_9 as TrIconButton }
|
|
2109
|
+
|
|
2110
|
+
export declare type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
2111
|
+
|
|
2112
|
+
declare interface DragAwareElement extends HTMLElement {
|
|
2113
|
+
__vDropzoneHandlers__?: Handlers;
|
|
2114
|
+
__vDropzoneOptions__?: DragAwareOptions;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
|
|
2118
|
+
|
|
2119
|
+
/**
|
|
2120
|
+
* 拖拽上传组件的属性
|
|
2121
|
+
*/
|
|
2122
|
+
export declare interface DragOverlayProps {
|
|
2123
|
+
/**
|
|
2124
|
+
* 覆盖层标题
|
|
2125
|
+
* @default ''
|
|
2126
|
+
*/
|
|
2127
|
+
overlayTitle?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* 覆盖层描述文本数组
|
|
2130
|
+
* @default []
|
|
2131
|
+
*/
|
|
2132
|
+
overlayDescription?: string[];
|
|
2133
|
+
/**
|
|
2134
|
+
* 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
|
|
2135
|
+
* @default false
|
|
2136
|
+
*/
|
|
2137
|
+
isDragging?: boolean;
|
|
2138
|
+
/**
|
|
2139
|
+
* @description 拖拽目标元素,用于定位覆盖层
|
|
2140
|
+
* @default null
|
|
2141
|
+
*/
|
|
2142
|
+
dragTarget?: HTMLElement | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* @description 是否全屏模式,控制覆盖层的边框显示
|
|
2145
|
+
* @default false
|
|
2146
|
+
*/
|
|
2147
|
+
fullscreen?: boolean;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
export declare interface DragOverlaySlots {
|
|
2151
|
+
/**
|
|
2152
|
+
* 覆盖层插槽,用于自定义拖拽时的覆盖层内容
|
|
2153
|
+
*/
|
|
2154
|
+
overlay?: (props: {
|
|
2155
|
+
isDragging: boolean;
|
|
2156
|
+
}) => unknown;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
/**
|
|
2160
|
+
* 拖拽区域错误码
|
|
2161
|
+
*/
|
|
2162
|
+
declare enum DragZoneErrorCode {
|
|
2163
|
+
/**
|
|
2164
|
+
* 文件类型不允许
|
|
2165
|
+
*/
|
|
2166
|
+
FileTypeNotAllowed = "file-type-not-allowed",
|
|
2167
|
+
/**
|
|
2168
|
+
* 文件大小超出限制
|
|
2169
|
+
*/
|
|
2170
|
+
FileSizeExceeded = "file-size-exceeded",
|
|
2171
|
+
/**
|
|
2172
|
+
* 文件数量超出限制
|
|
2173
|
+
*/
|
|
2174
|
+
FileCountExceeded = "file-count-exceeded"
|
|
2175
|
+
}
|
|
2128
2176
|
|
|
2129
2177
|
export declare interface DropdownMenuEmits {
|
|
2130
2178
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
2179
|
+
/**
|
|
2180
|
+
* 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
|
|
2181
|
+
*/
|
|
2182
|
+
(e: 'click-outside', event: MouseEvent): void;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
export declare interface DropdownMenuEventProps {
|
|
2186
|
+
onItemClick?: (item: DropdownMenuItem) => void;
|
|
2187
|
+
onClickOutside?: (event: MouseEvent) => void;
|
|
2131
2188
|
}
|
|
2132
2189
|
|
|
2133
2190
|
export declare interface DropdownMenuEvents {
|
|
2191
|
+
/**
|
|
2192
|
+
* @deprecated
|
|
2193
|
+
*/
|
|
2134
2194
|
itemClick?: (item: DropdownMenuItem) => void;
|
|
2195
|
+
/**
|
|
2196
|
+
* @deprecated
|
|
2197
|
+
*/
|
|
2198
|
+
clickOutside?: (event: MouseEvent) => void;
|
|
2135
2199
|
}
|
|
2136
2200
|
|
|
2137
2201
|
export declare interface DropdownMenuItem {
|
|
@@ -2140,13 +2204,69 @@ export declare interface DropdownMenuItem {
|
|
|
2140
2204
|
}
|
|
2141
2205
|
|
|
2142
2206
|
export declare interface DropdownMenuProps {
|
|
2207
|
+
appendTo?: string | HTMLElement;
|
|
2143
2208
|
items: DropdownMenuItem[];
|
|
2144
|
-
|
|
2145
|
-
|
|
2209
|
+
/**
|
|
2210
|
+
* 当 trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
|
|
2211
|
+
* 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
|
|
2212
|
+
*/
|
|
2213
|
+
show?: boolean;
|
|
2214
|
+
/**
|
|
2215
|
+
* 触发方式。默认值为 'click'
|
|
2216
|
+
*/
|
|
2217
|
+
trigger?: 'click' | 'hover' | 'manual';
|
|
2146
2218
|
}
|
|
2147
2219
|
|
|
2148
2220
|
export declare interface DropdownMenuSlots {
|
|
2149
|
-
|
|
2221
|
+
trigger?: () => VNode | VNode[];
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* 拖拽上传组件的属性
|
|
2226
|
+
*/
|
|
2227
|
+
export declare interface DropzoneBinding {
|
|
2228
|
+
/**
|
|
2229
|
+
* 允许上传的文件类型, 与原生 input 的 accept 属性一致
|
|
2230
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
2231
|
+
* @example '.jpg,.png,image/*'
|
|
2232
|
+
*/
|
|
2233
|
+
accept?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* 是否允许多选
|
|
2236
|
+
* @default true
|
|
2237
|
+
*/
|
|
2238
|
+
multiple?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* 是否禁用拖拽
|
|
2241
|
+
* @default false
|
|
2242
|
+
*/
|
|
2243
|
+
disabled?: boolean;
|
|
2244
|
+
/**
|
|
2245
|
+
* 单个文件的最大大小(单位:字节)
|
|
2246
|
+
* @default 10 * 1024 * 1024 (10MB)
|
|
2247
|
+
*/
|
|
2248
|
+
maxSize?: number;
|
|
2249
|
+
/**
|
|
2250
|
+
* 允许上传的最大文件数量
|
|
2251
|
+
* @default 3
|
|
2252
|
+
*/
|
|
2253
|
+
maxFiles?: number;
|
|
2254
|
+
/**
|
|
2255
|
+
* 拖拽完成后的回调
|
|
2256
|
+
* @param files 上传的文件
|
|
2257
|
+
*/
|
|
2258
|
+
onDrop: (files: File[]) => void;
|
|
2259
|
+
/**
|
|
2260
|
+
* 拖拽失败后的回调
|
|
2261
|
+
* @param rejection 拒绝信息
|
|
2262
|
+
*/
|
|
2263
|
+
onError: (rejection: FileRejection) => void;
|
|
2264
|
+
/**
|
|
2265
|
+
* 拖拽开始时的回调
|
|
2266
|
+
* @param dragging 是否正在拖拽
|
|
2267
|
+
* @param element 拖拽目标元素
|
|
2268
|
+
*/
|
|
2269
|
+
onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
|
|
2150
2270
|
}
|
|
2151
2271
|
|
|
2152
2272
|
export declare interface FeedbackEvents {
|
|
@@ -2175,6 +2295,52 @@ export declare interface FeedbackProps {
|
|
|
2175
2295
|
sourcesLinesLimit?: number;
|
|
2176
2296
|
}
|
|
2177
2297
|
|
|
2298
|
+
export declare interface FileCardEmits {
|
|
2299
|
+
(e: 'remove', file: Attachment): void;
|
|
2300
|
+
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
2301
|
+
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
2302
|
+
(e: 'retry', file: Attachment): void;
|
|
2303
|
+
(e: 'action', payload: {
|
|
2304
|
+
action: ActionButton;
|
|
2305
|
+
file: Attachment;
|
|
2306
|
+
}): void;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
export declare interface FileCardProps extends BaseCardProps {
|
|
2310
|
+
file: Attachment;
|
|
2311
|
+
variant: 'picture' | 'card';
|
|
2312
|
+
showStatus?: boolean;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* 文件拒绝信息
|
|
2317
|
+
*/
|
|
2318
|
+
export declare interface FileRejection extends RejectionReason {
|
|
2319
|
+
files: File[];
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
export declare type FileStatus = 'uploading' | 'success' | 'error';
|
|
2323
|
+
|
|
2324
|
+
export declare type FileType = BaseFileType | string;
|
|
2325
|
+
|
|
2326
|
+
export declare interface FileTypeMatcher {
|
|
2327
|
+
type: string;
|
|
2328
|
+
matcher: (file: File | string) => boolean;
|
|
2329
|
+
icon?: Component;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
declare interface fileUploadConfig {
|
|
2333
|
+
accept?: string;
|
|
2334
|
+
multiple?: boolean;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
export declare interface Handlers {
|
|
2338
|
+
handleDragEnter: (e: DragEvent) => void;
|
|
2339
|
+
handleDragOver: (e: DragEvent) => void;
|
|
2340
|
+
handleDragLeave: (e: DragEvent) => void;
|
|
2341
|
+
handleDrop: (e: DragEvent) => void;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2178
2344
|
export declare type HistoryData = HistoryItem[] | HistoryGroup[];
|
|
2179
2345
|
|
|
2180
2346
|
export declare interface HistoryEvents {
|
|
@@ -2260,7 +2426,7 @@ export declare type MultiTabHistoryProps = {
|
|
|
2260
2426
|
data: Record<string, HistoryData>;
|
|
2261
2427
|
} & BaseHistoryProps;
|
|
2262
2428
|
|
|
2263
|
-
declare const Prompt: typeof
|
|
2429
|
+
declare const Prompt: typeof _default_23 & {
|
|
2264
2430
|
install: typeof installPrompt;
|
|
2265
2431
|
};
|
|
2266
2432
|
export { Prompt }
|
|
@@ -2293,7 +2459,7 @@ export declare interface PromptProps {
|
|
|
2293
2459
|
badge?: string | VNode;
|
|
2294
2460
|
}
|
|
2295
2461
|
|
|
2296
|
-
declare const Prompts: typeof
|
|
2462
|
+
declare const Prompts: typeof _default_24 & {
|
|
2297
2463
|
install: typeof installPrompts;
|
|
2298
2464
|
};
|
|
2299
2465
|
export { Prompts }
|
|
@@ -2330,55 +2496,23 @@ export declare interface PromptsSlots {
|
|
|
2330
2496
|
footer?: () => unknown;
|
|
2331
2497
|
}
|
|
2332
2498
|
|
|
2333
|
-
declare interface
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2499
|
+
export declare interface RawFileAttachment extends BaseAttachment {
|
|
2500
|
+
rawFile: File;
|
|
2501
|
+
url?: string;
|
|
2502
|
+
size?: number;
|
|
2337
2503
|
}
|
|
2338
2504
|
|
|
2339
2505
|
/**
|
|
2340
|
-
*
|
|
2506
|
+
* 文件拒绝原因
|
|
2341
2507
|
*/
|
|
2342
|
-
declare interface
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
* 包含多个分类,每个分类下有多个问题
|
|
2346
|
-
*/
|
|
2347
|
-
categories: Category_2[];
|
|
2348
|
-
/**
|
|
2349
|
-
* 浮动显示的问题列表
|
|
2350
|
-
* 显示在组件底部的常见问题胶囊
|
|
2351
|
-
*/
|
|
2352
|
-
commonQuestions: Question_2[];
|
|
2353
|
-
/**
|
|
2354
|
-
* 是否初始展开常见问题
|
|
2355
|
-
* @default false
|
|
2356
|
-
*/
|
|
2357
|
-
initialExpanded?: boolean;
|
|
2358
|
-
/**
|
|
2359
|
-
* 弹窗宽度
|
|
2360
|
-
* @default '640px'
|
|
2361
|
-
*/
|
|
2362
|
-
modalWidth?: string;
|
|
2363
|
-
/**
|
|
2364
|
-
* 主题类型
|
|
2365
|
-
* @default 'light'
|
|
2366
|
-
*/
|
|
2367
|
-
theme?: ThemeType_3;
|
|
2368
|
-
/**
|
|
2369
|
-
* 是否点击外部关闭弹窗
|
|
2370
|
-
* @default true
|
|
2371
|
-
*/
|
|
2372
|
-
closeOnClickOutside?: boolean;
|
|
2373
|
-
/**
|
|
2374
|
-
* 是否显示加载中状态
|
|
2375
|
-
* @default false
|
|
2376
|
-
*/
|
|
2377
|
-
loading?: boolean;
|
|
2508
|
+
export declare interface RejectionReason {
|
|
2509
|
+
code: DragZoneErrorCode;
|
|
2510
|
+
message: string;
|
|
2378
2511
|
}
|
|
2379
2512
|
|
|
2380
2513
|
export declare type SenderEmits = {
|
|
2381
2514
|
(e: 'update:modelValue', value: string): void;
|
|
2515
|
+
(e: 'update:templateData', value: UserItem[]): void;
|
|
2382
2516
|
(e: 'submit', value: string): void;
|
|
2383
2517
|
(e: 'clear'): void;
|
|
2384
2518
|
(e: 'speech-start'): void;
|
|
@@ -2391,6 +2525,7 @@ export declare type SenderEmits = {
|
|
|
2391
2525
|
(e: 'escape-press'): void;
|
|
2392
2526
|
(e: 'cancel'): void;
|
|
2393
2527
|
(e: 'reset-template'): void;
|
|
2528
|
+
(e: 'files-selected', files: File[]): void;
|
|
2394
2529
|
};
|
|
2395
2530
|
|
|
2396
2531
|
export declare interface SenderProps {
|
|
@@ -2405,6 +2540,7 @@ export declare interface SenderProps {
|
|
|
2405
2540
|
modelValue?: string;
|
|
2406
2541
|
mode?: InputMode;
|
|
2407
2542
|
maxLength?: number;
|
|
2543
|
+
buttonGroup?: ButtonGroupConfig;
|
|
2408
2544
|
submitType?: SubmitTrigger;
|
|
2409
2545
|
speech?: boolean | SpeechConfig;
|
|
2410
2546
|
placeholder?: string;
|
|
@@ -2412,19 +2548,8 @@ export declare interface SenderProps {
|
|
|
2412
2548
|
suggestions?: string[];
|
|
2413
2549
|
suggestionPopupWidth?: string | number;
|
|
2414
2550
|
theme?: ThemeType;
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
templateInitialValues?: Record<string, string>;
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
/**
|
|
2421
|
-
* 设置模板的参数接口
|
|
2422
|
-
*/
|
|
2423
|
-
export declare interface SetTemplateParams {
|
|
2424
|
-
/** 模板字符串,格式为普通文本与 [占位符] 的组合 */
|
|
2425
|
-
template: string;
|
|
2426
|
-
/** 字段初始值,键为占位符文本,值为初始内容 */
|
|
2427
|
-
initialValues?: Record<string, string>;
|
|
2551
|
+
templateData?: UserItem[];
|
|
2552
|
+
stopText?: string;
|
|
2428
2553
|
}
|
|
2429
2554
|
|
|
2430
2555
|
export declare type SingleTabHistoryProps = {
|
|
@@ -2461,81 +2586,23 @@ export declare interface SpeechState {
|
|
|
2461
2586
|
|
|
2462
2587
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
2463
2588
|
|
|
2464
|
-
declare interface SuggestionBaseItem {
|
|
2589
|
+
export declare interface SuggestionBaseItem {
|
|
2465
2590
|
id: string;
|
|
2466
2591
|
text: string;
|
|
2467
2592
|
}
|
|
2468
2593
|
|
|
2469
|
-
declare type SuggestionData<T = Record<string, unknown>> = (
|
|
2594
|
+
export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
|
|
2470
2595
|
|
|
2471
|
-
|
|
2472
|
-
* 组件事件
|
|
2473
|
-
*/
|
|
2474
|
-
export declare interface SuggestionEmits {
|
|
2475
|
-
/** 双向绑定打开状态 (v-model) */
|
|
2476
|
-
(e: 'update:open', value: boolean): void;
|
|
2477
|
-
/** 选中指令项 */
|
|
2478
|
-
(e: 'select', value: string, context?: TriggerContext): void;
|
|
2479
|
-
/** 关闭面板 */
|
|
2480
|
-
(e: 'close'): void;
|
|
2481
|
-
/** 触发回调 */
|
|
2482
|
-
(e: 'trigger', handler: TriggerHandler): void;
|
|
2483
|
-
/** 选择分类 */
|
|
2484
|
-
(e: 'category-select', category: Category): void;
|
|
2485
|
-
/** 点击胶囊指令 */
|
|
2486
|
-
(e: 'suggestion-select', item: SuggestionItem): void;
|
|
2487
|
-
/** 展开/收起状态变化 */
|
|
2488
|
-
(e: 'update:expanded', expanded: boolean): void;
|
|
2489
|
-
/** 填充模板到输入框 */
|
|
2490
|
-
(e: 'fill-template', template: string): void;
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
2596
|
+
export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
2494
2597
|
group: string;
|
|
2495
2598
|
label: string;
|
|
2496
2599
|
icon?: VNode | Component;
|
|
2497
|
-
items:
|
|
2600
|
+
items: SuggestionItem<T>[];
|
|
2498
2601
|
}
|
|
2499
2602
|
|
|
2500
|
-
|
|
2501
|
-
* 指令项定义
|
|
2502
|
-
*/
|
|
2503
|
-
export declare interface SuggestionItem {
|
|
2504
|
-
/** 唯一标识 */
|
|
2505
|
-
id: string;
|
|
2506
|
-
/** 显示文本 */
|
|
2507
|
-
text: string;
|
|
2508
|
-
/** 指令值 */
|
|
2509
|
-
value: string;
|
|
2510
|
-
/** 图标 */
|
|
2511
|
-
icon?: VNode;
|
|
2512
|
-
/** 关键词,用于搜索和过滤 */
|
|
2513
|
-
keywords?: string[];
|
|
2514
|
-
/** 描述文本 */
|
|
2515
|
-
description?: string;
|
|
2516
|
-
/** 指令模板,用于在输入框中显示可编辑的模板 */
|
|
2517
|
-
template?: string;
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2521
|
-
|
|
2522
|
-
export declare type SuggestionPillAction = {
|
|
2523
|
-
type: 'popover';
|
|
2524
|
-
props: SuggestionPopoverProps;
|
|
2525
|
-
slots?: Omit<SuggestionPopoverSlots, 'default'>;
|
|
2526
|
-
events?: SuggestionPopoverEvents;
|
|
2527
|
-
} | {
|
|
2528
|
-
type: 'menu';
|
|
2529
|
-
props: DropdownMenuProps;
|
|
2530
|
-
events?: DropdownMenuEvents;
|
|
2531
|
-
};
|
|
2603
|
+
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2532
2604
|
|
|
2533
|
-
|
|
2534
|
-
id: string;
|
|
2535
|
-
action?: SuggestionPillAction;
|
|
2536
|
-
} & T;
|
|
2537
|
-
|
|
2538
|
-
declare const SuggestionPillButton: typeof _default_28 & {
|
|
2605
|
+
declare const SuggestionPillButton: typeof _default_26 & {
|
|
2539
2606
|
install: typeof installPillButton;
|
|
2540
2607
|
};
|
|
2541
2608
|
export { SuggestionPillButton }
|
|
@@ -2550,21 +2617,19 @@ export declare interface SuggestionPillButtonSlots {
|
|
|
2550
2617
|
icon?: () => unknown;
|
|
2551
2618
|
}
|
|
2552
2619
|
|
|
2553
|
-
export declare type SuggestionPillItem
|
|
2620
|
+
export declare type SuggestionPillItem = {
|
|
2554
2621
|
text: string;
|
|
2555
2622
|
icon?: VNode | Component;
|
|
2556
2623
|
} | {
|
|
2557
2624
|
text?: string;
|
|
2558
2625
|
icon: VNode | Component;
|
|
2559
|
-
}
|
|
2626
|
+
};
|
|
2560
2627
|
|
|
2561
2628
|
export declare interface SuggestionPillsEmits {
|
|
2562
|
-
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2563
2629
|
(e: 'click-outside', event: MouseEvent): void;
|
|
2564
2630
|
}
|
|
2565
2631
|
|
|
2566
2632
|
export declare interface SuggestionPillsProps {
|
|
2567
|
-
items?: SuggestionPillItem[];
|
|
2568
2633
|
/**
|
|
2569
2634
|
* model:showAll
|
|
2570
2635
|
*/
|
|
@@ -2576,22 +2641,64 @@ export declare interface SuggestionPillsProps {
|
|
|
2576
2641
|
* @default 'hover'
|
|
2577
2642
|
*/
|
|
2578
2643
|
showAllButtonOn?: 'hover' | 'always';
|
|
2644
|
+
/**
|
|
2645
|
+
* 控制多余按钮如何展示
|
|
2646
|
+
* - expand: 点击更多按钮展开所有项
|
|
2647
|
+
* - scroll: 横向滚动显示多余项
|
|
2648
|
+
* @default 'expand'
|
|
2649
|
+
*/
|
|
2650
|
+
overflowMode?: 'expand' | 'scroll';
|
|
2651
|
+
/**
|
|
2652
|
+
* 鼠标悬停时是否自动滚动到可见区域
|
|
2653
|
+
*/
|
|
2654
|
+
autoScrollOn?: 'mouseenter' | 'click';
|
|
2579
2655
|
}
|
|
2580
2656
|
|
|
2581
|
-
/**
|
|
2582
|
-
* @deprecated
|
|
2583
|
-
*/
|
|
2584
2657
|
export declare interface SuggestionPillsSlots {
|
|
2585
|
-
default?: () => VNode
|
|
2658
|
+
default?: () => VNode[];
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
export declare interface SuggestionPopoverEmits {
|
|
2662
|
+
(e: 'item-click', item: SuggestionItem): void;
|
|
2663
|
+
(e: 'group-click', group: SuggestionGroup): void;
|
|
2664
|
+
(e: 'open'): void;
|
|
2665
|
+
(e: 'close'): void;
|
|
2666
|
+
(e: 'click-outside', event: MouseEvent): void;
|
|
2586
2667
|
}
|
|
2587
2668
|
|
|
2588
|
-
declare interface
|
|
2589
|
-
|
|
2669
|
+
export declare interface SuggestionPopoverEventProps {
|
|
2670
|
+
onItemClick?: (item: SuggestionItem) => void;
|
|
2671
|
+
onGroupClick?: (group: SuggestionGroup) => void;
|
|
2672
|
+
onOpen?: () => void;
|
|
2673
|
+
onClose?: () => void;
|
|
2674
|
+
onClickOutside?: (event: MouseEvent) => void;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
export declare interface SuggestionPopoverEvents {
|
|
2678
|
+
/**
|
|
2679
|
+
* @deprecated use onItemClick in props instead
|
|
2680
|
+
*/
|
|
2681
|
+
itemClick?: (item: SuggestionItem) => void;
|
|
2682
|
+
/**
|
|
2683
|
+
* @deprecated use onGroupClick in props instead
|
|
2684
|
+
*/
|
|
2590
2685
|
groupClick?: (group: SuggestionGroup) => void;
|
|
2686
|
+
/**
|
|
2687
|
+
* @deprecated use onOpen in props instead
|
|
2688
|
+
*/
|
|
2689
|
+
open?: () => void;
|
|
2690
|
+
/**
|
|
2691
|
+
* @deprecated use onClose in props instead
|
|
2692
|
+
*/
|
|
2591
2693
|
close?: () => void;
|
|
2694
|
+
/**
|
|
2695
|
+
* @deprecated use onClickOutside in props instead
|
|
2696
|
+
*/
|
|
2697
|
+
clickOutside?: (event: MouseEvent) => void;
|
|
2592
2698
|
}
|
|
2593
2699
|
|
|
2594
|
-
declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
2700
|
+
export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
2701
|
+
appendTo?: string | HTMLElement;
|
|
2595
2702
|
data: SuggestionData<T>;
|
|
2596
2703
|
title?: string;
|
|
2597
2704
|
icon?: VNode | Component;
|
|
@@ -2609,101 +2716,33 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
|
|
|
2609
2716
|
selectedGroup?: string;
|
|
2610
2717
|
groupShowMoreTrigger?: 'click' | 'hover';
|
|
2611
2718
|
loading?: boolean;
|
|
2612
|
-
|
|
2613
|
-
popoverHeight?: string | number;
|
|
2614
|
-
topOffset?: string | number;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
declare interface SuggestionPopoverSlots {
|
|
2618
|
-
default?: () => unknown;
|
|
2619
|
-
loading?: () => unknown;
|
|
2620
|
-
empty?: () => unknown;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
/**
|
|
2624
|
-
* 组件属性
|
|
2625
|
-
*/
|
|
2626
|
-
export declare interface SuggestionProps {
|
|
2627
|
-
/** 触发快捷键列表 */
|
|
2628
|
-
triggerKeys?: string[];
|
|
2629
|
-
/** 指令项列表 */
|
|
2630
|
-
items: SuggestionItem[];
|
|
2631
|
-
/** 分类列表 */
|
|
2632
|
-
categories?: Category[];
|
|
2633
|
-
/** 是否显示面板 (支持v-model) */
|
|
2634
|
-
open?: boolean;
|
|
2635
|
-
/** 自定义类名 */
|
|
2636
|
-
className?: string;
|
|
2637
|
-
/** 主题,light或dark */
|
|
2638
|
-
theme?: 'light' | 'dark';
|
|
2639
|
-
/** 是否显示加载状态 */
|
|
2640
|
-
loading?: boolean;
|
|
2641
|
-
/** 是否点击外部关闭面板 */
|
|
2642
|
-
closeOnOutsideClick?: boolean;
|
|
2643
|
-
/** 面板标题 */
|
|
2644
|
-
title?: string;
|
|
2645
|
-
/** 最大显示条目数 */
|
|
2646
|
-
maxVisibleItems?: number;
|
|
2647
|
-
/** 默认是否展开完整指令列表 */
|
|
2648
|
-
defaultExpanded?: boolean;
|
|
2719
|
+
topOffset?: number;
|
|
2649
2720
|
}
|
|
2650
2721
|
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
(
|
|
2657
|
-
|
|
2658
|
-
(
|
|
2659
|
-
|
|
2660
|
-
(e: 'submit', value: string): void;
|
|
2661
|
-
/** 聚焦事件 */
|
|
2662
|
-
(e: 'focus', event: FocusEvent): void;
|
|
2663
|
-
/** 失焦事件 */
|
|
2664
|
-
(e: 'blur', event: FocusEvent): void;
|
|
2665
|
-
/** 模板内容为空时触发,通知父组件可以退出模板编辑模式 */
|
|
2666
|
-
(e: 'empty-content'): void;
|
|
2722
|
+
export declare interface SuggestionPopoverSlots {
|
|
2723
|
+
trigger?: () => VNode | VNode[];
|
|
2724
|
+
item?: ({ item }: {
|
|
2725
|
+
item: SuggestionItem;
|
|
2726
|
+
}) => VNode | VNode[];
|
|
2727
|
+
loading?: () => VNode | VNode[];
|
|
2728
|
+
empty?: () => VNode | VNode[];
|
|
2729
|
+
header?: () => VNode | VNode[];
|
|
2730
|
+
body?: () => VNode | VNode[];
|
|
2667
2731
|
}
|
|
2668
2732
|
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
export declare interface TemplateEditorExpose {
|
|
2673
|
-
/** 聚焦到编辑器 */
|
|
2674
|
-
focus: () => void;
|
|
2675
|
-
/** 重置所有字段 */
|
|
2676
|
-
resetFields: () => void;
|
|
2677
|
-
/** 激活第一个字段 */
|
|
2678
|
-
activateFirstField: () => void;
|
|
2679
|
-
/** 获取当前DOM中的值 */
|
|
2680
|
-
getValueFromDOM: () => string;
|
|
2681
|
-
/** 设置模板和初始值 */
|
|
2682
|
-
setTemplate: (params: SetTemplateParams) => void;
|
|
2733
|
+
export declare interface SuggestionTextPart {
|
|
2734
|
+
text: string;
|
|
2735
|
+
isMatch: boolean;
|
|
2683
2736
|
}
|
|
2684
2737
|
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
/** 当前值 */
|
|
2690
|
-
value?: string;
|
|
2691
|
-
/** 是否自动聚焦 */
|
|
2692
|
-
autofocus?: boolean;
|
|
2738
|
+
declare interface TemplateItem extends BaseTextItem {
|
|
2739
|
+
type: 'template';
|
|
2740
|
+
prefix: string;
|
|
2741
|
+
suffix: string;
|
|
2693
2742
|
}
|
|
2694
2743
|
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
*/
|
|
2698
|
-
export declare interface TemplatePart {
|
|
2699
|
-
/** 内容文本 */
|
|
2700
|
-
content: string;
|
|
2701
|
-
/** 是否为可编辑字段 */
|
|
2702
|
-
isField: boolean;
|
|
2703
|
-
/** 占位符文本 (当字段为空时显示) */
|
|
2704
|
-
placeholder?: string;
|
|
2705
|
-
/** 字段索引 (用于标识可编辑字段) */
|
|
2706
|
-
fieldIndex?: number;
|
|
2744
|
+
declare interface TextItem extends BaseTextItem {
|
|
2745
|
+
type: 'text';
|
|
2707
2746
|
}
|
|
2708
2747
|
|
|
2709
2748
|
/**
|
|
@@ -2711,23 +2750,26 @@ export declare interface TemplatePart {
|
|
|
2711
2750
|
*/
|
|
2712
2751
|
export declare type ThemeType = 'light' | 'dark';
|
|
2713
2752
|
|
|
2714
|
-
declare type
|
|
2753
|
+
export declare type TooltipRender = () => VNode | string;
|
|
2715
2754
|
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
/** 触发的文本 */
|
|
2721
|
-
text: string;
|
|
2722
|
-
/** 触发的位置 */
|
|
2723
|
-
position: number;
|
|
2755
|
+
export declare interface UrlAttachment extends BaseAttachment {
|
|
2756
|
+
url: string;
|
|
2757
|
+
size: number;
|
|
2758
|
+
rawFile?: File;
|
|
2724
2759
|
}
|
|
2725
2760
|
|
|
2726
|
-
|
|
2727
|
-
|
|
2761
|
+
export declare type UserItem = UserTextItem | UserTemplateItem;
|
|
2762
|
+
|
|
2763
|
+
export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
|
|
2728
2764
|
|
|
2729
|
-
|
|
2730
|
-
|
|
2765
|
+
export declare type UserTextItem = Omit<TextItem, 'id'>;
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* 拖拽区域指令
|
|
2769
|
+
* @param el 元素
|
|
2770
|
+
* @param binding 绑定
|
|
2771
|
+
*/
|
|
2772
|
+
export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
|
|
2731
2773
|
|
|
2732
2774
|
export declare interface WelcomeProps {
|
|
2733
2775
|
title: string;
|