@vunk/plus 1.6.7 → 1.6.9

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 (162) hide show
  1. package/components/SendOutlined.mjs +8 -6
  2. package/components/SharedSystems.mjs +290 -72
  3. package/components/WebGLRenderer.mjs +32 -20
  4. package/components/WebGPURenderer.mjs +48 -10
  5. package/components/agent-chat-provider/index.d.ts +7 -0
  6. package/components/agent-chat-provider/index.mjs +7 -4
  7. package/components/agent-chat-provider/src/api.d.ts +3 -0
  8. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  9. package/components/agent-chat-provider/src/const.d.ts +1 -0
  10. package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
  11. package/components/agent-chat-provider/src/types.d.ts +50 -0
  12. package/components/agent-chat-provider/src/use.d.ts +5 -0
  13. package/components/avatar/index.d.ts +4 -0
  14. package/components/avatar/index.mjs +2 -2
  15. package/components/avatar/src/ctx.d.ts +6 -0
  16. package/components/avatar/src/index.vue.d.ts +180 -0
  17. package/components/avatar/src/types.d.ts +1 -0
  18. package/components/broadcasting-markdown/index.d.ts +7 -0
  19. package/components/broadcasting-markdown/index.mjs +78 -158
  20. package/components/broadcasting-markdown/src/const.d.ts +13 -0
  21. package/components/broadcasting-markdown/src/ctx.d.ts +129 -0
  22. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +104 -0
  23. package/components/broadcasting-markdown/src/index.vue.d.ts +439 -0
  24. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
  25. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +67 -0
  26. package/components/broadcasting-markdown/src/types.d.ts +26 -0
  27. package/components/broadcasting-markdown/src/use.d.ts +21 -0
  28. package/components/browserAll.mjs +333 -562
  29. package/components/bubble-list/index.d.ts +5 -0
  30. package/components/bubble-list/index.mjs +91 -72
  31. package/components/bubble-list/src/ctx.d.ts +32 -0
  32. package/components/bubble-list/src/index.vue.d.ts +810 -0
  33. package/components/bubble-list/src/types.d.ts +4 -0
  34. package/components/bubble-templates/index.d.ts +4 -0
  35. package/components/bubble-templates/index.mjs +83 -68
  36. package/components/bubble-templates/src/index.vue.d.ts +595 -0
  37. package/components/bubble-templates/src/types.d.ts +40 -0
  38. package/components/chat-independent/index.d.ts +4 -0
  39. package/components/chat-independent/index.mjs +136 -115
  40. package/components/chat-independent/src/const.d.ts +13 -0
  41. package/components/chat-independent/src/ctx.d.ts +21 -0
  42. package/components/chat-independent/src/index.vue.d.ts +2429 -0
  43. package/components/chat-independent/src/types.d.ts +13 -0
  44. package/components/colorToUniform.mjs +2 -0
  45. package/components/index.d.ts +0 -0
  46. package/components/index2.mjs +11896 -8381
  47. package/components/init.mjs +1724 -998
  48. package/components/lottie-animation/index.d.ts +4 -0
  49. package/components/lottie-animation/index.mjs +2 -2
  50. package/components/lottie-animation/src/ctx.d.ts +10 -0
  51. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  52. package/components/lottie-animation/src/types.d.ts +4 -0
  53. package/components/metahuman-broadcasting/index.d.ts +5 -0
  54. package/components/metahuman-broadcasting/index.mjs +57 -40
  55. package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
  56. package/components/metahuman-broadcasting/src/index.vue.d.ts +885 -0
  57. package/components/metahuman-broadcasting/src/types.d.ts +1 -0
  58. package/components/monaco-editor/index.d.ts +5 -0
  59. package/components/monaco-editor/index.mjs +2 -2
  60. package/components/monaco-editor/src/ctx.d.ts +23 -0
  61. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  62. package/components/monaco-editor/src/types.d.ts +1 -0
  63. package/components/monaco-environment/index.d.ts +4 -0
  64. package/components/monaco-environment/index.mjs +1 -1
  65. package/components/monaco-environment/src/ctx.d.ts +8 -0
  66. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  67. package/components/monaco-environment/src/types.d.ts +1 -0
  68. package/components/pixi-frame/index.d.ts +11 -0
  69. package/components/pixi-frame/index.mjs +2 -2
  70. package/components/pixi-frame/src/apng.vue.d.ts +161 -0
  71. package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
  72. package/components/pixi-frame/src/core.vue.d.ts +173 -0
  73. package/components/pixi-frame/src/ctx.d.ts +55 -0
  74. package/components/pixi-frame/src/index.vue.d.ts +591 -0
  75. package/components/pixi-frame/src/provider.vue.d.ts +2 -0
  76. package/components/pixi-frame/src/types.d.ts +17 -0
  77. package/components/pixi-frame/src/use.d.ts +16 -0
  78. package/components/pixi-frame/src/useSprite.d.ts +12 -0
  79. package/components/pixi-frame/src/video.vue.d.ts +159 -0
  80. package/components/pixi-frame/src/view.vue.d.ts +29 -0
  81. package/components/recorder-button/index.d.ts +4 -0
  82. package/components/recorder-button/index.mjs +2 -2
  83. package/components/recorder-button/src/ctx.d.ts +41 -0
  84. package/components/recorder-button/src/index.vue.d.ts +333 -0
  85. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  86. package/components/recorder-button/src/types.d.ts +7 -0
  87. package/components/routes-menu-content/index.d.ts +4 -0
  88. package/components/routes-menu-content/index.mjs +5 -5
  89. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  90. package/components/routes-menu-content/src/index.vue.d.ts +350 -0
  91. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  92. package/components/routes-menu-content/src/item/core/index.vue.d.ts +185 -0
  93. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  94. package/components/routes-menu-content/src/item/index.vue.d.ts +316 -0
  95. package/components/routes-menu-content/src/types.d.ts +1 -0
  96. package/components/sender/index.css +0 -8
  97. package/components/sender/index.d.ts +4 -0
  98. package/components/sender/index.mjs +101 -69
  99. package/components/sender/src/SenderHeader.vue.d.ts +270 -0
  100. package/components/sender/src/ctx.d.ts +64 -0
  101. package/components/sender/src/index.vue.d.ts +779 -0
  102. package/components/sender/src/types.d.ts +1 -0
  103. package/components/speech-button/index.d.ts +4 -0
  104. package/components/speech-button/index.mjs +14 -7
  105. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  106. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  107. package/components/speech-button/src/ctx.d.ts +10 -0
  108. package/components/speech-button/src/index.vue.d.ts +22 -0
  109. package/components/speech-button/src/types.d.ts +1 -0
  110. package/components/table-columns/index.d.ts +5 -0
  111. package/components/table-columns/index.mjs +6 -3
  112. package/components/table-columns/src/ctx.d.ts +59 -0
  113. package/components/table-columns/src/el-ctx.d.ts +57 -0
  114. package/components/table-columns/src/index.vue.d.ts +266 -0
  115. package/components/table-columns/src/types.d.ts +21 -0
  116. package/components/tables-v1/index.d.ts +5 -0
  117. package/components/tables-v1/index.mjs +3 -3
  118. package/components/tables-v1/src/ctx.d.ts +280 -0
  119. package/components/tables-v1/src/el-ctx.d.ts +262 -0
  120. package/components/tables-v1/src/index.vue.d.ts +3054 -0
  121. package/components/tables-v1/src/types.d.ts +3 -0
  122. package/components/tables-v1-checkbox/index.d.ts +5 -0
  123. package/components/tables-v1-checkbox/index.mjs +33 -269
  124. package/components/tables-v1-checkbox/src/ctx.d.ts +313 -0
  125. package/components/tables-v1-checkbox/src/index.vue.d.ts +3831 -0
  126. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  127. package/components/text/index.d.ts +4 -0
  128. package/components/text/index.mjs +52 -42
  129. package/components/text/src/ctx.d.ts +341 -0
  130. package/components/text/src/index.vue.d.ts +4593 -0
  131. package/components/text/src/types.d.ts +1 -0
  132. package/components/typing-markdown/index.d.ts +4 -0
  133. package/components/typing-markdown/index.mjs +2 -2
  134. package/components/typing-markdown/src/core.d.ts +2 -0
  135. package/components/typing-markdown/src/ctx.d.ts +41 -0
  136. package/components/typing-markdown/src/index.vue.d.ts +75 -0
  137. package/components/typing-markdown/src/types.d.ts +1 -0
  138. package/components/vditor/index.d.ts +5 -0
  139. package/components/vditor/index.mjs +9 -5
  140. package/components/vditor/src/ctx.d.ts +38 -0
  141. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  142. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  143. package/components/vditor/src/index.vue.d.ts +143 -0
  144. package/components/vditor/src/types.d.ts +9 -0
  145. package/components/vditor/src/use.d.ts +4 -0
  146. package/components/webworkerAll.mjs +1 -1
  147. package/composables/el-breakpoints/index.d.ts +5 -5
  148. package/composables/recorder/index.mjs +191 -288
  149. package/icons/end/index.mjs +3 -3
  150. package/icons/end/src/avatar.d.ts +2 -11
  151. package/icons/end/src/icon.d.ts +2 -56
  152. package/icons/keyboard/index.mjs +3 -3
  153. package/icons/keyboard/src/avatar.d.ts +2 -11
  154. package/icons/keyboard/src/icon.d.ts +2 -56
  155. package/icons/start/index.mjs +3 -3
  156. package/icons/start/src/avatar.d.ts +2 -11
  157. package/icons/start/src/icon.d.ts +2 -56
  158. package/icons/voice/index.mjs +2 -2
  159. package/icons/voice/src/avatar.d.ts +2 -11
  160. package/icons/voice/src/icon.d.ts +2 -56
  161. package/index.css +0 -8
  162. package/package.json +1 -1
@@ -0,0 +1,316 @@
1
+ import type { RouteRecordRaw } from 'vue-router';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ data: {
4
+ type: import("vue").PropType<RouteRecordRaw>;
5
+ default: () => {};
6
+ };
7
+ popperClass: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ basePath: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>, {
16
+ skipRender: symbol;
17
+ onlyData: import("vue").ComputedRef<{
18
+ meta: {
19
+ [x: string]: unknown;
20
+ [x: number]: unknown;
21
+ [x: symbol]: unknown;
22
+ };
23
+ _paths: string[];
24
+ path: string;
25
+ component: import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>);
26
+ components?: never;
27
+ children?: never;
28
+ redirect?: never;
29
+ props?: import("vue-router")._RouteRecordProps;
30
+ alias?: string | string[];
31
+ name?: import("vue-router").RouteRecordNameGeneric;
32
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
33
+ end?: boolean | undefined;
34
+ sensitive?: boolean | undefined;
35
+ strict?: boolean | undefined;
36
+ } | {
37
+ meta: {
38
+ [x: string]: unknown;
39
+ [x: number]: unknown;
40
+ [x: symbol]: unknown;
41
+ };
42
+ _paths: string[];
43
+ path: string;
44
+ component?: (import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>)) | null | undefined;
45
+ components?: never;
46
+ children: RouteRecordRaw[];
47
+ props?: import("vue-router")._RouteRecordProps;
48
+ redirect?: import("vue-router").RouteRecordRedirectOption;
49
+ alias?: string | string[];
50
+ name?: import("vue-router").RouteRecordNameGeneric;
51
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
52
+ end?: boolean | undefined;
53
+ sensitive?: boolean | undefined;
54
+ strict?: boolean | undefined;
55
+ } | {
56
+ meta: {
57
+ [x: string]: unknown;
58
+ [x: number]: unknown;
59
+ [x: symbol]: unknown;
60
+ };
61
+ _paths: string[];
62
+ path: string;
63
+ components: Record<string, import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>)>;
64
+ component?: never;
65
+ children?: never;
66
+ redirect?: never;
67
+ props?: Record<string, import("vue-router")._RouteRecordProps> | boolean;
68
+ alias?: string | string[];
69
+ name?: import("vue-router").RouteRecordNameGeneric;
70
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
71
+ end?: boolean | undefined;
72
+ sensitive?: boolean | undefined;
73
+ strict?: boolean | undefined;
74
+ } | {
75
+ meta: {
76
+ [x: string]: unknown;
77
+ [x: number]: unknown;
78
+ [x: symbol]: unknown;
79
+ };
80
+ _paths: string[];
81
+ path: string;
82
+ components?: Record<string, import("vue-router").RouteComponent | (() => Promise<import("vue-router").RouteComponent>)> | null | undefined;
83
+ component?: never;
84
+ children: RouteRecordRaw[];
85
+ props?: Record<string, import("vue-router")._RouteRecordProps> | boolean;
86
+ redirect?: import("vue-router").RouteRecordRedirectOption;
87
+ alias?: string | string[];
88
+ name?: import("vue-router").RouteRecordNameGeneric;
89
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
90
+ end?: boolean | undefined;
91
+ sensitive?: boolean | undefined;
92
+ strict?: boolean | undefined;
93
+ } | {
94
+ meta: {
95
+ [x: string]: unknown;
96
+ [x: number]: unknown;
97
+ [x: symbol]: unknown;
98
+ };
99
+ _paths: string[];
100
+ path: string;
101
+ redirect: import("vue-router").RouteRecordRedirectOption;
102
+ component?: never;
103
+ components?: never;
104
+ props?: never;
105
+ alias?: string | string[];
106
+ name?: import("vue-router").RouteRecordNameGeneric;
107
+ beforeEnter?: import("vue-router").NavigationGuardWithThis<undefined> | import("vue-router").NavigationGuardWithThis<undefined>[];
108
+ children?: RouteRecordRaw[];
109
+ end?: boolean | undefined;
110
+ sensitive?: boolean | undefined;
111
+ strict?: boolean | undefined;
112
+ } | undefined>;
113
+ bindProps: import("vue").ComputedRef<{}>;
114
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
115
+ data: {
116
+ type: import("vue").PropType<RouteRecordRaw>;
117
+ default: () => {};
118
+ };
119
+ popperClass: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ basePath: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ }>> & Readonly<{}>, {
128
+ data: RouteRecordRaw;
129
+ popperClass: string;
130
+ basePath: string;
131
+ }, {}, {
132
+ CoreVue: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
133
+ data: {
134
+ type: import("vue").PropType<RouteRecordRaw>;
135
+ default: () => {};
136
+ };
137
+ popperClass: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ basePath: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ }>, {
146
+ resolveFullPath: typeof import("@vunk/shared/string/url").resolveFullPath;
147
+ hasChildren: import("vue").ComputedRef<boolean>;
148
+ subMenuIndex: import("vue").ComputedRef<string>;
149
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
150
+ data: {
151
+ type: import("vue").PropType<RouteRecordRaw>;
152
+ default: () => {};
153
+ };
154
+ popperClass: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ basePath: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ }>> & Readonly<{}>, {
163
+ data: RouteRecordRaw;
164
+ popperClass: string;
165
+ basePath: string;
166
+ }, {}, {
167
+ ElSubMenu: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
168
+ readonly index: {
169
+ readonly type: import("vue").PropType<string>;
170
+ readonly required: true;
171
+ readonly validator: ((val: unknown) => boolean) | undefined;
172
+ __epPropKey: true;
173
+ };
174
+ readonly showTimeout: NumberConstructor;
175
+ readonly hideTimeout: NumberConstructor;
176
+ readonly popperClass: StringConstructor;
177
+ readonly disabled: BooleanConstructor;
178
+ readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
179
+ readonly popperOffset: NumberConstructor;
180
+ readonly expandCloseIcon: {
181
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
182
+ readonly required: false;
183
+ readonly validator: ((val: unknown) => boolean) | undefined;
184
+ __epPropKey: true;
185
+ };
186
+ readonly expandOpenIcon: {
187
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
188
+ readonly required: false;
189
+ readonly validator: ((val: unknown) => boolean) | undefined;
190
+ __epPropKey: true;
191
+ };
192
+ readonly collapseCloseIcon: {
193
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
194
+ readonly required: false;
195
+ readonly validator: ((val: unknown) => boolean) | undefined;
196
+ __epPropKey: true;
197
+ };
198
+ readonly collapseOpenIcon: {
199
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
200
+ readonly required: false;
201
+ readonly validator: ((val: unknown) => boolean) | undefined;
202
+ __epPropKey: true;
203
+ };
204
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
205
+ [key: string]: any;
206
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
207
+ readonly index: {
208
+ readonly type: import("vue").PropType<string>;
209
+ readonly required: true;
210
+ readonly validator: ((val: unknown) => boolean) | undefined;
211
+ __epPropKey: true;
212
+ };
213
+ readonly showTimeout: NumberConstructor;
214
+ readonly hideTimeout: NumberConstructor;
215
+ readonly popperClass: StringConstructor;
216
+ readonly disabled: BooleanConstructor;
217
+ readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
218
+ readonly popperOffset: NumberConstructor;
219
+ readonly expandCloseIcon: {
220
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
221
+ readonly required: false;
222
+ readonly validator: ((val: unknown) => boolean) | undefined;
223
+ __epPropKey: true;
224
+ };
225
+ readonly expandOpenIcon: {
226
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
227
+ readonly required: false;
228
+ readonly validator: ((val: unknown) => boolean) | undefined;
229
+ __epPropKey: true;
230
+ };
231
+ readonly collapseCloseIcon: {
232
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
233
+ readonly required: false;
234
+ readonly validator: ((val: unknown) => boolean) | undefined;
235
+ __epPropKey: true;
236
+ };
237
+ readonly collapseOpenIcon: {
238
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
239
+ readonly required: false;
240
+ readonly validator: ((val: unknown) => boolean) | undefined;
241
+ __epPropKey: true;
242
+ };
243
+ }>>, {
244
+ readonly teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
245
+ readonly disabled: boolean;
246
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
247
+ ElMenuItem: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
248
+ readonly index: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (...args: any[]) => string & {}) | (() => string | null))[], unknown, unknown, null, boolean>;
249
+ readonly route: {
250
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw) | ((new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw))[], unknown, unknown>>;
251
+ readonly required: false;
252
+ readonly validator: ((val: unknown) => boolean) | undefined;
253
+ __epPropKey: true;
254
+ };
255
+ readonly disabled: BooleanConstructor;
256
+ }, {
257
+ parentMenu: import("vue").ComputedRef<import("vue").ComponentInternalInstance>;
258
+ rootMenu: import("element-plus").MenuProvider;
259
+ active: import("vue").ComputedRef<boolean>;
260
+ nsMenu: {
261
+ namespace: import("vue").ComputedRef<string>;
262
+ b: (blockSuffix?: string) => string;
263
+ e: (element?: string | undefined) => string;
264
+ m: (modifier?: string | undefined) => string;
265
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
266
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
267
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
268
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
269
+ is: {
270
+ (name: string, state: boolean | undefined): string;
271
+ (name: string): string;
272
+ };
273
+ cssVar: (object: Record<string, string>) => Record<string, string>;
274
+ cssVarName: (name: string) => string;
275
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
276
+ cssVarBlockName: (name: string) => string;
277
+ };
278
+ nsMenuItem: {
279
+ namespace: import("vue").ComputedRef<string>;
280
+ b: (blockSuffix?: string) => string;
281
+ e: (element?: string | undefined) => string;
282
+ m: (modifier?: string | undefined) => string;
283
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
284
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
285
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
286
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
287
+ is: {
288
+ (name: string, state: boolean | undefined): string;
289
+ (name: string): string;
290
+ };
291
+ cssVar: (object: Record<string, string>) => Record<string, string>;
292
+ cssVarName: (name: string) => string;
293
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
294
+ cssVarBlockName: (name: string) => string;
295
+ };
296
+ handleClick: () => void;
297
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
298
+ click: (item: import("element-plus").MenuItemRegistered) => boolean;
299
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
300
+ readonly index: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (...args: any[]) => string & {}) | (() => string | null))[], unknown, unknown, null, boolean>;
301
+ readonly route: {
302
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw) | ((new (...args: any[]) => import("vue-router").RouteLocationRaw & {}) | (() => import("vue-router").RouteLocationRaw))[], unknown, unknown>>;
303
+ readonly required: false;
304
+ readonly validator: ((val: unknown) => boolean) | undefined;
305
+ __epPropKey: true;
306
+ };
307
+ readonly disabled: BooleanConstructor;
308
+ }>> & {
309
+ onClick?: ((item: import("element-plus").MenuItemRegistered) => any) | undefined;
310
+ }, {
311
+ readonly disabled: boolean;
312
+ readonly index: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string & {}) | (() => string | null) | ((new (...args: any[]) => string & {}) | (() => string | null))[], unknown, unknown>;
313
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
314
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
315
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
316
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -2,14 +2,6 @@
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  }
5
- /* .vk-sender .ant-sender-content{
6
- display: grid;
7
- grid-template-columns: auto 1fr;
8
- }
9
- .vk-sender .ant-sender-actions-list {
10
- margin-top: 1em;
11
- grid-column: 1 / -1;
12
- } */
13
5
  .vk-sender .ant-sender-prefix {
14
6
  align-self: start;
15
7
  }
@@ -0,0 +1,4 @@
1
+ import VkSender from './src/index.vue';
2
+ export * as __VkSender from './src/types';
3
+ export { VkSender, };
4
+ export default VkSender;
@@ -1,10 +1,10 @@
1
- import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, withDirectives, createElementVNode, mergeProps, toDisplayString, createVNode, renderSlot, vShow, computed, ref, nextTick, createSlots, createCommentVNode } from 'vue';
1
+ import { defineComponent, openBlock, createBlock, withCtx, withDirectives, createElementVNode, mergeProps, toDisplayString, createVNode, renderSlot, vShow, useSlots, computed, ref, nextTick, createSlots, createCommentVNode } from 'vue';
2
2
  import { useModelComputed, useDeferred } from '@vunk/core/composables';
3
3
  import { Button } from 'ant-design-vue';
4
4
  import { Attachments, Sender } from 'ant-design-x-vue';
5
5
  import { noop } from '@vunk/shared/function';
6
6
  import { ElCollapseTransition } from 'element-plus';
7
- import { C as CloseOutlined, L as LinkOutlined, b as CloudUploadOutlined, S as SendOutlined } from '../SendOutlined.mjs';
7
+ import { C as CloseOutlined, L as LinkOutlined, a as CloudUploadOutlined, S as SendOutlined } from '../SendOutlined.mjs';
8
8
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
9
9
 
10
10
  const props = {
@@ -55,14 +55,12 @@ const emits = {
55
55
  "cancel": null
56
56
  };
57
57
 
58
- var _sfc_main$1 = /* @__PURE__ */ defineComponent({
59
- name: "AXSenderHeader",
60
- components: {
61
- ElCollapseTransition,
62
- AntButton: Button,
63
- CloseOutlined
58
+ var _sfc_main$1 = /* @__PURE__ */defineComponent({
59
+ ...{
60
+ name: "AXSenderHeader",
61
+ inheritAttrs: false
64
62
  },
65
- inheritAttrs: false,
63
+ __name: "SenderHeader",
66
64
  props: {
67
65
  modelValue: {
68
66
  type: Boolean,
@@ -80,8 +78,26 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
80
78
  emits: {
81
79
  "update:modelValue": null
82
80
  },
83
- setup() {
84
- return {};
81
+ setup(__props, {
82
+ expose: __expose
83
+ }) {
84
+ __expose();
85
+ const __returned__ = {
86
+ get CloseOutlined() {
87
+ return CloseOutlined;
88
+ },
89
+ get AntButton() {
90
+ return Button;
91
+ },
92
+ get ElCollapseTransition() {
93
+ return ElCollapseTransition;
94
+ }
95
+ };
96
+ Object.defineProperty(__returned__, "__isScriptSetup", {
97
+ enumerable: false,
98
+ value: true
99
+ });
100
+ return __returned__;
85
101
  }
86
102
  });
87
103
 
@@ -89,10 +105,7 @@ const _hoisted_1 = { class: "ant-sender-header-header" };
89
105
  const _hoisted_2 = { class: "ant-sender-header-header-title" };
90
106
  const _hoisted_3 = { class: "ant-sender-header-header-close" };
91
107
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
92
- const _component_CloseOutlined = resolveComponent("CloseOutlined");
93
- const _component_AntButton = resolveComponent("AntButton");
94
- const _component_ElCollapseTransition = resolveComponent("ElCollapseTransition");
95
- return openBlock(), createBlock(_component_ElCollapseTransition, null, {
108
+ return openBlock(), createBlock($setup["ElCollapseTransition"], null, {
96
109
  default: withCtx(() => [
97
110
  withDirectives(createElementVNode(
98
111
  "div",
@@ -102,18 +115,18 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
102
115
  createElementVNode(
103
116
  "div",
104
117
  _hoisted_2,
105
- toDisplayString(_ctx.title),
118
+ toDisplayString($props.title),
106
119
  1
107
120
  /* TEXT */
108
121
  ),
109
122
  createElementVNode("div", _hoisted_3, [
110
- createVNode(_component_AntButton, {
123
+ createVNode($setup["AntButton"], {
111
124
  type: "text",
112
125
  size: "small",
113
126
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", false))
114
127
  }, {
115
128
  icon: withCtx(() => [
116
- createVNode(_component_CloseOutlined)
129
+ createVNode($setup["CloseOutlined"])
117
130
  ]),
118
131
  _: 1
119
132
  /* STABLE */
@@ -123,7 +136,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
123
136
  createElementVNode(
124
137
  "div",
125
138
  {
126
- ref: _ctx.contentRef,
139
+ ref: $props.contentRef,
127
140
  class: "ant-sender-header-content"
128
141
  },
129
142
  [
@@ -136,35 +149,35 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
136
149
  16
137
150
  /* FULL_PROPS */
138
151
  ), [
139
- [vShow, _ctx.modelValue]
152
+ [vShow, $props.modelValue]
140
153
  ])
141
154
  ]),
142
155
  _: 3
143
156
  /* FORWARDED */
144
157
  });
145
158
  }
146
- var SenderHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
159
+ var SenderHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/sender/src/SenderHeader.vue"]]);
147
160
 
148
- var _sfc_main = /* @__PURE__ */ defineComponent({
149
- name: "VkSender",
150
- components: {
151
- Sender,
152
- LinkOutlined,
153
- AntButton: Button,
154
- Attachments,
155
- SenderHeader
161
+ var _sfc_main = /* @__PURE__ */defineComponent({
162
+ ...{
163
+ name: "VkSender"
156
164
  },
157
- props,
165
+ __name: "index",
166
+ props: props,
158
167
  emits,
159
- setup(props2, {
160
- emit,
161
- slots
168
+ setup(__props, {
169
+ expose: __expose,
170
+ emit: __emit
162
171
  }) {
163
- const hasAttachments = computed(() => props2.modules.includes("Attachments"));
172
+ __expose();
173
+ const props = __props;
174
+ const emit = __emit;
175
+ const slots = useSlots();
176
+ const hasAttachments = computed(() => props.modules.includes("Attachments"));
164
177
  const loading = useModelComputed({
165
178
  key: "loading",
166
179
  default: false
167
- }, props2, emit);
180
+ }, props, emit);
168
181
  const headerOpen = ref(false);
169
182
  const actionsRender = (_, info) => {
170
183
  const {
@@ -178,7 +191,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
178
191
  return createVNode(SendButton, {
179
192
  "type": "text",
180
193
  "icon": createVNode(SendOutlined, null, null),
181
- "disabled": props2.sendDisabled
194
+ "disabled": props.sendDisabled
182
195
  }, null);
183
196
  };
184
197
  const sendAction = () => loading.value ? loadingRender() : sendRender();
@@ -206,10 +219,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
206
219
  const theFileList = useModelComputed({
207
220
  key: "fileList",
208
221
  default: []
209
- }, props2, emit);
222
+ }, props, emit);
210
223
  const attachmentsRef = ref();
211
224
  const attachmentWrapDef = useDeferred();
212
- const handlePasteFile = async file => {
225
+ const attachmentWrapResolve = attachmentWrapDef.resolve;
226
+ async function handlePasteFile(file) {
213
227
  headerOpen.value = true;
214
228
  const attachmentWrap = await attachmentWrapDef.promise;
215
229
  await nextTick();
@@ -222,73 +236,91 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
222
236
  bubbles: true
223
237
  }));
224
238
  }
225
- };
226
- const handleChange = e => {
239
+ }
240
+ function handleChange(e) {
227
241
  theFileList.value = e.fileList;
228
- };
229
- return {
242
+ }
243
+ const __returned__ = {
244
+ props,
245
+ emit,
246
+ slots,
230
247
  hasAttachments,
231
- actionsRender,
248
+ loading,
232
249
  headerOpen,
250
+ actionsRender,
233
251
  attachmentsPlaceholder,
234
- handlePasteFile,
235
- attachmentsRef,
236
252
  theFileList,
253
+ attachmentsRef,
254
+ attachmentWrapDef,
255
+ attachmentWrapResolve,
256
+ handlePasteFile,
237
257
  handleChange,
238
- attachmentWrapResolve: attachmentWrapDef.resolve
258
+ get LinkOutlined() {
259
+ return LinkOutlined;
260
+ },
261
+ get AntButton() {
262
+ return Button;
263
+ },
264
+ get Attachments() {
265
+ return Attachments;
266
+ },
267
+ get Sender() {
268
+ return Sender;
269
+ },
270
+ SenderHeader
239
271
  };
272
+ Object.defineProperty(__returned__, "__isScriptSetup", {
273
+ enumerable: false,
274
+ value: true
275
+ });
276
+ return __returned__;
240
277
  }
241
278
  });
242
279
 
243
280
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
244
- const _component_Attachments = resolveComponent("Attachments");
245
- const _component_SenderHeader = resolveComponent("SenderHeader");
246
- const _component_LinkOutlined = resolveComponent("LinkOutlined");
247
- const _component_AntButton = resolveComponent("AntButton");
248
- const _component_Sender = resolveComponent("Sender");
249
- return openBlock(), createBlock(_component_Sender, {
281
+ return openBlock(), createBlock($setup["Sender"], {
250
282
  class: "vk-sender",
251
283
  value: _ctx.modelValue,
252
- loading: _ctx.loading,
284
+ loading: $setup.loading,
253
285
  "allow-speech": true,
254
- actions: _ctx.actionsRender,
286
+ actions: $setup.actionsRender,
255
287
  "on-submit": (e) => {
256
288
  !_ctx.sendDisabled && _ctx.$emit("submit", e);
257
289
  },
258
290
  "on-cancel": () => _ctx.$emit("cancel"),
259
291
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:modelValue", $event)),
260
- onPasteFile: _ctx.handlePasteFile
292
+ onPasteFile: $setup.handlePasteFile
261
293
  }, createSlots({
262
294
  header: withCtx(() => [
263
- _ctx.hasAttachments ? (openBlock(), createBlock(_component_SenderHeader, {
295
+ $setup.hasAttachments ? (openBlock(), createBlock($setup["SenderHeader"], {
264
296
  key: 0,
265
- modelValue: _ctx.headerOpen,
266
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.headerOpen = $event),
297
+ modelValue: $setup.headerOpen,
298
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.headerOpen = $event),
267
299
  title: "\u9644\u4EF6",
268
- "content-ref": _ctx.attachmentWrapResolve
300
+ "content-ref": $setup.attachmentWrapResolve
269
301
  }, {
270
302
  default: withCtx(() => [
271
- createVNode(_component_Attachments, {
303
+ createVNode($setup["Attachments"], {
272
304
  ref: "attachmentsRef",
273
- "file-list": _ctx.theFileList,
274
- placeholder: _ctx.attachmentsPlaceholder,
305
+ "file-list": $setup.theFileList,
306
+ placeholder: $setup.attachmentsPlaceholder,
275
307
  action: _ctx.action,
276
308
  multiple: "",
277
- onChange: _ctx.handleChange
278
- }, null, 8, ["file-list", "placeholder", "action", "onChange"])
309
+ onChange: $setup.handleChange
310
+ }, null, 8, ["file-list", "action"])
279
311
  ]),
280
312
  _: 1
281
313
  /* STABLE */
282
314
  }, 8, ["modelValue", "content-ref"])) : createCommentVNode("v-if", true)
283
315
  ]),
284
316
  prefix: withCtx(() => [
285
- _ctx.hasAttachments ? (openBlock(), createBlock(_component_AntButton, {
317
+ $setup.hasAttachments ? (openBlock(), createBlock($setup["AntButton"], {
286
318
  key: 0,
287
319
  type: "text",
288
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.headerOpen = !_ctx.headerOpen)
320
+ onClick: _cache[1] || (_cache[1] = ($event) => $setup.headerOpen = !$setup.headerOpen)
289
321
  }, {
290
322
  icon: withCtx(() => [
291
- createVNode(_component_LinkOutlined)
323
+ createVNode($setup["LinkOutlined"])
292
324
  ]),
293
325
  _: 1
294
326
  /* STABLE */
@@ -304,9 +336,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
304
336
  ]),
305
337
  key: "0"
306
338
  } : void 0
307
- ]), 1032, ["value", "loading", "actions", "on-submit", "on-cancel", "onPasteFile"]);
339
+ ]), 1032, ["value", "loading", "on-submit", "on-cancel"]);
308
340
  }
309
- var VkSender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
341
+ var VkSender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/sender/src/index.vue"]]);
310
342
 
311
343
  var types = /*#__PURE__*/Object.freeze({
312
344
  __proto__: null