@farris/x-ui 0.1.1 → 0.1.2
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/bubble/src/components/bubble-think/bubble-think.props.d.ts +1 -1
- package/bubble/src/composition/types.d.ts +10 -0
- package/bubble/src/composition/use-widget-content.d.ts +7 -1
- package/carousel/src/components/carousel-item.component.d.ts +1 -1
- package/farris.x-ui.esm.js +1911 -1847
- package/farris.x-ui.umd.cjs +46 -46
- package/hitl-question/src/hitl-question.component.d.ts +11 -0
- package/index.css +1 -1
- package/package.json +1 -1
- package/started-todo/src/started-todo.component.d.ts +27 -0
- package/started-todo/src/started-todo.props.d.ts +18 -0
- package/todo/src/composition/type.d.ts +8 -0
package/package.json
CHANGED
|
@@ -46,6 +46,18 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
46
46
|
type: import('../../../vue').PropType<import('../../../../..').OutputMode>;
|
|
47
47
|
default: import('../../../../..').OutputMode;
|
|
48
48
|
};
|
|
49
|
+
listStatus: {
|
|
50
|
+
type: import('../../../vue').PropType<"active" | "completed">;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
completedCount: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
totalCount: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
49
61
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
|
|
50
62
|
type: {
|
|
51
63
|
type: import('../../../vue').PropType<TodoItemStatus>;
|
|
@@ -92,6 +104,18 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
92
104
|
type: import('../../../vue').PropType<import('../../../../..').OutputMode>;
|
|
93
105
|
default: import('../../../../..').OutputMode;
|
|
94
106
|
};
|
|
107
|
+
listStatus: {
|
|
108
|
+
type: import('../../../vue').PropType<"active" | "completed">;
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
completedCount: {
|
|
112
|
+
type: NumberConstructor;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
totalCount: {
|
|
116
|
+
type: NumberConstructor;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
95
119
|
}>> & Readonly<{}>, {
|
|
96
120
|
type: TodoItemStatus;
|
|
97
121
|
message: string;
|
|
@@ -104,5 +128,8 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
104
128
|
shimmer: boolean;
|
|
105
129
|
outputMode: import('../../../../..').OutputMode;
|
|
106
130
|
taskDetail: string;
|
|
131
|
+
listStatus: "active" | "completed";
|
|
132
|
+
completedCount: number;
|
|
133
|
+
totalCount: number;
|
|
107
134
|
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
108
135
|
export default _default;
|
|
@@ -50,5 +50,23 @@ export declare const startedTodoProps: {
|
|
|
50
50
|
type: PropType<OutputMode>;
|
|
51
51
|
default: OutputMode;
|
|
52
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* 待办列表整体状态:`completed` 时 header 圆形 icon 换为对勾、追加「已完成 (N/N)」chip,
|
|
55
|
+
* 根节点添加 `is-completed` 类,便于业务方在 SCSS 做轻量点缀;不影响展开/收起。
|
|
56
|
+
*/
|
|
57
|
+
listStatus: {
|
|
58
|
+
type: PropType<"active" | "completed">;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
/** 已完成项数:若未显式传入,组件内部按 `todoList.filter(status='Done').length` 自动计算 */
|
|
62
|
+
completedCount: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
/** 总项数:若未显式传入,组件内部回退到 `todoList.length` */
|
|
67
|
+
totalCount: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
53
71
|
};
|
|
54
72
|
export type StartedTodoProps = ExtractPropTypes<typeof startedTodoProps>;
|
|
@@ -23,10 +23,18 @@ export interface TodoWorkItem {
|
|
|
23
23
|
/** 任务标题,对 task 的简要概述 */
|
|
24
24
|
title?: string;
|
|
25
25
|
}
|
|
26
|
+
/** 待办列表整体状态:`active` 进行中(含创建/更新);`completed` 整个列表全部完成 */
|
|
27
|
+
export type TodoListStatus = 'active' | 'completed';
|
|
26
28
|
/** 待办任务类型消息内容 */
|
|
27
29
|
export interface MessageContentTodo {
|
|
28
30
|
type: 'Todo';
|
|
29
31
|
/** 消息标题,显示在列表外部 */
|
|
30
32
|
message: string;
|
|
31
33
|
items: TodoWorkItem[];
|
|
34
|
+
/**
|
|
35
|
+
* 整体待办状态:由网关 `agent/todo-list` content.listStatus 透传。
|
|
36
|
+
* `completed` 时上层(如 BubbleThoughtChain / FXStartedTodo)应展示「全部完成」视觉
|
|
37
|
+
* (header icon 换勾、追加 chip 等),不再自动收起。
|
|
38
|
+
*/
|
|
39
|
+
listStatus?: TodoListStatus;
|
|
32
40
|
}
|