@vunk/plus 1.7.4 → 1.8.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.
Files changed (121) hide show
  1. package/components/bubble-templates/index.mjs +6 -11411
  2. package/components/scrollbar/index.mjs +595 -0
  3. package/package.json +5 -1
  4. package/components/agent-chat-provider/index.d.ts +0 -8
  5. package/components/agent-chat-provider/src/MessageView.d.ts +0 -29
  6. package/components/agent-chat-provider/src/api.d.ts +0 -3
  7. package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
  8. package/components/agent-chat-provider/src/const.d.ts +0 -1
  9. package/components/agent-chat-provider/src/index.vue.d.ts +0 -22
  10. package/components/agent-chat-provider/src/types.d.ts +0 -56
  11. package/components/agent-chat-provider/src/use.d.ts +0 -6
  12. package/components/avatar/index.d.ts +0 -4
  13. package/components/avatar/src/ctx.d.ts +0 -6
  14. package/components/avatar/src/index.vue.d.ts +0 -261
  15. package/components/avatar/src/types.d.ts +0 -1
  16. package/components/broadcasting-markdown/index.d.ts +0 -7
  17. package/components/broadcasting-markdown/src/const.d.ts +0 -13
  18. package/components/broadcasting-markdown/src/ctx.d.ts +0 -126
  19. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -58
  20. package/components/broadcasting-markdown/src/index.vue.d.ts +0 -373
  21. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
  22. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -60
  23. package/components/broadcasting-markdown/src/types.d.ts +0 -26
  24. package/components/broadcasting-markdown/src/use.d.ts +0 -19
  25. package/components/bubble-list/index.d.ts +0 -5
  26. package/components/bubble-list/src/ctx.d.ts +0 -28
  27. package/components/bubble-list/src/index.vue.d.ts +0 -484
  28. package/components/bubble-list/src/types.d.ts +0 -4
  29. package/components/bubble-templates/index.d.ts +0 -5
  30. package/components/bubble-templates/src/core.d.ts +0 -69
  31. package/components/bubble-templates/src/index.vue.d.ts +0 -242
  32. package/components/bubble-templates/src/legacy.vue.d.ts +0 -153
  33. package/components/bubble-templates/src/types.d.ts +0 -45
  34. package/components/chat-independent/index.d.ts +0 -4
  35. package/components/chat-independent/src/const.d.ts +0 -13
  36. package/components/chat-independent/src/ctx.d.ts +0 -21
  37. package/components/chat-independent/src/index.vue.d.ts +0 -2407
  38. package/components/chat-independent/src/types.d.ts +0 -13
  39. package/components/index.d.ts +0 -0
  40. package/components/lottie-animation/index.d.ts +0 -4
  41. package/components/lottie-animation/src/ctx.d.ts +0 -10
  42. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  43. package/components/lottie-animation/src/types.d.ts +0 -4
  44. package/components/metahuman-broadcasting/index.d.ts +0 -5
  45. package/components/metahuman-broadcasting/src/ctx.d.ts +0 -57
  46. package/components/metahuman-broadcasting/src/index.vue.d.ts +0 -826
  47. package/components/metahuman-broadcasting/src/types.d.ts +0 -1
  48. package/components/monaco-editor/index.d.ts +0 -5
  49. package/components/monaco-editor/src/ctx.d.ts +0 -23
  50. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  51. package/components/monaco-editor/src/types.d.ts +0 -1
  52. package/components/monaco-environment/index.d.ts +0 -4
  53. package/components/monaco-environment/src/ctx.d.ts +0 -8
  54. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  55. package/components/monaco-environment/src/types.d.ts +0 -1
  56. package/components/pixi-frame/index.d.ts +0 -11
  57. package/components/pixi-frame/src/apng.vue.d.ts +0 -161
  58. package/components/pixi-frame/src/bitmap.vue.d.ts +0 -158
  59. package/components/pixi-frame/src/core.vue.d.ts +0 -173
  60. package/components/pixi-frame/src/ctx.d.ts +0 -55
  61. package/components/pixi-frame/src/index.vue.d.ts +0 -591
  62. package/components/pixi-frame/src/provider.vue.d.ts +0 -2
  63. package/components/pixi-frame/src/types.d.ts +0 -17
  64. package/components/pixi-frame/src/use.d.ts +0 -16
  65. package/components/pixi-frame/src/useSprite.d.ts +0 -12
  66. package/components/pixi-frame/src/video.vue.d.ts +0 -159
  67. package/components/pixi-frame/src/view.vue.d.ts +0 -29
  68. package/components/recorder-button/index.d.ts +0 -4
  69. package/components/recorder-button/src/ctx.d.ts +0 -41
  70. package/components/recorder-button/src/index.vue.d.ts +0 -489
  71. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  72. package/components/recorder-button/src/types.d.ts +0 -7
  73. package/components/routes-menu-content/index.d.ts +0 -4
  74. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  75. package/components/routes-menu-content/src/index.vue.d.ts +0 -573
  76. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  77. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -408
  78. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  79. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -539
  80. package/components/routes-menu-content/src/types.d.ts +0 -1
  81. package/components/sender/index.d.ts +0 -4
  82. package/components/sender/src/SenderHeader.vue.d.ts +0 -256
  83. package/components/sender/src/ctx.d.ts +0 -64
  84. package/components/sender/src/index.vue.d.ts +0 -765
  85. package/components/sender/src/types.d.ts +0 -1
  86. package/components/speech-button/index.d.ts +0 -4
  87. package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
  88. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  89. package/components/speech-button/src/ctx.d.ts +0 -10
  90. package/components/speech-button/src/index.vue.d.ts +0 -22
  91. package/components/speech-button/src/types.d.ts +0 -1
  92. package/components/table-columns/index.d.ts +0 -5
  93. package/components/table-columns/src/ctx.d.ts +0 -59
  94. package/components/table-columns/src/el-ctx.d.ts +0 -57
  95. package/components/table-columns/src/index.vue.d.ts +0 -132
  96. package/components/table-columns/src/types.d.ts +0 -21
  97. package/components/tables-v1/index.d.ts +0 -5
  98. package/components/tables-v1/src/ctx.d.ts +0 -337
  99. package/components/tables-v1/src/el-ctx.d.ts +0 -262
  100. package/components/tables-v1/src/index.vue.d.ts +0 -3085
  101. package/components/tables-v1/src/types.d.ts +0 -3
  102. package/components/tables-v1-checkbox/index.d.ts +0 -5
  103. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -370
  104. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3972
  105. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  106. package/components/text/index.d.ts +0 -4
  107. package/components/text/src/ctx.d.ts +0 -356
  108. package/components/text/src/index.vue.d.ts +0 -2335
  109. package/components/text/src/types.d.ts +0 -1
  110. package/components/typing-markdown/index.d.ts +0 -4
  111. package/components/typing-markdown/src/core.d.ts +0 -2
  112. package/components/typing-markdown/src/ctx.d.ts +0 -41
  113. package/components/typing-markdown/src/index.vue.d.ts +0 -75
  114. package/components/typing-markdown/src/types.d.ts +0 -1
  115. package/components/vditor/index.d.ts +0 -5
  116. package/components/vditor/src/ctx.d.ts +0 -38
  117. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  118. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  119. package/components/vditor/src/index.vue.d.ts +0 -143
  120. package/components/vditor/src/types.d.ts +0 -9
  121. package/components/vditor/src/use.d.ts +0 -4
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
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;
@@ -1,23 +0,0 @@
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]; };
@@ -1,40 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import VkMonacoEnvironment from './src/index.vue';
2
- export * as __VkMonacoEnvironment from './src/types';
3
- export { VkMonacoEnvironment, };
4
- export default VkMonacoEnvironment;
@@ -1,8 +0,0 @@
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: {};
@@ -1,2 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import VkPixiFrameApng from './src/apng.vue';
2
- import VkPixiFrameBitmap from './src/bitmap.vue';
3
- import VkPixiFrameCore from './src/core.vue';
4
- import VkPixiFrame from './src/index.vue';
5
- import VkPixiFrameProvider from './src/provider.vue';
6
- import VkPixiFrameVideo from './src/video.vue';
7
- import VkPixiFrameView from './src/view.vue';
8
- export * as __VkPixiFrame from './src/types';
9
- export { TickerStatus } from '@vunk/shared/enum';
10
- export { VkPixiFrame, VkPixiFrameApng, VkPixiFrameBitmap, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameVideo, VkPixiFrameView, };
11
- export default VkPixiFrame;
@@ -1,161 +0,0 @@
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: import("vue").PropType<any[]>;
10
- default: () => never[];
11
- };
12
- loop: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- status: {
17
- type: import("vue").PropType<TickerStatus>;
18
- default: TickerStatus;
19
- };
20
- frameRate: {
21
- type: NumberConstructor;
22
- default: number;
23
- };
24
- label: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- resize: {
29
- type: import("vue").PropType<import("./types").Resize>;
30
- default: undefined;
31
- };
32
- prerender: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- visible: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- }>, {
41
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
42
- url: {
43
- type: StringConstructor;
44
- required: true;
45
- };
46
- data: {
47
- type: import("vue").PropType<any[]>;
48
- default: () => never[];
49
- };
50
- loop: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
54
- status: {
55
- type: import("vue").PropType<TickerStatus>;
56
- default: TickerStatus;
57
- };
58
- frameRate: {
59
- type: NumberConstructor;
60
- default: number;
61
- };
62
- label: {
63
- type: StringConstructor;
64
- default: string;
65
- };
66
- resize: {
67
- type: import("vue").PropType<import("./types").Resize>;
68
- default: undefined;
69
- };
70
- prerender: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- visible: {
75
- type: BooleanConstructor;
76
- default: boolean;
77
- };
78
- }>> & Readonly<{
79
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
80
- onSetData?: ((...args: any[]) => any) | undefined;
81
- "onUpdate:data"?: ((...args: any[]) => any) | undefined;
82
- }> & {}>;
83
- emit: ((event: "update:status", ...args: any[]) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
84
- compId: string;
85
- getAlias: (frameIndex: number) => string;
86
- sprite: import("pixi.js").Sprite;
87
- resizeSprite: () => void;
88
- frames: import("vue").Ref<string[], string[]>;
89
- index: import("vue").Ref<number, number>;
90
- isLoaded: import("vue").Ref<boolean, boolean>;
91
- error: import("vue").Ref<string, string>;
92
- textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
93
- timer: number | null;
94
- reusableCanvas: HTMLCanvasElement | null;
95
- reusableCtx: CanvasRenderingContext2D | null;
96
- getReusableCanvas: (width: number, height: number) => {
97
- canvas: HTMLCanvasElement;
98
- ctx: CanvasRenderingContext2D;
99
- };
100
- loadAPNG: (url: string) => Promise<void>;
101
- startFrameLoop: () => void;
102
- play: () => void;
103
- pause: () => void;
104
- stop: () => void;
105
- cleanup: () => Promise<void>;
106
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
107
- 'update:status': null;
108
- 'update:data': null;
109
- setData: null;
110
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
111
- url: {
112
- type: StringConstructor;
113
- required: true;
114
- };
115
- data: {
116
- type: import("vue").PropType<any[]>;
117
- default: () => never[];
118
- };
119
- loop: {
120
- type: BooleanConstructor;
121
- default: boolean;
122
- };
123
- status: {
124
- type: import("vue").PropType<TickerStatus>;
125
- default: TickerStatus;
126
- };
127
- frameRate: {
128
- type: NumberConstructor;
129
- default: number;
130
- };
131
- label: {
132
- type: StringConstructor;
133
- default: string;
134
- };
135
- resize: {
136
- type: import("vue").PropType<import("./types").Resize>;
137
- default: undefined;
138
- };
139
- prerender: {
140
- type: BooleanConstructor;
141
- default: boolean;
142
- };
143
- visible: {
144
- type: BooleanConstructor;
145
- default: boolean;
146
- };
147
- }>> & Readonly<{
148
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
149
- onSetData?: ((...args: any[]) => any) | undefined;
150
- "onUpdate:data"?: ((...args: any[]) => any) | undefined;
151
- }>, {
152
- data: any[];
153
- status: TickerStatus;
154
- label: string;
155
- resize: import("./types").Resize;
156
- visible: boolean;
157
- prerender: boolean;
158
- loop: boolean;
159
- frameRate: number;
160
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
161
- export default _default;
@@ -1,158 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { LoadEvent } from './types';
3
- import { TickerStatus } from '@vunk/shared/enum';
4
- import { Texture } from 'pixi.js';
5
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- data: {
7
- type: PropType<ImageBitmap[]>;
8
- required: true;
9
- };
10
- frameIndex: {
11
- type: NumberConstructor;
12
- };
13
- status: {
14
- type: PropType<TickerStatus>;
15
- default: TickerStatus;
16
- };
17
- url: {
18
- type: StringConstructor;
19
- requierd: false;
20
- };
21
- label: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- resize: {
26
- type: PropType<import("./types").Resize>;
27
- default: undefined;
28
- };
29
- visible: {
30
- type: BooleanConstructor;
31
- default: boolean;
32
- };
33
- prerender: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- frameRate: {
38
- type: NumberConstructor;
39
- default: number;
40
- };
41
- }>, {
42
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
43
- data: {
44
- type: PropType<ImageBitmap[]>;
45
- required: true;
46
- };
47
- frameIndex: {
48
- type: NumberConstructor;
49
- };
50
- status: {
51
- type: PropType<TickerStatus>;
52
- default: TickerStatus;
53
- };
54
- url: {
55
- type: StringConstructor;
56
- requierd: false;
57
- };
58
- label: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- resize: {
63
- type: PropType<import("./types").Resize>;
64
- default: undefined;
65
- };
66
- visible: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
- prerender: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- frameRate: {
75
- type: NumberConstructor;
76
- default: number;
77
- };
78
- }>> & Readonly<{
79
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
80
- onLoad?: ((e: LoadEvent) => any) | undefined;
81
- onSetData?: ((...args: any[]) => any) | undefined;
82
- "onUpdate:data"?: ((...args: any[]) => any) | undefined;
83
- "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
84
- onNotFound?: ((_index: number) => any) | undefined;
85
- }> & {}>;
86
- emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
87
- compId: string;
88
- getAlias: (key: string | number) => string;
89
- sprite: import("pixi.js").Sprite;
90
- resizeSprite: () => void;
91
- application: import("pixi.js").Application<import("pixi.js").Renderer>;
92
- textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
93
- completedIndex: import("vue").Ref<number, number>;
94
- enabledData: import("vue").ComputedRef<ImageBitmap[]>;
95
- index: import("vue").WritableComputedRef<number, number>;
96
- drawFrame: () => void;
97
- play: () => void;
98
- pause: () => void;
99
- stop: () => void;
100
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
101
- load: (e: LoadEvent) => LoadEvent;
102
- 'update:frameIndex': null;
103
- notFound: (_index: number) => true;
104
- 'update:status': null;
105
- 'update:data': null;
106
- setData: null;
107
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
108
- data: {
109
- type: PropType<ImageBitmap[]>;
110
- required: true;
111
- };
112
- frameIndex: {
113
- type: NumberConstructor;
114
- };
115
- status: {
116
- type: PropType<TickerStatus>;
117
- default: TickerStatus;
118
- };
119
- url: {
120
- type: StringConstructor;
121
- requierd: false;
122
- };
123
- label: {
124
- type: StringConstructor;
125
- default: string;
126
- };
127
- resize: {
128
- type: PropType<import("./types").Resize>;
129
- default: undefined;
130
- };
131
- visible: {
132
- type: BooleanConstructor;
133
- default: boolean;
134
- };
135
- prerender: {
136
- type: BooleanConstructor;
137
- default: boolean;
138
- };
139
- frameRate: {
140
- type: NumberConstructor;
141
- default: number;
142
- };
143
- }>> & Readonly<{
144
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
145
- onLoad?: ((e: LoadEvent) => any) | undefined;
146
- onSetData?: ((...args: any[]) => any) | undefined;
147
- "onUpdate:data"?: ((...args: any[]) => any) | undefined;
148
- "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
149
- onNotFound?: ((_index: number) => any) | undefined;
150
- }>, {
151
- status: TickerStatus;
152
- label: string;
153
- resize: import("./types").Resize;
154
- visible: boolean;
155
- prerender: boolean;
156
- frameRate: number;
157
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
158
- export default _default;
@@ -1,173 +0,0 @@
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<Datum[] | string[]>;
8
- required: true;
9
- };
10
- frameIndex: {
11
- type: NumberConstructor;
12
- };
13
- url: {
14
- type: StringConstructor;
15
- requierd: false;
16
- };
17
- loop: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- status: {
22
- type: PropType<TickerStatus>;
23
- default: TickerStatus;
24
- };
25
- frameRate: {
26
- type: NumberConstructor;
27
- default: number;
28
- };
29
- label: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- resize: {
34
- type: PropType<import("./types").Resize>;
35
- default: undefined;
36
- };
37
- prerender: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- visible: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- }>, {
46
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
47
- data: {
48
- type: PropType<Datum[] | string[]>;
49
- required: true;
50
- };
51
- frameIndex: {
52
- type: NumberConstructor;
53
- };
54
- url: {
55
- type: StringConstructor;
56
- requierd: false;
57
- };
58
- loop: {
59
- type: BooleanConstructor;
60
- default: boolean;
61
- };
62
- status: {
63
- type: PropType<TickerStatus>;
64
- default: TickerStatus;
65
- };
66
- frameRate: {
67
- type: NumberConstructor;
68
- default: number;
69
- };
70
- label: {
71
- type: StringConstructor;
72
- default: string;
73
- };
74
- resize: {
75
- type: PropType<import("./types").Resize>;
76
- default: undefined;
77
- };
78
- prerender: {
79
- type: BooleanConstructor;
80
- default: boolean;
81
- };
82
- visible: {
83
- type: BooleanConstructor;
84
- default: boolean;
85
- };
86
- }>> & Readonly<{
87
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
88
- onLoad?: ((e: LoadEvent) => any) | undefined;
89
- onSetData?: ((...args: any[]) => any) | undefined;
90
- "onUpdate:data"?: ((...args: any[]) => any) | undefined;
91
- "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
92
- onNotFound?: ((_index: number) => any) | undefined;
93
- }> & {}>;
94
- emit: ((event: "update:status", ...args: any[]) => void) & ((event: "load", e: LoadEvent) => void) & ((event: "setData", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void) & ((event: "update:frameIndex", ...args: any[]) => void) & ((event: "notFound", _index: number) => void);
95
- compId: string;
96
- getAlias: (key: string | number) => string;
97
- sprite: import("pixi.js").Sprite;
98
- resizeSprite: () => void;
99
- application: import("pixi.js").Application<import("pixi.js").Renderer>;
100
- textureMap: Map<string, Texture<import("pixi.js").TextureSource<any>>>;
101
- completedIndex: import("vue").Ref<number, number>;
102
- enabledData: import("vue").ComputedRef<string[] | Datum[]>;
103
- index: import("vue").WritableComputedRef<number, number>;
104
- animationId: number | null;
105
- lastFrameTime: number;
106
- startFrameLoop: () => void;
107
- play: () => void;
108
- pause: () => void;
109
- stop: () => void;
110
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
111
- load: (e: LoadEvent) => LoadEvent;
112
- 'update:frameIndex': null;
113
- notFound: (_index: number) => true;
114
- 'update:status': null;
115
- 'update:data': null;
116
- setData: null;
117
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
118
- data: {
119
- type: PropType<Datum[] | string[]>;
120
- required: true;
121
- };
122
- frameIndex: {
123
- type: NumberConstructor;
124
- };
125
- url: {
126
- type: StringConstructor;
127
- requierd: false;
128
- };
129
- loop: {
130
- type: BooleanConstructor;
131
- default: boolean;
132
- };
133
- status: {
134
- type: PropType<TickerStatus>;
135
- default: TickerStatus;
136
- };
137
- frameRate: {
138
- type: NumberConstructor;
139
- default: number;
140
- };
141
- label: {
142
- type: StringConstructor;
143
- default: string;
144
- };
145
- resize: {
146
- type: PropType<import("./types").Resize>;
147
- default: undefined;
148
- };
149
- prerender: {
150
- type: BooleanConstructor;
151
- default: boolean;
152
- };
153
- visible: {
154
- type: BooleanConstructor;
155
- default: boolean;
156
- };
157
- }>> & Readonly<{
158
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
159
- onLoad?: ((e: LoadEvent) => any) | undefined;
160
- onSetData?: ((...args: any[]) => any) | undefined;
161
- "onUpdate:data"?: ((...args: any[]) => any) | undefined;
162
- "onUpdate:frameIndex"?: ((...args: any[]) => any) | undefined;
163
- onNotFound?: ((_index: number) => any) | undefined;
164
- }>, {
165
- status: TickerStatus;
166
- label: string;
167
- resize: import("./types").Resize;
168
- visible: boolean;
169
- prerender: boolean;
170
- loop: boolean;
171
- frameRate: number;
172
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
173
- export default _default;
@@ -1,55 +0,0 @@
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: PropType<any[]>;
11
- default: () => never[];
12
- };
13
- /**
14
- * @description 控制动画是否循环播放
15
- */
16
- loop: {
17
- type: BooleanConstructor;
18
- default: boolean;
19
- };
20
- /**
21
- * @description v-model:status 控制动画状态
22
- */
23
- status: {
24
- type: PropType<TickerStatus>;
25
- default: TickerStatus;
26
- };
27
- frameRate: {
28
- type: NumberConstructor;
29
- default: number;
30
- };
31
- label: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- resize: {
36
- type: PropType<Resize>;
37
- default: undefined;
38
- };
39
- /**
40
- * @description 是否在有资源时预渲染第一帧
41
- */
42
- prerender: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- visible: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
50
- };
51
- export declare const emits: {
52
- 'update:status': null;
53
- 'update:data': null;
54
- setData: null;
55
- };