@vunk/plus 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/components/{SendOutlined.mjs → LinkOutlined.mjs} +36 -54
  2. package/components/agent-chat-provider/index.d.ts +8 -0
  3. package/components/agent-chat-provider/src/MessageView.d.ts +29 -0
  4. package/components/agent-chat-provider/src/api.d.ts +3 -0
  5. package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
  6. package/components/agent-chat-provider/src/const.d.ts +1 -0
  7. package/components/agent-chat-provider/src/index.vue.d.ts +22 -0
  8. package/components/agent-chat-provider/src/types.d.ts +56 -0
  9. package/components/agent-chat-provider/src/use.d.ts +6 -0
  10. package/components/avatar/index.d.ts +4 -0
  11. package/components/avatar/src/ctx.d.ts +6 -0
  12. package/components/avatar/src/index.vue.d.ts +261 -0
  13. package/components/avatar/src/types.d.ts +1 -0
  14. package/components/broadcasting-markdown/index.d.ts +7 -0
  15. package/components/broadcasting-markdown/src/const.d.ts +13 -0
  16. package/components/broadcasting-markdown/src/ctx.d.ts +126 -0
  17. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +58 -0
  18. package/components/broadcasting-markdown/src/index.vue.d.ts +373 -0
  19. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
  20. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
  21. package/components/broadcasting-markdown/src/types.d.ts +26 -0
  22. package/components/broadcasting-markdown/src/use.d.ts +19 -0
  23. package/components/bubble-list/index.d.ts +5 -0
  24. package/components/bubble-list/src/ctx.d.ts +28 -0
  25. package/components/bubble-list/src/index.vue.d.ts +484 -0
  26. package/components/bubble-list/src/types.d.ts +4 -0
  27. package/components/bubble-templates/index.d.ts +5 -0
  28. package/components/bubble-templates/src/core.d.ts +69 -0
  29. package/components/bubble-templates/src/index.vue.d.ts +242 -0
  30. package/components/bubble-templates/src/legacy.vue.d.ts +153 -0
  31. package/components/bubble-templates/src/types.d.ts +45 -0
  32. package/components/chat-independent/index.d.ts +4 -0
  33. package/components/chat-independent/src/const.d.ts +13 -0
  34. package/components/chat-independent/src/ctx.d.ts +21 -0
  35. package/components/chat-independent/src/index.vue.d.ts +2291 -0
  36. package/components/chat-independent/src/types.d.ts +13 -0
  37. package/components/index.d.ts +0 -0
  38. package/components/lottie-animation/index.d.ts +4 -0
  39. package/components/lottie-animation/src/ctx.d.ts +10 -0
  40. package/components/lottie-animation/src/index.vue.d.ts +21 -0
  41. package/components/lottie-animation/src/types.d.ts +4 -0
  42. package/components/metahuman-broadcasting/index.d.ts +5 -0
  43. package/components/metahuman-broadcasting/src/ctx.d.ts +57 -0
  44. package/components/metahuman-broadcasting/src/index.vue.d.ts +826 -0
  45. package/components/metahuman-broadcasting/src/types.d.ts +1 -0
  46. package/components/monaco-editor/index.d.ts +5 -0
  47. package/components/monaco-editor/src/ctx.d.ts +23 -0
  48. package/components/monaco-editor/src/index.vue.d.ts +40 -0
  49. package/components/monaco-editor/src/types.d.ts +1 -0
  50. package/components/monaco-environment/index.d.ts +4 -0
  51. package/components/monaco-environment/src/ctx.d.ts +8 -0
  52. package/components/monaco-environment/src/index.vue.d.ts +2 -0
  53. package/components/monaco-environment/src/types.d.ts +1 -0
  54. package/components/pixi-frame/index.d.ts +11 -0
  55. package/components/pixi-frame/src/apng.vue.d.ts +161 -0
  56. package/components/pixi-frame/src/bitmap.vue.d.ts +158 -0
  57. package/components/pixi-frame/src/core.vue.d.ts +173 -0
  58. package/components/pixi-frame/src/ctx.d.ts +55 -0
  59. package/components/pixi-frame/src/index.vue.d.ts +591 -0
  60. package/components/pixi-frame/src/provider.vue.d.ts +2 -0
  61. package/components/pixi-frame/src/types.d.ts +17 -0
  62. package/components/pixi-frame/src/use.d.ts +16 -0
  63. package/components/pixi-frame/src/useSprite.d.ts +12 -0
  64. package/components/pixi-frame/src/video.vue.d.ts +159 -0
  65. package/components/pixi-frame/src/view.vue.d.ts +29 -0
  66. package/components/recorder-button/index.d.ts +4 -0
  67. package/components/recorder-button/src/ctx.d.ts +41 -0
  68. package/components/recorder-button/src/index.vue.d.ts +489 -0
  69. package/components/recorder-button/src/speech-to-text.d.ts +1 -0
  70. package/components/recorder-button/src/types.d.ts +7 -0
  71. package/components/routes-menu-content/index.d.ts +4 -0
  72. package/components/routes-menu-content/src/ctx.d.ts +17 -0
  73. package/components/routes-menu-content/src/index.vue.d.ts +573 -0
  74. package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
  75. package/components/routes-menu-content/src/item/core/index.vue.d.ts +408 -0
  76. package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
  77. package/components/routes-menu-content/src/item/index.vue.d.ts +539 -0
  78. package/components/routes-menu-content/src/types.d.ts +1 -0
  79. package/components/scrollbar/index.d.ts +4 -0
  80. package/components/scrollbar/src/bar.d.ts +15 -0
  81. package/components/scrollbar/src/bar.vue.d.ts +138 -0
  82. package/components/scrollbar/src/index.vue.d.ts +552 -0
  83. package/components/scrollbar/src/thumb.d.ts +15 -0
  84. package/components/scrollbar/src/thumb.vue.d.ts +97 -0
  85. package/components/scrollbar/src/types.d.ts +1 -0
  86. package/components/scrollbar/src/util.d.ts +3 -0
  87. package/components/sender/index.d.ts +5 -0
  88. package/components/sender/index.mjs +96 -42
  89. package/components/sender/src/SenderHeader.vue.d.ts +256 -0
  90. package/components/sender/src/ctx.d.ts +107 -0
  91. package/components/sender/src/index.vue.d.ts +649 -0
  92. package/components/sender/src/types.d.ts +1 -0
  93. package/components/speech-button/index.d.ts +4 -0
  94. package/components/speech-button/index.mjs +1 -1
  95. package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
  96. package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
  97. package/components/speech-button/src/ctx.d.ts +10 -0
  98. package/components/speech-button/src/index.vue.d.ts +22 -0
  99. package/components/speech-button/src/types.d.ts +1 -0
  100. package/components/table-columns/index.d.ts +5 -0
  101. package/components/table-columns/src/ctx.d.ts +59 -0
  102. package/components/table-columns/src/el-ctx.d.ts +57 -0
  103. package/components/table-columns/src/index.vue.d.ts +132 -0
  104. package/components/table-columns/src/types.d.ts +21 -0
  105. package/components/tables-v1/index.d.ts +5 -0
  106. package/components/tables-v1/src/ctx.d.ts +337 -0
  107. package/components/tables-v1/src/el-ctx.d.ts +262 -0
  108. package/components/tables-v1/src/index.vue.d.ts +3085 -0
  109. package/components/tables-v1/src/types.d.ts +3 -0
  110. package/components/tables-v1-checkbox/index.d.ts +5 -0
  111. package/components/tables-v1-checkbox/src/ctx.d.ts +370 -0
  112. package/components/tables-v1-checkbox/src/index.vue.d.ts +3972 -0
  113. package/components/tables-v1-checkbox/src/types.d.ts +1 -0
  114. package/components/text/index.d.ts +4 -0
  115. package/components/text/src/ctx.d.ts +356 -0
  116. package/components/text/src/index.vue.d.ts +2335 -0
  117. package/components/text/src/types.d.ts +1 -0
  118. package/components/typing-markdown/index.d.ts +4 -0
  119. package/components/typing-markdown/src/core.d.ts +2 -0
  120. package/components/typing-markdown/src/ctx.d.ts +41 -0
  121. package/components/typing-markdown/src/index.vue.d.ts +75 -0
  122. package/components/typing-markdown/src/types.d.ts +1 -0
  123. package/components/vditor/index.d.ts +5 -0
  124. package/components/vditor/src/ctx.d.ts +38 -0
  125. package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
  126. package/components/vditor/src/handle-value.vue.d.ts +18 -0
  127. package/components/vditor/src/index.vue.d.ts +143 -0
  128. package/components/vditor/src/types.d.ts +9 -0
  129. package/components/vditor/src/use.d.ts +4 -0
  130. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ import type { __ExtractPublicPropTypes, ExtractPropTypes } from 'vue';
2
+ import type Thumb from './thumb.vue';
3
+ export declare const thumbProps: {
4
+ vertical: BooleanConstructor;
5
+ size: StringConstructor;
6
+ move: NumberConstructor;
7
+ ratio: {
8
+ type: NumberConstructor;
9
+ required: true;
10
+ };
11
+ always: BooleanConstructor;
12
+ };
13
+ export type ThumbProps = ExtractPropTypes<typeof thumbProps>;
14
+ export type ThumbPropsPublic = __ExtractPublicPropTypes<typeof thumbProps>;
15
+ export type ThumbInstance = InstanceType<typeof Thumb> & unknown;
@@ -0,0 +1,97 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ vertical: BooleanConstructor;
3
+ size: StringConstructor;
4
+ move: NumberConstructor;
5
+ ratio: {
6
+ type: NumberConstructor;
7
+ required: true;
8
+ };
9
+ always: BooleanConstructor;
10
+ }>, {
11
+ props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
+ vertical: BooleanConstructor;
13
+ size: StringConstructor;
14
+ move: NumberConstructor;
15
+ ratio: {
16
+ type: NumberConstructor;
17
+ required: true;
18
+ };
19
+ always: BooleanConstructor;
20
+ }>> & Readonly<{}> & {}>;
21
+ scrollbar: import("element-plus").ScrollbarContext;
22
+ ns: {
23
+ namespace: import("vue").ComputedRef<string>;
24
+ b: (blockSuffix?: string) => string;
25
+ e: (element?: string) => string;
26
+ m: (modifier?: string) => string;
27
+ be: (blockSuffix?: string, element?: string) => string;
28
+ em: (element?: string, modifier?: string) => string;
29
+ bm: (blockSuffix?: string, modifier?: string) => string;
30
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
31
+ is: {
32
+ (name: string, state: boolean | undefined): string;
33
+ (name: string): string;
34
+ };
35
+ cssVar: (object: Record<string, string>) => Record<string, string>;
36
+ cssVarName: (name: string) => string;
37
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
38
+ cssVarBlockName: (name: string) => string;
39
+ };
40
+ instance: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
41
+ thumb: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
42
+ thumbState: import("vue").Ref<{
43
+ X?: number | undefined;
44
+ Y?: number | undefined;
45
+ }, Partial<Record<"X" | "Y", number>> | {
46
+ X?: number | undefined;
47
+ Y?: number | undefined;
48
+ }>;
49
+ visible: import("vue").Ref<boolean, boolean>;
50
+ cursorDown: boolean;
51
+ cursorLeave: boolean;
52
+ baseScrollHeight: number;
53
+ baseScrollWidth: number;
54
+ originalOnSelectStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
55
+ bar: import("vue").ComputedRef<{
56
+ readonly offset: "offsetHeight";
57
+ readonly scroll: "scrollTop";
58
+ readonly scrollSize: "scrollHeight";
59
+ readonly size: "height";
60
+ readonly key: "vertical";
61
+ readonly axis: "Y";
62
+ readonly client: "clientY";
63
+ readonly direction: "top";
64
+ } | {
65
+ readonly offset: "offsetWidth";
66
+ readonly scroll: "scrollLeft";
67
+ readonly scrollSize: "scrollWidth";
68
+ readonly size: "width";
69
+ readonly key: "horizontal";
70
+ readonly axis: "X";
71
+ readonly client: "clientX";
72
+ readonly direction: "left";
73
+ }>;
74
+ thumbStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
75
+ offsetRatio: import("vue").ComputedRef<number>;
76
+ clickThumbHandler: (e: MouseEvent) => void;
77
+ clickTrackHandler: (e: MouseEvent) => void;
78
+ startDrag: (e: MouseEvent) => void;
79
+ mouseMoveDocumentHandler: (e: MouseEvent) => void;
80
+ mouseUpDocumentHandler: () => void;
81
+ mouseMoveScrollbarHandler: () => void;
82
+ mouseLeaveScrollbarHandler: () => void;
83
+ restoreOnselectstart: () => void;
84
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
85
+ vertical: BooleanConstructor;
86
+ size: StringConstructor;
87
+ move: NumberConstructor;
88
+ ratio: {
89
+ type: NumberConstructor;
90
+ required: true;
91
+ };
92
+ always: BooleanConstructor;
93
+ }>> & Readonly<{}>, {
94
+ vertical: boolean;
95
+ always: boolean;
96
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
97
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const isNumber: (val: any) => val is number;
2
+ export declare function isStringNumber(val: string): boolean;
3
+ export declare function addUnit(value?: string | number, defaultUnit?: string): string | undefined;
@@ -0,0 +1,5 @@
1
+ import VkSender from './src/index.vue';
2
+ import VkSenderHeader from './src/SenderHeader.vue';
3
+ export * as __VkSender from './src/types';
4
+ export { VkSender, VkSenderHeader, };
5
+ export default VkSender;
@@ -1,10 +1,10 @@
1
- import { defineComponent, openBlock, createBlock, withCtx, withDirectives, createElementVNode, mergeProps, toDisplayString, createVNode, renderSlot, vShow, useSlots, 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, resolveDynamicComponent } 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, a as CloudUploadOutlined, S as SendOutlined } from '../SendOutlined.mjs';
7
+ import { C as CloseOutlined, L as LinkOutlined, a as CloudUploadOutlined } from '../LinkOutlined.mjs';
8
8
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
9
9
 
10
10
  const props = {
@@ -43,14 +43,53 @@ const props = {
43
43
  type: Array,
44
44
  default: () => []
45
45
  },
46
+ /**
47
+ * @description 非自定义Send Button时,禁用态
48
+ */
46
49
  sendDisabled: {
47
50
  type: Boolean,
48
51
  default: false
52
+ },
53
+ /**
54
+ * @description v-model attachments显隐 在 Attachments 模块存在时有效
55
+ */
56
+ attachmentsVisible: {
57
+ type: Boolean,
58
+ default: void 0
59
+ },
60
+ /**
61
+ * @description 自定义 Send Button
62
+ */
63
+ createSendButton: {
64
+ type: Function,
65
+ default: void 0
66
+ },
67
+ /**
68
+ * @description 自定义 Attachments Button, 在 Attachments 模块存在时有效
69
+ */
70
+ createAttachmentsButton: {
71
+ type: Function,
72
+ default: void 0
73
+ },
74
+ /**
75
+ * @description 调整文本域大小
76
+ */
77
+ autoSize: {
78
+ type: Object,
79
+ default: void 0
80
+ },
81
+ /**
82
+ * @link https://antd-design-x-vue.netlify.app/component/attachments.html
83
+ */
84
+ attachmentsProps: {
85
+ type: Object,
86
+ default: () => ({})
49
87
  }
50
88
  };
51
89
  const emits = {
52
90
  "update:fileList": (_) => true,
53
91
  "update:modelValue": (_) => true,
92
+ "update:headerVisible": (_) => true,
54
93
  "submit": (_) => true,
55
94
  "cancel": null
56
95
  };
@@ -178,30 +217,51 @@ var _sfc_main = /* @__PURE__ */defineComponent({
178
217
  key: "loading",
179
218
  default: false
180
219
  }, props, emit);
181
- const headerOpen = ref(false);
220
+ const headerOpen = useModelComputed({
221
+ key: "attachmentsVisible",
222
+ default: false
223
+ }, props, emit);
224
+ function createSendButtonDefault(components = {}) {
225
+ const {
226
+ SendButton,
227
+ LoadingButton
228
+ } = components;
229
+ return loading.value ? createVNode(LoadingButton, null, null) : createVNode(SendButton, {
230
+ "disabled": props.sendDisabled
231
+ }, null);
232
+ }
233
+ function createSendButton(components) {
234
+ const fn = props.createSendButton || createSendButtonDefault;
235
+ return fn(components);
236
+ }
237
+ function createAttachmentsButtonDefault() {
238
+ return createVNode(Button, {
239
+ "type": "text",
240
+ "onClick": () => headerOpen.value = !headerOpen.value
241
+ }, {
242
+ icon: () => createVNode(LinkOutlined, null, null)
243
+ });
244
+ }
245
+ function createAttachmentsButton() {
246
+ const fn = props.createAttachmentsButton || createAttachmentsButtonDefault;
247
+ return hasAttachments.value ? fn() : null;
248
+ }
182
249
  const actionsRender = (_, info) => {
183
250
  const {
184
251
  SendButton,
185
252
  LoadingButton
186
253
  } = info.components;
187
- const loadingRender = () => {
188
- return createVNode(LoadingButton, null, null);
189
- };
190
- const sendRender = () => {
191
- return createVNode(SendButton, {
192
- "type": "text",
193
- "icon": createVNode(SendOutlined, null, null),
194
- "disabled": props.sendDisabled
195
- }, null);
196
- };
197
- const sendAction = () => loading.value ? loadingRender() : sendRender();
254
+ const send = createSendButton({
255
+ SendButton,
256
+ LoadingButton
257
+ });
198
258
  return createVNode("div", {
199
259
  "class": "vk-sender-actions"
200
260
  }, [createVNode("div", {
201
261
  "class": "vk-sender-actions__before"
202
262
  }, [slots.actions_before?.()]), createVNode("div", {
203
263
  "class": "vk-sender-actions__after"
204
- }, [slots.actions_after?.(), sendAction()])]);
264
+ }, [slots.actions_after?.() ?? send])]);
205
265
  };
206
266
  const attachmentsPlaceholder = type => {
207
267
  if (type === "drop") {
@@ -247,6 +307,10 @@ var _sfc_main = /* @__PURE__ */defineComponent({
247
307
  hasAttachments,
248
308
  loading,
249
309
  headerOpen,
310
+ createSendButtonDefault,
311
+ createSendButton,
312
+ createAttachmentsButtonDefault,
313
+ createAttachmentsButton,
250
314
  actionsRender,
251
315
  attachmentsPlaceholder,
252
316
  theFileList,
@@ -255,12 +319,6 @@ var _sfc_main = /* @__PURE__ */defineComponent({
255
319
  attachmentWrapResolve,
256
320
  handlePasteFile,
257
321
  handleChange,
258
- get LinkOutlined() {
259
- return LinkOutlined;
260
- },
261
- get AntButton() {
262
- return Button;
263
- },
264
322
  get Attachments() {
265
323
  return Attachments;
266
324
  },
@@ -288,7 +346,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
288
346
  !_ctx.sendDisabled && _ctx.$emit("submit", e);
289
347
  },
290
348
  "on-cancel": () => _ctx.$emit("cancel"),
291
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:modelValue", $event)),
349
+ "auto-size": _ctx.autoSize,
350
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event)),
292
351
  onPasteFile: $setup.handlePasteFile
293
352
  }, createSlots({
294
353
  header: withCtx(() => [
@@ -300,43 +359,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
300
359
  "content-ref": $setup.attachmentWrapResolve
301
360
  }, {
302
361
  default: withCtx(() => [
303
- createVNode($setup["Attachments"], {
362
+ createVNode($setup["Attachments"], mergeProps({
304
363
  ref: "attachmentsRef",
305
364
  "file-list": $setup.theFileList,
306
365
  placeholder: $setup.attachmentsPlaceholder,
307
366
  action: _ctx.action,
308
- multiple: "",
309
- onChange: $setup.handleChange
310
- }, null, 8, ["file-list", "action"])
367
+ multiple: ""
368
+ }, _ctx.attachmentsProps, { onChange: $setup.handleChange }), null, 16, ["file-list", "action"])
311
369
  ]),
312
370
  _: 1
313
371
  /* STABLE */
314
- }, 8, ["modelValue", "content-ref"])) : createCommentVNode("v-if", true)
372
+ }, 8, ["modelValue", "content-ref"])) : createCommentVNode("v-if", true),
373
+ renderSlot(_ctx.$slots, "header")
315
374
  ]),
316
375
  prefix: withCtx(() => [
317
- $setup.hasAttachments ? (openBlock(), createBlock($setup["AntButton"], {
318
- key: 0,
319
- type: "text",
320
- onClick: _cache[1] || (_cache[1] = ($event) => $setup.headerOpen = !$setup.headerOpen)
321
- }, {
322
- icon: withCtx(() => [
323
- createVNode($setup["LinkOutlined"])
324
- ]),
325
- _: 1
326
- /* STABLE */
327
- })) : createCommentVNode("v-if", true)
376
+ !_ctx.$slots.prefix ? (openBlock(), createBlock(resolveDynamicComponent($setup.createAttachmentsButton()), { key: 0 })) : createCommentVNode("v-if", true),
377
+ renderSlot(_ctx.$slots, "prefix")
328
378
  ]),
329
379
  _: 2
330
380
  /* DYNAMIC */
331
381
  }, [
332
382
  _ctx.$slots.footer ? {
333
383
  name: "footer",
334
- fn: withCtx(() => [
335
- renderSlot(_ctx.$slots, "footer")
384
+ fn: withCtx(({ info }) => [
385
+ renderSlot(_ctx.$slots, "footer", {
386
+ sendButton: $setup.createSendButton(info.components),
387
+ attachmentsButton: $setup.createAttachmentsButton(),
388
+ info
389
+ })
336
390
  ]),
337
391
  key: "0"
338
392
  } : void 0
339
- ]), 1032, ["value", "loading", "on-submit", "on-cancel"]);
393
+ ]), 1032, ["value", "loading", "on-submit", "on-cancel", "auto-size"]);
340
394
  }
341
395
  var VkSender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/sender/src/index.vue"]]);
342
396
 
@@ -348,4 +402,4 @@ VkSender.install = (app) => {
348
402
  app.component(VkSender.name || "VkSender", VkSender);
349
403
  };
350
404
 
351
- export { VkSender, types as __VkSender, VkSender as default };
405
+ export { VkSender, SenderHeader as VkSenderHeader, types as __VkSender, VkSender as default };
@@ -0,0 +1,256 @@
1
+ import type { AnyFunc } from '@vunk/shared';
2
+ import type { PropType } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ modelValue: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ title: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ contentRef: {
13
+ type: PropType<AnyFunc>;
14
+ default: AnyFunc;
15
+ };
16
+ }>, {
17
+ readonly CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
18
+ readonly AntButton: {
19
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
20
+ prefixCls: StringConstructor;
21
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
22
+ htmlType: {
23
+ type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
24
+ default: string;
25
+ };
26
+ shape: {
27
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
28
+ };
29
+ size: {
30
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
31
+ };
32
+ loading: {
33
+ type: import("vue").PropType<boolean | {
34
+ delay?: number;
35
+ }>;
36
+ default: () => boolean | {
37
+ delay?: number;
38
+ };
39
+ };
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ default: any;
43
+ };
44
+ ghost: {
45
+ type: BooleanConstructor;
46
+ default: any;
47
+ };
48
+ block: {
49
+ type: BooleanConstructor;
50
+ default: any;
51
+ };
52
+ danger: {
53
+ type: BooleanConstructor;
54
+ default: any;
55
+ };
56
+ icon: import("vue-types").VueTypeValidableDef<any>;
57
+ href: StringConstructor;
58
+ target: StringConstructor;
59
+ title: StringConstructor;
60
+ onClick: {
61
+ type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
62
+ };
63
+ onMousedown: {
64
+ type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
65
+ };
66
+ }>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
67
+ block: boolean;
68
+ disabled: boolean;
69
+ danger: boolean;
70
+ ghost: boolean;
71
+ htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
72
+ loading: boolean | {
73
+ delay?: number;
74
+ };
75
+ }, true, {}, import("ant-design-vue/es/_util/type").CustomSlotsType<{
76
+ icon: any;
77
+ default: any;
78
+ }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
79
+ P: {};
80
+ B: {};
81
+ D: {};
82
+ C: {};
83
+ M: {};
84
+ Defaults: {};
85
+ }, Readonly<import("vue").ExtractPropTypes<{
86
+ prefixCls: StringConstructor;
87
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
88
+ htmlType: {
89
+ type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
90
+ default: string;
91
+ };
92
+ shape: {
93
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
94
+ };
95
+ size: {
96
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
97
+ };
98
+ loading: {
99
+ type: import("vue").PropType<boolean | {
100
+ delay?: number;
101
+ }>;
102
+ default: () => boolean | {
103
+ delay?: number;
104
+ };
105
+ };
106
+ disabled: {
107
+ type: BooleanConstructor;
108
+ default: any;
109
+ };
110
+ ghost: {
111
+ type: BooleanConstructor;
112
+ default: any;
113
+ };
114
+ block: {
115
+ type: BooleanConstructor;
116
+ default: any;
117
+ };
118
+ danger: {
119
+ type: BooleanConstructor;
120
+ default: any;
121
+ };
122
+ icon: import("vue-types").VueTypeValidableDef<any>;
123
+ href: StringConstructor;
124
+ target: StringConstructor;
125
+ title: StringConstructor;
126
+ onClick: {
127
+ type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
128
+ };
129
+ onMousedown: {
130
+ type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
131
+ };
132
+ }>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, {
133
+ block: boolean;
134
+ disabled: boolean;
135
+ danger: boolean;
136
+ ghost: boolean;
137
+ htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
138
+ loading: boolean | {
139
+ delay?: number;
140
+ };
141
+ }>;
142
+ __isFragment?: never;
143
+ __isTeleport?: never;
144
+ __isSuspense?: never;
145
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
146
+ prefixCls: StringConstructor;
147
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
148
+ htmlType: {
149
+ type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
150
+ default: string;
151
+ };
152
+ shape: {
153
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
154
+ };
155
+ size: {
156
+ type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
157
+ };
158
+ loading: {
159
+ type: import("vue").PropType<boolean | {
160
+ delay?: number;
161
+ }>;
162
+ default: () => boolean | {
163
+ delay?: number;
164
+ };
165
+ };
166
+ disabled: {
167
+ type: BooleanConstructor;
168
+ default: any;
169
+ };
170
+ ghost: {
171
+ type: BooleanConstructor;
172
+ default: any;
173
+ };
174
+ block: {
175
+ type: BooleanConstructor;
176
+ default: any;
177
+ };
178
+ danger: {
179
+ type: BooleanConstructor;
180
+ default: any;
181
+ };
182
+ icon: import("vue-types").VueTypeValidableDef<any>;
183
+ href: StringConstructor;
184
+ target: StringConstructor;
185
+ title: StringConstructor;
186
+ onClick: {
187
+ type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
188
+ };
189
+ onMousedown: {
190
+ type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
191
+ };
192
+ }>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
193
+ block: boolean;
194
+ disabled: boolean;
195
+ danger: boolean;
196
+ ghost: boolean;
197
+ htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
198
+ loading: boolean | {
199
+ delay?: number;
200
+ };
201
+ }, {}, string, import("ant-design-vue/es/_util/type").CustomSlotsType<{
202
+ icon: any;
203
+ default: any;
204
+ }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (import("vue").Plugin<any[]> & {
205
+ readonly Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
206
+ prefixCls: StringConstructor;
207
+ size: {
208
+ type: PropType<import("ant-design-vue/es/button").ButtonSize>;
209
+ };
210
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
211
+ prefixCls: StringConstructor;
212
+ size: {
213
+ type: PropType<import("ant-design-vue/es/button").ButtonSize>;
214
+ };
215
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
216
+ }));
217
+ readonly ElCollapseTransition: {
218
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
219
+ P: {};
220
+ B: {};
221
+ D: {};
222
+ C: {};
223
+ M: {};
224
+ Defaults: {};
225
+ }, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, {}>;
226
+ __isFragment?: never;
227
+ __isTeleport?: never;
228
+ __isSuspense?: never;
229
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
230
+ $slots: {
231
+ default?(_: {}): any;
232
+ };
233
+ }) & import("vue").Plugin;
234
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
235
+ 'update:modelValue': null;
236
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
237
+ modelValue: {
238
+ type: BooleanConstructor;
239
+ default: boolean;
240
+ };
241
+ title: {
242
+ type: StringConstructor;
243
+ default: string;
244
+ };
245
+ contentRef: {
246
+ type: PropType<AnyFunc>;
247
+ default: AnyFunc;
248
+ };
249
+ }>> & Readonly<{
250
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
251
+ }>, {
252
+ modelValue: boolean;
253
+ title: string;
254
+ contentRef: AnyFunc;
255
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
256
+ export default _default;