@gadmin2n/schematics 0.0.72 → 0.0.74
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/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/prisma/job.prisma +62 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/prisma/system.prisma +0 -21
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/prisma/workflow.prisma +171 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/AgendaJob.ts +60 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/Event.ts +1 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowEventOutbox.ts +62 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowNodeInstance.ts +62 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/config/ui/WorkflowNodeType.ts +62 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/.env +5 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/package.json +5 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/prisma.config.ts +14 -7
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/seed/index.ts +4 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/seed/permissions.ts +49 -3
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/seed/workflow-node-types.ts +746 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/seed/workflows.ts +786 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/agenda/agenda.controller.ts +6 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/agenda/agenda.service.ts +79 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/agendaJob/agendaJob.controller.spec.ts +20 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/agendaJob/agendaJob.controller.ts +145 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/agendaJob/agendaJob.module.ts +10 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/{canvas/canvas.service.spec.ts → agendaJob/agendaJob.service.spec.ts} +71 -65
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/agendaJob/agendaJob.service.ts +83 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/index.ts +2 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/temporal.module.ts +9 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/temporal.service.ts +100 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-execution.dto.ts +19 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-export.dto.ts +43 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-export.service.ts +317 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-node-type.controller.ts +16 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow-node-type.service.ts +13 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.controller.ts +220 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.dto.ts +82 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.module.ts +16 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflow/workflow.service.ts +505 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowEventOutbox/workflowEventOutbox.controller.spec.ts +22 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowEventOutbox/workflowEventOutbox.controller.ts +147 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowEventOutbox/workflowEventOutbox.module.ts +10 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowEventOutbox/workflowEventOutbox.service.spec.ts +356 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowEventOutbox/workflowEventOutbox.service.ts +110 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeInstance/workflowNodeInstance.controller.spec.ts +22 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeInstance/workflowNodeInstance.controller.ts +216 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeInstance/workflowNodeInstance.module.ts +10 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeInstance/workflowNodeInstance.service.spec.ts +356 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeInstance/workflowNodeInstance.service.ts +168 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeType/workflowNodeType.controller.spec.ts +22 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeType/workflowNodeType.controller.ts +199 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeType/workflowNodeType.module.ts +10 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeType/workflowNodeType.service.spec.ts +348 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/modules/workflowNodeType/workflowNodeType.service.ts +106 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/yarn.lock +579 -1082
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/README.md +278 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/config/development-sql.yaml +5 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/docker-compose.yml +25 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/package.json +13 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/sql/create-event-trigger.sql +87 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/.env +7 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/SANDBOX.md +122 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/package-lock.json +4285 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/package.json +28 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/__tests__/activities/code-execute.test.ts +44 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/__tests__/activities/http-request.test.ts +87 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/__tests__/helpers.test.ts +225 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/__tests__/node-type-consistency.test.ts +101 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/code-execute.ts +51 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/db-execute.ts +85 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/db-query.ts +35 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/http-request.ts +54 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/index.ts +6 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/reporting.ts +62 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/activities/send-notification.ts +47 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/config.ts +13 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/dsl/condition.ts +101 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/dsl/context.ts +58 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/dsl/graph.ts +184 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/dsl/helpers.ts +133 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/dsl/node-types.ts +57 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/dsl/types.ts +77 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/index.ts +36 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/outbox-poller.ts +226 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/src/workflows/dsl-workflow.ts +411 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/tsconfig.json +19 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/vitest.config.ts +8 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/temporal/worker/yarn.lock +1905 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/package-lock.json +17555 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/package.json +5 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/App.tsx +1 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/layout/sider.tsx +5 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/layout/title.tsx +1 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/config/routeRegistry.tsx +63 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/dev-shell/DevShell.tsx +91 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/helpers/list.tsx +48 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/helpers/show.tsx +43 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/locales/en/common.json +14 -9
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/locales/zh_CN/common.json +14 -9
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agenda/index.tsx +309 -56
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agenda/show.tsx +1 -3
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/create.tsx +108 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/edit.tsx +124 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/index.tsx +4 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/list.tsx +245 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/agendaJob/show.tsx +70 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasListPage.tsx +0 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasPage.tsx +160 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CanvasToolbar.tsx +120 -148
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/CodeFloatWindow.tsx +74 -181
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/LivePreview.tsx +15 -13
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/canvasConfigRegistry.tsx +2 -2
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/canvasContextMenuRegistry.tsx +338 -3
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/canvasDefaults.ts +18 -17
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/BarChartDataSourceModal.tsx +10 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/LineChartDataSourceModal.tsx +10 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/{ChartViewerConfigModal.tsx → MultiChartConfigModal.tsx} +30 -18
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/MultiChartDataSourceModal.tsx +427 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/NumCardDataSourceModal.tsx +10 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/PromptModal.tsx +6 -14
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/RadarChartDataSourceModal.tsx +10 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/TableDataSourceModal.tsx +10 -4
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/components/canvasModalProps.ts +24 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/canvas/demos.ts +45 -63
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/CustomNode.tsx +99 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/ExportModal.tsx +87 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/FlowRenderer.tsx +322 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/ImportModal.tsx +175 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/NodeEditModal.tsx +60 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/NodePropertyPanel.tsx +1150 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/RunWorkflowModal.tsx +101 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/StatusCards.tsx +198 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/components/VersionPanel.tsx +81 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/editor.tsx +566 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/hooks/useWorkflowAgent.ts +224 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/index.tsx +524 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/instance-detail.tsx +343 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/instances.tsx +243 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/components/CreateNodeInstanceModal.tsx +363 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/components/DynamicConfigForm.tsx +154 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/components/NodeInstanceForm.tsx +176 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/create.tsx +77 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/edit.tsx +112 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/index.tsx +305 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/node-instances/show.tsx +282 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/show.tsx +469 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflow/types.ts +92 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/create.tsx +111 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/edit.tsx +127 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/index.tsx +4 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/list.tsx +254 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/routes/workflowEventOutbox/show.tsx +74 -0
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/yarn.lock +1501 -1199
- package/package.json +1 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/server/src/app.controller.spec.ts +0 -22
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/BarChart/index.tsx +0 -896
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/ChartSwitcher/index.tsx +0 -219
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/ChartViewer/index.tsx +0 -159
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/Filter/index.tsx +0 -192
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/LineChart/index.tsx +0 -1034
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/NumCard/NumCard.module.css +0 -8
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/NumCard/index.tsx +0 -509
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/NumLineCard/index.tsx +0 -66
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/PieChart/index.tsx +0 -552
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/RadarChart/index.tsx +0 -263
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/Section/index.tsx +0 -35
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/Table/index.tsx +0 -207
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/TreemapChart/index.tsx +0 -382
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/WorldMap/index.tsx +0 -135
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/chart-constants.ts +0 -53
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/icon/InfoIcon.tsx +0 -8
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/icon/index.ts +0 -1
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/map/config.ts +0 -31
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/map/nameMap.json +0 -9
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/map/world.geo.json +0 -39349
- package/dist/lib/application/files/gadmin2-game-angle-demo/web/src/components/canvas/metric-info-tooltip/index.tsx +0 -19
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Card, Spin, Skeleton } from 'antd';
|
|
3
|
-
import { RightOutlined } from '@ant-design/icons';
|
|
4
|
-
import { InfoIcon } from '@/components/canvas/icon/InfoIcon';
|
|
5
|
-
import { MetricInfoTooltip } from '@/components/canvas/metric-info-tooltip';
|
|
6
|
-
import { LineChart, LineDataSingle } from '@/components/canvas/LineChart';
|
|
7
|
-
import cssStyles from './NumCard.module.css';
|
|
8
|
-
|
|
9
|
-
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
10
|
-
|
|
11
|
-
export interface ComparisonItem {
|
|
12
|
-
/** 标签,如 "DoD"、"SDLW" */
|
|
13
|
-
label: string;
|
|
14
|
-
/** 百分比字符串,如 "2.3%"(不含方向符号) */
|
|
15
|
-
value: string;
|
|
16
|
-
/** true = 上涨(绿色 ↑),false = 下跌(红色 ↓) */
|
|
17
|
-
isUp: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface NumCardSubStyles {
|
|
21
|
-
container?: React.CSSProperties;
|
|
22
|
-
title?: React.CSSProperties;
|
|
23
|
-
value?: React.CSSProperties;
|
|
24
|
-
subTitle?: React.CSSProperties;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type NumCardVariant = 'default' | 'withChart';
|
|
28
|
-
|
|
29
|
-
export interface NumCardProps {
|
|
30
|
-
// ── 核心 ──────────────────────────────────────────────────────────────────
|
|
31
|
-
title: React.ReactNode;
|
|
32
|
-
value?: number | string | React.ReactNode | null;
|
|
33
|
-
unit?: React.ReactNode;
|
|
34
|
-
prefix?: React.ReactNode;
|
|
35
|
-
suffix?: React.ReactNode;
|
|
36
|
-
|
|
37
|
-
// ── 布局 ──────────────────────────────────────────────────────────────────
|
|
38
|
-
/** 卡片高度(px),不传则自适应内容 */
|
|
39
|
-
height?: number | string;
|
|
40
|
-
variant?: NumCardVariant;
|
|
41
|
-
comparisons?: ComparisonItem[];
|
|
42
|
-
/** 是否显示环比数据区域(默认 true),设为 false 时隐藏但保留数据 */
|
|
43
|
-
showComparisons?: boolean;
|
|
44
|
-
/** 是否显示右侧折线图(仅 withChart variant,默认 true),设为 false 时隐藏但保留数据 */
|
|
45
|
-
showChart?: boolean;
|
|
46
|
-
onTitleClick?: () => void;
|
|
47
|
-
subTitle?: React.ReactNode;
|
|
48
|
-
icon?: React.ReactNode;
|
|
49
|
-
chart?: React.ReactNode;
|
|
50
|
-
|
|
51
|
-
// ── withChart variant 专用 props ─────────────────────────────────────────
|
|
52
|
-
/** 折线图数据(仅 withChart variant) */
|
|
53
|
-
chartData?: LineDataSingle;
|
|
54
|
-
/** 折线图 chartProps(仅 withChart variant) */
|
|
55
|
-
chartProps?: Record<string, any>;
|
|
56
|
-
/** 折线图 testId(仅 withChart variant) */
|
|
57
|
-
chartTestId?: string;
|
|
58
|
-
/** 内容区高度,数字与折线图共享(仅 withChart variant,默认 100) */
|
|
59
|
-
contentHeight?: number;
|
|
60
|
-
/** 左侧数字区固定宽度(仅 withChart variant) */
|
|
61
|
-
numWidth?: number;
|
|
62
|
-
/** 显示折线图坐标轴(仅 withChart variant,默认 false) */
|
|
63
|
-
showAxis?: boolean;
|
|
64
|
-
/** 智能 Y 轴范围(仅 withChart variant,默认 false) */
|
|
65
|
-
smartYAxis?: boolean;
|
|
66
|
-
/** 卡片顶部 header 插槽(仅 withChart variant) */
|
|
67
|
-
header?: React.ReactNode;
|
|
68
|
-
|
|
69
|
-
// ── 指标信息 ──────────────────────────────────────────────────────────────
|
|
70
|
-
metricId?: string;
|
|
71
|
-
info?: string;
|
|
72
|
-
showInfoIcon?: boolean;
|
|
73
|
-
|
|
74
|
-
// ── 格式化 ────────────────────────────────────────────────────────────────
|
|
75
|
-
formatNumber?: boolean;
|
|
76
|
-
valueColor?: string;
|
|
77
|
-
|
|
78
|
-
// ── 状态 ──────────────────────────────────────────────────────────────────
|
|
79
|
-
loading?: boolean;
|
|
80
|
-
skeleton?: boolean;
|
|
81
|
-
|
|
82
|
-
// ── 样式 ──────────────────────────────────────────────────────────────────
|
|
83
|
-
className?: string;
|
|
84
|
-
style?: React.CSSProperties;
|
|
85
|
-
styles?: NumCardSubStyles;
|
|
86
|
-
|
|
87
|
-
// ── 测试 / AI 定位 ────────────────────────────────────────────────────────
|
|
88
|
-
testId: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// ─── Variant 配置 ─────────────────────────────────────────────────────────────
|
|
92
|
-
|
|
93
|
-
interface VariantConfig {
|
|
94
|
-
titleFontSize: number;
|
|
95
|
-
valueFontSize: number;
|
|
96
|
-
bodyPadding: string;
|
|
97
|
-
useCard: boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const VARIANT_CONFIG: Record<NumCardVariant, VariantConfig> = {
|
|
101
|
-
default: {
|
|
102
|
-
titleFontSize: 14,
|
|
103
|
-
valueFontSize: 32,
|
|
104
|
-
bodyPadding: '16px 20px',
|
|
105
|
-
useCard: true,
|
|
106
|
-
},
|
|
107
|
-
withChart: {
|
|
108
|
-
titleFontSize: 14,
|
|
109
|
-
valueFontSize: 22,
|
|
110
|
-
bodyPadding: '16px',
|
|
111
|
-
useCard: true,
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
// ─── No Data 判断 ─────────────────────────────────────────────────────────────
|
|
116
|
-
|
|
117
|
-
function isNoData(value: NumCardProps['value']): boolean {
|
|
118
|
-
if (value === undefined || value === null) return true;
|
|
119
|
-
if (typeof value === 'number' && isNaN(value)) return true;
|
|
120
|
-
if (
|
|
121
|
-
typeof value === 'string' &&
|
|
122
|
-
['', 'undefined', 'null', 'NaN'].includes(value)
|
|
123
|
-
)
|
|
124
|
-
return true;
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// ─── 数值格式化 ───────────────────────────────────────────────────────────────
|
|
129
|
-
|
|
130
|
-
function formatValue(
|
|
131
|
-
value: NumCardProps['value'],
|
|
132
|
-
formatNumber: boolean,
|
|
133
|
-
): React.ReactNode {
|
|
134
|
-
if (typeof value === 'number' && formatNumber) {
|
|
135
|
-
return value.toLocaleString();
|
|
136
|
-
}
|
|
137
|
-
if (typeof value === 'string' && formatNumber) {
|
|
138
|
-
const parsed = parseFloat(value);
|
|
139
|
-
if (!isNaN(parsed)) return parsed.toLocaleString();
|
|
140
|
-
}
|
|
141
|
-
return value as React.ReactNode;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// ─── 组件 ─────────────────────────────────────────────────────────────────────
|
|
145
|
-
|
|
146
|
-
export const NumCard: React.FC<NumCardProps> = ({
|
|
147
|
-
title,
|
|
148
|
-
value,
|
|
149
|
-
unit,
|
|
150
|
-
prefix,
|
|
151
|
-
suffix,
|
|
152
|
-
height,
|
|
153
|
-
variant = 'default',
|
|
154
|
-
comparisons,
|
|
155
|
-
showComparisons = true,
|
|
156
|
-
showChart = true,
|
|
157
|
-
onTitleClick,
|
|
158
|
-
subTitle,
|
|
159
|
-
icon,
|
|
160
|
-
chart,
|
|
161
|
-
chartData,
|
|
162
|
-
chartProps: chartPropsInput,
|
|
163
|
-
chartTestId,
|
|
164
|
-
contentHeight = 100,
|
|
165
|
-
numWidth,
|
|
166
|
-
showAxis = false,
|
|
167
|
-
smartYAxis,
|
|
168
|
-
header,
|
|
169
|
-
metricId,
|
|
170
|
-
info,
|
|
171
|
-
showInfoIcon = true,
|
|
172
|
-
formatNumber = true,
|
|
173
|
-
valueColor,
|
|
174
|
-
loading = false,
|
|
175
|
-
skeleton = false,
|
|
176
|
-
className,
|
|
177
|
-
style,
|
|
178
|
-
styles: subStyles,
|
|
179
|
-
testId,
|
|
180
|
-
}) => {
|
|
181
|
-
const config = VARIANT_CONFIG[variant];
|
|
182
|
-
|
|
183
|
-
// ── 标题区域 ────────────────────────────────────────────────────────────────
|
|
184
|
-
const titleNode = (
|
|
185
|
-
<div
|
|
186
|
-
className={onTitleClick ? cssStyles.numCardTitleClickable : undefined}
|
|
187
|
-
style={{
|
|
188
|
-
color: 'rgba(0, 0, 0, 0.88)',
|
|
189
|
-
fontSize: config.titleFontSize,
|
|
190
|
-
fontWeight: 'bold',
|
|
191
|
-
display: 'flex',
|
|
192
|
-
justifyContent: 'space-between',
|
|
193
|
-
alignItems: 'center',
|
|
194
|
-
cursor: onTitleClick ? 'pointer' : undefined,
|
|
195
|
-
...subStyles?.title,
|
|
196
|
-
}}
|
|
197
|
-
onClick={onTitleClick}
|
|
198
|
-
>
|
|
199
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
|
|
200
|
-
{icon && (
|
|
201
|
-
<span style={{ display: 'flex', alignItems: 'center' }}>{icon}</span>
|
|
202
|
-
)}
|
|
203
|
-
{metricId ? (
|
|
204
|
-
<MetricInfoTooltip metricId={metricId}>{title}</MetricInfoTooltip>
|
|
205
|
-
) : (
|
|
206
|
-
title
|
|
207
|
-
)}
|
|
208
|
-
{info && showInfoIcon && <InfoIcon message={info} />}
|
|
209
|
-
</div>
|
|
210
|
-
{onTitleClick && (
|
|
211
|
-
<RightOutlined
|
|
212
|
-
style={{
|
|
213
|
-
fontSize: 12,
|
|
214
|
-
color: 'rgba(0,0,0,0.45)',
|
|
215
|
-
transition: 'color 0.2s',
|
|
216
|
-
}}
|
|
217
|
-
className={cssStyles.numCardTitleArrow}
|
|
218
|
-
/>
|
|
219
|
-
)}
|
|
220
|
-
</div>
|
|
221
|
-
);
|
|
222
|
-
|
|
223
|
-
// ── 数值区域 ────────────────────────────────────────────────────────────────
|
|
224
|
-
const valueNode = isNoData(value) ? (
|
|
225
|
-
<div
|
|
226
|
-
style={{
|
|
227
|
-
textAlign: 'center',
|
|
228
|
-
color: 'rgba(0, 0, 0, 0.3)',
|
|
229
|
-
fontSize: config.valueFontSize,
|
|
230
|
-
lineHeight: '1.5',
|
|
231
|
-
padding: '8px 0',
|
|
232
|
-
}}
|
|
233
|
-
>
|
|
234
|
-
--
|
|
235
|
-
</div>
|
|
236
|
-
) : (
|
|
237
|
-
<div
|
|
238
|
-
style={{
|
|
239
|
-
textAlign: 'center',
|
|
240
|
-
fontWeight: 600,
|
|
241
|
-
fontSize: config.valueFontSize,
|
|
242
|
-
lineHeight: '1.5',
|
|
243
|
-
color: valueColor,
|
|
244
|
-
...subStyles?.value,
|
|
245
|
-
}}
|
|
246
|
-
>
|
|
247
|
-
{prefix}
|
|
248
|
-
{formatValue(value, formatNumber)}
|
|
249
|
-
{suffix}
|
|
250
|
-
{unit && (
|
|
251
|
-
<span style={{ fontSize: '0.6em', fontWeight: 400, marginLeft: 2 }}>
|
|
252
|
-
{unit}
|
|
253
|
-
</span>
|
|
254
|
-
)}
|
|
255
|
-
</div>
|
|
256
|
-
);
|
|
257
|
-
|
|
258
|
-
// ── 环比数据 ────────────────────────────────────────────────────────────────
|
|
259
|
-
const comparisonsNode = showComparisons &&
|
|
260
|
-
comparisons &&
|
|
261
|
-
comparisons.length > 0 && (
|
|
262
|
-
<div
|
|
263
|
-
style={{
|
|
264
|
-
display: 'flex',
|
|
265
|
-
flexDirection: 'column',
|
|
266
|
-
gap: 2,
|
|
267
|
-
marginTop: 4,
|
|
268
|
-
}}
|
|
269
|
-
>
|
|
270
|
-
{comparisons.map((item) => (
|
|
271
|
-
<div
|
|
272
|
-
key={item.label}
|
|
273
|
-
style={{
|
|
274
|
-
display: 'flex',
|
|
275
|
-
justifyContent: 'space-between',
|
|
276
|
-
fontSize: 12,
|
|
277
|
-
color: item.isUp ? '#00bf5f' : '#e24e49',
|
|
278
|
-
}}
|
|
279
|
-
>
|
|
280
|
-
<span style={{ color: 'rgba(0,0,0,0.65)' }}>{item.label}</span>
|
|
281
|
-
<span>
|
|
282
|
-
{item.isUp ? '↑' : '↓'} {item.value}
|
|
283
|
-
</span>
|
|
284
|
-
</div>
|
|
285
|
-
))}
|
|
286
|
-
</div>
|
|
287
|
-
);
|
|
288
|
-
|
|
289
|
-
// ── 副标题 ──────────────────────────────────────────────────────────────────
|
|
290
|
-
const subTitleNode = subTitle && (
|
|
291
|
-
<div
|
|
292
|
-
style={{
|
|
293
|
-
color: 'rgba(0, 0, 0, 0.65)',
|
|
294
|
-
textAlign: 'center',
|
|
295
|
-
fontSize: 12,
|
|
296
|
-
marginTop: 4,
|
|
297
|
-
...subStyles?.subTitle,
|
|
298
|
-
}}
|
|
299
|
-
>
|
|
300
|
-
{subTitle}
|
|
301
|
-
</div>
|
|
302
|
-
);
|
|
303
|
-
|
|
304
|
-
// ── Loading 态 ──────────────────────────────────────────────────────────────
|
|
305
|
-
const content =
|
|
306
|
-
loading && skeleton ? (
|
|
307
|
-
<Skeleton active paragraph={{ rows: 2 }} />
|
|
308
|
-
) : (
|
|
309
|
-
<Spin spinning={loading}>
|
|
310
|
-
{titleNode}
|
|
311
|
-
{valueNode}
|
|
312
|
-
{comparisonsNode}
|
|
313
|
-
{subTitleNode}
|
|
314
|
-
{chart && (
|
|
315
|
-
<div
|
|
316
|
-
style={{ marginTop: 8, display: 'flex', justifyContent: 'center' }}
|
|
317
|
-
>
|
|
318
|
-
{chart}
|
|
319
|
-
</div>
|
|
320
|
-
)}
|
|
321
|
-
</Spin>
|
|
322
|
-
);
|
|
323
|
-
|
|
324
|
-
// ── 容器 ────────────────────────────────────────────────────────────────────
|
|
325
|
-
|
|
326
|
-
// ── withChart variant:左数字 + 右折线图 ─────────────────────────────────
|
|
327
|
-
if (variant === 'withChart' && showChart) {
|
|
328
|
-
const chartAxisProps = showAxis
|
|
329
|
-
? {
|
|
330
|
-
grid: {
|
|
331
|
-
top: 8,
|
|
332
|
-
bottom: 24,
|
|
333
|
-
left: 4,
|
|
334
|
-
right: 40,
|
|
335
|
-
...chartPropsInput?.grid,
|
|
336
|
-
},
|
|
337
|
-
xAxis: {
|
|
338
|
-
axisLabel: {
|
|
339
|
-
show: true,
|
|
340
|
-
fontSize: 9,
|
|
341
|
-
// 只显示首尾标签
|
|
342
|
-
interval: (index: number, _value: string) => {
|
|
343
|
-
const total = (chartData ?? []).length;
|
|
344
|
-
return index === 0 || index === total - 1;
|
|
345
|
-
},
|
|
346
|
-
},
|
|
347
|
-
...chartPropsInput?.xAxis,
|
|
348
|
-
},
|
|
349
|
-
yAxis: {
|
|
350
|
-
position: 'right' as const,
|
|
351
|
-
axisLabel: { show: true, fontSize: 9 },
|
|
352
|
-
min: (value: { min: number }) => value.min,
|
|
353
|
-
max: (value: { max: number }) => value.max,
|
|
354
|
-
splitNumber: 2,
|
|
355
|
-
...chartPropsInput?.yAxis,
|
|
356
|
-
},
|
|
357
|
-
}
|
|
358
|
-
: {
|
|
359
|
-
// 隐藏坐标轴时,grid 留少量空间让线图居中偏上
|
|
360
|
-
grid: {
|
|
361
|
-
top: 8,
|
|
362
|
-
bottom: 8,
|
|
363
|
-
left: 4,
|
|
364
|
-
right: 4,
|
|
365
|
-
...chartPropsInput?.grid,
|
|
366
|
-
},
|
|
367
|
-
xAxis: {
|
|
368
|
-
show: false,
|
|
369
|
-
axisLabel: { show: false },
|
|
370
|
-
axisTick: { show: false },
|
|
371
|
-
axisLine: { show: false },
|
|
372
|
-
...chartPropsInput?.xAxis,
|
|
373
|
-
},
|
|
374
|
-
yAxis: {
|
|
375
|
-
show: false,
|
|
376
|
-
axisLabel: { show: false },
|
|
377
|
-
axisTick: { show: false },
|
|
378
|
-
axisLine: { show: false },
|
|
379
|
-
splitLine: { show: false },
|
|
380
|
-
...chartPropsInput?.yAxis,
|
|
381
|
-
},
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
return (
|
|
385
|
-
<Card
|
|
386
|
-
className={className}
|
|
387
|
-
style={{ height: height ?? '100%', ...style }}
|
|
388
|
-
styles={{
|
|
389
|
-
body: {
|
|
390
|
-
padding: config.bodyPadding,
|
|
391
|
-
height: '100%',
|
|
392
|
-
display: 'flex',
|
|
393
|
-
flexDirection: 'column',
|
|
394
|
-
...subStyles?.container,
|
|
395
|
-
},
|
|
396
|
-
}}
|
|
397
|
-
data-testid={testId}
|
|
398
|
-
>
|
|
399
|
-
{header && (
|
|
400
|
-
<div style={{ marginBottom: 8, flexShrink: 0 }}>{header}</div>
|
|
401
|
-
)}
|
|
402
|
-
<div
|
|
403
|
-
style={{
|
|
404
|
-
display: 'flex',
|
|
405
|
-
flex: 1,
|
|
406
|
-
minHeight: 0,
|
|
407
|
-
alignItems: 'center',
|
|
408
|
-
}}
|
|
409
|
-
>
|
|
410
|
-
{/* 左:数字区 */}
|
|
411
|
-
<div
|
|
412
|
-
style={{
|
|
413
|
-
padding: 0,
|
|
414
|
-
flexShrink: 0,
|
|
415
|
-
...(numWidth ? { width: numWidth } : {}),
|
|
416
|
-
}}
|
|
417
|
-
>
|
|
418
|
-
{titleNode}
|
|
419
|
-
{valueNode}
|
|
420
|
-
{comparisonsNode}
|
|
421
|
-
{subTitleNode}
|
|
422
|
-
</div>
|
|
423
|
-
{/* 右:折线图区 */}
|
|
424
|
-
<div
|
|
425
|
-
style={{
|
|
426
|
-
width: 0,
|
|
427
|
-
flex: 1,
|
|
428
|
-
height: '100%',
|
|
429
|
-
display: 'flex',
|
|
430
|
-
alignItems: 'center',
|
|
431
|
-
justifyContent: 'center',
|
|
432
|
-
}}
|
|
433
|
-
>
|
|
434
|
-
<div style={{ width: '85%', height: '75%' }}>
|
|
435
|
-
<LineChart
|
|
436
|
-
smooth
|
|
437
|
-
area
|
|
438
|
-
showGrid={false}
|
|
439
|
-
showAxis={showAxis}
|
|
440
|
-
data={chartData ?? []}
|
|
441
|
-
unit={typeof unit === 'string' ? unit : ''}
|
|
442
|
-
height="80%"
|
|
443
|
-
width="80%"
|
|
444
|
-
smartYAxis={smartYAxis !== undefined ? smartYAxis : true}
|
|
445
|
-
chartProps={{
|
|
446
|
-
...chartPropsInput,
|
|
447
|
-
...chartAxisProps,
|
|
448
|
-
yAxis: {
|
|
449
|
-
...chartAxisProps.yAxis,
|
|
450
|
-
...chartPropsInput?.yAxis,
|
|
451
|
-
min: (value: { min: number; max: number }) => {
|
|
452
|
-
const range = value.max - value.min;
|
|
453
|
-
return Math.floor(value.min - range * 0.8);
|
|
454
|
-
},
|
|
455
|
-
max: (value: { min: number; max: number }) => {
|
|
456
|
-
const range = value.max - value.min;
|
|
457
|
-
return Math.ceil(value.max + range * 0.8);
|
|
458
|
-
},
|
|
459
|
-
},
|
|
460
|
-
series: {
|
|
461
|
-
areaStyle: {
|
|
462
|
-
origin: 'start',
|
|
463
|
-
},
|
|
464
|
-
...chartPropsInput?.series,
|
|
465
|
-
},
|
|
466
|
-
}}
|
|
467
|
-
testId={chartTestId ?? `${testId}-line`}
|
|
468
|
-
/>
|
|
469
|
-
</div>
|
|
470
|
-
</div>
|
|
471
|
-
</div>
|
|
472
|
-
</Card>
|
|
473
|
-
);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
if (config.useCard) {
|
|
477
|
-
return (
|
|
478
|
-
<Card
|
|
479
|
-
className={className}
|
|
480
|
-
style={{ height: height ?? '100%', ...style }}
|
|
481
|
-
styles={{
|
|
482
|
-
body: {
|
|
483
|
-
padding: config.bodyPadding,
|
|
484
|
-
height: '100%',
|
|
485
|
-
display: 'flex',
|
|
486
|
-
flexDirection: 'column',
|
|
487
|
-
justifyContent: 'flex-start',
|
|
488
|
-
...subStyles?.container,
|
|
489
|
-
},
|
|
490
|
-
}}
|
|
491
|
-
data-testid={testId}
|
|
492
|
-
>
|
|
493
|
-
{content}
|
|
494
|
-
</Card>
|
|
495
|
-
);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
return (
|
|
499
|
-
<div
|
|
500
|
-
className={className}
|
|
501
|
-
style={{ padding: config.bodyPadding, ...subStyles?.container, ...style }}
|
|
502
|
-
data-testid={testId}
|
|
503
|
-
>
|
|
504
|
-
{content}
|
|
505
|
-
</div>
|
|
506
|
-
);
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
export default NumCard;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NumCard, NumCardProps } from '@/components/canvas/NumCard';
|
|
3
|
-
import type { LineDataSingle } from '@/components/canvas/LineChart';
|
|
4
|
-
|
|
5
|
-
// ─── Types(保留向后兼容) ────────────────────────────────────────────────────
|
|
6
|
-
|
|
7
|
-
export interface NumLineCardProps {
|
|
8
|
-
title: NumCardProps['title'];
|
|
9
|
-
value?: NumCardProps['value'];
|
|
10
|
-
unit?: string;
|
|
11
|
-
prefix?: NumCardProps['prefix'];
|
|
12
|
-
valueColor?: string;
|
|
13
|
-
subTitle?: NumCardProps['subTitle'];
|
|
14
|
-
metricId?: NumCardProps['metricId'];
|
|
15
|
-
info?: NumCardProps['info'];
|
|
16
|
-
showInfoIcon?: boolean;
|
|
17
|
-
formatNumber?: boolean;
|
|
18
|
-
comparisons?: NumCardProps['comparisons'];
|
|
19
|
-
chartData?: LineDataSingle;
|
|
20
|
-
chartProps?: Record<string, any>;
|
|
21
|
-
chartTestId?: string;
|
|
22
|
-
smartYAxis?: boolean;
|
|
23
|
-
showAxis?: boolean;
|
|
24
|
-
contentHeight?: number;
|
|
25
|
-
numWidth?: number;
|
|
26
|
-
loading?: boolean;
|
|
27
|
-
header?: React.ReactNode;
|
|
28
|
-
style?: React.CSSProperties;
|
|
29
|
-
className?: string;
|
|
30
|
-
testId: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// ─── 组件(deprecated — 请使用 NumCard variant="withChart") ─────────────────
|
|
34
|
-
|
|
35
|
-
export const NumLineCard: React.FC<NumLineCardProps> = (props) => {
|
|
36
|
-
return (
|
|
37
|
-
<NumCard
|
|
38
|
-
variant="withChart"
|
|
39
|
-
title={props.title}
|
|
40
|
-
value={props.value}
|
|
41
|
-
unit={props.unit}
|
|
42
|
-
prefix={props.prefix}
|
|
43
|
-
valueColor={props.valueColor}
|
|
44
|
-
subTitle={props.subTitle}
|
|
45
|
-
metricId={props.metricId}
|
|
46
|
-
info={props.info}
|
|
47
|
-
showInfoIcon={props.showInfoIcon}
|
|
48
|
-
formatNumber={props.formatNumber}
|
|
49
|
-
comparisons={props.comparisons}
|
|
50
|
-
chartData={props.chartData}
|
|
51
|
-
chartProps={props.chartProps}
|
|
52
|
-
chartTestId={props.chartTestId}
|
|
53
|
-
smartYAxis={props.smartYAxis}
|
|
54
|
-
showAxis={props.showAxis}
|
|
55
|
-
contentHeight={props.contentHeight}
|
|
56
|
-
numWidth={props.numWidth}
|
|
57
|
-
loading={props.loading}
|
|
58
|
-
header={props.header}
|
|
59
|
-
style={props.style}
|
|
60
|
-
className={props.className}
|
|
61
|
-
testId={props.testId}
|
|
62
|
-
/>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default NumLineCard;
|