@next-bricks/ai-portal 0.70.1 → 0.70.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 (271) hide show
  1. package/dist/bricks.json +45 -45
  2. package/dist/chunks/1097.05983e91.js +3 -0
  3. package/dist/chunks/{1097.9e80dcca.js.LICENSE.txt → 1097.05983e91.js.LICENSE.txt} +2 -0
  4. package/dist/chunks/1097.05983e91.js.map +1 -0
  5. package/dist/chunks/{1889.b7766f77.js → 1889.803775eb.js} +2 -2
  6. package/dist/chunks/{1889.b7766f77.js.map → 1889.803775eb.js.map} +1 -1
  7. package/dist/chunks/3171.9d323cbe.js +2 -0
  8. package/dist/chunks/3171.9d323cbe.js.map +1 -0
  9. package/dist/chunks/{3186.f231329a.js → 3186.ca53075a.js} +2 -2
  10. package/dist/chunks/{3186.f231329a.js.map → 3186.ca53075a.js.map} +1 -1
  11. package/dist/chunks/3840.6080d56e.js +3 -0
  12. package/dist/chunks/3840.6080d56e.js.map +1 -0
  13. package/dist/chunks/{4864.bee3bb30.js → 4864.beefe6d5.js} +2 -2
  14. package/dist/chunks/{4864.bee3bb30.js.map → 4864.beefe6d5.js.map} +1 -1
  15. package/dist/chunks/5399.ef4bb3aa.js +2 -0
  16. package/dist/chunks/5399.ef4bb3aa.js.map +1 -0
  17. package/dist/chunks/551.ae5171a6.js +3 -0
  18. package/dist/chunks/551.ae5171a6.js.map +1 -0
  19. package/dist/chunks/5552.53024929.js +2 -0
  20. package/dist/chunks/5552.53024929.js.map +1 -0
  21. package/dist/chunks/6277.c8a6013f.js +2 -0
  22. package/dist/chunks/6277.c8a6013f.js.map +1 -0
  23. package/dist/chunks/6376.c35ff317.js +2 -0
  24. package/dist/chunks/6376.c35ff317.js.map +1 -0
  25. package/dist/chunks/7669.6f177bf2.js +3 -0
  26. package/dist/chunks/7669.6f177bf2.js.map +1 -0
  27. package/dist/chunks/794.214aa08f.js +3 -0
  28. package/dist/chunks/794.214aa08f.js.map +1 -0
  29. package/dist/chunks/948.c96c7036.js +3 -0
  30. package/dist/chunks/948.c96c7036.js.map +1 -0
  31. package/dist/chunks/action-buttons.68666920.js.map +1 -1
  32. package/dist/chunks/activity-timeline.96e7aaea.js.map +1 -1
  33. package/dist/chunks/ai-agents.cffd08a0.js.map +1 -1
  34. package/dist/chunks/ai-employees.267c3626.js.map +1 -1
  35. package/dist/chunks/blank-state.648eea95.js.map +1 -1
  36. package/dist/chunks/chat-box.060b8727.js +3 -0
  37. package/dist/chunks/chat-box.060b8727.js.map +1 -0
  38. package/dist/chunks/chat-input.e913e9ed.js +3 -0
  39. package/dist/chunks/chat-input.e913e9ed.js.map +1 -0
  40. package/dist/chunks/chat-panel-welcome.2f7c6c8b.js.map +1 -1
  41. package/dist/chunks/{chat-panel.3160f2e8.js → chat-panel.63207d2f.js} +2 -2
  42. package/dist/chunks/chat-panel.63207d2f.js.map +1 -0
  43. package/dist/chunks/chat-stream.393c8241.js.map +1 -1
  44. package/dist/chunks/cruise-canvas.bfae3138.js.map +1 -1
  45. package/dist/chunks/dropdown-select.336442ba.js.map +1 -1
  46. package/dist/chunks/elevo-card.49b42ed0.js.map +1 -1
  47. package/dist/chunks/elevo-logo.25e3b889.js.map +1 -1
  48. package/dist/chunks/elevo-sidebar.dfaaf9d1.js +3 -0
  49. package/dist/chunks/elevo-sidebar.dfaaf9d1.js.map +1 -0
  50. package/dist/chunks/flow-tabs.ee1290c2.js.map +1 -1
  51. package/dist/chunks/goal-card-list.74ab5767.js.map +1 -1
  52. package/dist/chunks/home-container.f1829834.js.map +1 -1
  53. package/dist/chunks/icon-button.545ffb24.js.map +1 -1
  54. package/dist/chunks/main.5e1b11a5.js +2 -0
  55. package/dist/chunks/main.5e1b11a5.js.map +1 -0
  56. package/dist/chunks/mcp-tools.f132c502.js.map +1 -1
  57. package/dist/chunks/notice-dropdown.63cb2415.js.map +1 -1
  58. package/dist/chunks/page-container.2185f2e0.js.map +1 -1
  59. package/dist/chunks/preview-container.a0ca6e2f.js.map +1 -1
  60. package/dist/chunks/project-knowledges.51731410.js.map +1 -1
  61. package/dist/chunks/running-flow.37a428cf.js.map +1 -1
  62. package/dist/chunks/show-case.44e995fc.js.map +1 -1
  63. package/dist/chunks/show-cases.c3921ea0.js.map +1 -1
  64. package/dist/chunks/space-chat-guide.b9f77cb5.js +3 -0
  65. package/dist/chunks/space-chat-guide.b9f77cb5.js.map +1 -0
  66. package/dist/chunks/space-logo.994f7a25.js.map +1 -1
  67. package/dist/chunks/space-workbench.9d48eec0.js +2 -0
  68. package/dist/chunks/space-workbench.9d48eec0.js.map +1 -0
  69. package/dist/chunks/stage-flow.9b6fad93.js.map +1 -1
  70. package/dist/chunks/stat-with-mini-chart.1509cf8c.js.map +1 -1
  71. package/dist/chunks/sticky-container.d3f7054e.js.map +1 -1
  72. package/dist/chunks/tab-list.ee97567f.js.map +1 -1
  73. package/dist/examples.json +56 -44
  74. package/dist/index.34851313.js +2 -0
  75. package/dist/index.34851313.js.map +1 -0
  76. package/dist/manifest.json +624 -343
  77. package/dist/types.json +1309 -1309
  78. package/dist-types/action-buttons/i18n.d.ts +1 -1
  79. package/dist-types/action-buttons/index.d.ts +10 -1
  80. package/dist-types/activity-timeline/i18n.d.ts +1 -1
  81. package/dist-types/activity-timeline/index.d.ts +10 -1
  82. package/dist-types/ai-agents/i18n.d.ts +1 -1
  83. package/dist-types/ai-agents/index.d.ts +10 -1
  84. package/dist-types/ai-employees/i18n.d.ts +1 -1
  85. package/dist-types/ai-employees/index.d.ts +16 -1
  86. package/dist-types/blank-state/index.d.ts +10 -1
  87. package/dist-types/chat-box/i18n.d.ts +1 -1
  88. package/dist-types/chat-input/i18n.d.ts +1 -1
  89. package/dist-types/chat-input/index.d.ts +37 -1
  90. package/dist-types/chat-panel/ChatPanelContent.d.ts +2 -2
  91. package/dist-types/chat-panel/index.d.ts +48 -6
  92. package/dist-types/chat-stream/Aside/FlowApp/i18n.d.ts +1 -1
  93. package/dist-types/chat-stream/i18n.d.ts +1 -1
  94. package/dist-types/chat-stream/index.d.ts +62 -1
  95. package/dist-types/cruise-canvas/NodeReplay/i18n.d.ts +1 -1
  96. package/dist-types/cruise-canvas/ToolCallDetail/i18n.d.ts +1 -1
  97. package/dist-types/cruise-canvas/i18n.d.ts +1 -1
  98. package/dist-types/cruise-canvas/index.d.ts +71 -1
  99. package/dist-types/dropdown-select/i18n.d.ts +1 -1
  100. package/dist-types/dropdown-select/index.d.ts +3 -1
  101. package/dist-types/elevo-card/index.d.ts +5 -1
  102. package/dist-types/elevo-logo/index.d.ts +3 -1
  103. package/dist-types/elevo-sidebar/i18n.d.ts +1 -1
  104. package/dist-types/elevo-sidebar/index.d.ts +19 -2
  105. package/dist-types/flow-tabs/index.d.ts +5 -1
  106. package/dist-types/gantt-chart/i18n.d.ts +1 -1
  107. package/dist-types/gantt-chart/index.d.ts +3 -1
  108. package/dist-types/goal-card-list/i18n.d.ts +1 -1
  109. package/dist-types/goal-card-list/index.d.ts +8 -1
  110. package/dist-types/home-container/index.d.ts +4 -1
  111. package/dist-types/icon-button/index.d.ts +4 -1
  112. package/dist-types/mcp-tools/i18n.d.ts +1 -1
  113. package/dist-types/mcp-tools/index.d.ts +3 -1
  114. package/dist-types/notice-dropdown/i18n.d.ts +1 -1
  115. package/dist-types/notice-list/i18n.d.ts +1 -1
  116. package/dist-types/page-container/index.d.ts +7 -0
  117. package/dist-types/preview-container/i18n.d.ts +1 -1
  118. package/dist-types/preview-container/index.d.ts +4 -0
  119. package/dist-types/project-conversations/i18n.d.ts +1 -1
  120. package/dist-types/project-knowledges/i18n.d.ts +1 -1
  121. package/dist-types/project-knowledges/index.d.ts +5 -0
  122. package/dist-types/running-flow/index.d.ts +3 -0
  123. package/dist-types/shared/ActivityPlan/i18n.d.ts +1 -1
  124. package/dist-types/shared/AskUser/i18n.d.ts +1 -1
  125. package/dist-types/shared/ChatBox/i18n.d.ts +1 -1
  126. package/dist-types/shared/CreatedView/i18n.d.ts +1 -1
  127. package/dist-types/shared/FilePreview/i18n.d.ts +1 -1
  128. package/dist-types/shared/FileUpload/i18n.d.ts +1 -1
  129. package/dist-types/shared/NodeFeedback/i18n.d.ts +1 -1
  130. package/dist-types/show-case/i18n.d.ts +1 -1
  131. package/dist-types/show-case/index.d.ts +5 -0
  132. package/dist-types/show-cases/i18n.d.ts +1 -1
  133. package/dist-types/show-cases/index.d.ts +4 -0
  134. package/dist-types/space-workbench/chat-panel-welcome/i18n.d.ts +1 -1
  135. package/dist-types/space-workbench/chat-panel-welcome/index.d.ts +3 -0
  136. package/dist-types/space-workbench/i18n.d.ts +1 -1
  137. package/dist-types/space-workbench/index.d.ts +7 -0
  138. package/dist-types/space-workbench/space-chat-guide/i18n.d.ts +1 -1
  139. package/dist-types/space-workbench/space-chat-guide/index.d.ts +3 -0
  140. package/dist-types/space-workbench/space-logo/index.d.ts +1 -0
  141. package/dist-types/stage-flow/i18n.d.ts +1 -1
  142. package/dist-types/stage-flow/index.d.ts +21 -0
  143. package/dist-types/stat-with-mini-chart/index.d.ts +10 -0
  144. package/dist-types/sticky-container/index.d.ts +3 -0
  145. package/dist-types/tab-list/index.d.ts +4 -0
  146. package/docs/action-buttons.md +59 -10
  147. package/docs/action-buttons.react.md +80 -0
  148. package/docs/activity-timeline.md +51 -7
  149. package/docs/activity-timeline.react.md +109 -0
  150. package/docs/ai-agents.md +62 -2
  151. package/docs/ai-agents.react.md +73 -0
  152. package/docs/ai-employees.md +76 -2
  153. package/docs/ai-employees.react.md +106 -0
  154. package/docs/blank-state.md +62 -2
  155. package/docs/blank-state.react.md +77 -0
  156. package/docs/chat-box.md +134 -52
  157. package/docs/chat-box.react.md +142 -0
  158. package/docs/chat-input.md +117 -1
  159. package/docs/chat-input.react.md +117 -0
  160. package/docs/chat-panel-welcome.md +39 -0
  161. package/docs/chat-panel-welcome.react.md +41 -0
  162. package/docs/chat-panel.md +86 -3
  163. package/docs/chat-panel.react.md +109 -0
  164. package/docs/chat-stream.md +149 -2
  165. package/docs/chat-stream.react.md +155 -0
  166. package/docs/cruise-canvas.md +159 -0
  167. package/docs/cruise-canvas.react.md +159 -0
  168. package/docs/dropdown-select.md +37 -8
  169. package/docs/dropdown-select.react.md +144 -0
  170. package/docs/elevo-card.md +75 -1
  171. package/docs/elevo-card.react.md +104 -0
  172. package/docs/elevo-logo.md +13 -1
  173. package/docs/elevo-logo.react.md +27 -0
  174. package/docs/elevo-sidebar.md +150 -1
  175. package/docs/elevo-sidebar.react.md +149 -0
  176. package/docs/flow-tabs.md +97 -2
  177. package/docs/flow-tabs.react.md +102 -0
  178. package/docs/gantt-chart.md +101 -0
  179. package/docs/gantt-chart.react.md +125 -0
  180. package/docs/goal-card-list.md +149 -13
  181. package/docs/goal-card-list.react.md +185 -0
  182. package/docs/home-container.md +48 -2
  183. package/docs/home-container.react.md +51 -0
  184. package/docs/icon-button.md +128 -2
  185. package/docs/icon-button.react.md +120 -0
  186. package/docs/mcp-tools.md +105 -2
  187. package/docs/mcp-tools.react.md +117 -0
  188. package/docs/notice-dropdown.md +53 -10
  189. package/docs/notice-dropdown.react.md +167 -0
  190. package/docs/notice-list.md +53 -5
  191. package/docs/notice-list.react.md +121 -0
  192. package/docs/page-container.md +80 -3
  193. package/docs/page-container.react.md +83 -0
  194. package/docs/preview-container.md +22 -32
  195. package/docs/preview-container.react.md +71 -0
  196. package/docs/project-conversations.md +85 -4
  197. package/docs/project-conversations.react.md +110 -0
  198. package/docs/project-knowledges.md +73 -8
  199. package/docs/project-knowledges.react.md +85 -0
  200. package/docs/running-flow.md +57 -2
  201. package/docs/running-flow.react.md +90 -0
  202. package/docs/show-case.md +48 -3
  203. package/docs/show-case.react.md +60 -0
  204. package/docs/show-cases.md +52 -2
  205. package/docs/show-cases.react.md +92 -0
  206. package/docs/space-chat-guide.md +32 -0
  207. package/docs/space-chat-guide.react.md +39 -0
  208. package/docs/space-logo.md +53 -0
  209. package/docs/space-logo.react.md +46 -0
  210. package/docs/space-workbench.md +45 -2
  211. package/docs/space-workbench.react.md +102 -0
  212. package/docs/stage-flow.md +122 -26
  213. package/docs/stage-flow.react.md +112 -0
  214. package/docs/stat-with-mini-chart.md +64 -159
  215. package/docs/stat-with-mini-chart.react.md +113 -0
  216. package/docs/sticky-container.md +56 -3
  217. package/docs/sticky-container.react.md +60 -0
  218. package/docs/tab-list.md +74 -3
  219. package/docs/tab-list.react.md +73 -0
  220. package/package.json +2 -2
  221. package/dist/chunks/1097.9e80dcca.js +0 -3
  222. package/dist/chunks/1097.9e80dcca.js.map +0 -1
  223. package/dist/chunks/2341.0e70532b.js +0 -2
  224. package/dist/chunks/2341.0e70532b.js.map +0 -1
  225. package/dist/chunks/3171.45ef4669.js +0 -2
  226. package/dist/chunks/3171.45ef4669.js.map +0 -1
  227. package/dist/chunks/3573.7b0bb780.js +0 -3
  228. package/dist/chunks/3573.7b0bb780.js.map +0 -1
  229. package/dist/chunks/4459.dbfa8706.js +0 -3
  230. package/dist/chunks/4459.dbfa8706.js.map +0 -1
  231. package/dist/chunks/4837.570099ad.js +0 -2
  232. package/dist/chunks/4837.570099ad.js.map +0 -1
  233. package/dist/chunks/5399.501fc322.js +0 -2
  234. package/dist/chunks/5399.501fc322.js.map +0 -1
  235. package/dist/chunks/5552.09658542.js +0 -2
  236. package/dist/chunks/5552.09658542.js.map +0 -1
  237. package/dist/chunks/6380.b8610c4b.js +0 -3
  238. package/dist/chunks/6380.b8610c4b.js.map +0 -1
  239. package/dist/chunks/7202.a893b0e6.js +0 -3
  240. package/dist/chunks/7202.a893b0e6.js.map +0 -1
  241. package/dist/chunks/948.e601f18c.js +0 -3
  242. package/dist/chunks/948.e601f18c.js.map +0 -1
  243. package/dist/chunks/9599.02a5e6e3.js +0 -2
  244. package/dist/chunks/9599.02a5e6e3.js.map +0 -1
  245. package/dist/chunks/9848.4b1f38c9.js +0 -3
  246. package/dist/chunks/9848.4b1f38c9.js.LICENSE.txt +0 -1
  247. package/dist/chunks/9848.4b1f38c9.js.map +0 -1
  248. package/dist/chunks/chat-box.1ac7555a.js +0 -3
  249. package/dist/chunks/chat-box.1ac7555a.js.map +0 -1
  250. package/dist/chunks/chat-input.444c80bb.js +0 -3
  251. package/dist/chunks/chat-input.444c80bb.js.map +0 -1
  252. package/dist/chunks/chat-panel.3160f2e8.js.map +0 -1
  253. package/dist/chunks/elevo-sidebar.a197a77f.js +0 -3
  254. package/dist/chunks/elevo-sidebar.a197a77f.js.map +0 -1
  255. package/dist/chunks/main.9d171af9.js +0 -2
  256. package/dist/chunks/main.9d171af9.js.map +0 -1
  257. package/dist/chunks/space-chat-guide.84f4a1e7.js +0 -3
  258. package/dist/chunks/space-chat-guide.84f4a1e7.js.map +0 -1
  259. package/dist/chunks/space-workbench.8c064898.js +0 -2
  260. package/dist/chunks/space-workbench.8c064898.js.map +0 -1
  261. package/dist/index.0edd6320.js +0 -2
  262. package/dist/index.0edd6320.js.map +0 -1
  263. /package/dist/chunks/{3573.7b0bb780.js.LICENSE.txt → 3840.6080d56e.js.LICENSE.txt} +0 -0
  264. /package/dist/chunks/{4459.dbfa8706.js.LICENSE.txt → 551.ae5171a6.js.LICENSE.txt} +0 -0
  265. /package/dist/chunks/{7202.a893b0e6.js.LICENSE.txt → 7669.6f177bf2.js.LICENSE.txt} +0 -0
  266. /package/dist/chunks/{6380.b8610c4b.js.LICENSE.txt → 794.214aa08f.js.LICENSE.txt} +0 -0
  267. /package/dist/chunks/{948.e601f18c.js.LICENSE.txt → 948.c96c7036.js.LICENSE.txt} +0 -0
  268. /package/dist/chunks/{chat-box.1ac7555a.js.LICENSE.txt → chat-box.060b8727.js.LICENSE.txt} +0 -0
  269. /package/dist/chunks/{chat-input.444c80bb.js.LICENSE.txt → chat-input.e913e9ed.js.LICENSE.txt} +0 -0
  270. /package/dist/chunks/{elevo-sidebar.a197a77f.js.LICENSE.txt → elevo-sidebar.dfaaf9d1.js.LICENSE.txt} +0 -0
  271. /package/dist/chunks/{space-chat-guide.84f4a1e7.js.LICENSE.txt → space-chat-guide.b9f77cb5.js.LICENSE.txt} +0 -0
@@ -1,34 +1,170 @@
1
- 构件 `ai-portal.goal-card-list`
1
+ ---
2
+ tagName: ai-portal.goal-card-list
3
+ displayName: WrappedAiPortalGoalCardList
4
+ description: 目标卡片列表,以分层卡片形式展示目标项,支持内联编辑标题、状态切换、新建对话及追加子目标。
5
+ category: display-component
6
+ source: "@next-bricks/ai-portal"
7
+ ---
8
+
9
+ # ai-portal.goal-card-list
10
+
11
+ > 目标卡片列表,以分层卡片形式展示目标项,支持内联编辑标题、状态切换、新建对话及追加子目标。
12
+
13
+ ## Props
14
+
15
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
16
+ | --------- | --------------------- | ---- | ------ | --------------------------------------------------------- |
17
+ | goalList | `GoalItem[]` | 否 | - | 目标列表数据,支持多层级(通过 `level` 字段区分父子层级) |
18
+ | cardStyle | `React.CSSProperties` | 否 | - | 卡片的自定义样式 |
19
+ | activeKey | `string` | 否 | - | 当前激活卡片的 instanceId,匹配的卡片会高亮显示 |
20
+
21
+ ## Events
22
+
23
+ | 事件 | detail | 说明 |
24
+ | ------------------ | ---------------------------------------------------------------------------------------------------- | -------------------------------- |
25
+ | item.click | `GoalItem` — { title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 点击目标卡片时触发 |
26
+ | item.status.change | `GoalItem` — { title: 目标标题, state: 更新后的目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 目标状态切换时触发 |
27
+ | item.title.change | `GoalItem` — { title: 更新后的标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 目标标题内联编辑完成时触发 |
28
+ | item.new.chat | `GoalItem` — { title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 点击目标卡片的新建对话按钮时触发 |
29
+
30
+ ## Methods
31
+
32
+ | 方法 | 参数 | 返回值 | 说明 |
33
+ | --------------- | ------------------------------------------------ | ------ | ---------------------------- |
34
+ | appendChildDone | `(pendingId: string, newItem: GoalItem) => void` | `void` | 将待定子目标提交为正式目标项 |
2
35
 
3
36
  ## Examples
4
37
 
5
38
  ### Basic
6
39
 
40
+ 展示基础目标卡片列表,包含多种状态的目标项。
41
+
42
+ ```yaml preview
43
+ brick: ai-portal.goal-card-list
44
+ properties:
45
+ style:
46
+ width: 600px
47
+ goalList:
48
+ - title: 页面流程绘制
49
+ id: 100124
50
+ state: ready
51
+ instanceId: abc1
52
+ level: 0
53
+ - title: 原型与设计绘制
54
+ id: 100125
55
+ state: working
56
+ instanceId: bdc9
57
+ level: 0
58
+ - title: 设计稿绘制
59
+ id: 100126
60
+ state: completed
61
+ instanceId: d76a
62
+ level: 0
63
+ events:
64
+ item.click:
65
+ action: "console.log"
66
+ item.status.change:
67
+ action: "console.log"
68
+ item.title.change:
69
+ action: "console.log"
70
+ item.new.chat:
71
+ action: "console.log"
72
+ ```
73
+
74
+ ### With Active Item
75
+
76
+ 配置 activeKey 高亮激活当前选中的目标卡片。
77
+
7
78
  ```yaml preview
8
79
  brick: ai-portal.goal-card-list
9
80
  properties:
10
81
  style:
11
82
  width: 600px
83
+ activeKey: bdc9
12
84
  goalList:
13
85
  - title: 页面流程绘制
14
- index: 100124
86
+ id: 100124
15
87
  state: ready
16
88
  instanceId: abc1
17
- conversations:
18
- - 会话1
19
- - 会话2
20
- - 会话3
89
+ level: 0
21
90
  - title: 原型与设计绘制
22
- index: 100125
91
+ id: 100125
23
92
  state: working
24
93
  instanceId: bdc9
25
- conversations:
26
- - 会话4
94
+ level: 0
27
95
  - title: 设计稿绘制
28
- index: 100126
96
+ id: 100126
29
97
  state: completed
30
98
  instanceId: d76a
31
- conversations:
32
- - 会话5
33
- - 会话6
99
+ level: 0
100
+ events:
101
+ item.click:
102
+ action: "console.log"
103
+ ```
104
+
105
+ ### Hierarchical Goals
106
+
107
+ 展示多层级目标,子目标通过 level 字段缩进显示。
108
+
109
+ ```yaml preview
110
+ brick: ai-portal.goal-card-list
111
+ properties:
112
+ style:
113
+ width: 600px
114
+ goalList:
115
+ - title: 产品研发
116
+ id: 1001
117
+ state: working
118
+ instanceId: parent1
119
+ level: 0
120
+ - title: 需求分析
121
+ id: 1002
122
+ state: completed
123
+ instanceId: child1
124
+ level: 1
125
+ - title: UI 设计
126
+ id: 1003
127
+ state: working
128
+ instanceId: child2
129
+ level: 1
130
+ - title: 数据架构
131
+ id: 1004
132
+ state: ready
133
+ instanceId: parent2
134
+ level: 0
135
+ events:
136
+ item.click:
137
+ action: "console.log"
138
+ item.status.change:
139
+ action: "console.log"
140
+ ```
141
+
142
+ ### Custom Card Style
143
+
144
+ 为卡片配置自定义样式。
145
+
146
+ ```yaml preview
147
+ brick: ai-portal.goal-card-list
148
+ properties:
149
+ cardStyle:
150
+ borderRadius: 8px
151
+ marginBottom: 8px
152
+ style:
153
+ width: 600px
154
+ goalList:
155
+ - title: 前端架构升级
156
+ id: 2001
157
+ state: ready
158
+ instanceId: item1
159
+ level: 0
160
+ - title: 性能优化
161
+ id: 2002
162
+ state: working
163
+ instanceId: item2
164
+ level: 0
165
+ events:
166
+ item.click:
167
+ action: "console.log"
168
+ item.new.chat:
169
+ action: "console.log"
34
170
  ```
@@ -0,0 +1,185 @@
1
+ ---
2
+ tagName: ai-portal.goal-card-list
3
+ displayName: WrappedAiPortalGoalCardList
4
+ description: 目标卡片列表,以分层卡片形式展示目标项,支持内联编辑标题、状态切换、新建对话及追加子目标。
5
+ category: display-component
6
+ source: "@next-bricks/ai-portal"
7
+ ---
8
+
9
+ # WrappedAiPortalGoalCardList
10
+
11
+ > 目标卡片列表,以分层卡片形式展示目标项,支持内联编辑标题、状态切换、新建对话及追加子目标。
12
+
13
+ ## 导入
14
+
15
+ ```tsx
16
+ import { WrappedAiPortalGoalCardList } from "@easyops/wrapped-components";
17
+ ```
18
+
19
+ ## Props
20
+
21
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
22
+ | --------- | --------------------- | ---- | ------ | --------------------------------------------------------- |
23
+ | goalList | `GoalItem[]` | 否 | - | 目标列表数据,支持多层级(通过 `level` 字段区分父子层级) |
24
+ | cardStyle | `React.CSSProperties` | 否 | - | 卡片的自定义样式 |
25
+ | activeKey | `string` | 否 | - | 当前激活卡片的 instanceId,匹配的卡片会高亮显示 |
26
+
27
+ ## Events
28
+
29
+ | 事件 | detail | 说明 |
30
+ | ------------------ | ---------------------------------------------------------------------------------------------------- | -------------------------------- |
31
+ | onItemClick | `GoalItem` — { title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 点击目标卡片时触发 |
32
+ | onItemStatusChange | `GoalItem` — { title: 目标标题, state: 更新后的目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 目标状态切换时触发 |
33
+ | onItemTitleChange | `GoalItem` — { title: 更新后的标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 目标标题内联编辑完成时触发 |
34
+ | onItemNewChat | `GoalItem` — { title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 } | 点击目标卡片的新建对话按钮时触发 |
35
+
36
+ ## Methods
37
+
38
+ | 方法 | 参数 | 返回值 | 说明 |
39
+ | --------------- | ------------------------------------------------ | ------ | ---------------------------- |
40
+ | appendChildDone | `(pendingId: string, newItem: GoalItem) => void` | `void` | 将待定子目标提交为正式目标项 |
41
+
42
+ ## Examples
43
+
44
+ ### Basic
45
+
46
+ 展示基础目标卡片列表,包含多种状态的目标项。
47
+
48
+ ```tsx
49
+ <WrappedAiPortalGoalCardList
50
+ style={{ width: 600 }}
51
+ goalList={[
52
+ {
53
+ title: "页面流程绘制",
54
+ id: 100124,
55
+ state: "ready",
56
+ instanceId: "abc1",
57
+ level: 0,
58
+ },
59
+ {
60
+ title: "原型与设计绘制",
61
+ id: 100125,
62
+ state: "working",
63
+ instanceId: "bdc9",
64
+ level: 0,
65
+ },
66
+ {
67
+ title: "设计稿绘制",
68
+ id: 100126,
69
+ state: "completed",
70
+ instanceId: "d76a",
71
+ level: 0,
72
+ },
73
+ ]}
74
+ onItemClick={(e) => console.log(e.detail)}
75
+ onItemStatusChange={(e) => console.log(e.detail)}
76
+ onItemTitleChange={(e) => console.log(e.detail)}
77
+ onItemNewChat={(e) => console.log(e.detail)}
78
+ />
79
+ ```
80
+
81
+ ### With Active Item
82
+
83
+ 配置 activeKey 高亮激活当前选中的目标卡片。
84
+
85
+ ```tsx
86
+ <WrappedAiPortalGoalCardList
87
+ style={{ width: 600 }}
88
+ activeKey="bdc9"
89
+ goalList={[
90
+ {
91
+ title: "页面流程绘制",
92
+ id: 100124,
93
+ state: "ready",
94
+ instanceId: "abc1",
95
+ level: 0,
96
+ },
97
+ {
98
+ title: "原型与设计绘制",
99
+ id: 100125,
100
+ state: "working",
101
+ instanceId: "bdc9",
102
+ level: 0,
103
+ },
104
+ {
105
+ title: "设计稿绘制",
106
+ id: 100126,
107
+ state: "completed",
108
+ instanceId: "d76a",
109
+ level: 0,
110
+ },
111
+ ]}
112
+ onItemClick={(e) => console.log(e.detail)}
113
+ />
114
+ ```
115
+
116
+ ### Hierarchical Goals
117
+
118
+ 展示多层级目标,子目标通过 level 字段缩进显示。
119
+
120
+ ```tsx
121
+ <WrappedAiPortalGoalCardList
122
+ style={{ width: 600 }}
123
+ goalList={[
124
+ {
125
+ title: "产品研发",
126
+ id: 1001,
127
+ state: "working",
128
+ instanceId: "parent1",
129
+ level: 0,
130
+ },
131
+ {
132
+ title: "需求分析",
133
+ id: 1002,
134
+ state: "completed",
135
+ instanceId: "child1",
136
+ level: 1,
137
+ },
138
+ {
139
+ title: "UI 设计",
140
+ id: 1003,
141
+ state: "working",
142
+ instanceId: "child2",
143
+ level: 1,
144
+ },
145
+ {
146
+ title: "数据架构",
147
+ id: 1004,
148
+ state: "ready",
149
+ instanceId: "parent2",
150
+ level: 0,
151
+ },
152
+ ]}
153
+ onItemClick={(e) => console.log(e.detail)}
154
+ onItemStatusChange={(e) => console.log(e.detail)}
155
+ />
156
+ ```
157
+
158
+ ### Custom Card Style
159
+
160
+ 为卡片配置自定义样式。
161
+
162
+ ```tsx
163
+ <WrappedAiPortalGoalCardList
164
+ cardStyle={{ borderRadius: 8, marginBottom: 8 }}
165
+ style={{ width: 600 }}
166
+ goalList={[
167
+ {
168
+ title: "前端架构升级",
169
+ id: 2001,
170
+ state: "ready",
171
+ instanceId: "item1",
172
+ level: 0,
173
+ },
174
+ {
175
+ title: "性能优化",
176
+ id: 2002,
177
+ state: "working",
178
+ instanceId: "item2",
179
+ level: 0,
180
+ },
181
+ ]}
182
+ onItemClick={(e) => console.log(e.detail)}
183
+ onItemNewChat={(e) => console.log(e.detail)}
184
+ />
185
+ ```
@@ -1,11 +1,57 @@
1
- 构件 `ai-portal.home-container`
1
+ ---
2
+ tagName: ai-portal.home-container
3
+ displayName: WrappedAiPortalHomeContainer
4
+ description: AI Portal 首页容器,通过 sticky 属性控制顶部吸附行为,内容通过默认插槽传入。
5
+ category: layout-component
6
+ source: "@next-bricks/ai-portal"
7
+ ---
8
+
9
+ # ai-portal.home-container
10
+
11
+ > AI Portal 首页容器,通过 sticky 属性控制顶部吸附行为,内容通过默认插槽传入。
12
+
13
+ ## Props
14
+
15
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
16
+ | ------ | --------- | ---- | ------ | ----------------------------------------------------------------- |
17
+ | sticky | `boolean` | 否 | - | 是否启用顶部吸附样式,通过 CSS 属性选择器控制布局,不触发重新渲染 |
18
+
19
+ ## Slots
20
+
21
+ | 名称 | 说明 |
22
+ | ------- | ------------ |
23
+ | default | 页面内容区域 |
2
24
 
3
25
  ## Examples
4
26
 
5
27
  ### Basic
6
28
 
29
+ 作为页面内容的包裹容器,传入子构件。
30
+
31
+ ```yaml preview
32
+ brick: ai-portal.home-container
33
+ children:
34
+ - brick: span
35
+ properties:
36
+ textContent: Hello world
37
+ style:
38
+ padding: 16px
39
+ display: block
40
+ ```
41
+
42
+ ### With Sticky
43
+
44
+ 启用 sticky 吸附样式的首页容器。
45
+
7
46
  ```yaml preview
8
47
  brick: ai-portal.home-container
9
48
  properties:
10
- textContent: Hello world
49
+ sticky: true
50
+ children:
51
+ - brick: span
52
+ properties:
53
+ textContent: 吸附布局内容
54
+ style:
55
+ padding: 16px
56
+ display: block
11
57
  ```
@@ -0,0 +1,51 @@
1
+ ---
2
+ tagName: ai-portal.home-container
3
+ displayName: WrappedAiPortalHomeContainer
4
+ description: AI Portal 首页容器,通过 sticky 属性控制顶部吸附行为,内容通过默认插槽传入。
5
+ category: layout-component
6
+ source: "@next-bricks/ai-portal"
7
+ ---
8
+
9
+ # WrappedAiPortalHomeContainer
10
+
11
+ > AI Portal 首页容器,通过 sticky 属性控制顶部吸附行为,内容通过默认插槽传入。
12
+
13
+ ## 导入
14
+
15
+ ```tsx
16
+ import { WrappedAiPortalHomeContainer } from "@easyops/wrapped-components";
17
+ ```
18
+
19
+ ## Props
20
+
21
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
22
+ | ------ | --------- | ---- | ------ | ----------------------------------------------------------------- |
23
+ | sticky | `boolean` | 否 | - | 是否启用顶部吸附样式,通过 CSS 属性选择器控制布局,不触发重新渲染 |
24
+
25
+ ## Slots
26
+
27
+ | 名称 | 说明 |
28
+ | ------- | ------------ |
29
+ | default | 页面内容区域 |
30
+
31
+ ## Examples
32
+
33
+ ### Basic
34
+
35
+ 作为页面内容的包裹容器,传入子构件。
36
+
37
+ ```tsx
38
+ <WrappedAiPortalHomeContainer>
39
+ <span style={{ padding: 16, display: "block" }}>Hello world</span>
40
+ </WrappedAiPortalHomeContainer>
41
+ ```
42
+
43
+ ### With Sticky
44
+
45
+ 启用 sticky 吸附样式的首页容器。
46
+
47
+ ```tsx
48
+ <WrappedAiPortalHomeContainer sticky>
49
+ <span style={{ padding: 16, display: "block" }}>吸附布局内容</span>
50
+ </WrappedAiPortalHomeContainer>
51
+ ```
@@ -1,14 +1,140 @@
1
- 构件 `ai-portal.icon-button`
1
+ ---
2
+ tagName: ai-portal.icon-button
3
+ displayName: WrappedAiPortalIconButton
4
+ description: 图标按钮,支持多种视觉变体、禁用状态、Tooltip 提示及文字插槽。
5
+ category: interact-basic
6
+ source: "@next-bricks/ai-portal"
7
+ ---
8
+
9
+ # ai-portal.icon-button
10
+
11
+ > 图标按钮,支持多种视觉变体、禁用状态、Tooltip 提示及文字插槽。
12
+
13
+ ## Props
14
+
15
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
16
+ | -------------- | -------------------------------------------------------------- | ---- | ------ | -------------------------------------------------------------------------------------- |
17
+ | icon | `GeneralIconProps` | 否 | - | 按钮图标配置 |
18
+ | tooltip | `string` | 否 | - | 悬停时显示的 Tooltip 文本 |
19
+ | tooltipHoist | `boolean` | 否 | - | 是否将 Tooltip 挂载到顶层,避免被父容器裁剪 |
20
+ | active | `boolean` | 否 | - | 是否为激活状态,通过 CSS 属性选择器控制样式,不触发重新渲染 |
21
+ | disabled | `boolean` | 否 | - | 是否禁用按钮 |
22
+ | variant | `"default" \| "light" \| "mini" \| "mini-light" \| "bordered"` | 否 | - | 按钮视觉变体,通过 CSS 属性选择器控制样式,不触发重新渲染 |
23
+ | reduceIconSize | `boolean` | 否 | - | 是否缩小图标尺寸(部分 easyops 图标过大),通过 CSS 属性选择器控制样式,不触发重新渲染 |
24
+
25
+ ## Slots
26
+
27
+ | 名称 | 说明 |
28
+ | ------- | -------------------------- |
29
+ | default | 图标旁边的文字内容(可选) |
2
30
 
3
31
  ## Examples
4
32
 
5
33
  ### Basic
6
34
 
35
+ 基础图标按钮,配置图标和 Tooltip 提示。
36
+
7
37
  ```yaml preview
8
38
  brick: ai-portal.icon-button
9
39
  properties:
10
40
  icon:
11
41
  lib: antd
12
42
  icon: download
13
- tooltip: Go to homepage
43
+ tooltip: 下载
44
+ ```
45
+
46
+ ### Variants
47
+
48
+ 展示不同视觉变体的图标按钮。
49
+
50
+ ```yaml preview
51
+ brick: div
52
+ properties:
53
+ style:
54
+ display: flex
55
+ gap: 8px
56
+ alignItems: center
57
+ padding: 8px
58
+ children:
59
+ - brick: ai-portal.icon-button
60
+ properties:
61
+ variant: default
62
+ icon:
63
+ lib: antd
64
+ icon: setting
65
+ tooltip: 默认样式
66
+ - brick: ai-portal.icon-button
67
+ properties:
68
+ variant: light
69
+ icon:
70
+ lib: antd
71
+ icon: heart
72
+ tooltip: 轻量样式
73
+ - brick: ai-portal.icon-button
74
+ properties:
75
+ variant: mini
76
+ icon:
77
+ lib: antd
78
+ icon: star
79
+ tooltip: 迷你样式
80
+ - brick: ai-portal.icon-button
81
+ properties:
82
+ variant: mini-light
83
+ icon:
84
+ lib: antd
85
+ icon: bell
86
+ tooltip: 迷你轻量
87
+ - brick: ai-portal.icon-button
88
+ properties:
89
+ variant: bordered
90
+ icon:
91
+ lib: antd
92
+ icon: plus
93
+ tooltip: 边框样式
94
+ ```
95
+
96
+ ### Disabled State
97
+
98
+ 展示禁用状态的图标按钮。
99
+
100
+ ```yaml preview
101
+ brick: ai-portal.icon-button
102
+ properties:
103
+ icon:
104
+ lib: antd
105
+ icon: delete
106
+ tooltip: 无法删除
107
+ disabled: true
108
+ ```
109
+
110
+ ### With Text Slot
111
+
112
+ 图标按钮配合文字内容插槽。
113
+
114
+ ```yaml preview
115
+ brick: ai-portal.icon-button
116
+ properties:
117
+ icon:
118
+ lib: easyops
119
+ icon: new-chat
120
+ active: true
121
+ reduceIconSize: true
122
+ children:
123
+ - brick: span
124
+ properties:
125
+ textContent: 新建对话
126
+ ```
127
+
128
+ ### With Tooltip Hoist
129
+
130
+ 配置 tooltipHoist 防止 Tooltip 被父容器裁剪。
131
+
132
+ ```yaml preview
133
+ brick: ai-portal.icon-button
134
+ properties:
135
+ icon:
136
+ lib: antd
137
+ icon: info-circle
138
+ tooltip: 这是一条提示信息
139
+ tooltipHoist: true
14
140
  ```