@vunk/plus 1.12.2 → 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 +68 -95
- package/components/monaco-editor/src/index.vue.d.ts +3 -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 +10 -10
- package/components/table-columns/src/el-ctx.d.ts +1 -1
- package/components/table-columns/src/index.vue.d.ts +24 -23
- package/components/tables-v1/index.cjs +1 -0
- package/components/tables-v1/index.mjs +99 -160
- package/components/tables-v1/src/ctx.d.ts +28 -28
- package/components/tables-v1/src/el-ctx.d.ts +2 -2
- package/components/tables-v1/src/index.vue.d.ts +88 -2243
- 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 +26 -26
- package/components/tables-v1-checkbox/src/index.vue.d.ts +176 -2330
- package/components/text/index.cjs +1 -0
- package/components/text/index.mjs +70 -108
- package/components/text/src/ctx.d.ts +31 -31
- 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 +22 -2044
- 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,164 +1,118 @@
|
|
|
1
|
-
import { defineComponent, createVNode, createTextVNode } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const props = {
|
|
1
|
+
import { defineComponent as g, createVNode as e, createTextVNode as k } from "vue";
|
|
2
|
+
import { AudioMutedOutlined as I, AudioOutlined as S } from "@ant-design/icons-vue";
|
|
3
|
+
import { useRecorder as T } from "@vunk/plus/composables/recorder";
|
|
4
|
+
import { Button as v } from "ant-design-vue";
|
|
5
|
+
const R = {
|
|
8
6
|
disabled: {
|
|
9
7
|
type: Boolean,
|
|
10
|
-
default:
|
|
8
|
+
default: !1
|
|
11
9
|
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
stop: (_) => true,
|
|
10
|
+
}, b = {
|
|
11
|
+
stop: (o) => !0,
|
|
15
12
|
start: null
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const SIZE$1 = 1e3;
|
|
19
|
-
const STROKE_WIDTH = 50;
|
|
20
|
-
const CIRCLE_RADIUS = 200;
|
|
21
|
-
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
13
|
+
}, t = 1e3, x = 50, f = 200, E = /* @__PURE__ */ g({
|
|
22
14
|
name: "AXSenderLoadingIcon",
|
|
23
15
|
setup() {
|
|
24
|
-
return () => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}, null)])]);
|
|
47
|
-
};
|
|
16
|
+
return () => e("svg", {
|
|
17
|
+
color: "currentColor",
|
|
18
|
+
viewBox: `0 0 ${t} ${t}`,
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
21
|
+
}, [e("title", null, [k("Speech Loading")]), e("circle", {
|
|
22
|
+
cx: t / 2,
|
|
23
|
+
cy: t / 2,
|
|
24
|
+
r: f,
|
|
25
|
+
fill: "none",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
"stroke-width": x,
|
|
28
|
+
"stroke-linecap": "round",
|
|
29
|
+
"stroke-dasharray": `${Math.PI * f * 0.75} ${Math.PI * f * 0.25}`
|
|
30
|
+
}, [e("animateTransform", {
|
|
31
|
+
attributeName: "transform",
|
|
32
|
+
type: "rotate",
|
|
33
|
+
from: `0 ${t / 2} ${t / 2}`,
|
|
34
|
+
to: `360 ${t / 2} ${t / 2}`,
|
|
35
|
+
dur: "1s",
|
|
36
|
+
repeatCount: "indefinite"
|
|
37
|
+
}, null)])]);
|
|
48
38
|
}
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
var LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/LoadingIcon.vue"]]);
|
|
52
|
-
|
|
53
|
-
const SIZE = 1e3;
|
|
54
|
-
const COUNT = 4;
|
|
55
|
-
const RECT_WIDTH = 140;
|
|
56
|
-
const RECT_RADIUS = RECT_WIDTH / 2;
|
|
57
|
-
const RECT_HEIGHT_MIN = 250;
|
|
58
|
-
const RECT_HEIGHT_MAX = 500;
|
|
59
|
-
const DURATION = 0.8;
|
|
60
|
-
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
39
|
+
}), s = 1e3, l = 4, d = 140, $ = d / 2, u = 250, _ = 500, a = 0.8, w = /* @__PURE__ */ g({
|
|
61
40
|
name: "AXSenderRecordingIcon",
|
|
62
41
|
setup() {
|
|
63
|
-
return () => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"begin": `${DURATION / COUNT * index}s`,
|
|
98
|
-
"repeatCount": "indefinite"
|
|
99
|
-
}, null)]);
|
|
100
|
-
})]);
|
|
101
|
-
};
|
|
42
|
+
return () => e("svg", {
|
|
43
|
+
color: "currentColor",
|
|
44
|
+
viewBox: `0 0 ${s} ${s}`,
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
47
|
+
}, [e("title", null, [k("Speech Recording")]), Array.from({
|
|
48
|
+
length: l
|
|
49
|
+
}).map((o, n) => {
|
|
50
|
+
const p = (s - d * l) / (l - 1), i = n * (p + d), r = s / 2 - u / 2, c = s / 2 - _ / 2;
|
|
51
|
+
return e("rect", {
|
|
52
|
+
fill: "currentColor",
|
|
53
|
+
rx: $,
|
|
54
|
+
ry: $,
|
|
55
|
+
height: u,
|
|
56
|
+
width: d,
|
|
57
|
+
x: i,
|
|
58
|
+
y: r,
|
|
59
|
+
key: n
|
|
60
|
+
}, [e("animate", {
|
|
61
|
+
attributeName: "height",
|
|
62
|
+
values: `${u}; ${_}; ${u}`,
|
|
63
|
+
keyTimes: "0; 0.5; 1",
|
|
64
|
+
dur: `${a}s`,
|
|
65
|
+
begin: `${a / l * n}s`,
|
|
66
|
+
repeatCount: "indefinite"
|
|
67
|
+
}, null), e("animate", {
|
|
68
|
+
attributeName: "y",
|
|
69
|
+
values: `${r}; ${c}; ${r}`,
|
|
70
|
+
keyTimes: "0; 0.5; 1",
|
|
71
|
+
dur: `${a}s`,
|
|
72
|
+
begin: `${a / l * n}s`,
|
|
73
|
+
repeatCount: "indefinite"
|
|
74
|
+
}, null)]);
|
|
75
|
+
})]);
|
|
102
76
|
}
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
var RecordingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/RecordingIcon.vue"]]);
|
|
106
|
-
|
|
107
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
77
|
+
}), h = /* @__PURE__ */ g({
|
|
108
78
|
name: "VkSpeechButton",
|
|
109
79
|
components: {
|
|
110
|
-
RecordingIcon
|
|
80
|
+
RecordingIcon: w
|
|
111
81
|
},
|
|
112
|
-
props,
|
|
113
|
-
emits,
|
|
114
|
-
setup(
|
|
115
|
-
emit
|
|
82
|
+
props: R,
|
|
83
|
+
emits: b,
|
|
84
|
+
setup(o, {
|
|
85
|
+
emit: n
|
|
116
86
|
}) {
|
|
117
87
|
const {
|
|
118
|
-
openOrStart,
|
|
119
|
-
recording,
|
|
120
|
-
stop,
|
|
121
|
-
opening
|
|
122
|
-
} =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
};
|
|
135
|
-
const iconRender = () => {
|
|
136
|
-
if (props2.disabled) return createVNode(AudioMutedOutlined, null, null);
|
|
137
|
-
if (opening.value) return createVNode(LoadingIcon, null, null);
|
|
138
|
-
if (recording.value) {
|
|
139
|
-
return createVNode(RecordingIcon, {
|
|
140
|
-
"class": "vk-speech-button-recording-icon"
|
|
141
|
-
}, null);
|
|
142
|
-
}
|
|
143
|
-
return createVNode(AudioOutlined, null, null);
|
|
144
|
-
};
|
|
145
|
-
return () => createVNode(Button, {
|
|
146
|
-
"onClick": handleClick,
|
|
147
|
-
"class": "vk-speech-button"
|
|
88
|
+
openOrStart: p,
|
|
89
|
+
recording: i,
|
|
90
|
+
stop: r,
|
|
91
|
+
opening: c
|
|
92
|
+
} = T(), C = () => {
|
|
93
|
+
o.disabled || c.value || (i.value ? r().then((m) => {
|
|
94
|
+
n("stop", m);
|
|
95
|
+
}) : p().then((m) => {
|
|
96
|
+
m && n("start");
|
|
97
|
+
}));
|
|
98
|
+
}, y = () => o.disabled ? e(I, null, null) : c.value ? e(E, null, null) : i.value ? e(w, {
|
|
99
|
+
class: "vk-speech-button-recording-icon"
|
|
100
|
+
}, null) : e(S, null, null);
|
|
101
|
+
return () => e(v, {
|
|
102
|
+
onClick: C,
|
|
103
|
+
class: "vk-speech-button"
|
|
148
104
|
}, {
|
|
149
|
-
icon:
|
|
105
|
+
icon: y
|
|
150
106
|
});
|
|
151
107
|
}
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
var VkSpeechButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/index.vue"]]);
|
|
155
|
-
|
|
156
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
108
|
+
}), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
157
109
|
__proto__: null
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
110
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
111
|
+
h.install = (o) => {
|
|
112
|
+
o.component(h.name || "VkSpeechButton", h);
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
h as VkSpeechButton,
|
|
116
|
+
O as __VkSpeechButton,
|
|
117
|
+
h as default
|
|
162
118
|
};
|
|
163
|
-
|
|
164
|
-
export { VkSpeechButton, types as __VkSpeechButton, VkSpeechButton as default };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
4
|
disabled: {
|
|
3
5
|
type: BooleanConstructor;
|
|
4
6
|
default: boolean;
|
|
5
7
|
};
|
|
6
|
-
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
9
|
stop: (_: Blob) => boolean;
|
|
8
10
|
start: null;
|
|
9
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -12,11 +14,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
12
14
|
default: boolean;
|
|
13
15
|
};
|
|
14
16
|
}>> & Readonly<{
|
|
15
|
-
onStart?: ((...args: any[]) => any) | undefined;
|
|
16
17
|
onStop?: ((_: Blob) => any) | undefined;
|
|
18
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
17
19
|
}>, {
|
|
18
20
|
disabled: boolean;
|
|
19
21
|
}, {}, {
|
|
20
|
-
RecordingIcon: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
RecordingIcon: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
23
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
-
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("@vunk/shared/object"),f=require("element-plus"),i=require("vue"),g=require("@vunk/core/shared/utils-vue"),a={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:t=>t.every(u=>["ascending","descending",null].includes(u))}},p=g.bindPropsFactory(a),y=Object.freeze(Object.defineProperty({__proto__:null,createTableColumnBindProps:p,tableColumnProps:a},Symbol.toStringTag,{value:"Module"})),S={...a,source:{type:Array,default:()=>[]}},l=i.defineComponent({name:"VkTableColumns",components:{ElTableColumn:f.ElTableColumn},props:S,setup(t){const u=p(t);return()=>{const c=(b=t.source)=>b.reduce((s,e)=>{if(i.unref(e.hidden))return s;let r={};d.isPlainObject(e.slots)&&(r=e.slots),typeof e.slots=="function"&&(r.default=e.slots),e.children&&(r.default=()=>c(e.children));const n={key:e.prop,...u.value,...d.pickObject(e,{excludes:["children","slots"]})};return Object.keys(n).forEach(o=>{(n[o]===void 0||n[o]===null||n[o]==="")&&Reflect.deleteProperty(n,o)}),s.push(i.h(f.ElTableColumn,n,r)),s},[]);return c(t.source)}}}),m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));l.install=t=>{t.component(l.name,l)};exports.VkTableColumns=l;exports._VkTableColumnsElCtx=y;exports.__VkTableColumns=m;exports.default=l;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { isPlainObject, pickObject } from
|
|
2
|
-
import { ElTableColumn } from
|
|
3
|
-
import { defineComponent, unref, h } from
|
|
4
|
-
import { bindPropsFactory } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const tableColumnProps = {
|
|
1
|
+
import { isPlainObject as p, pickObject as b } from "@vunk/shared/object";
|
|
2
|
+
import { ElTableColumn as c } from "element-plus";
|
|
3
|
+
import { defineComponent as g, unref as y, h as m } from "vue";
|
|
4
|
+
import { bindPropsFactory as S } from "@vunk/core/shared/utils-vue";
|
|
5
|
+
const s = {
|
|
8
6
|
type: {
|
|
9
7
|
type: String,
|
|
10
8
|
default: "default"
|
|
@@ -25,13 +23,13 @@ const tableColumnProps = {
|
|
|
25
23
|
renderHeader: Function,
|
|
26
24
|
sortable: {
|
|
27
25
|
type: [Boolean, String],
|
|
28
|
-
default:
|
|
26
|
+
default: !1
|
|
29
27
|
},
|
|
30
28
|
sortMethod: Function,
|
|
31
29
|
sortBy: [String, Function, Array],
|
|
32
30
|
resizable: {
|
|
33
31
|
type: Boolean,
|
|
34
|
-
default:
|
|
32
|
+
default: !0
|
|
35
33
|
},
|
|
36
34
|
columnKey: String,
|
|
37
35
|
align: String,
|
|
@@ -48,91 +46,63 @@ const tableColumnProps = {
|
|
|
48
46
|
filterPlacement: String,
|
|
49
47
|
filterMultiple: {
|
|
50
48
|
type: Boolean,
|
|
51
|
-
default:
|
|
49
|
+
default: !0
|
|
52
50
|
},
|
|
53
51
|
index: [Number, Function],
|
|
54
52
|
sortOrders: {
|
|
55
53
|
type: Array,
|
|
56
|
-
default: () =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return val.every(
|
|
61
|
-
(order) => ["ascending", "descending", null].includes(order)
|
|
62
|
-
);
|
|
63
|
-
}
|
|
54
|
+
default: () => ["ascending", "descending", null],
|
|
55
|
+
validator: (t) => t.every(
|
|
56
|
+
(l) => ["ascending", "descending", null].includes(l)
|
|
57
|
+
)
|
|
64
58
|
}
|
|
65
|
-
}
|
|
66
|
-
const createTableColumnBindProps = bindPropsFactory(tableColumnProps);
|
|
67
|
-
|
|
68
|
-
var elCtx = /*#__PURE__*/Object.freeze({
|
|
59
|
+
}, d = S(s), v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
69
60
|
__proto__: null,
|
|
70
|
-
createTableColumnBindProps:
|
|
71
|
-
tableColumnProps:
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
const props = {
|
|
75
|
-
...tableColumnProps,
|
|
61
|
+
createTableColumnBindProps: d,
|
|
62
|
+
tableColumnProps: s
|
|
63
|
+
}, Symbol.toStringTag, { value: "Module" })), h = {
|
|
64
|
+
...s,
|
|
76
65
|
source: {
|
|
77
66
|
type: Array,
|
|
78
67
|
default: () => []
|
|
79
68
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
var _sfc_main = defineComponent({
|
|
69
|
+
}, i = g({
|
|
83
70
|
name: "VkTableColumns",
|
|
84
71
|
components: {
|
|
85
|
-
ElTableColumn
|
|
72
|
+
ElTableColumn: c
|
|
86
73
|
},
|
|
87
|
-
props,
|
|
88
|
-
setup(
|
|
89
|
-
const
|
|
74
|
+
props: h,
|
|
75
|
+
setup(t) {
|
|
76
|
+
const l = d(t);
|
|
90
77
|
return () => {
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const hidden = unref(item.hidden);
|
|
94
|
-
if (hidden) {
|
|
95
|
-
return a;
|
|
96
|
-
}
|
|
97
|
-
let slots = {};
|
|
98
|
-
if (isPlainObject(item.slots)) {
|
|
99
|
-
slots = item.slots;
|
|
100
|
-
}
|
|
101
|
-
if (typeof item.slots === "function") {
|
|
102
|
-
slots.default = item.slots;
|
|
103
|
-
}
|
|
104
|
-
if (item.children) {
|
|
105
|
-
slots.default = () => createCols(item.children);
|
|
106
|
-
}
|
|
107
|
-
const attr = {
|
|
108
|
-
key: item.prop,
|
|
109
|
-
...coreBindProps.value,
|
|
110
|
-
...pickObject(item, {
|
|
111
|
-
excludes: ["children", "slots"]
|
|
112
|
-
})
|
|
113
|
-
};
|
|
114
|
-
Object.keys(attr).forEach((key) => {
|
|
115
|
-
if (attr[key] === void 0 || attr[key] === null || attr[key] === "") {
|
|
116
|
-
Reflect.deleteProperty(attr, key);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
a.push(h(ElTableColumn, attr, slots));
|
|
78
|
+
const u = (f = t.source) => f.reduce((a, e) => {
|
|
79
|
+
if (y(e.hidden))
|
|
120
80
|
return a;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
81
|
+
let r = {};
|
|
82
|
+
p(e.slots) && (r = e.slots), typeof e.slots == "function" && (r.default = e.slots), e.children && (r.default = () => u(e.children));
|
|
83
|
+
const n = {
|
|
84
|
+
key: e.prop,
|
|
85
|
+
...l.value,
|
|
86
|
+
...b(e, {
|
|
87
|
+
excludes: ["children", "slots"]
|
|
88
|
+
})
|
|
89
|
+
};
|
|
90
|
+
return Object.keys(n).forEach((o) => {
|
|
91
|
+
(n[o] === void 0 || n[o] === null || n[o] === "") && Reflect.deleteProperty(n, o);
|
|
92
|
+
}), a.push(m(c, n, r)), a;
|
|
93
|
+
}, []);
|
|
94
|
+
return u(t.source);
|
|
124
95
|
};
|
|
125
96
|
}
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
var VkTableColumns = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/table-columns/src/index.vue"]]);
|
|
129
|
-
|
|
130
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
97
|
+
}), P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
98
|
__proto__: null
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
99
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
100
|
+
i.install = (t) => {
|
|
101
|
+
t.component(i.name, i);
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
i as VkTableColumns,
|
|
105
|
+
v as _VkTableColumnsElCtx,
|
|
106
|
+
P as __VkTableColumns,
|
|
107
|
+
i as default
|
|
136
108
|
};
|
|
137
|
-
|
|
138
|
-
export { VkTableColumns, elCtx as _VkTableColumnsElCtx, types as __VkTableColumns, VkTableColumns as default };
|
|
@@ -22,13 +22,13 @@ export declare const props: {
|
|
|
22
22
|
type: (StringConstructor | NumberConstructor)[];
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
|
-
renderHeader: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["renderHeader"]>;
|
|
25
|
+
renderHeader: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["renderHeader"]>;
|
|
26
26
|
sortable: {
|
|
27
27
|
type: (BooleanConstructor | StringConstructor)[];
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
-
sortMethod: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortMethod"]>;
|
|
31
|
-
sortBy: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortBy"]>;
|
|
30
|
+
sortMethod: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortMethod"]>;
|
|
31
|
+
sortBy: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortBy"]>;
|
|
32
32
|
resizable: {
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
default: boolean;
|
|
@@ -39,20 +39,20 @@ export declare const props: {
|
|
|
39
39
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
40
40
|
showOverflowTooltip: BooleanConstructor;
|
|
41
41
|
fixed: (BooleanConstructor | StringConstructor)[];
|
|
42
|
-
formatter: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["formatter"]>;
|
|
43
|
-
selectable: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["selectable"]>;
|
|
42
|
+
formatter: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["formatter"]>;
|
|
43
|
+
selectable: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["selectable"]>;
|
|
44
44
|
reserveSelection: BooleanConstructor;
|
|
45
|
-
filterMethod: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filterMethod"]>;
|
|
46
|
-
filteredValue: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filteredValue"]>;
|
|
47
|
-
filters: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filters"]>;
|
|
45
|
+
filterMethod: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filterMethod"]>;
|
|
46
|
+
filteredValue: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filteredValue"]>;
|
|
47
|
+
filters: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filters"]>;
|
|
48
48
|
filterPlacement: StringConstructor;
|
|
49
49
|
filterMultiple: {
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
|
-
index: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["index"]>;
|
|
53
|
+
index: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["index"]>;
|
|
54
54
|
sortOrders: {
|
|
55
|
-
type: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortOrders"]>;
|
|
55
|
+
type: PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortOrders"]>;
|
|
56
56
|
default: () => (string | null)[];
|
|
57
57
|
validator: (val: import("element-plus").TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
58
58
|
};
|
|
@@ -54,4 +54,4 @@ export declare const tableColumnProps: {
|
|
|
54
54
|
validator: (val: TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"
|
|
57
|
+
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"fixed", keyof T2> | Extract<"index", keyof T2> | Extract<"width", keyof T2> | Extract<"filters", keyof T2> | Extract<"property", keyof T2> | Extract<"className", keyof T2> | Extract<"resizable", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"fixed", keyof T2>, KE> | Exclude<Extract<"index", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"filters", keyof T2>, KE> | Exclude<Extract<"property", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"labelClassName", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"minWidth", keyof T2>, KE> | Exclude<Extract<"renderHeader", keyof T2>, KE> | Exclude<Extract<"sortable", keyof T2>, KE> | Exclude<Extract<"sortMethod", keyof T2>, KE> | Exclude<Extract<"sortBy", keyof T2>, KE> | Exclude<Extract<"columnKey", keyof T2>, KE> | Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"headerAlign", keyof T2>, KE> | Exclude<Extract<"showOverflowTooltip", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"selectable", keyof T2>, KE> | Exclude<Extract<"reserveSelection", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"filteredValue", keyof T2>, KE> | Exclude<Extract<"filterPlacement", keyof T2>, KE> | Exclude<Extract<"filterMultiple", keyof T2>, KE> | Exclude<Extract<"sortOrders", keyof T2>, KE> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"fixed", keyof T2> | Extract<"index", keyof T2> | Extract<"width", keyof T2> | Extract<"filters", keyof T2> | Extract<"property", keyof T2> | Extract<"className", keyof T2> | Extract<"resizable", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"fixed", keyof T2> | Extract<"index", keyof T2> | Extract<"width", keyof T2> | Extract<"filters", keyof T2> | Extract<"property", keyof T2> | Extract<"className", keyof T2> | Extract<"resizable", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: T2[k]; }[P]; }>;
|