@vunk/plus 1.12.1 → 1.13.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.
- package/components/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/components/agent-chat-provider/index.cjs +1 -0
- package/components/agent-chat-provider/index.mjs +113 -187
- package/components/agent-chat-provider/src/index.vue.d.ts +3 -2
- package/components/avatar/index.cjs +1 -0
- package/components/avatar/index.mjs +25 -31
- package/components/avatar/src/index.vue.d.ts +40 -39
- package/components/broadcasting-markdown/__tests__/const.test.d.ts +1 -0
- package/components/broadcasting-markdown/__tests__/utils.test.d.ts +1 -0
- package/components/broadcasting-markdown/index.cjs +5 -0
- package/components/broadcasting-markdown/index.mjs +346 -4376
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +18 -24
- package/components/broadcasting-markdown/src/index.vue.d.ts +101 -51
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +17 -29
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +2 -59
- package/components/bubble-list/index.cjs +1 -0
- package/components/bubble-list/index.mjs +220 -302
- package/components/bubble-list/src/core/index.vue.d.ts +40 -885
- package/components/bubble-list/src/core/loading.vue.d.ts +3 -0
- package/components/bubble-list/src/index.vue.d.ts +29 -1321
- package/components/bubble-templates/index.cjs +1 -0
- package/components/bubble-templates/index.mjs +34 -49
- package/components/bubble-templates/src/index.vue.d.ts +3 -224
- package/components/chat-independent/index.cjs +1 -0
- package/components/chat-independent/index.mjs +105 -212
- package/components/chat-independent/src/index.vue.d.ts +20 -2712
- package/components/components.css +1 -0
- package/components/drawer/index.cjs +1 -0
- package/components/drawer/index.mjs +53 -94
- package/components/drawer/src/ctx.d.ts +22 -22
- package/components/drawer/src/index.vue.d.ts +84 -557
- package/components/index.cjs +1 -0
- package/components/index.d.ts +1 -0
- package/components/lottie-animation/index.cjs +1 -0
- package/components/lottie-animation/index.mjs +36 -55
- package/components/lottie-animation/src/index.vue.d.ts +3 -2
- package/components/metahuman-broadcasting/index.cjs +1 -0
- package/components/metahuman-broadcasting/index.mjs +89 -140
- package/components/metahuman-broadcasting/src/index.vue.d.ts +16 -718
- package/components/monaco-editor/index.cjs +1 -0
- package/components/monaco-editor/index.mjs +75 -73
- package/components/monaco-editor/src/ctx.d.ts +10 -4
- package/components/monaco-editor/src/index.vue.d.ts +17 -2
- package/components/monaco-environment/index.cjs +1 -0
- package/components/monaco-environment/index.mjs +23 -38
- package/components/monaco-environment/src/index.vue.d.ts +2 -1
- package/components/pixi-frame/index.cjs +1 -0
- package/components/pixi-frame/index.mjs +501 -1978
- package/components/pixi-frame/src/apng.vue.d.ts +17 -73
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +24 -66
- package/components/pixi-frame/src/bitmap.vue.d.ts +28 -80
- package/components/pixi-frame/src/buffer-image.vue.d.ts +29 -97
- package/components/pixi-frame/src/core.vue.d.ts +20 -75
- package/components/pixi-frame/src/index.vue.d.ts +302 -237
- package/components/pixi-frame/src/provider.vue.d.ts +12 -1
- package/components/pixi-frame/src/video.vue.d.ts +17 -71
- package/components/pixi-frame/src/view.vue.d.ts +4 -16
- package/components/recorder-button/index.cjs +1 -0
- package/components/recorder-button/index.mjs +140 -269
- package/components/recorder-button/src/index.vue.d.ts +67 -66
- package/components/routes-menu-content/index.cjs +1 -0
- package/components/routes-menu-content/index.mjs +150 -229
- package/components/routes-menu-content/src/index.vue.d.ts +27 -26
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +27 -26
- package/components/routes-menu-content/src/item/index.vue.d.ts +27 -26
- package/components/scrollbar/index.cjs +1 -0
- package/components/scrollbar/index.mjs +288 -567
- package/components/scrollbar/src/bar.vue.d.ts +6 -133
- package/components/scrollbar/src/index.vue.d.ts +66 -337
- package/components/scrollbar/src/thumb.vue.d.ts +3 -80
- package/components/sender/index.cjs +1 -0
- package/components/sender/index.mjs +156 -285
- package/components/sender/src/SenderHeader.vue.d.ts +14 -221
- package/components/sender/src/index.vue.d.ts +16 -505
- package/components/speech-button/index.cjs +1 -0
- package/components/speech-button/index.mjs +98 -144
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -1
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -1
- package/components/speech-button/src/index.vue.d.ts +6 -5
- package/components/table-columns/index.cjs +1 -0
- package/components/table-columns/index.mjs +48 -78
- package/components/table-columns/src/ctx.d.ts +12 -12
- package/components/table-columns/src/el-ctx.d.ts +3 -3
- package/components/table-columns/src/index.vue.d.ts +28 -27
- package/components/tables-v1/index.cjs +1 -0
- package/components/tables-v1/index.mjs +99 -160
- package/components/tables-v1/src/ctx.d.ts +38 -38
- package/components/tables-v1/src/el-ctx.d.ts +7 -7
- package/components/tables-v1/src/index.vue.d.ts +111 -2266
- package/components/tables-v1-checkbox/index.cjs +1 -0
- package/components/tables-v1-checkbox/index.mjs +116 -4043
- package/components/tables-v1-checkbox/src/ctx.d.ts +36 -36
- package/components/tables-v1-checkbox/src/index.vue.d.ts +224 -2378
- package/components/text/index.cjs +1 -0
- package/components/text/index.mjs +70 -108
- package/components/text/src/ctx.d.ts +32 -32
- package/components/text/src/index.vue.d.ts +92 -1819
- package/components/thinking/index.cjs +1 -0
- package/components/thinking/index.mjs +127 -227
- package/components/thinking/src/index.vue.d.ts +23 -2045
- package/components/typing-markdown/index.cjs +1 -0
- package/components/typing-markdown/index.mjs +61 -201
- package/components/typing-markdown/src/index.vue.d.ts +3 -2
- package/components/vditor/index.cjs +1 -0
- package/components/vditor/index.mjs +121 -195
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -2
- package/components/vditor/src/handle-value.vue.d.ts +3 -2
- package/components/vditor/src/index.vue.d.ts +5 -4
- package/components/xgplayer/index.cjs +1 -0
- package/components/xgplayer/index.mjs +49 -90
- package/components/xgplayer/src/core.vue.d.ts +13 -18
- package/components/xgplayer/src/index.vue.d.ts +13 -67
- package/composables/el-breakpoints/index.cjs +1 -0
- package/composables/el-breakpoints/index.d.ts +10 -10
- package/composables/el-breakpoints/index.mjs +10 -12
- package/composables/index.cjs +1 -0
- package/composables/index.d.ts +1 -0
- package/composables/recorder/index.cjs +1 -0
- package/composables/recorder/index.mjs +9172 -14803
- package/element/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/element/bubble/index.cjs +3 -0
- package/element/bubble/index.d.ts +1 -1
- package/element/bubble/index.mjs +1 -1
- package/element/bubble/src/index.vue.d.ts +22 -22
- package/element/index.css +1 -1
- package/element/thinking/index.cjs +1 -0
- package/element/thinking/index.d.ts +1 -1
- package/element/thinking/index.mjs +1 -1
- package/element/thinking/src/index.vue.d.ts +26 -26
- package/element/thinking/src/types.d.ts +10 -0
- package/icons/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/icons/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/icons/end/index.cjs +1 -0
- package/icons/end/index.mjs +21 -26
- package/icons/end/src/index.vue.d.ts +3 -0
- package/icons/keyboard/index.cjs +1 -0
- package/icons/keyboard/index.mjs +21 -26
- package/icons/keyboard/src/index.vue.d.ts +3 -0
- package/icons/start/index.cjs +1 -0
- package/icons/start/index.mjs +21 -26
- package/icons/start/src/index.vue.d.ts +3 -0
- package/icons/voice/index.cjs +1 -0
- package/icons/voice/index.mjs +26 -44
- package/icons/voice/src/index.vue.d.ts +2 -3
- package/index.css +2 -558
- package/index.d.ts +1 -0
- package/package.json +78 -87
- package/shared/data/index.cjs +1 -0
- package/shared/data/index.mjs +16 -22
- package/shared/types/index.cjs +1 -0
- package/shared/types/index.d.ts +1 -0
- package/components/LinkOutlined.mjs +0 -1321
- package/components/_commonjsHelpers.mjs +0 -7
- package/components/_plugin-vue_export-helper.mjs +0 -9
- package/components/bubble-list/index.css +0 -70
- package/components/bubble-templates/index.css +0 -4
- package/components/chat-independent/index.css +0 -47
- package/components/drawer/index.css +0 -124
- package/components/index2.mjs +0 -78
- package/components/lottie-animation/index.css +0 -4
- package/components/monaco-editor/index.css +0 -4
- package/components/pixi-frame/index.css +0 -4
- package/components/recorder-button/index.css +0 -69
- package/components/sender/index.css +0 -22
- package/components/speech-button/index.css +0 -10
- package/components/tables-v1/index.css +0 -7
- package/components/tables-v1-checkbox/index.css +0 -8
- package/components/thinking/index.css +0 -125
- package/components/typing-markdown/index.css +0 -31
- package/components/vditor/index.css +0 -12
- package/components/xgplayer/index.css +0 -1
- package/icons/_plugin-vue_export-helper.mjs +0 -9
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, ref, computed,
|
|
2
|
-
import { useAgentChat } from
|
|
3
|
-
import { VkBubbleList } from
|
|
4
|
-
import { VkBubbleData } from
|
|
5
|
-
import { VkSender } from
|
|
6
|
-
import { VkKeyboardAvatar } from
|
|
7
|
-
import { VkVoiceAvatar } from
|
|
8
|
-
import { VkDuplex } from
|
|
9
|
-
import { useDataComputed, useDeferred } from
|
|
10
|
-
import { isNotEmptyObject } from
|
|
11
|
-
import { waiting } from
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var InputType = /* @__PURE__ */ ((InputType2) => {
|
|
15
|
-
InputType2["Voice"] = "voice";
|
|
16
|
-
InputType2["Text"] = "text";
|
|
17
|
-
return InputType2;
|
|
18
|
-
})(InputType || {});
|
|
19
|
-
|
|
20
|
-
const props = {
|
|
1
|
+
import { defineComponent as O, defineAsyncComponent as E, ref as k, computed as p, createElementBlock as D, openBlock as C, createElementVNode as m, createVNode as r, unref as e, withCtx as u, createCommentVNode as F, withDirectives as b, Fragment as P, vShow as v, renderSlot as h, normalizeProps as q, guardReactiveProps as K, nextTick as M } from "vue";
|
|
2
|
+
import { useAgentChat as U } from "@vunk/plus/components/agent-chat-provider";
|
|
3
|
+
import { VkBubbleList as G } from "@vunk/plus/components/bubble-list";
|
|
4
|
+
import { VkBubbleData as H } from "@vunk/plus/components/bubble-templates";
|
|
5
|
+
import { VkSender as J } from "@vunk/plus/components/sender";
|
|
6
|
+
import { VkKeyboardAvatar as Q } from "@vunk/plus/icons/keyboard";
|
|
7
|
+
import { VkVoiceAvatar as W } from "@vunk/plus/icons/voice";
|
|
8
|
+
import { VkDuplex as X } from "@vunk/core";
|
|
9
|
+
import { useDataComputed as Y, useDeferred as Z } from "@vunk/core/composables";
|
|
10
|
+
import { isNotEmptyObject as ee } from "@vunk/shared/object";
|
|
11
|
+
import { waiting as te } from "@vunk/shared/promise";
|
|
12
|
+
var a = /* @__PURE__ */ ((n) => (n.Voice = "voice", n.Text = "text", n))(a || {});
|
|
13
|
+
const oe = {
|
|
21
14
|
/**
|
|
22
15
|
* @description BubbleList渲染时数据, 受控于setData
|
|
23
16
|
*/
|
|
@@ -30,221 +23,121 @@ const props = {
|
|
|
30
23
|
textToSpeech: {
|
|
31
24
|
type: Function
|
|
32
25
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
|
-
...{
|
|
40
|
-
name: "VkChatIndependent"
|
|
41
|
-
},
|
|
26
|
+
}, ne = {
|
|
27
|
+
setData: (n) => n
|
|
28
|
+
}, ae = { class: "vk-chat-independent" }, re = { class: "vk-chat-independent-main__bubbles" }, le = { class: "vk-chat-independent-footer" }, se = { class: "vk-chat-independent-background" }, V = /* @__PURE__ */ O({
|
|
29
|
+
name: "VkChatIndependent",
|
|
42
30
|
__name: "index",
|
|
43
|
-
props:
|
|
44
|
-
emits:
|
|
45
|
-
setup(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const content = ref("");
|
|
54
|
-
const bubbleListDef = useDeferred();
|
|
55
|
-
const bubbleListReslove = bubbleListDef.resolve;
|
|
56
|
-
const { simplicity } = useAgentChat();
|
|
57
|
-
const { items: bubbleItems, onRequest } = simplicity;
|
|
58
|
-
const lastBubbleItem = computed(() => {
|
|
59
|
-
return bubbleItems.value.at(-1);
|
|
60
|
-
});
|
|
61
|
-
const lastBubbleData = computed(() => {
|
|
62
|
-
return getBubbleDataAt(-1);
|
|
63
|
-
});
|
|
64
|
-
const clientLoading = computed(() => {
|
|
65
|
-
if (lastBubbleItem.value?.loading === true) {
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
if (isNotEmptyObject(lastBubbleData.value) && lastBubbleData.value.completed !== true) {
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
return false;
|
|
72
|
-
});
|
|
73
|
-
const senderDisabled = computed(() => {
|
|
74
|
-
if (lastBubbleData.value.error === true) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
return lastBubbleItem.value?.loading === true || lastBubbleData.value.completed === false;
|
|
78
|
-
});
|
|
79
|
-
function onSubmit(nextContent) {
|
|
80
|
-
if (!nextContent)
|
|
81
|
-
return;
|
|
82
|
-
onRequest(nextContent);
|
|
83
|
-
nextTick(() => {
|
|
84
|
-
content.value = "";
|
|
85
|
-
});
|
|
86
|
-
setTimeout(() => {
|
|
87
|
-
bubbleListDef.value?.scrollToBottom();
|
|
88
|
-
}, 400);
|
|
31
|
+
props: oe,
|
|
32
|
+
emits: ne,
|
|
33
|
+
setup(n, { emit: B }) {
|
|
34
|
+
const S = n, R = B, w = E(() => import("@vunk/plus/components/recorder-button")), [s, A] = Y({}, S, R), x = k(), l = k(a.Text), f = k(""), T = Z(), I = T.resolve, { simplicity: $ } = U(), { items: d, onRequest: j } = $, _ = p(() => d.value.at(-1)), c = p(() => N(-1)), z = p(() => !!(_.value?.loading === !0 || ee(c.value) && c.value.completed !== !0)), y = p(() => c.value.error === !0 ? !1 : _.value?.loading === !0 || c.value.completed === !1);
|
|
35
|
+
function g(t) {
|
|
36
|
+
t && (j(t), M(() => {
|
|
37
|
+
f.value = "";
|
|
38
|
+
}), setTimeout(() => {
|
|
39
|
+
T.value?.scrollToBottom();
|
|
40
|
+
}, 400));
|
|
89
41
|
}
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
waiting(() => bubbleData.value[lastBubble.key], 60).then((lastBubbleData2) => {
|
|
96
|
-
lastBubbleData2.elRef?.interrupt();
|
|
97
|
-
bubbleData.value[lastBubble.key].completed = true;
|
|
98
|
-
});
|
|
42
|
+
function L() {
|
|
43
|
+
const t = d.value.at(-1);
|
|
44
|
+
t && (t.abortController?.abort(), te(() => s.value[t.key], 60).then((o) => {
|
|
45
|
+
o.elRef?.interrupt(), s.value[t.key].completed = !0;
|
|
46
|
+
}));
|
|
99
47
|
}
|
|
100
|
-
function
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
return bubbleData.value[bubble.key];
|
|
104
|
-
}
|
|
105
|
-
return {};
|
|
48
|
+
function N(t) {
|
|
49
|
+
const o = d.value.at(t);
|
|
50
|
+
return o?.key && s.value[o.key] ? s.value[o.key] : {};
|
|
106
51
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return VkKeyboardAvatar;
|
|
115
|
-
}, get VkVoiceAvatar() {
|
|
116
|
-
return VkVoiceAvatar;
|
|
117
|
-
}, get VkDuplex() {
|
|
118
|
-
return VkDuplex;
|
|
119
|
-
}, get InputType() {
|
|
120
|
-
return InputType;
|
|
121
|
-
} };
|
|
122
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
123
|
-
return __returned__;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
const _hoisted_1 = { class: "vk-chat-independent" };
|
|
128
|
-
const _hoisted_2 = {
|
|
129
|
-
ref: "mainRef",
|
|
130
|
-
class: "vk-chat-independent-main"
|
|
131
|
-
};
|
|
132
|
-
const _hoisted_3 = { class: "vk-chat-independent-main__bubbles" };
|
|
133
|
-
const _hoisted_4 = { class: "vk-chat-independent-footer" };
|
|
134
|
-
const _hoisted_5 = { class: "vk-chat-independent-background" };
|
|
135
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
136
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
137
|
-
createElementVNode(
|
|
138
|
-
"div",
|
|
139
|
-
_hoisted_2,
|
|
140
|
-
[
|
|
141
|
-
createVNode($setup["VkDuplex"], {
|
|
52
|
+
return (t, o) => (C(), D("div", ae, [
|
|
53
|
+
m("div", {
|
|
54
|
+
ref_key: "mainRef",
|
|
55
|
+
ref: x,
|
|
56
|
+
class: "vk-chat-independent-main"
|
|
57
|
+
}, [
|
|
58
|
+
r(e(X), {
|
|
142
59
|
"with-flex": "one",
|
|
143
60
|
class: "vk-chat-independent-main__duplex"
|
|
144
61
|
}, {
|
|
145
|
-
one:
|
|
146
|
-
|
|
147
|
-
data:
|
|
148
|
-
onSetData:
|
|
62
|
+
one: u(() => [
|
|
63
|
+
r(e(H), {
|
|
64
|
+
data: e(s),
|
|
65
|
+
onSetData: e(A)
|
|
149
66
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"el-ref":
|
|
154
|
-
items:
|
|
155
|
-
"text-to-speech":
|
|
67
|
+
default: u(() => [
|
|
68
|
+
m("div", re, [
|
|
69
|
+
r(e(G), {
|
|
70
|
+
"el-ref": e(I),
|
|
71
|
+
items: e(d),
|
|
72
|
+
"text-to-speech": t.textToSpeech
|
|
156
73
|
}, {
|
|
157
|
-
renderer:
|
|
158
|
-
|
|
74
|
+
renderer: u(() => [
|
|
75
|
+
h(t.$slots, "bubble_renderer")
|
|
159
76
|
]),
|
|
160
|
-
footer:
|
|
161
|
-
|
|
77
|
+
footer: u((i) => [
|
|
78
|
+
h(t.$slots, "bubble_footer", q(K(i)))
|
|
162
79
|
]),
|
|
163
80
|
_: 3
|
|
164
|
-
/* FORWARDED */
|
|
165
81
|
}, 8, ["el-ref", "items", "text-to-speech"])
|
|
166
82
|
])
|
|
167
83
|
]),
|
|
168
84
|
_: 3
|
|
169
|
-
/* FORWARDED */
|
|
170
85
|
}, 8, ["data", "onSetData"])
|
|
171
86
|
]),
|
|
172
|
-
two:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
null,
|
|
206
|
-
512
|
|
207
|
-
/* NEED_PATCH */
|
|
208
|
-
), [
|
|
209
|
-
[vShow, $setup.inputType === $setup.InputType.Text]
|
|
210
|
-
])
|
|
211
|
-
],
|
|
212
|
-
64
|
|
213
|
-
/* STABLE_FRAGMENT */
|
|
214
|
-
)) : createCommentVNode("v-if", true),
|
|
215
|
-
withDirectives(createVNode($setup["VkSender"], {
|
|
216
|
-
modelValue: $setup.content,
|
|
217
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.content = $event),
|
|
218
|
-
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
|
|
219
|
-
"send-disabled": $setup.senderDisabled,
|
|
220
|
-
loading: $setup.clientLoading,
|
|
221
|
-
onSubmit: $setup.onSubmit,
|
|
222
|
-
onCancel: $setup.onCancel
|
|
87
|
+
two: u(() => [
|
|
88
|
+
m("div", le, [
|
|
89
|
+
t.speechToText ? (C(), D(P, { key: 0 }, [
|
|
90
|
+
b(r(e(Q), {
|
|
91
|
+
size: 40,
|
|
92
|
+
onClick: o[0] || (o[0] = (i) => l.value = e(a).Text)
|
|
93
|
+
}, null, 512), [
|
|
94
|
+
[v, l.value === e(a).Voice]
|
|
95
|
+
]),
|
|
96
|
+
b(r(e(w), {
|
|
97
|
+
"append-to": x.value,
|
|
98
|
+
disabled: y.value,
|
|
99
|
+
"speech-to-text": t.speechToText,
|
|
100
|
+
"submit-to-text": !0,
|
|
101
|
+
onSubmitText: g
|
|
102
|
+
}, null, 8, ["append-to", "disabled", "speech-to-text"]), [
|
|
103
|
+
[v, l.value === e(a).Voice]
|
|
104
|
+
]),
|
|
105
|
+
b(r(e(W), {
|
|
106
|
+
size: 40,
|
|
107
|
+
onClick: o[1] || (o[1] = (i) => l.value = e(a).Voice)
|
|
108
|
+
}, null, 512), [
|
|
109
|
+
[v, l.value === e(a).Text]
|
|
110
|
+
])
|
|
111
|
+
], 64)) : F("", !0),
|
|
112
|
+
b(r(e(J), {
|
|
113
|
+
modelValue: f.value,
|
|
114
|
+
"onUpdate:modelValue": o[2] || (o[2] = (i) => f.value = i),
|
|
115
|
+
placeholder: "请输入内容",
|
|
116
|
+
"send-disabled": y.value,
|
|
117
|
+
loading: z.value,
|
|
118
|
+
onSubmit: g,
|
|
119
|
+
onCancel: L
|
|
223
120
|
}, null, 8, ["modelValue", "send-disabled", "loading"]), [
|
|
224
|
-
[
|
|
121
|
+
[v, l.value === e(a).Text]
|
|
225
122
|
])
|
|
226
123
|
])
|
|
227
124
|
]),
|
|
228
125
|
_: 3
|
|
229
|
-
/* FORWARDED */
|
|
230
126
|
})
|
|
231
|
-
],
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
]);
|
|
239
|
-
}
|
|
240
|
-
var VkChatIndependent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/chat-independent/src/index.vue"]]);
|
|
241
|
-
|
|
242
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
127
|
+
], 512),
|
|
128
|
+
m("div", se, [
|
|
129
|
+
h(t.$slots, "background")
|
|
130
|
+
])
|
|
131
|
+
]));
|
|
132
|
+
}
|
|
133
|
+
}), Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
243
134
|
__proto__: null
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
135
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
136
|
+
V.install = (n) => {
|
|
137
|
+
n.component(V.name || "VkChatIndependent", V);
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
V as VkChatIndependent,
|
|
141
|
+
Ve as __VkChatIndependent,
|
|
142
|
+
V as default
|
|
248
143
|
};
|
|
249
|
-
|
|
250
|
-
export { VkChatIndependent, types as __VkChatIndependent, VkChatIndependent as default };
|