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.
Files changed (138) hide show
  1. package/README.md +26 -5
  2. package/es/components/chart/src/chart-card.vue.d.ts +56 -10
  3. package/es/components/chart/src/chart-container.vue.d.ts +11 -1
  4. package/es/components/chart/src/theme.d.ts +1 -1
  5. package/es/components/dialog/index.d.ts +6 -6
  6. package/es/components/dialog/src/index.vue.d.ts +2 -2
  7. package/es/components/dialog-form/index.d.ts +6 -6
  8. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  9. package/es/components/display-item/index.d.ts +21 -21
  10. package/es/components/display-item/src/index.vue.d.ts +19 -19
  11. package/es/components/drawer-form/index.d.ts +18 -18
  12. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  13. package/es/components/form/index.d.ts +12 -12
  14. package/es/components/form/src/form-content.vue.d.ts +12 -12
  15. package/es/components/form/src/index.vue.d.ts +12 -12
  16. package/es/components/form-item/index.d.ts +12 -12
  17. package/es/components/form-item/src/index.vue.d.ts +10 -10
  18. package/es/components/page/index.d.ts +258 -258
  19. package/es/components/page/src/index.vue.d.ts +90 -90
  20. package/es/components/render/index.d.ts +1 -1
  21. package/es/components/render/src/index.vue.d.ts +1 -1
  22. package/es/components/search/index.d.ts +78 -78
  23. package/es/components/search/src/index.vue.d.ts +30 -30
  24. package/es/components/table/src/table-column.vue.d.ts +46 -46
  25. package/es/components/yc-ai-chat/index.d.ts +1 -0
  26. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
  27. package/es/components/yc-ai-chat/src/select.vue.d.ts +1 -0
  28. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +29 -2
  29. package/es/components/yc-ai-chat/src/studio.vue.d.ts +9 -0
  30. package/es/components/yc-ai-chat/src/type.d.ts +2 -0
  31. package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
  32. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  33. package/es/hooks/usePlusFormReset.d.ts +144 -144
  34. package/es/index.css +8 -8
  35. package/es/index.mjs +1 -0
  36. package/es/packages/components/chart/src/chart-card2.vue.mjs +9 -2
  37. package/es/packages/components/chart/src/chart-container2.vue.mjs +13 -1
  38. package/es/packages/components/chart/src/theme.mjs +18 -10
  39. package/es/packages/components/data-table/capability.mjs +1 -1
  40. package/es/packages/components/index.mjs +1 -0
  41. package/es/packages/components/yc-ai-chat/index.mjs +1 -0
  42. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +21 -13
  43. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +9 -4
  44. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +5 -3
  45. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +735 -150
  46. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +452 -85
  47. package/es/packages/components/yc-gradient-card/capability.mjs +8 -8
  48. package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +48 -24
  49. package/es/packages/registry/types.mjs +1 -1
  50. package/es/registry/types.d.ts +1 -1
  51. package/es/version.d.ts +1 -1
  52. package/es/version.mjs +1 -1
  53. package/index.css +1 -1
  54. package/index.js +5707 -1690
  55. package/index.min.js +41 -38
  56. package/index.min.mjs +38 -35
  57. package/index.mjs +5772 -1765
  58. package/lib/components/chart/src/chart-card.vue.d.ts +56 -10
  59. package/lib/components/chart/src/chart-container.vue.d.ts +11 -1
  60. package/lib/components/chart/src/theme.d.ts +1 -1
  61. package/lib/components/dialog/index.d.ts +6 -6
  62. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  63. package/lib/components/dialog-form/index.d.ts +6 -6
  64. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  65. package/lib/components/display-item/index.d.ts +21 -21
  66. package/lib/components/display-item/src/index.vue.d.ts +19 -19
  67. package/lib/components/drawer-form/index.d.ts +18 -18
  68. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  69. package/lib/components/form/index.d.ts +12 -12
  70. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  71. package/lib/components/form/src/index.vue.d.ts +12 -12
  72. package/lib/components/form-item/index.d.ts +12 -12
  73. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  74. package/lib/components/page/index.d.ts +258 -258
  75. package/lib/components/page/src/index.vue.d.ts +90 -90
  76. package/lib/components/render/index.d.ts +1 -1
  77. package/lib/components/render/src/index.vue.d.ts +1 -1
  78. package/lib/components/search/index.d.ts +78 -78
  79. package/lib/components/search/src/index.vue.d.ts +30 -30
  80. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  81. package/lib/components/yc-ai-chat/index.d.ts +1 -0
  82. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
  83. package/lib/components/yc-ai-chat/src/select.vue.d.ts +1 -0
  84. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +29 -2
  85. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +9 -0
  86. package/lib/components/yc-ai-chat/src/type.d.ts +2 -0
  87. package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
  88. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  89. package/lib/hooks/usePlusFormReset.d.ts +144 -144
  90. package/lib/index.css +12 -12
  91. package/lib/index.js +41 -0
  92. package/lib/packages/components/chart/src/chart-card2.vue.js +9 -2
  93. package/lib/packages/components/chart/src/chart-container2.vue.js +13 -1
  94. package/lib/packages/components/chart/src/theme.js +18 -10
  95. package/lib/packages/components/data-table/capability.js +1 -1
  96. package/lib/packages/components/index.js +41 -0
  97. package/lib/packages/components/yc-ai-chat/index.js +41 -0
  98. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +21 -13
  99. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +9 -4
  100. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +5 -3
  101. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +734 -149
  102. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +451 -84
  103. package/lib/packages/components/yc-gradient-card/capability.js +8 -8
  104. package/lib/packages/components/yc-input/src/stepper-input2.vue.js +47 -23
  105. package/lib/packages/registry/types.js +1 -1
  106. package/lib/registry/types.d.ts +1 -1
  107. package/lib/version.d.ts +1 -1
  108. package/lib/version.js +1 -1
  109. package/locale/en.js +1 -1
  110. package/locale/en.min.js +1 -1
  111. package/locale/en.min.mjs +1 -1
  112. package/locale/en.mjs +1 -1
  113. package/locale/ja.js +1 -1
  114. package/locale/ja.min.js +1 -1
  115. package/locale/ja.min.mjs +1 -1
  116. package/locale/ja.mjs +1 -1
  117. package/locale/ko.js +1 -1
  118. package/locale/ko.min.js +1 -1
  119. package/locale/ko.min.mjs +1 -1
  120. package/locale/ko.mjs +1 -1
  121. package/locale/zh-cn.js +1 -1
  122. package/locale/zh-cn.min.js +1 -1
  123. package/locale/zh-cn.min.mjs +1 -1
  124. package/locale/zh-cn.mjs +1 -1
  125. package/locale/zh-tw.js +1 -1
  126. package/locale/zh-tw.min.js +1 -1
  127. package/locale/zh-tw.min.mjs +1 -1
  128. package/locale/zh-tw.mjs +1 -1
  129. package/package.json +1 -1
  130. package/theme-chalk/index.css +1 -1
  131. package/theme-chalk/plus-search.css +1 -1
  132. package/theme-chalk/plus-yc-ai-chat.css +1 -1
  133. package/theme-chalk/plus-yc-data-table.css +1 -1
  134. package/theme-chalk/plus-yc-property-table.css +1 -1
  135. package/theme-chalk/src/search.scss +93 -3
  136. package/theme-chalk/src/yc-ai-chat.scss +1281 -114
  137. package/theme-chalk/src/yc-data-table.scss +57 -42
  138. package/theme-chalk/src/yc-property-table.scss +35 -14
@@ -28,7 +28,7 @@ const capability = {
28
28
  {
29
29
  prop: "status",
30
30
  label: "\u72B6\u6001",
31
- width: 90,
31
+ width: 112,
32
32
  type: "tag",
33
33
  tagMap: {
34
34
  done: { label: "\u5DF2\u5B8C\u6210", type: "success" },
@@ -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
- _cache[2] || (_cache[2] = vue.createElementVNode(
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.createElementVNode("svg", {
245
- viewBox: "0 0 20 20",
246
- fill: "none"
247
- }, [
248
- vue.createElementVNode("path", {
249
- d: "M10 3L11.6 8.4L17 10L11.6 11.6L10 17L8.4 11.6L3 10L8.4 8.4L10 3Z",
250
- fill: "currentColor"
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
- -1
255
- /* CACHED */
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
- popoverStyle.value = {
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.createElementVNode("button", {
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", {