@opentiny/tiny-robot 0.4.0-alpha.7 → 0.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/dist/action-group/index.js +1 -1
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1 -1
- package/dist/drag-overlay/index.js +1 -1
- package/dist/dropdown-menu/index.js +6 -6
- package/dist/flow-layout-buttons/index.js +1 -1
- package/dist/history/index.js +1 -1
- package/dist/index.d.ts +2337 -1152
- package/dist/index.js +155 -125
- package/dist/index2.js +188 -934
- package/dist/index3.js +266 -285
- package/dist/index4.js +734 -354
- package/dist/index5.js +358 -681
- package/dist/index6.js +926 -141
- package/dist/index7.js +301 -0
- package/dist/index8.js +161 -0
- package/dist/mcp-add-form/index.js +1 -1
- package/dist/mcp-server-picker/index.js +1 -1
- package/dist/sender/index.js +3185 -1391
- package/dist/sender-actions/index.js +13 -0
- package/dist/sender-compat/index.js +229 -0
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +2 -2
- package/dist/useSlotRefs.js +3 -3
- package/dist/utils.js +1 -1
- package/package.json +13 -3
package/dist/index.d.ts
CHANGED
|
@@ -14,21 +14,22 @@ import { CSSProperties } from 'vue';
|
|
|
14
14
|
import { DebuggerEvent } from 'vue';
|
|
15
15
|
import { DefineComponent } from 'vue';
|
|
16
16
|
import { Directive } from 'vue';
|
|
17
|
-
import {
|
|
17
|
+
import { Editor } from '@tiptap/vue-3';
|
|
18
|
+
import { Editor as Editor_2 } from '@tiptap/core';
|
|
19
|
+
import { Extension } from '@tiptap/core';
|
|
18
20
|
import { GlobalComponents } from 'vue';
|
|
19
21
|
import { GlobalDirectives } from 'vue';
|
|
20
22
|
import { MaybeComputedElementRef } from '@vueuse/core';
|
|
21
23
|
import { MaybeRefOrGetter } from 'vue';
|
|
22
24
|
import { nextTick } from 'vue';
|
|
25
|
+
import { Node as Node_2 } from '@tiptap/core';
|
|
23
26
|
import { OnCleanup } from '@vue/reactivity';
|
|
24
|
-
import { PropType } from 'vue';
|
|
25
27
|
import { PublicProps } from 'vue';
|
|
26
28
|
import { Ref } from 'vue';
|
|
27
|
-
import { RendererElement } from 'vue';
|
|
28
|
-
import { RendererNode } from 'vue';
|
|
29
29
|
import { ShallowUnwrapRef } from 'vue';
|
|
30
30
|
import { Slot } from 'vue';
|
|
31
31
|
import { TransitionProps } from 'vue';
|
|
32
|
+
import { UseFileDialogOptions } from '@vueuse/core';
|
|
32
33
|
import { VNode } from 'vue';
|
|
33
34
|
import { VNodeProps } from 'vue';
|
|
34
35
|
import { WatchOptions } from 'vue';
|
|
@@ -279,6 +280,33 @@ allowPluginAdd: boolean;
|
|
|
279
280
|
marketLoading: boolean;
|
|
280
281
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
281
282
|
|
|
283
|
+
declare const __VLS_component_15: DefineComponent<ActionButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {
|
|
284
|
+
disabled: boolean;
|
|
285
|
+
active: boolean;
|
|
286
|
+
tooltipPlacement: TooltipPlacement;
|
|
287
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
288
|
+
|
|
289
|
+
declare const __VLS_component_16: DefineComponent<VoiceButtonProps, {
|
|
290
|
+
start: () => void;
|
|
291
|
+
stop: () => void;
|
|
292
|
+
speechState: SpeechState;
|
|
293
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
294
|
+
"speech-start": () => any;
|
|
295
|
+
"speech-interim": (transcript: string) => any;
|
|
296
|
+
"speech-final": (transcript: string) => any;
|
|
297
|
+
"speech-end": (transcript?: string | undefined) => any;
|
|
298
|
+
"speech-error": (error: Error) => any;
|
|
299
|
+
}, string, PublicProps, Readonly<VoiceButtonProps> & Readonly<{
|
|
300
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
301
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
302
|
+
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
303
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
304
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
305
|
+
}>, {
|
|
306
|
+
tooltipPlacement: TooltipPlacement;
|
|
307
|
+
autoInsert: boolean;
|
|
308
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
309
|
+
|
|
282
310
|
declare const __VLS_component_2: DefineComponent<BubbleListProps, {
|
|
283
311
|
scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
|
|
284
312
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -435,14 +463,14 @@ declare const __VLS_component_7: DefineComponent<PromptsProps, {}, {}, {}, {}, C
|
|
|
435
463
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
436
464
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
437
465
|
|
|
438
|
-
declare const __VLS_component_8: DefineComponent<
|
|
466
|
+
declare const __VLS_component_8: DefineComponent<SenderProps_2, {
|
|
439
467
|
focus: () => void;
|
|
440
468
|
blur: () => void;
|
|
441
469
|
clear: () => void;
|
|
442
470
|
submit: () => void;
|
|
471
|
+
setTemplateData: (templateData: UserTemplateItem[]) => void;
|
|
443
472
|
startSpeech: () => void;
|
|
444
473
|
stopSpeech: () => void;
|
|
445
|
-
activateTemplateFirstField: () => void;
|
|
446
474
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
447
475
|
clear: () => any;
|
|
448
476
|
blur: (event: FocusEvent) => any;
|
|
@@ -450,544 +478,270 @@ cancel: () => any;
|
|
|
450
478
|
focus: (event: FocusEvent) => any;
|
|
451
479
|
submit: (value: string) => any;
|
|
452
480
|
"update:modelValue": (value: string) => any;
|
|
453
|
-
"update:templateData": (value: UserItem[]) => any;
|
|
454
481
|
"speech-start": () => any;
|
|
455
|
-
"speech-end": (transcript?: string | undefined) => any;
|
|
456
482
|
"speech-interim": (transcript: string) => any;
|
|
483
|
+
"speech-end": (transcript?: string | undefined) => any;
|
|
457
484
|
"speech-error": (error: Error) => any;
|
|
485
|
+
"update:templateData": (value: UserItem[]) => any;
|
|
458
486
|
"suggestion-select": (value: string) => any;
|
|
459
487
|
"escape-press": () => any;
|
|
460
488
|
"reset-template": () => any;
|
|
461
489
|
"files-selected": (files: File[]) => any;
|
|
462
|
-
}, string, PublicProps, Readonly<
|
|
490
|
+
}, string, PublicProps, Readonly<SenderProps_2> & Readonly<{
|
|
463
491
|
onClear?: (() => any) | undefined;
|
|
464
492
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
465
493
|
onCancel?: (() => any) | undefined;
|
|
466
494
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
467
495
|
onSubmit?: ((value: string) => any) | undefined;
|
|
468
496
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
469
|
-
"onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
|
|
470
497
|
"onSpeech-start"?: (() => any) | undefined;
|
|
471
|
-
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
472
498
|
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
499
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
473
500
|
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
501
|
+
"onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
|
|
474
502
|
"onSuggestion-select"?: ((value: string) => any) | undefined;
|
|
475
503
|
"onEscape-press"?: (() => any) | undefined;
|
|
476
504
|
"onReset-template"?: (() => any) | undefined;
|
|
477
505
|
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
478
506
|
}>, {
|
|
479
|
-
disabled: boolean;
|
|
480
|
-
modelValue: string;
|
|
481
507
|
placeholder: string;
|
|
482
|
-
loading: boolean;
|
|
483
508
|
mode: InputMode;
|
|
484
|
-
autofocus: boolean;
|
|
485
|
-
allowSpeech: boolean;
|
|
486
|
-
allowFiles: boolean;
|
|
487
509
|
submitType: SubmitTrigger;
|
|
488
|
-
stopText: string;
|
|
489
|
-
autoSize: AutoSize;
|
|
490
|
-
suggestions: ISuggestionItem[];
|
|
491
|
-
clearable: boolean;
|
|
492
|
-
maxLength: number;
|
|
493
|
-
showWordLimit: boolean;
|
|
494
|
-
suggestionPopupWidth: string | number;
|
|
495
|
-
theme: ThemeType;
|
|
496
|
-
templateData: UserItem[];
|
|
497
510
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
498
|
-
senderRef:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
511
|
+
senderRef: ({
|
|
512
|
+
$: ComponentInternalInstance;
|
|
513
|
+
$data: {};
|
|
514
|
+
$props: {
|
|
515
|
+
readonly modelValue?: string | undefined;
|
|
516
|
+
readonly defaultValue?: string | undefined;
|
|
517
|
+
readonly placeholder?: string | undefined;
|
|
518
|
+
readonly disabled?: boolean | undefined;
|
|
519
|
+
readonly loading?: boolean | undefined;
|
|
520
|
+
readonly autofocus?: boolean | undefined;
|
|
521
|
+
readonly enterkeyhint?: EnterKeyHint | undefined;
|
|
522
|
+
readonly mode?: InputMode | undefined;
|
|
523
|
+
readonly autoSize?: AutoSize | undefined;
|
|
524
|
+
readonly maxLength?: number | undefined;
|
|
525
|
+
readonly showWordLimit?: boolean | undefined;
|
|
526
|
+
readonly clearable?: boolean | undefined;
|
|
527
|
+
readonly extensions?: Extension[] | any[] | undefined;
|
|
528
|
+
readonly size?: "normal" | "small" | undefined;
|
|
529
|
+
readonly stopText?: string | undefined;
|
|
530
|
+
readonly defaultActions?: DefaultActions | undefined;
|
|
531
|
+
readonly submitType?: SubmitTrigger | undefined;
|
|
532
|
+
readonly onClear?: (() => any) | undefined;
|
|
533
|
+
readonly onInput?: ((value: string) => any) | undefined;
|
|
534
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
535
|
+
readonly onCancel?: (() => any) | undefined;
|
|
536
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
537
|
+
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
538
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
539
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
540
|
+
$attrs: {
|
|
541
|
+
[x: string]: unknown;
|
|
542
|
+
};
|
|
543
|
+
$refs: {
|
|
544
|
+
[x: string]: unknown;
|
|
506
545
|
};
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
546
|
+
$slots: Readonly<{
|
|
547
|
+
[name: string]: Slot<any> | undefined;
|
|
548
|
+
}>;
|
|
549
|
+
$root: ComponentPublicInstance | null;
|
|
550
|
+
$parent: ComponentPublicInstance | null;
|
|
551
|
+
$host: Element | null;
|
|
552
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "cancel") => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "submit", textContent: string, structuredData?: StructuredData | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
553
|
+
$el: HTMLDivElement;
|
|
554
|
+
$options: ComponentOptionsBase<Readonly<SenderProps> & Readonly<{
|
|
555
|
+
onClear?: (() => any) | undefined;
|
|
556
|
+
onInput?: ((value: string) => any) | undefined;
|
|
557
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
558
|
+
onCancel?: (() => any) | undefined;
|
|
559
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
560
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
561
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
510
562
|
}>, {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
563
|
+
submit: () => void;
|
|
564
|
+
clear: () => void;
|
|
565
|
+
cancel: () => void;
|
|
566
|
+
focus: () => void;
|
|
567
|
+
blur: () => void;
|
|
568
|
+
setContent: (content: string) => void;
|
|
569
|
+
getContent: () => string;
|
|
570
|
+
editor: SenderContext["editor"];
|
|
571
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
572
|
+
clear: () => any;
|
|
573
|
+
input: (value: string) => any;
|
|
574
|
+
blur: (event: FocusEvent) => any;
|
|
575
|
+
cancel: () => any;
|
|
576
|
+
focus: (event: FocusEvent) => any;
|
|
577
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
578
|
+
"update:modelValue": (value: string) => any;
|
|
579
|
+
}, string, {
|
|
580
|
+
size: "normal" | "small";
|
|
581
|
+
placeholder: string;
|
|
582
|
+
mode: InputMode;
|
|
583
|
+
enterkeyhint: EnterKeyHint;
|
|
584
|
+
autoSize: AutoSize;
|
|
585
|
+
extensions: Extension[] | any[];
|
|
586
|
+
submitType: SubmitTrigger;
|
|
587
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
588
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
589
|
+
created?: (() => void) | (() => void)[];
|
|
590
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
591
|
+
mounted?: (() => void) | (() => void)[];
|
|
592
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
593
|
+
updated?: (() => void) | (() => void)[];
|
|
594
|
+
activated?: (() => void) | (() => void)[];
|
|
595
|
+
deactivated?: (() => void) | (() => void)[];
|
|
596
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
597
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
598
|
+
destroyed?: (() => void) | (() => void)[];
|
|
599
|
+
unmounted?: (() => void) | (() => void)[];
|
|
600
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
601
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
602
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
603
|
+
};
|
|
604
|
+
$forceUpdate: () => void;
|
|
605
|
+
$nextTick: nextTick;
|
|
606
|
+
$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;
|
|
607
|
+
} & Readonly<{
|
|
608
|
+
size: "normal" | "small";
|
|
609
|
+
placeholder: string;
|
|
610
|
+
mode: InputMode;
|
|
611
|
+
enterkeyhint: EnterKeyHint;
|
|
612
|
+
autoSize: AutoSize;
|
|
613
|
+
extensions: Extension[] | any[];
|
|
614
|
+
submitType: SubmitTrigger;
|
|
615
|
+
}> & Omit<Readonly<SenderProps> & Readonly<{
|
|
616
|
+
onClear?: (() => any) | undefined;
|
|
617
|
+
onInput?: ((value: string) => any) | undefined;
|
|
618
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
619
|
+
onCancel?: (() => any) | undefined;
|
|
620
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
621
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
622
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
623
|
+
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "placeholder" | "mode" | "enterkeyhint" | "autoSize" | "extensions" | "submitType") | "getContent"> & ShallowUnwrapRef< {
|
|
624
|
+
submit: () => void;
|
|
625
|
+
clear: () => void;
|
|
626
|
+
cancel: () => void;
|
|
627
|
+
focus: () => void;
|
|
628
|
+
blur: () => void;
|
|
629
|
+
setContent: (content: string) => void;
|
|
630
|
+
getContent: () => string;
|
|
631
|
+
editor: SenderContext["editor"];
|
|
632
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
633
|
+
$slots: {
|
|
634
|
+
header?(_: {}): any;
|
|
635
|
+
header?(_: {}): any;
|
|
636
|
+
prefix?(_: {}): any;
|
|
637
|
+
prefix?(_: {}): any;
|
|
638
|
+
content?(_: {
|
|
639
|
+
editor: Editor | undefined;
|
|
640
|
+
}): any;
|
|
641
|
+
content?(_: {
|
|
642
|
+
editor: Ref<Editor | undefined, Editor | undefined>;
|
|
643
|
+
}): any;
|
|
644
|
+
'actions-inline'?(_: {}): any;
|
|
645
|
+
footer?(_: {}): any;
|
|
646
|
+
'footer-right'?(_: {}): any;
|
|
647
|
+
};
|
|
648
|
+
}) | null;
|
|
649
|
+
voiceRef: ({
|
|
650
|
+
$: ComponentInternalInstance;
|
|
651
|
+
$data: {};
|
|
652
|
+
$props: {
|
|
653
|
+
readonly icon?: (VNode | Component) | undefined;
|
|
654
|
+
readonly recordingIcon?: (VNode | Component) | undefined;
|
|
655
|
+
readonly disabled?: boolean | undefined;
|
|
656
|
+
readonly size?: "small" | "normal" | undefined;
|
|
657
|
+
readonly tooltip?: TooltipContent | undefined;
|
|
658
|
+
readonly tooltipPlacement?: TooltipPlacement | undefined;
|
|
659
|
+
readonly speechConfig?: SpeechConfig | undefined;
|
|
660
|
+
readonly autoInsert?: boolean | undefined;
|
|
661
|
+
readonly onButtonClick?: ((isRecording: boolean, preventDefault: () => void) => void | Promise<void>) | undefined;
|
|
662
|
+
readonly "onSpeech-start"?: (() => any) | undefined;
|
|
663
|
+
readonly "onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
664
|
+
readonly "onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
665
|
+
readonly "onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
666
|
+
readonly "onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
667
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
668
|
+
$attrs: {
|
|
669
|
+
[x: string]: unknown;
|
|
670
|
+
};
|
|
671
|
+
$refs: {
|
|
672
|
+
[x: string]: unknown;
|
|
532
673
|
};
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
674
|
+
$slots: Readonly<{
|
|
675
|
+
[name: string]: Slot<any> | undefined;
|
|
676
|
+
}>;
|
|
677
|
+
$root: ComponentPublicInstance | null;
|
|
678
|
+
$parent: ComponentPublicInstance | null;
|
|
679
|
+
$host: Element | null;
|
|
680
|
+
$emit: ((event: "speech-start") => void) & ((event: "speech-interim", transcript: string) => void) & ((event: "speech-final", transcript: string) => void) & ((event: "speech-end", transcript?: string | undefined) => void) & ((event: "speech-error", error: Error) => void);
|
|
681
|
+
$el: any;
|
|
682
|
+
$options: ComponentOptionsBase<Readonly<VoiceButtonProps> & Readonly<{
|
|
683
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
684
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
685
|
+
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
686
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
687
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
536
688
|
}>, {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
type: {
|
|
594
|
-
(arrayLength: number): {
|
|
595
|
-
id: string;
|
|
596
|
-
label: string;
|
|
597
|
-
}[];
|
|
598
|
-
(...items: {
|
|
599
|
-
id: string;
|
|
600
|
-
label: string;
|
|
601
|
-
}[]): {
|
|
602
|
-
id: string;
|
|
603
|
-
label: string;
|
|
604
|
-
}[];
|
|
605
|
-
new (arrayLength: number): {
|
|
606
|
-
id: string;
|
|
607
|
-
label: string;
|
|
608
|
-
}[];
|
|
609
|
-
new (...items: {
|
|
610
|
-
id: string;
|
|
611
|
-
label: string;
|
|
612
|
-
}[]): {
|
|
613
|
-
id: string;
|
|
614
|
-
label: string;
|
|
615
|
-
}[];
|
|
616
|
-
isArray(arg: any): arg is any[];
|
|
617
|
-
readonly prototype: any[];
|
|
618
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
619
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
620
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
621
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
622
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
623
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
624
|
-
};
|
|
625
|
-
default: () => never[];
|
|
626
|
-
};
|
|
627
|
-
ellipsis: {
|
|
628
|
-
type: BooleanConstructor;
|
|
629
|
-
default: boolean;
|
|
630
|
-
};
|
|
631
|
-
contentStyle: {
|
|
632
|
-
type: ObjectConstructor;
|
|
633
|
-
default: () => {};
|
|
634
|
-
};
|
|
635
|
-
isSelect: {
|
|
636
|
-
type: BooleanConstructor;
|
|
637
|
-
default: boolean;
|
|
638
|
-
};
|
|
639
|
-
tips: StringConstructor;
|
|
640
|
-
counter: {
|
|
641
|
-
type: BooleanConstructor;
|
|
642
|
-
default: boolean;
|
|
643
|
-
};
|
|
644
|
-
autosize: {
|
|
645
|
-
type: (BooleanConstructor | ObjectConstructor)[];
|
|
646
|
-
default: boolean;
|
|
647
|
-
};
|
|
648
|
-
clearable: {
|
|
649
|
-
type: BooleanConstructor;
|
|
650
|
-
default: boolean;
|
|
651
|
-
};
|
|
652
|
-
autocomplete: {
|
|
653
|
-
type: StringConstructor;
|
|
654
|
-
default: string;
|
|
655
|
-
};
|
|
656
|
-
showPassword: {
|
|
657
|
-
type: BooleanConstructor;
|
|
658
|
-
default: boolean;
|
|
659
|
-
};
|
|
660
|
-
showWordLimit: {
|
|
661
|
-
type: BooleanConstructor;
|
|
662
|
-
default: boolean;
|
|
663
|
-
};
|
|
664
|
-
showTitle: {
|
|
665
|
-
type: BooleanConstructor;
|
|
666
|
-
default: boolean;
|
|
667
|
-
};
|
|
668
|
-
validateEvent: {
|
|
669
|
-
type: BooleanConstructor;
|
|
670
|
-
default: boolean;
|
|
671
|
-
};
|
|
672
|
-
popupMore: {
|
|
673
|
-
type: BooleanConstructor;
|
|
674
|
-
default: boolean;
|
|
675
|
-
};
|
|
676
|
-
textareaTitle: {
|
|
677
|
-
type: StringConstructor;
|
|
678
|
-
default: string;
|
|
679
|
-
};
|
|
680
|
-
displayOnly: {
|
|
681
|
-
type: BooleanConstructor;
|
|
682
|
-
default: boolean;
|
|
683
|
-
};
|
|
684
|
-
displayOnlyContent: {
|
|
685
|
-
type: StringConstructor;
|
|
686
|
-
default: string;
|
|
687
|
-
};
|
|
688
|
-
customClass: {
|
|
689
|
-
type: StringConstructor;
|
|
690
|
-
default: string;
|
|
691
|
-
};
|
|
692
|
-
frontClearIcon: {
|
|
693
|
-
type: BooleanConstructor;
|
|
694
|
-
default: boolean;
|
|
695
|
-
};
|
|
696
|
-
showEmptyValue: {
|
|
697
|
-
type: BooleanConstructor;
|
|
698
|
-
default: undefined;
|
|
699
|
-
};
|
|
700
|
-
textAlign: {
|
|
701
|
-
type: StringConstructor;
|
|
702
|
-
default: string;
|
|
703
|
-
};
|
|
704
|
-
width: {
|
|
705
|
-
type: PropType<string | number | null>;
|
|
706
|
-
};
|
|
707
|
-
showTooltip: {
|
|
708
|
-
type: BooleanConstructor;
|
|
709
|
-
default: boolean;
|
|
710
|
-
};
|
|
711
|
-
inputBoxType: {
|
|
712
|
-
type: StringConstructor;
|
|
713
|
-
default: string;
|
|
714
|
-
validator: (value: string) => boolean;
|
|
715
|
-
};
|
|
716
|
-
tiny_mode: StringConstructor;
|
|
717
|
-
tiny_mode_root: BooleanConstructor;
|
|
718
|
-
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
719
|
-
tiny_renderless: FunctionConstructor;
|
|
720
|
-
tiny_theme: StringConstructor;
|
|
721
|
-
tiny_mcp_config: ObjectConstructor;
|
|
722
|
-
tiny_chart_theme: ObjectConstructor;
|
|
723
|
-
}>>, () => VNode<RendererNode, RendererElement, {
|
|
724
|
-
[key: string]: any;
|
|
725
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
726
|
-
disabled: boolean;
|
|
727
|
-
type: string;
|
|
728
|
-
ellipsis: boolean;
|
|
729
|
-
mask: boolean;
|
|
730
|
-
vertical: boolean;
|
|
731
|
-
customClass: string;
|
|
732
|
-
tiny_mode_root: boolean;
|
|
733
|
-
_constants: Record<string, any>;
|
|
734
|
-
tabindex: string;
|
|
735
|
-
showTitle: boolean;
|
|
736
|
-
readonly: boolean;
|
|
737
|
-
hoverExpand: boolean;
|
|
738
|
-
memorySpace: number;
|
|
739
|
-
selectMenu: {
|
|
740
|
-
id: string;
|
|
741
|
-
label: string;
|
|
742
|
-
}[];
|
|
743
|
-
contentStyle: Record<string, any>;
|
|
744
|
-
isSelect: boolean;
|
|
745
|
-
counter: boolean;
|
|
746
|
-
autosize: boolean | Record<string, any>;
|
|
747
|
-
clearable: boolean;
|
|
748
|
-
autocomplete: string;
|
|
749
|
-
showPassword: boolean;
|
|
750
|
-
showWordLimit: boolean;
|
|
751
|
-
validateEvent: boolean;
|
|
752
|
-
popupMore: boolean;
|
|
753
|
-
textareaTitle: string;
|
|
754
|
-
displayOnly: boolean;
|
|
755
|
-
displayOnlyContent: string;
|
|
756
|
-
frontClearIcon: boolean;
|
|
757
|
-
showEmptyValue: boolean;
|
|
758
|
-
textAlign: string;
|
|
759
|
-
showTooltip: boolean;
|
|
760
|
-
inputBoxType: string;
|
|
761
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
762
|
-
P: {};
|
|
763
|
-
B: {};
|
|
764
|
-
D: {};
|
|
765
|
-
C: {};
|
|
766
|
-
M: {};
|
|
767
|
-
Defaults: {};
|
|
768
|
-
}, Readonly<ExtractPropTypes< {
|
|
769
|
-
_constants: {
|
|
770
|
-
type: ObjectConstructor;
|
|
771
|
-
default: () => {
|
|
772
|
-
INPUT_PC: string;
|
|
773
|
-
INPUTGROUP_PC: string;
|
|
774
|
-
INPUT_MOBILE: string;
|
|
775
|
-
INPUTGROUP_MOBILE: string;
|
|
776
|
-
Mode: string;
|
|
777
|
-
inputMode(mode: any): string;
|
|
778
|
-
inputGroupMode(mode: any): string;
|
|
779
|
-
VALIDATE_ICON: {
|
|
780
|
-
Validating: string;
|
|
781
|
-
Success: string;
|
|
782
|
-
Error: string;
|
|
783
|
-
};
|
|
784
|
-
COMPONENT_NAME: {
|
|
785
|
-
FormItem: string;
|
|
786
|
-
};
|
|
787
|
-
MASKSYMBOL: string;
|
|
788
|
-
TEXTAREA_HEIGHT_MOBILE: number;
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
name: StringConstructor;
|
|
792
|
-
size: StringConstructor;
|
|
793
|
-
form: StringConstructor;
|
|
794
|
-
label: StringConstructor;
|
|
795
|
-
height: NumberConstructor;
|
|
796
|
-
resize: StringConstructor;
|
|
797
|
-
tabindex: {
|
|
798
|
-
type: StringConstructor;
|
|
799
|
-
default: string;
|
|
800
|
-
};
|
|
801
|
-
disabled: BooleanConstructor;
|
|
802
|
-
readonly: BooleanConstructor;
|
|
803
|
-
hoverExpand: BooleanConstructor;
|
|
804
|
-
mask: BooleanConstructor;
|
|
805
|
-
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
806
|
-
prefixIcon: (StringConstructor | ObjectConstructor)[];
|
|
807
|
-
modelValue: PropType<string | number | null>;
|
|
808
|
-
type: {
|
|
809
|
-
type: StringConstructor;
|
|
810
|
-
default: string;
|
|
811
|
-
};
|
|
812
|
-
memorySpace: {
|
|
813
|
-
type: NumberConstructor;
|
|
814
|
-
default: number;
|
|
815
|
-
};
|
|
816
|
-
vertical: {
|
|
817
|
-
type: BooleanConstructor;
|
|
818
|
-
default: boolean;
|
|
819
|
-
};
|
|
820
|
-
selectMenu: {
|
|
821
|
-
type: {
|
|
822
|
-
(arrayLength: number): {
|
|
823
|
-
id: string;
|
|
824
|
-
label: string;
|
|
825
|
-
}[];
|
|
826
|
-
(...items: {
|
|
827
|
-
id: string;
|
|
828
|
-
label: string;
|
|
829
|
-
}[]): {
|
|
830
|
-
id: string;
|
|
831
|
-
label: string;
|
|
832
|
-
}[];
|
|
833
|
-
new (arrayLength: number): {
|
|
834
|
-
id: string;
|
|
835
|
-
label: string;
|
|
836
|
-
}[];
|
|
837
|
-
new (...items: {
|
|
838
|
-
id: string;
|
|
839
|
-
label: string;
|
|
840
|
-
}[]): {
|
|
841
|
-
id: string;
|
|
842
|
-
label: string;
|
|
843
|
-
}[];
|
|
844
|
-
isArray(arg: any): arg is any[];
|
|
845
|
-
readonly prototype: any[];
|
|
846
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
847
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
848
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
849
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
850
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
851
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
852
|
-
};
|
|
853
|
-
default: () => never[];
|
|
854
|
-
};
|
|
855
|
-
ellipsis: {
|
|
856
|
-
type: BooleanConstructor;
|
|
857
|
-
default: boolean;
|
|
858
|
-
};
|
|
859
|
-
contentStyle: {
|
|
860
|
-
type: ObjectConstructor;
|
|
861
|
-
default: () => {};
|
|
862
|
-
};
|
|
863
|
-
isSelect: {
|
|
864
|
-
type: BooleanConstructor;
|
|
865
|
-
default: boolean;
|
|
866
|
-
};
|
|
867
|
-
tips: StringConstructor;
|
|
868
|
-
counter: {
|
|
869
|
-
type: BooleanConstructor;
|
|
870
|
-
default: boolean;
|
|
871
|
-
};
|
|
872
|
-
autosize: {
|
|
873
|
-
type: (BooleanConstructor | ObjectConstructor)[];
|
|
874
|
-
default: boolean;
|
|
875
|
-
};
|
|
876
|
-
clearable: {
|
|
877
|
-
type: BooleanConstructor;
|
|
878
|
-
default: boolean;
|
|
879
|
-
};
|
|
880
|
-
autocomplete: {
|
|
881
|
-
type: StringConstructor;
|
|
882
|
-
default: string;
|
|
883
|
-
};
|
|
884
|
-
showPassword: {
|
|
885
|
-
type: BooleanConstructor;
|
|
886
|
-
default: boolean;
|
|
887
|
-
};
|
|
888
|
-
showWordLimit: {
|
|
889
|
-
type: BooleanConstructor;
|
|
890
|
-
default: boolean;
|
|
891
|
-
};
|
|
892
|
-
showTitle: {
|
|
893
|
-
type: BooleanConstructor;
|
|
894
|
-
default: boolean;
|
|
895
|
-
};
|
|
896
|
-
validateEvent: {
|
|
897
|
-
type: BooleanConstructor;
|
|
898
|
-
default: boolean;
|
|
899
|
-
};
|
|
900
|
-
popupMore: {
|
|
901
|
-
type: BooleanConstructor;
|
|
902
|
-
default: boolean;
|
|
903
|
-
};
|
|
904
|
-
textareaTitle: {
|
|
905
|
-
type: StringConstructor;
|
|
906
|
-
default: string;
|
|
907
|
-
};
|
|
908
|
-
displayOnly: {
|
|
909
|
-
type: BooleanConstructor;
|
|
910
|
-
default: boolean;
|
|
911
|
-
};
|
|
912
|
-
displayOnlyContent: {
|
|
913
|
-
type: StringConstructor;
|
|
914
|
-
default: string;
|
|
915
|
-
};
|
|
916
|
-
customClass: {
|
|
917
|
-
type: StringConstructor;
|
|
918
|
-
default: string;
|
|
919
|
-
};
|
|
920
|
-
frontClearIcon: {
|
|
921
|
-
type: BooleanConstructor;
|
|
922
|
-
default: boolean;
|
|
923
|
-
};
|
|
924
|
-
showEmptyValue: {
|
|
925
|
-
type: BooleanConstructor;
|
|
926
|
-
default: undefined;
|
|
927
|
-
};
|
|
928
|
-
textAlign: {
|
|
929
|
-
type: StringConstructor;
|
|
930
|
-
default: string;
|
|
931
|
-
};
|
|
932
|
-
width: {
|
|
933
|
-
type: PropType<string | number | null>;
|
|
934
|
-
};
|
|
935
|
-
showTooltip: {
|
|
936
|
-
type: BooleanConstructor;
|
|
937
|
-
default: boolean;
|
|
938
|
-
};
|
|
939
|
-
inputBoxType: {
|
|
940
|
-
type: StringConstructor;
|
|
941
|
-
default: string;
|
|
942
|
-
validator: (value: string) => boolean;
|
|
943
|
-
};
|
|
944
|
-
tiny_mode: StringConstructor;
|
|
945
|
-
tiny_mode_root: BooleanConstructor;
|
|
946
|
-
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
947
|
-
tiny_renderless: FunctionConstructor;
|
|
948
|
-
tiny_theme: StringConstructor;
|
|
949
|
-
tiny_mcp_config: ObjectConstructor;
|
|
950
|
-
tiny_chart_theme: ObjectConstructor;
|
|
951
|
-
}>>, () => VNode<RendererNode, RendererElement, {
|
|
952
|
-
[key: string]: any;
|
|
953
|
-
}>, {}, {}, {}, {
|
|
954
|
-
disabled: boolean;
|
|
955
|
-
type: string;
|
|
956
|
-
ellipsis: boolean;
|
|
957
|
-
mask: boolean;
|
|
958
|
-
vertical: boolean;
|
|
959
|
-
customClass: string;
|
|
960
|
-
tiny_mode_root: boolean;
|
|
961
|
-
_constants: Record<string, any>;
|
|
962
|
-
tabindex: string;
|
|
963
|
-
showTitle: boolean;
|
|
964
|
-
readonly: boolean;
|
|
965
|
-
hoverExpand: boolean;
|
|
966
|
-
memorySpace: number;
|
|
967
|
-
selectMenu: {
|
|
968
|
-
id: string;
|
|
969
|
-
label: string;
|
|
970
|
-
}[];
|
|
971
|
-
contentStyle: Record<string, any>;
|
|
972
|
-
isSelect: boolean;
|
|
973
|
-
counter: boolean;
|
|
974
|
-
autosize: boolean | Record<string, any>;
|
|
975
|
-
clearable: boolean;
|
|
976
|
-
autocomplete: string;
|
|
977
|
-
showPassword: boolean;
|
|
978
|
-
showWordLimit: boolean;
|
|
979
|
-
validateEvent: boolean;
|
|
980
|
-
popupMore: boolean;
|
|
981
|
-
textareaTitle: string;
|
|
982
|
-
displayOnly: boolean;
|
|
983
|
-
displayOnlyContent: string;
|
|
984
|
-
frontClearIcon: boolean;
|
|
985
|
-
showEmptyValue: boolean;
|
|
986
|
-
textAlign: string;
|
|
987
|
-
showTooltip: boolean;
|
|
988
|
-
inputBoxType: string;
|
|
989
|
-
}> | null;
|
|
990
|
-
buttonsContainerRef: HTMLDivElement;
|
|
689
|
+
start: () => void;
|
|
690
|
+
stop: () => void;
|
|
691
|
+
speechState: SpeechState;
|
|
692
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
693
|
+
"speech-start": () => any;
|
|
694
|
+
"speech-interim": (transcript: string) => any;
|
|
695
|
+
"speech-final": (transcript: string) => any;
|
|
696
|
+
"speech-end": (transcript?: string | undefined) => any;
|
|
697
|
+
"speech-error": (error: Error) => any;
|
|
698
|
+
}, string, {
|
|
699
|
+
tooltipPlacement: TooltipPlacement;
|
|
700
|
+
autoInsert: boolean;
|
|
701
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
702
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
703
|
+
created?: (() => void) | (() => void)[];
|
|
704
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
705
|
+
mounted?: (() => void) | (() => void)[];
|
|
706
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
707
|
+
updated?: (() => void) | (() => void)[];
|
|
708
|
+
activated?: (() => void) | (() => void)[];
|
|
709
|
+
deactivated?: (() => void) | (() => void)[];
|
|
710
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
711
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
712
|
+
destroyed?: (() => void) | (() => void)[];
|
|
713
|
+
unmounted?: (() => void) | (() => void)[];
|
|
714
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
715
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
716
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
717
|
+
};
|
|
718
|
+
$forceUpdate: () => void;
|
|
719
|
+
$nextTick: nextTick;
|
|
720
|
+
$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;
|
|
721
|
+
} & Readonly<{
|
|
722
|
+
tooltipPlacement: TooltipPlacement;
|
|
723
|
+
autoInsert: boolean;
|
|
724
|
+
}> & Omit<Readonly<VoiceButtonProps> & Readonly<{
|
|
725
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
726
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
727
|
+
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
728
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
729
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
730
|
+
}>, "stop" | "start" | "speechState" | ("tooltipPlacement" | "autoInsert")> & ShallowUnwrapRef< {
|
|
731
|
+
start: () => void;
|
|
732
|
+
stop: () => void;
|
|
733
|
+
speechState: SpeechState;
|
|
734
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
735
|
+
$slots: {
|
|
736
|
+
icon?(_: {
|
|
737
|
+
isRecording: boolean;
|
|
738
|
+
}): any;
|
|
739
|
+
'recording-overlay'?(_: {
|
|
740
|
+
isRecording: boolean;
|
|
741
|
+
stop: () => void;
|
|
742
|
+
}): any;
|
|
743
|
+
};
|
|
744
|
+
}) | null;
|
|
991
745
|
}, HTMLDivElement>;
|
|
992
746
|
|
|
993
747
|
declare const __VLS_component_9: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
@@ -1200,6 +954,31 @@ declare function __VLS_template_14(): {
|
|
|
1200
954
|
rootEl: any;
|
|
1201
955
|
};
|
|
1202
956
|
|
|
957
|
+
declare function __VLS_template_15(): {
|
|
958
|
+
attrs: Partial<{}>;
|
|
959
|
+
slots: {
|
|
960
|
+
icon?(_: {}): any;
|
|
961
|
+
icon?(_: {}): any;
|
|
962
|
+
};
|
|
963
|
+
refs: {};
|
|
964
|
+
rootEl: any;
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
declare function __VLS_template_16(): {
|
|
968
|
+
attrs: Partial<{}>;
|
|
969
|
+
slots: {
|
|
970
|
+
icon?(_: {
|
|
971
|
+
isRecording: boolean;
|
|
972
|
+
}): any;
|
|
973
|
+
'recording-overlay'?(_: {
|
|
974
|
+
isRecording: boolean;
|
|
975
|
+
stop: () => void;
|
|
976
|
+
}): any;
|
|
977
|
+
};
|
|
978
|
+
refs: {};
|
|
979
|
+
rootEl: any;
|
|
980
|
+
};
|
|
981
|
+
|
|
1203
982
|
declare function __VLS_template_2(): {
|
|
1204
983
|
attrs: Partial<{}>;
|
|
1205
984
|
slots: Readonly<BubbleListSlots> & BubbleListSlots;
|
|
@@ -1350,507 +1129,249 @@ declare function __VLS_template_8(): {
|
|
|
1350
1129
|
slots: {
|
|
1351
1130
|
header?(_: {}): any;
|
|
1352
1131
|
prefix?(_: {}): any;
|
|
1353
|
-
content?(_: {
|
|
1354
|
-
|
|
1132
|
+
content?(_: {
|
|
1133
|
+
editor: Ref<Editor | undefined, Editor | undefined>;
|
|
1134
|
+
}): any;
|
|
1355
1135
|
actions?(_: {}): any;
|
|
1356
1136
|
'footer-left'?(_: {}): any;
|
|
1357
|
-
'footer-right'?(_: {}): any;
|
|
1358
1137
|
footer?(_: {}): any;
|
|
1138
|
+
'footer-right'?(_: {}): any;
|
|
1359
1139
|
};
|
|
1360
1140
|
refs: {
|
|
1361
|
-
senderRef:
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
tiny_mode_root: boolean;
|
|
1596
|
-
_constants: Record<string, any>;
|
|
1597
|
-
tabindex: string;
|
|
1598
|
-
showTitle: boolean;
|
|
1599
|
-
readonly: boolean;
|
|
1600
|
-
hoverExpand: boolean;
|
|
1601
|
-
memorySpace: number;
|
|
1602
|
-
selectMenu: {
|
|
1603
|
-
id: string;
|
|
1604
|
-
label: string;
|
|
1605
|
-
}[];
|
|
1606
|
-
contentStyle: Record<string, any>;
|
|
1607
|
-
isSelect: boolean;
|
|
1608
|
-
counter: boolean;
|
|
1609
|
-
autosize: boolean | Record<string, any>;
|
|
1610
|
-
clearable: boolean;
|
|
1611
|
-
autocomplete: string;
|
|
1612
|
-
showPassword: boolean;
|
|
1613
|
-
showWordLimit: boolean;
|
|
1614
|
-
validateEvent: boolean;
|
|
1615
|
-
popupMore: boolean;
|
|
1616
|
-
textareaTitle: string;
|
|
1617
|
-
displayOnly: boolean;
|
|
1618
|
-
displayOnlyContent: string;
|
|
1619
|
-
frontClearIcon: boolean;
|
|
1620
|
-
showEmptyValue: boolean;
|
|
1621
|
-
textAlign: string;
|
|
1622
|
-
showTooltip: boolean;
|
|
1623
|
-
inputBoxType: string;
|
|
1624
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1625
|
-
P: {};
|
|
1626
|
-
B: {};
|
|
1627
|
-
D: {};
|
|
1628
|
-
C: {};
|
|
1629
|
-
M: {};
|
|
1630
|
-
Defaults: {};
|
|
1631
|
-
}, Readonly<ExtractPropTypes< {
|
|
1632
|
-
_constants: {
|
|
1633
|
-
type: ObjectConstructor;
|
|
1634
|
-
default: () => {
|
|
1635
|
-
INPUT_PC: string;
|
|
1636
|
-
INPUTGROUP_PC: string;
|
|
1637
|
-
INPUT_MOBILE: string;
|
|
1638
|
-
INPUTGROUP_MOBILE: string;
|
|
1639
|
-
Mode: string;
|
|
1640
|
-
inputMode(mode: any): string;
|
|
1641
|
-
inputGroupMode(mode: any): string;
|
|
1642
|
-
VALIDATE_ICON: {
|
|
1643
|
-
Validating: string;
|
|
1644
|
-
Success: string;
|
|
1645
|
-
Error: string;
|
|
1646
|
-
};
|
|
1647
|
-
COMPONENT_NAME: {
|
|
1648
|
-
FormItem: string;
|
|
1649
|
-
};
|
|
1650
|
-
MASKSYMBOL: string;
|
|
1651
|
-
TEXTAREA_HEIGHT_MOBILE: number;
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
name: StringConstructor;
|
|
1655
|
-
size: StringConstructor;
|
|
1656
|
-
form: StringConstructor;
|
|
1657
|
-
label: StringConstructor;
|
|
1658
|
-
height: NumberConstructor;
|
|
1659
|
-
resize: StringConstructor;
|
|
1660
|
-
tabindex: {
|
|
1661
|
-
type: StringConstructor;
|
|
1662
|
-
default: string;
|
|
1663
|
-
};
|
|
1664
|
-
disabled: BooleanConstructor;
|
|
1665
|
-
readonly: BooleanConstructor;
|
|
1666
|
-
hoverExpand: BooleanConstructor;
|
|
1667
|
-
mask: BooleanConstructor;
|
|
1668
|
-
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
1669
|
-
prefixIcon: (StringConstructor | ObjectConstructor)[];
|
|
1670
|
-
modelValue: PropType<string | number | null>;
|
|
1671
|
-
type: {
|
|
1672
|
-
type: StringConstructor;
|
|
1673
|
-
default: string;
|
|
1674
|
-
};
|
|
1675
|
-
memorySpace: {
|
|
1676
|
-
type: NumberConstructor;
|
|
1677
|
-
default: number;
|
|
1678
|
-
};
|
|
1679
|
-
vertical: {
|
|
1680
|
-
type: BooleanConstructor;
|
|
1681
|
-
default: boolean;
|
|
1682
|
-
};
|
|
1683
|
-
selectMenu: {
|
|
1684
|
-
type: {
|
|
1685
|
-
(arrayLength: number): {
|
|
1686
|
-
id: string;
|
|
1687
|
-
label: string;
|
|
1688
|
-
}[];
|
|
1689
|
-
(...items: {
|
|
1690
|
-
id: string;
|
|
1691
|
-
label: string;
|
|
1692
|
-
}[]): {
|
|
1693
|
-
id: string;
|
|
1694
|
-
label: string;
|
|
1695
|
-
}[];
|
|
1696
|
-
new (arrayLength: number): {
|
|
1697
|
-
id: string;
|
|
1698
|
-
label: string;
|
|
1699
|
-
}[];
|
|
1700
|
-
new (...items: {
|
|
1701
|
-
id: string;
|
|
1702
|
-
label: string;
|
|
1703
|
-
}[]): {
|
|
1704
|
-
id: string;
|
|
1705
|
-
label: string;
|
|
1706
|
-
}[];
|
|
1707
|
-
isArray(arg: any): arg is any[];
|
|
1708
|
-
readonly prototype: any[];
|
|
1709
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
1710
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
1711
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
1712
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
1713
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
1714
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
1715
|
-
};
|
|
1716
|
-
default: () => never[];
|
|
1717
|
-
};
|
|
1718
|
-
ellipsis: {
|
|
1719
|
-
type: BooleanConstructor;
|
|
1720
|
-
default: boolean;
|
|
1721
|
-
};
|
|
1722
|
-
contentStyle: {
|
|
1723
|
-
type: ObjectConstructor;
|
|
1724
|
-
default: () => {};
|
|
1725
|
-
};
|
|
1726
|
-
isSelect: {
|
|
1727
|
-
type: BooleanConstructor;
|
|
1728
|
-
default: boolean;
|
|
1729
|
-
};
|
|
1730
|
-
tips: StringConstructor;
|
|
1731
|
-
counter: {
|
|
1732
|
-
type: BooleanConstructor;
|
|
1733
|
-
default: boolean;
|
|
1734
|
-
};
|
|
1735
|
-
autosize: {
|
|
1736
|
-
type: (BooleanConstructor | ObjectConstructor)[];
|
|
1737
|
-
default: boolean;
|
|
1738
|
-
};
|
|
1739
|
-
clearable: {
|
|
1740
|
-
type: BooleanConstructor;
|
|
1741
|
-
default: boolean;
|
|
1742
|
-
};
|
|
1743
|
-
autocomplete: {
|
|
1744
|
-
type: StringConstructor;
|
|
1745
|
-
default: string;
|
|
1746
|
-
};
|
|
1747
|
-
showPassword: {
|
|
1748
|
-
type: BooleanConstructor;
|
|
1749
|
-
default: boolean;
|
|
1750
|
-
};
|
|
1751
|
-
showWordLimit: {
|
|
1752
|
-
type: BooleanConstructor;
|
|
1753
|
-
default: boolean;
|
|
1754
|
-
};
|
|
1755
|
-
showTitle: {
|
|
1756
|
-
type: BooleanConstructor;
|
|
1757
|
-
default: boolean;
|
|
1758
|
-
};
|
|
1759
|
-
validateEvent: {
|
|
1760
|
-
type: BooleanConstructor;
|
|
1761
|
-
default: boolean;
|
|
1762
|
-
};
|
|
1763
|
-
popupMore: {
|
|
1764
|
-
type: BooleanConstructor;
|
|
1765
|
-
default: boolean;
|
|
1766
|
-
};
|
|
1767
|
-
textareaTitle: {
|
|
1768
|
-
type: StringConstructor;
|
|
1769
|
-
default: string;
|
|
1770
|
-
};
|
|
1771
|
-
displayOnly: {
|
|
1772
|
-
type: BooleanConstructor;
|
|
1773
|
-
default: boolean;
|
|
1774
|
-
};
|
|
1775
|
-
displayOnlyContent: {
|
|
1776
|
-
type: StringConstructor;
|
|
1777
|
-
default: string;
|
|
1778
|
-
};
|
|
1779
|
-
customClass: {
|
|
1780
|
-
type: StringConstructor;
|
|
1781
|
-
default: string;
|
|
1782
|
-
};
|
|
1783
|
-
frontClearIcon: {
|
|
1784
|
-
type: BooleanConstructor;
|
|
1785
|
-
default: boolean;
|
|
1786
|
-
};
|
|
1787
|
-
showEmptyValue: {
|
|
1788
|
-
type: BooleanConstructor;
|
|
1789
|
-
default: undefined;
|
|
1790
|
-
};
|
|
1791
|
-
textAlign: {
|
|
1792
|
-
type: StringConstructor;
|
|
1793
|
-
default: string;
|
|
1794
|
-
};
|
|
1795
|
-
width: {
|
|
1796
|
-
type: PropType<string | number | null>;
|
|
1797
|
-
};
|
|
1798
|
-
showTooltip: {
|
|
1799
|
-
type: BooleanConstructor;
|
|
1800
|
-
default: boolean;
|
|
1801
|
-
};
|
|
1802
|
-
inputBoxType: {
|
|
1803
|
-
type: StringConstructor;
|
|
1804
|
-
default: string;
|
|
1805
|
-
validator: (value: string) => boolean;
|
|
1806
|
-
};
|
|
1807
|
-
tiny_mode: StringConstructor;
|
|
1808
|
-
tiny_mode_root: BooleanConstructor;
|
|
1809
|
-
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
1810
|
-
tiny_renderless: FunctionConstructor;
|
|
1811
|
-
tiny_theme: StringConstructor;
|
|
1812
|
-
tiny_mcp_config: ObjectConstructor;
|
|
1813
|
-
tiny_chart_theme: ObjectConstructor;
|
|
1814
|
-
}>>, () => VNode<RendererNode, RendererElement, {
|
|
1815
|
-
[key: string]: any;
|
|
1816
|
-
}>, {}, {}, {}, {
|
|
1817
|
-
disabled: boolean;
|
|
1818
|
-
type: string;
|
|
1819
|
-
ellipsis: boolean;
|
|
1820
|
-
mask: boolean;
|
|
1821
|
-
vertical: boolean;
|
|
1822
|
-
customClass: string;
|
|
1823
|
-
tiny_mode_root: boolean;
|
|
1824
|
-
_constants: Record<string, any>;
|
|
1825
|
-
tabindex: string;
|
|
1826
|
-
showTitle: boolean;
|
|
1827
|
-
readonly: boolean;
|
|
1828
|
-
hoverExpand: boolean;
|
|
1829
|
-
memorySpace: number;
|
|
1830
|
-
selectMenu: {
|
|
1831
|
-
id: string;
|
|
1832
|
-
label: string;
|
|
1833
|
-
}[];
|
|
1834
|
-
contentStyle: Record<string, any>;
|
|
1835
|
-
isSelect: boolean;
|
|
1836
|
-
counter: boolean;
|
|
1837
|
-
autosize: boolean | Record<string, any>;
|
|
1838
|
-
clearable: boolean;
|
|
1839
|
-
autocomplete: string;
|
|
1840
|
-
showPassword: boolean;
|
|
1841
|
-
showWordLimit: boolean;
|
|
1842
|
-
validateEvent: boolean;
|
|
1843
|
-
popupMore: boolean;
|
|
1844
|
-
textareaTitle: string;
|
|
1845
|
-
displayOnly: boolean;
|
|
1846
|
-
displayOnlyContent: string;
|
|
1847
|
-
frontClearIcon: boolean;
|
|
1848
|
-
showEmptyValue: boolean;
|
|
1849
|
-
textAlign: string;
|
|
1850
|
-
showTooltip: boolean;
|
|
1851
|
-
inputBoxType: string;
|
|
1852
|
-
}> | null;
|
|
1853
|
-
buttonsContainerRef: HTMLDivElement;
|
|
1141
|
+
senderRef: ({
|
|
1142
|
+
$: ComponentInternalInstance;
|
|
1143
|
+
$data: {};
|
|
1144
|
+
$props: {
|
|
1145
|
+
readonly modelValue?: string | undefined;
|
|
1146
|
+
readonly defaultValue?: string | undefined;
|
|
1147
|
+
readonly placeholder?: string | undefined;
|
|
1148
|
+
readonly disabled?: boolean | undefined;
|
|
1149
|
+
readonly loading?: boolean | undefined;
|
|
1150
|
+
readonly autofocus?: boolean | undefined;
|
|
1151
|
+
readonly enterkeyhint?: EnterKeyHint | undefined;
|
|
1152
|
+
readonly mode?: InputMode | undefined;
|
|
1153
|
+
readonly autoSize?: AutoSize | undefined;
|
|
1154
|
+
readonly maxLength?: number | undefined;
|
|
1155
|
+
readonly showWordLimit?: boolean | undefined;
|
|
1156
|
+
readonly clearable?: boolean | undefined;
|
|
1157
|
+
readonly extensions?: Extension[] | any[] | undefined;
|
|
1158
|
+
readonly size?: "normal" | "small" | undefined;
|
|
1159
|
+
readonly stopText?: string | undefined;
|
|
1160
|
+
readonly defaultActions?: DefaultActions | undefined;
|
|
1161
|
+
readonly submitType?: SubmitTrigger | undefined;
|
|
1162
|
+
readonly onClear?: (() => any) | undefined;
|
|
1163
|
+
readonly onInput?: ((value: string) => any) | undefined;
|
|
1164
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1165
|
+
readonly onCancel?: (() => any) | undefined;
|
|
1166
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1167
|
+
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1168
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1169
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1170
|
+
$attrs: {
|
|
1171
|
+
[x: string]: unknown;
|
|
1172
|
+
};
|
|
1173
|
+
$refs: {
|
|
1174
|
+
[x: string]: unknown;
|
|
1175
|
+
};
|
|
1176
|
+
$slots: Readonly<{
|
|
1177
|
+
[name: string]: Slot<any> | undefined;
|
|
1178
|
+
}>;
|
|
1179
|
+
$root: ComponentPublicInstance | null;
|
|
1180
|
+
$parent: ComponentPublicInstance | null;
|
|
1181
|
+
$host: Element | null;
|
|
1182
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "cancel") => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "submit", textContent: string, structuredData?: StructuredData | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
1183
|
+
$el: HTMLDivElement;
|
|
1184
|
+
$options: ComponentOptionsBase<Readonly<SenderProps> & Readonly<{
|
|
1185
|
+
onClear?: (() => any) | undefined;
|
|
1186
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1187
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1188
|
+
onCancel?: (() => any) | undefined;
|
|
1189
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1190
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1191
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1192
|
+
}>, {
|
|
1193
|
+
submit: () => void;
|
|
1194
|
+
clear: () => void;
|
|
1195
|
+
cancel: () => void;
|
|
1196
|
+
focus: () => void;
|
|
1197
|
+
blur: () => void;
|
|
1198
|
+
setContent: (content: string) => void;
|
|
1199
|
+
getContent: () => string;
|
|
1200
|
+
editor: SenderContext["editor"];
|
|
1201
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1202
|
+
clear: () => any;
|
|
1203
|
+
input: (value: string) => any;
|
|
1204
|
+
blur: (event: FocusEvent) => any;
|
|
1205
|
+
cancel: () => any;
|
|
1206
|
+
focus: (event: FocusEvent) => any;
|
|
1207
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
1208
|
+
"update:modelValue": (value: string) => any;
|
|
1209
|
+
}, string, {
|
|
1210
|
+
size: "normal" | "small";
|
|
1211
|
+
placeholder: string;
|
|
1212
|
+
mode: InputMode;
|
|
1213
|
+
enterkeyhint: EnterKeyHint;
|
|
1214
|
+
autoSize: AutoSize;
|
|
1215
|
+
extensions: Extension[] | any[];
|
|
1216
|
+
submitType: SubmitTrigger;
|
|
1217
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1218
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1219
|
+
created?: (() => void) | (() => void)[];
|
|
1220
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1221
|
+
mounted?: (() => void) | (() => void)[];
|
|
1222
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1223
|
+
updated?: (() => void) | (() => void)[];
|
|
1224
|
+
activated?: (() => void) | (() => void)[];
|
|
1225
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1226
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1227
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1228
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1229
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1230
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1231
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1232
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1233
|
+
};
|
|
1234
|
+
$forceUpdate: () => void;
|
|
1235
|
+
$nextTick: nextTick;
|
|
1236
|
+
$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;
|
|
1237
|
+
} & Readonly<{
|
|
1238
|
+
size: "normal" | "small";
|
|
1239
|
+
placeholder: string;
|
|
1240
|
+
mode: InputMode;
|
|
1241
|
+
enterkeyhint: EnterKeyHint;
|
|
1242
|
+
autoSize: AutoSize;
|
|
1243
|
+
extensions: Extension[] | any[];
|
|
1244
|
+
submitType: SubmitTrigger;
|
|
1245
|
+
}> & Omit<Readonly<SenderProps> & Readonly<{
|
|
1246
|
+
onClear?: (() => any) | undefined;
|
|
1247
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1248
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1249
|
+
onCancel?: (() => any) | undefined;
|
|
1250
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1251
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1252
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1253
|
+
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "placeholder" | "mode" | "enterkeyhint" | "autoSize" | "extensions" | "submitType") | "getContent"> & ShallowUnwrapRef< {
|
|
1254
|
+
submit: () => void;
|
|
1255
|
+
clear: () => void;
|
|
1256
|
+
cancel: () => void;
|
|
1257
|
+
focus: () => void;
|
|
1258
|
+
blur: () => void;
|
|
1259
|
+
setContent: (content: string) => void;
|
|
1260
|
+
getContent: () => string;
|
|
1261
|
+
editor: SenderContext["editor"];
|
|
1262
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1263
|
+
$slots: {
|
|
1264
|
+
header?(_: {}): any;
|
|
1265
|
+
header?(_: {}): any;
|
|
1266
|
+
prefix?(_: {}): any;
|
|
1267
|
+
prefix?(_: {}): any;
|
|
1268
|
+
content?(_: {
|
|
1269
|
+
editor: Editor | undefined;
|
|
1270
|
+
}): any;
|
|
1271
|
+
content?(_: {
|
|
1272
|
+
editor: Ref<Editor | undefined, Editor | undefined>;
|
|
1273
|
+
}): any;
|
|
1274
|
+
'actions-inline'?(_: {}): any;
|
|
1275
|
+
footer?(_: {}): any;
|
|
1276
|
+
'footer-right'?(_: {}): any;
|
|
1277
|
+
};
|
|
1278
|
+
}) | null;
|
|
1279
|
+
voiceRef: ({
|
|
1280
|
+
$: ComponentInternalInstance;
|
|
1281
|
+
$data: {};
|
|
1282
|
+
$props: {
|
|
1283
|
+
readonly icon?: (VNode | Component) | undefined;
|
|
1284
|
+
readonly recordingIcon?: (VNode | Component) | undefined;
|
|
1285
|
+
readonly disabled?: boolean | undefined;
|
|
1286
|
+
readonly size?: "small" | "normal" | undefined;
|
|
1287
|
+
readonly tooltip?: TooltipContent | undefined;
|
|
1288
|
+
readonly tooltipPlacement?: TooltipPlacement | undefined;
|
|
1289
|
+
readonly speechConfig?: SpeechConfig | undefined;
|
|
1290
|
+
readonly autoInsert?: boolean | undefined;
|
|
1291
|
+
readonly onButtonClick?: ((isRecording: boolean, preventDefault: () => void) => void | Promise<void>) | undefined;
|
|
1292
|
+
readonly "onSpeech-start"?: (() => any) | undefined;
|
|
1293
|
+
readonly "onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
1294
|
+
readonly "onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
1295
|
+
readonly "onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
1296
|
+
readonly "onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
1297
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1298
|
+
$attrs: {
|
|
1299
|
+
[x: string]: unknown;
|
|
1300
|
+
};
|
|
1301
|
+
$refs: {
|
|
1302
|
+
[x: string]: unknown;
|
|
1303
|
+
};
|
|
1304
|
+
$slots: Readonly<{
|
|
1305
|
+
[name: string]: Slot<any> | undefined;
|
|
1306
|
+
}>;
|
|
1307
|
+
$root: ComponentPublicInstance | null;
|
|
1308
|
+
$parent: ComponentPublicInstance | null;
|
|
1309
|
+
$host: Element | null;
|
|
1310
|
+
$emit: ((event: "speech-start") => void) & ((event: "speech-interim", transcript: string) => void) & ((event: "speech-final", transcript: string) => void) & ((event: "speech-end", transcript?: string | undefined) => void) & ((event: "speech-error", error: Error) => void);
|
|
1311
|
+
$el: any;
|
|
1312
|
+
$options: ComponentOptionsBase<Readonly<VoiceButtonProps> & Readonly<{
|
|
1313
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
1314
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
1315
|
+
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
1316
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
1317
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
1318
|
+
}>, {
|
|
1319
|
+
start: () => void;
|
|
1320
|
+
stop: () => void;
|
|
1321
|
+
speechState: SpeechState;
|
|
1322
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1323
|
+
"speech-start": () => any;
|
|
1324
|
+
"speech-interim": (transcript: string) => any;
|
|
1325
|
+
"speech-final": (transcript: string) => any;
|
|
1326
|
+
"speech-end": (transcript?: string | undefined) => any;
|
|
1327
|
+
"speech-error": (error: Error) => any;
|
|
1328
|
+
}, string, {
|
|
1329
|
+
tooltipPlacement: TooltipPlacement;
|
|
1330
|
+
autoInsert: boolean;
|
|
1331
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1332
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1333
|
+
created?: (() => void) | (() => void)[];
|
|
1334
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1335
|
+
mounted?: (() => void) | (() => void)[];
|
|
1336
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1337
|
+
updated?: (() => void) | (() => void)[];
|
|
1338
|
+
activated?: (() => void) | (() => void)[];
|
|
1339
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1340
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1341
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1342
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1343
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1344
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1345
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1346
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1347
|
+
};
|
|
1348
|
+
$forceUpdate: () => void;
|
|
1349
|
+
$nextTick: nextTick;
|
|
1350
|
+
$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;
|
|
1351
|
+
} & Readonly<{
|
|
1352
|
+
tooltipPlacement: TooltipPlacement;
|
|
1353
|
+
autoInsert: boolean;
|
|
1354
|
+
}> & Omit<Readonly<VoiceButtonProps> & Readonly<{
|
|
1355
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
1356
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
1357
|
+
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
1358
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
1359
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
1360
|
+
}>, "stop" | "start" | "speechState" | ("tooltipPlacement" | "autoInsert")> & ShallowUnwrapRef< {
|
|
1361
|
+
start: () => void;
|
|
1362
|
+
stop: () => void;
|
|
1363
|
+
speechState: SpeechState;
|
|
1364
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1365
|
+
$slots: {
|
|
1366
|
+
icon?(_: {
|
|
1367
|
+
isRecording: boolean;
|
|
1368
|
+
}): any;
|
|
1369
|
+
'recording-overlay'?(_: {
|
|
1370
|
+
isRecording: boolean;
|
|
1371
|
+
stop: () => void;
|
|
1372
|
+
}): any;
|
|
1373
|
+
};
|
|
1374
|
+
}) | null;
|
|
1854
1375
|
};
|
|
1855
1376
|
rootEl: HTMLDivElement;
|
|
1856
1377
|
};
|
|
@@ -1874,6 +1395,10 @@ declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
|
|
|
1874
1395
|
|
|
1875
1396
|
declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
|
|
1876
1397
|
|
|
1398
|
+
declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
|
|
1399
|
+
|
|
1400
|
+
declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
|
|
1401
|
+
|
|
1877
1402
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1878
1403
|
|
|
1879
1404
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1926,6 +1451,18 @@ declare type __VLS_WithTemplateSlots_14<T, S> = T & {
|
|
|
1926
1451
|
};
|
|
1927
1452
|
};
|
|
1928
1453
|
|
|
1454
|
+
declare type __VLS_WithTemplateSlots_15<T, S> = T & {
|
|
1455
|
+
new (): {
|
|
1456
|
+
$slots: S;
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
declare type __VLS_WithTemplateSlots_16<T, S> = T & {
|
|
1461
|
+
new (): {
|
|
1462
|
+
$slots: S;
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1929
1466
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1930
1467
|
new (): {
|
|
1931
1468
|
$slots: S;
|
|
@@ -1974,28 +1511,42 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1974
1511
|
};
|
|
1975
1512
|
};
|
|
1976
1513
|
|
|
1977
|
-
|
|
1514
|
+
declare interface ActionButton_2 {
|
|
1978
1515
|
type: string;
|
|
1979
1516
|
label: string;
|
|
1980
1517
|
handler?: (file: Attachment) => void;
|
|
1981
1518
|
}
|
|
1982
1519
|
|
|
1983
|
-
|
|
1984
|
-
|
|
1520
|
+
/**
|
|
1521
|
+
* ActionButton Props
|
|
1522
|
+
*
|
|
1523
|
+
* 基础操作按钮的 Props
|
|
1524
|
+
*/
|
|
1525
|
+
export declare interface ActionButtonProps {
|
|
1526
|
+
/**
|
|
1527
|
+
* 按钮图标
|
|
1528
|
+
*/
|
|
1529
|
+
icon: VNode | Component;
|
|
1530
|
+
/**
|
|
1531
|
+
* 是否禁用
|
|
1532
|
+
*/
|
|
1985
1533
|
disabled?: boolean;
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1534
|
+
/**
|
|
1535
|
+
* 是否激活状态
|
|
1536
|
+
*/
|
|
1537
|
+
active?: boolean;
|
|
1538
|
+
/**
|
|
1539
|
+
* 工具提示
|
|
1540
|
+
*/
|
|
1541
|
+
tooltip?: TooltipContent;
|
|
1542
|
+
/**
|
|
1543
|
+
* Tooltip 位置
|
|
1544
|
+
*/
|
|
1545
|
+
tooltipPlacement?: TooltipPlacement;
|
|
1546
|
+
/**
|
|
1547
|
+
* 按钮大小
|
|
1548
|
+
*/
|
|
1549
|
+
size?: string | number;
|
|
1999
1550
|
}
|
|
2000
1551
|
|
|
2001
1552
|
export declare type AddType = 'form' | 'code';
|
|
@@ -2009,7 +1560,7 @@ export declare interface AttachmentListEmits {
|
|
|
2009
1560
|
(e: 'retry', file: Attachment): void;
|
|
2010
1561
|
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
2011
1562
|
(e: 'action', payload: {
|
|
2012
|
-
action:
|
|
1563
|
+
action: ActionButton_2;
|
|
2013
1564
|
file: Attachment;
|
|
2014
1565
|
}): void;
|
|
2015
1566
|
}
|
|
@@ -2019,11 +1570,14 @@ export declare interface AttachmentListProps {
|
|
|
2019
1570
|
disabled?: boolean;
|
|
2020
1571
|
wrap?: boolean;
|
|
2021
1572
|
fileIcons?: Record<string, Component>;
|
|
2022
|
-
actions?:
|
|
1573
|
+
actions?: ActionButton_2[];
|
|
2023
1574
|
variant?: DisplayVariant;
|
|
2024
1575
|
fileMatchers?: FileTypeMatcher[];
|
|
2025
1576
|
}
|
|
2026
1577
|
|
|
1578
|
+
/**
|
|
1579
|
+
* 自动高度配置
|
|
1580
|
+
*/
|
|
2027
1581
|
export declare type AutoSize = boolean | {
|
|
2028
1582
|
minRows: number;
|
|
2029
1583
|
maxRows: number;
|
|
@@ -2041,13 +1595,7 @@ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled'
|
|
|
2041
1595
|
|
|
2042
1596
|
export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
2043
1597
|
|
|
2044
|
-
declare
|
|
2045
|
-
id: string;
|
|
2046
|
-
type: string;
|
|
2047
|
-
content: string;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
declare const Bubble: typeof _default_18 & {
|
|
1598
|
+
declare const Bubble: typeof _default_25 & {
|
|
2051
1599
|
install: typeof bubbleInstall;
|
|
2052
1600
|
};
|
|
2053
1601
|
export { Bubble }
|
|
@@ -2095,7 +1643,7 @@ declare type BubbleGroupFunction = (messages: BubbleMessage[], dividerRole?: str
|
|
|
2095
1643
|
|
|
2096
1644
|
declare const bubbleInstall: (app: App) => void;
|
|
2097
1645
|
|
|
2098
|
-
declare const BubbleList: typeof
|
|
1646
|
+
declare const BubbleList: typeof _default_26 & {
|
|
2099
1647
|
install: typeof bubbleListInstall;
|
|
2100
1648
|
};
|
|
2101
1649
|
export { BubbleList }
|
|
@@ -2112,7 +1660,7 @@ export declare interface BubbleListProps {
|
|
|
2112
1660
|
* - 自定义函数: (messages, dividerRole) => BubbleMessageGroup[]
|
|
2113
1661
|
*
|
|
2114
1662
|
* 特殊情况:
|
|
2115
|
-
* - 当 message 的 content
|
|
1663
|
+
* - 当 message 的 content 为数组时,且 message.role === 'user',该 message 会被单独作为一个独立分组
|
|
2116
1664
|
* - 该独立分组会被"密封",后续的消息(即使角色相同)也不会被添加到这个分组中
|
|
2117
1665
|
*/
|
|
2118
1666
|
groupStrategy?: 'consecutive' | 'divider' | BubbleGroupFunction;
|
|
@@ -2180,7 +1728,7 @@ export declare type BubbleProps = BubbleMessage & {
|
|
|
2180
1728
|
fallbackContentRenderer?: Component<BubbleContentRendererProps>;
|
|
2181
1729
|
};
|
|
2182
1730
|
|
|
2183
|
-
declare const BubbleProvider: typeof
|
|
1731
|
+
declare const BubbleProvider: typeof _default_27 & {
|
|
2184
1732
|
install: typeof bubbleProviderInstall;
|
|
2185
1733
|
};
|
|
2186
1734
|
export { BubbleProvider }
|
|
@@ -2327,7 +1875,7 @@ export declare interface BubbleSlots {
|
|
|
2327
1875
|
}) => VNode | VNode[];
|
|
2328
1876
|
}
|
|
2329
1877
|
|
|
2330
|
-
|
|
1878
|
+
declare interface ButtonGroupConfig {
|
|
2331
1879
|
file?: ControlState & fileUploadConfig;
|
|
2332
1880
|
submit?: ControlState;
|
|
2333
1881
|
voice?: VoiceButtonConfig;
|
|
@@ -2358,6 +1906,18 @@ declare type ChatMessageWithOptionalRole<T extends ChatMessageContent = ChatMess
|
|
|
2358
1906
|
|
|
2359
1907
|
export declare type ColorMode = 'light' | 'dark' | 'auto';
|
|
2360
1908
|
|
|
1909
|
+
declare interface CompatTemplateItem {
|
|
1910
|
+
id: string;
|
|
1911
|
+
type: 'template' | 'block';
|
|
1912
|
+
content: string;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
declare interface CompatTextItem {
|
|
1916
|
+
id: string;
|
|
1917
|
+
type: 'text';
|
|
1918
|
+
content: string;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
2361
1921
|
export declare interface ContainerEmits {
|
|
2362
1922
|
(e: 'close'): void;
|
|
2363
1923
|
}
|
|
@@ -2381,7 +1941,7 @@ export declare interface ContainerSlots {
|
|
|
2381
1941
|
footer: () => unknown;
|
|
2382
1942
|
}
|
|
2383
1943
|
|
|
2384
|
-
|
|
1944
|
+
declare interface ControlState {
|
|
2385
1945
|
tooltips?: string | TooltipRender;
|
|
2386
1946
|
disabled?: boolean;
|
|
2387
1947
|
tooltipPlacement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
@@ -2392,56 +1952,103 @@ declare const _default: {
|
|
|
2392
1952
|
};
|
|
2393
1953
|
export default _default;
|
|
2394
1954
|
|
|
2395
|
-
declare const _default_10: typeof
|
|
1955
|
+
declare const _default_10: typeof _default_37 & {
|
|
2396
1956
|
install: typeof install_9;
|
|
2397
1957
|
};
|
|
2398
|
-
export { _default_10 as
|
|
2399
|
-
export { _default_10 as
|
|
1958
|
+
export { _default_10 as SenderCompat }
|
|
1959
|
+
export { _default_10 as TrSenderCompat }
|
|
2400
1960
|
|
|
2401
|
-
declare const _default_11: typeof
|
|
1961
|
+
declare const _default_11: typeof _default_39 & {
|
|
2402
1962
|
install: typeof install_10;
|
|
2403
1963
|
};
|
|
2404
1964
|
export { _default_11 as SuggestionPills }
|
|
2405
1965
|
export { _default_11 as TrSuggestionPills }
|
|
2406
1966
|
|
|
2407
|
-
declare const _default_12: typeof
|
|
1967
|
+
declare const _default_12: typeof _default_40 & {
|
|
2408
1968
|
install: typeof install_11;
|
|
2409
1969
|
};
|
|
2410
1970
|
export { _default_12 as SuggestionPopover }
|
|
2411
1971
|
export { _default_12 as TrSuggestionPopover }
|
|
2412
1972
|
|
|
2413
|
-
declare const _default_13: typeof
|
|
1973
|
+
declare const _default_13: typeof _default_41 & {
|
|
2414
1974
|
install: typeof install_12;
|
|
2415
1975
|
};
|
|
2416
1976
|
export { _default_13 as ThemeProvider }
|
|
2417
1977
|
export { _default_13 as TrThemeProvider }
|
|
2418
1978
|
|
|
2419
|
-
declare const _default_14: typeof
|
|
1979
|
+
declare const _default_14: typeof _default_42 & {
|
|
2420
1980
|
install: typeof install_13;
|
|
2421
1981
|
};
|
|
2422
1982
|
export { _default_14 as TrWelcome }
|
|
2423
1983
|
export { _default_14 as Welcome }
|
|
2424
1984
|
|
|
2425
|
-
declare const _default_15: typeof
|
|
1985
|
+
declare const _default_15: typeof _default_43 & {
|
|
2426
1986
|
install: typeof install_14;
|
|
2427
1987
|
};
|
|
2428
1988
|
export { _default_15 as McpServerPicker }
|
|
2429
1989
|
export { _default_15 as TrMcpServerPicker }
|
|
2430
1990
|
|
|
2431
|
-
declare const _default_16: typeof
|
|
1991
|
+
declare const _default_16: typeof _default_44 & {
|
|
2432
1992
|
install: typeof install_15;
|
|
2433
1993
|
};
|
|
2434
1994
|
export { _default_16 as McpAddForm }
|
|
2435
1995
|
export { _default_16 as TrMcpAddForm }
|
|
2436
1996
|
|
|
2437
|
-
declare const _default_17:
|
|
1997
|
+
declare const _default_17: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1998
|
+
export { _default_17 as ActionButton }
|
|
1999
|
+
export { _default_17 as TrActionButton }
|
|
2000
|
+
|
|
2001
|
+
declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2002
|
+
export { _default_18 as SubmitButton }
|
|
2003
|
+
export { _default_18 as TrSubmitButton }
|
|
2004
|
+
|
|
2005
|
+
declare const _default_19: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2006
|
+
export { _default_19 as ClearButton }
|
|
2007
|
+
export { _default_19 as TrClearButton }
|
|
2008
|
+
|
|
2009
|
+
declare const _default_2: typeof _default_24 & {
|
|
2010
|
+
install: typeof install;
|
|
2011
|
+
};
|
|
2012
|
+
export { _default_2 as Attachments }
|
|
2013
|
+
export { _default_2 as TrAttachments }
|
|
2014
|
+
|
|
2015
|
+
declare const _default_20: DefineComponent<UploadButtonProps, {
|
|
2016
|
+
open: (localOptions?: Partial<UseFileDialogOptions>) => void;
|
|
2017
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2018
|
+
error: (error: Error, files?: File[] | undefined) => any;
|
|
2019
|
+
select: (files: File[]) => any;
|
|
2020
|
+
}, string, PublicProps, Readonly<UploadButtonProps> & Readonly<{
|
|
2021
|
+
onError?: ((error: Error, files?: File[] | undefined) => any) | undefined;
|
|
2022
|
+
onSelect?: ((files: File[]) => any) | undefined;
|
|
2023
|
+
}>, {
|
|
2024
|
+
reset: boolean;
|
|
2025
|
+
multiple: boolean;
|
|
2026
|
+
tooltipPlacement: TooltipPlacement;
|
|
2027
|
+
accept: string;
|
|
2028
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2029
|
+
export { _default_20 as TrUploadButton }
|
|
2030
|
+
export { _default_20 as UploadButton }
|
|
2031
|
+
|
|
2032
|
+
declare const _default_21: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
2033
|
+
export { _default_21 as TrVoiceButton }
|
|
2034
|
+
export { _default_21 as VoiceButton }
|
|
2035
|
+
|
|
2036
|
+
declare const _default_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2037
|
+
export { _default_22 as TrWordCounter }
|
|
2038
|
+
export { _default_22 as WordCounter }
|
|
2039
|
+
|
|
2040
|
+
declare const _default_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2041
|
+
export { _default_23 as DefaultActionButtons }
|
|
2042
|
+
export { _default_23 as TrDefaultActionButtons }
|
|
2043
|
+
|
|
2044
|
+
declare const _default_24: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2438
2045
|
"update:items": (items: Attachment[]) => any;
|
|
2439
2046
|
remove: (file: Attachment) => any;
|
|
2440
2047
|
download: (event: MouseEvent, file: Attachment) => any;
|
|
2441
2048
|
retry: (file: Attachment) => any;
|
|
2442
2049
|
preview: (event: MouseEvent, file: Attachment) => any;
|
|
2443
2050
|
action: (payload: {
|
|
2444
|
-
action:
|
|
2051
|
+
action: ActionButton_2;
|
|
2445
2052
|
file: Attachment;
|
|
2446
2053
|
}) => any;
|
|
2447
2054
|
}, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
|
|
@@ -2451,36 +2058,36 @@ onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
|
2451
2058
|
onRetry?: ((file: Attachment) => any) | undefined;
|
|
2452
2059
|
onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2453
2060
|
onAction?: ((payload: {
|
|
2454
|
-
action:
|
|
2061
|
+
action: ActionButton_2;
|
|
2455
2062
|
file: Attachment;
|
|
2456
2063
|
}) => any) | undefined;
|
|
2457
2064
|
}>, {
|
|
2458
|
-
actions:
|
|
2065
|
+
actions: ActionButton_2[];
|
|
2459
2066
|
fileMatchers: FileTypeMatcher[];
|
|
2460
2067
|
variant: DisplayVariant;
|
|
2461
2068
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2462
2069
|
|
|
2463
|
-
declare const
|
|
2070
|
+
declare const _default_25: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2464
2071
|
|
|
2465
|
-
declare const
|
|
2072
|
+
declare const _default_26: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2466
2073
|
|
|
2467
|
-
declare const
|
|
2468
|
-
install: typeof install;
|
|
2469
|
-
};
|
|
2470
|
-
export { _default_2 as Attachments }
|
|
2471
|
-
export { _default_2 as TrAttachments }
|
|
2074
|
+
declare const _default_27: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2472
2075
|
|
|
2473
|
-
declare const
|
|
2076
|
+
declare const _default_28: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2474
2077
|
|
|
2475
|
-
declare const
|
|
2078
|
+
declare const _default_29: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2476
2079
|
|
|
2477
|
-
declare const
|
|
2080
|
+
declare const _default_3: typeof _default_28 & {
|
|
2081
|
+
install: typeof install_2;
|
|
2082
|
+
};
|
|
2083
|
+
export { _default_3 as Container }
|
|
2084
|
+
export { _default_3 as TrContainer }
|
|
2478
2085
|
|
|
2479
|
-
declare const
|
|
2086
|
+
declare const _default_30: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2480
2087
|
|
|
2481
|
-
declare const
|
|
2088
|
+
declare const _default_31: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2482
2089
|
|
|
2483
|
-
declare const
|
|
2090
|
+
declare const _default_32: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2484
2091
|
action: (name: string) => any;
|
|
2485
2092
|
operation: (name: string) => any;
|
|
2486
2093
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
@@ -2492,7 +2099,7 @@ actionsLimit: number;
|
|
|
2492
2099
|
sourcesLinesLimit: number;
|
|
2493
2100
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2494
2101
|
|
|
2495
|
-
declare const
|
|
2102
|
+
declare const _default_33: <T extends HistoryItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2496
2103
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
2497
2104
|
readonly "onItem-click"?: ((item: T) => any) | undefined;
|
|
2498
2105
|
readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
|
|
@@ -2506,38 +2113,38 @@ declare const _default_26: <T extends HistoryItem>(__VLS_props: NonNullable<Awai
|
|
|
2506
2113
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2507
2114
|
};
|
|
2508
2115
|
|
|
2509
|
-
declare const
|
|
2116
|
+
declare const _default_34: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2510
2117
|
size: string | number;
|
|
2511
2118
|
svgSize: string | number;
|
|
2512
2119
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2513
2120
|
|
|
2514
|
-
declare const
|
|
2121
|
+
declare const _default_35: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2515
2122
|
size: "small" | "medium" | "large";
|
|
2516
2123
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2517
2124
|
|
|
2518
|
-
declare const
|
|
2125
|
+
declare const _default_36: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2519
2126
|
|
|
2520
|
-
declare const
|
|
2521
|
-
install: typeof install_2;
|
|
2522
|
-
};
|
|
2523
|
-
export { _default_3 as Container }
|
|
2524
|
-
export { _default_3 as TrContainer }
|
|
2127
|
+
declare const _default_37: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2525
2128
|
|
|
2526
|
-
declare const
|
|
2129
|
+
declare const _default_38: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2527
2130
|
|
|
2528
|
-
declare const
|
|
2131
|
+
declare const _default_39: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2529
2132
|
|
|
2530
|
-
declare const
|
|
2133
|
+
declare const _default_4: typeof _default_29 & {
|
|
2134
|
+
install: typeof install_3;
|
|
2135
|
+
};
|
|
2136
|
+
export { _default_4 as Conversations }
|
|
2137
|
+
export { _default_4 as TrConversations }
|
|
2531
2138
|
|
|
2532
|
-
declare const
|
|
2139
|
+
declare const _default_40: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2533
2140
|
|
|
2534
|
-
declare const
|
|
2141
|
+
declare const _default_41: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2535
2142
|
|
|
2536
|
-
declare const
|
|
2143
|
+
declare const _default_42: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
2537
2144
|
|
|
2538
|
-
declare const
|
|
2145
|
+
declare const _default_43: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
2539
2146
|
|
|
2540
|
-
declare const
|
|
2147
|
+
declare const _default_44: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2541
2148
|
cancel: () => any;
|
|
2542
2149
|
confirm: (type: AddType, data: string | McpAddFormData) => any;
|
|
2543
2150
|
"update:addType": (value: AddType) => any;
|
|
@@ -2549,42 +2156,90 @@ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
|
|
|
2549
2156
|
addType: AddType;
|
|
2550
2157
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2551
2158
|
|
|
2552
|
-
declare const
|
|
2553
|
-
install: typeof install_3;
|
|
2554
|
-
};
|
|
2555
|
-
export { _default_4 as Conversations }
|
|
2556
|
-
export { _default_4 as TrConversations }
|
|
2557
|
-
|
|
2558
|
-
declare const _default_5: typeof _default_23 & {
|
|
2159
|
+
declare const _default_5: typeof _default_30 & {
|
|
2559
2160
|
install: typeof install_4;
|
|
2560
2161
|
};
|
|
2561
2162
|
export { _default_5 as DragOverlay }
|
|
2562
2163
|
export { _default_5 as TrDragOverlay }
|
|
2563
2164
|
|
|
2564
|
-
declare const _default_6: typeof
|
|
2165
|
+
declare const _default_6: typeof _default_31 & {
|
|
2565
2166
|
install: typeof install_5;
|
|
2566
2167
|
};
|
|
2567
2168
|
export { _default_6 as DropdownMenu }
|
|
2568
2169
|
export { _default_6 as TrDropdownMenu }
|
|
2569
2170
|
|
|
2570
|
-
declare const _default_7: typeof
|
|
2171
|
+
declare const _default_7: typeof _default_32 & {
|
|
2571
2172
|
install: typeof install_6;
|
|
2572
2173
|
};
|
|
2573
2174
|
export { _default_7 as Feedback }
|
|
2574
2175
|
export { _default_7 as TrFeedback }
|
|
2575
2176
|
|
|
2576
|
-
declare const _default_8: typeof
|
|
2177
|
+
declare const _default_8: typeof _default_33 & {
|
|
2577
2178
|
install: typeof install_7;
|
|
2578
2179
|
};
|
|
2579
2180
|
export { _default_8 as History }
|
|
2580
2181
|
export { _default_8 as TrHistory }
|
|
2581
2182
|
|
|
2582
|
-
declare const _default_9: typeof
|
|
2183
|
+
declare const _default_9: typeof _default_34 & {
|
|
2583
2184
|
install: typeof install_8;
|
|
2584
2185
|
};
|
|
2585
2186
|
export { _default_9 as IconButton }
|
|
2586
2187
|
export { _default_9 as TrIconButton }
|
|
2587
2188
|
|
|
2189
|
+
/**
|
|
2190
|
+
* 默认操作按钮配置
|
|
2191
|
+
*
|
|
2192
|
+
* 用于统一配置 Sender 的默认按钮(Clear、Submit)
|
|
2193
|
+
*
|
|
2194
|
+
* @example
|
|
2195
|
+
* ```typescript
|
|
2196
|
+
* const defaultActions = {
|
|
2197
|
+
* submit: { disabled: !isValid, tooltip: '请完善表单' },
|
|
2198
|
+
* clear: { tooltip: '清空内容' }
|
|
2199
|
+
* }
|
|
2200
|
+
* ```
|
|
2201
|
+
*/
|
|
2202
|
+
export declare interface DefaultActions {
|
|
2203
|
+
/**
|
|
2204
|
+
* 提交按钮配置
|
|
2205
|
+
*/
|
|
2206
|
+
submit?: {
|
|
2207
|
+
/**
|
|
2208
|
+
* 是否禁用
|
|
2209
|
+
*/
|
|
2210
|
+
disabled?: boolean;
|
|
2211
|
+
/**
|
|
2212
|
+
* 工具提示
|
|
2213
|
+
* - string: 简单文本
|
|
2214
|
+
* - () => string | VNode: 渲染函数,支持复杂内容
|
|
2215
|
+
*/
|
|
2216
|
+
tooltip?: TooltipContent;
|
|
2217
|
+
/**
|
|
2218
|
+
* Tooltip 位置
|
|
2219
|
+
*/
|
|
2220
|
+
tooltipPlacement?: TooltipPlacement;
|
|
2221
|
+
};
|
|
2222
|
+
/**
|
|
2223
|
+
* 清空按钮配置
|
|
2224
|
+
*/
|
|
2225
|
+
clear?: {
|
|
2226
|
+
/**
|
|
2227
|
+
* 是否禁用
|
|
2228
|
+
*/
|
|
2229
|
+
disabled?: boolean;
|
|
2230
|
+
/**
|
|
2231
|
+
* 工具提示
|
|
2232
|
+
* - string: 简单文本
|
|
2233
|
+
* - () => string | VNode: 渲染函数,支持复杂内容
|
|
2234
|
+
*/
|
|
2235
|
+
tooltip?: TooltipContent;
|
|
2236
|
+
/**
|
|
2237
|
+
* Tooltip 位置
|
|
2238
|
+
*/
|
|
2239
|
+
tooltipPlacement?: TooltipPlacement;
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2588
2243
|
export declare type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
2589
2244
|
|
|
2590
2245
|
declare interface DragAwareElement extends HTMLElement {
|
|
@@ -2747,6 +2402,23 @@ export declare interface DropzoneBinding {
|
|
|
2747
2402
|
onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
|
|
2748
2403
|
}
|
|
2749
2404
|
|
|
2405
|
+
/**
|
|
2406
|
+
* 移动端虚拟键盘回车键提示
|
|
2407
|
+
*
|
|
2408
|
+
* 用于自定义移动端虚拟键盘上回车键的显示文本或图标
|
|
2409
|
+
*
|
|
2410
|
+
* - `enter`: 插入换行
|
|
2411
|
+
* - `done`: 完成
|
|
2412
|
+
* - `go`: 前往
|
|
2413
|
+
* - `next`: 下一项
|
|
2414
|
+
* - `previous`: 上一项
|
|
2415
|
+
* - `search`: 搜索
|
|
2416
|
+
* - `send`: 发送(推荐用于聊天场景)
|
|
2417
|
+
*
|
|
2418
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint
|
|
2419
|
+
*/
|
|
2420
|
+
export declare type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
2421
|
+
|
|
2750
2422
|
export declare interface FeedbackEvents {
|
|
2751
2423
|
(e: 'operation', name: string): void;
|
|
2752
2424
|
(e: 'action', name: string): void;
|
|
@@ -2779,7 +2451,7 @@ export declare interface FileCardEmits {
|
|
|
2779
2451
|
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
2780
2452
|
(e: 'retry', file: Attachment): void;
|
|
2781
2453
|
(e: 'action', payload: {
|
|
2782
|
-
action:
|
|
2454
|
+
action: ActionButton_2;
|
|
2783
2455
|
file: Attachment;
|
|
2784
2456
|
}): void;
|
|
2785
2457
|
}
|
|
@@ -2820,7 +2492,16 @@ export declare interface Handlers {
|
|
|
2820
2492
|
handleDrop: (e: DragEvent) => void;
|
|
2821
2493
|
}
|
|
2822
2494
|
|
|
2823
|
-
|
|
2495
|
+
/**
|
|
2496
|
+
* 高亮函数类型
|
|
2497
|
+
*
|
|
2498
|
+
* @param suggestionText - 建议项文本
|
|
2499
|
+
* @param inputText - 用户输入文本
|
|
2500
|
+
* @returns 包含文本片段和匹配状态的数组
|
|
2501
|
+
*/
|
|
2502
|
+
export declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
|
|
2503
|
+
|
|
2504
|
+
declare type HighlightFunction_2 = (suggestionText: string, inputText: string) => SuggestionTextPart_2[];
|
|
2824
2505
|
|
|
2825
2506
|
export declare type HistoryData<T extends HistoryItem> = T[] | HistoryGroup<T>[];
|
|
2826
2507
|
|
|
@@ -2867,12 +2548,11 @@ export declare interface IconButtonProps {
|
|
|
2867
2548
|
rounded?: boolean;
|
|
2868
2549
|
}
|
|
2869
2550
|
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2551
|
+
/**
|
|
2552
|
+
* 输入模式
|
|
2553
|
+
* - single: 单行模式,适用于简短输入
|
|
2554
|
+
* - multiple: 多行模式,适用于长文本输入
|
|
2555
|
+
*/
|
|
2876
2556
|
export declare type InputMode = 'single' | 'multiple';
|
|
2877
2557
|
|
|
2878
2558
|
declare const install: <T>(app: App<T>) => void;
|
|
@@ -2911,14 +2591,18 @@ declare const installPrompt: <T>(app: App<T>) => void;
|
|
|
2911
2591
|
|
|
2912
2592
|
declare const installPrompts: <T>(app: App<T>) => void;
|
|
2913
2593
|
|
|
2914
|
-
|
|
2594
|
+
declare interface ISuggestionItem {
|
|
2915
2595
|
content: string;
|
|
2916
|
-
highlights?: string[] |
|
|
2596
|
+
highlights?: string[] | HighlightFunction_2;
|
|
2917
2597
|
}
|
|
2918
2598
|
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2599
|
+
/**
|
|
2600
|
+
* 键盘处理器接口
|
|
2601
|
+
*/
|
|
2602
|
+
export declare interface KeyboardHandlers {
|
|
2603
|
+
checkSubmitShortcut: (event: KeyboardEvent) => boolean;
|
|
2604
|
+
checkNewlineShortcut: (event: KeyboardEvent) => boolean;
|
|
2605
|
+
submit: () => void;
|
|
2922
2606
|
}
|
|
2923
2607
|
|
|
2924
2608
|
export declare interface MarketCategoryOption {
|
|
@@ -2989,20 +2673,100 @@ export declare interface McpServerPickerProps {
|
|
|
2989
2673
|
marketLoading?: boolean;
|
|
2990
2674
|
}
|
|
2991
2675
|
|
|
2992
|
-
|
|
2676
|
+
/**
|
|
2677
|
+
* 创建 Mention 扩展的便捷函数
|
|
2678
|
+
*
|
|
2679
|
+
* @param items - 提及项列表
|
|
2680
|
+
* @param char - 触发字符,默认 '@'
|
|
2681
|
+
* @param options - 其他配置项
|
|
2682
|
+
*
|
|
2683
|
+
* @example
|
|
2684
|
+
* ```typescript
|
|
2685
|
+
* const extensions = [mention(items)]
|
|
2686
|
+
* const extensions = [mention(items, '#')]
|
|
2687
|
+
* const extensions = [mention(items, '@', { allowSpaces: true })]
|
|
2688
|
+
* ```
|
|
2689
|
+
*/
|
|
2690
|
+
declare function mention(items: MentionItem[] | Ref<MentionItem[]>, char?: string, options?: Partial<Omit<MentionOptions, 'items' | 'char'>>): Node_2<MentionOptions, any>;
|
|
2993
2691
|
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2692
|
+
/**
|
|
2693
|
+
* 提及项数据结构(用户侧)
|
|
2694
|
+
*
|
|
2695
|
+
* 用户传入的数据格式,id 可选,插件会自动生成
|
|
2696
|
+
*/
|
|
2697
|
+
export declare interface MentionItem {
|
|
2698
|
+
/**
|
|
2699
|
+
* 唯一标识(可选)
|
|
2700
|
+
*
|
|
2701
|
+
* 如果不提供,插件会自动生成
|
|
2702
|
+
*/
|
|
2703
|
+
id?: string;
|
|
2704
|
+
/**
|
|
2705
|
+
* 显示名称,如 "小小画家"(必传)
|
|
2706
|
+
*/
|
|
2707
|
+
label: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* 关联值(必传)
|
|
2710
|
+
*
|
|
2711
|
+
* 可以是任意字符串值,如 AI 提示词、用户 ID、标签内容等
|
|
2712
|
+
*/
|
|
2713
|
+
value: string;
|
|
2714
|
+
/**
|
|
2715
|
+
* 图标(可选)
|
|
2716
|
+
*/
|
|
2717
|
+
icon?: string;
|
|
2999
2718
|
}
|
|
3000
2719
|
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
2720
|
+
/**
|
|
2721
|
+
* Mention 配置选项
|
|
2722
|
+
*/
|
|
2723
|
+
declare interface MentionOptions {
|
|
2724
|
+
/**
|
|
2725
|
+
* 提及项列表
|
|
2726
|
+
*/
|
|
2727
|
+
items: MentionItem[] | Ref<MentionItem[]>;
|
|
2728
|
+
/**
|
|
2729
|
+
* 触发字符,默认 '@'
|
|
2730
|
+
*/
|
|
2731
|
+
char: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* 是否允许空格,默认 false
|
|
2734
|
+
*/
|
|
2735
|
+
allowSpaces?: boolean;
|
|
2736
|
+
/**
|
|
2737
|
+
* HTML 属性
|
|
2738
|
+
*/
|
|
2739
|
+
HTMLAttributes?: Record<string, unknown>;
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* 结构化数据项(提交时返回)
|
|
2744
|
+
*
|
|
2745
|
+
* 用于表示文本和 mention 的混合结构
|
|
2746
|
+
*/
|
|
2747
|
+
declare type MentionStructuredItem = {
|
|
2748
|
+
type: 'text';
|
|
2749
|
+
content: string;
|
|
2750
|
+
} | {
|
|
2751
|
+
type: 'mention';
|
|
2752
|
+
content: string;
|
|
2753
|
+
value: string;
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
2757
|
+
|
|
2758
|
+
export declare interface PluginCardEmits {
|
|
2759
|
+
(e: 'toggle-plugin', enabled: boolean): void;
|
|
2760
|
+
(e: 'toggle-tool', toolId: string, enabled: boolean): void;
|
|
2761
|
+
(e: 'add-plugin', plugin: PluginInfo): void;
|
|
2762
|
+
(e: 'delete-plugin'): void;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
export declare type PluginCardMode = 'installed' | 'market';
|
|
2766
|
+
|
|
2767
|
+
export declare interface PluginCardProps {
|
|
2768
|
+
plugin: PluginInfo;
|
|
2769
|
+
mode?: PluginCardMode;
|
|
3006
2770
|
showToolCount?: boolean;
|
|
3007
2771
|
}
|
|
3008
2772
|
|
|
@@ -3054,7 +2818,7 @@ export declare interface PopupConfig {
|
|
|
3054
2818
|
};
|
|
3055
2819
|
}
|
|
3056
2820
|
|
|
3057
|
-
declare const Prompt: typeof
|
|
2821
|
+
declare const Prompt: typeof _default_35 & {
|
|
3058
2822
|
install: typeof installPrompt;
|
|
3059
2823
|
};
|
|
3060
2824
|
export { Prompt }
|
|
@@ -3091,7 +2855,7 @@ export declare interface PromptProps {
|
|
|
3091
2855
|
size?: 'small' | 'medium' | 'large';
|
|
3092
2856
|
}
|
|
3093
2857
|
|
|
3094
|
-
declare const Prompts: typeof
|
|
2858
|
+
declare const Prompts: typeof _default_36 & {
|
|
3095
2859
|
install: typeof installPrompts;
|
|
3096
2860
|
};
|
|
3097
2861
|
export { Prompts }
|
|
@@ -3142,25 +2906,533 @@ export declare interface RejectionReason {
|
|
|
3142
2906
|
message: string;
|
|
3143
2907
|
}
|
|
3144
2908
|
|
|
3145
|
-
|
|
2909
|
+
/**
|
|
2910
|
+
* 选择器选项
|
|
2911
|
+
*/
|
|
2912
|
+
export declare interface SelectOption {
|
|
2913
|
+
/**
|
|
2914
|
+
* 显示文本
|
|
2915
|
+
*/
|
|
2916
|
+
label: string;
|
|
2917
|
+
/**
|
|
2918
|
+
* 选择后的值
|
|
2919
|
+
*/
|
|
2920
|
+
value: string;
|
|
2921
|
+
/**
|
|
2922
|
+
* 自定义数据(可选)
|
|
2923
|
+
*/
|
|
2924
|
+
data?: string;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
declare const Sender: {
|
|
2928
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<SenderProps> & Readonly<{
|
|
2929
|
+
onClear?: (() => any) | undefined;
|
|
2930
|
+
onInput?: ((value: string) => any) | undefined;
|
|
2931
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
2932
|
+
onCancel?: (() => any) | undefined;
|
|
2933
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
2934
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
2935
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2936
|
+
}>, {
|
|
2937
|
+
submit: () => void;
|
|
2938
|
+
clear: () => void;
|
|
2939
|
+
cancel: () => void;
|
|
2940
|
+
focus: () => void;
|
|
2941
|
+
blur: () => void;
|
|
2942
|
+
setContent: (content: string) => void;
|
|
2943
|
+
getContent: () => string;
|
|
2944
|
+
editor: SenderContext["editor"];
|
|
2945
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2946
|
+
clear: () => any;
|
|
2947
|
+
input: (value: string) => any;
|
|
2948
|
+
blur: (event: FocusEvent) => any;
|
|
2949
|
+
cancel: () => any;
|
|
2950
|
+
focus: (event: FocusEvent) => any;
|
|
2951
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
2952
|
+
"update:modelValue": (value: string) => any;
|
|
2953
|
+
}, PublicProps, {
|
|
2954
|
+
size: "normal" | "small";
|
|
2955
|
+
placeholder: string;
|
|
2956
|
+
mode: InputMode;
|
|
2957
|
+
enterkeyhint: EnterKeyHint;
|
|
2958
|
+
autoSize: AutoSize;
|
|
2959
|
+
extensions: Extension[] | any[];
|
|
2960
|
+
submitType: SubmitTrigger;
|
|
2961
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
2962
|
+
P: {};
|
|
2963
|
+
B: {};
|
|
2964
|
+
D: {};
|
|
2965
|
+
C: {};
|
|
2966
|
+
M: {};
|
|
2967
|
+
Defaults: {};
|
|
2968
|
+
}, Readonly<SenderProps> & Readonly<{
|
|
2969
|
+
onClear?: (() => any) | undefined;
|
|
2970
|
+
onInput?: ((value: string) => any) | undefined;
|
|
2971
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
2972
|
+
onCancel?: (() => any) | undefined;
|
|
2973
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
2974
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
2975
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2976
|
+
}>, {
|
|
2977
|
+
submit: () => void;
|
|
2978
|
+
clear: () => void;
|
|
2979
|
+
cancel: () => void;
|
|
2980
|
+
focus: () => void;
|
|
2981
|
+
blur: () => void;
|
|
2982
|
+
setContent: (content: string) => void;
|
|
2983
|
+
getContent: () => string;
|
|
2984
|
+
editor: SenderContext["editor"];
|
|
2985
|
+
}, {}, {}, {}, {
|
|
2986
|
+
size: "normal" | "small";
|
|
2987
|
+
placeholder: string;
|
|
2988
|
+
mode: InputMode;
|
|
2989
|
+
enterkeyhint: EnterKeyHint;
|
|
2990
|
+
autoSize: AutoSize;
|
|
2991
|
+
extensions: Extension[] | any[];
|
|
2992
|
+
submitType: SubmitTrigger;
|
|
2993
|
+
}>;
|
|
2994
|
+
__isFragment?: never;
|
|
2995
|
+
__isTeleport?: never;
|
|
2996
|
+
__isSuspense?: never;
|
|
2997
|
+
} & ComponentOptionsBase<Readonly<SenderProps> & Readonly<{
|
|
2998
|
+
onClear?: (() => any) | undefined;
|
|
2999
|
+
onInput?: ((value: string) => any) | undefined;
|
|
3000
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3001
|
+
onCancel?: (() => any) | undefined;
|
|
3002
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3003
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
3004
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
3005
|
+
}>, {
|
|
3006
|
+
submit: () => void;
|
|
3007
|
+
clear: () => void;
|
|
3008
|
+
cancel: () => void;
|
|
3009
|
+
focus: () => void;
|
|
3010
|
+
blur: () => void;
|
|
3011
|
+
setContent: (content: string) => void;
|
|
3012
|
+
getContent: () => string;
|
|
3013
|
+
editor: SenderContext["editor"];
|
|
3014
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3015
|
+
clear: () => any;
|
|
3016
|
+
input: (value: string) => any;
|
|
3017
|
+
blur: (event: FocusEvent) => any;
|
|
3018
|
+
cancel: () => any;
|
|
3019
|
+
focus: (event: FocusEvent) => any;
|
|
3020
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
3021
|
+
"update:modelValue": (value: string) => any;
|
|
3022
|
+
}, string, {
|
|
3023
|
+
size: "normal" | "small";
|
|
3024
|
+
placeholder: string;
|
|
3025
|
+
mode: InputMode;
|
|
3026
|
+
enterkeyhint: EnterKeyHint;
|
|
3027
|
+
autoSize: AutoSize;
|
|
3028
|
+
extensions: Extension[] | any[];
|
|
3029
|
+
submitType: SubmitTrigger;
|
|
3030
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3031
|
+
$slots: {
|
|
3032
|
+
header?(_: {}): any;
|
|
3033
|
+
header?(_: {}): any;
|
|
3034
|
+
prefix?(_: {}): any;
|
|
3035
|
+
prefix?(_: {}): any;
|
|
3036
|
+
content?(_: {
|
|
3037
|
+
editor: Editor | undefined;
|
|
3038
|
+
}): any;
|
|
3039
|
+
content?(_: {
|
|
3040
|
+
editor: Ref<Editor | undefined, Editor | undefined>;
|
|
3041
|
+
}): any;
|
|
3042
|
+
'actions-inline'?(_: {}): any;
|
|
3043
|
+
footer?(_: {}): any;
|
|
3044
|
+
'footer-right'?(_: {}): any;
|
|
3045
|
+
};
|
|
3046
|
+
}) & {
|
|
3047
|
+
install: <T>(app: App<T>) => void;
|
|
3048
|
+
Mention: Node_2<MentionOptions, any>;
|
|
3049
|
+
Suggestion: Extension<SuggestionOptions, any>;
|
|
3050
|
+
Template: Extension<TemplateOptions, any>;
|
|
3051
|
+
mention: typeof mention;
|
|
3052
|
+
suggestion: typeof suggestion;
|
|
3053
|
+
template: typeof template;
|
|
3054
|
+
};
|
|
3055
|
+
export { Sender }
|
|
3056
|
+
export { Sender as TrSender }
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Context Key
|
|
3060
|
+
*
|
|
3061
|
+
* 用于 provide/inject 的 key
|
|
3062
|
+
*/
|
|
3063
|
+
export declare const SENDER_CONTEXT_KEY: unique symbol;
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* Sender Context
|
|
3067
|
+
*
|
|
3068
|
+
* 通过 provide/inject 在组件树中共享的状态和方法
|
|
3069
|
+
* 所有子组件都可以通过 inject 获取
|
|
3070
|
+
*/
|
|
3071
|
+
export declare interface SenderContext {
|
|
3072
|
+
/**
|
|
3073
|
+
* Tiptap 编辑器实例
|
|
3074
|
+
* 注意:Tiptap 的 useEditor 返回 ShallowRef<Editor | undefined>
|
|
3075
|
+
*/
|
|
3076
|
+
editor: Ref<Editor | undefined>;
|
|
3077
|
+
/**
|
|
3078
|
+
* 编辑器 DOM 引用
|
|
3079
|
+
*/
|
|
3080
|
+
editorRef: Ref<HTMLElement | null>;
|
|
3081
|
+
/**
|
|
3082
|
+
* 当前输入模式
|
|
3083
|
+
*/
|
|
3084
|
+
mode: Ref<InputMode>;
|
|
3085
|
+
/**
|
|
3086
|
+
* 是否正在自动切换模式
|
|
3087
|
+
* 用于控制切换时的过渡动画
|
|
3088
|
+
*/
|
|
3089
|
+
isAutoSwitching: Ref<boolean>;
|
|
3090
|
+
/**
|
|
3091
|
+
* 是否加载中
|
|
3092
|
+
*/
|
|
3093
|
+
loading: Ref<boolean>;
|
|
3094
|
+
/**
|
|
3095
|
+
* 是否禁用
|
|
3096
|
+
*/
|
|
3097
|
+
disabled: Ref<boolean>;
|
|
3098
|
+
/**
|
|
3099
|
+
* 是否有内容
|
|
3100
|
+
*/
|
|
3101
|
+
hasContent: Ref<boolean>;
|
|
3102
|
+
/**
|
|
3103
|
+
* 是否可以提交
|
|
3104
|
+
*
|
|
3105
|
+
* 综合判断:
|
|
3106
|
+
* - !disabled
|
|
3107
|
+
* - !loading
|
|
3108
|
+
* - hasContent
|
|
3109
|
+
* - !isOverLimit
|
|
3110
|
+
* - !defaultActions.submit?.disabled
|
|
3111
|
+
*/
|
|
3112
|
+
canSubmit: Ref<boolean>;
|
|
3113
|
+
/**
|
|
3114
|
+
* 是否超出字数限制
|
|
3115
|
+
*/
|
|
3116
|
+
isOverLimit: Ref<boolean>;
|
|
3117
|
+
/**
|
|
3118
|
+
* 当前字符数
|
|
3119
|
+
*/
|
|
3120
|
+
characterCount: Ref<number>;
|
|
3121
|
+
/**
|
|
3122
|
+
* 最大字符数限制
|
|
3123
|
+
*/
|
|
3124
|
+
maxLength: Ref<number | undefined>;
|
|
3125
|
+
/**
|
|
3126
|
+
* 组件的尺寸
|
|
3127
|
+
*/
|
|
3128
|
+
size: Ref<'small' | 'normal'>;
|
|
3129
|
+
/**
|
|
3130
|
+
* 是否显示字数限制
|
|
3131
|
+
*/
|
|
3132
|
+
showWordLimit: Ref<boolean>;
|
|
3133
|
+
/**
|
|
3134
|
+
* 是否显示清空按钮
|
|
3135
|
+
*/
|
|
3136
|
+
clearable: Ref<boolean>;
|
|
3137
|
+
/**
|
|
3138
|
+
* 默认操作按钮配置
|
|
3139
|
+
*/
|
|
3140
|
+
defaultActions: Ref<DefaultActions | undefined>;
|
|
3141
|
+
/**
|
|
3142
|
+
* 提交触发方式
|
|
3143
|
+
*/
|
|
3144
|
+
submitType: Ref<SubmitTrigger>;
|
|
3145
|
+
/**
|
|
3146
|
+
* 停止按钮文字
|
|
3147
|
+
*/
|
|
3148
|
+
stopText: Ref<string | undefined>;
|
|
3149
|
+
/**
|
|
3150
|
+
* 提交内容
|
|
3151
|
+
*/
|
|
3152
|
+
submit: () => void;
|
|
3153
|
+
/**
|
|
3154
|
+
* 清空内容
|
|
3155
|
+
*/
|
|
3156
|
+
clear: () => void;
|
|
3157
|
+
/**
|
|
3158
|
+
* 取消操作
|
|
3159
|
+
*
|
|
3160
|
+
* 在 loading 状态下触发,用于取消正在进行的操作
|
|
3161
|
+
*/
|
|
3162
|
+
cancel: () => void;
|
|
3163
|
+
/**
|
|
3164
|
+
* 聚焦编辑器
|
|
3165
|
+
*/
|
|
3166
|
+
focus: () => void;
|
|
3167
|
+
/**
|
|
3168
|
+
* 失焦编辑器
|
|
3169
|
+
*/
|
|
3170
|
+
blur: () => void;
|
|
3171
|
+
/**
|
|
3172
|
+
* 设置编辑器内容
|
|
3173
|
+
*
|
|
3174
|
+
* @param content - 内容(HTML 或 JSON)
|
|
3175
|
+
*/
|
|
3176
|
+
setContent: (content: string) => void;
|
|
3177
|
+
/**
|
|
3178
|
+
* 获取编辑器内容
|
|
3179
|
+
*
|
|
3180
|
+
* @returns 内容(HTML)
|
|
3181
|
+
*/
|
|
3182
|
+
getContent: () => string;
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
/**
|
|
3186
|
+
* Sender 组件 Emits
|
|
3187
|
+
*/
|
|
3188
|
+
export declare interface SenderEmits {
|
|
3189
|
+
/**
|
|
3190
|
+
* 更新输入内容
|
|
3191
|
+
*
|
|
3192
|
+
* @param e - 事件名
|
|
3193
|
+
* @param value - 新内容
|
|
3194
|
+
*/
|
|
3146
3195
|
(e: 'update:modelValue', value: string): void;
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3196
|
+
/**
|
|
3197
|
+
* 提交内容(增强版)
|
|
3198
|
+
*
|
|
3199
|
+
* @param e - 事件名
|
|
3200
|
+
* @param textContent - 提交的内容(纯文本,如 "帮我分析 @张三 的周报")
|
|
3201
|
+
* @param structuredData - 结构化数据(可选)
|
|
3202
|
+
*
|
|
3203
|
+
* @example
|
|
3204
|
+
* ```typescript
|
|
3205
|
+
* function handleSubmit(text: string, data?: StructuredData) {
|
|
3206
|
+
* console.log('纯文本:', text)
|
|
3207
|
+
*
|
|
3208
|
+
* if (data?.template) {
|
|
3209
|
+
* // Template 场景
|
|
3210
|
+
* console.log('模板数据:', data.template)
|
|
3211
|
+
* }
|
|
3212
|
+
*
|
|
3213
|
+
* if (data?.mentions) {
|
|
3214
|
+
* // Mention 场景
|
|
3215
|
+
* console.log('提及的人:', data.mentions)
|
|
3216
|
+
* }
|
|
3217
|
+
* }
|
|
3218
|
+
* ```
|
|
3219
|
+
*/
|
|
3220
|
+
(e: 'submit', textContent: string, structuredData?: StructuredData): void;
|
|
3221
|
+
/**
|
|
3222
|
+
* 聚焦事件
|
|
3223
|
+
*
|
|
3224
|
+
* @param e - 事件名
|
|
3225
|
+
* @param event - 原生事件
|
|
3226
|
+
*/
|
|
3155
3227
|
(e: 'focus', event: FocusEvent): void;
|
|
3228
|
+
/**
|
|
3229
|
+
* 失焦事件
|
|
3230
|
+
*
|
|
3231
|
+
* @param e - 事件名
|
|
3232
|
+
* @param event - 原生事件
|
|
3233
|
+
*/
|
|
3156
3234
|
(e: 'blur', event: FocusEvent): void;
|
|
3157
|
-
|
|
3235
|
+
/**
|
|
3236
|
+
* 清空事件
|
|
3237
|
+
*
|
|
3238
|
+
* @param e - 事件名
|
|
3239
|
+
*/
|
|
3240
|
+
(e: 'clear'): void;
|
|
3241
|
+
/**
|
|
3242
|
+
* 取消事件
|
|
3243
|
+
*
|
|
3244
|
+
* 在 loading 状态下点击停止按钮时触发
|
|
3245
|
+
* 用于取消正在进行的操作(如 AI 响应)
|
|
3246
|
+
*
|
|
3247
|
+
* @param e - 事件名
|
|
3248
|
+
*/
|
|
3158
3249
|
(e: 'cancel'): void;
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3250
|
+
/**
|
|
3251
|
+
* 输入事件
|
|
3252
|
+
*
|
|
3253
|
+
* @param e - 事件名
|
|
3254
|
+
* @param value - 当前内容
|
|
3255
|
+
*/
|
|
3256
|
+
(e: 'input', value: string): void;
|
|
3257
|
+
}
|
|
3162
3258
|
|
|
3259
|
+
/**
|
|
3260
|
+
* Sender 组件 Props
|
|
3261
|
+
*/
|
|
3163
3262
|
export declare interface SenderProps {
|
|
3263
|
+
/**
|
|
3264
|
+
* 输入内容(双向绑定)
|
|
3265
|
+
*
|
|
3266
|
+
* 支持 v-model
|
|
3267
|
+
*/
|
|
3268
|
+
modelValue?: string;
|
|
3269
|
+
/**
|
|
3270
|
+
* 默认值
|
|
3271
|
+
*
|
|
3272
|
+
* 仅在初始化时使用
|
|
3273
|
+
*/
|
|
3274
|
+
defaultValue?: string;
|
|
3275
|
+
/**
|
|
3276
|
+
* 占位符文本
|
|
3277
|
+
*
|
|
3278
|
+
* @default '请输入内容...'
|
|
3279
|
+
*/
|
|
3280
|
+
placeholder?: string;
|
|
3281
|
+
/**
|
|
3282
|
+
* 是否禁用
|
|
3283
|
+
*
|
|
3284
|
+
* @default false
|
|
3285
|
+
*/
|
|
3286
|
+
disabled?: boolean;
|
|
3287
|
+
/**
|
|
3288
|
+
* 是否加载中
|
|
3289
|
+
*
|
|
3290
|
+
* 加载状态下显示停止按钮
|
|
3291
|
+
*
|
|
3292
|
+
* @default false
|
|
3293
|
+
*/
|
|
3294
|
+
loading?: boolean;
|
|
3295
|
+
/**
|
|
3296
|
+
* 是否自动聚焦
|
|
3297
|
+
*
|
|
3298
|
+
* @default false
|
|
3299
|
+
*/
|
|
3300
|
+
autofocus?: boolean;
|
|
3301
|
+
/**
|
|
3302
|
+
* 移动端虚拟键盘回车键提示
|
|
3303
|
+
*
|
|
3304
|
+
* 用于自定义移动端虚拟键盘上回车键的显示文本或图标
|
|
3305
|
+
*
|
|
3306
|
+
* @default 'send'
|
|
3307
|
+
*/
|
|
3308
|
+
enterkeyhint?: EnterKeyHint;
|
|
3309
|
+
/**
|
|
3310
|
+
* 输入模式
|
|
3311
|
+
*
|
|
3312
|
+
* - single: 单行模式
|
|
3313
|
+
* - multiple: 多行模式
|
|
3314
|
+
*
|
|
3315
|
+
* @default 'single'
|
|
3316
|
+
*/
|
|
3317
|
+
mode?: InputMode;
|
|
3318
|
+
/**
|
|
3319
|
+
* 自动调整高度
|
|
3320
|
+
*
|
|
3321
|
+
* - false: 不自动调整
|
|
3322
|
+
* - true: 自动调整(默认 1-3 行)
|
|
3323
|
+
* - { minRows, maxRows }: 自定义行数范围
|
|
3324
|
+
*
|
|
3325
|
+
* 仅在 mode === 'multiple' 时有效
|
|
3326
|
+
*
|
|
3327
|
+
* @default { minRows: 1, maxRows: 3 }
|
|
3328
|
+
*/
|
|
3329
|
+
autoSize?: AutoSize;
|
|
3330
|
+
/**
|
|
3331
|
+
* 最大字符数
|
|
3332
|
+
*
|
|
3333
|
+
* @default Infinity
|
|
3334
|
+
*/
|
|
3335
|
+
maxLength?: number;
|
|
3336
|
+
/**
|
|
3337
|
+
* 是否显示字数限制
|
|
3338
|
+
*
|
|
3339
|
+
* 仅在 maxLength 有值时有效
|
|
3340
|
+
*
|
|
3341
|
+
* @default false
|
|
3342
|
+
*/
|
|
3343
|
+
showWordLimit?: boolean;
|
|
3344
|
+
/**
|
|
3345
|
+
* 是否显示清空按钮
|
|
3346
|
+
*
|
|
3347
|
+
* @default false
|
|
3348
|
+
*/
|
|
3349
|
+
clearable?: boolean;
|
|
3350
|
+
/**
|
|
3351
|
+
* Tiptap 扩展配置
|
|
3352
|
+
*
|
|
3353
|
+
* 用于添加增强输入能力,如 Template、Mention、Suggestion 等
|
|
3354
|
+
*
|
|
3355
|
+
* @example 基础使用
|
|
3356
|
+
* ```typescript
|
|
3357
|
+
* import { Template } from '@tiny-robot/components/sender/extensions'
|
|
3358
|
+
*
|
|
3359
|
+
* <Sender :extensions="[Template]" />
|
|
3360
|
+
* ```
|
|
3361
|
+
*
|
|
3362
|
+
* @example 带配置的扩展(响应式推荐)
|
|
3363
|
+
* ```typescript
|
|
3364
|
+
* import { Mention, Suggestion } from '@tiny-robot/components/sender/extensions'
|
|
3365
|
+
*
|
|
3366
|
+
* const mentions = ref([...])
|
|
3367
|
+
* const suggestions = ref([...])
|
|
3368
|
+
*
|
|
3369
|
+
* const extensions = [
|
|
3370
|
+
* Mention.configure({ items: mentions }),
|
|
3371
|
+
* Suggestion.configure({ items: suggestions })
|
|
3372
|
+
* ]
|
|
3373
|
+
*
|
|
3374
|
+
* <Sender :extensions="extensions" />
|
|
3375
|
+
* ```
|
|
3376
|
+
*/
|
|
3377
|
+
extensions?: Extension[] | any[];
|
|
3378
|
+
/**
|
|
3379
|
+
* 组件尺寸
|
|
3380
|
+
*
|
|
3381
|
+
* - normal: 正常尺寸(默认)
|
|
3382
|
+
* - small: 紧凑模式,更小的字体、间距和图标
|
|
3383
|
+
*
|
|
3384
|
+
* @default 'normal'
|
|
3385
|
+
*/
|
|
3386
|
+
size?: 'normal' | 'small';
|
|
3387
|
+
/**
|
|
3388
|
+
* 停止按钮文字
|
|
3389
|
+
*
|
|
3390
|
+
* @default '停止响应'
|
|
3391
|
+
*/
|
|
3392
|
+
stopText?: string;
|
|
3393
|
+
/**
|
|
3394
|
+
* 默认操作按钮配置
|
|
3395
|
+
*
|
|
3396
|
+
* 用于统一配置默认按钮(Clear、Submit)的状态和提示
|
|
3397
|
+
*
|
|
3398
|
+
* @example 基础使用
|
|
3399
|
+
* ```vue
|
|
3400
|
+
* <Sender
|
|
3401
|
+
* :actions-config="{
|
|
3402
|
+
* submit: { disabled: !isValid, tooltip: '请完善表单' }
|
|
3403
|
+
* }"
|
|
3404
|
+
* />
|
|
3405
|
+
* ```
|
|
3406
|
+
*
|
|
3407
|
+
* @example 动态配置
|
|
3408
|
+
* ```vue
|
|
3409
|
+
* <script setup>
|
|
3410
|
+
* const defaultActions = computed(() => ({
|
|
3411
|
+
* submit: {
|
|
3412
|
+
* disabled: !canSubmit.value,
|
|
3413
|
+
* tooltip: canSubmit.value ? '发送' : '请输入内容'
|
|
3414
|
+
* },
|
|
3415
|
+
* clear: { tooltip: '清空输入' }
|
|
3416
|
+
* }))
|
|
3417
|
+
* </script>
|
|
3418
|
+
*
|
|
3419
|
+
* <template>
|
|
3420
|
+
* <Sender :actions-config="defaultActions" />
|
|
3421
|
+
* </template>
|
|
3422
|
+
* ```
|
|
3423
|
+
*
|
|
3424
|
+
* @default undefined
|
|
3425
|
+
*/
|
|
3426
|
+
defaultActions?: DefaultActions;
|
|
3427
|
+
/**
|
|
3428
|
+
* 提交触发方式
|
|
3429
|
+
*
|
|
3430
|
+
* @default 'enter'
|
|
3431
|
+
*/
|
|
3432
|
+
submitType?: SubmitTrigger;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
declare interface SenderProps_2 {
|
|
3164
3436
|
autofocus?: boolean;
|
|
3165
3437
|
autoSize?: AutoSize;
|
|
3166
3438
|
allowSpeech?: boolean;
|
|
@@ -3185,6 +3457,172 @@ export declare interface SenderProps {
|
|
|
3185
3457
|
stopText?: string;
|
|
3186
3458
|
}
|
|
3187
3459
|
|
|
3460
|
+
/**
|
|
3461
|
+
* Sender 组件 Slots
|
|
3462
|
+
*/
|
|
3463
|
+
export declare interface SenderSlots {
|
|
3464
|
+
/**
|
|
3465
|
+
* 头部插槽
|
|
3466
|
+
*/
|
|
3467
|
+
header?: () => unknown;
|
|
3468
|
+
/**
|
|
3469
|
+
* 前缀插槽
|
|
3470
|
+
*/
|
|
3471
|
+
prefix?: () => unknown;
|
|
3472
|
+
/**
|
|
3473
|
+
* 内容插槽
|
|
3474
|
+
*
|
|
3475
|
+
* @param props - 插槽属性
|
|
3476
|
+
* @param props.editor - 编辑器实例
|
|
3477
|
+
*/
|
|
3478
|
+
content?: (props: {
|
|
3479
|
+
editor: unknown;
|
|
3480
|
+
}) => unknown;
|
|
3481
|
+
/**
|
|
3482
|
+
* 单行模式内联操作按钮插槽
|
|
3483
|
+
*
|
|
3484
|
+
* @example
|
|
3485
|
+
* ```vue
|
|
3486
|
+
* <sender>
|
|
3487
|
+
* <template #actions-inline="{ insert, focus, disabled }">
|
|
3488
|
+
* <voice-input @result="insert" :disabled="disabled" />
|
|
3489
|
+
* <file-upload @select="handleFiles" />
|
|
3490
|
+
* </template>
|
|
3491
|
+
* </sender>
|
|
3492
|
+
* ```
|
|
3493
|
+
*/
|
|
3494
|
+
'actions-inline'?: (scope: SenderSlotScope) => unknown;
|
|
3495
|
+
/**
|
|
3496
|
+
* 底部插槽(多行模式)
|
|
3497
|
+
*/
|
|
3498
|
+
footer?: (scope: SenderSlotScope) => unknown;
|
|
3499
|
+
/**
|
|
3500
|
+
* 底部右侧插槽(多行模式)
|
|
3501
|
+
*/
|
|
3502
|
+
'footer-right'?: (scope: SenderSlotScope) => unknown;
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* Sender 插槽作用域
|
|
3507
|
+
*
|
|
3508
|
+
* 通过插槽作用域暴露给外部组件的状态和方法
|
|
3509
|
+
* 主要为增强按钮(Upload、Voice 等)提供便捷的操作方法
|
|
3510
|
+
*/
|
|
3511
|
+
export declare interface SenderSlotScope {
|
|
3512
|
+
/**
|
|
3513
|
+
* Tiptap 编辑器实例
|
|
3514
|
+
* 用于高级操作
|
|
3515
|
+
*/
|
|
3516
|
+
editor: Editor_2 | undefined;
|
|
3517
|
+
/**
|
|
3518
|
+
* 聚焦编辑器
|
|
3519
|
+
*/
|
|
3520
|
+
focus: () => void;
|
|
3521
|
+
/**
|
|
3522
|
+
* 失焦编辑器
|
|
3523
|
+
*/
|
|
3524
|
+
blur: () => void;
|
|
3525
|
+
/**
|
|
3526
|
+
* 插入内容到当前光标位置
|
|
3527
|
+
*
|
|
3528
|
+
* 适用场景:语音输入、快捷短语插入
|
|
3529
|
+
*
|
|
3530
|
+
* @param content - 要插入的内容
|
|
3531
|
+
* @example
|
|
3532
|
+
* ```vue
|
|
3533
|
+
* <template #actions-inline="{ insert }">
|
|
3534
|
+
* <VoiceButton @speech-final="insert" />
|
|
3535
|
+
* </template>
|
|
3536
|
+
* ```
|
|
3537
|
+
*/
|
|
3538
|
+
insert: (content: string) => void;
|
|
3539
|
+
/**
|
|
3540
|
+
* 追加内容到编辑器末尾
|
|
3541
|
+
*
|
|
3542
|
+
* 适用场景:连续语音输入、批量添加内容
|
|
3543
|
+
*
|
|
3544
|
+
* @param content - 要追加的内容
|
|
3545
|
+
*/
|
|
3546
|
+
append: (content: string) => void;
|
|
3547
|
+
/**
|
|
3548
|
+
* 替换编辑器全部内容
|
|
3549
|
+
*
|
|
3550
|
+
* 适用场景:模板填充、内容重置
|
|
3551
|
+
*
|
|
3552
|
+
* @param content - 新内容
|
|
3553
|
+
*/
|
|
3554
|
+
replace: (content: string) => void;
|
|
3555
|
+
/**
|
|
3556
|
+
* 是否禁用
|
|
3557
|
+
* 用于控制自定义按钮状态
|
|
3558
|
+
*/
|
|
3559
|
+
disabled: boolean;
|
|
3560
|
+
/**
|
|
3561
|
+
* 是否加载中
|
|
3562
|
+
* 用于控制按钮加载状态和禁用
|
|
3563
|
+
*/
|
|
3564
|
+
loading: boolean;
|
|
3565
|
+
/**
|
|
3566
|
+
* 是否有内容
|
|
3567
|
+
* 用于控制按钮显示/隐藏
|
|
3568
|
+
*/
|
|
3569
|
+
hasContent: boolean;
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
/**
|
|
3573
|
+
* 建议项类型
|
|
3574
|
+
*
|
|
3575
|
+
* @example
|
|
3576
|
+
* ```typescript
|
|
3577
|
+
* // 自动匹配
|
|
3578
|
+
* { content: 'ECS-云服务器' }
|
|
3579
|
+
*
|
|
3580
|
+
* // 精确指定高亮
|
|
3581
|
+
* {
|
|
3582
|
+
* content: 'ECS-云服务器',
|
|
3583
|
+
* highlights: ['ECS', '云服务器']
|
|
3584
|
+
* }
|
|
3585
|
+
*
|
|
3586
|
+
* // 自定义高亮函数
|
|
3587
|
+
* {
|
|
3588
|
+
* content: 'ECS-云服务器',
|
|
3589
|
+
* highlights: (text, query) => [
|
|
3590
|
+
* { text: 'ECS', isMatch: true },
|
|
3591
|
+
* { text: '-云服务器', isMatch: false }
|
|
3592
|
+
* ]
|
|
3593
|
+
* }
|
|
3594
|
+
* ```
|
|
3595
|
+
*/
|
|
3596
|
+
export declare interface SenderSuggestionItem {
|
|
3597
|
+
/**
|
|
3598
|
+
* 建议项内容(必填)
|
|
3599
|
+
*/
|
|
3600
|
+
content: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* 显示标签(可选)
|
|
3603
|
+
*
|
|
3604
|
+
* 默认使用 content
|
|
3605
|
+
*/
|
|
3606
|
+
label?: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* 高亮方式(可选)
|
|
3609
|
+
*
|
|
3610
|
+
* - undefined: 自动匹配(默认)
|
|
3611
|
+
* - string[]: 精确指定高亮片段
|
|
3612
|
+
* - function: 自定义高亮逻辑
|
|
3613
|
+
*/
|
|
3614
|
+
highlights?: string[] | HighlightFunction;
|
|
3615
|
+
/**
|
|
3616
|
+
* 自定义数据(可选)
|
|
3617
|
+
*
|
|
3618
|
+
* 用于扩展功能
|
|
3619
|
+
*/
|
|
3620
|
+
data?: Record<string, unknown>;
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* 语音识别相关类型定义
|
|
3625
|
+
*/
|
|
3188
3626
|
export declare interface SpeechCallbacks {
|
|
3189
3627
|
onStart: () => void;
|
|
3190
3628
|
onInterim: (transcript: string) => void;
|
|
@@ -3228,8 +3666,90 @@ export declare interface SpeechState {
|
|
|
3228
3666
|
error?: Error;
|
|
3229
3667
|
}
|
|
3230
3668
|
|
|
3669
|
+
/**
|
|
3670
|
+
* 结构化数据(联合类型)
|
|
3671
|
+
*
|
|
3672
|
+
* Submit 事件的第二个参数,根据使用的扩展直接返回对应的数据数组
|
|
3673
|
+
*
|
|
3674
|
+
* **设计理念**:
|
|
3675
|
+
* - 第一个参数 `text`:纯文本内容,适用于简单场景
|
|
3676
|
+
* - 第二个参数 `data`:结构化数据数组,直接使用无需解包
|
|
3677
|
+
*
|
|
3678
|
+
* **类型说明**:
|
|
3679
|
+
* - `TemplateItem[]`: 使用 Template 扩展时返回(混合结构)
|
|
3680
|
+
* - `MentionStructuredItem[]`: 使用 Mention 扩展时返回(混合结构)
|
|
3681
|
+
*
|
|
3682
|
+
* @example Template 场景
|
|
3683
|
+
* ```typescript
|
|
3684
|
+
* function handleSubmit(text: string, data?: StructuredData) {
|
|
3685
|
+
* // text: "帮我分析 的周报"
|
|
3686
|
+
* // data: [
|
|
3687
|
+
* // { type: 'text', content: '帮我分析 ' },
|
|
3688
|
+
* // { type: 'block', content: '张三' },
|
|
3689
|
+
* // { type: 'text', content: ' 的周报' }
|
|
3690
|
+
* // ]
|
|
3691
|
+
*
|
|
3692
|
+
* // 提取模板块(可编辑部分)
|
|
3693
|
+
* if (data && data.some(item => item.type === 'block')) {
|
|
3694
|
+
* const blocks = data.filter(item => item.type === 'block')
|
|
3695
|
+
* console.log('模板块:', blocks)
|
|
3696
|
+
* }
|
|
3697
|
+
*
|
|
3698
|
+
* // 提取选择器
|
|
3699
|
+
* if (data && data.some(item => item.type === 'select')) {
|
|
3700
|
+
* const selects = data.filter(item => item.type === 'select')
|
|
3701
|
+
* console.log('选择器:', selects)
|
|
3702
|
+
* }
|
|
3703
|
+
* }
|
|
3704
|
+
* ```
|
|
3705
|
+
*
|
|
3706
|
+
* @example Mention 场景
|
|
3707
|
+
* ```typescript
|
|
3708
|
+
* function handleSubmit(text: string, data?: StructuredData) {
|
|
3709
|
+
* // text: "帮我分析 @张三 的周报"
|
|
3710
|
+
* // data: [
|
|
3711
|
+
* // { type: 'text', content: '帮我分析 ' },
|
|
3712
|
+
* // { type: 'mention', content: '张三', value: '...' },
|
|
3713
|
+
* // { type: 'text', content: ' 的周报' }
|
|
3714
|
+
* // ]
|
|
3715
|
+
*
|
|
3716
|
+
* // 统一使用 content 属性
|
|
3717
|
+
* const allContent = data?.map(item => item.content).join('')
|
|
3718
|
+
* console.log('完整内容:', allContent)
|
|
3719
|
+
*
|
|
3720
|
+
* // 提取 mention(正确的类型守卫)
|
|
3721
|
+
* if (data && data.some(item => item.type === 'mention')) {
|
|
3722
|
+
* const mentions = data.filter(item => item.type === 'mention')
|
|
3723
|
+
* console.log('提及的人:', mentions.map(m => m.content))
|
|
3724
|
+
* console.log('关联值:', mentions.map(m => m.value))
|
|
3725
|
+
* }
|
|
3726
|
+
* }
|
|
3727
|
+
* ```
|
|
3728
|
+
*/
|
|
3729
|
+
export declare type StructuredData = TemplateItem[] | MentionStructuredItem[];
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* 提交触发方式
|
|
3733
|
+
* - enter: Enter 键提交
|
|
3734
|
+
* - ctrlEnter: Ctrl+Enter 提交
|
|
3735
|
+
* - shiftEnter: Shift+Enter 提交
|
|
3736
|
+
*/
|
|
3231
3737
|
export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
|
|
3232
3738
|
|
|
3739
|
+
/**
|
|
3740
|
+
* 创建 Suggestion 扩展的便捷函数
|
|
3741
|
+
*
|
|
3742
|
+
* @param items - 建议项列表
|
|
3743
|
+
* @param options - 其他配置项
|
|
3744
|
+
*
|
|
3745
|
+
* @example
|
|
3746
|
+
* ```typescript
|
|
3747
|
+
* const extensions = [suggestion(suggestions)]
|
|
3748
|
+
* const extensions = [suggestion(suggestions, { popupWidth: 500 })]
|
|
3749
|
+
* ```
|
|
3750
|
+
*/
|
|
3751
|
+
declare function suggestion(items: SenderSuggestionItem[] | Ref<SenderSuggestionItem[]>, options?: Partial<Omit<SuggestionOptions, 'items'>>): Extension<SuggestionOptions, any>;
|
|
3752
|
+
|
|
3233
3753
|
export declare interface SuggestionBaseItem {
|
|
3234
3754
|
id: string;
|
|
3235
3755
|
text: string;
|
|
@@ -3244,9 +3764,179 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
|
3244
3764
|
items: SuggestionItem<T>[];
|
|
3245
3765
|
}
|
|
3246
3766
|
|
|
3247
|
-
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
3248
|
-
|
|
3249
|
-
|
|
3767
|
+
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* SuggestionList Emits
|
|
3771
|
+
*/
|
|
3772
|
+
export declare interface SuggestionListEmits {
|
|
3773
|
+
/**
|
|
3774
|
+
* 选择建议
|
|
3775
|
+
*
|
|
3776
|
+
* @param suggestion - 建议内容
|
|
3777
|
+
*/
|
|
3778
|
+
(e: 'select', suggestion: string): void;
|
|
3779
|
+
/**
|
|
3780
|
+
* 鼠标进入
|
|
3781
|
+
*
|
|
3782
|
+
* @param index - 索引
|
|
3783
|
+
*/
|
|
3784
|
+
(e: 'mouse-enter', index: number): void;
|
|
3785
|
+
/**
|
|
3786
|
+
* 鼠标离开
|
|
3787
|
+
*/
|
|
3788
|
+
(e: 'mouse-leave'): void;
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
/**
|
|
3792
|
+
* SuggestionList Props
|
|
3793
|
+
*/
|
|
3794
|
+
export declare interface SuggestionListProps {
|
|
3795
|
+
/**
|
|
3796
|
+
* 是否显示
|
|
3797
|
+
*/
|
|
3798
|
+
show: boolean;
|
|
3799
|
+
/**
|
|
3800
|
+
* 建议列表
|
|
3801
|
+
*/
|
|
3802
|
+
suggestions: SenderSuggestionItem[];
|
|
3803
|
+
/**
|
|
3804
|
+
* 键盘激活索引
|
|
3805
|
+
*/
|
|
3806
|
+
activeKeyboardIndex: number;
|
|
3807
|
+
/**
|
|
3808
|
+
* 鼠标激活索引
|
|
3809
|
+
*/
|
|
3810
|
+
activeMouseIndex: number;
|
|
3811
|
+
/**
|
|
3812
|
+
* 输入值
|
|
3813
|
+
*/
|
|
3814
|
+
inputValue: string;
|
|
3815
|
+
/**
|
|
3816
|
+
* 弹窗样式
|
|
3817
|
+
*/
|
|
3818
|
+
popupStyle?: Record<string, string | number>;
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* 插件配置选项
|
|
3823
|
+
*/
|
|
3824
|
+
export declare interface SuggestionOptions {
|
|
3825
|
+
/**
|
|
3826
|
+
* 建议项列表(可选)
|
|
3827
|
+
*
|
|
3828
|
+
* 不传或传空数组时,建议功能不会显示
|
|
3829
|
+
*
|
|
3830
|
+
* @default []
|
|
3831
|
+
*
|
|
3832
|
+
* @example
|
|
3833
|
+
* ```typescript
|
|
3834
|
+
* const items = ref([
|
|
3835
|
+
* { content: 'ECS-云服务器' },
|
|
3836
|
+
* { content: 'RDS-数据库' }
|
|
3837
|
+
* ])
|
|
3838
|
+
* ```
|
|
3839
|
+
*/
|
|
3840
|
+
items?: SenderSuggestionItem[] | Ref<SenderSuggestionItem[]>;
|
|
3841
|
+
/**
|
|
3842
|
+
* 自定义过滤函数(可选)
|
|
3843
|
+
*
|
|
3844
|
+
* - 不传:不过滤,直接显示所有项
|
|
3845
|
+
* - 传入:使用自定义过滤逻辑
|
|
3846
|
+
*
|
|
3847
|
+
* @default undefined(不过滤)
|
|
3848
|
+
*
|
|
3849
|
+
* @example 模糊匹配过滤
|
|
3850
|
+
* ```typescript
|
|
3851
|
+
* filterFn: (items, query) => {
|
|
3852
|
+
* return items.filter(item =>
|
|
3853
|
+
* item.content.toLowerCase().includes(query.toLowerCase())
|
|
3854
|
+
* )
|
|
3855
|
+
* }
|
|
3856
|
+
* ```
|
|
3857
|
+
*
|
|
3858
|
+
* @example 前缀匹配过滤
|
|
3859
|
+
* ```typescript
|
|
3860
|
+
* filterFn: (items, query) => {
|
|
3861
|
+
* return items.filter(item =>
|
|
3862
|
+
* item.content.toLowerCase().startsWith(query.toLowerCase())
|
|
3863
|
+
* )
|
|
3864
|
+
* }
|
|
3865
|
+
* ```
|
|
3866
|
+
*/
|
|
3867
|
+
filterFn?: (suggestions: SenderSuggestionItem[], query: string) => SenderSuggestionItem[];
|
|
3868
|
+
/**
|
|
3869
|
+
* 选中建议项的按键
|
|
3870
|
+
*
|
|
3871
|
+
* 注意:Tab 键用于自动补全,不受此配置控制
|
|
3872
|
+
*
|
|
3873
|
+
* @default ['Enter']
|
|
3874
|
+
*
|
|
3875
|
+
* @example 只允许 Enter 选中
|
|
3876
|
+
* ```typescript
|
|
3877
|
+
* activeSuggestionKeys: ['Enter']
|
|
3878
|
+
* ```
|
|
3879
|
+
*
|
|
3880
|
+
* @example 允许 Enter 和 Space 选中
|
|
3881
|
+
* ```typescript
|
|
3882
|
+
* activeSuggestionKeys: ['Enter', ' '] // 注意:空格键是 ' '
|
|
3883
|
+
* ```
|
|
3884
|
+
*
|
|
3885
|
+
* @example 禁用所有选中按键(只能点击)
|
|
3886
|
+
* ```typescript
|
|
3887
|
+
* activeSuggestionKeys: []
|
|
3888
|
+
* ```
|
|
3889
|
+
*/
|
|
3890
|
+
activeSuggestionKeys?: string[];
|
|
3891
|
+
/**
|
|
3892
|
+
* 弹窗宽度
|
|
3893
|
+
*
|
|
3894
|
+
* @default 400
|
|
3895
|
+
*/
|
|
3896
|
+
popupWidth?: number | string;
|
|
3897
|
+
/**
|
|
3898
|
+
* 是否显示自动补全提示
|
|
3899
|
+
*
|
|
3900
|
+
* @default true
|
|
3901
|
+
*/
|
|
3902
|
+
showAutoComplete?: boolean;
|
|
3903
|
+
/**
|
|
3904
|
+
* 选中建议项的回调
|
|
3905
|
+
*
|
|
3906
|
+
* @param item - 选中的建议项(包含完整的 SenderSuggestionItem 信息)
|
|
3907
|
+
* @returns 返回 false 可阻止默认回填行为
|
|
3908
|
+
*
|
|
3909
|
+
* @example 默认行为(自动回填)
|
|
3910
|
+
* ```typescript
|
|
3911
|
+
* onSelect: (item) => {
|
|
3912
|
+
* console.log('Selected:', item)
|
|
3913
|
+
* // 不返回 false,内容会自动回填
|
|
3914
|
+
* }
|
|
3915
|
+
* ```
|
|
3916
|
+
*
|
|
3917
|
+
* @example 阻止默认行为并自定义回填
|
|
3918
|
+
* ```typescript
|
|
3919
|
+
* onSelect: (item) => {
|
|
3920
|
+
* editor.commands.setContent(`前缀-${item.content}-后缀`)
|
|
3921
|
+
* return false // 阻止默认回填
|
|
3922
|
+
* }
|
|
3923
|
+
* ```
|
|
3924
|
+
*
|
|
3925
|
+
* @example 条件性阻止
|
|
3926
|
+
* ```typescript
|
|
3927
|
+
* onSelect: (item) => {
|
|
3928
|
+
* if (item.data?.needsValidation) {
|
|
3929
|
+
* validateAndFill(item)
|
|
3930
|
+
* return false
|
|
3931
|
+
* }
|
|
3932
|
+
* // 否则使用默认回填
|
|
3933
|
+
* }
|
|
3934
|
+
* ```
|
|
3935
|
+
*/
|
|
3936
|
+
onSelect?: (item: SenderSuggestionItem) => void | false;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
declare const SuggestionPillButton: typeof _default_38 & {
|
|
3250
3940
|
install: typeof installPillButton;
|
|
3251
3941
|
};
|
|
3252
3942
|
export { SuggestionPillButton }
|
|
@@ -3374,19 +4064,184 @@ export declare interface SuggestionPopoverSlots {
|
|
|
3374
4064
|
body?: () => VNode | VNode[];
|
|
3375
4065
|
}
|
|
3376
4066
|
|
|
4067
|
+
/**
|
|
4068
|
+
* 插件状态
|
|
4069
|
+
*
|
|
4070
|
+
* 管理建议列表的显示、过滤、选中等状态
|
|
4071
|
+
*/
|
|
4072
|
+
export declare interface SuggestionState {
|
|
4073
|
+
/**
|
|
4074
|
+
* 是否激活(有匹配的建议项)
|
|
4075
|
+
*/
|
|
4076
|
+
active: boolean;
|
|
4077
|
+
/**
|
|
4078
|
+
* 匹配范围
|
|
4079
|
+
*
|
|
4080
|
+
* 全局模式:整个文档范围
|
|
4081
|
+
* 字符模式:触发字符到光标的范围
|
|
4082
|
+
*/
|
|
4083
|
+
range: {
|
|
4084
|
+
from: number;
|
|
4085
|
+
to: number;
|
|
4086
|
+
} | null;
|
|
4087
|
+
/**
|
|
4088
|
+
* 查询文本
|
|
4089
|
+
*
|
|
4090
|
+
* 全局模式:整个输入内容
|
|
4091
|
+
* 字符模式:触发字符后的文本
|
|
4092
|
+
*/
|
|
4093
|
+
query: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* 过滤后的建议项
|
|
4096
|
+
*/
|
|
4097
|
+
filteredSuggestions: SenderSuggestionItem[];
|
|
4098
|
+
/**
|
|
4099
|
+
* 当前选中的建议项索引
|
|
4100
|
+
*
|
|
4101
|
+
* -1 表示未选中
|
|
4102
|
+
*/
|
|
4103
|
+
selectedIndex: number;
|
|
4104
|
+
/**
|
|
4105
|
+
* 自动补全文本
|
|
4106
|
+
*
|
|
4107
|
+
* 选中项的剩余部分
|
|
4108
|
+
*/
|
|
4109
|
+
autoCompleteText: string;
|
|
4110
|
+
/**
|
|
4111
|
+
* 是否显示 Tab 提示
|
|
4112
|
+
*/
|
|
4113
|
+
showTabIndicator: boolean;
|
|
4114
|
+
}
|
|
4115
|
+
|
|
4116
|
+
/**
|
|
4117
|
+
* Suggestion 插件类型定义
|
|
4118
|
+
*
|
|
4119
|
+
* 包含建议项、高亮、插件配置和状态等类型定义
|
|
4120
|
+
*/
|
|
4121
|
+
/**
|
|
4122
|
+
* 高亮文本片段
|
|
4123
|
+
*/
|
|
3377
4124
|
export declare interface SuggestionTextPart {
|
|
3378
4125
|
text: string;
|
|
3379
4126
|
isMatch: boolean;
|
|
3380
4127
|
}
|
|
3381
4128
|
|
|
3382
|
-
declare interface
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
suffix: string;
|
|
4129
|
+
declare interface SuggestionTextPart_2 {
|
|
4130
|
+
text: string;
|
|
4131
|
+
isMatch: boolean;
|
|
3386
4132
|
}
|
|
3387
4133
|
|
|
3388
|
-
|
|
4134
|
+
/**
|
|
4135
|
+
* 创建 Template 扩展的便捷函数
|
|
4136
|
+
*
|
|
4137
|
+
* @param items - 模板项列表
|
|
4138
|
+
* @param options - 其他配置项
|
|
4139
|
+
*
|
|
4140
|
+
* @example
|
|
4141
|
+
* ```typescript
|
|
4142
|
+
* const extensions = [template(templates)]
|
|
4143
|
+
* const extensions = [template(templates, { HTMLAttributes: { class: 'custom' } })]
|
|
4144
|
+
* ```
|
|
4145
|
+
*/
|
|
4146
|
+
declare function template(items: TemplateItem[] | Ref<TemplateItem[]>, options?: Partial<Omit<TemplateOptions, 'items'>>): Extension<TemplateOptions, any>;
|
|
4147
|
+
|
|
4148
|
+
/**
|
|
4149
|
+
* 模板项(用户侧)
|
|
4150
|
+
*
|
|
4151
|
+
* 用户传入的模板数据格式
|
|
4152
|
+
* 组件内部会转换为 Tiptap 节点格式
|
|
4153
|
+
*/
|
|
4154
|
+
export declare type TemplateItem = {
|
|
4155
|
+
/**
|
|
4156
|
+
* 模板 ID,可选
|
|
4157
|
+
* 如果不提供,组件会自动生成
|
|
4158
|
+
*/
|
|
4159
|
+
id?: string;
|
|
4160
|
+
/**
|
|
4161
|
+
* 类型:普通文本
|
|
4162
|
+
*/
|
|
3389
4163
|
type: 'text';
|
|
4164
|
+
/**
|
|
4165
|
+
* 内容
|
|
4166
|
+
*/
|
|
4167
|
+
content: string;
|
|
4168
|
+
} | {
|
|
4169
|
+
/**
|
|
4170
|
+
* 模板 ID,可选
|
|
4171
|
+
* 如果不提供,组件会自动生成
|
|
4172
|
+
*/
|
|
4173
|
+
id?: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* 类型:模板块(可编辑)
|
|
4176
|
+
*/
|
|
4177
|
+
type: 'block';
|
|
4178
|
+
/**
|
|
4179
|
+
* 内容
|
|
4180
|
+
*/
|
|
4181
|
+
content: string;
|
|
4182
|
+
} | {
|
|
4183
|
+
/**
|
|
4184
|
+
* 模板 ID,可选
|
|
4185
|
+
* 如果不提供,组件会自动生成
|
|
4186
|
+
*/
|
|
4187
|
+
id?: string;
|
|
4188
|
+
/**
|
|
4189
|
+
* 类型:选择器
|
|
4190
|
+
*/
|
|
4191
|
+
type: 'select';
|
|
4192
|
+
/**
|
|
4193
|
+
* 内容(选中的值)
|
|
4194
|
+
*/
|
|
4195
|
+
content: string;
|
|
4196
|
+
/**
|
|
4197
|
+
* 占位文字(未选择时显示)
|
|
4198
|
+
*/
|
|
4199
|
+
placeholder?: string;
|
|
4200
|
+
/**
|
|
4201
|
+
* 选项列表
|
|
4202
|
+
*/
|
|
4203
|
+
options?: SelectOption[];
|
|
4204
|
+
/**
|
|
4205
|
+
* 当前选中的值
|
|
4206
|
+
*/
|
|
4207
|
+
value?: string;
|
|
4208
|
+
};
|
|
4209
|
+
|
|
4210
|
+
/**
|
|
4211
|
+
* Template 配置选项
|
|
4212
|
+
*/
|
|
4213
|
+
declare interface TemplateOptions {
|
|
4214
|
+
/**
|
|
4215
|
+
* 模板数据列表(推荐使用 ref 实现响应式)
|
|
4216
|
+
*
|
|
4217
|
+
* 支持两种配置方式:
|
|
4218
|
+
* 1. 传入 ref(推荐):自动双向绑定,解决时序问题
|
|
4219
|
+
* 2. 传入数组:仅用于静态初始化
|
|
4220
|
+
*
|
|
4221
|
+
* @example 响应式配置(推荐)
|
|
4222
|
+
* ```typescript
|
|
4223
|
+
* const items = ref<TemplateItem[]>([
|
|
4224
|
+
* { type: 'text', content: '帮我分析' },
|
|
4225
|
+
* { type: 'template', content: '' }
|
|
4226
|
+
* ])
|
|
4227
|
+
* Template.configure({ items }) // 传入 ref,自动双向绑定
|
|
4228
|
+
* ```
|
|
4229
|
+
*
|
|
4230
|
+
* @example 静态配置
|
|
4231
|
+
* ```typescript
|
|
4232
|
+
* Template.configure({
|
|
4233
|
+
* items: [
|
|
4234
|
+
* { type: 'text', content: '帮我分析' },
|
|
4235
|
+
* { type: 'template', content: '' }
|
|
4236
|
+
* ]
|
|
4237
|
+
* })
|
|
4238
|
+
* ```
|
|
4239
|
+
*/
|
|
4240
|
+
items?: TemplateItem[] | Ref<TemplateItem[]>;
|
|
4241
|
+
/**
|
|
4242
|
+
* HTML 属性
|
|
4243
|
+
*/
|
|
4244
|
+
HTMLAttributes?: Record<string, unknown>;
|
|
3390
4245
|
}
|
|
3391
4246
|
|
|
3392
4247
|
export declare interface ThemeProviderProps {
|
|
@@ -3408,10 +4263,7 @@ export declare interface ThemeProviderProps {
|
|
|
3408
4263
|
|
|
3409
4264
|
export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
|
|
3410
4265
|
|
|
3411
|
-
|
|
3412
|
-
* 组件核心类型定义
|
|
3413
|
-
*/
|
|
3414
|
-
export declare type ThemeType = 'light' | 'dark';
|
|
4266
|
+
declare type ThemeType = 'light' | 'dark';
|
|
3415
4267
|
|
|
3416
4268
|
/**
|
|
3417
4269
|
* 工具调用接口(支持 OpenAI 格式)
|
|
@@ -3430,6 +4282,13 @@ declare type ToolCallStatus = (typeof toolCallStatus)[number];
|
|
|
3430
4282
|
|
|
3431
4283
|
declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled"];
|
|
3432
4284
|
|
|
4285
|
+
/**
|
|
4286
|
+
* Tooltip 内容类型
|
|
4287
|
+
* - string: 简单文本
|
|
4288
|
+
* - () => string | VNode: 渲染函数,支持复杂内容
|
|
4289
|
+
*/
|
|
4290
|
+
export declare type TooltipContent = string | (() => string | VNode);
|
|
4291
|
+
|
|
3433
4292
|
declare interface TooltipContentProps {
|
|
3434
4293
|
show?: boolean;
|
|
3435
4294
|
content: string;
|
|
@@ -3440,7 +4299,71 @@ declare interface TooltipContentProps {
|
|
|
3440
4299
|
delayClose?: number;
|
|
3441
4300
|
}
|
|
3442
4301
|
|
|
3443
|
-
|
|
4302
|
+
/**
|
|
4303
|
+
* Tooltip 位置
|
|
4304
|
+
*
|
|
4305
|
+
* 支持 TinyTooltip 的所有位置选项
|
|
4306
|
+
*/
|
|
4307
|
+
export declare type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
4308
|
+
|
|
4309
|
+
declare type TooltipRender = () => VNode | string;
|
|
4310
|
+
|
|
4311
|
+
export declare interface UploadButtonEmits {
|
|
4312
|
+
/**
|
|
4313
|
+
* 文件选择
|
|
4314
|
+
*/
|
|
4315
|
+
(e: 'select', files: File[]): void;
|
|
4316
|
+
/**
|
|
4317
|
+
* 文件验证失败
|
|
4318
|
+
*/
|
|
4319
|
+
(e: 'error', error: Error, files?: File[]): void;
|
|
4320
|
+
}
|
|
4321
|
+
|
|
4322
|
+
export declare interface UploadButtonProps {
|
|
4323
|
+
/**
|
|
4324
|
+
* 是否禁用
|
|
4325
|
+
*/
|
|
4326
|
+
disabled?: boolean;
|
|
4327
|
+
/**
|
|
4328
|
+
* 接受的文件类型
|
|
4329
|
+
* @default '*'
|
|
4330
|
+
*/
|
|
4331
|
+
accept?: string;
|
|
4332
|
+
/**
|
|
4333
|
+
* 是否支持多选
|
|
4334
|
+
* @default false
|
|
4335
|
+
*/
|
|
4336
|
+
multiple?: boolean;
|
|
4337
|
+
/**
|
|
4338
|
+
* 是否在选择文件后重置 input
|
|
4339
|
+
* @default true
|
|
4340
|
+
*/
|
|
4341
|
+
reset?: boolean;
|
|
4342
|
+
/**
|
|
4343
|
+
* 文件大小限制(MB)
|
|
4344
|
+
*/
|
|
4345
|
+
maxSize?: number;
|
|
4346
|
+
/**
|
|
4347
|
+
* 最大文件数量
|
|
4348
|
+
*/
|
|
4349
|
+
maxCount?: number;
|
|
4350
|
+
/**
|
|
4351
|
+
* 按钮提示文本
|
|
4352
|
+
*/
|
|
4353
|
+
tooltip?: TooltipContent;
|
|
4354
|
+
/**
|
|
4355
|
+
* 按钮尺寸
|
|
4356
|
+
*/
|
|
4357
|
+
size?: number | string;
|
|
4358
|
+
/**
|
|
4359
|
+
* 自定义图标
|
|
4360
|
+
*/
|
|
4361
|
+
icon?: Component;
|
|
4362
|
+
/**
|
|
4363
|
+
* Tooltip 位置
|
|
4364
|
+
*/
|
|
4365
|
+
tooltipPlacement?: TooltipPlacement;
|
|
4366
|
+
}
|
|
3444
4367
|
|
|
3445
4368
|
export declare interface UrlAttachment extends BaseAttachment {
|
|
3446
4369
|
url: string;
|
|
@@ -3480,11 +4403,71 @@ export declare function useBubbleContentRenderer(message: MaybeRefOrGetter<Bubbl
|
|
|
3480
4403
|
|
|
3481
4404
|
export declare function useBubbleStateChangeFn(): (key: string, _value: unknown) => void;
|
|
3482
4405
|
|
|
4406
|
+
/**
|
|
4407
|
+
* useEditor 返回类型
|
|
4408
|
+
*/
|
|
4409
|
+
export declare interface UseEditorReturn {
|
|
4410
|
+
/**
|
|
4411
|
+
* 编辑器实例
|
|
4412
|
+
* 注意:Tiptap 的 useEditor 返回 ShallowRef<Editor | undefined>
|
|
4413
|
+
*/
|
|
4414
|
+
editor: Ref<Editor | undefined>;
|
|
4415
|
+
/**
|
|
4416
|
+
* 编辑器 DOM 引用
|
|
4417
|
+
*/
|
|
4418
|
+
editorRef: Ref<HTMLElement | null>;
|
|
4419
|
+
}
|
|
4420
|
+
|
|
4421
|
+
/**
|
|
4422
|
+
* useKeyboardShortcuts Hook 参数
|
|
4423
|
+
*/
|
|
4424
|
+
export declare interface UseKeyboardShortcutsParams {
|
|
4425
|
+
submitType: Ref<SubmitTrigger>;
|
|
4426
|
+
canSubmit: Ref<boolean>;
|
|
4427
|
+
mode: Ref<InputMode>;
|
|
4428
|
+
submit: () => void;
|
|
4429
|
+
setMode: (mode: InputMode) => void;
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* useKeyboardShortcuts Hook 返回值
|
|
4434
|
+
*/
|
|
4435
|
+
export declare interface UseKeyboardShortcutsReturn {
|
|
4436
|
+
checkSubmitShortcut: (event: KeyboardEvent) => boolean;
|
|
4437
|
+
checkNewlineShortcut: (event: KeyboardEvent) => boolean;
|
|
4438
|
+
}
|
|
4439
|
+
|
|
3483
4440
|
export declare const useMessageContent: <T extends ChatMessageContent = ChatMessageContent>(props: Readonly<BubbleContentRendererProps<T>>) => {
|
|
3484
4441
|
content: ComputedRef<ChatMessageContentItem>;
|
|
3485
4442
|
contentText: ComputedRef<string>;
|
|
3486
4443
|
};
|
|
3487
4444
|
|
|
4445
|
+
/**
|
|
4446
|
+
* useModeSwitch 返回类型
|
|
4447
|
+
*/
|
|
4448
|
+
export declare interface UseModeSwitchReturn {
|
|
4449
|
+
/**
|
|
4450
|
+
* 当前模式
|
|
4451
|
+
*/
|
|
4452
|
+
currentMode: Ref<InputMode>;
|
|
4453
|
+
/**
|
|
4454
|
+
* 是否正在自动切换
|
|
4455
|
+
*/
|
|
4456
|
+
isAutoSwitching: Ref<boolean>;
|
|
4457
|
+
/**
|
|
4458
|
+
* 设置模式
|
|
4459
|
+
*
|
|
4460
|
+
* @param mode - 输入模式
|
|
4461
|
+
*/
|
|
4462
|
+
setMode: (mode: InputMode) => void;
|
|
4463
|
+
/**
|
|
4464
|
+
* 检查内容溢出
|
|
4465
|
+
*
|
|
4466
|
+
* 用于自动切换模式
|
|
4467
|
+
*/
|
|
4468
|
+
checkOverflow: () => void;
|
|
4469
|
+
}
|
|
4470
|
+
|
|
3488
4471
|
/**
|
|
3489
4472
|
* Omit specified fields from message and return computed props
|
|
3490
4473
|
* @param props - The original props containing the message
|
|
@@ -3496,16 +4479,82 @@ export declare function useOmitMessageFields<P extends BubbleContentRendererProp
|
|
|
3496
4479
|
restProps: ComputedRef<P>;
|
|
3497
4480
|
};
|
|
3498
4481
|
|
|
3499
|
-
|
|
4482
|
+
declare type UserItem = UserTextItem | UserTemplateItem;
|
|
3500
4483
|
|
|
3501
|
-
|
|
3502
|
-
id?:
|
|
4484
|
+
declare type UserTemplateItem = Omit<Pick<CompatTemplateItem, 'type' | 'content'>, 'id'> & {
|
|
4485
|
+
id?: CompatTemplateItem['id'];
|
|
3503
4486
|
};
|
|
3504
4487
|
|
|
3505
|
-
|
|
3506
|
-
id?:
|
|
4488
|
+
declare type UserTextItem = Omit<CompatTextItem, 'id'> & {
|
|
4489
|
+
id?: CompatTextItem['id'];
|
|
3507
4490
|
};
|
|
3508
4491
|
|
|
4492
|
+
/**
|
|
4493
|
+
* 获取 Sender Context
|
|
4494
|
+
*/
|
|
4495
|
+
export declare function useSenderContext(): SenderContext;
|
|
4496
|
+
|
|
4497
|
+
/**
|
|
4498
|
+
* useSenderContext 返回类型
|
|
4499
|
+
*/
|
|
4500
|
+
export declare type UseSenderContextReturn = SenderContext;
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* useSuggestion 返回类型
|
|
4504
|
+
*/
|
|
4505
|
+
export declare interface UseSuggestionReturn {
|
|
4506
|
+
/**
|
|
4507
|
+
* 弹窗是否可见
|
|
4508
|
+
*/
|
|
4509
|
+
isPopupVisible: Ref<boolean>;
|
|
4510
|
+
/**
|
|
4511
|
+
* 当前激活的建议
|
|
4512
|
+
*/
|
|
4513
|
+
activeSuggestion: Ref<string>;
|
|
4514
|
+
/**
|
|
4515
|
+
* 键盘导航的激活索引
|
|
4516
|
+
*/
|
|
4517
|
+
activeKeyboardIndex: Ref<number>;
|
|
4518
|
+
/**
|
|
4519
|
+
* 鼠标悬停的激活索引
|
|
4520
|
+
*/
|
|
4521
|
+
activeMouseIndex: Ref<number>;
|
|
4522
|
+
/**
|
|
4523
|
+
* 自动补全文本
|
|
4524
|
+
*/
|
|
4525
|
+
autoCompleteText: Ref<string>;
|
|
4526
|
+
/**
|
|
4527
|
+
* 是否显示 Tab 提示器
|
|
4528
|
+
*/
|
|
4529
|
+
showTabIndicator: Ref<boolean>;
|
|
4530
|
+
/**
|
|
4531
|
+
* 应用建议
|
|
4532
|
+
*
|
|
4533
|
+
* @param suggestion - 建议内容
|
|
4534
|
+
*/
|
|
4535
|
+
applySuggestion: (suggestion: string) => void;
|
|
4536
|
+
/**
|
|
4537
|
+
* 键盘导航
|
|
4538
|
+
*
|
|
4539
|
+
* @param direction - 方向(上/下)
|
|
4540
|
+
*/
|
|
4541
|
+
navigateWithKeyboard: (direction: 'up' | 'down') => void;
|
|
4542
|
+
/**
|
|
4543
|
+
* 鼠标进入
|
|
4544
|
+
*
|
|
4545
|
+
* @param index - 建议项索引
|
|
4546
|
+
*/
|
|
4547
|
+
handleMouseEnter: (index: number) => void;
|
|
4548
|
+
/**
|
|
4549
|
+
* 鼠标离开
|
|
4550
|
+
*/
|
|
4551
|
+
handleMouseLeave: () => void;
|
|
4552
|
+
/**
|
|
4553
|
+
* 关闭弹窗
|
|
4554
|
+
*/
|
|
4555
|
+
closePopup: () => void;
|
|
4556
|
+
}
|
|
4557
|
+
|
|
3509
4558
|
export declare const useTheme: () => {
|
|
3510
4559
|
theme: Ref<string, string> | undefined;
|
|
3511
4560
|
colorMode: Ref<ColorMode, ColorMode> | undefined;
|
|
@@ -3553,6 +4602,74 @@ declare interface VoiceButtonConfig {
|
|
|
3553
4602
|
icon?: VNode | Component;
|
|
3554
4603
|
}
|
|
3555
4604
|
|
|
4605
|
+
/**
|
|
4606
|
+
* VoiceButton 组件 Emits
|
|
4607
|
+
*/
|
|
4608
|
+
export declare interface VoiceButtonEmits {
|
|
4609
|
+
(e: 'speech-start'): void;
|
|
4610
|
+
(e: 'speech-interim', transcript: string): void;
|
|
4611
|
+
(e: 'speech-final', transcript: string): void;
|
|
4612
|
+
(e: 'speech-end', transcript?: string): void;
|
|
4613
|
+
(e: 'speech-error', error: Error): void;
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* VoiceButton 组件 Props
|
|
4618
|
+
*/
|
|
4619
|
+
export declare interface VoiceButtonProps {
|
|
4620
|
+
/**
|
|
4621
|
+
* 自定义未录音状态的图标
|
|
4622
|
+
*
|
|
4623
|
+
* @default IconVoice
|
|
4624
|
+
*
|
|
4625
|
+
* @example 基础使用
|
|
4626
|
+
* ```vue
|
|
4627
|
+
* <VoiceButton :icon="IconMicrophone" />
|
|
4628
|
+
* ```
|
|
4629
|
+
*/
|
|
4630
|
+
icon?: VNode | Component;
|
|
4631
|
+
/**
|
|
4632
|
+
* 自定义录音中状态的图标
|
|
4633
|
+
*
|
|
4634
|
+
* @default IconRecordingWave
|
|
4635
|
+
*
|
|
4636
|
+
* @example 自定义录音中图标
|
|
4637
|
+
* ```vue
|
|
4638
|
+
* <VoiceButton :recording-icon="MyRecordingIcon" />
|
|
4639
|
+
* ```
|
|
4640
|
+
*/
|
|
4641
|
+
recordingIcon?: VNode | Component;
|
|
4642
|
+
/**
|
|
4643
|
+
* 是否禁用(会与 Context 的 disabled 合并)
|
|
4644
|
+
*/
|
|
4645
|
+
disabled?: boolean;
|
|
4646
|
+
/**
|
|
4647
|
+
* 按钮尺寸
|
|
4648
|
+
*/
|
|
4649
|
+
size?: 'small' | 'normal';
|
|
4650
|
+
/**
|
|
4651
|
+
* Tooltip 文本
|
|
4652
|
+
*/
|
|
4653
|
+
tooltip?: TooltipContent;
|
|
4654
|
+
/**
|
|
4655
|
+
* Tooltip 位置
|
|
4656
|
+
*/
|
|
4657
|
+
tooltipPlacement?: TooltipPlacement;
|
|
4658
|
+
/**
|
|
4659
|
+
* 语音配置
|
|
4660
|
+
*/
|
|
4661
|
+
speechConfig?: SpeechConfig;
|
|
4662
|
+
/**
|
|
4663
|
+
* 是否自动插入识别结果到编辑器
|
|
4664
|
+
* @default true
|
|
4665
|
+
*/
|
|
4666
|
+
autoInsert?: boolean;
|
|
4667
|
+
/**
|
|
4668
|
+
* 按钮点击拦截器(用于自定义 UI)
|
|
4669
|
+
*/
|
|
4670
|
+
onButtonClick?: (isRecording: boolean, preventDefault: () => void) => void | Promise<void>;
|
|
4671
|
+
}
|
|
4672
|
+
|
|
3556
4673
|
export declare interface WelcomeProps {
|
|
3557
4674
|
title: string;
|
|
3558
4675
|
description: string;
|
|
@@ -3564,4 +4681,72 @@ export declare interface WelcomeSlots {
|
|
|
3564
4681
|
footer: () => unknown;
|
|
3565
4682
|
}
|
|
3566
4683
|
|
|
4684
|
+
/**
|
|
4685
|
+
* WordCounter Props
|
|
4686
|
+
*/
|
|
4687
|
+
export declare interface WordCounterProps {
|
|
4688
|
+
/**
|
|
4689
|
+
* 当前字符数
|
|
4690
|
+
*/
|
|
4691
|
+
current: number;
|
|
4692
|
+
/**
|
|
4693
|
+
* 最大字符数
|
|
4694
|
+
*/
|
|
4695
|
+
max: number;
|
|
4696
|
+
/**
|
|
4697
|
+
* 是否超出限制
|
|
4698
|
+
*/
|
|
4699
|
+
isOverLimit: boolean;
|
|
4700
|
+
}
|
|
4701
|
+
|
|
3567
4702
|
export { }
|
|
4703
|
+
|
|
4704
|
+
|
|
4705
|
+
/**
|
|
4706
|
+
* 扩展 Tiptap Commands 接口
|
|
4707
|
+
*
|
|
4708
|
+
* 使 TypeScript 能够识别自定义命令
|
|
4709
|
+
*/
|
|
4710
|
+
declare module '@tiptap/core' {
|
|
4711
|
+
interface Commands<ReturnType> {
|
|
4712
|
+
template: {
|
|
4713
|
+
/**
|
|
4714
|
+
* 设置模板数据(批量)
|
|
4715
|
+
*/
|
|
4716
|
+
setTemplateData: (items: TemplateItem[]) => ReturnType;
|
|
4717
|
+
/**
|
|
4718
|
+
* 插入模板块
|
|
4719
|
+
*/
|
|
4720
|
+
insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
|
|
4721
|
+
/**
|
|
4722
|
+
* 聚焦到第一个模板块
|
|
4723
|
+
*/
|
|
4724
|
+
focusFirstTemplate: () => ReturnType;
|
|
4725
|
+
/**
|
|
4726
|
+
* 插入选择器
|
|
4727
|
+
*/
|
|
4728
|
+
insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
|
|
4729
|
+
};
|
|
4730
|
+
}
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* 扩展 Tiptap Commands 接口
|
|
4736
|
+
*
|
|
4737
|
+
* 使 TypeScript 能够识别自定义命令
|
|
4738
|
+
*/
|
|
4739
|
+
declare module '@tiptap/core' {
|
|
4740
|
+
interface Commands<ReturnType> {
|
|
4741
|
+
mention: {
|
|
4742
|
+
/**
|
|
4743
|
+
* 插入 mention 节点
|
|
4744
|
+
*/
|
|
4745
|
+
insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
|
|
4746
|
+
/**
|
|
4747
|
+
* 删除 mention 节点
|
|
4748
|
+
*/
|
|
4749
|
+
deleteMention: (id: string) => ReturnType;
|
|
4750
|
+
};
|
|
4751
|
+
}
|
|
4752
|
+
}
|