dishui 0.0.89 → 0.0.97
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/.release-verified.json +6 -0
- package/dist/ai.js +22 -0
- package/dist/components/Card/Metric2.js +11 -11
- package/dist/components/Card/Metric2.js.map +1 -1
- package/dist/components/Card/index.d.ts +20 -0
- package/dist/components/Card/index.js +184 -179
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/GroupButton/index.js +4 -4
- package/dist/components/GroupButton/index.js.map +1 -1
- package/dist/components/GroupedTable/index.js +10 -10
- package/dist/components/GroupedTable/index.js.map +1 -1
- package/dist/components/NavigationList/index.js +9 -9
- package/dist/components/NavigationList/index.js.map +1 -1
- package/dist/components/Section/index.js +11 -11
- package/dist/components/Section/index.js.map +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Skeleton/index.js.map +1 -1
- package/dist/components/Table/index.d.ts +23 -2
- package/dist/components/Table/index.js +153 -101
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/ai/AgentChat/index.d.ts +54 -0
- package/dist/components/ai/AgentChat/index.js +176 -0
- package/dist/components/ai/AgentChat/index.js.map +1 -0
- package/dist/components/ai/AgentScreen/index.d.ts +50 -0
- package/dist/components/ai/AgentScreen/index.js +233 -0
- package/dist/components/ai/AgentScreen/index.js.map +1 -0
- package/dist/components/ai/ApprovalCard/index.d.ts +26 -0
- package/dist/components/ai/ApprovalCard/index.js +89 -0
- package/dist/components/ai/ApprovalCard/index.js.map +1 -0
- package/dist/components/ai/CodeView/index.d.ts +30 -0
- package/dist/components/ai/CodeView/index.js +149 -0
- package/dist/components/ai/CodeView/index.js.map +1 -0
- package/dist/components/ai/CommandSearch/index.d.ts +39 -0
- package/dist/components/ai/CommandSearch/index.js +217 -0
- package/dist/components/ai/CommandSearch/index.js.map +1 -0
- package/dist/components/ai/ContextCards/index.d.ts +42 -0
- package/dist/components/ai/ContextCards/index.js +106 -0
- package/dist/components/ai/ContextCards/index.js.map +1 -0
- package/dist/components/ai/DiffTable/index.d.ts +70 -0
- package/dist/components/ai/DiffTable/index.js +235 -0
- package/dist/components/ai/DiffTable/index.js.map +1 -0
- package/dist/components/ai/FilterTable/index.d.ts +35 -0
- package/dist/components/ai/FilterTable/index.js +86 -0
- package/dist/components/ai/FilterTable/index.js.map +1 -0
- package/dist/components/ai/FineTuneCard/index.d.ts +24 -0
- package/dist/components/ai/FineTuneCard/index.js +75 -0
- package/dist/components/ai/FineTuneCard/index.js.map +1 -0
- package/dist/components/ai/InsightCards/index.d.ts +23 -0
- package/dist/components/ai/InsightCards/index.js +64 -0
- package/dist/components/ai/InsightCards/index.js.map +1 -0
- package/dist/components/ai/LoadingState/index.d.ts +22 -0
- package/dist/components/ai/LoadingState/index.js +80 -0
- package/dist/components/ai/LoadingState/index.js.map +1 -0
- package/dist/components/ai/PromptBar/index.d.ts +26 -0
- package/dist/components/ai/PromptBar/index.js +117 -0
- package/dist/components/ai/PromptBar/index.js.map +1 -0
- package/dist/components/ai/RecommendationCard/index.d.ts +44 -0
- package/dist/components/ai/RecommendationCard/index.js +142 -0
- package/dist/components/ai/RecommendationCard/index.js.map +1 -0
- package/dist/components/ai/RecordsTable/index.d.ts +65 -0
- package/dist/components/ai/RecordsTable/index.js +334 -0
- package/dist/components/ai/RecordsTable/index.js.map +1 -0
- package/dist/components/ai/SelectionActions/index.d.ts +19 -0
- package/dist/components/ai/SelectionActions/index.js +40 -0
- package/dist/components/ai/SelectionActions/index.js.map +1 -0
- package/dist/components/ai/StateFlow/index.d.ts +24 -0
- package/dist/components/ai/StateFlow/index.js +50 -0
- package/dist/components/ai/StateFlow/index.js.map +1 -0
- package/dist/components/ai/StreamingText/index.d.ts +44 -0
- package/dist/components/ai/StreamingText/index.js +211 -0
- package/dist/components/ai/StreamingText/index.js.map +1 -0
- package/dist/components/ai/TaskRows/index.d.ts +53 -0
- package/dist/components/ai/TaskRows/index.js +186 -0
- package/dist/components/ai/TaskRows/index.js.map +1 -0
- package/dist/components/ai/Thinking/index.d.ts +47 -0
- package/dist/components/ai/Thinking/index.js +197 -0
- package/dist/components/ai/Thinking/index.js.map +1 -0
- package/dist/components/ai/ToolChips/index.d.ts +21 -0
- package/dist/components/ai/ToolChips/index.js +63 -0
- package/dist/components/ai/ToolChips/index.js.map +1 -0
- package/dist/components/ai/index.d.ts +50 -0
- package/dist/components/ai/shared.d.ts +13 -0
- package/dist/components/ai/shared.js +25 -0
- package/dist/components/ai/shared.js.map +1 -0
- package/dist/components/pro/DataTable/DataTable.js +70 -51
- package/dist/components/pro/DataTable/DataTable.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableBody.d.ts +3 -1
- package/dist/components/pro/DataTable/components/TableBody.js +41 -39
- package/dist/components/pro/DataTable/components/TableBody.js.map +1 -1
- package/dist/components/pro/DataTable/components/TableToolbar.d.ts +2 -1
- package/dist/components/pro/DataTable/components/TableToolbar.js +25 -19
- package/dist/components/pro/DataTable/components/TableToolbar.js.map +1 -1
- package/dist/components/pro/DataTable/index.d.ts +1 -1
- package/dist/components/pro/DataTable/rowDetailExtension.js +1 -1
- package/dist/components/pro/DataTable/rowDetailExtension.js.map +1 -1
- package/dist/components/pro/DataTable/types.d.ts +19 -0
- package/dist/data-table.js.map +1 -1
- package/dist/dishui.css +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +128 -107
- package/dist/layouts/Sidebar.d.ts +16 -0
- package/dist/layouts/Sidebar.js +85 -52
- package/dist/layouts/Sidebar.js.map +1 -1
- package/dist/lite.d.ts +2 -0
- package/dist/lite.js +22 -21
- package/package.json +10 -3
package/dist/ai.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "./components/ai/ApprovalCard/index.js";
|
|
2
|
+
import { AGENT_STATUS_LABEL as t, formatDuration as n, formatElapsed as r } from "./components/ai/shared.js";
|
|
3
|
+
import i, { confidenceLevel as a } from "./components/ai/RecommendationCard/index.js";
|
|
4
|
+
import o from "./components/ai/ContextCards/index.js";
|
|
5
|
+
import s from "./components/ai/InsightCards/index.js";
|
|
6
|
+
import c from "./components/ai/FineTuneCard/index.js";
|
|
7
|
+
import l from "./components/ai/LoadingState/index.js";
|
|
8
|
+
import u from "./components/ai/Thinking/index.js";
|
|
9
|
+
import d from "./components/ai/StreamingText/index.js";
|
|
10
|
+
import f from "./components/ai/ToolChips/index.js";
|
|
11
|
+
import p from "./components/ai/TaskRows/index.js";
|
|
12
|
+
import m from "./components/ai/AgentChat/index.js";
|
|
13
|
+
import h from "./components/ai/PromptBar/index.js";
|
|
14
|
+
import g, { diffRowChange as _, isDiffCellChange as v } from "./components/ai/DiffTable/index.js";
|
|
15
|
+
import y, { STRENGTH_LABEL as b, formatRelativeTime as x, strengthPercent as S } from "./components/ai/RecordsTable/index.js";
|
|
16
|
+
import C from "./components/ai/FilterTable/index.js";
|
|
17
|
+
import w from "./components/ai/CommandSearch/index.js";
|
|
18
|
+
import T from "./components/ai/StateFlow/index.js";
|
|
19
|
+
import E from "./components/ai/CodeView/index.js";
|
|
20
|
+
import D from "./components/ai/SelectionActions/index.js";
|
|
21
|
+
import O from "./components/ai/AgentScreen/index.js";
|
|
22
|
+
export { t as AGENT_STATUS_LABEL, m as AgentChat, O as AgentScreen, e as ApprovalCard, E as CodeView, w as CommandSearch, o as ContextCards, g as DiffTable, C as FilterTable, c as FineTuneCard, s as InsightCards, l as LoadingState, h as PromptBar, i as RecommendationCard, y as RecordsTable, b as STRENGTH_LABEL, D as SelectionActions, T as StateFlow, d as StreamingText, p as TaskRows, u as Thinking, f as ToolChips, a as confidenceLevel, _ as diffRowChange, n as formatDuration, r as formatElapsed, x as formatRelativeTime, v as isDiffCellChange, S as strengthPercent };
|
|
@@ -5,40 +5,40 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/components/Card/Metric.tsx
|
|
6
6
|
var r = [], i = ({ title: i, meta: a, period: o, value: s, description: c, items: l = r, loading: u = !1, className: d, ...f }) => /* @__PURE__ */ n("article", {
|
|
7
7
|
...f,
|
|
8
|
-
className: e("
|
|
8
|
+
className: e("dishui-card-metric", d),
|
|
9
9
|
"aria-busy": u || void 0,
|
|
10
10
|
children: [/* @__PURE__ */ n("div", {
|
|
11
|
-
className: "
|
|
11
|
+
className: "dishui-card-metric__body",
|
|
12
12
|
children: [
|
|
13
13
|
(a != null || o != null) && /* @__PURE__ */ n("div", {
|
|
14
|
-
className: "
|
|
14
|
+
className: "dishui-card-metric__meta",
|
|
15
15
|
children: [/* @__PURE__ */ t("span", { children: a }), /* @__PURE__ */ t("span", {
|
|
16
|
-
className: "
|
|
16
|
+
className: "dishui-card-metric__period",
|
|
17
17
|
children: o
|
|
18
18
|
})]
|
|
19
19
|
}),
|
|
20
20
|
/* @__PURE__ */ t("h3", {
|
|
21
|
-
className: "
|
|
21
|
+
className: "dishui-card-metric__title",
|
|
22
22
|
children: i
|
|
23
23
|
}),
|
|
24
24
|
/* @__PURE__ */ t("div", {
|
|
25
|
-
className: "
|
|
25
|
+
className: "dishui-card-metric__value",
|
|
26
26
|
children: u ? /* @__PURE__ */ t("span", {
|
|
27
|
-
className: "
|
|
27
|
+
className: "dishui-card-metric__skeleton",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
29
|
}) : s
|
|
30
30
|
}),
|
|
31
31
|
c != null && /* @__PURE__ */ t("div", {
|
|
32
|
-
className: "
|
|
32
|
+
className: "dishui-card-metric__description",
|
|
33
33
|
children: c
|
|
34
34
|
})
|
|
35
35
|
]
|
|
36
36
|
}), l.length > 0 && /* @__PURE__ */ t("dl", {
|
|
37
|
-
className: "
|
|
37
|
+
className: "dishui-card-metric__footer",
|
|
38
38
|
children: l.map((e, r) => /* @__PURE__ */ n("div", {
|
|
39
|
-
className: "
|
|
39
|
+
className: "dishui-card-metric__item",
|
|
40
40
|
children: [/* @__PURE__ */ t("dt", { children: e.label }), /* @__PURE__ */ t("dd", { children: u ? /* @__PURE__ */ t("span", {
|
|
41
|
-
className: "
|
|
41
|
+
className: "dishui-card-metric__skeleton",
|
|
42
42
|
"aria-hidden": "true"
|
|
43
43
|
}) : e.value })]
|
|
44
44
|
}, e.key ?? r))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metric2.js","names":[],"sources":["../../../src/components/Card/Metric.tsx"],"sourcesContent":["import React from 'react';\nimport { cn } from '../../utils/cn';\nimport './Metric.css';\n\nexport type CardMetricItem = {\n /** Stable identity for items that may be reordered. */\n key?: React.Key;\n label: React.ReactNode;\n value: React.ReactNode;\n};\n\nexport type CardMetricProps = Omit<React.HTMLAttributes<HTMLElement>, 'title' | 'children'> & {\n title: React.ReactNode;\n meta?: React.ReactNode;\n period?: React.ReactNode;\n value: React.ReactNode;\n description?: React.ReactNode;\n items?: CardMetricItem[];\n loading?: boolean;\n};\n\nconst EMPTY_ITEMS: CardMetricItem[] = [];\n\nexport const CardMetric = ({\n title, meta, period, value, description, items = EMPTY_ITEMS, loading = false,\n className, ...rest\n}: CardMetricProps) => (\n <article {...rest} className={cn('
|
|
1
|
+
{"version":3,"file":"Metric2.js","names":[],"sources":["../../../src/components/Card/Metric.tsx"],"sourcesContent":["import React from 'react';\nimport { cn } from '../../utils/cn';\nimport './Metric.css';\n\nexport type CardMetricItem = {\n /** Stable identity for items that may be reordered. */\n key?: React.Key;\n label: React.ReactNode;\n value: React.ReactNode;\n};\n\nexport type CardMetricProps = Omit<React.HTMLAttributes<HTMLElement>, 'title' | 'children'> & {\n title: React.ReactNode;\n meta?: React.ReactNode;\n period?: React.ReactNode;\n value: React.ReactNode;\n description?: React.ReactNode;\n items?: CardMetricItem[];\n loading?: boolean;\n};\n\nconst EMPTY_ITEMS: CardMetricItem[] = [];\n\nexport const CardMetric = ({\n title, meta, period, value, description, items = EMPTY_ITEMS, loading = false,\n className, ...rest\n}: CardMetricProps) => (\n <article {...rest} className={cn('dishui-card-metric', className)} aria-busy={loading || undefined}>\n <div className=\"dishui-card-metric__body\">\n {((meta !== null && meta !== undefined) || (period !== null && period !== undefined)) && (\n <div className=\"dishui-card-metric__meta\">\n <span>{meta}</span>\n <span className=\"dishui-card-metric__period\">{period}</span>\n </div>\n )}\n <h3 className=\"dishui-card-metric__title\">{title}</h3>\n <div className=\"dishui-card-metric__value\">\n {loading ? <span className=\"dishui-card-metric__skeleton\" aria-hidden=\"true\" /> : value}\n </div>\n {description !== null && description !== undefined && <div className=\"dishui-card-metric__description\">{description}</div>}\n </div>\n {items.length > 0 && (\n <dl className=\"dishui-card-metric__footer\">\n {items.map((item, index) => (\n <div className=\"dishui-card-metric__item\" key={item.key ?? index}>\n <dt>{item.label}</dt>\n <dd>{loading ? <span className=\"dishui-card-metric__skeleton\" aria-hidden=\"true\" /> : item.value}</dd>\n </div>\n ))}\n </dl>\n )}\n </article>\n);\n"],"mappings":";;;;;AAqBA,IAAM,IAAgC,CAAC,GAE1B,KAAc,EACzB,UAAO,SAAM,WAAQ,UAAO,gBAAa,WAAQ,GAAa,aAAU,IACxE,cAAW,GAAG,QAEd,kBAAC,WAAD;CAAS,GAAI;CAAM,WAAW,EAAG,sBAAsB,CAAS;CAAG,aAAW,KAAW,KAAA;CAAzF,UAAA,CACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;IACK,KAAS,QAAgC,KAAW,SACrD,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,QAAD,EAAA,UAAO,EAAW,CAAA,GAClB,kBAAC,QAAD;KAAM,WAAU;KAA8B,UAAA;IAAa,CAAA,CACxD;;GAEP,kBAAC,MAAD;IAAI,WAAU;IAA6B,UAAA;GAAU,CAAA;GACrD,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAA,IAAU,kBAAC,QAAD;KAAM,WAAU;KAA+B,eAAY;IAAQ,CAAA,IAAI;GAC/E,CAAA;GACJ,KAAgB,QAAqC,kBAAC,OAAD;IAAK,WAAU;IAAmC,UAAA;GAAiB,CAAA;EACtH;CACJ,CAAA,GAAA,EAAM,SAAS,KACd,kBAAC,MAAD;EAAI,WAAU;EACX,UAAA,EAAM,KAAK,GAAM,MAChB,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,MAAD,EAAA,UAAK,EAAK,MAAU,CAAA,GACpB,kBAAC,MAAD,EAAA,UAAK,IAAU,kBAAC,QAAD;IAAM,WAAU;IAA+B,eAAY;GAAQ,CAAA,IAAI,EAAK,MAAU,CAAA,CAClG;EAH0C,GAAA,EAAK,OAAO,CAGtD,CACN;CACC,CAAA,CAEC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type CardMetricProps } from './Metric';
|
|
3
|
+
import { type ApprovalCardProps } from '../ai/ApprovalCard';
|
|
4
|
+
import { type RecommendationCardProps } from '../ai/RecommendationCard';
|
|
5
|
+
import { type ContextCardsProps } from '../ai/ContextCards';
|
|
6
|
+
import { type InsightCardsProps } from '../ai/InsightCards';
|
|
7
|
+
import { type FineTuneCardProps } from '../ai/FineTuneCard';
|
|
3
8
|
export type { CardMetricProps, CardMetricItem } from './Metric';
|
|
9
|
+
export type { ApprovalCardProps, ApprovalOption } from '../ai/ApprovalCard';
|
|
10
|
+
export type { RecommendationCardProps, Recommendation, RecommendationAlternative, RecommendationCardLabels, ConfidenceLevel } from '../ai/RecommendationCard';
|
|
11
|
+
export type { ContextCardsProps, ContextChunk, ContextSource, ContextSourceKind, ContextCardsLabels } from '../ai/ContextCards';
|
|
12
|
+
export type { InsightCardsProps, InsightCardItem } from '../ai/InsightCards';
|
|
13
|
+
export type { FineTuneCardProps, FineTuneMetric } from '../ai/FineTuneCard';
|
|
4
14
|
export type CardProps = {
|
|
5
15
|
children: React.ReactNode;
|
|
6
16
|
variant?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -201,6 +211,16 @@ interface CardCompound extends React.FC<CardProps> {
|
|
|
201
211
|
Info: React.FC<CardInfoProps>;
|
|
202
212
|
/** 统计面板:Grafana 风格超大数值 + 迷你折线 / 面积 / 柱状图 / 角标 / 填充色 */
|
|
203
213
|
Stat: React.FC<CardStatProps>;
|
|
214
|
+
/** AI 审批卡片:明确展示待批准操作及可选方案。 */
|
|
215
|
+
Approval: React.FC<ApprovalCardProps>;
|
|
216
|
+
/** AI 推荐卡片:首选建议、置信度与替代方案。 */
|
|
217
|
+
Recommendation: React.FC<RecommendationCardProps>;
|
|
218
|
+
/** AI 上下文卡片集合:检索片段与来源。 */
|
|
219
|
+
Context: React.FC<ContextCardsProps>;
|
|
220
|
+
/** AI 洞察指标卡片集合。 */
|
|
221
|
+
Insights: React.FC<InsightCardsProps>;
|
|
222
|
+
/** AI 微调任务状态卡片。 */
|
|
223
|
+
FineTune: React.FC<FineTuneCardProps>;
|
|
204
224
|
}
|
|
205
225
|
declare const CardWithCompounds: CardCompound;
|
|
206
226
|
export default CardWithCompounds;
|