@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,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ElAutoResizer } from
|
|
4
|
-
import {
|
|
5
|
-
import { useResizeObserver } from
|
|
6
|
-
import { VkScrollbar } from
|
|
7
|
-
import { Bubble } from
|
|
8
|
-
import { _ as
|
|
9
|
-
import { noop } from
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const _sfc_main$2 = {};
|
|
13
|
-
|
|
14
|
-
const _hoisted_1$1 = {
|
|
1
|
+
import { createElementBlock as B, openBlock as p, createStaticVNode as E, defineComponent as _, ref as S, onMounted as $, watch as N, computed as T, resolveComponent as G, createVNode as u, withDirectives as L, unref as d, withCtx as l, Fragment as H, renderList as I, createBlock as w, normalizeClass as C, createSlots as z, renderSlot as s, createElementVNode as M, normalizeStyle as R, createCommentVNode as j, vShow as D, mergeProps as O, normalizeProps as m, guardReactiveProps as v } from "vue";
|
|
2
|
+
import { VkBubbleRenderTemplates as Z, VkBubbleRenderer as q, VkBubbleTemplates as U } from "@vunk/plus/components/bubble-templates";
|
|
3
|
+
import { ElAutoResizer as W } from "element-plus";
|
|
4
|
+
import { ArrowDownBold as J } from "@element-plus/icons-vue";
|
|
5
|
+
import { useResizeObserver as K } from "@vueuse/core";
|
|
6
|
+
import { VkScrollbar as Q } from "@vunk/plus/components/scrollbar";
|
|
7
|
+
import { Bubble as X } from "@vunk/plus/element/bubble";
|
|
8
|
+
import { _ as Y } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
import { noop as ee } from "@vunk/shared/function";
|
|
10
|
+
import { Role as Be } from "@vunk/plus/components/agent-chat-provider";
|
|
11
|
+
const te = {}, oe = {
|
|
15
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16
13
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
17
14
|
version: "1.1",
|
|
@@ -19,15 +16,12 @@ const _hoisted_1$1 = {
|
|
|
19
16
|
height: "704",
|
|
20
17
|
viewBox: "0 0 704 704"
|
|
21
18
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
])))
|
|
19
|
+
function le(i, o) {
|
|
20
|
+
return p(), B("svg", oe, o[0] || (o[0] = [
|
|
21
|
+
E('<defs><filter id="master_svg0_62_10054" filterUnits="objectBoundingBox" color-interpolation-filters="sRGB" x="-0.030120481927710843" y="-0.030120481927710843" width="1.0602409638554218" height="1.0602409638554218"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="5" result="effect1_foregroundBlur"></feGaussianBlur></filter><linearGradient id="master_svg1_62_10082" x1="0.5" y1="-0.13192443549633026" x2="0.42319029569625854" y2="1.368432641029358"><stop offset="9.145302325487137%" stop-color="currentColor" stop-opacity="1"></stop><stop offset="13.636428117752075%" stop-color="currentColor" stop-opacity="0.07539999485015869"></stop><stop offset="16.968481242656708%" stop-color="currentColor" stop-opacity="0"></stop></linearGradient></defs><g transform="matrix(0,1,-1,0,704,-664)" filter="url(#master_svg0_62_10054)"><path d="M1016,684C1199.359,684,1348,535.359,1348,352C1348,168.641,1199.359,20,1016,20C832.641,20,684,168.641,684,352C684,535.359,832.641,684,1016,684ZM1016,32C1192.731,32,1336,175.269,1336,352C1336,528.731,1192.731,672,1016,672C839.269,672,696,528.731,696,352C696,175.269,839.269,32,1016,32Z" fill-rule="evenodd" fill="url(#master_svg1_62_10082)" fill-opacity="1"></path></g>', 2)
|
|
22
|
+
]));
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
24
|
+
const ae = /* @__PURE__ */ Y(te, [["render", le]]), re = { class: "vk-bubble-list-wrapper" }, ne = /* @__PURE__ */ _({
|
|
31
25
|
__name: "index",
|
|
32
26
|
props: {
|
|
33
27
|
list: {
|
|
@@ -36,7 +30,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
36
30
|
},
|
|
37
31
|
autoScroll: {
|
|
38
32
|
type: Boolean,
|
|
39
|
-
default:
|
|
33
|
+
default: !0
|
|
40
34
|
},
|
|
41
35
|
autoScrollThreshold: {
|
|
42
36
|
type: Number,
|
|
@@ -48,7 +42,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
48
42
|
},
|
|
49
43
|
alwaysShowScrollbar: {
|
|
50
44
|
type: Boolean,
|
|
51
|
-
default:
|
|
45
|
+
default: !1
|
|
52
46
|
},
|
|
53
47
|
backButtonThreshold: {
|
|
54
48
|
type: Number,
|
|
@@ -56,17 +50,15 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
56
50
|
},
|
|
57
51
|
showBackButton: {
|
|
58
52
|
type: Boolean,
|
|
59
|
-
default:
|
|
53
|
+
default: !0
|
|
60
54
|
},
|
|
61
55
|
backButtonPosition: {
|
|
62
56
|
type: Object,
|
|
63
|
-
default: () => {
|
|
64
|
-
return { bottom: "20px", left: "calc(50% - 19px)" };
|
|
65
|
-
}
|
|
57
|
+
default: () => ({ bottom: "20px", left: "calc(50% - 19px)" })
|
|
66
58
|
},
|
|
67
59
|
btnLoading: {
|
|
68
60
|
type: Boolean,
|
|
69
|
-
default:
|
|
61
|
+
default: !0
|
|
70
62
|
},
|
|
71
63
|
btnColor: {
|
|
72
64
|
type: String,
|
|
@@ -84,332 +76,258 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
84
76
|
emits: {
|
|
85
77
|
complete: null
|
|
86
78
|
},
|
|
87
|
-
setup(
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
function initStyle() {
|
|
79
|
+
setup(i, { expose: o }) {
|
|
80
|
+
const r = i, c = S();
|
|
81
|
+
function a() {
|
|
91
82
|
document.documentElement.style.setProperty(
|
|
92
83
|
"--el-bubble-list-max-height",
|
|
93
|
-
|
|
94
|
-
)
|
|
95
|
-
document.documentElement.style.setProperty(
|
|
84
|
+
r.maxHeight || "100%"
|
|
85
|
+
), document.documentElement.style.setProperty(
|
|
96
86
|
"--el-bubble-list-btn-size",
|
|
97
|
-
`${
|
|
87
|
+
`${r.btnIconSize}px`
|
|
98
88
|
);
|
|
99
89
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
() => [props.maxHeight, props.btnIconSize],
|
|
90
|
+
$(() => {
|
|
91
|
+
a();
|
|
92
|
+
}), N(
|
|
93
|
+
() => [r.maxHeight, r.btnIconSize],
|
|
105
94
|
() => {
|
|
106
|
-
|
|
95
|
+
a();
|
|
107
96
|
}
|
|
108
97
|
);
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return props.showBackButton && distanceToBottom.value !== void 0 && distanceToBottom.value > props.backButtonThreshold;
|
|
98
|
+
const f = S(), V = T(() => c.value?.wrapRef?.firstElementChild), A = T(() => r.showBackButton && f.value !== void 0 && f.value > r.backButtonThreshold);
|
|
99
|
+
$(() => {
|
|
100
|
+
setTimeout(h);
|
|
113
101
|
});
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
const el = scrollbarRef.value?.$el;
|
|
119
|
-
const wrap = scrollbarRef.value?.wrapRef;
|
|
120
|
-
if (!el || !wrap) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
distanceToBottom.value = wrap.scrollHeight - wrap.scrollTop - wrap.clientHeight;
|
|
124
|
-
return distanceToBottom.value;
|
|
102
|
+
function h() {
|
|
103
|
+
const t = c.value?.$el, n = c.value?.wrapRef;
|
|
104
|
+
if (!(!t || !n))
|
|
105
|
+
return f.value = n.scrollHeight - n.scrollTop - n.clientHeight, f.value;
|
|
125
106
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
107
|
+
function g(...t) {
|
|
108
|
+
c.value?.scrollToBottom(...t);
|
|
128
109
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
110
|
+
function x(...t) {
|
|
111
|
+
c.value?.scrollToTop(...t);
|
|
131
112
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function scrollToBubble(index) {
|
|
142
|
-
const container = scrollbarRef.value?.wrapRef;
|
|
143
|
-
if (!container)
|
|
113
|
+
r.autoScroll && K(V, () => {
|
|
114
|
+
const t = h();
|
|
115
|
+
t !== void 0 && t > r.autoScrollThreshold || g();
|
|
116
|
+
});
|
|
117
|
+
function F(t) {
|
|
118
|
+
const n = c.value?.wrapRef;
|
|
119
|
+
if (!n)
|
|
144
120
|
return;
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
121
|
+
const b = n.querySelectorAll(".el-bubble");
|
|
122
|
+
if (t >= b.length)
|
|
147
123
|
return;
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
const scrollPosition = bubbleRect.top - containerRect.top + container.scrollTop;
|
|
152
|
-
container.scrollTo({
|
|
153
|
-
top: scrollPosition,
|
|
124
|
+
const e = b[t], y = n.getBoundingClientRect(), P = e.getBoundingClientRect().top - y.top + n.scrollTop;
|
|
125
|
+
n.scrollTo({
|
|
126
|
+
top: P,
|
|
154
127
|
behavior: "smooth"
|
|
155
128
|
});
|
|
156
129
|
}
|
|
157
|
-
|
|
158
|
-
scrollToTop,
|
|
159
|
-
scrollToBottom,
|
|
160
|
-
scrollToBubble
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
loading: item.loading,
|
|
196
|
-
shape: item.shape,
|
|
197
|
-
variant: item.variant,
|
|
198
|
-
"is-markdown": item.isMarkdown,
|
|
199
|
-
"is-fog": item.isFog,
|
|
200
|
-
typing: item.typing,
|
|
201
|
-
"max-width": item.maxWidth,
|
|
202
|
-
avatar: item.avatar,
|
|
203
|
-
"avatar-size": item.avatarSize,
|
|
204
|
-
"avatar-gap": item.avatarGap,
|
|
205
|
-
"avatar-shape": item.avatarShape,
|
|
206
|
-
"avatar-src-set": item.avatarSrcSet,
|
|
207
|
-
"avatar-alt": item.avatarAlt,
|
|
208
|
-
"avatar-fit": item.avatarFit,
|
|
209
|
-
"no-style": item.noStyle,
|
|
210
|
-
class: normalizeClass({
|
|
211
|
-
[`is-${item.role}`]: true
|
|
130
|
+
return o({
|
|
131
|
+
scrollToTop: x,
|
|
132
|
+
scrollToBottom: g,
|
|
133
|
+
scrollToBubble: F
|
|
134
|
+
}), (t, n) => {
|
|
135
|
+
const b = G("el-icon");
|
|
136
|
+
return p(), B("div", re, [
|
|
137
|
+
u(d(Q), {
|
|
138
|
+
ref_key: "scrollbarRef",
|
|
139
|
+
ref: c,
|
|
140
|
+
class: "vk-bubble-list",
|
|
141
|
+
"append-to": i.scrollbarAppendTo,
|
|
142
|
+
always: i.alwaysShowScrollbar,
|
|
143
|
+
"hide-after": 800,
|
|
144
|
+
onScroll: h
|
|
145
|
+
}, {
|
|
146
|
+
default: l(() => [
|
|
147
|
+
(p(!0), B(H, null, I(i.list, (e, y) => (p(), w(d(X), {
|
|
148
|
+
key: e.key || y,
|
|
149
|
+
content: e.content,
|
|
150
|
+
placement: e.placement,
|
|
151
|
+
loading: e.loading,
|
|
152
|
+
shape: e.shape,
|
|
153
|
+
variant: e.variant,
|
|
154
|
+
"is-markdown": e.isMarkdown,
|
|
155
|
+
"is-fog": e.isFog,
|
|
156
|
+
typing: e.typing,
|
|
157
|
+
"max-width": e.maxWidth,
|
|
158
|
+
avatar: e.avatar,
|
|
159
|
+
"avatar-size": e.avatarSize,
|
|
160
|
+
"avatar-gap": e.avatarGap,
|
|
161
|
+
"avatar-shape": e.avatarShape,
|
|
162
|
+
"avatar-src-set": e.avatarSrcSet,
|
|
163
|
+
"avatar-alt": e.avatarAlt,
|
|
164
|
+
"avatar-fit": e.avatarFit,
|
|
165
|
+
"no-style": e.noStyle,
|
|
166
|
+
class: C({
|
|
167
|
+
[`is-${e.role}`]: !0
|
|
212
168
|
})
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
/* DYNAMIC */
|
|
216
|
-
}, [
|
|
217
|
-
_ctx.$slots.avatar ? {
|
|
169
|
+
}, z({ _: 2 }, [
|
|
170
|
+
t.$slots.avatar ? {
|
|
218
171
|
name: "avatar",
|
|
219
|
-
fn:
|
|
220
|
-
|
|
172
|
+
fn: l(() => [
|
|
173
|
+
s(t.$slots, "avatar", { item: e })
|
|
221
174
|
]),
|
|
222
175
|
key: "0"
|
|
223
176
|
} : void 0,
|
|
224
|
-
|
|
177
|
+
t.$slots.header ? {
|
|
225
178
|
name: "header",
|
|
226
|
-
fn:
|
|
227
|
-
|
|
179
|
+
fn: l(() => [
|
|
180
|
+
s(t.$slots, "header", { item: e })
|
|
228
181
|
]),
|
|
229
182
|
key: "1"
|
|
230
183
|
} : void 0,
|
|
231
|
-
|
|
184
|
+
t.$slots.content ? {
|
|
232
185
|
name: "content",
|
|
233
|
-
fn:
|
|
234
|
-
|
|
186
|
+
fn: l(() => [
|
|
187
|
+
s(t.$slots, "content", { item: e })
|
|
235
188
|
]),
|
|
236
189
|
key: "2"
|
|
237
190
|
} : void 0,
|
|
238
|
-
|
|
191
|
+
t.$slots.footer ? {
|
|
239
192
|
name: "footer",
|
|
240
|
-
fn:
|
|
241
|
-
|
|
193
|
+
fn: l(() => [
|
|
194
|
+
s(t.$slots, "footer", { item: e })
|
|
242
195
|
]),
|
|
243
196
|
key: "3"
|
|
244
197
|
} : void 0,
|
|
245
|
-
|
|
198
|
+
t.$slots.loading ? {
|
|
246
199
|
name: "loading",
|
|
247
|
-
fn:
|
|
248
|
-
|
|
200
|
+
fn: l(() => [
|
|
201
|
+
s(t.$slots, "loading", { item: e })
|
|
249
202
|
]),
|
|
250
203
|
key: "4"
|
|
251
204
|
} : void 0
|
|
252
|
-
]), 1032, ["content", "placement", "loading", "shape", "variant", "is-markdown", "is-fog", "typing", "max-width", "avatar", "avatar-size", "avatar-gap", "avatar-shape", "avatar-src-set", "avatar-alt", "avatar-fit", "no-style", "class"])
|
|
205
|
+
]), 1032, ["content", "placement", "loading", "shape", "variant", "is-markdown", "is-fog", "typing", "max-width", "avatar", "avatar-size", "avatar-gap", "avatar-shape", "avatar-src-set", "avatar-alt", "avatar-fit", "no-style", "class"]))), 128))
|
|
206
|
+
]),
|
|
207
|
+
_: 3
|
|
208
|
+
}, 8, ["append-to", "always"]),
|
|
209
|
+
L(M("div", {
|
|
210
|
+
class: C(["vk-bubble-list-default-back-button", {
|
|
211
|
+
"vk-bubble-list-back-to-bottom-solt": t.$slots.backToBottom
|
|
212
|
+
}]),
|
|
213
|
+
style: R({
|
|
214
|
+
bottom: i.backButtonPosition.bottom,
|
|
215
|
+
left: i.backButtonPosition.left
|
|
253
216
|
}),
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
[
|
|
274
|
-
renderSlot(_ctx.$slots, "backToBottom", {}, () => [
|
|
275
|
-
createVNode(_component_el_icon, {
|
|
276
|
-
class: "vk-bubble-list-back-to-bottom-icon",
|
|
277
|
-
style: normalizeStyle({ color: $setup.props.btnColor })
|
|
278
|
-
}, {
|
|
279
|
-
default: withCtx(() => [
|
|
280
|
-
createVNode($setup["ArrowDownBold"]),
|
|
281
|
-
$setup.props.btnLoading ? (openBlock(), createBlock($setup["loadingBg"], {
|
|
282
|
-
key: 0,
|
|
283
|
-
class: "back-to-bottom-loading-svg-bg"
|
|
284
|
-
})) : createCommentVNode("v-if", true)
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
/* STABLE */
|
|
288
|
-
}, 8, ["style"])
|
|
217
|
+
onClick: g
|
|
218
|
+
}, [
|
|
219
|
+
s(t.$slots, "backToBottom", {}, () => [
|
|
220
|
+
u(b, {
|
|
221
|
+
class: "vk-bubble-list-back-to-bottom-icon",
|
|
222
|
+
style: R({ color: r.btnColor })
|
|
223
|
+
}, {
|
|
224
|
+
default: l(() => [
|
|
225
|
+
u(d(J)),
|
|
226
|
+
r.btnLoading ? (p(), w(ae, {
|
|
227
|
+
key: 0,
|
|
228
|
+
class: "back-to-bottom-loading-svg-bg"
|
|
229
|
+
})) : j("", !0)
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["style"])
|
|
233
|
+
])
|
|
234
|
+
], 6), [
|
|
235
|
+
[D, A.value]
|
|
289
236
|
])
|
|
290
|
-
]
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
[vShow, $setup.btnShow]
|
|
295
|
-
])
|
|
296
|
-
]);
|
|
297
|
-
}
|
|
298
|
-
var BubbleList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/bubble-list/src/core/index.vue"]]);
|
|
299
|
-
|
|
300
|
-
const props = {
|
|
237
|
+
]);
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}), se = {
|
|
301
241
|
items: {
|
|
302
242
|
type: Array,
|
|
303
243
|
default: () => []
|
|
304
244
|
},
|
|
305
245
|
elRef: {
|
|
306
246
|
type: Function,
|
|
307
|
-
default:
|
|
247
|
+
default: ee
|
|
308
248
|
},
|
|
309
249
|
scrollbarAppendTo: null,
|
|
310
250
|
autoScrollThreshold: {
|
|
311
251
|
type: Number,
|
|
312
252
|
default: 200
|
|
313
253
|
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
...{
|
|
318
|
-
name: "VkBubbleList",
|
|
319
|
-
inheritAttrs: false
|
|
320
|
-
},
|
|
254
|
+
}, k = /* @__PURE__ */ _({
|
|
255
|
+
name: "VkBubbleList",
|
|
256
|
+
inheritAttrs: !1,
|
|
321
257
|
__name: "index",
|
|
322
|
-
props:
|
|
323
|
-
setup(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
default: withCtx(({ height }) => [
|
|
348
|
-
createVNode($setup["BubbleList"], mergeProps({
|
|
349
|
-
ref: _ctx.elRef,
|
|
350
|
-
"btn-icon-size": 18,
|
|
351
|
-
"max-height": `${height}px`,
|
|
352
|
-
"scrollbar-append-to": _ctx.scrollbarAppendTo,
|
|
353
|
-
"auto-scroll-threshold": _ctx.autoScrollThreshold,
|
|
354
|
-
style: {
|
|
355
|
-
"--el-bubble-list-max-height": `${height}px`
|
|
356
|
-
},
|
|
357
|
-
list: _ctx.items
|
|
358
|
-
}, _ctx.$attrs), createSlots({
|
|
359
|
-
content: withCtx(({ item }) => [
|
|
360
|
-
createVNode($setup["VkBubbleRenderer"], {
|
|
361
|
-
source: [item]
|
|
362
|
-
}, null, 8, ["source"])
|
|
363
|
-
]),
|
|
364
|
-
_: 2
|
|
365
|
-
/* DYNAMIC */
|
|
366
|
-
}, [
|
|
367
|
-
_ctx.$slots.avatar ? {
|
|
368
|
-
name: "avatar",
|
|
369
|
-
fn: withCtx((e) => [
|
|
370
|
-
renderSlot(_ctx.$slots, "avatar", normalizeProps(guardReactiveProps(e)))
|
|
371
|
-
]),
|
|
372
|
-
key: "0"
|
|
373
|
-
} : void 0,
|
|
374
|
-
_ctx.$slots.header ? {
|
|
375
|
-
name: "header",
|
|
376
|
-
fn: withCtx((e) => [
|
|
377
|
-
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(e)))
|
|
378
|
-
]),
|
|
379
|
-
key: "1"
|
|
380
|
-
} : void 0,
|
|
381
|
-
_ctx.$slots.loading ? {
|
|
382
|
-
name: "loading",
|
|
383
|
-
fn: withCtx((e) => [
|
|
384
|
-
renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(e)))
|
|
385
|
-
]),
|
|
386
|
-
key: "2"
|
|
387
|
-
} : void 0,
|
|
388
|
-
_ctx.$slots.footer ? {
|
|
389
|
-
name: "footer",
|
|
390
|
-
fn: withCtx((e) => [
|
|
391
|
-
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps(e)))
|
|
258
|
+
props: se,
|
|
259
|
+
setup(i) {
|
|
260
|
+
return (o, r) => (p(), w(d(Z), null, {
|
|
261
|
+
placeholder: l(() => [
|
|
262
|
+
u(d(U))
|
|
263
|
+
]),
|
|
264
|
+
default: l(() => [
|
|
265
|
+
s(o.$slots, "renderer"),
|
|
266
|
+
u(d(W), null, {
|
|
267
|
+
default: l(({ height: c }) => [
|
|
268
|
+
u(ne, O({
|
|
269
|
+
ref: o.elRef,
|
|
270
|
+
"btn-icon-size": 18,
|
|
271
|
+
"max-height": `${c}px`,
|
|
272
|
+
"scrollbar-append-to": o.scrollbarAppendTo,
|
|
273
|
+
"auto-scroll-threshold": o.autoScrollThreshold,
|
|
274
|
+
style: {
|
|
275
|
+
"--el-bubble-list-max-height": `${c}px`
|
|
276
|
+
},
|
|
277
|
+
list: o.items
|
|
278
|
+
}, o.$attrs), z({
|
|
279
|
+
content: l(({ item: a }) => [
|
|
280
|
+
u(d(q), {
|
|
281
|
+
source: [a]
|
|
282
|
+
}, null, 8, ["source"])
|
|
392
283
|
]),
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
284
|
+
_: 2
|
|
285
|
+
}, [
|
|
286
|
+
o.$slots.avatar ? {
|
|
287
|
+
name: "avatar",
|
|
288
|
+
fn: l((a) => [
|
|
289
|
+
s(o.$slots, "avatar", m(v(a)))
|
|
290
|
+
]),
|
|
291
|
+
key: "0"
|
|
292
|
+
} : void 0,
|
|
293
|
+
o.$slots.header ? {
|
|
294
|
+
name: "header",
|
|
295
|
+
fn: l((a) => [
|
|
296
|
+
s(o.$slots, "header", m(v(a)))
|
|
297
|
+
]),
|
|
298
|
+
key: "1"
|
|
299
|
+
} : void 0,
|
|
300
|
+
o.$slots.loading ? {
|
|
301
|
+
name: "loading",
|
|
302
|
+
fn: l((a) => [
|
|
303
|
+
s(o.$slots, "loading", m(v(a)))
|
|
304
|
+
]),
|
|
305
|
+
key: "2"
|
|
306
|
+
} : void 0,
|
|
307
|
+
o.$slots.footer ? {
|
|
308
|
+
name: "footer",
|
|
309
|
+
fn: l((a) => [
|
|
310
|
+
s(o.$slots, "footer", m(v(a)))
|
|
311
|
+
]),
|
|
312
|
+
key: "3"
|
|
313
|
+
} : void 0
|
|
314
|
+
]), 1040, ["max-height", "scrollbar-append-to", "auto-scroll-threshold", "style", "list"])
|
|
315
|
+
]),
|
|
316
|
+
_: 3
|
|
317
|
+
})
|
|
318
|
+
]),
|
|
319
|
+
_: 3
|
|
320
|
+
}));
|
|
321
|
+
}
|
|
322
|
+
}), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
408
323
|
__proto__: null
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
324
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
325
|
+
k.install = (i) => {
|
|
326
|
+
i.component(k.name || "VkBubbleList", k);
|
|
327
|
+
};
|
|
328
|
+
export {
|
|
329
|
+
Be as Role,
|
|
330
|
+
k as VkBubbleList,
|
|
331
|
+
ge as __VkBubbleList,
|
|
332
|
+
k as default
|
|
413
333
|
};
|
|
414
|
-
|
|
415
|
-
export { VkBubbleList, types as __VkBubbleList, VkBubbleList as default };
|