@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.
- package/dist/bricks.json +45 -45
- package/dist/chunks/1097.05983e91.js +3 -0
- package/dist/chunks/{1097.9e80dcca.js.LICENSE.txt → 1097.05983e91.js.LICENSE.txt} +2 -0
- package/dist/chunks/1097.05983e91.js.map +1 -0
- package/dist/chunks/{1889.b7766f77.js → 1889.803775eb.js} +2 -2
- package/dist/chunks/{1889.b7766f77.js.map → 1889.803775eb.js.map} +1 -1
- package/dist/chunks/3171.9d323cbe.js +2 -0
- package/dist/chunks/3171.9d323cbe.js.map +1 -0
- package/dist/chunks/{3186.f231329a.js → 3186.ca53075a.js} +2 -2
- package/dist/chunks/{3186.f231329a.js.map → 3186.ca53075a.js.map} +1 -1
- package/dist/chunks/3840.6080d56e.js +3 -0
- package/dist/chunks/3840.6080d56e.js.map +1 -0
- package/dist/chunks/{4864.bee3bb30.js → 4864.beefe6d5.js} +2 -2
- package/dist/chunks/{4864.bee3bb30.js.map → 4864.beefe6d5.js.map} +1 -1
- package/dist/chunks/5399.ef4bb3aa.js +2 -0
- package/dist/chunks/5399.ef4bb3aa.js.map +1 -0
- package/dist/chunks/551.ae5171a6.js +3 -0
- package/dist/chunks/551.ae5171a6.js.map +1 -0
- package/dist/chunks/5552.53024929.js +2 -0
- package/dist/chunks/5552.53024929.js.map +1 -0
- package/dist/chunks/6277.c8a6013f.js +2 -0
- package/dist/chunks/6277.c8a6013f.js.map +1 -0
- package/dist/chunks/6376.c35ff317.js +2 -0
- package/dist/chunks/6376.c35ff317.js.map +1 -0
- package/dist/chunks/7669.6f177bf2.js +3 -0
- package/dist/chunks/7669.6f177bf2.js.map +1 -0
- package/dist/chunks/794.214aa08f.js +3 -0
- package/dist/chunks/794.214aa08f.js.map +1 -0
- package/dist/chunks/948.c96c7036.js +3 -0
- package/dist/chunks/948.c96c7036.js.map +1 -0
- package/dist/chunks/action-buttons.68666920.js.map +1 -1
- package/dist/chunks/activity-timeline.96e7aaea.js.map +1 -1
- package/dist/chunks/ai-agents.cffd08a0.js.map +1 -1
- package/dist/chunks/ai-employees.267c3626.js.map +1 -1
- package/dist/chunks/blank-state.648eea95.js.map +1 -1
- package/dist/chunks/chat-box.060b8727.js +3 -0
- package/dist/chunks/chat-box.060b8727.js.map +1 -0
- package/dist/chunks/chat-input.e913e9ed.js +3 -0
- package/dist/chunks/chat-input.e913e9ed.js.map +1 -0
- package/dist/chunks/chat-panel-welcome.2f7c6c8b.js.map +1 -1
- package/dist/chunks/{chat-panel.3160f2e8.js → chat-panel.63207d2f.js} +2 -2
- package/dist/chunks/chat-panel.63207d2f.js.map +1 -0
- package/dist/chunks/chat-stream.393c8241.js.map +1 -1
- package/dist/chunks/cruise-canvas.bfae3138.js.map +1 -1
- package/dist/chunks/dropdown-select.336442ba.js.map +1 -1
- package/dist/chunks/elevo-card.49b42ed0.js.map +1 -1
- package/dist/chunks/elevo-logo.25e3b889.js.map +1 -1
- package/dist/chunks/elevo-sidebar.dfaaf9d1.js +3 -0
- package/dist/chunks/elevo-sidebar.dfaaf9d1.js.map +1 -0
- package/dist/chunks/flow-tabs.ee1290c2.js.map +1 -1
- package/dist/chunks/goal-card-list.74ab5767.js.map +1 -1
- package/dist/chunks/home-container.f1829834.js.map +1 -1
- package/dist/chunks/icon-button.545ffb24.js.map +1 -1
- package/dist/chunks/main.5e1b11a5.js +2 -0
- package/dist/chunks/main.5e1b11a5.js.map +1 -0
- package/dist/chunks/mcp-tools.f132c502.js.map +1 -1
- package/dist/chunks/notice-dropdown.63cb2415.js.map +1 -1
- package/dist/chunks/page-container.2185f2e0.js.map +1 -1
- package/dist/chunks/preview-container.a0ca6e2f.js.map +1 -1
- package/dist/chunks/project-knowledges.51731410.js.map +1 -1
- package/dist/chunks/running-flow.37a428cf.js.map +1 -1
- package/dist/chunks/show-case.44e995fc.js.map +1 -1
- package/dist/chunks/show-cases.c3921ea0.js.map +1 -1
- package/dist/chunks/space-chat-guide.b9f77cb5.js +3 -0
- package/dist/chunks/space-chat-guide.b9f77cb5.js.map +1 -0
- package/dist/chunks/space-logo.994f7a25.js.map +1 -1
- package/dist/chunks/space-workbench.9d48eec0.js +2 -0
- package/dist/chunks/space-workbench.9d48eec0.js.map +1 -0
- package/dist/chunks/stage-flow.9b6fad93.js.map +1 -1
- package/dist/chunks/stat-with-mini-chart.1509cf8c.js.map +1 -1
- package/dist/chunks/sticky-container.d3f7054e.js.map +1 -1
- package/dist/chunks/tab-list.ee97567f.js.map +1 -1
- package/dist/examples.json +56 -44
- package/dist/index.34851313.js +2 -0
- package/dist/index.34851313.js.map +1 -0
- package/dist/manifest.json +624 -343
- package/dist/types.json +1309 -1309
- package/dist-types/action-buttons/i18n.d.ts +1 -1
- package/dist-types/action-buttons/index.d.ts +10 -1
- package/dist-types/activity-timeline/i18n.d.ts +1 -1
- package/dist-types/activity-timeline/index.d.ts +10 -1
- package/dist-types/ai-agents/i18n.d.ts +1 -1
- package/dist-types/ai-agents/index.d.ts +10 -1
- package/dist-types/ai-employees/i18n.d.ts +1 -1
- package/dist-types/ai-employees/index.d.ts +16 -1
- package/dist-types/blank-state/index.d.ts +10 -1
- package/dist-types/chat-box/i18n.d.ts +1 -1
- package/dist-types/chat-input/i18n.d.ts +1 -1
- package/dist-types/chat-input/index.d.ts +37 -1
- package/dist-types/chat-panel/ChatPanelContent.d.ts +2 -2
- package/dist-types/chat-panel/index.d.ts +48 -6
- package/dist-types/chat-stream/Aside/FlowApp/i18n.d.ts +1 -1
- package/dist-types/chat-stream/i18n.d.ts +1 -1
- package/dist-types/chat-stream/index.d.ts +62 -1
- package/dist-types/cruise-canvas/NodeReplay/i18n.d.ts +1 -1
- package/dist-types/cruise-canvas/ToolCallDetail/i18n.d.ts +1 -1
- package/dist-types/cruise-canvas/i18n.d.ts +1 -1
- package/dist-types/cruise-canvas/index.d.ts +71 -1
- package/dist-types/dropdown-select/i18n.d.ts +1 -1
- package/dist-types/dropdown-select/index.d.ts +3 -1
- package/dist-types/elevo-card/index.d.ts +5 -1
- package/dist-types/elevo-logo/index.d.ts +3 -1
- package/dist-types/elevo-sidebar/i18n.d.ts +1 -1
- package/dist-types/elevo-sidebar/index.d.ts +19 -2
- package/dist-types/flow-tabs/index.d.ts +5 -1
- package/dist-types/gantt-chart/i18n.d.ts +1 -1
- package/dist-types/gantt-chart/index.d.ts +3 -1
- package/dist-types/goal-card-list/i18n.d.ts +1 -1
- package/dist-types/goal-card-list/index.d.ts +8 -1
- package/dist-types/home-container/index.d.ts +4 -1
- package/dist-types/icon-button/index.d.ts +4 -1
- package/dist-types/mcp-tools/i18n.d.ts +1 -1
- package/dist-types/mcp-tools/index.d.ts +3 -1
- package/dist-types/notice-dropdown/i18n.d.ts +1 -1
- package/dist-types/notice-list/i18n.d.ts +1 -1
- package/dist-types/page-container/index.d.ts +7 -0
- package/dist-types/preview-container/i18n.d.ts +1 -1
- package/dist-types/preview-container/index.d.ts +4 -0
- package/dist-types/project-conversations/i18n.d.ts +1 -1
- package/dist-types/project-knowledges/i18n.d.ts +1 -1
- package/dist-types/project-knowledges/index.d.ts +5 -0
- package/dist-types/running-flow/index.d.ts +3 -0
- package/dist-types/shared/ActivityPlan/i18n.d.ts +1 -1
- package/dist-types/shared/AskUser/i18n.d.ts +1 -1
- package/dist-types/shared/ChatBox/i18n.d.ts +1 -1
- package/dist-types/shared/CreatedView/i18n.d.ts +1 -1
- package/dist-types/shared/FilePreview/i18n.d.ts +1 -1
- package/dist-types/shared/FileUpload/i18n.d.ts +1 -1
- package/dist-types/shared/NodeFeedback/i18n.d.ts +1 -1
- package/dist-types/show-case/i18n.d.ts +1 -1
- package/dist-types/show-case/index.d.ts +5 -0
- package/dist-types/show-cases/i18n.d.ts +1 -1
- package/dist-types/show-cases/index.d.ts +4 -0
- package/dist-types/space-workbench/chat-panel-welcome/i18n.d.ts +1 -1
- package/dist-types/space-workbench/chat-panel-welcome/index.d.ts +3 -0
- package/dist-types/space-workbench/i18n.d.ts +1 -1
- package/dist-types/space-workbench/index.d.ts +7 -0
- package/dist-types/space-workbench/space-chat-guide/i18n.d.ts +1 -1
- package/dist-types/space-workbench/space-chat-guide/index.d.ts +3 -0
- package/dist-types/space-workbench/space-logo/index.d.ts +1 -0
- package/dist-types/stage-flow/i18n.d.ts +1 -1
- package/dist-types/stage-flow/index.d.ts +21 -0
- package/dist-types/stat-with-mini-chart/index.d.ts +10 -0
- package/dist-types/sticky-container/index.d.ts +3 -0
- package/dist-types/tab-list/index.d.ts +4 -0
- package/docs/action-buttons.md +59 -10
- package/docs/action-buttons.react.md +80 -0
- package/docs/activity-timeline.md +51 -7
- package/docs/activity-timeline.react.md +109 -0
- package/docs/ai-agents.md +62 -2
- package/docs/ai-agents.react.md +73 -0
- package/docs/ai-employees.md +76 -2
- package/docs/ai-employees.react.md +106 -0
- package/docs/blank-state.md +62 -2
- package/docs/blank-state.react.md +77 -0
- package/docs/chat-box.md +134 -52
- package/docs/chat-box.react.md +142 -0
- package/docs/chat-input.md +117 -1
- package/docs/chat-input.react.md +117 -0
- package/docs/chat-panel-welcome.md +39 -0
- package/docs/chat-panel-welcome.react.md +41 -0
- package/docs/chat-panel.md +86 -3
- package/docs/chat-panel.react.md +109 -0
- package/docs/chat-stream.md +149 -2
- package/docs/chat-stream.react.md +155 -0
- package/docs/cruise-canvas.md +159 -0
- package/docs/cruise-canvas.react.md +159 -0
- package/docs/dropdown-select.md +37 -8
- package/docs/dropdown-select.react.md +144 -0
- package/docs/elevo-card.md +75 -1
- package/docs/elevo-card.react.md +104 -0
- package/docs/elevo-logo.md +13 -1
- package/docs/elevo-logo.react.md +27 -0
- package/docs/elevo-sidebar.md +150 -1
- package/docs/elevo-sidebar.react.md +149 -0
- package/docs/flow-tabs.md +97 -2
- package/docs/flow-tabs.react.md +102 -0
- package/docs/gantt-chart.md +101 -0
- package/docs/gantt-chart.react.md +125 -0
- package/docs/goal-card-list.md +149 -13
- package/docs/goal-card-list.react.md +185 -0
- package/docs/home-container.md +48 -2
- package/docs/home-container.react.md +51 -0
- package/docs/icon-button.md +128 -2
- package/docs/icon-button.react.md +120 -0
- package/docs/mcp-tools.md +105 -2
- package/docs/mcp-tools.react.md +117 -0
- package/docs/notice-dropdown.md +53 -10
- package/docs/notice-dropdown.react.md +167 -0
- package/docs/notice-list.md +53 -5
- package/docs/notice-list.react.md +121 -0
- package/docs/page-container.md +80 -3
- package/docs/page-container.react.md +83 -0
- package/docs/preview-container.md +22 -32
- package/docs/preview-container.react.md +71 -0
- package/docs/project-conversations.md +85 -4
- package/docs/project-conversations.react.md +110 -0
- package/docs/project-knowledges.md +73 -8
- package/docs/project-knowledges.react.md +85 -0
- package/docs/running-flow.md +57 -2
- package/docs/running-flow.react.md +90 -0
- package/docs/show-case.md +48 -3
- package/docs/show-case.react.md +60 -0
- package/docs/show-cases.md +52 -2
- package/docs/show-cases.react.md +92 -0
- package/docs/space-chat-guide.md +32 -0
- package/docs/space-chat-guide.react.md +39 -0
- package/docs/space-logo.md +53 -0
- package/docs/space-logo.react.md +46 -0
- package/docs/space-workbench.md +45 -2
- package/docs/space-workbench.react.md +102 -0
- package/docs/stage-flow.md +122 -26
- package/docs/stage-flow.react.md +112 -0
- package/docs/stat-with-mini-chart.md +64 -159
- package/docs/stat-with-mini-chart.react.md +113 -0
- package/docs/sticky-container.md +56 -3
- package/docs/sticky-container.react.md +60 -0
- package/docs/tab-list.md +74 -3
- package/docs/tab-list.react.md +73 -0
- package/package.json +2 -2
- package/dist/chunks/1097.9e80dcca.js +0 -3
- package/dist/chunks/1097.9e80dcca.js.map +0 -1
- package/dist/chunks/2341.0e70532b.js +0 -2
- package/dist/chunks/2341.0e70532b.js.map +0 -1
- package/dist/chunks/3171.45ef4669.js +0 -2
- package/dist/chunks/3171.45ef4669.js.map +0 -1
- package/dist/chunks/3573.7b0bb780.js +0 -3
- package/dist/chunks/3573.7b0bb780.js.map +0 -1
- package/dist/chunks/4459.dbfa8706.js +0 -3
- package/dist/chunks/4459.dbfa8706.js.map +0 -1
- package/dist/chunks/4837.570099ad.js +0 -2
- package/dist/chunks/4837.570099ad.js.map +0 -1
- package/dist/chunks/5399.501fc322.js +0 -2
- package/dist/chunks/5399.501fc322.js.map +0 -1
- package/dist/chunks/5552.09658542.js +0 -2
- package/dist/chunks/5552.09658542.js.map +0 -1
- package/dist/chunks/6380.b8610c4b.js +0 -3
- package/dist/chunks/6380.b8610c4b.js.map +0 -1
- package/dist/chunks/7202.a893b0e6.js +0 -3
- package/dist/chunks/7202.a893b0e6.js.map +0 -1
- package/dist/chunks/948.e601f18c.js +0 -3
- package/dist/chunks/948.e601f18c.js.map +0 -1
- package/dist/chunks/9599.02a5e6e3.js +0 -2
- package/dist/chunks/9599.02a5e6e3.js.map +0 -1
- package/dist/chunks/9848.4b1f38c9.js +0 -3
- package/dist/chunks/9848.4b1f38c9.js.LICENSE.txt +0 -1
- package/dist/chunks/9848.4b1f38c9.js.map +0 -1
- package/dist/chunks/chat-box.1ac7555a.js +0 -3
- package/dist/chunks/chat-box.1ac7555a.js.map +0 -1
- package/dist/chunks/chat-input.444c80bb.js +0 -3
- package/dist/chunks/chat-input.444c80bb.js.map +0 -1
- package/dist/chunks/chat-panel.3160f2e8.js.map +0 -1
- package/dist/chunks/elevo-sidebar.a197a77f.js +0 -3
- package/dist/chunks/elevo-sidebar.a197a77f.js.map +0 -1
- package/dist/chunks/main.9d171af9.js +0 -2
- package/dist/chunks/main.9d171af9.js.map +0 -1
- package/dist/chunks/space-chat-guide.84f4a1e7.js +0 -3
- package/dist/chunks/space-chat-guide.84f4a1e7.js.map +0 -1
- package/dist/chunks/space-workbench.8c064898.js +0 -2
- package/dist/chunks/space-workbench.8c064898.js.map +0 -1
- package/dist/index.0edd6320.js +0 -2
- package/dist/index.0edd6320.js.map +0 -1
- /package/dist/chunks/{3573.7b0bb780.js.LICENSE.txt → 3840.6080d56e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4459.dbfa8706.js.LICENSE.txt → 551.ae5171a6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7202.a893b0e6.js.LICENSE.txt → 7669.6f177bf2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6380.b8610c4b.js.LICENSE.txt → 794.214aa08f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{948.e601f18c.js.LICENSE.txt → 948.c96c7036.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-box.1ac7555a.js.LICENSE.txt → chat-box.060b8727.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-input.444c80bb.js.LICENSE.txt → chat-input.e913e9ed.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{elevo-sidebar.a197a77f.js.LICENSE.txt → elevo-sidebar.dfaaf9d1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{space-chat-guide.84f4a1e7.js.LICENSE.txt → space-chat-guide.b9f77cb5.js.LICENSE.txt} +0 -0
|
@@ -28,7 +28,9 @@ export interface ElevoSidebarProps {
|
|
|
28
28
|
}
|
|
29
29
|
export type { ActionClickDetail, Project, ProjectActionClickDetail };
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Elevo AI 侧边栏,包含 Logo 导航、新建对话、历史记录、项目列表及个人账户操作,支持折叠和抽屉两种行为模式。
|
|
32
|
+
*
|
|
33
|
+
* @category layout-component
|
|
32
34
|
*/
|
|
33
35
|
export declare class ElevoSidebar extends ReactNextElement implements ElevoSidebarProps {
|
|
34
36
|
#private;
|
|
@@ -52,13 +54,28 @@ export declare class ElevoSidebar extends ReactNextElement implements ElevoSideb
|
|
|
52
54
|
accessor scope: "default" | "space" | undefined;
|
|
53
55
|
accessor spaceNav: SpaceNavProps | undefined;
|
|
54
56
|
/**
|
|
55
|
-
*
|
|
57
|
+
* 延迟一段时间后拉取最新对话历史
|
|
58
|
+
* @param delay 拉取前的等待时长(毫秒),用于等待任务标题生成完成
|
|
56
59
|
*/
|
|
57
60
|
pullHistory(delay: number): void;
|
|
61
|
+
/** 展开侧边栏(behavior 为 drawer 时有效) */
|
|
58
62
|
open(): void;
|
|
63
|
+
/** 折叠侧边栏(behavior 为 drawer 时有效) */
|
|
59
64
|
close(): void;
|
|
65
|
+
/**
|
|
66
|
+
* 从历史列表中移除指定项目及其对话
|
|
67
|
+
* @param projectId 要移除的项目 instanceId
|
|
68
|
+
*/
|
|
60
69
|
removeProject(projectId: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* 向项目列表中追加一个新项目
|
|
72
|
+
* @param project 要追加的项目对象
|
|
73
|
+
*/
|
|
61
74
|
addProject(project: Project): void;
|
|
75
|
+
/**
|
|
76
|
+
* 将指定对话标记为已移入项目,从历史列表中隐藏
|
|
77
|
+
* @param conversationId 要移动的对话 ID
|
|
78
|
+
*/
|
|
62
79
|
moveConversation(conversationId: string): void;
|
|
63
80
|
render(): React.JSX.Element;
|
|
64
81
|
}
|
|
@@ -10,7 +10,11 @@ export interface Tab {
|
|
|
10
10
|
label: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 流程标签页组件,提供带背景画布动效的标签导航,支持工具栏插槽和默认内容插槽。
|
|
14
|
+
*
|
|
15
|
+
* @category navigate
|
|
16
|
+
* @slot toolbar - 标签栏右侧工具栏区域
|
|
17
|
+
* @slot default - 标签页内容区域
|
|
14
18
|
*/
|
|
15
19
|
export declare class FlowTabs extends ReactNextElement implements FlowTabsProps {
|
|
16
20
|
#private;
|
|
@@ -8,7 +8,7 @@ export declare const locales: {
|
|
|
8
8
|
en: Locale;
|
|
9
9
|
zh: Locale;
|
|
10
10
|
};
|
|
11
|
-
export declare const t:
|
|
11
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/gantt-chart", import("i18next").KeyPrefix<"bricks/ai-portal/gantt-chart">, "bricks/ai-portal/gantt-chart">;
|
|
12
12
|
type Locale = {
|
|
13
13
|
[k in K]: string;
|
|
14
14
|
} & {
|
|
@@ -7,7 +7,9 @@ export interface GanttChartProps {
|
|
|
7
7
|
nodes?: GanttNode[];
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 甘特图组件,以树状层级结构展示任务节点及其时间条,支持折叠展开和全屏操作。
|
|
11
|
+
*
|
|
12
|
+
* @category chart
|
|
11
13
|
*/
|
|
12
14
|
export declare class GanttChart extends ReactNextElement implements GanttChartProps {
|
|
13
15
|
#private;
|
|
@@ -9,7 +9,7 @@ export declare const locales: {
|
|
|
9
9
|
en: Locale;
|
|
10
10
|
zh: Locale;
|
|
11
11
|
};
|
|
12
|
-
export declare const t:
|
|
12
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/goal-card-list", import("i18next").KeyPrefix<"bricks/ai-portal/goal-card-list">, "bricks/ai-portal/goal-card-list">;
|
|
13
13
|
type Locale = {
|
|
14
14
|
[k in K]: string;
|
|
15
15
|
} & {
|
|
@@ -8,13 +8,20 @@ export interface GoalCardListProps {
|
|
|
8
8
|
activeKey?: string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 目标卡片列表,以分层卡片形式展示目标项,支持内联编辑标题、状态切换、新建对话及追加子目标。
|
|
12
|
+
*
|
|
13
|
+
* @category display-component
|
|
12
14
|
*/
|
|
13
15
|
export declare class GoalCardList extends ReactNextElement implements GoalCardListProps {
|
|
14
16
|
#private;
|
|
15
17
|
accessor goalList: GoalItem[] | undefined;
|
|
16
18
|
accessor cardStyle: React.CSSProperties | undefined;
|
|
17
19
|
accessor activeKey: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* 将待定子目标提交为正式目标项
|
|
22
|
+
* @param pendingId 待定子目标的临时 instanceId
|
|
23
|
+
* @param newItem 创建完成后的真实目标数据
|
|
24
|
+
*/
|
|
18
25
|
appendChildDone(pendingId: string, newItem: GoalItem): void;
|
|
19
26
|
render(): React.JSX.Element;
|
|
20
27
|
}
|
|
@@ -5,7 +5,10 @@ export interface HomeContainerProps {
|
|
|
5
5
|
sticky?: boolean;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* AI Portal 首页容器,通过 sticky 属性控制顶部吸附行为,内容通过默认插槽传入。
|
|
9
|
+
*
|
|
10
|
+
* @category layout-component
|
|
11
|
+
* @slot default - 页面内容区域
|
|
9
12
|
*/
|
|
10
13
|
export declare class HomeContainer extends ReactNextElement implements HomeContainerProps {
|
|
11
14
|
accessor sticky: boolean | undefined;
|
|
@@ -13,7 +13,10 @@ export interface IconButtonProps {
|
|
|
13
13
|
}
|
|
14
14
|
export type IconButtonVariant = "default" | "light" | "mini" | "mini-light" | "bordered";
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 图标按钮,支持多种视觉变体、禁用状态、Tooltip 提示及文字插槽。
|
|
17
|
+
*
|
|
18
|
+
* @category interact-basic
|
|
19
|
+
* @slot default - 图标旁边的文字内容(可选)
|
|
17
20
|
*/
|
|
18
21
|
export declare class IconButton extends ReactNextElement implements IconButtonProps {
|
|
19
22
|
accessor icon: (GeneralIconProps & HTMLAttributes<GeneralIcon>) | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const locales: {
|
|
|
17
17
|
en: Locale;
|
|
18
18
|
zh: Locale;
|
|
19
19
|
};
|
|
20
|
-
export declare const t:
|
|
20
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/mcp-tools", import("i18next").KeyPrefix<"bricks/ai-portal/mcp-tools">, "bricks/ai-portal/mcp-tools">;
|
|
21
21
|
type Locale = {
|
|
22
22
|
[k in K]: string;
|
|
23
23
|
} & {
|
|
@@ -18,7 +18,9 @@ export interface McpServer {
|
|
|
18
18
|
name: string;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* MCP 工具列表组件,按服务分组展示工具信息,支持按平台分类过滤和吸顶标签栏。
|
|
22
|
+
*
|
|
23
|
+
* @category display-component
|
|
22
24
|
*/
|
|
23
25
|
export declare class McpTools extends ReactNextElement implements McpToolsProps {
|
|
24
26
|
accessor list: McpTool[] | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const locales: {
|
|
|
9
9
|
en: Locale;
|
|
10
10
|
zh: Locale;
|
|
11
11
|
};
|
|
12
|
-
export declare const t:
|
|
12
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/notice-dropdown", import("i18next").KeyPrefix<"bricks/ai-portal/notice-dropdown">, "bricks/ai-portal/notice-dropdown">;
|
|
13
13
|
type Locale = {
|
|
14
14
|
[k in K]: string;
|
|
15
15
|
} & {
|
|
@@ -8,7 +8,7 @@ export declare const locales: {
|
|
|
8
8
|
en: Locale;
|
|
9
9
|
zh: Locale;
|
|
10
10
|
};
|
|
11
|
-
export declare const t:
|
|
11
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/notice-list", import("i18next").KeyPrefix<"bricks/ai-portal/notice-list">, "bricks/ai-portal/notice-list">;
|
|
12
12
|
type Locale = {
|
|
13
13
|
[k in K]: string;
|
|
14
14
|
} & {
|
|
@@ -15,14 +15,21 @@ export interface Breadcrumb {
|
|
|
15
15
|
/**
|
|
16
16
|
* 构件 `ai-portal.page-container`
|
|
17
17
|
*
|
|
18
|
+
* 页面容器构件,提供统一的页面布局,包含面包屑导航、页面标题和内容区域。
|
|
19
|
+
*
|
|
18
20
|
* @slot - 内容
|
|
19
21
|
* @slot toolbar - 工具栏
|
|
20
22
|
*/
|
|
21
23
|
export declare class PageContainer extends ReactNextElement implements PageContainerProps {
|
|
24
|
+
/** 页面标题,同时会调用 applyPageTitle 更新浏览器标签页标题 */
|
|
22
25
|
accessor pageTitle: string | undefined;
|
|
26
|
+
/** 面包屑导航配置,每项包含 text 和 url */
|
|
23
27
|
accessor breadcrumbs: Breadcrumb[] | undefined;
|
|
28
|
+
/** 内容区域宽度模式,通过 CSS attribute selector 控制样式,不触发重新渲染 */
|
|
24
29
|
accessor size: "medium" | "small" | "full" | undefined;
|
|
30
|
+
/** 页面变体,通过 CSS attribute selector 控制样式,不触发重新渲染 */
|
|
25
31
|
accessor variant: "default" | "form" | undefined;
|
|
32
|
+
/** 是否固定头部(含面包屑和标题)到页面顶部 */
|
|
26
33
|
accessor sticky: boolean | undefined;
|
|
27
34
|
render(): React.JSX.Element;
|
|
28
35
|
}
|
|
@@ -6,7 +6,7 @@ export declare const locales: {
|
|
|
6
6
|
en: Locale;
|
|
7
7
|
zh: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const t:
|
|
9
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/preview-container", import("i18next").KeyPrefix<"bricks/ai-portal/preview-container">, "bricks/ai-portal/preview-container">;
|
|
10
10
|
type Locale = {
|
|
11
11
|
[k in K]: string;
|
|
12
12
|
} & {
|
|
@@ -7,10 +7,14 @@ export interface PreviewContainerProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* 构件 `ai-portal.preview-container`
|
|
10
|
+
*
|
|
11
|
+
* TSX 源码预览容器,将 TSX 源码字符串解析并渲染为完整的页面视图。
|
|
10
12
|
*/
|
|
11
13
|
export declare class PreviewContainer extends ReactNextElement implements PreviewContainerProps {
|
|
12
14
|
#private;
|
|
15
|
+
/** TSX 源码字符串,将被解析并渲染为页面视图 */
|
|
13
16
|
accessor source: string | undefined;
|
|
17
|
+
/** 渲染上下文中可访问的 URL,传入后可在视图内通过路由相关 API 使用 */
|
|
14
18
|
accessor url: string | undefined;
|
|
15
19
|
render(): React.JSX.Element;
|
|
16
20
|
}
|
|
@@ -6,7 +6,7 @@ export declare const locales: {
|
|
|
6
6
|
en: Locale;
|
|
7
7
|
zh: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const t:
|
|
9
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/project-conversations", import("i18next").KeyPrefix<"bricks/ai-portal/project-conversations">, "bricks/ai-portal/project-conversations">;
|
|
10
10
|
type Locale = {
|
|
11
11
|
[k in K]: string;
|
|
12
12
|
} & {
|
|
@@ -6,7 +6,7 @@ export declare const locales: {
|
|
|
6
6
|
en: Locale;
|
|
7
7
|
zh: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const t:
|
|
9
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/project-knowledges", import("i18next").KeyPrefix<"bricks/ai-portal/project-knowledges">, "bricks/ai-portal/project-knowledges">;
|
|
10
10
|
type Locale = {
|
|
11
11
|
[k in K]: string;
|
|
12
12
|
} & {
|
|
@@ -20,11 +20,16 @@ export interface ActionClickDetail {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* 构件 `ai-portal.project-knowledges`
|
|
23
|
+
*
|
|
24
|
+
* 项目知识库列表构件,展示项目中的知识条目,支持操作菜单和点击跳转。
|
|
23
25
|
*/
|
|
24
26
|
export declare class ProjectKnowledges extends ReactNextElement implements ProjectKnowledgesProps {
|
|
25
27
|
#private;
|
|
28
|
+
/** 知识列表数据,为 undefined 时显示加载状态 */
|
|
26
29
|
accessor list: Knowledge[] | undefined;
|
|
30
|
+
/** 知识详情链接模板,支持使用知识字段插值 */
|
|
27
31
|
accessor urlTemplate: string | undefined;
|
|
32
|
+
/** 操作菜单配置,每条知识行尾显示可操作的菜单项 */
|
|
28
33
|
accessor actions: ActionType[] | undefined;
|
|
29
34
|
render(): React.JSX.Element;
|
|
30
35
|
}
|
|
@@ -24,9 +24,12 @@ export interface RunningFlowMapEvents {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* 构件 `ai-portal.running-flow`
|
|
27
|
+
*
|
|
28
|
+
* 运行中的流程视图构件,以泳道方式展示各阶段的活动及其运行状态(completed、working、input-required 等)。
|
|
27
29
|
*/
|
|
28
30
|
export declare class RunningFlow extends ReactNextElement implements RunningFlowProps {
|
|
29
31
|
#private;
|
|
32
|
+
/** 流程阶段配置数据,每个阶段包含名称和活动列表 */
|
|
30
33
|
accessor spec: FlowStage[] | undefined;
|
|
31
34
|
render(): React.JSX.Element;
|
|
32
35
|
}
|
|
@@ -8,7 +8,7 @@ export declare const locales: {
|
|
|
8
8
|
en: Locale;
|
|
9
9
|
zh: Locale;
|
|
10
10
|
};
|
|
11
|
-
export declare const t:
|
|
11
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/ActivityPlan", import("i18next").KeyPrefix<"bricks/ai-portal/ActivityPlan">, "bricks/ai-portal/ActivityPlan">;
|
|
12
12
|
type Locale = {
|
|
13
13
|
[k in K]: string;
|
|
14
14
|
} & {
|
|
@@ -6,7 +6,7 @@ export declare const locales: {
|
|
|
6
6
|
en: Locale;
|
|
7
7
|
zh: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const t:
|
|
9
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/AskUser", import("i18next").KeyPrefix<"bricks/ai-portal/AskUser">, "bricks/ai-portal/AskUser">;
|
|
10
10
|
type Locale = {
|
|
11
11
|
[k in K]: string;
|
|
12
12
|
} & {
|
|
@@ -9,7 +9,7 @@ export declare const locales: {
|
|
|
9
9
|
en: Locale;
|
|
10
10
|
zh: Locale;
|
|
11
11
|
};
|
|
12
|
-
export declare const t:
|
|
12
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/ChatBox", import("i18next").KeyPrefix<"bricks/ai-portal/ChatBox">, "bricks/ai-portal/ChatBox">;
|
|
13
13
|
type Locale = {
|
|
14
14
|
[k in K]: string;
|
|
15
15
|
} & {
|
|
@@ -8,7 +8,7 @@ export declare const locales: {
|
|
|
8
8
|
en: Locale;
|
|
9
9
|
zh: Locale;
|
|
10
10
|
};
|
|
11
|
-
export declare const t:
|
|
11
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/CreatedView", import("i18next").KeyPrefix<"bricks/ai-portal/CreatedView">, "bricks/ai-portal/CreatedView">;
|
|
12
12
|
type Locale = {
|
|
13
13
|
[k in K]: string;
|
|
14
14
|
} & {
|
|
@@ -11,7 +11,7 @@ export declare const locales: {
|
|
|
11
11
|
en: Locale;
|
|
12
12
|
zh: Locale;
|
|
13
13
|
};
|
|
14
|
-
export declare const t:
|
|
14
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/FilePreview", import("i18next").KeyPrefix<"bricks/ai-portal/FilePreview">, "bricks/ai-portal/FilePreview">;
|
|
15
15
|
type Locale = {
|
|
16
16
|
[k in K]: string;
|
|
17
17
|
} & {
|
|
@@ -14,7 +14,7 @@ export declare const locales: {
|
|
|
14
14
|
en: Locale;
|
|
15
15
|
zh: Locale;
|
|
16
16
|
};
|
|
17
|
-
export declare const t:
|
|
17
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/FileUpload", import("i18next").KeyPrefix<"bricks/ai-portal/FileUpload">, "bricks/ai-portal/FileUpload">;
|
|
18
18
|
type Locale = {
|
|
19
19
|
[k in K]: string;
|
|
20
20
|
} & {
|
|
@@ -18,7 +18,7 @@ export declare const locales: {
|
|
|
18
18
|
en: Locale;
|
|
19
19
|
zh: Locale;
|
|
20
20
|
};
|
|
21
|
-
export declare const t:
|
|
21
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/NodeFeedback", import("i18next").KeyPrefix<"bricks/ai-portal/NodeFeedback">, "bricks/ai-portal/NodeFeedback">;
|
|
22
22
|
type Locale = {
|
|
23
23
|
[k in K]: string;
|
|
24
24
|
} & {
|
|
@@ -6,7 +6,7 @@ export declare const locales: {
|
|
|
6
6
|
en: Locale;
|
|
7
7
|
zh: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const t:
|
|
9
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/show-case", import("i18next").KeyPrefix<"bricks/ai-portal/show-case">, "bricks/ai-portal/show-case">;
|
|
10
10
|
type Locale = {
|
|
11
11
|
[k in K]: string;
|
|
12
12
|
} & {
|
|
@@ -8,10 +8,15 @@ export interface ShowCaseProps {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* 构件 `ai-portal.show-case`
|
|
11
|
+
*
|
|
12
|
+
* 案例展示卡片构件,以彩色背景卡片展示单个优秀案例,点击可跳转到案例详情。
|
|
11
13
|
*/
|
|
12
14
|
export declare class ShowCase extends ReactNextElement implements ShowCaseProps {
|
|
15
|
+
/** 案例标题,同时用于计算卡片背景色 */
|
|
13
16
|
accessor caseTitle: string | undefined;
|
|
17
|
+
/** 案例摘要描述 */
|
|
14
18
|
accessor summary: string | undefined;
|
|
19
|
+
/** 点击卡片跳转的目标链接 */
|
|
15
20
|
accessor url: string | undefined;
|
|
16
21
|
render(): React.JSX.Element;
|
|
17
22
|
}
|
|
@@ -7,7 +7,7 @@ export declare const locales: {
|
|
|
7
7
|
en: Locale;
|
|
8
8
|
zh: Locale;
|
|
9
9
|
};
|
|
10
|
-
export declare const t:
|
|
10
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/show-cases", import("i18next").KeyPrefix<"bricks/ai-portal/show-cases">, "bricks/ai-portal/show-cases">;
|
|
11
11
|
type Locale = {
|
|
12
12
|
[k in K]: string;
|
|
13
13
|
} & {
|
|
@@ -8,9 +8,13 @@ export interface ShowCasesProps {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* 构件 `ai-portal.show-cases`
|
|
11
|
+
*
|
|
12
|
+
* 案例列表展示构件,支持按场景分组筛选,展示多个优秀案例卡片。
|
|
11
13
|
*/
|
|
12
14
|
export declare class ShowCases extends ReactNextElement implements ShowCasesProps {
|
|
15
|
+
/** 案例数据列表,每项可包含 scenario 字段用于分组筛选 */
|
|
13
16
|
accessor list: ShowCaseType[] | undefined;
|
|
17
|
+
/** 每个场景分组下最多显示的案例数量 */
|
|
14
18
|
accessor limit: number | undefined;
|
|
15
19
|
render(): React.JSX.Element;
|
|
16
20
|
}
|
|
@@ -5,7 +5,7 @@ export declare const locales: {
|
|
|
5
5
|
en: Locale;
|
|
6
6
|
zh: Locale;
|
|
7
7
|
};
|
|
8
|
-
export declare const t:
|
|
8
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/chat-panel-welcome", import("i18next").KeyPrefix<"bricks/ai-portal/chat-panel-welcome">, "bricks/ai-portal/chat-panel-welcome">;
|
|
9
9
|
type Locale = {
|
|
10
10
|
[k in K]: string;
|
|
11
11
|
} & {
|
|
@@ -6,8 +6,11 @@ export interface ChatPanelWelcomeProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* 构件 `ai-portal.chat-panel-welcome`
|
|
9
|
+
*
|
|
10
|
+
* 聊天面板欢迎语构件,展示带有 Elevo 头像的欢迎消息。
|
|
9
11
|
*/
|
|
10
12
|
export declare class ChatPanelWelcome extends ReactNextElement implements ChatPanelWelcomeProps {
|
|
13
|
+
/** 欢迎语文本内容 */
|
|
11
14
|
accessor text: string | undefined;
|
|
12
15
|
render(): React.JSX.Element;
|
|
13
16
|
}
|
|
@@ -77,7 +77,7 @@ export declare const locales: {
|
|
|
77
77
|
en: Locale;
|
|
78
78
|
zh: Locale;
|
|
79
79
|
};
|
|
80
|
-
export declare const t:
|
|
80
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/space-workbench", import("i18next").KeyPrefix<"bricks/ai-portal/space-workbench">, "bricks/ai-portal/space-workbench">;
|
|
81
81
|
type Locale = {
|
|
82
82
|
[k in K]: string;
|
|
83
83
|
} & {
|
|
@@ -14,13 +14,20 @@ export interface SpaceWorkbenchProps {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* 构件 `ai-portal.space-workbench`
|
|
17
|
+
*
|
|
18
|
+
* 协作空间工作台,集成顶部导航、侧边栏(知识库、业务实例)、聊天区域和服务流等核心功能的一体化工作台构件。
|
|
17
19
|
*/
|
|
18
20
|
export declare class SpaceWorkbench extends ReactNextElement implements SpaceWorkbenchProps {
|
|
19
21
|
#private;
|
|
22
|
+
/** 消息通知列表 */
|
|
20
23
|
accessor notices: NoticeItem[] | undefined;
|
|
24
|
+
/** 知识库列表 */
|
|
21
25
|
accessor knowledges: KnowledgeItem[] | undefined;
|
|
26
|
+
/** 空间详情信息,必填 */
|
|
22
27
|
accessor spaceDetail: SpaceDetail;
|
|
28
|
+
/** 消息中心跳转链接,必填 */
|
|
23
29
|
accessor notifyCenterUrl: string;
|
|
30
|
+
/** 文件上传配置选项 */
|
|
24
31
|
accessor uploadOptions: UploadOptions | undefined;
|
|
25
32
|
render(): React.JSX.Element;
|
|
26
33
|
}
|
|
@@ -5,7 +5,7 @@ export declare const locales: {
|
|
|
5
5
|
en: Locale;
|
|
6
6
|
zh: Locale;
|
|
7
7
|
};
|
|
8
|
-
export declare const t:
|
|
8
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/space-chat-guide", import("i18next").KeyPrefix<"bricks/ai-portal/space-chat-guide">, "bricks/ai-portal/space-chat-guide">;
|
|
9
9
|
type Locale = {
|
|
10
10
|
[k in K]: string;
|
|
11
11
|
} & {
|
|
@@ -7,8 +7,11 @@ export interface SpaceChatGuideProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* 构件 `ai-portal.space-chat-guide`
|
|
10
|
+
*
|
|
11
|
+
* 空间聊天引导构件,根据空间详情展示引导信息,帮助用户快速开始聊天。
|
|
10
12
|
*/
|
|
11
13
|
export declare class SpaceChatGuide extends ReactNextElement implements SpaceChatGuideProps {
|
|
14
|
+
/** 空间详情信息,必填,用于展示空间相关的引导内容 */
|
|
12
15
|
accessor spaceDetail: SpaceDetail;
|
|
13
16
|
render(): React.JSX.Element;
|
|
14
17
|
}
|
|
@@ -10,6 +10,7 @@ export interface SpaceLogoProps {
|
|
|
10
10
|
* 协作空间的 Logo 展示组件
|
|
11
11
|
*/
|
|
12
12
|
export declare class SpaceLogo extends ReactNextElement implements SpaceLogoProps {
|
|
13
|
+
/** Logo 容器尺寸(px),图标为容器的 87.5%,圆角为容器的 25%,默认 48 */
|
|
13
14
|
accessor size: number | undefined;
|
|
14
15
|
render(): React.JSX.Element;
|
|
15
16
|
}
|
|
@@ -14,7 +14,7 @@ export declare const locales: {
|
|
|
14
14
|
en: Locale;
|
|
15
15
|
zh: Locale;
|
|
16
16
|
};
|
|
17
|
-
export declare const t:
|
|
17
|
+
export declare const t: import("i18next").TFunction<"bricks/ai-portal/stage-flow", import("i18next").KeyPrefix<"bricks/ai-portal/stage-flow">, "bricks/ai-portal/stage-flow">;
|
|
18
18
|
type Locale = {
|
|
19
19
|
[k in K]: string;
|
|
20
20
|
} & {
|
|
@@ -28,14 +28,35 @@ export interface EditActivityDetail {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* 构件 `ai-portal.stage-flow`
|
|
31
|
+
*
|
|
32
|
+
* 阶段流程编辑器构件,支持以泳道方式展示和编辑服务流的阶段与活动。
|
|
31
33
|
*/
|
|
32
34
|
export declare class StageFlow extends ReactNextElement implements StageFlowProps {
|
|
33
35
|
#private;
|
|
36
|
+
/** 阶段流程配置数据,每个阶段包含名称和活动列表 */
|
|
34
37
|
accessor spec: Stage[] | undefined;
|
|
38
|
+
/** AI 员工列表,用于在活动中显示分配的员工名称 */
|
|
35
39
|
accessor aiEmployees: AIEmployee[] | undefined;
|
|
40
|
+
/** 是否为只读模式,只读时不显示编辑、添加、删除操作 */
|
|
36
41
|
accessor readOnly: boolean | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* 向指定阶段添加活动
|
|
44
|
+
* @param stage 目标阶段
|
|
45
|
+
* @param activity 要添加的活动数据
|
|
46
|
+
*/
|
|
37
47
|
addActivity(stage: Stage, activity: FlowActivity): void;
|
|
48
|
+
/**
|
|
49
|
+
* 编辑指定阶段中的某个活动
|
|
50
|
+
* @param stage 目标阶段
|
|
51
|
+
* @param activity 更新后的活动数据
|
|
52
|
+
* @param activityIndex 活动在阶段中的索引
|
|
53
|
+
*/
|
|
38
54
|
editActivity(stage: Stage, activity: FlowActivity, activityIndex: number): void;
|
|
55
|
+
/**
|
|
56
|
+
* 删除指定阶段中的某个活动
|
|
57
|
+
* @param stage 目标阶段
|
|
58
|
+
* @param activityIndex 活动在阶段中的索引
|
|
59
|
+
*/
|
|
39
60
|
deleteActivity(stage: Stage, activityIndex: number): void;
|
|
40
61
|
render(): React.JSX.Element;
|
|
41
62
|
}
|
|
@@ -9,18 +9,25 @@ export interface StatWithMiniChartProps extends Pick<MiniLineChartProps, "data"
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* 构件 `ai-portal.stat-with-mini-chart`
|
|
12
|
+
*
|
|
13
|
+
* 带迷你折线图的统计数据展示构件,在统计数值旁边渲染一个迷你折线图。
|
|
12
14
|
*/
|
|
13
15
|
export declare class StatWithMiniChart extends ReactNextElement implements StatWithMiniChartProps {
|
|
16
|
+
/** 统计指标标签名称 */
|
|
14
17
|
accessor label: string | undefined;
|
|
18
|
+
/** 统计数值文本 */
|
|
15
19
|
accessor value: string | undefined;
|
|
16
20
|
/**
|
|
21
|
+
* 展示尺寸,medium 时图表高度为 92px,small 时为 55px
|
|
17
22
|
* @default "medium"
|
|
18
23
|
*/
|
|
19
24
|
accessor size: "medium" | "small" | undefined;
|
|
20
25
|
/**
|
|
26
|
+
* 折线颜色
|
|
21
27
|
* @default "var(--color-brand)"
|
|
22
28
|
*/
|
|
23
29
|
accessor lineColor: string | undefined;
|
|
30
|
+
/** 是否在折线下方显示渐变填充区域 */
|
|
24
31
|
accessor showArea: boolean | undefined;
|
|
25
32
|
/**
|
|
26
33
|
* Specify the minimum value of the y-axis.
|
|
@@ -33,13 +40,16 @@ export declare class StatWithMiniChart extends ReactNextElement implements StatW
|
|
|
33
40
|
*/
|
|
34
41
|
accessor max: number | undefined;
|
|
35
42
|
/**
|
|
43
|
+
* x 轴字段名(数据中时间字段的 key)
|
|
36
44
|
* @default "0"
|
|
37
45
|
*/
|
|
38
46
|
accessor xField: string | undefined;
|
|
39
47
|
/**
|
|
48
|
+
* y 轴字段名(数据中数值字段的 key)
|
|
40
49
|
* @default "1"
|
|
41
50
|
*/
|
|
42
51
|
accessor yField: string | undefined;
|
|
52
|
+
/** 图表数据源,每项为包含 xField 和 yField 字段的对象 */
|
|
43
53
|
accessor data: Record<string, number>[] | undefined;
|
|
44
54
|
render(): React.JSX.Element;
|
|
45
55
|
}
|
|
@@ -8,12 +8,15 @@ export type StickyContainerVariant = "default" | "home";
|
|
|
8
8
|
/**
|
|
9
9
|
* 构件 `ai-portal.sticky-container`
|
|
10
10
|
*
|
|
11
|
+
* 粘性容器构件,使内容在页面滚动时固定在顶部。
|
|
12
|
+
*
|
|
11
13
|
* @slot - 内容
|
|
12
14
|
* @slot header - 头部
|
|
13
15
|
* @slot toolbar - 工具栏
|
|
14
16
|
*/
|
|
15
17
|
export declare class StickyContainer extends ReactNextElement implements StickyContainerProps {
|
|
16
18
|
/**
|
|
19
|
+
* 变体风格,通过 CSS attribute selector 控制样式,不触发重新渲染
|
|
17
20
|
* @default "default"
|
|
18
21
|
*/
|
|
19
22
|
accessor variant: StickyContainerVariant | undefined;
|
|
@@ -18,12 +18,16 @@ export interface TabListMapping {
|
|
|
18
18
|
/**
|
|
19
19
|
* 构件 `ai-portal.tab-list`
|
|
20
20
|
*
|
|
21
|
+
* 标签页列表构件,展示可切换的标签页,点击后触发事件并自动更新选中状态。
|
|
22
|
+
*
|
|
21
23
|
* @part tabs - The tab list container
|
|
22
24
|
* @part tab - The individual tab
|
|
23
25
|
*/
|
|
24
26
|
export declare class TabList extends ReactNextElement implements TabListProps {
|
|
25
27
|
#private;
|
|
28
|
+
/** 标签页配置列表,每项包含 id 和 label */
|
|
26
29
|
accessor tabs: Tab[] | undefined;
|
|
30
|
+
/** 当前激活的标签页 id */
|
|
27
31
|
accessor activeTab: string | undefined;
|
|
28
32
|
render(): React.JSX.Element;
|
|
29
33
|
}
|