@vunk/plus 1.2.0 → 1.2.2
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/components/SendOutlined.mjs +42 -24
- package/components/monaco-environment/index.mjs +10 -10
- package/components/sender/index.css +4 -0
- package/components/sender/index.mjs +146 -17
- package/components/sender/src/SenderHeader.vue.d.ts +270 -0
- package/components/sender/src/ctx.d.ts +17 -0
- package/components/sender/src/index.vue.d.ts +297 -49
- package/components/speech-button/index.mjs +37 -4
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/tables-v1/index.mjs +6 -7
- package/components/tables-v1/src/ctx.d.ts +3 -3
- package/components/tables-v1/src/el-ctx.d.ts +2 -2
- package/components/tables-v1/src/types.d.ts +2 -2
- package/components/tables-v1-checkbox/src/ctx.d.ts +4 -3
- package/composables/recorder/index.mjs +2 -1
- package/index.css +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import type { UploadChangeParam, UploadFile } from 'ant-design-vue';
|
|
2
2
|
import type { AttachmentsProps } from 'ant-design-x-vue';
|
|
3
|
+
import type { AttachmentsRef } from 'ant-design-x-vue/dist/typings/attachments/interface';
|
|
4
|
+
import type { Ref } from 'vue';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
fileList: {
|
|
7
|
+
type: import("vue").PropType<UploadFile<any>[]>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
action: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
4
14
|
modelValue: {
|
|
5
15
|
type: StringConstructor;
|
|
6
16
|
default: string;
|
|
@@ -11,60 +21,27 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
21
|
};
|
|
12
22
|
}>, {
|
|
13
23
|
actionsRender: (_: any, info: any) => JSX.Element;
|
|
14
|
-
headerOpen:
|
|
24
|
+
headerOpen: Ref<boolean, boolean>;
|
|
15
25
|
attachmentsPlaceholder: (type: "drop" | "inline") => import("ant-design-x-vue/dist/typings/attachments/interface").PlaceholderType;
|
|
16
26
|
handlePasteFile: (file: File) => Promise<void>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
readonly webkitRelativePath: string;
|
|
22
|
-
readonly size: number;
|
|
23
|
-
readonly type: string;
|
|
24
|
-
arrayBuffer: {
|
|
25
|
-
(): Promise<ArrayBuffer>;
|
|
26
|
-
(): Promise<ArrayBuffer>;
|
|
27
|
-
};
|
|
28
|
-
slice: {
|
|
29
|
-
(start?: number, end?: number, contentType?: string): Blob;
|
|
30
|
-
(start?: number, end?: number, contentType?: string): Blob;
|
|
31
|
-
};
|
|
32
|
-
stream: {
|
|
33
|
-
(): ReadableStream<Uint8Array>;
|
|
34
|
-
(): NodeJS.ReadableStream;
|
|
35
|
-
};
|
|
36
|
-
text: {
|
|
37
|
-
(): Promise<string>;
|
|
38
|
-
(): Promise<string>;
|
|
39
|
-
};
|
|
40
|
-
}[], File[] | {
|
|
41
|
-
readonly lastModified: number;
|
|
42
|
-
readonly name: string;
|
|
43
|
-
readonly webkitRelativePath: string;
|
|
44
|
-
readonly size: number;
|
|
45
|
-
readonly type: string;
|
|
46
|
-
arrayBuffer: {
|
|
47
|
-
(): Promise<ArrayBuffer>;
|
|
48
|
-
(): Promise<ArrayBuffer>;
|
|
49
|
-
};
|
|
50
|
-
slice: {
|
|
51
|
-
(start?: number, end?: number, contentType?: string): Blob;
|
|
52
|
-
(start?: number, end?: number, contentType?: string): Blob;
|
|
53
|
-
};
|
|
54
|
-
stream: {
|
|
55
|
-
(): ReadableStream<Uint8Array>;
|
|
56
|
-
(): NodeJS.ReadableStream;
|
|
57
|
-
};
|
|
58
|
-
text: {
|
|
59
|
-
(): Promise<string>;
|
|
60
|
-
(): Promise<string>;
|
|
61
|
-
};
|
|
62
|
-
}[]>;
|
|
27
|
+
attachmentsRef: Ref<AttachmentsRef, AttachmentsRef>;
|
|
28
|
+
theFileList: import("vue").WritableComputedRef<UploadFile<any>[], UploadFile<any>[]>;
|
|
29
|
+
handleChange: (e: UploadChangeParam<UploadFile>) => void;
|
|
30
|
+
attachmentWrapResolve: import("@vunk/core").AnyFunc;
|
|
63
31
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
'update:fileList': (_: UploadFile<any>[]) => boolean;
|
|
64
33
|
'update:modelValue': (_: string) => boolean;
|
|
65
34
|
submit: (_: string) => boolean;
|
|
66
35
|
cancel: any;
|
|
67
36
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
fileList: {
|
|
38
|
+
type: import("vue").PropType<UploadFile<any>[]>;
|
|
39
|
+
default: any;
|
|
40
|
+
};
|
|
41
|
+
action: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
68
45
|
modelValue: {
|
|
69
46
|
type: StringConstructor;
|
|
70
47
|
default: string;
|
|
@@ -77,9 +54,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
54
|
"onUpdate:modelValue"?: (_: string) => any;
|
|
78
55
|
onSubmit?: (_: string) => any;
|
|
79
56
|
onCancel?: (...args: any[] | unknown[]) => any;
|
|
57
|
+
"onUpdate:fileList"?: (_: UploadFile<any>[]) => any;
|
|
80
58
|
}>, {
|
|
81
59
|
modelValue: string;
|
|
82
60
|
loading: boolean;
|
|
61
|
+
action: string;
|
|
62
|
+
fileList: UploadFile<any>[];
|
|
83
63
|
}, {}, {
|
|
84
64
|
Sender: {
|
|
85
65
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("ant-design-x-vue").SenderProps> & Readonly<{
|
|
@@ -132,6 +112,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
132
112
|
SendButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
133
113
|
ClearButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
114
|
LoadingButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
|
+
SpeechButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
116
|
};
|
|
136
117
|
};
|
|
137
118
|
}): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -153,6 +134,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
134
|
SendButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
154
135
|
ClearButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
155
136
|
LoadingButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
137
|
+
SpeechButton: import("vue").DefineComponent<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/sender/interface").AntdButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
156
138
|
};
|
|
157
139
|
};
|
|
158
140
|
}): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -439,7 +421,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
439
421
|
};
|
|
440
422
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
441
423
|
};
|
|
442
|
-
SenderHeader: never;
|
|
443
424
|
Attachments: {
|
|
444
425
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<AttachmentsProps> & Readonly<{}>, {
|
|
445
426
|
nativeElement: HTMLDivElement;
|
|
@@ -480,5 +461,272 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
480
461
|
nativeElement: Readonly<import("vue").ShallowRef<HTMLDivElement, HTMLDivElement>>;
|
|
481
462
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("ant-design-x-vue/dist/typings/attachments/interface").FileListCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
482
463
|
};
|
|
464
|
+
SenderHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
465
|
+
modelValue: {
|
|
466
|
+
type: BooleanConstructor;
|
|
467
|
+
default: boolean;
|
|
468
|
+
};
|
|
469
|
+
title: {
|
|
470
|
+
type: StringConstructor;
|
|
471
|
+
default: string;
|
|
472
|
+
};
|
|
473
|
+
contentRef: {
|
|
474
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
475
|
+
default: import("@vunk/shared").AnyFunc;
|
|
476
|
+
};
|
|
477
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
478
|
+
'update:modelValue': any;
|
|
479
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
480
|
+
modelValue: {
|
|
481
|
+
type: BooleanConstructor;
|
|
482
|
+
default: boolean;
|
|
483
|
+
};
|
|
484
|
+
title: {
|
|
485
|
+
type: StringConstructor;
|
|
486
|
+
default: string;
|
|
487
|
+
};
|
|
488
|
+
contentRef: {
|
|
489
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
490
|
+
default: import("@vunk/shared").AnyFunc;
|
|
491
|
+
};
|
|
492
|
+
}>> & Readonly<{
|
|
493
|
+
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
494
|
+
}>, {
|
|
495
|
+
modelValue: boolean;
|
|
496
|
+
title: string;
|
|
497
|
+
contentRef: import("@vunk/shared").AnyFunc;
|
|
498
|
+
}, {}, {
|
|
499
|
+
ElCollapseTransition: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
500
|
+
ns: {
|
|
501
|
+
namespace: import("vue").ComputedRef<string>;
|
|
502
|
+
b: (blockSuffix?: string) => string;
|
|
503
|
+
e: (element?: string) => string;
|
|
504
|
+
m: (modifier?: string) => string;
|
|
505
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
506
|
+
em: (element?: string, modifier?: string) => string;
|
|
507
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
508
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
509
|
+
is: {
|
|
510
|
+
(name: string, state: boolean): string;
|
|
511
|
+
(name: string): string;
|
|
512
|
+
};
|
|
513
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
514
|
+
cssVarName: (name: string) => string;
|
|
515
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
516
|
+
cssVarBlockName: (name: string) => string;
|
|
517
|
+
};
|
|
518
|
+
reset: (el: import("vue").RendererElement) => void;
|
|
519
|
+
on: {
|
|
520
|
+
beforeEnter(el: import("vue").RendererElement): void;
|
|
521
|
+
enter(el: import("vue").RendererElement): void;
|
|
522
|
+
afterEnter(el: import("vue").RendererElement): void;
|
|
523
|
+
enterCancelled(el: import("vue").RendererElement): void;
|
|
524
|
+
beforeLeave(el: import("vue").RendererElement): void;
|
|
525
|
+
leave(el: import("vue").RendererElement): void;
|
|
526
|
+
afterLeave(el: import("vue").RendererElement): void;
|
|
527
|
+
leaveCancelled(el: import("vue").RendererElement): void;
|
|
528
|
+
};
|
|
529
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
530
|
+
AntButton: {
|
|
531
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
532
|
+
prefixCls: StringConstructor;
|
|
533
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
534
|
+
htmlType: {
|
|
535
|
+
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
536
|
+
default: string;
|
|
537
|
+
};
|
|
538
|
+
shape: {
|
|
539
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
540
|
+
};
|
|
541
|
+
size: {
|
|
542
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
543
|
+
};
|
|
544
|
+
loading: {
|
|
545
|
+
type: import("vue").PropType<boolean | {
|
|
546
|
+
delay?: number;
|
|
547
|
+
}>;
|
|
548
|
+
default: () => boolean | {
|
|
549
|
+
delay?: number;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
disabled: {
|
|
553
|
+
type: BooleanConstructor;
|
|
554
|
+
default: any;
|
|
555
|
+
};
|
|
556
|
+
ghost: {
|
|
557
|
+
type: BooleanConstructor;
|
|
558
|
+
default: any;
|
|
559
|
+
};
|
|
560
|
+
block: {
|
|
561
|
+
type: BooleanConstructor;
|
|
562
|
+
default: any;
|
|
563
|
+
};
|
|
564
|
+
danger: {
|
|
565
|
+
type: BooleanConstructor;
|
|
566
|
+
default: any;
|
|
567
|
+
};
|
|
568
|
+
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
569
|
+
href: StringConstructor;
|
|
570
|
+
target: StringConstructor;
|
|
571
|
+
title: StringConstructor;
|
|
572
|
+
onClick: {
|
|
573
|
+
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
574
|
+
};
|
|
575
|
+
onMousedown: {
|
|
576
|
+
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
577
|
+
};
|
|
578
|
+
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
579
|
+
block: boolean;
|
|
580
|
+
disabled: boolean;
|
|
581
|
+
danger: boolean;
|
|
582
|
+
ghost: boolean;
|
|
583
|
+
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
584
|
+
loading: boolean | {
|
|
585
|
+
delay?: number;
|
|
586
|
+
};
|
|
587
|
+
}, true, {}, import("ant-design-vue/es/_util/type").CustomSlotsType<{
|
|
588
|
+
icon: any;
|
|
589
|
+
default: any;
|
|
590
|
+
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
591
|
+
P: {};
|
|
592
|
+
B: {};
|
|
593
|
+
D: {};
|
|
594
|
+
C: {};
|
|
595
|
+
M: {};
|
|
596
|
+
Defaults: {};
|
|
597
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
598
|
+
prefixCls: StringConstructor;
|
|
599
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
600
|
+
htmlType: {
|
|
601
|
+
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
602
|
+
default: string;
|
|
603
|
+
};
|
|
604
|
+
shape: {
|
|
605
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
606
|
+
};
|
|
607
|
+
size: {
|
|
608
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
609
|
+
};
|
|
610
|
+
loading: {
|
|
611
|
+
type: import("vue").PropType<boolean | {
|
|
612
|
+
delay?: number;
|
|
613
|
+
}>;
|
|
614
|
+
default: () => boolean | {
|
|
615
|
+
delay?: number;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
disabled: {
|
|
619
|
+
type: BooleanConstructor;
|
|
620
|
+
default: any;
|
|
621
|
+
};
|
|
622
|
+
ghost: {
|
|
623
|
+
type: BooleanConstructor;
|
|
624
|
+
default: any;
|
|
625
|
+
};
|
|
626
|
+
block: {
|
|
627
|
+
type: BooleanConstructor;
|
|
628
|
+
default: any;
|
|
629
|
+
};
|
|
630
|
+
danger: {
|
|
631
|
+
type: BooleanConstructor;
|
|
632
|
+
default: any;
|
|
633
|
+
};
|
|
634
|
+
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
635
|
+
href: StringConstructor;
|
|
636
|
+
target: StringConstructor;
|
|
637
|
+
title: StringConstructor;
|
|
638
|
+
onClick: {
|
|
639
|
+
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
640
|
+
};
|
|
641
|
+
onMousedown: {
|
|
642
|
+
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
643
|
+
};
|
|
644
|
+
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, {
|
|
645
|
+
block: boolean;
|
|
646
|
+
disabled: boolean;
|
|
647
|
+
danger: boolean;
|
|
648
|
+
ghost: boolean;
|
|
649
|
+
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
650
|
+
loading: boolean | {
|
|
651
|
+
delay?: number;
|
|
652
|
+
};
|
|
653
|
+
}>;
|
|
654
|
+
__isFragment?: never;
|
|
655
|
+
__isTeleport?: never;
|
|
656
|
+
__isSuspense?: never;
|
|
657
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
658
|
+
prefixCls: StringConstructor;
|
|
659
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
660
|
+
htmlType: {
|
|
661
|
+
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
662
|
+
default: string;
|
|
663
|
+
};
|
|
664
|
+
shape: {
|
|
665
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
666
|
+
};
|
|
667
|
+
size: {
|
|
668
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
669
|
+
};
|
|
670
|
+
loading: {
|
|
671
|
+
type: import("vue").PropType<boolean | {
|
|
672
|
+
delay?: number;
|
|
673
|
+
}>;
|
|
674
|
+
default: () => boolean | {
|
|
675
|
+
delay?: number;
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
disabled: {
|
|
679
|
+
type: BooleanConstructor;
|
|
680
|
+
default: any;
|
|
681
|
+
};
|
|
682
|
+
ghost: {
|
|
683
|
+
type: BooleanConstructor;
|
|
684
|
+
default: any;
|
|
685
|
+
};
|
|
686
|
+
block: {
|
|
687
|
+
type: BooleanConstructor;
|
|
688
|
+
default: any;
|
|
689
|
+
};
|
|
690
|
+
danger: {
|
|
691
|
+
type: BooleanConstructor;
|
|
692
|
+
default: any;
|
|
693
|
+
};
|
|
694
|
+
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
695
|
+
href: StringConstructor;
|
|
696
|
+
target: StringConstructor;
|
|
697
|
+
title: StringConstructor;
|
|
698
|
+
onClick: {
|
|
699
|
+
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
700
|
+
};
|
|
701
|
+
onMousedown: {
|
|
702
|
+
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
703
|
+
};
|
|
704
|
+
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
705
|
+
block: boolean;
|
|
706
|
+
disabled: boolean;
|
|
707
|
+
danger: boolean;
|
|
708
|
+
ghost: boolean;
|
|
709
|
+
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
710
|
+
loading: boolean | {
|
|
711
|
+
delay?: number;
|
|
712
|
+
};
|
|
713
|
+
}, {}, string, import("ant-design-vue/es/_util/type").CustomSlotsType<{
|
|
714
|
+
icon: any;
|
|
715
|
+
default: any;
|
|
716
|
+
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & {
|
|
717
|
+
readonly Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
718
|
+
prefixCls: StringConstructor;
|
|
719
|
+
size: {
|
|
720
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
721
|
+
};
|
|
722
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
723
|
+
prefixCls: StringConstructor;
|
|
724
|
+
size: {
|
|
725
|
+
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
726
|
+
};
|
|
727
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
728
|
+
};
|
|
729
|
+
CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
|
|
730
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
483
731
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
484
732
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
|
2
2
|
import { useRecorder } from '@vunk/plus/composables/recorder';
|
|
3
3
|
import { Button } from 'ant-design-vue';
|
|
4
4
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
5
|
-
import { A as AudioMutedOutlined,
|
|
5
|
+
import { A as AudioMutedOutlined, b as AudioOutlined } from '../SendOutlined.mjs';
|
|
6
6
|
|
|
7
7
|
const props = {
|
|
8
8
|
disabled: {
|
|
@@ -15,6 +15,41 @@ const emits = {
|
|
|
15
15
|
start: null
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
const SIZE$1 = 1e3;
|
|
19
|
+
const STROKE_WIDTH = 50;
|
|
20
|
+
const CIRCLE_RADIUS = 200;
|
|
21
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
22
|
+
name: "AXSenderLoadingIcon",
|
|
23
|
+
setup() {
|
|
24
|
+
return () => {
|
|
25
|
+
return createVNode("svg", {
|
|
26
|
+
"color": "currentColor",
|
|
27
|
+
"viewBox": `0 0 ${SIZE$1} ${SIZE$1}`,
|
|
28
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
29
|
+
"xmlnsXlink": "http://www.w3.org/1999/xlink"
|
|
30
|
+
}, [createVNode("title", null, [createTextVNode("Speech Loading")]), createVNode("circle", {
|
|
31
|
+
"cx": SIZE$1 / 2,
|
|
32
|
+
"cy": SIZE$1 / 2,
|
|
33
|
+
"r": CIRCLE_RADIUS,
|
|
34
|
+
"fill": "none",
|
|
35
|
+
"stroke": "currentColor",
|
|
36
|
+
"stroke-width": STROKE_WIDTH,
|
|
37
|
+
"stroke-linecap": "round",
|
|
38
|
+
"stroke-dasharray": `${Math.PI * CIRCLE_RADIUS * 0.75} ${Math.PI * CIRCLE_RADIUS * 0.25}`
|
|
39
|
+
}, [createVNode("animateTransform", {
|
|
40
|
+
"attributeName": "transform",
|
|
41
|
+
"type": "rotate",
|
|
42
|
+
"from": `0 ${SIZE$1 / 2} ${SIZE$1 / 2}`,
|
|
43
|
+
"to": `360 ${SIZE$1 / 2} ${SIZE$1 / 2}`,
|
|
44
|
+
"dur": "1s",
|
|
45
|
+
"repeatCount": "indefinite"
|
|
46
|
+
}, null)])]);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
var LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/LoadingIcon.vue"]]);
|
|
52
|
+
|
|
18
53
|
const SIZE = 1e3;
|
|
19
54
|
const COUNT = 4;
|
|
20
55
|
const RECT_WIDTH = 140;
|
|
@@ -99,9 +134,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
134
|
};
|
|
100
135
|
const iconRender = () => {
|
|
101
136
|
if (props2.disabled) return createVNode(AudioMutedOutlined, null, null);
|
|
102
|
-
if (opening.value) return createVNode(
|
|
103
|
-
"spin": true
|
|
104
|
-
}, null);
|
|
137
|
+
if (opening.value) return createVNode(LoadingIcon, null, null);
|
|
105
138
|
if (recording.value) {
|
|
106
139
|
return createVNode(RecordingIcon, {
|
|
107
140
|
"class": "vk-speech-button-recording-icon"
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _VkTableColumnsElCtx, VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
2
2
|
import { useElBreakpoints } from '@vunk/plus/composables/el-breakpoints';
|
|
3
3
|
import { VkDuplexCalc } from '@vunk/core';
|
|
4
4
|
import { useSizeProp, paginationProps, paginationEmits, ElPagination, ElTable } from 'element-plus';
|
|
5
5
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, createCommentVNode } from 'vue';
|
|
6
|
-
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
7
6
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
8
|
-
import {
|
|
7
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
9
8
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
10
9
|
|
|
11
10
|
const tableProps$1 = {
|
|
12
11
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* @description table data
|
|
13
|
+
*/
|
|
15
14
|
data: {
|
|
16
15
|
type: Array,
|
|
17
16
|
default: () => []
|
|
@@ -262,7 +261,7 @@ const props = {
|
|
|
262
261
|
default: 1
|
|
263
262
|
},
|
|
264
263
|
/**
|
|
265
|
-
* @description 表示偏移量 v-model:start 和 v-model:currentPage 二选一
|
|
264
|
+
* @description 表示偏移量 v-model:start 和 v-model:currentPage 二选一
|
|
266
265
|
*/
|
|
267
266
|
start: {
|
|
268
267
|
type: Number,
|
|
@@ -331,7 +330,7 @@ var _sfc_main = defineComponent({
|
|
|
331
330
|
const paginationOnEmits = createPaginationOnEmits(emit, [
|
|
332
331
|
"update:current-page"
|
|
333
332
|
]);
|
|
334
|
-
const columnsProps = _VkTableColumnsElCtx
|
|
333
|
+
const columnsProps = _VkTableColumnsElCtx.createTableColumnBindProps(props2);
|
|
335
334
|
const tableProps = createTableBindProps(props2);
|
|
336
335
|
const tableOnEmits = createElTableOnEmits(emit);
|
|
337
336
|
const { isMobile } = useElBreakpoints();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { AnyFunc } from '@vunk/core';
|
|
2
|
+
import type { CSSProperties, PropType } from 'vue';
|
|
3
|
+
import type { Column } from './types';
|
|
4
4
|
export declare const createPaginationBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"small", keyof T2> | Extract<"background", keyof T2> | Extract<"disabled", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"pageSize", keyof T2> | Extract<"defaultPageSize", keyof T2> | Extract<"total", keyof T2> | Extract<"pageCount", keyof T2> | Extract<"pagerCount", keyof T2> | Extract<"currentPage", keyof T2> | Extract<"defaultCurrentPage", keyof T2> | Extract<"layout", keyof T2> | Extract<"pageSizes", keyof T2> | Extract<"prevText", keyof T2> | Extract<"prevIcon", keyof T2> | Extract<"nextText", keyof T2> | Extract<"nextIcon", keyof T2> | Extract<"hideOnSinglePage", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"small", keyof T2>, KE> | Exclude<Extract<"background", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"pageSize", keyof T2>, KE> | Exclude<Extract<"defaultPageSize", keyof T2>, KE> | Exclude<Extract<"total", keyof T2>, KE> | Exclude<Extract<"pageCount", keyof T2>, KE> | Exclude<Extract<"pagerCount", keyof T2>, KE> | Exclude<Extract<"currentPage", keyof T2>, KE> | Exclude<Extract<"defaultCurrentPage", keyof T2>, KE> | Exclude<Extract<"layout", keyof T2>, KE> | Exclude<Extract<"pageSizes", keyof T2>, KE> | Exclude<Extract<"prevText", keyof T2>, KE> | Exclude<Extract<"prevIcon", keyof T2>, KE> | Exclude<Extract<"nextText", keyof T2>, KE> | Exclude<Extract<"nextIcon", keyof T2>, KE> | Exclude<Extract<"hideOnSinglePage", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"small", keyof T2> | Extract<"background", keyof T2> | Extract<"disabled", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"pageSize", keyof T2> | Extract<"defaultPageSize", keyof T2> | Extract<"total", keyof T2> | Extract<"pageCount", keyof T2> | Extract<"pagerCount", keyof T2> | Extract<"currentPage", keyof T2> | Extract<"defaultCurrentPage", keyof T2> | Extract<"layout", keyof T2> | Extract<"pageSizes", keyof T2> | Extract<"prevText", keyof T2> | Extract<"prevIcon", keyof T2> | Extract<"nextText", keyof T2> | Extract<"nextIcon", keyof T2> | Extract<"hideOnSinglePage", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"small", keyof T2> | Extract<"background", keyof T2> | Extract<"disabled", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"pageSize", keyof T2> | Extract<"defaultPageSize", keyof T2> | Extract<"total", keyof T2> | Extract<"pageCount", keyof T2> | Extract<"pagerCount", keyof T2> | Extract<"currentPage", keyof T2> | Extract<"defaultCurrentPage", keyof T2> | Extract<"layout", keyof T2> | Extract<"pageSizes", keyof T2> | Extract<"prevText", keyof T2> | Extract<"prevIcon", keyof T2> | Extract<"nextText", keyof T2> | Extract<"nextIcon", keyof T2> | Extract<"hideOnSinglePage", keyof T2>]: T2[k]; }[P]; }>;
|
|
5
5
|
export declare const createPaginationOnEmits: <T2 extends AnyFunc, EX extends ("change" | "current-change" | "update:current-page" | "update:page-size" | "size-change" | "prev-click" | "next-click")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"change", KE> | Exclude<"current-change", KE> | Exclude<"update:current-page", KE> | Exclude<"update:page-size", KE> | Exclude<"size-change", KE> | Exclude<"prev-click", KE> | Exclude<"next-click", KE> : "change" | "current-change" | "update:current-page" | "update:page-size" | "size-change" | "prev-click" | "next-click"]: {
|
|
6
6
|
'update:current-page': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { __VkTableColumns } from '@vunk/plus/components/table-columns';
|
|
2
|
+
import type { NormalObject } from '@vunk/core';
|
|
3
3
|
export type Column<T extends NormalObject = any> = __VkTableColumns.Source<T>;
|
|
4
4
|
export {};
|
|
@@ -217,10 +217,9 @@ export declare const props: {
|
|
|
217
217
|
prop: StringConstructor;
|
|
218
218
|
minWidth: {
|
|
219
219
|
type: (NumberConstructor | StringConstructor)[];
|
|
220
|
-
/**
|
|
220
|
+
default: string; /**
|
|
221
221
|
* 允许多个
|
|
222
222
|
*/
|
|
223
|
-
default: string;
|
|
224
223
|
};
|
|
225
224
|
renderHeader: PropType<(data: {
|
|
226
225
|
column: import("element-plus").TableColumnCtx<any>;
|
|
@@ -238,7 +237,9 @@ export declare const props: {
|
|
|
238
237
|
type: BooleanConstructor;
|
|
239
238
|
default: boolean;
|
|
240
239
|
};
|
|
241
|
-
columnKey: StringConstructor;
|
|
240
|
+
columnKey: StringConstructor; /**
|
|
241
|
+
* 是否只读
|
|
242
|
+
*/
|
|
242
243
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
243
244
|
fixed: (BooleanConstructor | StringConstructor)[];
|
|
244
245
|
formatter: PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -14419,6 +14419,7 @@ function useRecorder() {
|
|
|
14419
14419
|
() => {
|
|
14420
14420
|
supported.value = true;
|
|
14421
14421
|
opening.value = false;
|
|
14422
|
+
console.log("recorder open success", recorder);
|
|
14422
14423
|
resolve(recorder);
|
|
14423
14424
|
},
|
|
14424
14425
|
() => (msg, isUserNotAllow) => {
|
|
@@ -14455,7 +14456,7 @@ function useRecorder() {
|
|
|
14455
14456
|
} else {
|
|
14456
14457
|
return Promise.race([
|
|
14457
14458
|
open(),
|
|
14458
|
-
sleep(
|
|
14459
|
+
sleep(1500)
|
|
14459
14460
|
]).then((v) => {
|
|
14460
14461
|
if (!v)
|
|
14461
14462
|
return;
|
package/index.css
CHANGED