yc-agent-ui 1.1.2 → 1.2.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.
Files changed (145) hide show
  1. package/es/components/dialog-form/index.d.ts +4 -4
  2. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  3. package/es/components/display-item/index.d.ts +15 -15
  4. package/es/components/display-item/src/index.vue.d.ts +13 -13
  5. package/es/components/drawer-form/index.d.ts +4 -4
  6. package/es/components/drawer-form/src/index.vue.d.ts +4 -4
  7. package/es/components/form/index.d.ts +8 -8
  8. package/es/components/form/src/form-content.vue.d.ts +8 -8
  9. package/es/components/form/src/index.vue.d.ts +8 -8
  10. package/es/components/form-item/index.d.ts +6 -6
  11. package/es/components/form-item/src/index.vue.d.ts +6 -6
  12. package/es/components/index.d.ts +1 -0
  13. package/es/components/page/index.d.ts +172 -172
  14. package/es/components/page/src/index.vue.d.ts +60 -60
  15. package/es/components/search/index.d.ts +52 -52
  16. package/es/components/search/src/index.vue.d.ts +20 -20
  17. package/es/components/table/src/table-column.vue.d.ts +34 -34
  18. package/es/components/yc-ai-chat/index.d.ts +14 -0
  19. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +27 -0
  20. package/es/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  21. package/es/components/yc-ai-chat/src/mobile-frame.vue.d.ts +31 -0
  22. package/es/components/yc-ai-chat/src/presets.d.ts +6 -0
  23. package/es/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  24. package/es/components/yc-ai-chat/src/sender.vue.d.ts +44 -0
  25. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +23 -0
  26. package/es/components/yc-ai-chat/src/studio.vue.d.ts +46 -0
  27. package/es/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  28. package/es/components/yc-ai-chat/src/type.d.ts +34 -0
  29. package/es/components/yc-ai-chat/src/welcome.vue.d.ts +19 -0
  30. package/es/components/yc-plus-page/src/index.vue.d.ts +176 -176
  31. package/es/hooks/usePlusFormReset.d.ts +48 -48
  32. package/es/index.css +10 -10
  33. package/es/index.mjs +10 -0
  34. package/es/packages/components/index.mjs +10 -0
  35. package/es/packages/components/yc-ai-chat/index.mjs +14 -0
  36. package/es/packages/components/yc-ai-chat/src/bubble.vue.mjs +5 -0
  37. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +289 -0
  38. package/es/packages/components/yc-ai-chat/src/file-card.vue.mjs +5 -0
  39. package/es/packages/components/yc-ai-chat/src/file-card2.vue.mjs +127 -0
  40. package/es/packages/components/yc-ai-chat/src/mobile-frame.vue.mjs +5 -0
  41. package/es/packages/components/yc-ai-chat/src/mobile-frame2.vue.mjs +245 -0
  42. package/es/packages/components/yc-ai-chat/src/presets.mjs +55 -0
  43. package/es/packages/components/yc-ai-chat/src/select.vue.mjs +5 -0
  44. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +337 -0
  45. package/es/packages/components/yc-ai-chat/src/sender.vue.mjs +5 -0
  46. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +432 -0
  47. package/es/packages/components/yc-ai-chat/src/sidebar.vue.mjs +5 -0
  48. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +251 -0
  49. package/es/packages/components/yc-ai-chat/src/studio.vue.mjs +5 -0
  50. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +421 -0
  51. package/es/packages/components/yc-ai-chat/src/thinking.vue.mjs +5 -0
  52. package/es/packages/components/yc-ai-chat/src/thinking2.vue.mjs +88 -0
  53. package/es/packages/components/yc-ai-chat/src/type.mjs +1 -0
  54. package/es/packages/components/yc-ai-chat/src/welcome.vue.mjs +5 -0
  55. package/es/packages/components/yc-ai-chat/src/welcome2.vue.mjs +113 -0
  56. package/es/version.d.ts +1 -1
  57. package/es/version.mjs +1 -1
  58. package/index.css +12 -2
  59. package/index.js +18953 -17197
  60. package/index.min.css +11 -1
  61. package/index.min.js +44 -28
  62. package/index.min.mjs +44 -28
  63. package/index.mjs +18931 -17186
  64. package/lib/components/dialog-form/index.d.ts +4 -4
  65. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  66. package/lib/components/display-item/index.d.ts +15 -15
  67. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  68. package/lib/components/drawer-form/index.d.ts +4 -4
  69. package/lib/components/drawer-form/src/index.vue.d.ts +4 -4
  70. package/lib/components/form/index.d.ts +8 -8
  71. package/lib/components/form/src/form-content.vue.d.ts +8 -8
  72. package/lib/components/form/src/index.vue.d.ts +8 -8
  73. package/lib/components/form-item/index.d.ts +6 -6
  74. package/lib/components/form-item/src/index.vue.d.ts +6 -6
  75. package/lib/components/index.d.ts +1 -0
  76. package/lib/components/page/index.d.ts +172 -172
  77. package/lib/components/page/src/index.vue.d.ts +60 -60
  78. package/lib/components/search/index.d.ts +52 -52
  79. package/lib/components/search/src/index.vue.d.ts +20 -20
  80. package/lib/components/table/src/table-column.vue.d.ts +34 -34
  81. package/lib/components/yc-ai-chat/index.d.ts +14 -0
  82. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +27 -0
  83. package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  84. package/lib/components/yc-ai-chat/src/mobile-frame.vue.d.ts +31 -0
  85. package/lib/components/yc-ai-chat/src/presets.d.ts +6 -0
  86. package/lib/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  87. package/lib/components/yc-ai-chat/src/sender.vue.d.ts +44 -0
  88. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +23 -0
  89. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +46 -0
  90. package/lib/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  91. package/lib/components/yc-ai-chat/src/type.d.ts +34 -0
  92. package/lib/components/yc-ai-chat/src/welcome.vue.d.ts +19 -0
  93. package/lib/components/yc-plus-page/src/index.vue.d.ts +176 -176
  94. package/lib/hooks/usePlusFormReset.d.ts +48 -48
  95. package/lib/index.css +10 -10
  96. package/lib/index.js +23 -0
  97. package/lib/packages/components/index.js +23 -0
  98. package/lib/packages/components/yc-ai-chat/index.js +31 -0
  99. package/lib/packages/components/yc-ai-chat/src/bubble.vue.js +9 -0
  100. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +293 -0
  101. package/lib/packages/components/yc-ai-chat/src/file-card.vue.js +9 -0
  102. package/lib/packages/components/yc-ai-chat/src/file-card2.vue.js +131 -0
  103. package/lib/packages/components/yc-ai-chat/src/mobile-frame.vue.js +9 -0
  104. package/lib/packages/components/yc-ai-chat/src/mobile-frame2.vue.js +249 -0
  105. package/lib/packages/components/yc-ai-chat/src/presets.js +60 -0
  106. package/lib/packages/components/yc-ai-chat/src/select.vue.js +9 -0
  107. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +341 -0
  108. package/lib/packages/components/yc-ai-chat/src/sender.vue.js +9 -0
  109. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +436 -0
  110. package/lib/packages/components/yc-ai-chat/src/sidebar.vue.js +9 -0
  111. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +255 -0
  112. package/lib/packages/components/yc-ai-chat/src/studio.vue.js +9 -0
  113. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +425 -0
  114. package/lib/packages/components/yc-ai-chat/src/thinking.vue.js +9 -0
  115. package/lib/packages/components/yc-ai-chat/src/thinking2.vue.js +92 -0
  116. package/lib/packages/components/yc-ai-chat/src/type.js +2 -0
  117. package/lib/packages/components/yc-ai-chat/src/welcome.vue.js +9 -0
  118. package/lib/packages/components/yc-ai-chat/src/welcome2.vue.js +117 -0
  119. package/lib/version.d.ts +1 -1
  120. package/lib/version.js +1 -1
  121. package/locale/en.js +1 -1
  122. package/locale/en.min.js +1 -1
  123. package/locale/en.min.mjs +1 -1
  124. package/locale/en.mjs +1 -1
  125. package/locale/ja.js +1 -1
  126. package/locale/ja.min.js +1 -1
  127. package/locale/ja.min.mjs +1 -1
  128. package/locale/ja.mjs +1 -1
  129. package/locale/ko.js +1 -1
  130. package/locale/ko.min.js +1 -1
  131. package/locale/ko.min.mjs +1 -1
  132. package/locale/ko.mjs +1 -1
  133. package/locale/zh-cn.js +1 -1
  134. package/locale/zh-cn.min.js +1 -1
  135. package/locale/zh-cn.min.mjs +1 -1
  136. package/locale/zh-cn.mjs +1 -1
  137. package/locale/zh-tw.js +1 -1
  138. package/locale/zh-tw.min.js +1 -1
  139. package/locale/zh-tw.min.mjs +1 -1
  140. package/locale/zh-tw.mjs +1 -1
  141. package/package.json +2 -1
  142. package/theme-chalk/index.css +12 -2
  143. package/theme-chalk/plus-yc-ai-chat.css +1 -0
  144. package/theme-chalk/src/index.scss +1 -0
  145. package/theme-chalk/src/yc-ai-chat.scss +1691 -0
@@ -0,0 +1,293 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var vueElementPlusX = require('vue-element-plus-x');
7
+
8
+ const _hoisted_1 = { class: "yc-chat-bubble__header" };
9
+ const _hoisted_2 = {
10
+ key: 0,
11
+ class: "yc-chat-bubble__sender"
12
+ };
13
+ const _hoisted_3 = { class: "message-body yc-chat-bubble__body" };
14
+ const _hoisted_4 = {
15
+ key: 0,
16
+ class: "message-error yc-chat-bubble__inline-status"
17
+ };
18
+ const _hoisted_5 = {
19
+ key: 0,
20
+ class: "message-metrics yc-chat-bubble__metrics",
21
+ "data-testid": "message-metrics"
22
+ };
23
+ const _hoisted_6 = {
24
+ key: 0,
25
+ class: "message-identifiers yc-chat-bubble__identifiers"
26
+ };
27
+ const _hoisted_7 = { class: "message-identifiers__summary" };
28
+ const _hoisted_8 = {
29
+ class: "message-identifiers__list",
30
+ "aria-label": "\u6D88\u606F\u5B9A\u4F4D\u4FE1\u606F"
31
+ };
32
+ const _hoisted_9 = { class: "message-footer__actions yc-chat-bubble__actions" };
33
+ const _hoisted_10 = ["disabled"];
34
+ const _hoisted_11 = {
35
+ key: 0,
36
+ class: "yc-chat-bubble__action-text"
37
+ };
38
+ const _hoisted_12 = ["disabled"];
39
+ const _hoisted_13 = {
40
+ key: 0,
41
+ class: "yc-chat-bubble__action-text"
42
+ };
43
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
44
+ ...{
45
+ name: "YcChatBubble"
46
+ },
47
+ __name: "bubble",
48
+ props: {
49
+ role: {},
50
+ senderName: { default: "" },
51
+ status: { default: "completed" },
52
+ metrics: { default: () => [] },
53
+ identifiers: { default: () => [] },
54
+ canCopyContent: { type: Boolean, default: true },
55
+ compact: { type: Boolean, default: false }
56
+ },
57
+ emits: ["copy-content", "copy-identifiers"],
58
+ setup(__props, { emit: __emit }) {
59
+ const props = __props;
60
+ const emit = __emit;
61
+ const statusTagText = vue.computed(() => {
62
+ if (props.status === "failed") return "\u751F\u6210\u5931\u8D25";
63
+ if (props.status === "cancelled") return "\u5DF2\u505C\u6B62";
64
+ return "";
65
+ });
66
+ return (_ctx, _cache) => {
67
+ return vue.openBlock(), vue.createElementBlock(
68
+ "div",
69
+ {
70
+ class: vue.normalizeClass(["yc-chat-bubble message-row", [__props.role, { "is-compact": __props.compact }]])
71
+ },
72
+ [
73
+ vue.createVNode(vue.unref(vueElementPlusX.Bubble), {
74
+ placement: __props.role === "user" ? "end" : "start",
75
+ "no-style": true,
76
+ "max-width": "100%"
77
+ }, vue.createSlots({
78
+ content: vue.withCtx(() => [
79
+ vue.createElementVNode(
80
+ "div",
81
+ {
82
+ class: vue.normalizeClass(["message-bubble yc-chat-bubble__surface", [__props.role]])
83
+ },
84
+ [
85
+ vue.createElementVNode("div", _hoisted_3, [
86
+ vue.renderSlot(_ctx.$slots, "default"),
87
+ __props.role === "user" && statusTagText.value ? (vue.openBlock(), vue.createElementBlock(
88
+ "div",
89
+ _hoisted_4,
90
+ vue.toDisplayString(statusTagText.value),
91
+ 1
92
+ /* TEXT */
93
+ )) : vue.createCommentVNode("v-if", true)
94
+ ]),
95
+ __props.role === "assistant" && __props.metrics.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
96
+ (vue.openBlock(true), vue.createElementBlock(
97
+ vue.Fragment,
98
+ null,
99
+ vue.renderList(__props.metrics, (metric) => {
100
+ return vue.openBlock(), vue.createElementBlock(
101
+ "span",
102
+ {
103
+ key: metric.key,
104
+ class: "yc-chat-bubble__metric-pill"
105
+ },
106
+ vue.toDisplayString(metric.text),
107
+ 1
108
+ /* TEXT */
109
+ );
110
+ }),
111
+ 128
112
+ /* KEYED_FRAGMENT */
113
+ ))
114
+ ])) : vue.createCommentVNode("v-if", true)
115
+ ],
116
+ 2
117
+ /* CLASS */
118
+ )
119
+ ]),
120
+ footer: vue.withCtx(() => [
121
+ vue.createElementVNode(
122
+ "div",
123
+ {
124
+ class: vue.normalizeClass(["message-footer yc-chat-bubble__footer", `is-${__props.role}`])
125
+ },
126
+ [
127
+ __props.identifiers.length > 0 ? (vue.openBlock(), vue.createElementBlock("details", _hoisted_6, [
128
+ vue.createElementVNode(
129
+ "summary",
130
+ _hoisted_7,
131
+ " \u8C03\u8BD5\u8FFD\u8E2A ID (" + vue.toDisplayString(__props.identifiers.length) + ") ",
132
+ 1
133
+ /* TEXT */
134
+ ),
135
+ vue.createElementVNode("div", _hoisted_8, [
136
+ (vue.openBlock(true), vue.createElementBlock(
137
+ vue.Fragment,
138
+ null,
139
+ vue.renderList(__props.identifiers, (item) => {
140
+ return vue.openBlock(), vue.createElementBlock(
141
+ "span",
142
+ {
143
+ key: `${item.label}:${item.value}`,
144
+ class: "message-identifier"
145
+ },
146
+ vue.toDisplayString(item.label) + ": " + vue.toDisplayString(item.value),
147
+ 1
148
+ /* TEXT */
149
+ );
150
+ }),
151
+ 128
152
+ /* KEYED_FRAGMENT */
153
+ ))
154
+ ])
155
+ ])) : vue.createCommentVNode("v-if", true),
156
+ vue.createElementVNode("div", _hoisted_9, [
157
+ vue.createElementVNode("button", {
158
+ type: "button",
159
+ class: "message-action-btn",
160
+ "data-testid": "copy-message-content",
161
+ "aria-label": "\u590D\u5236\u6D88\u606F\u5185\u5BB9",
162
+ title: "\u590D\u5236\u6D88\u606F\u5185\u5BB9",
163
+ disabled: !__props.canCopyContent,
164
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("copy-content"))
165
+ }, [
166
+ _cache[3] || (_cache[3] = vue.createElementVNode(
167
+ "svg",
168
+ {
169
+ viewBox: "0 0 16 16",
170
+ fill: "none",
171
+ "aria-hidden": "true"
172
+ },
173
+ [
174
+ vue.createElementVNode("rect", {
175
+ x: "5.5",
176
+ y: "5.5",
177
+ width: "7.5",
178
+ height: "7.5",
179
+ rx: "1.5",
180
+ stroke: "currentColor",
181
+ "stroke-width": "1.3"
182
+ }),
183
+ vue.createElementVNode("path", {
184
+ d: "M3.5 10.5H3A1.5 1.5 0 0 1 1.5 9V3A1.5 1.5 0 0 1 3 1.5H9A1.5 1.5 0 0 1 10.5 3V3.5",
185
+ stroke: "currentColor",
186
+ "stroke-width": "1.3",
187
+ "stroke-linecap": "round"
188
+ })
189
+ ],
190
+ -1
191
+ /* CACHED */
192
+ )),
193
+ !__props.compact ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, "\u590D\u5236")) : vue.createCommentVNode("v-if", true)
194
+ ], 8, _hoisted_10),
195
+ vue.createElementVNode("button", {
196
+ type: "button",
197
+ class: "message-action-btn",
198
+ "data-testid": "copy-message-identifiers",
199
+ "aria-label": "\u590D\u5236\u6D88\u606F ID",
200
+ title: "\u590D\u5236\u6D88\u606F ID",
201
+ disabled: !__props.identifiers.length,
202
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("copy-identifiers"))
203
+ }, [
204
+ _cache[4] || (_cache[4] = vue.createElementVNode(
205
+ "svg",
206
+ {
207
+ viewBox: "0 0 16 16",
208
+ fill: "none",
209
+ "aria-hidden": "true"
210
+ },
211
+ [
212
+ vue.createElementVNode("path", {
213
+ d: "M6.5 9.5L9.5 6.5M5.2 7.3L3.8 8.7A2.5 2.5 0 0 0 7.3 12.2L8.7 10.8M10.8 8.7L12.2 7.3A2.5 2.5 0 0 0 8.7 3.8L7.3 5.2",
214
+ stroke: "currentColor",
215
+ "stroke-width": "1.3",
216
+ "stroke-linecap": "round"
217
+ })
218
+ ],
219
+ -1
220
+ /* CACHED */
221
+ )),
222
+ !__props.compact ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13, "\u8FFD\u8E2A ID")) : vue.createCommentVNode("v-if", true)
223
+ ], 8, _hoisted_12)
224
+ ])
225
+ ],
226
+ 2
227
+ /* CLASS */
228
+ )
229
+ ]),
230
+ _: 2
231
+ /* DYNAMIC */
232
+ }, [
233
+ __props.role === "assistant" ? {
234
+ name: "avatar",
235
+ fn: vue.withCtx(() => [
236
+ _cache[2] || (_cache[2] = vue.createElementVNode(
237
+ "div",
238
+ {
239
+ class: "yc-chat-bubble__avatar is-assistant",
240
+ "aria-hidden": "true"
241
+ },
242
+ [
243
+ vue.createElementVNode("svg", {
244
+ viewBox: "0 0 20 20",
245
+ fill: "none"
246
+ }, [
247
+ vue.createElementVNode("path", {
248
+ d: "M10 3L11.6 8.4L17 10L11.6 11.6L10 17L8.4 11.6L3 10L8.4 8.4L10 3Z",
249
+ fill: "currentColor"
250
+ })
251
+ ])
252
+ ],
253
+ -1
254
+ /* CACHED */
255
+ ))
256
+ ]),
257
+ key: "0"
258
+ } : void 0,
259
+ __props.role === "assistant" && (__props.senderName || statusTagText.value) ? {
260
+ name: "header",
261
+ fn: vue.withCtx(() => [
262
+ vue.createElementVNode("div", _hoisted_1, [
263
+ __props.senderName ? (vue.openBlock(), vue.createElementBlock(
264
+ "span",
265
+ _hoisted_2,
266
+ vue.toDisplayString(__props.senderName),
267
+ 1
268
+ /* TEXT */
269
+ )) : vue.createCommentVNode("v-if", true),
270
+ statusTagText.value ? (vue.openBlock(), vue.createElementBlock(
271
+ "span",
272
+ {
273
+ key: 1,
274
+ class: vue.normalizeClass(["yc-chat-bubble__status message-error", `is-${__props.status}`])
275
+ },
276
+ vue.toDisplayString(statusTagText.value),
277
+ 3
278
+ /* TEXT, CLASS */
279
+ )) : vue.createCommentVNode("v-if", true)
280
+ ])
281
+ ]),
282
+ key: "1"
283
+ } : void 0
284
+ ]), 1032, ["placement"])
285
+ ],
286
+ 2
287
+ /* CLASS */
288
+ );
289
+ };
290
+ }
291
+ });
292
+
293
+ exports.default = _sfc_main;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var fileCard_vue_vue_type_script_setup_true_lang = require('./file-card2.vue.js');
6
+
7
+
8
+
9
+ exports.default = fileCard_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,131 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var vueElementPlusX = require('vue-element-plus-x');
7
+ var presets = require('./presets.js');
8
+
9
+ const _hoisted_1 = ["disabled"];
10
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
11
+ ...{
12
+ name: "YcChatFileCard"
13
+ },
14
+ __name: "file-card",
15
+ props: {
16
+ uid: { default: void 0 },
17
+ name: {},
18
+ fileSize: { default: void 0 },
19
+ mimeType: { default: "" },
20
+ url: { default: "" },
21
+ variant: { default: "artifact" },
22
+ removable: { type: Boolean, default: false },
23
+ downloadable: { type: Boolean, default: false },
24
+ downloading: { type: Boolean, default: false }
25
+ },
26
+ emits: ["remove", "download"],
27
+ setup(__props, { emit: __emit }) {
28
+ const props = __props;
29
+ const emit = __emit;
30
+ const descriptionText = vue.computed(() => {
31
+ const parts = [props.mimeType, presets.formatChatFileSize(props.fileSize)].filter(Boolean);
32
+ return parts.join(" \xB7 ");
33
+ });
34
+ return (_ctx, _cache) => {
35
+ return vue.openBlock(), vue.createElementBlock(
36
+ "div",
37
+ {
38
+ class: vue.normalizeClass([
39
+ "yc-chat-file-card",
40
+ __props.variant === "composer" ? "yc-chat-file-card--composer composer-attachment" : "yc-chat-file-card--artifact artifact-card"
41
+ ])
42
+ },
43
+ [
44
+ vue.createElementVNode(
45
+ "div",
46
+ {
47
+ class: vue.normalizeClass(["yc-chat-file-card__main", { "artifact-main": __props.variant === "artifact" }])
48
+ },
49
+ [
50
+ vue.createVNode(vue.unref(vueElementPlusX.FilesCard), {
51
+ uid: __props.uid,
52
+ name: __props.name || "\u672A\u547D\u540D\u6587\u4EF6",
53
+ "file-size": __props.fileSize,
54
+ description: descriptionText.value || void 0,
55
+ url: __props.url || void 0,
56
+ "icon-size": __props.variant === "composer" ? "28px" : "34px",
57
+ "max-width": __props.variant === "composer" ? "220px" : "100%",
58
+ "show-del-icon": false
59
+ }, null, 8, ["uid", "name", "file-size", "description", "url", "icon-size", "max-width"])
60
+ ],
61
+ 2
62
+ /* CLASS */
63
+ ),
64
+ __props.removable ? (vue.openBlock(), vue.createElementBlock("button", {
65
+ key: 0,
66
+ type: "button",
67
+ class: "yc-chat-file-card__remove composer-attachment-remove",
68
+ "aria-label": "\u79FB\u9664\u9644\u4EF6",
69
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => emit("remove"), ["stop"]))
70
+ }, [..._cache[2] || (_cache[2] = [
71
+ vue.createElementVNode(
72
+ "svg",
73
+ {
74
+ viewBox: "0 0 14 14",
75
+ fill: "none",
76
+ "aria-hidden": "true"
77
+ },
78
+ [
79
+ vue.createElementVNode("path", {
80
+ d: "M4 4L10 10M10 4L4 10",
81
+ stroke: "currentColor",
82
+ "stroke-width": "1.5",
83
+ "stroke-linecap": "round"
84
+ })
85
+ ],
86
+ -1
87
+ /* CACHED */
88
+ )
89
+ ])])) : __props.downloadable ? (vue.openBlock(), vue.createElementBlock("button", {
90
+ key: 1,
91
+ type: "button",
92
+ class: "yc-chat-file-card__download",
93
+ disabled: __props.downloading,
94
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => emit("download"), ["stop"]))
95
+ }, [
96
+ _cache[3] || (_cache[3] = vue.createElementVNode(
97
+ "svg",
98
+ {
99
+ viewBox: "0 0 16 16",
100
+ fill: "none",
101
+ "aria-hidden": "true"
102
+ },
103
+ [
104
+ vue.createElementVNode("path", {
105
+ d: "M8 2.75V10.25M8 10.25L5.25 7.5M8 10.25L10.75 7.5M3.25 12.75H12.75",
106
+ stroke: "currentColor",
107
+ "stroke-width": "1.4",
108
+ "stroke-linecap": "round",
109
+ "stroke-linejoin": "round"
110
+ })
111
+ ],
112
+ -1
113
+ /* CACHED */
114
+ )),
115
+ vue.createElementVNode(
116
+ "span",
117
+ null,
118
+ vue.toDisplayString(__props.downloading ? "\u4E0B\u8F7D\u4E2D\u2026" : "\u4E0B\u8F7D"),
119
+ 1
120
+ /* TEXT */
121
+ )
122
+ ], 8, _hoisted_1)) : vue.createCommentVNode("v-if", true)
123
+ ],
124
+ 2
125
+ /* CLASS */
126
+ );
127
+ };
128
+ }
129
+ });
130
+
131
+ exports.default = _sfc_main;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var mobileFrame_vue_vue_type_script_setup_true_lang = require('./mobile-frame2.vue.js');
6
+
7
+
8
+
9
+ exports.default = mobileFrame_vue_vue_type_script_setup_true_lang.default;