@apform-ui/core 1.10.35 → 1.10.37
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/__tests__/businessResultTables.spec.d.ts +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +4361 -4119
- package/dist/apform-ui.umd.cjs +54 -54
- package/dist/components/BusinessResultTables/BusinessResultTables.vue.d.ts +6 -0
- package/dist/components/BusinessResultTables/doc.d.ts +3 -0
- package/dist/components/BusinessResultTables/index.d.ts +1 -0
- package/dist/components/ChartOptionPreview/ChartOptionPreview.vue.d.ts +9 -0
- package/dist/components/ChartOptionPreview/doc.d.ts +3 -0
- package/dist/components/ChartOptionPreview/index.d.ts +1 -0
- package/dist/docs/index.d.ts +2 -0
- package/dist/index.d.ts +5 -1
- package/dist/utils/businessResultTables.d.ts +34 -0
- package/package.json +1 -1
- package/src/docs/index.ts +6 -0
- package/src/tokens/tokens.css +24 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BusinessResultTable } from '../../utils/businessResultTables';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tables: BusinessResultTable[];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BusinessResultTables } from './BusinessResultTables.vue';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
option: Record<string, unknown>;
|
|
3
|
+
chartType?: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
height: number;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ChartOptionPreview } from './ChartOptionPreview.vue';
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export { TruncatedTooltipTextDoc } from '../components/TruncatedTooltipText/doc'
|
|
|
81
81
|
export { UserAvatarDoc } from '../components/UserAvatar/doc';
|
|
82
82
|
export { TimeRangePickerDoc } from '../components/TimeRangePicker/doc';
|
|
83
83
|
export { MetricChartDoc } from '../components/MetricChart/doc';
|
|
84
|
+
export { ChartOptionPreviewDoc } from '../components/ChartOptionPreview/doc';
|
|
85
|
+
export { BusinessResultTablesDoc } from '../components/BusinessResultTables/doc';
|
|
84
86
|
export { StatCardDoc } from '../components/StatCard/doc';
|
|
85
87
|
export { SeverityBadgeDoc } from '../components/SeverityBadge/doc';
|
|
86
88
|
export { ServiceGridDoc } from '../components/ServiceGrid/doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export { TimeRangePicker } from './components/TimeRangePicker';
|
|
|
28
28
|
export type { TimeRange, TimeRangePreset } from './components/TimeRangePicker';
|
|
29
29
|
export { MetricChart } from './components/MetricChart';
|
|
30
30
|
export type { MetricSeries, MetricThreshold, MetricUnit } from './components/MetricChart';
|
|
31
|
+
export { ChartOptionPreview } from './components/ChartOptionPreview';
|
|
32
|
+
export { BusinessResultTables } from './components/BusinessResultTables';
|
|
31
33
|
export { StatCard } from './components/StatCard';
|
|
32
34
|
export type { StatTrend } from './components/StatCard';
|
|
33
35
|
export { SeverityBadge } from './components/SeverityBadge';
|
|
@@ -175,7 +177,9 @@ export { isImage, isPdf, isOffice, isPreviewable, fileKind, formatSize } from '.
|
|
|
175
177
|
export { extractDocumentId, detectArtifactKind, normalizeNodeOutput, normalizeAttachments, tryParseJsonText, } from './utils/normalizeArtifact';
|
|
176
178
|
export { detectStructuredJsonKind, extractEmbeddedJson, findEmbeddedJsonSpan, parseStructuredJsonContent, structuredJsonLabel, } from './utils/structuredJson';
|
|
177
179
|
export type { StructuredJsonKind } from './utils/structuredJson';
|
|
180
|
+
export { extractBusinessResultTables, extractChartOption, } from './utils/businessResultTables';
|
|
181
|
+
export type { BusinessResultTable, ChartOptionExtract, } from './utils/businessResultTables';
|
|
178
182
|
export { COLORS, CHART_COLORS, TEXT_COLORS, SPACING, BORDER_RADIUS, SHADOWS, DURATION, Z_INDEX, FONT_SIZE, CONTROL_HEIGHT, LAYOUT_HEIGHT, ICON_SIZE, PAGE, FORM, AVATAR_SIZE, } from './tokens';
|
|
179
|
-
export declare const SCHEMA_UI_VERSION = "1.10.
|
|
183
|
+
export declare const SCHEMA_UI_VERSION = "1.10.36";
|
|
180
184
|
export declare const EP_FORK_BASE = "2.14.2";
|
|
181
185
|
export declare const EP_FORK_DATE = "2026-08-27";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 业务节点 / Chat 产物 → 表格与图表 option 提取
|
|
3
|
+
*/
|
|
4
|
+
/** 单张业务结果表 */
|
|
5
|
+
export interface BusinessResultTable {
|
|
6
|
+
/** 稳定 key */
|
|
7
|
+
key: string;
|
|
8
|
+
/** 标题 */
|
|
9
|
+
title: string;
|
|
10
|
+
/** 列:prop → 表头 */
|
|
11
|
+
columns: Array<{
|
|
12
|
+
prop: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}>;
|
|
15
|
+
/** 行 */
|
|
16
|
+
rows: Record<string, unknown>[];
|
|
17
|
+
}
|
|
18
|
+
/** 可预览的 ECharts option */
|
|
19
|
+
export interface ChartOptionExtract {
|
|
20
|
+
chartType: string;
|
|
21
|
+
option: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 从节点 / 消息 output 提取业务表格
|
|
25
|
+
* @param nodeType 节点类型(可选;缺省时按字段形态推断)
|
|
26
|
+
* @param output 节点或消息输出
|
|
27
|
+
*/
|
|
28
|
+
export declare function extractBusinessResultTables(nodeType: string | undefined, output: unknown): BusinessResultTable[];
|
|
29
|
+
/**
|
|
30
|
+
* 提取可渲染的 ECharts option(非 table)
|
|
31
|
+
* @param nodeType 节点类型;缺省时按 chartType+option 形态识别(供 Chat 消息流)
|
|
32
|
+
* @param output 输出
|
|
33
|
+
*/
|
|
34
|
+
export declare function extractChartOption(nodeType: string | undefined, output: unknown): ChartOptionExtract | null;
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -81,6 +81,8 @@ export { TruncatedTooltipTextDoc } from '../components/TruncatedTooltipText/doc'
|
|
|
81
81
|
export { UserAvatarDoc } from '../components/UserAvatar/doc'
|
|
82
82
|
export { TimeRangePickerDoc } from '../components/TimeRangePicker/doc'
|
|
83
83
|
export { MetricChartDoc } from '../components/MetricChart/doc'
|
|
84
|
+
export { ChartOptionPreviewDoc } from '../components/ChartOptionPreview/doc'
|
|
85
|
+
export { BusinessResultTablesDoc } from '../components/BusinessResultTables/doc'
|
|
84
86
|
export { StatCardDoc } from '../components/StatCard/doc'
|
|
85
87
|
export { SeverityBadgeDoc } from '../components/SeverityBadge/doc'
|
|
86
88
|
export { ServiceGridDoc } from '../components/ServiceGrid/doc'
|
|
@@ -174,6 +176,8 @@ import { TruncatedTooltipTextDoc } from '../components/TruncatedTooltipText/doc'
|
|
|
174
176
|
import { UserAvatarDoc } from '../components/UserAvatar/doc'
|
|
175
177
|
import { TimeRangePickerDoc } from '../components/TimeRangePicker/doc'
|
|
176
178
|
import { MetricChartDoc } from '../components/MetricChart/doc'
|
|
179
|
+
import { ChartOptionPreviewDoc } from '../components/ChartOptionPreview/doc'
|
|
180
|
+
import { BusinessResultTablesDoc } from '../components/BusinessResultTables/doc'
|
|
177
181
|
import { StatCardDoc } from '../components/StatCard/doc'
|
|
178
182
|
import { SeverityBadgeDoc } from '../components/SeverityBadge/doc'
|
|
179
183
|
import { ServiceGridDoc } from '../components/ServiceGrid/doc'
|
|
@@ -256,6 +260,8 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
256
260
|
LoadingDots: LoadingDotsDoc,
|
|
257
261
|
LogStream: LogStreamDoc,
|
|
258
262
|
MetricChart: MetricChartDoc,
|
|
263
|
+
ChartOptionPreview: ChartOptionPreviewDoc,
|
|
264
|
+
BusinessResultTables: BusinessResultTablesDoc,
|
|
259
265
|
PageHeader: PageHeaderDoc,
|
|
260
266
|
PageShell: PageShellDoc,
|
|
261
267
|
PdfPreviewCard: PdfPreviewCardDoc,
|
package/src/tokens/tokens.css
CHANGED
|
@@ -413,4 +413,28 @@
|
|
|
413
413
|
--spacing-10px: var(--apf-space-10);
|
|
414
414
|
--spacing-12px: var(--apf-space-12);
|
|
415
415
|
--spacing-20px: var(--apf-space-20);
|
|
416
|
+
|
|
417
|
+
/* ========== Layer C: Chat 语义别名 --c-* ==========
|
|
418
|
+
* Chat / 附件组件样式读 --c-*。默认跟随平台令牌。
|
|
419
|
+
* 产品换肤:覆盖 --apf-color-primary 或直接覆盖 --c-primary。
|
|
420
|
+
* ================================================== */
|
|
421
|
+
--c-bg: var(--bg-color-page);
|
|
422
|
+
--c-surface: var(--bg-color-white);
|
|
423
|
+
--c-border: var(--apf-border-base);
|
|
424
|
+
--c-border-soft: var(--apf-border-light);
|
|
425
|
+
--c-text: var(--text-color-primary);
|
|
426
|
+
--c-text-secondary: var(--text-color-secondary);
|
|
427
|
+
--c-text-muted: var(--text-color-muted);
|
|
428
|
+
--c-primary: var(--color-primary);
|
|
429
|
+
--c-primary-soft: var(--color-primary-bg-light);
|
|
430
|
+
--c-primary-hover: var(--color-primary-hover);
|
|
431
|
+
--c-success: var(--color-success);
|
|
432
|
+
--c-warning: var(--color-warning);
|
|
433
|
+
--c-danger: var(--color-danger);
|
|
434
|
+
--c-danger-soft: var(--apf-color-danger-bg, #fbe9e7);
|
|
435
|
+
--c-running: var(--color-info);
|
|
436
|
+
--c-waiting: var(--c-warning);
|
|
437
|
+
--radius: var(--border-radius-md);
|
|
438
|
+
--radius-sm: var(--border-radius-sm);
|
|
439
|
+
--radius-lg: var(--border-radius-lg);
|
|
416
440
|
}
|