@fses/workbench-app 0.2.15 → 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-C0L5xASu.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 +6225 -6075
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +17 -19
- 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 +4 -3
- 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-_r17G1XR.js +0 -22895
- 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 嵌套卡片预览绑定 - 提供 customCanvas 子卡片的数据归一化、语义分类和样式 helper。
|
|
3
4
|
* @author seadon
|
|
@@ -336,7 +337,7 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
336
337
|
if (visualKind === 'statusList' && kind === 'statusItem') {
|
|
337
338
|
return [{
|
|
338
339
|
label: textValue(element.label, textValue(element.title)),
|
|
339
|
-
status: textValue(element.status, '
|
|
340
|
+
status: textValue(element.status, getLocaleText('FWC.ead61787581615130')),
|
|
340
341
|
tone: nestedBlockToneFromStatus(textValue(element.status)),
|
|
341
342
|
}];
|
|
342
343
|
}
|
|
@@ -419,7 +420,7 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
419
420
|
*/
|
|
420
421
|
function nestedBlockFallbackClassifierText(block: CustomCanvasNestedBlock): string {
|
|
421
422
|
const text = nestedBlockClassifierText(block);
|
|
422
|
-
if (/快捷|入口|待办|排行|梯队/.test(text)) return
|
|
423
|
+
if (/快捷|入口|待办|排行|梯队/.test(text)) return getLocaleText('FWC.56b71787578561536', {p0: text});
|
|
423
424
|
return text;
|
|
424
425
|
}
|
|
425
426
|
|
|
@@ -435,175 +436,175 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
435
436
|
if (visualKind === 'statusList') {
|
|
436
437
|
if (domain === 'hr') {
|
|
437
438
|
return [
|
|
438
|
-
{ label: '
|
|
439
|
-
{ label: '
|
|
440
|
-
{ label: '
|
|
441
|
-
{ label: '
|
|
442
|
-
{ label: '
|
|
439
|
+
{ label: getLocaleText('FWC.a9f21787581335496'), status: getLocaleText('FWC.b6121787581620964'), tone: 'warning' },
|
|
440
|
+
{ label: getLocaleText('FWC.0ca81787581335398'), status: getLocaleText('FWC.ead61787581615130'), tone: 'healthy' },
|
|
441
|
+
{ label: getLocaleText('FWC.cc441787581335302'), status: getLocaleText('FWC.ead61787581615130'), tone: 'healthy' },
|
|
442
|
+
{ label: getLocaleText('FWC.dc691787581335349'), status: getLocaleText('FWC.85bf1787581561617'), tone: 'warning' },
|
|
443
|
+
{ label: getLocaleText('FWC.23671787581335203'), status: getLocaleText('FWC.46de1787581620311'), tone: 'critical' },
|
|
443
444
|
];
|
|
444
445
|
}
|
|
445
446
|
return [
|
|
446
|
-
{ label: '
|
|
447
|
-
{ label: '
|
|
448
|
-
{ label: '
|
|
449
|
-
{ label: '
|
|
450
|
-
{ label: '
|
|
447
|
+
{ label: getLocaleText('FWC.031f1787580015782'), status: getLocaleText('FWC.ead61787581615130'), tone: 'healthy' },
|
|
448
|
+
{ label: getLocaleText('FWC.93391787580398649'), status: getLocaleText('FWC.ead61787581615130'), tone: 'healthy' },
|
|
449
|
+
{ label: getLocaleText('FWC.fd501787580015810'), status: getLocaleText('FWC.ef811787581620540'), tone: 'warning' },
|
|
450
|
+
{ label: getLocaleText('FWC.7aad1787580015277'), status: getLocaleText('FWC.ead61787581615130'), tone: 'healthy' },
|
|
451
|
+
{ label: getLocaleText('FWC.4f0b1787580575217'), status: getLocaleText('FWC.46de1787581620311'), tone: 'critical' },
|
|
451
452
|
];
|
|
452
453
|
}
|
|
453
454
|
if (visualKind === 'resourceBars') {
|
|
454
455
|
if (domain === 'hr') {
|
|
455
456
|
return [
|
|
456
|
-
{ label: '
|
|
457
|
-
{ label: '
|
|
458
|
-
{ label: '
|
|
459
|
-
{ label: '
|
|
457
|
+
{ label: getLocaleText('FWC.ab1d1787581620886'), value: 97, tone: 'healthy' },
|
|
458
|
+
{ label: getLocaleText('FWC.48fd1787581621122'), value: 112, tone: 'critical' },
|
|
459
|
+
{ label: getLocaleText('FWC.d3af1787581621783'), value: 88, tone: 'warning' },
|
|
460
|
+
{ label: getLocaleText('FWC.dc961787581621873'), value: 101, tone: 'healthy' },
|
|
460
461
|
];
|
|
461
462
|
}
|
|
462
463
|
return [
|
|
463
464
|
{ label: 'CPU', value: 68, tone: 'info' },
|
|
464
|
-
{ label: '
|
|
465
|
-
{ label: '
|
|
466
|
-
{ label: '
|
|
465
|
+
{ label: getLocaleText('FWC.733d1787581620806'), value: 74, tone: 'info' },
|
|
466
|
+
{ label: getLocaleText('FWC.b8121787581620731'), value: 84, tone: 'warning' },
|
|
467
|
+
{ label: getLocaleText('FWC.b2d71787581619496'), value: 51, tone: 'healthy' },
|
|
467
468
|
];
|
|
468
469
|
}
|
|
469
470
|
if (visualKind === 'incidentList') {
|
|
470
471
|
if (domain === 'hr') {
|
|
471
472
|
return [
|
|
472
|
-
{ severity: '
|
|
473
|
-
{ severity: '
|
|
474
|
-
{ severity: '
|
|
473
|
+
{ severity: getLocaleText('FWC.1f241787581662861'), title: getLocaleText('FWC.02e51787579719433'), detail: getLocaleText('FWC.36851787579902659'), time: getLocaleText('FWC.12fc1787581611305'), tone: 'critical' },
|
|
474
|
+
{ severity: getLocaleText('FWC.1f241787581662861'), title: getLocaleText('FWC.86e51787579587512'), detail: getLocaleText('FWC.c97f1787579587735'), time: getLocaleText('FWC.898d1787581621962'), tone: 'critical' },
|
|
475
|
+
{ severity: getLocaleText('FWC.831a1787581663033'), title: getLocaleText('FWC.c5bb1787580571702'), detail: getLocaleText('FWC.e0281787579337250'), time: getLocaleText('FWC.774a1787581561762'), tone: 'warning' },
|
|
475
476
|
];
|
|
476
477
|
}
|
|
477
478
|
return [
|
|
478
|
-
{ severity: 'P1', title: '
|
|
479
|
-
{ severity: 'P1', title: '
|
|
480
|
-
{ severity: 'P2', title: '
|
|
479
|
+
{ severity: 'P1', title: getLocaleText('FWC.24a81787579719400'), detail: getLocaleText('FWC.a5681787579245091'), time: '32m', tone: 'critical' },
|
|
480
|
+
{ severity: 'P1', title: getLocaleText('FWC.74f01787579282049'), detail: getLocaleText('FWC.247e1787579337280'), time: '48m', tone: 'critical' },
|
|
481
|
+
{ severity: 'P2', title: getLocaleText('FWC.63801787580398000'), detail: getLocaleText('FWC.9f991787579141277'), time: '1h', tone: 'warning' },
|
|
481
482
|
];
|
|
482
483
|
}
|
|
483
484
|
if (visualKind === 'progressList') {
|
|
484
485
|
if (domain === 'hr') {
|
|
485
486
|
return [
|
|
486
|
-
{ label: '
|
|
487
|
-
{ label: '
|
|
488
|
-
{ label: '
|
|
489
|
-
{ label: '
|
|
490
|
-
{ label: '
|
|
487
|
+
{ label: getLocaleText('FWC.50121787581336785'), value: '74%', progress: 74, tone: 'info' },
|
|
488
|
+
{ label: getLocaleText('FWC.91081787581335543'), value: '62%', progress: 62, tone: 'warning' },
|
|
489
|
+
{ label: getLocaleText('FWC.08801787581333971'), value: '88%', progress: 88, tone: 'healthy' },
|
|
490
|
+
{ label: getLocaleText('FWC.bf411787581335983'), value: '79%', progress: 79, tone: 'info' },
|
|
491
|
+
{ label: getLocaleText('FWC.680f1787581070917'), value: '216', progress: 42, tone: 'critical' },
|
|
491
492
|
];
|
|
492
493
|
}
|
|
493
494
|
return [
|
|
494
|
-
{ label: '
|
|
495
|
-
{ label: '
|
|
496
|
-
{ label: '
|
|
497
|
-
{ label: '
|
|
495
|
+
{ label: getLocaleText('FWC.bcd81787580577284'), value: '76%', progress: 76, tone: 'healthy' },
|
|
496
|
+
{ label: getLocaleText('FWC.2d8a1787580015843'), value: getLocaleText('FWC.c5a01787581620612'), progress: 58, tone: 'warning' },
|
|
497
|
+
{ label: getLocaleText('FWC.5ddd1787580577831'), value: '83%', progress: 83, tone: 'healthy' },
|
|
498
|
+
{ label: getLocaleText('FWC.1b8e1787580578855'), value: getLocaleText('FWC.ca771787581619565'), progress: 42, tone: 'critical' },
|
|
498
499
|
];
|
|
499
500
|
}
|
|
500
501
|
if (visualKind === 'todoGrid') {
|
|
501
502
|
if (domain === 'hr') {
|
|
502
503
|
return [
|
|
503
|
-
{ label: '
|
|
504
|
-
{ label: '
|
|
505
|
-
{ label: '
|
|
506
|
-
{ label: '
|
|
504
|
+
{ label: getLocaleText('FWC.84ad1787580015871'), value: '18' },
|
|
505
|
+
{ label: getLocaleText('FWC.8f781787580015753'), value: '7' },
|
|
506
|
+
{ label: getLocaleText('FWC.648a1787580398035'), value: '24' },
|
|
507
|
+
{ label: getLocaleText('FWC.434d1787580572564'), value: '5' },
|
|
507
508
|
];
|
|
508
509
|
}
|
|
509
510
|
return [
|
|
510
|
-
{ label: '
|
|
511
|
-
{ label: '
|
|
512
|
-
{ label: '
|
|
513
|
-
{ label: '
|
|
511
|
+
{ label: getLocaleText('FWC.8ce71787580398078'), value: '18' },
|
|
512
|
+
{ label: getLocaleText('FWC.36a51787580570470'), value: '7' },
|
|
513
|
+
{ label: getLocaleText('FWC.2f901787580569946'), value: '24' },
|
|
514
|
+
{ label: getLocaleText('FWC.86ed1787580571149'), value: '5' },
|
|
514
515
|
];
|
|
515
516
|
}
|
|
516
517
|
if (visualKind === 'quickLinks') {
|
|
517
518
|
if (domain === 'hr') {
|
|
518
|
-
return [{ label: '
|
|
519
|
+
return [{ label: getLocaleText('FWC.80561787581336239') }, { label: getLocaleText('FWC.b33c1787581336189') }, { label: getLocaleText('FWC.0ca81787581335398') }, { label: getLocaleText('FWC.f2f91787581333881') }];
|
|
519
520
|
}
|
|
520
|
-
return [{ label: '
|
|
521
|
+
return [{ label: getLocaleText('FWC.fffe1787581334399') }, { label: getLocaleText('FWC.0c6a1787581560958') }, { label: getLocaleText('FWC.dd181787581337222') }, { label: getLocaleText('FWC.e9961787581333836') }];
|
|
521
522
|
}
|
|
522
523
|
if (visualKind === 'donut') {
|
|
523
524
|
if (domain === 'hr') {
|
|
524
525
|
return [
|
|
525
|
-
{ label: '
|
|
526
|
-
{ label: '
|
|
527
|
-
{ label: '
|
|
528
|
-
{ label: '
|
|
526
|
+
{ label: getLocaleText('FWC.aef91787581337281'), value: '56%', share: 56, tone: 'info' },
|
|
527
|
+
{ label: getLocaleText('FWC.28e81787581339724'), value: '16%', share: 16, tone: 'violet' },
|
|
528
|
+
{ label: getLocaleText('FWC.14db1787581335252'), value: '14%', share: 14, tone: 'warning' },
|
|
529
|
+
{ label: getLocaleText('FWC.71a81787581340239'), value: '14%', share: 14, tone: 'neutral' },
|
|
529
530
|
];
|
|
530
531
|
}
|
|
531
532
|
return [
|
|
532
|
-
{ label: '
|
|
533
|
-
{ label: '
|
|
534
|
-
{ label: '
|
|
535
|
-
{ label: '
|
|
533
|
+
{ label: getLocaleText('FWC.69761787581071018'), value: '42%', share: 42, tone: 'info' },
|
|
534
|
+
{ label: getLocaleText('FWC.ff391787581334451'), value: '25%', share: 25, tone: 'violet' },
|
|
535
|
+
{ label: getLocaleText('FWC.94191787581340664'), value: '17%', share: 17, tone: 'warning' },
|
|
536
|
+
{ label: getLocaleText('FWC.cf401787581070560'), value: '16%', share: 16, tone: 'neutral' },
|
|
536
537
|
];
|
|
537
538
|
}
|
|
538
539
|
if (visualKind === 'list') {
|
|
539
540
|
if (domain === 'hr') {
|
|
540
541
|
return [
|
|
541
|
-
{ label: '
|
|
542
|
-
{ label: '
|
|
543
|
-
{ label: '
|
|
542
|
+
{ label: getLocaleText('FWC.c14d1787580576234'), value: getLocaleText('FWC.2f7f1787581558392'), tone: 'warning' },
|
|
543
|
+
{ label: getLocaleText('FWC.cac11787580576758'), value: getLocaleText('FWC.9ea31787581561820'), tone: 'critical' },
|
|
544
|
+
{ label: getLocaleText('FWC.76061787580573099'), value: getLocaleText('FWC.d7161787581560738'), tone: 'info' },
|
|
544
545
|
];
|
|
545
546
|
}
|
|
546
547
|
if (domain === 'risk') {
|
|
547
548
|
return [
|
|
548
|
-
{ label: '
|
|
549
|
-
{ label: '
|
|
550
|
-
{ label: '
|
|
549
|
+
{ label: getLocaleText('FWC.4f451787580574233'), value: getLocaleText('FWC.ed9a1787581561881'), tone: 'critical' },
|
|
550
|
+
{ label: getLocaleText('FWC.35a91787580574690'), value: getLocaleText('FWC.566a1787581341258'), tone: 'warning' },
|
|
551
|
+
{ label: getLocaleText('FWC.21cd1787581333926'), value: getLocaleText('FWC.10431787581563900'), tone: 'violet' },
|
|
551
552
|
];
|
|
552
553
|
}
|
|
553
554
|
if (domain === 'marketing') {
|
|
554
555
|
return [
|
|
555
|
-
{ label: '
|
|
556
|
-
{ label: '
|
|
557
|
-
{ label: '
|
|
556
|
+
{ label: getLocaleText('FWC.4ddb1787581336037'), value: getLocaleText('FWC.ed9a1787581561881'), tone: 'warning' },
|
|
557
|
+
{ label: getLocaleText('FWC.5e411787581336091'), value: getLocaleText('FWC.566a1787581341258'), tone: 'info' },
|
|
558
|
+
{ label: getLocaleText('FWC.57511787581336141'), value: getLocaleText('FWC.10431787581563900'), tone: 'violet' },
|
|
558
559
|
];
|
|
559
560
|
}
|
|
560
561
|
return [
|
|
561
|
-
{ label: '
|
|
562
|
-
{ label: '
|
|
563
|
-
{ label: '
|
|
562
|
+
{ label: getLocaleText('FWC.080d1787580579381'), value: getLocaleText('FWC.d7161787581560738'), tone: 'warning' },
|
|
563
|
+
{ label: getLocaleText('FWC.cb511787581070965'), value: getLocaleText('FWC.ed9a1787581561881'), tone: 'critical' },
|
|
564
|
+
{ label: getLocaleText('FWC.db161787581342195'), value: getLocaleText('FWC.10431787581563900'), tone: 'info' },
|
|
564
565
|
];
|
|
565
566
|
}
|
|
566
567
|
if (/资产运营|资产状态/.test(text)) {
|
|
567
568
|
return [
|
|
568
|
-
{ label: '
|
|
569
|
-
{ label: '
|
|
570
|
-
{ label: '
|
|
569
|
+
{ label: getLocaleText('FWC.1f7a1787580015529'), value: getLocaleText('FWC.95391787581342283'), tone: 'warning' },
|
|
570
|
+
{ label: getLocaleText('FWC.6ac71787579518994'), value: getLocaleText('FWC.697c1787581342752'), tone: 'critical' },
|
|
571
|
+
{ label: getLocaleText('FWC.e9fe1787580398359'), value: '96%', tone: 'healthy' },
|
|
571
572
|
];
|
|
572
573
|
}
|
|
573
574
|
if (domain === 'hr' && visualKind === 'simpleList') {
|
|
574
575
|
return [
|
|
575
|
-
{ label: '
|
|
576
|
-
{ label: '
|
|
577
|
-
{ label: '
|
|
578
|
-
{ label: '
|
|
576
|
+
{ label: getLocaleText('FWC.a7651787581336288'), value: '1.42', tone: 'healthy' },
|
|
577
|
+
{ label: getLocaleText('FWC.c8271787581343219'), value: '1.31', tone: 'healthy' },
|
|
578
|
+
{ label: getLocaleText('FWC.d19b1787581343280'), value: '1.18', tone: 'healthy' },
|
|
579
|
+
{ label: getLocaleText('FWC.3bb01787581336727'), value: '0.78', tone: 'critical' },
|
|
579
580
|
];
|
|
580
581
|
}
|
|
581
582
|
if (/成本优化/.test(text)) {
|
|
582
583
|
return [
|
|
583
|
-
{ label: '
|
|
584
|
-
{ label: '
|
|
585
|
-
{ label: '
|
|
584
|
+
{ label: getLocaleText('FWC.0ef81787580398695'), value: '+8.4%', tone: 'warning' },
|
|
585
|
+
{ label: getLocaleText('FWC.8b751787579902689'), value: getLocaleText('FWC.f1fd1787581071377'), tone: 'healthy' },
|
|
586
|
+
{ label: getLocaleText('FWC.7bba1787580573679'), value: '-4.6%', tone: 'healthy' },
|
|
586
587
|
];
|
|
587
588
|
}
|
|
588
589
|
if (/研发|效能/.test(text)) {
|
|
589
590
|
return [
|
|
590
|
-
{ label: '
|
|
591
|
-
{ label: '
|
|
592
|
-
{ label: '
|
|
591
|
+
{ label: getLocaleText('FWC.c7b71787580579903'), value: getLocaleText('FWC.32af1787580580430'), tone: 'healthy' },
|
|
592
|
+
{ label: getLocaleText('FWC.250a1787580015900'), value: getLocaleText('FWC.f2a41787580580547'), tone: 'healthy' },
|
|
593
|
+
{ label: getLocaleText('FWC.41731787580015929'), value: '1.8%', tone: 'warning' },
|
|
593
594
|
];
|
|
594
595
|
}
|
|
595
596
|
if (/合规|审计/.test(text)) {
|
|
596
597
|
return [
|
|
597
|
-
{ label: '
|
|
598
|
-
{ label: '
|
|
599
|
-
{ label: '
|
|
600
|
-
{ label: '
|
|
601
|
-
{ label: '
|
|
602
|
-
{ label: '
|
|
598
|
+
{ label: getLocaleText('FWC.f3e11787579587564'), value: '92%', tone: 'healthy' },
|
|
599
|
+
{ label: getLocaleText('FWC.26221787580581614'), value: getLocaleText('FWC.5b7f1787581619644'), tone: 'healthy' },
|
|
600
|
+
{ label: getLocaleText('FWC.c3311787580398960'), value: '88%', tone: 'warning' },
|
|
601
|
+
{ label: getLocaleText('FWC.2c721787580397717'), value: getLocaleText('FWC.0d451787581564146'), tone: 'critical' },
|
|
602
|
+
{ label: getLocaleText('FWC.d9f21787580015309'), value: getLocaleText('FWC.363d1787581564754'), tone: 'critical' },
|
|
603
|
+
{ label: getLocaleText('FWC.fcb21787580580977'), value: getLocaleText('FWC.22691787581561018'), tone: 'healthy' },
|
|
603
604
|
];
|
|
604
605
|
}
|
|
605
606
|
return [
|
|
606
|
-
{ label: textValue(block.title, '
|
|
607
|
+
{ label: textValue(block.title, getLocaleText('FWC.0eb31787581622050')), value: nestedBlockMetricValue(block), tone: 'neutral' },
|
|
607
608
|
];
|
|
608
609
|
}
|
|
609
610
|
|
|
@@ -663,7 +664,7 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
663
664
|
if (direct && direct !== '--') return direct;
|
|
664
665
|
const cells = Array.isArray(item.cells) ? item.cells : [];
|
|
665
666
|
const firstCell = nestedBlockDisplayValue(cells[0]);
|
|
666
|
-
return firstCell && firstCell !== '--' ? firstCell :
|
|
667
|
+
return firstCell && firstCell !== '--' ? firstCell : getLocaleText('FWC.aa511787579587538', {p0: index + 1});
|
|
667
668
|
}
|
|
668
669
|
|
|
669
670
|
/**
|
|
@@ -924,9 +925,9 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
924
925
|
* @returns User-facing summary label.
|
|
925
926
|
*/
|
|
926
927
|
function nestedBlockStatusSummaryLabel(tone: NestedBlockTone): string {
|
|
927
|
-
if (tone === 'healthy') return '
|
|
928
|
-
if (tone === 'critical') return '
|
|
929
|
-
return '
|
|
928
|
+
if (tone === 'healthy') return getLocaleText('FWC.ead61787581615130');
|
|
929
|
+
if (tone === 'critical') return getLocaleText('FWC.46de1787581620311');
|
|
930
|
+
return getLocaleText('FWC.b6121787581620964');
|
|
930
931
|
}
|
|
931
932
|
|
|
932
933
|
/**
|
|
@@ -1012,7 +1013,7 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
1012
1013
|
if (stage) return stage;
|
|
1013
1014
|
const value = nestedBlockItemValue(item);
|
|
1014
1015
|
if (value && !/^\d+(?:\.\d+)?%$/.test(value)) return value;
|
|
1015
|
-
return
|
|
1016
|
+
return getLocaleText('FWC.74371787579587761', {p0: index + 1});
|
|
1016
1017
|
}
|
|
1017
1018
|
|
|
1018
1019
|
/**
|
|
@@ -1034,7 +1035,7 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
1034
1035
|
*/
|
|
1035
1036
|
function nestedBlockSecurityScoreRingLabel(block: CustomCanvasNestedBlock): string {
|
|
1036
1037
|
const score = nestedBlockSecurityScore(block);
|
|
1037
|
-
return /^\d+(?:\.\d+)?$/u.test(score) ? `${score}%` : '
|
|
1038
|
+
return /^\d+(?:\.\d+)?$/u.test(score) ? `${score}%` : getLocaleText('FWC.4b391787581622133');
|
|
1038
1039
|
}
|
|
1039
1040
|
|
|
1040
1041
|
/**
|
|
@@ -1062,9 +1063,9 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
1062
1063
|
const metrics = nestedBlockItemRecords(data.metrics);
|
|
1063
1064
|
if (metrics.length > 0) return metrics.slice(0, 3);
|
|
1064
1065
|
return [
|
|
1065
|
-
{ label: '
|
|
1066
|
-
{ label: '
|
|
1067
|
-
{ label: '
|
|
1066
|
+
{ label: getLocaleText('FWC.a93d1787581335151'), value: '3' },
|
|
1067
|
+
{ label: getLocaleText('FWC.901e1787581071737'), value: '21k' },
|
|
1068
|
+
{ label: getLocaleText('FWC.d67f1787581335100'), value: '9' },
|
|
1068
1069
|
];
|
|
1069
1070
|
}
|
|
1070
1071
|
|
|
@@ -1150,7 +1151,7 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
1150
1151
|
if (rows.length > 0 && !nestedBlockItemsLookTooWeak(rows)) return rows;
|
|
1151
1152
|
return nestedBlockItems(block).slice(0, 3).map((item, index) => ({
|
|
1152
1153
|
事项: nestedBlockItemLabel(item, index),
|
|
1153
|
-
状态: nestedBlockItemValue(item) || nestedBlockItemDetail(item) || '
|
|
1154
|
+
状态: nestedBlockItemValue(item) || nestedBlockItemDetail(item) || getLocaleText('FWC.2f7f1787581558392'),
|
|
1154
1155
|
}));
|
|
1155
1156
|
}
|
|
1156
1157
|
|
|
@@ -1213,11 +1214,11 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
1213
1214
|
function nestedBlockStatusLabel(block: CustomCanvasNestedBlock) {
|
|
1214
1215
|
const status = textValue(block.dataBindingStatus, block.state?.status);
|
|
1215
1216
|
return {
|
|
1216
|
-
none: '
|
|
1217
|
-
pending: '
|
|
1218
|
-
running: '
|
|
1219
|
-
ready: '
|
|
1220
|
-
error: '
|
|
1217
|
+
none: getLocaleText('FWC.47b41787581565368'),
|
|
1218
|
+
pending: getLocaleText('FWC.e15d1787581565435'),
|
|
1219
|
+
running: getLocaleText('FWC.59741787581566045'),
|
|
1220
|
+
ready: getLocaleText('FWC.03db1787581566110'),
|
|
1221
|
+
error: getLocaleText('FWC.21761787581328271'),
|
|
1221
1222
|
}[status] || status;
|
|
1222
1223
|
}
|
|
1223
1224
|
|
|
@@ -1251,11 +1252,11 @@ export function createNestedBlockBindings(context: NestedBlockContext) {
|
|
|
1251
1252
|
if (intervention) {
|
|
1252
1253
|
return businessGapDiagnosticSummary({
|
|
1253
1254
|
message: intervention.message,
|
|
1254
|
-
fallback: '
|
|
1255
|
+
fallback: getLocaleText('FWC.8aa01787579519156'),
|
|
1255
1256
|
diagnostics: block.dataBinding?.diagnostics,
|
|
1256
1257
|
});
|
|
1257
1258
|
}
|
|
1258
|
-
return textValue(block.dataBindingError, '
|
|
1259
|
+
return textValue(block.dataBindingError, getLocaleText('FWC.21761787581328271'));
|
|
1259
1260
|
}
|
|
1260
1261
|
|
|
1261
1262
|
/**
|