yc-agent-ui 1.2.1 → 1.2.3
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/README.md +26 -5
- package/es/components/chart/src/chart-card.vue.d.ts +56 -10
- package/es/components/chart/src/chart-container.vue.d.ts +11 -1
- package/es/components/chart/src/theme.d.ts +1 -1
- package/es/components/dialog/index.d.ts +6 -6
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +6 -6
- package/es/components/dialog-form/src/index.vue.d.ts +6 -6
- package/es/components/display-item/index.d.ts +21 -21
- package/es/components/display-item/src/index.vue.d.ts +19 -19
- package/es/components/drawer-form/index.d.ts +18 -18
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +12 -12
- package/es/components/form/src/form-content.vue.d.ts +12 -12
- package/es/components/form/src/index.vue.d.ts +12 -12
- package/es/components/form-item/index.d.ts +12 -12
- package/es/components/form-item/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +258 -258
- package/es/components/page/src/index.vue.d.ts +90 -90
- package/es/components/render/index.d.ts +1 -1
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +78 -78
- package/es/components/search/src/index.vue.d.ts +30 -30
- package/es/components/table/src/table-column.vue.d.ts +46 -46
- package/es/components/yc-ai-chat/index.d.ts +1 -0
- package/es/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
- package/es/components/yc-ai-chat/src/select.vue.d.ts +1 -0
- package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +29 -2
- package/es/components/yc-ai-chat/src/studio.vue.d.ts +9 -0
- package/es/components/yc-ai-chat/src/type.d.ts +2 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +144 -144
- package/es/index.css +8 -8
- package/es/index.mjs +1 -0
- package/es/packages/components/chart/src/chart-card2.vue.mjs +9 -2
- package/es/packages/components/chart/src/chart-container2.vue.mjs +13 -1
- package/es/packages/components/chart/src/theme.mjs +18 -10
- package/es/packages/components/data-table/capability.mjs +1 -1
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/components/yc-ai-chat/index.mjs +1 -0
- package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +21 -13
- package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +9 -4
- package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +5 -3
- package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +735 -150
- package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +452 -85
- package/es/packages/components/yc-gradient-card/capability.mjs +8 -8
- package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +48 -24
- package/es/packages/registry/types.mjs +1 -1
- package/es/registry/types.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +5707 -1690
- package/index.min.js +41 -38
- package/index.min.mjs +38 -35
- package/index.mjs +5772 -1765
- package/lib/components/chart/src/chart-card.vue.d.ts +56 -10
- package/lib/components/chart/src/chart-container.vue.d.ts +11 -1
- package/lib/components/chart/src/theme.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +6 -6
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +6 -6
- package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
- package/lib/components/display-item/index.d.ts +21 -21
- package/lib/components/display-item/src/index.vue.d.ts +19 -19
- package/lib/components/drawer-form/index.d.ts +18 -18
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +12 -12
- package/lib/components/form/src/form-content.vue.d.ts +12 -12
- package/lib/components/form/src/index.vue.d.ts +12 -12
- package/lib/components/form-item/index.d.ts +12 -12
- package/lib/components/form-item/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +258 -258
- package/lib/components/page/src/index.vue.d.ts +90 -90
- package/lib/components/render/index.d.ts +1 -1
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +78 -78
- package/lib/components/search/src/index.vue.d.ts +30 -30
- package/lib/components/table/src/table-column.vue.d.ts +46 -46
- package/lib/components/yc-ai-chat/index.d.ts +1 -0
- package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
- package/lib/components/yc-ai-chat/src/select.vue.d.ts +1 -0
- package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +29 -2
- package/lib/components/yc-ai-chat/src/studio.vue.d.ts +9 -0
- package/lib/components/yc-ai-chat/src/type.d.ts +2 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +144 -144
- package/lib/index.css +12 -12
- package/lib/index.js +41 -0
- package/lib/packages/components/chart/src/chart-card2.vue.js +9 -2
- package/lib/packages/components/chart/src/chart-container2.vue.js +13 -1
- package/lib/packages/components/chart/src/theme.js +18 -10
- package/lib/packages/components/data-table/capability.js +1 -1
- package/lib/packages/components/index.js +41 -0
- package/lib/packages/components/yc-ai-chat/index.js +41 -0
- package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +21 -13
- package/lib/packages/components/yc-ai-chat/src/select2.vue.js +9 -4
- package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +5 -3
- package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +734 -149
- package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +451 -84
- package/lib/packages/components/yc-gradient-card/capability.js +8 -8
- package/lib/packages/components/yc-input/src/stepper-input2.vue.js +47 -23
- package/lib/packages/registry/types.js +1 -1
- package/lib/registry/types.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-search.css +1 -1
- package/theme-chalk/plus-yc-ai-chat.css +1 -1
- package/theme-chalk/plus-yc-data-table.css +1 -1
- package/theme-chalk/plus-yc-property-table.css +1 -1
- package/theme-chalk/src/search.scss +93 -3
- package/theme-chalk/src/yc-ai-chat.scss +1281 -114
- package/theme-chalk/src/yc-data-table.scss +57 -42
- package/theme-chalk/src/yc-property-table.scss +35 -14
|
@@ -53,6 +53,7 @@ var studio_vue_vue_type_script_setup_true_lang = require('./yc-ai-chat/src/studi
|
|
|
53
53
|
var thinking_vue_vue_type_script_setup_true_lang = require('./yc-ai-chat/src/thinking2.vue.js');
|
|
54
54
|
var welcome_vue_vue_type_script_setup_true_lang = require('./yc-ai-chat/src/welcome2.vue.js');
|
|
55
55
|
var mobileFrame_vue_vue_type_script_setup_true_lang = require('./yc-ai-chat/src/mobile-frame2.vue.js');
|
|
56
|
+
var vueElementPlusX = require('vue-element-plus-x');
|
|
56
57
|
var type = require('./yc-coss-table/src/type.js');
|
|
57
58
|
var type$1 = require('./yc-config-provider/src/type.js');
|
|
58
59
|
var constants = require('./yc-plus-page/src/constants.js');
|
|
@@ -279,6 +280,46 @@ exports.YcChatStudio = studio_vue_vue_type_script_setup_true_lang.default;
|
|
|
279
280
|
exports.YcChatThinking = thinking_vue_vue_type_script_setup_true_lang.default;
|
|
280
281
|
exports.YcChatWelcome = welcome_vue_vue_type_script_setup_true_lang.default;
|
|
281
282
|
exports.YcMobileDeviceFrame = mobileFrame_vue_vue_type_script_setup_true_lang.default;
|
|
283
|
+
Object.defineProperty(exports, "Attachments", {
|
|
284
|
+
enumerable: true,
|
|
285
|
+
get: function () { return vueElementPlusX.Attachments; }
|
|
286
|
+
});
|
|
287
|
+
Object.defineProperty(exports, "Bubble", {
|
|
288
|
+
enumerable: true,
|
|
289
|
+
get: function () { return vueElementPlusX.Bubble; }
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperty(exports, "BubbleList", {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
get: function () { return vueElementPlusX.BubbleList; }
|
|
294
|
+
});
|
|
295
|
+
Object.defineProperty(exports, "Conversations", {
|
|
296
|
+
enumerable: true,
|
|
297
|
+
get: function () { return vueElementPlusX.Conversations; }
|
|
298
|
+
});
|
|
299
|
+
Object.defineProperty(exports, "FilesCard", {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function () { return vueElementPlusX.FilesCard; }
|
|
302
|
+
});
|
|
303
|
+
Object.defineProperty(exports, "Prompts", {
|
|
304
|
+
enumerable: true,
|
|
305
|
+
get: function () { return vueElementPlusX.Prompts; }
|
|
306
|
+
});
|
|
307
|
+
Object.defineProperty(exports, "Thinking", {
|
|
308
|
+
enumerable: true,
|
|
309
|
+
get: function () { return vueElementPlusX.Thinking; }
|
|
310
|
+
});
|
|
311
|
+
Object.defineProperty(exports, "ThoughtChain", {
|
|
312
|
+
enumerable: true,
|
|
313
|
+
get: function () { return vueElementPlusX.ThoughtChain; }
|
|
314
|
+
});
|
|
315
|
+
Object.defineProperty(exports, "Welcome", {
|
|
316
|
+
enumerable: true,
|
|
317
|
+
get: function () { return vueElementPlusX.Welcome; }
|
|
318
|
+
});
|
|
319
|
+
Object.defineProperty(exports, "XSender", {
|
|
320
|
+
enumerable: true,
|
|
321
|
+
get: function () { return vueElementPlusX.XSender; }
|
|
322
|
+
});
|
|
282
323
|
exports.COSS_TABLE_INJECTION_KEY = type.COSS_TABLE_INJECTION_KEY;
|
|
283
324
|
exports.DEFAULT_CDN_CONFIG = type$1.DEFAULT_CDN_CONFIG;
|
|
284
325
|
exports.DEFAULT_YC_CONFIG = type$1.DEFAULT_YC_CONFIG;
|
|
@@ -12,6 +12,7 @@ var sender_vue_vue_type_script_setup_true_lang = require('./src/sender2.vue.js')
|
|
|
12
12
|
var select_vue_vue_type_script_setup_true_lang = require('./src/select2.vue.js');
|
|
13
13
|
var mobileFrame_vue_vue_type_script_setup_true_lang = require('./src/mobile-frame2.vue.js');
|
|
14
14
|
var presets = require('./src/presets.js');
|
|
15
|
+
var vueElementPlusX = require('vue-element-plus-x');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
@@ -29,3 +30,43 @@ exports.YC_MOBILE_DEVICE_PRESETS = presets.YC_MOBILE_DEVICE_PRESETS;
|
|
|
29
30
|
exports.formatChatFileSize = presets.formatChatFileSize;
|
|
30
31
|
exports.formatChatSessionTime = presets.formatChatSessionTime;
|
|
31
32
|
exports.groupChatSessionByDate = presets.groupChatSessionByDate;
|
|
33
|
+
Object.defineProperty(exports, "Attachments", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return vueElementPlusX.Attachments; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "Bubble", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return vueElementPlusX.Bubble; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "BubbleList", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return vueElementPlusX.BubbleList; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "Conversations", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return vueElementPlusX.Conversations; }
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "FilesCard", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () { return vueElementPlusX.FilesCard; }
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "Prompts", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return vueElementPlusX.Prompts; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "Thinking", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return vueElementPlusX.Thinking; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "ThoughtChain", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return vueElementPlusX.ThoughtChain; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "Welcome", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return vueElementPlusX.Welcome; }
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "XSender", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return vueElementPlusX.XSender; }
|
|
72
|
+
});
|
|
@@ -234,26 +234,34 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
234
234
|
__props.role === "assistant" ? {
|
|
235
235
|
name: "avatar",
|
|
236
236
|
fn: vue.withCtx(() => [
|
|
237
|
-
|
|
237
|
+
vue.createElementVNode(
|
|
238
238
|
"div",
|
|
239
239
|
{
|
|
240
|
-
class: "yc-chat-bubble__avatar is-assistant",
|
|
240
|
+
class: vue.normalizeClass(["yc-chat-bubble__avatar is-assistant", { "is-custom": Boolean(_ctx.$slots.avatar) }]),
|
|
241
241
|
"aria-hidden": "true"
|
|
242
242
|
},
|
|
243
243
|
[
|
|
244
|
-
vue.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
244
|
+
vue.renderSlot(_ctx.$slots, "avatar", {}, () => [
|
|
245
|
+
_cache[2] || (_cache[2] = vue.createElementVNode(
|
|
246
|
+
"svg",
|
|
247
|
+
{
|
|
248
|
+
viewBox: "0 0 20 20",
|
|
249
|
+
fill: "none"
|
|
250
|
+
},
|
|
251
|
+
[
|
|
252
|
+
vue.createElementVNode("path", {
|
|
253
|
+
d: "M10 3L11.6 8.4L17 10L11.6 11.6L10 17L8.4 11.6L3 10L8.4 8.4L10 3Z",
|
|
254
|
+
fill: "currentColor"
|
|
255
|
+
})
|
|
256
|
+
],
|
|
257
|
+
-1
|
|
258
|
+
/* CACHED */
|
|
259
|
+
))
|
|
252
260
|
])
|
|
253
261
|
],
|
|
254
|
-
|
|
255
|
-
/*
|
|
256
|
-
)
|
|
262
|
+
2
|
|
263
|
+
/* CLASS */
|
|
264
|
+
)
|
|
257
265
|
]),
|
|
258
266
|
key: "0"
|
|
259
267
|
} : void 0,
|
|
@@ -59,7 +59,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
59
59
|
loading: { type: Boolean, default: false },
|
|
60
60
|
clearable: { type: Boolean, default: false },
|
|
61
61
|
searchable: { type: Boolean, default: true },
|
|
62
|
-
ariaLabel: { default: "" }
|
|
62
|
+
ariaLabel: { default: "" },
|
|
63
|
+
variant: { default: "field" }
|
|
63
64
|
},
|
|
64
65
|
emits: ["update:modelValue", "change"],
|
|
65
66
|
setup(__props, { emit: __emit }) {
|
|
@@ -86,12 +87,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
87
|
if (!el || typeof window === "undefined") return;
|
|
87
88
|
const rect = el.getBoundingClientRect();
|
|
88
89
|
const maxLeft = Math.max(12, window.innerWidth - 280);
|
|
89
|
-
|
|
90
|
+
const spaceBelow = window.innerHeight - rect.bottom;
|
|
91
|
+
const spaceAbove = rect.top;
|
|
92
|
+
const openUp = spaceBelow < 240 && spaceAbove > spaceBelow;
|
|
93
|
+
const shared = {
|
|
90
94
|
position: "fixed",
|
|
91
|
-
top: `${rect.bottom + 6}px`,
|
|
92
95
|
left: `${Math.min(rect.left, maxLeft)}px`,
|
|
93
96
|
minWidth: `${Math.max(rect.width, 220)}px`
|
|
94
97
|
};
|
|
98
|
+
popoverStyle.value = openUp ? { ...shared, bottom: `${window.innerHeight - rect.top + 6}px` } : { ...shared, top: `${rect.bottom + 6}px` };
|
|
95
99
|
}
|
|
96
100
|
function handleOutsidePointer(event) {
|
|
97
101
|
var _a, _b;
|
|
@@ -158,7 +162,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
158
162
|
class: vue.normalizeClass(["yc-chat-select", {
|
|
159
163
|
"is-open": open.value,
|
|
160
164
|
"is-disabled": __props.disabled,
|
|
161
|
-
"has-value": Boolean(selectedOption.value)
|
|
165
|
+
"has-value": Boolean(selectedOption.value),
|
|
166
|
+
"is-chip": __props.variant === "chip"
|
|
162
167
|
}]),
|
|
163
168
|
disabled: __props.disabled,
|
|
164
169
|
"aria-expanded": open.value,
|
|
@@ -153,8 +153,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
153
153
|
vue.Fragment,
|
|
154
154
|
{ key: 1 },
|
|
155
155
|
[
|
|
156
|
-
__props.showThinking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
157
|
-
vue.
|
|
156
|
+
__props.showThinking || _ctx.$slots.controls ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
157
|
+
vue.renderSlot(_ctx.$slots, "controls"),
|
|
158
|
+
__props.showThinking ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
159
|
+
key: 0,
|
|
158
160
|
type: "button",
|
|
159
161
|
role: "switch",
|
|
160
162
|
"aria-checked": __props.thinking,
|
|
@@ -188,7 +190,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
188
190
|
1
|
|
189
191
|
/* TEXT */
|
|
190
192
|
)
|
|
191
|
-
], 10, _hoisted_3)
|
|
193
|
+
], 10, _hoisted_3)) : vue.createCommentVNode("v-if", true)
|
|
192
194
|
])) : vue.createCommentVNode("v-if", true),
|
|
193
195
|
vue.createElementVNode("div", _hoisted_4, [
|
|
194
196
|
vue.createElementVNode("button", {
|