@vunk/plus 1.5.0 → 1.5.1

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.
Files changed (111) hide show
  1. package/components/agent-chat-provider/index.d.ts +7 -0
  2. package/components/agent-chat-provider/src/api.d.ts +3 -0
  3. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  4. package/components/agent-chat-provider/src/const.d.ts +1 -0
  5. package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
  6. package/components/agent-chat-provider/src/types.d.ts +43 -0
  7. package/components/agent-chat-provider/src/use.d.ts +29 -0
  8. package/components/avatar/index.d.ts +4 -0
  9. package/components/avatar/src/ctx.d.ts +18 -0
  10. package/components/avatar/src/index.vue.d.ts +121 -0
  11. package/components/avatar/src/types.d.ts +1 -0
  12. package/components/broadcasting-markdown/index.d.ts +7 -0
  13. package/components/broadcasting-markdown/src/const.d.ts +13 -0
  14. package/components/broadcasting-markdown/src/ctx.d.ts +125 -0
  15. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +97 -0
  16. package/components/broadcasting-markdown/src/index.vue.d.ts +424 -0
  17. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
  18. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  19. package/components/broadcasting-markdown/src/types.d.ts +25 -0
  20. package/components/broadcasting-markdown/src/use.d.ts +21 -0
  21. package/components/bubble-list/index.d.ts +5 -0
  22. package/components/bubble-list/src/ctx.d.ts +30 -0
  23. package/components/bubble-list/src/index.vue.d.ts +848 -0
  24. package/components/bubble-list/src/types.d.ts +4 -0
  25. package/components/bubble-templates/index.d.ts +4 -0
  26. package/components/bubble-templates/src/index.vue.d.ts +579 -0
  27. package/components/bubble-templates/src/types.d.ts +40 -0
  28. package/components/chat-independent/index.d.ts +4 -0
  29. package/components/chat-independent/src/const.d.ts +13 -0
  30. package/components/chat-independent/src/ctx.d.ts +20 -0
  31. package/components/chat-independent/src/index.vue.d.ts +2326 -0
  32. package/components/chat-independent/src/types.d.ts +13 -0
  33. package/components/index.d.ts +0 -0
  34. package/components/lottie-animation/index.d.ts +4 -0
  35. package/components/lottie-animation/src/ctx.d.ts +10 -0
  36. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  37. package/components/lottie-animation/src/types.d.ts +4 -0
  38. package/components/monaco-editor/index.d.ts +5 -0
  39. package/components/monaco-editor/src/ctx.d.ts +23 -0
  40. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  41. package/components/monaco-editor/src/types.d.ts +1 -0
  42. package/components/monaco-environment/index.d.ts +4 -0
  43. package/components/monaco-environment/src/ctx.d.ts +8 -0
  44. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  45. package/components/monaco-environment/src/types.d.ts +1 -0
  46. package/components/pixi-frame/index.d.ts +10 -0
  47. package/components/pixi-frame/src/apng.vue.d.ts +187 -0
  48. package/components/pixi-frame/src/core.vue.d.ts +164 -0
  49. package/components/pixi-frame/src/ctx.d.ts +64 -0
  50. package/components/pixi-frame/src/index.vue.d.ts +666 -0
  51. package/components/pixi-frame/src/provider.vue.d.ts +2 -0
  52. package/components/pixi-frame/src/types.d.ts +17 -0
  53. package/components/pixi-frame/src/use.d.ts +16 -0
  54. package/components/pixi-frame/src/useSprite.d.ts +11 -0
  55. package/components/pixi-frame/src/video.vue.d.ts +185 -0
  56. package/components/pixi-frame/src/view.vue.d.ts +29 -0
  57. package/components/recorder-button/index.d.ts +4 -0
  58. package/components/recorder-button/src/ctx.d.ts +41 -0
  59. package/components/recorder-button/src/index.vue.d.ts +300 -0
  60. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  61. package/components/recorder-button/src/types.d.ts +7 -0
  62. package/components/routes-menu-content/index.d.ts +4 -0
  63. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  64. package/components/routes-menu-content/src/index.vue.d.ts +472 -0
  65. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  66. package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
  67. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  68. package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
  69. package/components/routes-menu-content/src/types.d.ts +1 -0
  70. package/components/sender/index.d.ts +4 -0
  71. package/components/sender/src/SenderHeader.vue.d.ts +256 -0
  72. package/components/sender/src/ctx.d.ts +62 -0
  73. package/components/sender/src/index.vue.d.ts +787 -0
  74. package/components/sender/src/types.d.ts +1 -0
  75. package/components/speech-button/index.d.ts +4 -0
  76. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  77. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  78. package/components/speech-button/src/ctx.d.ts +10 -0
  79. package/components/speech-button/src/index.vue.d.ts +22 -0
  80. package/components/speech-button/src/types.d.ts +1 -0
  81. package/components/table-columns/index.d.ts +5 -0
  82. package/components/table-columns/src/ctx.d.ts +66 -0
  83. package/components/table-columns/src/el-ctx.d.ts +63 -0
  84. package/components/table-columns/src/index.vue.d.ts +282 -0
  85. package/components/table-columns/src/types.d.ts +21 -0
  86. package/components/tables-v1/index.d.ts +5 -0
  87. package/components/tables-v1/src/ctx.d.ts +288 -0
  88. package/components/tables-v1/src/el-ctx.d.ts +269 -0
  89. package/components/tables-v1/src/index.vue.d.ts +3106 -0
  90. package/components/tables-v1/src/types.d.ts +3 -0
  91. package/components/tables-v1-checkbox/index.d.ts +5 -0
  92. package/components/tables-v1-checkbox/src/ctx.d.ts +325 -0
  93. package/components/tables-v1-checkbox/src/index.vue.d.ts +3898 -0
  94. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  95. package/components/text/index.d.ts +4 -0
  96. package/components/text/src/ctx.d.ts +320 -0
  97. package/components/text/src/index.vue.d.ts +2314 -0
  98. package/components/text/src/types.d.ts +1 -0
  99. package/components/typing-markdown/index.d.ts +4 -0
  100. package/components/typing-markdown/src/core.d.ts +2 -0
  101. package/components/typing-markdown/src/ctx.d.ts +41 -0
  102. package/components/typing-markdown/src/index.vue.d.ts +75 -0
  103. package/components/typing-markdown/src/types.d.ts +1 -0
  104. package/components/vditor/index.d.ts +5 -0
  105. package/components/vditor/src/ctx.d.ts +37 -0
  106. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  107. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  108. package/components/vditor/src/index.vue.d.ts +144 -0
  109. package/components/vditor/src/types.d.ts +9 -0
  110. package/components/vditor/src/use.d.ts +4 -0
  111. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
2
+ import type { __VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markdown';
3
+ import type { __VkRecorderButton } from '@vunk/plus/components/recorder-button';
4
+ export type SpeechToText = __VkRecorderButton.SpeechToText;
5
+ export type TextToSpeech = __VkBroadcastingMarkdown.TextToSpeech;
6
+ /**
7
+ * @description useXChat parser 解析数据
8
+ */
9
+ export type BubbleMessage = __VkAgentChatProvider.BubbleMessage;
10
+ /**
11
+ * @description useXAgent request onSuccess 发送的数据
12
+ */
13
+ export type AgentMessage = __VkAgentChatProvider.AgentMessage;
File without changes
@@ -0,0 +1,4 @@
1
+ import VkLottieAnimation from './src/index.vue';
2
+ export * as __VkLottieAnimation from './src/types';
3
+ export { VkLottieAnimation, };
4
+ export default VkLottieAnimation;
@@ -0,0 +1,10 @@
1
+ import { LoadEvent } from './types';
2
+ export declare const props: {
3
+ path: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ };
8
+ export declare const emits: {
9
+ load: (e: LoadEvent) => LoadEvent;
10
+ };
@@ -0,0 +1,21 @@
1
+ import { Ref } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ path: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ }>, {
8
+ lottieNode: Ref<HTMLDivElement, HTMLDivElement>;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ load: (e: import("./types").LoadEvent) => import("./types").LoadEvent;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ path: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ }>> & Readonly<{
17
+ onLoad?: ((e: import("./types").LoadEvent) => any) | undefined;
18
+ }>, {
19
+ path: string;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { AnimationItem } from 'lottie-web';
2
+ export interface LoadEvent {
3
+ animation: AnimationItem;
4
+ }
@@ -0,0 +1,5 @@
1
+ import VkMonacoEditor from './src/index.vue';
2
+ export * as __VkMonacoEditor from './src/types';
3
+ export * as _VkMonacoEditorCtx from './src/ctx';
4
+ export { VkMonacoEditor, };
5
+ export default VkMonacoEditor;
@@ -0,0 +1,23 @@
1
+ import { PropType } from 'vue';
2
+ import { editor } from 'monaco-editor';
3
+ export declare const props: {
4
+ modelValue: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ defaultOptions: {
9
+ type: PropType<editor.IStandaloneEditorConstructionOptions>;
10
+ default: () => {};
11
+ };
12
+ readOnly: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ };
17
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"modelValue", keyof T2> | Extract<"readOnly", keyof T2> | Extract<"defaultOptions", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"readOnly", keyof T2>, KE> | Exclude<Extract<"defaultOptions", keyof T2>, KE> : Extract<"modelValue", keyof T2> | Extract<"readOnly", keyof T2> | Extract<"defaultOptions", keyof T2>]: { [k in Extract<"modelValue", keyof T2> | Extract<"readOnly", keyof T2> | Extract<"defaultOptions", keyof T2>]: T2[k]; }[P]; }>;
18
+ export declare const emits: {
19
+ 'update:modelValue': null;
20
+ };
21
+ export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "update:modelValue"[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> : "update:modelValue"]: {
22
+ 'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
23
+ }[P]; };
@@ -0,0 +1,40 @@
1
+ import type { Ref } from 'vue';
2
+ import { editor as mEditor } from 'monaco-editor';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ modelValue: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ defaultOptions: {
9
+ type: import("vue").PropType<mEditor.IStandaloneEditorConstructionOptions>;
10
+ default: () => {};
11
+ };
12
+ readOnly: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>, {
17
+ editorNode: Ref<HTMLDivElement, HTMLDivElement>;
18
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ 'update:modelValue': null;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ modelValue: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ defaultOptions: {
26
+ type: import("vue").PropType<mEditor.IStandaloneEditorConstructionOptions>;
27
+ default: () => {};
28
+ };
29
+ readOnly: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }>> & Readonly<{
34
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ modelValue: string;
37
+ readOnly: boolean;
38
+ defaultOptions: mEditor.IStandaloneEditorConstructionOptions;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import VkMonacoEnvironment from './src/index.vue';
2
+ export * as __VkMonacoEnvironment from './src/types';
3
+ export { VkMonacoEnvironment, };
4
+ export default VkMonacoEnvironment;
@@ -0,0 +1,8 @@
1
+ import { PropType } from 'vue';
2
+ export declare const props: {
3
+ modelValue: {
4
+ type: PropType<unknown>;
5
+ default: () => {};
6
+ };
7
+ };
8
+ export declare const emits: {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import VkPixiFrameApng from './src/apng.vue';
2
+ import VkPixiFrameCore from './src/core.vue';
3
+ import VkPixiFrame from './src/index.vue';
4
+ import VkPixiFrameProvider from './src/provider.vue';
5
+ import VkPixiFrameVideo from './src/video.vue';
6
+ import VkPixiFrameView from './src/view.vue';
7
+ export * as __VkPixiFrame from './src/types';
8
+ export { TickerStatus } from '@vunk/shared/enum';
9
+ export { VkPixiFrame, VkPixiFrameApng, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameVideo, VkPixiFrameView, };
10
+ export default VkPixiFrame;
@@ -0,0 +1,187 @@
1
+ import type { Texture } from 'pixi.js';
2
+ import { TickerStatus } from '@vunk/shared/enum';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ url: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ data: {
9
+ type: {
10
+ (arrayLength: number): string[];
11
+ (...items: string[]): string[];
12
+ new (arrayLength: number): string[];
13
+ new (...items: string[]): string[];
14
+ isArray(arg: any): arg is any[];
15
+ readonly prototype: any[];
16
+ from<T>(arrayLike: ArrayLike<T>): T[];
17
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
18
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
19
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
20
+ of<T_4>(...items: T_4[]): T_4[];
21
+ readonly [Symbol.species]: ArrayConstructor;
22
+ };
23
+ default: () => never[];
24
+ };
25
+ loop: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ status: {
30
+ type: import("vue").PropType<TickerStatus>;
31
+ default: TickerStatus;
32
+ };
33
+ frameRate: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ label: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ resize: {
42
+ type: import("vue").PropType<import("./types").Resize>;
43
+ default: undefined;
44
+ };
45
+ prerender: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>, {
50
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
51
+ url: {
52
+ type: StringConstructor;
53
+ required: true;
54
+ };
55
+ data: {
56
+ type: {
57
+ (arrayLength: number): string[];
58
+ (...items: string[]): string[];
59
+ new (arrayLength: number): string[];
60
+ new (...items: string[]): string[];
61
+ isArray(arg: any): arg is any[];
62
+ readonly prototype: any[];
63
+ from<T>(arrayLike: ArrayLike<T>): T[];
64
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
65
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
66
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
67
+ of<T_4>(...items: T_4[]): T_4[];
68
+ readonly [Symbol.species]: ArrayConstructor;
69
+ };
70
+ default: () => never[];
71
+ };
72
+ loop: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ status: {
77
+ type: import("vue").PropType<TickerStatus>;
78
+ default: TickerStatus;
79
+ };
80
+ frameRate: {
81
+ type: NumberConstructor;
82
+ default: number;
83
+ };
84
+ label: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ resize: {
89
+ type: import("vue").PropType<import("./types").Resize>;
90
+ default: undefined;
91
+ };
92
+ prerender: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ }>> & Readonly<{
97
+ onSetData?: ((...args: any[]) => any) | undefined;
98
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
99
+ "onUpdate:data"?: ((...args: any[]) => any) | undefined;
100
+ }> & {}>;
101
+ emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
102
+ compId: string;
103
+ getAlias: (frameIndex: number) => string;
104
+ sprite: import("pixi.js").Sprite;
105
+ resizeSprite: () => void;
106
+ frames: import("vue").Ref<string[], string[]>;
107
+ index: import("vue").Ref<number, number>;
108
+ isLoaded: import("vue").Ref<boolean, boolean>;
109
+ error: import("vue").Ref<string, string>;
110
+ textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
111
+ timer: number | null;
112
+ reusableCanvas: HTMLCanvasElement | null;
113
+ reusableCtx: CanvasRenderingContext2D | null;
114
+ getReusableCanvas: (width: number, height: number) => {
115
+ canvas: HTMLCanvasElement;
116
+ ctx: CanvasRenderingContext2D;
117
+ };
118
+ loadAPNG: (url: string) => Promise<void>;
119
+ startFrameLoop: () => void;
120
+ play: () => void;
121
+ pause: () => void;
122
+ stop: () => void;
123
+ cleanup: () => Promise<void>;
124
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
125
+ 'update:status': null;
126
+ 'update:data': null;
127
+ setData: null;
128
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
129
+ url: {
130
+ type: StringConstructor;
131
+ required: true;
132
+ };
133
+ data: {
134
+ type: {
135
+ (arrayLength: number): string[];
136
+ (...items: string[]): string[];
137
+ new (arrayLength: number): string[];
138
+ new (...items: string[]): string[];
139
+ isArray(arg: any): arg is any[];
140
+ readonly prototype: any[];
141
+ from<T>(arrayLike: ArrayLike<T>): T[];
142
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
143
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
144
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
145
+ of<T_4>(...items: T_4[]): T_4[];
146
+ readonly [Symbol.species]: ArrayConstructor;
147
+ };
148
+ default: () => never[];
149
+ };
150
+ loop: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
154
+ status: {
155
+ type: import("vue").PropType<TickerStatus>;
156
+ default: TickerStatus;
157
+ };
158
+ frameRate: {
159
+ type: NumberConstructor;
160
+ default: number;
161
+ };
162
+ label: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ resize: {
167
+ type: import("vue").PropType<import("./types").Resize>;
168
+ default: undefined;
169
+ };
170
+ prerender: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ }>> & Readonly<{
175
+ onSetData?: ((...args: any[]) => any) | undefined;
176
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
177
+ "onUpdate:data"?: ((...args: any[]) => any) | undefined;
178
+ }>, {
179
+ data: string[];
180
+ status: TickerStatus;
181
+ resize: import("./types").Resize;
182
+ label: string;
183
+ prerender: boolean;
184
+ loop: boolean;
185
+ frameRate: number;
186
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
187
+ export default _default;
@@ -0,0 +1,164 @@
1
+ import type { Texture } from 'pixi.js';
2
+ import type { PropType } from 'vue';
3
+ import type { Datum, LoadEvent } from './types';
4
+ import { TickerStatus } from '@vunk/shared/enum';
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ data: {
7
+ type: PropType<string[] | Datum[]>;
8
+ required: true;
9
+ };
10
+ frameIndex: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ url: {
15
+ type: StringConstructor;
16
+ requierd: false;
17
+ };
18
+ loop: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ status: {
23
+ type: PropType<TickerStatus>;
24
+ default: TickerStatus;
25
+ };
26
+ frameRate: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ label: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ resize: {
35
+ type: PropType<import("./types").Resize>;
36
+ default: undefined;
37
+ };
38
+ prerender: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>, {
43
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
44
+ data: {
45
+ type: PropType<string[] | Datum[]>;
46
+ required: true;
47
+ };
48
+ frameIndex: {
49
+ type: NumberConstructor;
50
+ default: number;
51
+ };
52
+ url: {
53
+ type: StringConstructor;
54
+ requierd: false;
55
+ };
56
+ loop: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ status: {
61
+ type: PropType<TickerStatus>;
62
+ default: TickerStatus;
63
+ };
64
+ frameRate: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ label: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ resize: {
73
+ type: PropType<import("./types").Resize>;
74
+ default: undefined;
75
+ };
76
+ prerender: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ }>> & Readonly<{
81
+ onSetData?: ((...args: any[]) => any) | undefined;
82
+ onLoad?: ((e: LoadEvent) => any) | undefined;
83
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
84
+ "onUpdate:data"?: ((...args: any[]) => any) | undefined;
85
+ "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
86
+ onNotFound?: ((_index: number) => any) | undefined;
87
+ }> & {}>;
88
+ emit: ((event: "setData", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
89
+ compId: string;
90
+ getAlias: (key: string | number) => string;
91
+ sprite: import("pixi.js").Sprite;
92
+ resizeSprite: () => void;
93
+ application: import("pixi.js").Application<import("pixi.js").Renderer>;
94
+ textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
95
+ completedIndex: import("vue").Ref<number, number>;
96
+ enabledData: import("vue").ComputedRef<string[] | Datum[]>;
97
+ index: import("vue").WritableComputedRef<number, number>;
98
+ animationId: number | null;
99
+ lastFrameTime: number;
100
+ startFrameLoop: () => void;
101
+ play: () => void;
102
+ pause: () => void;
103
+ stop: () => void;
104
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
105
+ load: (e: LoadEvent) => LoadEvent;
106
+ 'update:frameIndex': null;
107
+ notFound: (_index: number) => true;
108
+ 'update:status': null;
109
+ 'update:data': null;
110
+ setData: null;
111
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
112
+ data: {
113
+ type: PropType<string[] | Datum[]>;
114
+ required: true;
115
+ };
116
+ frameIndex: {
117
+ type: NumberConstructor;
118
+ default: number;
119
+ };
120
+ url: {
121
+ type: StringConstructor;
122
+ requierd: false;
123
+ };
124
+ loop: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ status: {
129
+ type: PropType<TickerStatus>;
130
+ default: TickerStatus;
131
+ };
132
+ frameRate: {
133
+ type: NumberConstructor;
134
+ default: number;
135
+ };
136
+ label: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ };
140
+ resize: {
141
+ type: PropType<import("./types").Resize>;
142
+ default: undefined;
143
+ };
144
+ prerender: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ };
148
+ }>> & Readonly<{
149
+ onSetData?: ((...args: any[]) => any) | undefined;
150
+ onLoad?: ((e: LoadEvent) => any) | undefined;
151
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
152
+ "onUpdate:data"?: ((...args: any[]) => any) | undefined;
153
+ "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
154
+ onNotFound?: ((_index: number) => any) | undefined;
155
+ }>, {
156
+ status: TickerStatus;
157
+ resize: import("./types").Resize;
158
+ label: string;
159
+ prerender: boolean;
160
+ loop: boolean;
161
+ frameRate: number;
162
+ frameIndex: number;
163
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
164
+ export default _default;
@@ -0,0 +1,64 @@
1
+ import type { PropType } from 'vue';
2
+ import type { Resize } from './types';
3
+ import { TickerStatus } from '@vunk/shared/enum';
4
+ export declare const props: {
5
+ url: {
6
+ type: StringConstructor;
7
+ requierd: false;
8
+ };
9
+ data: {
10
+ type: {
11
+ (arrayLength: number): string[];
12
+ (...items: string[]): string[];
13
+ new (arrayLength: number): string[];
14
+ new (...items: string[]): string[];
15
+ isArray(arg: any): arg is any[];
16
+ readonly prototype: any[];
17
+ from<T>(arrayLike: ArrayLike<T>): T[];
18
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
19
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
20
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
21
+ of<T_4>(...items: T_4[]): T_4[];
22
+ readonly [Symbol.species]: ArrayConstructor;
23
+ };
24
+ default: () => never[];
25
+ };
26
+ /**
27
+ * @description 控制动画是否循环播放
28
+ */
29
+ loop: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ /**
34
+ * @description v-model:status 控制动画状态
35
+ */
36
+ status: {
37
+ type: PropType<TickerStatus>;
38
+ default: TickerStatus;
39
+ };
40
+ frameRate: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ label: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ resize: {
49
+ type: PropType<Resize>;
50
+ default: undefined;
51
+ };
52
+ /**
53
+ * @description 是否在有资源时预渲染第一帧
54
+ */
55
+ prerender: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ };
60
+ export declare const emits: {
61
+ 'update:status': null;
62
+ 'update:data': null;
63
+ setData: null;
64
+ };