@fses/workbench-app 0.2.16 → 0.2.17
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/WORKBENCH-CLOSURE.json +18 -12
- package/dist/Workspace-r8ayksVF.js +23176 -0
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-B2EHgdqA.js → canvasFacade-B8jYm_aO.js} +748 -748
- package/dist/cardFactory-DmEBcCf4.js +1460 -0
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +5 -5
- package/dist/{index-CMM-5ObU.js → index-DEOR_GPc.js} +350 -346
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +6 -6
- package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +26 -26
- package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +0 -5
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-DLf_FgC7.js → useWorkbenchRuntime-DDD22mdF.js} +7817 -7813
- package/dist/version.d.ts +1 -1
- package/dist/{workbenchCustomComponentRegistry-Bt94Lgko.js → workbenchCustomComponentRegistry-CWUPjCnJ.js} +74 -74
- package/node_modules/@byteluck-fe/locale-message/README.md +2 -0
- package/node_modules/@byteluck-fe/locale-message/dist/index.d.ts +37 -0
- package/node_modules/@byteluck-fe/locale-message/dist/locale-message.js +55 -0
- package/node_modules/@byteluck-fe/locale-message/package.json +37 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +5446 -5321
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -18
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +0 -5
- package/node_modules/@fses/ai-chat/package.json +6 -5
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +10144 -9914
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +1517 -1503
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +97 -97
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -1
- package/node_modules/@fses/workbench-card/package.json +4 -1
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +31 -30
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +24 -23
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +765 -764
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +765 -764
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +143 -129
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +4 -3
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +2 -1
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +30 -29
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +11 -10
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +102 -101
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +364 -363
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +90 -89
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +33 -32
- package/package.json +4 -3
- package/dist/Workspace-CfKvji6S.js +0 -22896
- package/dist/cardFactory-BK3CA-Gn.js +0 -1443
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getLocaleText } from '@byteluck-fe/locale-message'
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview 工作台卡片能力注册表 - 定义可用卡片能力、分类和检索工具。
|
|
3
4
|
* @author seadon
|
|
@@ -41,72 +42,72 @@ export interface CardCategoryDefinition {
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export const CARD_CATEGORIES: CardCategoryDefinition[] = [
|
|
44
|
-
{ id: 'card.metric_cards', name: '
|
|
45
|
-
{ id: 'card.chart_cards', name: '
|
|
45
|
+
{ id: 'card.metric_cards', name: getLocaleText('FWC.30201787581440341'), status: 'implemented', description: getLocaleText('FWC.da011787579034088') },
|
|
46
|
+
{ id: 'card.chart_cards', name: getLocaleText('FWC.d7811787581440818'), status: 'implemented', description: getLocaleText('FWC.214a1787578131066') },
|
|
46
47
|
...ECHARTS_MAIN_CATEGORIES.map((category) => ({
|
|
47
48
|
id: category.categoryId,
|
|
48
49
|
name: category.name,
|
|
49
50
|
status: 'implemented' as const,
|
|
50
51
|
description: category.description,
|
|
51
52
|
})),
|
|
52
|
-
{ id: 'card.table_cards', name: '
|
|
53
|
-
{ id: 'card.analysis_report_cards', name: '分析报告卡', status: 'implemented', description: '
|
|
54
|
-
{ id: 'card.dashboard_cards', name: '
|
|
55
|
-
{ id: 'card.utility_cards', name: '普通能力卡', status: 'implemented', description: '
|
|
56
|
-
{ id: 'card.embedded_form_cards', name: '内嵌表单卡', status: 'implemented', description: '
|
|
57
|
-
{ id: 'card.fde_custom_cards', name: '
|
|
58
|
-
{ id: 'card.custom_canvas_cards', name: '
|
|
59
|
-
{ id: 'card.composite_cards', name: '
|
|
60
|
-
{ id: 'card.graph_cards', name: '
|
|
61
|
-
{ id: 'card.geo_cards', name: '
|
|
62
|
-
{ id: 'card.identity_cards', name: '
|
|
63
|
-
{ id: 'card.workflow_cards', name: '
|
|
64
|
-
{ id: 'card.entity_cards', name: '
|
|
65
|
-
{ id: 'card.lifecycle_mutation', name: '
|
|
53
|
+
{ id: 'card.table_cards', name: getLocaleText('FWC.78631787581441323'), status: 'implemented', description: getLocaleText('FWC.95b61787579144586') },
|
|
54
|
+
{ id: 'card.analysis_report_cards', name: '分析报告卡', status: 'implemented', description: getLocaleText('FWC.8ff31787579157140') },
|
|
55
|
+
{ id: 'card.dashboard_cards', name: getLocaleText('FWC.c9711787581441847'), status: 'implemented', description: getLocaleText('FWC.b8391787579524541') },
|
|
56
|
+
{ id: 'card.utility_cards', name: '普通能力卡', status: 'implemented', description: getLocaleText('FWC.17e81787578905407') },
|
|
57
|
+
{ id: 'card.embedded_form_cards', name: '内嵌表单卡', status: 'implemented', description: getLocaleText('FWC.f9ef1787579292966') },
|
|
58
|
+
{ id: 'card.fde_custom_cards', name: getLocaleText('FWC.243f1787580026236'), status: 'implemented', description: getLocaleText('FWC.b8dd1787579597967') },
|
|
59
|
+
{ id: 'card.custom_canvas_cards', name: getLocaleText('FWC.a6901787580427490'), status: 'implemented', description: getLocaleText('FWC.594a1787579525274') },
|
|
60
|
+
{ id: 'card.composite_cards', name: getLocaleText('FWC.577a1787581112591'), status: 'implemented', description: getLocaleText('FWC.b1681787578131078') },
|
|
61
|
+
{ id: 'card.graph_cards', name: getLocaleText('FWC.a7231787581113113'), status: 'implemented', description: getLocaleText('FWC.6dea1787579251906') },
|
|
62
|
+
{ id: 'card.geo_cards', name: getLocaleText('FWC.fa0f1787581442078'), status: 'implemented', description: getLocaleText('FWC.0fa71787579338504') },
|
|
63
|
+
{ id: 'card.identity_cards', name: getLocaleText('FWC.70661787581442596'), status: 'implemented', description: getLocaleText('FWC.11c61787579158095') },
|
|
64
|
+
{ id: 'card.workflow_cards', name: getLocaleText('FWC.e2f51787581442959'), status: 'implemented', description: getLocaleText('FWC.025e1787579202688') },
|
|
65
|
+
{ id: 'card.entity_cards', name: getLocaleText('FWC.153f1787580026760'), status: 'implemented', description: getLocaleText('FWC.c70b1787579106105') },
|
|
66
|
+
{ id: 'card.lifecycle_mutation', name: getLocaleText('FWC.c7341787579598473'), status: 'lifecycle', description: getLocaleText('FWC.b7891787579181127') },
|
|
66
67
|
];
|
|
67
68
|
|
|
68
69
|
const metricEntries = [
|
|
69
|
-
['numeric', '
|
|
70
|
-
['combo', '
|
|
71
|
-
['comparison', '
|
|
72
|
-
['alert', '
|
|
70
|
+
['numeric', getLocaleText('FWC.35471787581113242')],
|
|
71
|
+
['combo', getLocaleText('FWC.577a1787581112591')],
|
|
72
|
+
['comparison', getLocaleText('FWC.482e1787581113655')],
|
|
73
|
+
['alert', getLocaleText('FWC.37391787581114162')],
|
|
73
74
|
['targetAchievement', '目标达成卡'],
|
|
74
75
|
['yoyMom', '同比环比卡'],
|
|
75
76
|
['segmentedProgress', '分段进度卡'],
|
|
76
77
|
['abnormalMetric', '异常指标卡'],
|
|
77
|
-
['slaMetric', '
|
|
78
|
+
['slaMetric', getLocaleText('FWC.729f1787580027281')],
|
|
78
79
|
] as const;
|
|
79
80
|
|
|
80
81
|
const chartEntries = [
|
|
81
|
-
['bar', '
|
|
82
|
+
['bar', getLocaleText('FWC.563c1787581443454'), 'bar', 'multiSeries'],
|
|
82
83
|
['customEcharts', '自定义图表', 'customEcharts', 'echartsOption'],
|
|
83
|
-
['line', '
|
|
84
|
+
['line', getLocaleText('FWC.f4d91787581443945'), 'line', 'singleSeries'],
|
|
84
85
|
['mixedBarLine', '柱线混合图', 'mixedBarLine', 'multiSeries'],
|
|
85
|
-
['waterfall', '
|
|
86
|
-
['heatmap', '
|
|
87
|
-
['pie', '
|
|
88
|
-
['donut', '
|
|
89
|
-
['radar', '
|
|
90
|
-
['scatter', '
|
|
91
|
-
['bubble', '
|
|
92
|
-
['funnel', '
|
|
93
|
-
['gauge', '
|
|
94
|
-
['map', '
|
|
95
|
-
['sankey', '
|
|
96
|
-
['tree', '
|
|
97
|
-
['gantt', '
|
|
98
|
-
['candlestick', '
|
|
99
|
-
['kline', '
|
|
100
|
-
['boxplot', '
|
|
101
|
-
['area', '
|
|
86
|
+
['waterfall', getLocaleText('FWC.201c1787581444470'), 'waterfall', 'waterfallSteps'],
|
|
87
|
+
['heatmap', getLocaleText('FWC.a9da1787581444994'), 'heatmap', 'heatmapMatrix'],
|
|
88
|
+
['pie', getLocaleText('FWC.f07d1787581593894'), 'pie', 'pieSlices'],
|
|
89
|
+
['donut', getLocaleText('FWC.ba481787581445517'), 'donut', 'pieSlices'],
|
|
90
|
+
['radar', getLocaleText('FWC.50c11787581453541'), 'radar', 'radarMetrics'],
|
|
91
|
+
['scatter', getLocaleText('FWC.fa0d1787581453650'), 'scatter', 'scatterPoints'],
|
|
92
|
+
['bubble', getLocaleText('FWC.bb771787581453689'), 'bubble', 'scatterPoints'],
|
|
93
|
+
['funnel', getLocaleText('FWC.689b1787581461784'), 'funnel', 'funnelStages'],
|
|
94
|
+
['gauge', getLocaleText('FWC.b5761787581477625'), 'gauge', 'gaugeMetric'],
|
|
95
|
+
['map', getLocaleText('FWC.52d81787581593945'), 'map', 'mapRegions'],
|
|
96
|
+
['sankey', getLocaleText('FWC.f5361787581477673'), 'sankey', 'sankeyFlow'],
|
|
97
|
+
['tree', getLocaleText('FWC.a5cc1787581594418'), 'tree', 'treeHierarchy'],
|
|
98
|
+
['gantt', getLocaleText('FWC.32101787581477715'), 'gantt', 'ganttTasks'],
|
|
99
|
+
['candlestick', getLocaleText('FWC.040e1787581114686'), 'candlestick', 'candlestickSeries'],
|
|
100
|
+
['kline', getLocaleText('FWC.d56e1787580427981'), 'candlestick', 'candlestickSeries'],
|
|
101
|
+
['boxplot', getLocaleText('FWC.5adf1787581477753'), 'boxplot', 'boxplotSeries'],
|
|
102
|
+
['area', getLocaleText('FWC.9b681787581477790'), 'area', 'singleSeries'],
|
|
102
103
|
['stackedBar', '堆叠柱状图', 'stackedBar', 'multiSeries'],
|
|
103
|
-
['pareto', '
|
|
104
|
-
['drilldownTree', '
|
|
104
|
+
['pareto', getLocaleText('FWC.c7241787581115211'), 'pareto', 'paretoSeries'],
|
|
105
|
+
['drilldownTree', getLocaleText('FWC.20731787581115735'), 'drilldownTree', 'treeHierarchy'],
|
|
105
106
|
['network', '网络关系图', 'network', 'networkGraph'],
|
|
106
107
|
] as const;
|
|
107
108
|
|
|
108
109
|
const tableEntries = [
|
|
109
|
-
['list', '
|
|
110
|
+
['list', getLocaleText('FWC.7cb21787581477829')],
|
|
110
111
|
] as const;
|
|
111
112
|
|
|
112
113
|
const lifecycleOperations = [
|
|
@@ -159,7 +160,7 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
159
160
|
category: 'card.metric_cards',
|
|
160
161
|
type,
|
|
161
162
|
title,
|
|
162
|
-
description:
|
|
163
|
+
description: getLocaleText('FWC.73631787579106116', {p0: title}),
|
|
163
164
|
blockType: 'display',
|
|
164
165
|
subType: 'metric',
|
|
165
166
|
rendererKey: 'metricStrip',
|
|
@@ -172,7 +173,7 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
172
173
|
category: 'card.chart_cards',
|
|
173
174
|
type,
|
|
174
175
|
title,
|
|
175
|
-
description:
|
|
176
|
+
description: getLocaleText('FWC.59fe1787579106128', {p0: title}),
|
|
176
177
|
blockType: 'display',
|
|
177
178
|
subType: 'chart',
|
|
178
179
|
rendererKey,
|
|
@@ -187,7 +188,7 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
187
188
|
category: 'card.table_cards',
|
|
188
189
|
type,
|
|
189
190
|
title,
|
|
190
|
-
description:
|
|
191
|
+
description: getLocaleText('FWC.e0541787578636739', {p0: title}),
|
|
191
192
|
blockType: 'display',
|
|
192
193
|
subType: 'table',
|
|
193
194
|
rendererKey: 'dataTable',
|
|
@@ -196,19 +197,19 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
196
197
|
handlerClassName: `${upperFirst(type)}TableCardAbility`,
|
|
197
198
|
})),
|
|
198
199
|
...[
|
|
199
|
-
['insight', '
|
|
200
|
+
['insight', getLocaleText('FWC.07341787581477847'), 'insightNarrative', 'insightNarrative'],
|
|
200
201
|
['reportSummary', '报告摘要卡', 'reportSummary', 'reportSummary'],
|
|
201
202
|
['rootCause', '根因分析卡', 'insightNarrative', 'insightNarrative'],
|
|
202
203
|
['riskInterpretation', '风险解读卡', 'insightNarrative', 'insightNarrative'],
|
|
203
204
|
['businessSuggestion', '经营建议卡', 'insightNarrative', 'insightNarrative'],
|
|
204
|
-
['weeklyReport', '
|
|
205
|
-
['retrospective', '
|
|
205
|
+
['weeklyReport', getLocaleText('FWC.ecd31787581477865'), 'reportSummary', 'reportSummary'],
|
|
206
|
+
['retrospective', getLocaleText('FWC.38fa1787581477884'), 'insightNarrative', 'insightNarrative'],
|
|
206
207
|
].map(([type, title, rendererKey, dataShape]) => entry({
|
|
207
208
|
capabilityId: `card.analysis.${type}`,
|
|
208
209
|
category: 'card.analysis_report_cards',
|
|
209
210
|
type,
|
|
210
211
|
title,
|
|
211
|
-
description:
|
|
212
|
+
description: getLocaleText('FWC.cb791787578905420', {p0: title}),
|
|
212
213
|
blockType: 'display',
|
|
213
214
|
subType: 'insight',
|
|
214
215
|
rendererKey,
|
|
@@ -220,8 +221,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
220
221
|
capabilityId: `card.dashboard.${type}`,
|
|
221
222
|
category: 'card.dashboard_cards',
|
|
222
223
|
type,
|
|
223
|
-
title: type === 'multiPanel' ? '
|
|
224
|
-
description: '
|
|
224
|
+
title: type === 'multiPanel' ? getLocaleText('FWC.532d1787579908360') : getLocaleText('FWC.51bf1787579408154', {p0: type}),
|
|
225
|
+
description: getLocaleText('FWC.3eac1787579182173'),
|
|
225
226
|
blockType: 'display',
|
|
226
227
|
subType: 'customCanvas',
|
|
227
228
|
rendererKey: 'dashboardGrid',
|
|
@@ -230,19 +231,19 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
230
231
|
handlerClassName: `${upperFirst(type)}DashboardCardAbility`,
|
|
231
232
|
})),
|
|
232
233
|
...[
|
|
233
|
-
['weather', '
|
|
234
|
-
['calendar', '
|
|
234
|
+
['weather', getLocaleText('FWC.19cb1787581477902'), 'weatherCard', 'weatherCurrent'],
|
|
235
|
+
['calendar', getLocaleText('FWC.5a201787581477921'), 'calendarCard', 'calendarCard'],
|
|
235
236
|
['quickLinks', '快捷入口卡', 'customCanvas', 'customCanvas'],
|
|
236
|
-
['announcement', '
|
|
237
|
-
['search', '
|
|
238
|
-
['reminder', '
|
|
239
|
-
['favorites', '
|
|
237
|
+
['announcement', getLocaleText('FWC.e1bf1787581477939'), 'customCanvas', 'customCanvas'],
|
|
238
|
+
['search', getLocaleText('FWC.6dad1787581477958'), 'customCanvas', 'customCanvas'],
|
|
239
|
+
['reminder', getLocaleText('FWC.b0021787581477977'), 'customCanvas', 'customCanvas'],
|
|
240
|
+
['favorites', getLocaleText('FWC.b0741787581477997'), 'customCanvas', 'customCanvas'],
|
|
240
241
|
].map(([type, title, rendererKey, dataShape]) => entry({
|
|
241
242
|
capabilityId: `card.utility.${type}`,
|
|
242
243
|
category: 'card.utility_cards',
|
|
243
244
|
type,
|
|
244
245
|
title,
|
|
245
|
-
description:
|
|
246
|
+
description: getLocaleText('FWC.997f1787579145537', {p0: title}),
|
|
246
247
|
blockType: 'display',
|
|
247
248
|
subType: type === 'weather' ? 'weather' : type === 'calendar' ? 'calendar' : 'customCanvas',
|
|
248
249
|
rendererKey,
|
|
@@ -254,8 +255,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
254
255
|
capabilityId: 'card.embedded.iframe',
|
|
255
256
|
category: 'card.embedded_form_cards',
|
|
256
257
|
type: 'iframe',
|
|
257
|
-
title: '
|
|
258
|
-
description: '
|
|
258
|
+
title: getLocaleText('FWC.09bc1787579252430'),
|
|
259
|
+
description: getLocaleText('FWC.18921787579253480'),
|
|
259
260
|
blockType: 'display',
|
|
260
261
|
subType: 'embed',
|
|
261
262
|
rendererKey: 'embeddedFrame',
|
|
@@ -267,8 +268,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
267
268
|
capabilityId: 'card.embedded.iframePage',
|
|
268
269
|
category: 'card.embedded_form_cards',
|
|
269
270
|
type: 'iframePage',
|
|
270
|
-
title: '
|
|
271
|
-
description: '
|
|
271
|
+
title: getLocaleText('FWC.9c9e1787580027808'),
|
|
272
|
+
description: getLocaleText('FWC.4c9a1787578289671'),
|
|
272
273
|
blockType: 'display',
|
|
273
274
|
subType: 'embed',
|
|
274
275
|
rendererKey: 'embeddedFrame',
|
|
@@ -281,8 +282,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
281
282
|
capabilityId: 'card.fde.customComponent',
|
|
282
283
|
category: 'card.fde_custom_cards',
|
|
283
284
|
type: 'customComponent',
|
|
284
|
-
title: '
|
|
285
|
-
description: '
|
|
285
|
+
title: getLocaleText('FWC.1a131787579735969'),
|
|
286
|
+
description: getLocaleText('FWC.36ab1787579293849'),
|
|
286
287
|
blockType: 'display',
|
|
287
288
|
subType: 'fdeCustom',
|
|
288
289
|
rendererKey: 'fdeCustomComponent',
|
|
@@ -294,8 +295,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
294
295
|
capabilityId: 'card.fde.templateWeather',
|
|
295
296
|
category: 'card.fde_custom_cards',
|
|
296
297
|
type: 'templateWeather',
|
|
297
|
-
title: '
|
|
298
|
-
description: '
|
|
298
|
+
title: getLocaleText('FWC.82b11787581116259'),
|
|
299
|
+
description: getLocaleText('FWC.28f61787577932241'),
|
|
299
300
|
blockType: 'display',
|
|
300
301
|
subType: 'fdeCustom',
|
|
301
302
|
rendererKey: 'fdeCustomComponent',
|
|
@@ -309,7 +310,7 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
309
310
|
category: 'card.custom_canvas_cards',
|
|
310
311
|
type: 'blankCanvas',
|
|
311
312
|
title: '空白画布卡',
|
|
312
|
-
description: '
|
|
313
|
+
description: getLocaleText('FWC.aeb11787579598995'),
|
|
313
314
|
blockType: 'display',
|
|
314
315
|
subType: 'customCanvas',
|
|
315
316
|
rendererKey: 'customCanvas',
|
|
@@ -322,7 +323,7 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
322
323
|
category: 'card.dashboard_cards',
|
|
323
324
|
type: 'nestedContainer',
|
|
324
325
|
title: '嵌套容器卡',
|
|
325
|
-
description: '
|
|
326
|
+
description: getLocaleText('FWC.d5c71787578289681'),
|
|
326
327
|
blockType: 'display',
|
|
327
328
|
subType: 'customCanvas',
|
|
328
329
|
rendererKey: 'customCanvas',
|
|
@@ -347,16 +348,16 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
347
348
|
['knowledge', '知识图谱卡'],
|
|
348
349
|
['ontology', '本体图谱卡'],
|
|
349
350
|
['relationship', '关系网络卡'],
|
|
350
|
-
['dataLineage', '
|
|
351
|
-
['impactChain', '
|
|
352
|
-
['metricLineage', '
|
|
353
|
-
['permissionRelation', '
|
|
351
|
+
['dataLineage', getLocaleText('FWC.2aa91787580629241')],
|
|
352
|
+
['impactChain', getLocaleText('FWC.55d41787580629748')],
|
|
353
|
+
['metricLineage', getLocaleText('FWC.7d7b1787580630237')],
|
|
354
|
+
['permissionRelation', getLocaleText('FWC.fc5d1787580428611')],
|
|
354
355
|
].map(([type, title]) => entry({
|
|
355
356
|
capabilityId: `card.graph.${type}`,
|
|
356
357
|
category: 'card.graph_cards',
|
|
357
358
|
type,
|
|
358
359
|
title,
|
|
359
|
-
description: '
|
|
360
|
+
description: getLocaleText('FWC.0d551787579408164'),
|
|
360
361
|
blockType: 'display',
|
|
361
362
|
subType: 'chart',
|
|
362
363
|
rendererKey: 'network',
|
|
@@ -365,17 +366,17 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
365
366
|
handlerClassName: `${upperFirst(type)}GraphCardAbility`,
|
|
366
367
|
})),
|
|
367
368
|
...[
|
|
368
|
-
['earth3d', '
|
|
369
|
-
['siteDistribution', '
|
|
370
|
-
['regionalHeat', '
|
|
371
|
-
['migrationFlow', '
|
|
372
|
-
['routeTrack', '
|
|
369
|
+
['earth3d', getLocaleText('FWC.74ab1787580630763'), 'geoGlobe', 'geoGlobe', 'large'],
|
|
370
|
+
['siteDistribution', getLocaleText('FWC.a8951787580028331'), 'map', 'mapRegions', 'medium'],
|
|
371
|
+
['regionalHeat', getLocaleText('FWC.f5251787580631286'), 'map', 'mapRegions', 'medium'],
|
|
372
|
+
['migrationFlow', getLocaleText('FWC.a61e1787580631810'), 'network', 'networkGraph', 'medium'],
|
|
373
|
+
['routeTrack', getLocaleText('FWC.29c31787580632333'), 'network', 'networkGraph', 'medium'],
|
|
373
374
|
].map(([type, title, rendererKey, dataShape, defaultSize]) => entry({
|
|
374
375
|
capabilityId: `card.geo.${type}`,
|
|
375
376
|
category: 'card.geo_cards',
|
|
376
377
|
type,
|
|
377
378
|
title,
|
|
378
|
-
description: '
|
|
379
|
+
description: getLocaleText('FWC.3aeb1787579408173'),
|
|
379
380
|
blockType: 'display',
|
|
380
381
|
subType: 'chart',
|
|
381
382
|
rendererKey,
|
|
@@ -384,17 +385,17 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
384
385
|
handlerClassName: `${upperFirst(type)}GeoCardAbility`,
|
|
385
386
|
})),
|
|
386
387
|
...[
|
|
387
|
-
['directory', '
|
|
388
|
-
['orgChart', '
|
|
389
|
-
['personProfile', '
|
|
390
|
-
['teamDistribution', '
|
|
391
|
-
['permissionRelation', '
|
|
388
|
+
['directory', getLocaleText('FWC.513e1787580429145'), 'dataTable', 'rows'],
|
|
389
|
+
['orgChart', getLocaleText('FWC.45c31787580632860'), 'tree', 'treeHierarchy'],
|
|
390
|
+
['personProfile', getLocaleText('FWC.200e1787580632986'), 'customCanvas', 'customCanvas'],
|
|
391
|
+
['teamDistribution', getLocaleText('FWC.8ddb1787580633382'), 'bar', 'multiSeries'],
|
|
392
|
+
['permissionRelation', getLocaleText('FWC.9d811787580633907'), 'network', 'networkGraph'],
|
|
392
393
|
].map(([type, title, rendererKey, dataShape]) => entry({
|
|
393
394
|
capabilityId: `card.identity.${type}`,
|
|
394
395
|
category: 'card.identity_cards',
|
|
395
396
|
type,
|
|
396
397
|
title,
|
|
397
|
-
description: '
|
|
398
|
+
description: getLocaleText('FWC.5b391787579526114'),
|
|
398
399
|
blockType: 'display',
|
|
399
400
|
subType: rendererKey === 'dataTable' ? 'table' : rendererKey === 'tree' || rendererKey === 'bar' || rendererKey === 'network' ? 'chart' : 'customCanvas',
|
|
400
401
|
rendererKey,
|
|
@@ -403,19 +404,19 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
403
404
|
handlerClassName: `${upperFirst(type)}IdentityCardAbility`,
|
|
404
405
|
})),
|
|
405
406
|
...[
|
|
406
|
-
['todoList', '
|
|
407
|
-
['approvalList', '
|
|
408
|
-
['processStatus', '
|
|
409
|
-
['approvalChain', '
|
|
410
|
-
['sla', '
|
|
411
|
-
['taskTimeline', '
|
|
412
|
-
['bottleneck', '
|
|
407
|
+
['todoList', getLocaleText('FWC.49751787580633962'), 'taskSummary', 'taskSummary'],
|
|
408
|
+
['approvalList', getLocaleText('FWC.5b2a1787580634431'), 'dataTable', 'rows'],
|
|
409
|
+
['processStatus', getLocaleText('FWC.c94d1787580634660'), 'gauge', 'gaugeMetric'],
|
|
410
|
+
['approvalChain', getLocaleText('FWC.c8451787581116784'), 'tree', 'treeHierarchy'],
|
|
411
|
+
['sla', getLocaleText('FWC.f3e11787579908841'), 'metricStrip', 'metricSummary'],
|
|
412
|
+
['taskTimeline', getLocaleText('FWC.ee6c1787580429606'), 'gantt', 'ganttTasks'],
|
|
413
|
+
['bottleneck', getLocaleText('FWC.e4b21787580635054'), 'bar', 'multiSeries'],
|
|
413
414
|
].map(([type, title, rendererKey, dataShape]) => entry({
|
|
414
415
|
capabilityId: `card.workflow.${type}`,
|
|
415
416
|
category: 'card.workflow_cards',
|
|
416
417
|
type,
|
|
417
418
|
title,
|
|
418
|
-
description: '
|
|
419
|
+
description: getLocaleText('FWC.0f1c1787579203151'),
|
|
419
420
|
blockType: 'workflow',
|
|
420
421
|
subType: type,
|
|
421
422
|
rendererKey,
|
|
@@ -427,8 +428,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
427
428
|
capabilityId: `card.entity.${type}`,
|
|
428
429
|
category: 'card.entity_cards',
|
|
429
430
|
type,
|
|
430
|
-
title:
|
|
431
|
-
description: '
|
|
431
|
+
title: getLocaleText('FWC.80071787579408184', {p0: type}),
|
|
432
|
+
description: getLocaleText('FWC.fe0a1787579909341'),
|
|
432
433
|
blockType: 'display',
|
|
433
434
|
subType: 'customCanvas',
|
|
434
435
|
rendererKey: 'customCanvas',
|
|
@@ -440,8 +441,8 @@ export const CARD_REGISTRY: CardRegistryEntry[] = [
|
|
|
440
441
|
capabilityId: `card.lifecycle.${operation}`,
|
|
441
442
|
category: 'card.lifecycle_mutation',
|
|
442
443
|
type: operation,
|
|
443
|
-
title:
|
|
444
|
-
description: '
|
|
444
|
+
title: getLocaleText('FWC.bd551787579341036', {p0: operation}),
|
|
445
|
+
description: getLocaleText('FWC.00201787579526711'),
|
|
445
446
|
blockType: 'display',
|
|
446
447
|
subType: 'customCanvas',
|
|
447
448
|
rendererKey: 'customCanvas',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getLocaleText } from '@byteluck-fe/locale-message'
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview 图生组合卡片模式库 - 公开复合卡片的布局、数据与问数契约。
|
|
3
4
|
* @author seadon
|
|
@@ -64,8 +65,8 @@ const COMMON_QUERY_CONTRACT: CompositeCardQueryContract = {
|
|
|
64
65
|
'nestedBlocks[].dataBinding.refreshApi',
|
|
65
66
|
'nestedBlocks[].dataBinding.queryIntent',
|
|
66
67
|
],
|
|
67
|
-
retryEntry: '
|
|
68
|
-
readyBoundary: '
|
|
68
|
+
retryEntry: getLocaleText('FWC.4c1b1787577923500'),
|
|
69
|
+
readyBoundary: getLocaleText('FWC.9aa21787577872466'),
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
/**
|
|
@@ -85,9 +86,9 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
85
86
|
compositePattern({
|
|
86
87
|
id: 'asset',
|
|
87
88
|
capabilityId: 'card.composite.asset',
|
|
88
|
-
title: '
|
|
89
|
-
scene: '
|
|
90
|
-
description: '
|
|
89
|
+
title: getLocaleText('FWC.41b61787579736885'),
|
|
90
|
+
scene: getLocaleText('FWC.eeac1787578131089'),
|
|
91
|
+
description: getLocaleText('FWC.90381787578132001'),
|
|
91
92
|
rendererKey: 'customCanvas',
|
|
92
93
|
dataShape: 'customCanvas',
|
|
93
94
|
defaultSize: 'large',
|
|
@@ -95,15 +96,15 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
95
96
|
requiredShape: 'customCanvas',
|
|
96
97
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
97
98
|
nestedBlockKinds: ['metric', 'donut', 'simpleList'],
|
|
98
|
-
notes: ['
|
|
99
|
+
notes: [getLocaleText('FWC.28b91787578016259'), getLocaleText('FWC.557e1787578636750')],
|
|
99
100
|
},
|
|
100
101
|
}),
|
|
101
102
|
compositePattern({
|
|
102
103
|
id: 'project',
|
|
103
104
|
capabilityId: 'card.composite.project',
|
|
104
|
-
title: '
|
|
105
|
-
scene: '
|
|
106
|
-
description: '
|
|
105
|
+
title: getLocaleText('FWC.d6d41787579737409'),
|
|
106
|
+
scene: getLocaleText('FWC.dc791787578905434'),
|
|
107
|
+
description: getLocaleText('FWC.c4c71787578056077'),
|
|
107
108
|
rendererKey: 'customCanvas',
|
|
108
109
|
dataShape: 'customCanvas',
|
|
109
110
|
defaultSize: 'large',
|
|
@@ -111,15 +112,15 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
111
112
|
requiredShape: 'customCanvas',
|
|
112
113
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
113
114
|
nestedBlockKinds: ['progressList', 'todoGrid', 'quickLinks', 'simpleList'],
|
|
114
|
-
notes: ['
|
|
115
|
+
notes: [getLocaleText('FWC.d25c1787578007217'), getLocaleText('FWC.d8381787579183349')],
|
|
115
116
|
},
|
|
116
117
|
}),
|
|
117
118
|
compositePattern({
|
|
118
119
|
id: 'ops',
|
|
119
120
|
capabilityId: 'card.composite.ops',
|
|
120
|
-
title: '
|
|
121
|
-
scene: '
|
|
122
|
-
description: '
|
|
121
|
+
title: getLocaleText('FWC.3f8a1787579910024'),
|
|
122
|
+
scene: getLocaleText('FWC.34711787579034097'),
|
|
123
|
+
description: getLocaleText('FWC.5e671787578345765'),
|
|
123
124
|
rendererKey: 'customCanvas',
|
|
124
125
|
dataShape: 'customCanvas',
|
|
125
126
|
defaultSize: 'large',
|
|
@@ -127,15 +128,15 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
127
128
|
requiredShape: 'customCanvas',
|
|
128
129
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
129
130
|
nestedBlockKinds: ['statusList', 'resourceBars', 'incidentList', 'chart'],
|
|
130
|
-
notes: ['
|
|
131
|
+
notes: [getLocaleText('FWC.27a41787579342085'), getLocaleText('FWC.3b701787578905449')],
|
|
131
132
|
},
|
|
132
133
|
}),
|
|
133
134
|
compositePattern({
|
|
134
135
|
id: 'security',
|
|
135
136
|
capabilityId: 'card.composite.security',
|
|
136
|
-
title: '
|
|
137
|
-
scene: '
|
|
138
|
-
description: '
|
|
137
|
+
title: getLocaleText('FWC.a8051787579910892'),
|
|
138
|
+
scene: getLocaleText('FWC.282b1787579106141'),
|
|
139
|
+
description: getLocaleText('FWC.6e001787578345773'),
|
|
139
140
|
rendererKey: 'customCanvas',
|
|
140
141
|
dataShape: 'customCanvas',
|
|
141
142
|
defaultSize: 'large',
|
|
@@ -143,15 +144,15 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
143
144
|
requiredShape: 'customCanvas',
|
|
144
145
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
145
146
|
nestedBlockKinds: ['securityScore', 'simpleList'],
|
|
146
|
-
notes: ['
|
|
147
|
+
notes: [getLocaleText('FWC.05131787577972713'), getLocaleText('FWC.5b2e1787579254527')],
|
|
147
148
|
},
|
|
148
149
|
}),
|
|
149
150
|
compositePattern({
|
|
150
151
|
id: 'bidCollaboration',
|
|
151
152
|
capabilityId: 'card.composite.bidCollaboration',
|
|
152
|
-
title: '
|
|
153
|
-
scene: '
|
|
154
|
-
description: '
|
|
153
|
+
title: getLocaleText('FWC.8eef1787579408196'),
|
|
154
|
+
scene: getLocaleText('FWC.23801787578009313'),
|
|
155
|
+
description: getLocaleText('FWC.75ac1787577986806'),
|
|
155
156
|
rendererKey: 'customCanvas',
|
|
156
157
|
dataShape: 'customCanvas',
|
|
157
158
|
defaultSize: 'large',
|
|
@@ -159,15 +160,15 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
159
160
|
requiredShape: 'customCanvas',
|
|
160
161
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
161
162
|
nestedBlockKinds: ['metric', 'table', 'simpleList', 'summary'],
|
|
162
|
-
notes: ['
|
|
163
|
+
notes: [getLocaleText('FWC.77911787577901535'), getLocaleText('FWC.cdbb1787577898681')],
|
|
163
164
|
},
|
|
164
165
|
}),
|
|
165
166
|
compositePattern({
|
|
166
167
|
id: 'threePanelAnalysis',
|
|
167
168
|
capabilityId: 'card.composite.threePanelAnalysis',
|
|
168
|
-
title: '
|
|
169
|
-
scene: '
|
|
170
|
-
description: '
|
|
169
|
+
title: getLocaleText('FWC.a4321787579911480'),
|
|
170
|
+
scene: getLocaleText('FWC.359d1787578069609'),
|
|
171
|
+
description: getLocaleText('FWC.a0831787577880007'),
|
|
171
172
|
rendererKey: 'customCanvas',
|
|
172
173
|
dataShape: 'customCanvas',
|
|
173
174
|
defaultSize: 'large',
|
|
@@ -175,15 +176,15 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
175
176
|
requiredShape: 'customCanvas',
|
|
176
177
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
177
178
|
nestedBlockKinds: ['bar', 'line', 'metric'],
|
|
178
|
-
notes: ['
|
|
179
|
+
notes: [getLocaleText('FWC.e5161787578162885'), getLocaleText('FWC.72601787577874564')],
|
|
179
180
|
},
|
|
180
181
|
}),
|
|
181
182
|
compositePattern({
|
|
182
183
|
id: 'businessMetricMatrix',
|
|
183
184
|
capabilityId: 'card.composite.businessMetricMatrix',
|
|
184
|
-
title: '
|
|
185
|
-
scene: '
|
|
186
|
-
description: '
|
|
185
|
+
title: getLocaleText('FWC.32241787579599520'),
|
|
186
|
+
scene: getLocaleText('FWC.5b6a1787578093605'),
|
|
187
|
+
description: getLocaleText('FWC.685a1787578133573'),
|
|
187
188
|
rendererKey: 'customCanvas',
|
|
188
189
|
dataShape: 'customCanvas',
|
|
189
190
|
defaultSize: 'large',
|
|
@@ -191,7 +192,7 @@ export const WORKBENCH_COMPOSITE_CARD_PATTERNS: CompositeCardPattern[] = [
|
|
|
191
192
|
requiredShape: 'customCanvas',
|
|
192
193
|
requiredFields: [...COMMON_DATA_FIELDS],
|
|
193
194
|
nestedBlockKinds: ['metric', 'chart', 'list'],
|
|
194
|
-
notes: ['
|
|
195
|
+
notes: [getLocaleText('FWC.f4d91787578562066'), getLocaleText('FWC.f2691787578010886')],
|
|
195
196
|
},
|
|
196
197
|
}),
|
|
197
198
|
];
|