@fses/workbench-app 0.1.0
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/LICENSE +9 -0
- package/dist/Workspace-DP3xr4Jp.js +42979 -0
- package/dist/adapters/defaults.d.ts +15 -0
- package/dist/adapters/index.d.ts +8 -0
- package/dist/adapters/testDoubles.d.ts +12 -0
- package/dist/adapters/types.d.ts +84 -0
- package/dist/canvas/api/types.d.ts +117 -0
- package/dist/canvas/bridge/workbenchCanvasBus.d.ts +7 -0
- package/dist/canvas/layout/logicalLayoutEngine.d.ts +85 -0
- package/dist/canvas/persistence/canvasSnapshotStorage.d.ts +3 -0
- package/dist/card/index.d.ts +8 -0
- package/dist/card/index.js +17 -0
- package/dist/chat/index.d.ts +9 -0
- package/dist/chat/index.js +12 -0
- package/dist/components/WorkbenchAppHost.vue.d.ts +28 -0
- package/dist/components/WorkbenchApplication.vue.d.ts +13 -0
- package/dist/components/WorkbenchShell.vue.d.ts +32 -0
- package/dist/components/WorkbenchWorkspaceCore.vue.d.ts +20 -0
- package/dist/config/workbenchAppConfig.d.ts +43 -0
- package/dist/contracts/index.d.ts +7 -0
- package/dist/contracts/index.js +6 -0
- package/dist/extensions/index.d.ts +59 -0
- package/dist/fde-runtime/runtime/fdeSkillDisplayLabel.d.ts +15 -0
- package/dist/fses-workbench-app.js +91 -0
- package/dist/index-A8Vg4UXL.js +1091 -0
- package/dist/index.d.ts +39 -0
- package/dist/internal/personal-workbench/canvas-runtime/api/canvasFacade.d.ts +2 -0
- package/dist/internal/personal-workbench/canvas-runtime/api/types.d.ts +6 -0
- package/dist/internal/personal-workbench/canvas-runtime/factory/cardFactory.d.ts +25 -0
- package/dist/internal/personal-workbench/canvas-runtime/layout/logicalLayoutEngine.d.ts +6 -0
- package/dist/internal/personal-workbench/canvas-runtime/layout/recommendedCardPlacement.d.ts +54 -0
- package/dist/internal/personal-workbench/canvas-runtime/lifecycle/cardLifecycleService.d.ts +12 -0
- package/dist/internal/personal-workbench/canvas-runtime/primitive/primitivePolicyGate.d.ts +9 -0
- package/dist/internal/personal-workbench/components/runtime/RuntimeCapabilitySlots.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/ChartLinkageConfigModal.vue.d.ts +23 -0
- package/dist/internal/personal-workbench/components/workbench/ConversationTurnCard.vue.d.ts +23 -0
- package/dist/internal/personal-workbench/components/workbench/GridStackCanvas.vue.d.ts +91 -0
- package/dist/internal/personal-workbench/components/workbench/GridStackCardShell.vue.d.ts +49 -0
- package/dist/internal/personal-workbench/components/workbench/GridStackContainer.vue.d.ts +39 -0
- package/dist/internal/personal-workbench/components/workbench/LayoutPicker.vue.d.ts +13 -0
- package/dist/internal/personal-workbench/components/workbench/StudioComposer.vue.d.ts +24 -0
- package/dist/internal/personal-workbench/components/workbench/SystemCardPreviewPopover.vue.d.ts +17 -0
- package/dist/internal/personal-workbench/components/workbench/WelcomeBanner.vue.d.ts +19 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchAccessDenied.vue.d.ts +7 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvas.vue.d.ts +290 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchCanvasSettingsMenu.vue.d.ts +40 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchCardConfigDialog.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchDropdownPortal.vue.d.ts +32 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchFdeCardCatalog.vue.d.ts +12 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchListPopover.vue.d.ts +15 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchMetricFilterBindingEditor.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchRecommendationFieldConfigDialog.vue.d.ts +14 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +301 -0
- package/dist/internal/personal-workbench/components/workbench/WorkbenchThemePicker.vue.d.ts +10 -0
- package/dist/internal/personal-workbench/components/workbench/helpers.d.ts +18 -0
- package/dist/internal/personal-workbench/components/workbench/showcase/WorkbenchShowcase.vue.d.ts +273 -0
- package/dist/internal/personal-workbench/composables/useWorkbenchRuntime.d.ts +9 -0
- package/dist/internal/personal-workbench/extensions/cards/customCardCatalog.d.ts +27 -0
- package/dist/internal/personal-workbench/extensions/cards/customComponentRegistry.d.ts +7 -0
- package/dist/internal/personal-workbench/extensions/cards/userCustomCardInsertion.d.ts +21 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedCards.d.ts +2 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedDashboard.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeGeneratedTemplatePage.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/fde/fdeSkillWorkbenchTheme.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/runtimeExtensions.d.ts +37 -0
- package/dist/internal/personal-workbench/extensions/workbenchAdapters.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/workbenchConfig.d.ts +1 -0
- package/dist/internal/personal-workbench/extensions/workbenchExtensions.d.ts +1 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillCardsHost.vue.d.ts +2 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillChartCard.vue.d.ts +57 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardCockpitHeader.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardCockpitTitle.vue.d.ts +5 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardGrid.vue.d.ts +57 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardHeaderBand.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardHost.vue.d.ts +2 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardKpiItem.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardMarqueeList.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardShell.vue.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardSummaryHeader.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDashboardWidget.vue.d.ts +56 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillDrilldownModal.vue.d.ts +20 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillFilterBar.vue.d.ts +18 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillHeaderCard.vue.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillListCard.vue.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillMetricChartToolbar.vue.d.ts +20 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillNumberCard.vue.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillProtocolChartRenderer.vue.d.ts +18 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillQueryCard.vue.d.ts +23 -0
- package/dist/internal/personal-workbench/fde-skill-cards/components/FdeSkillTemplatePageHost.vue.d.ts +2 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillCardTypes.d.ts +514 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartDataRequestMeta.d.ts +13 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartDensityFit.d.ts +67 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartOptions.d.ts +14 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillChartTheme.d.ts +51 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardContext.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardDrilldown.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardKpi.d.ts +36 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardLayout.d.ts +39 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardRefresh.d.ts +24 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardThemes.d.ts +108 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardTypes.d.ts +87 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDashboardViewport.d.ts +71 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDataRefresh.d.ts +59 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillDisplayLabel.d.ts +6 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterBarBridge.d.ts +100 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterDefaults.d.ts +21 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFilterOptions.d.ts +95 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillFloatingAction.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillJson.d.ts +11 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillListMarquee.d.ts +32 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricChartDrilldown.d.ts +101 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricNumberDetail.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillNumberFormat.d.ts +17 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChart.d.ts +37 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartApi.d.ts +17 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +10 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDrilldown.d.ts +68 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartLinkage.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartRefresh.d.ts +19 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillQueryFilters.d.ts +82 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceDrilldown.d.ts +89 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceFields.d.ts +17 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageMount.d.ts +37 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTemplatePageTypes.d.ts +59 -0
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillTimeRangeDefault.d.ts +45 -0
- package/dist/internal/personal-workbench/lib/agentMemoryClient.d.ts +376 -0
- package/dist/internal/personal-workbench/lib/aiChartProtocol.d.ts +31 -0
- package/dist/internal/personal-workbench/lib/aiMetricCardSpec.d.ts +89 -0
- package/dist/internal/personal-workbench/lib/artifactRules.d.ts +15 -0
- package/dist/internal/personal-workbench/lib/assistantPersona.d.ts +28 -0
- package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +21 -0
- package/dist/internal/personal-workbench/lib/businessGroupClient.d.ts +25 -0
- package/dist/internal/personal-workbench/lib/canonicalLayoutContext.d.ts +38 -0
- package/dist/internal/personal-workbench/lib/cardContractDemo.d.ts +20 -0
- package/dist/internal/personal-workbench/lib/cardDisplay.d.ts +1 -0
- package/dist/internal/personal-workbench/lib/cardSizeConfig.d.ts +29 -0
- package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +128 -0
- package/dist/internal/personal-workbench/lib/conversationScreenContext.d.ts +30 -0
- package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +133 -0
- package/dist/internal/personal-workbench/lib/deepAgentProcessGroups.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/deepAgentProgressMessage.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/deepAgentToolDisplayName.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/deepAgentWorkbenchCardMutation.d.ts +39 -0
- package/dist/internal/personal-workbench/lib/deepAgentWorkbenchCardRecommendation.d.ts +66 -0
- package/dist/internal/personal-workbench/lib/dynamicEchartOption.d.ts +14 -0
- package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +34 -0
- package/dist/internal/personal-workbench/lib/echartsProtocolDataSlimming.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/echartsTemplateAssets.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/echartsTemplateMaterializer.d.ts +31 -0
- package/dist/internal/personal-workbench/lib/fdeWorkbenchAssetPackage.d.ts +107 -0
- package/dist/internal/personal-workbench/lib/fdeWorkbenchConfigClient.d.ts +96 -0
- package/dist/internal/personal-workbench/lib/formatters.d.ts +5 -0
- package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +15 -0
- package/dist/internal/personal-workbench/lib/platformFetchClient.d.ts +105 -0
- package/dist/internal/personal-workbench/lib/queryTraceDisplay.d.ts +30 -0
- package/dist/internal/personal-workbench/lib/runtimeCapabilities.d.ts +8 -0
- package/dist/internal/personal-workbench/lib/runtimeIdentity.d.ts +36 -0
- package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +51 -0
- package/dist/internal/personal-workbench/lib/summaryPreview.d.ts +18 -0
- package/dist/internal/personal-workbench/lib/systemCardPreviewProfile.d.ts +23 -0
- package/dist/internal/personal-workbench/lib/userVisibleTextGuard.d.ts +23 -0
- package/dist/internal/personal-workbench/lib/utils.d.ts +46 -0
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +450 -0
- package/dist/internal/personal-workbench/lib/workbenchApi.d.ts +686 -0
- package/dist/internal/personal-workbench/lib/workbenchAttachmentUpload.d.ts +47 -0
- package/dist/internal/personal-workbench/lib/workbenchAutoRefreshSession.d.ts +21 -0
- package/dist/internal/personal-workbench/lib/workbenchBusinessGapDiagnostics.d.ts +16 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +106 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasClassification.d.ts +119 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasDiagnostics.d.ts +100 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasImageCardVisual.d.ts +168 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasImageCompose.d.ts +106 -0
- package/dist/internal/personal-workbench/lib/workbenchCanvasLayoutOverride.d.ts +46 -0
- package/dist/internal/personal-workbench/lib/workbenchCardConfigProfile.d.ts +45 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationBinding.d.ts +64 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationViews.d.ts +24 -0
- package/dist/internal/personal-workbench/lib/workbenchCardUsabilityProfile.d.ts +33 -0
- package/dist/internal/personal-workbench/lib/workbenchChatHistory.d.ts +19 -0
- package/dist/internal/personal-workbench/lib/workbenchChatHistoryReplay.d.ts +25 -0
- package/dist/internal/personal-workbench/lib/workbenchChatMessageOrdering.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchChatPendingTurn.d.ts +21 -0
- package/dist/internal/personal-workbench/lib/workbenchChatReplyBridge.d.ts +55 -0
- package/dist/internal/personal-workbench/lib/workbenchChatStatusCompletion.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchChatTurnSignature.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchConfigDraftReseed.d.ts +18 -0
- package/dist/internal/personal-workbench/lib/workbenchCustomCardCatalog.d.ts +16 -0
- package/dist/internal/personal-workbench/lib/workbenchCustomComponentRegistry.d.ts +4 -0
- package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +19 -0
- package/dist/internal/personal-workbench/lib/workbenchDataBindingRefreshPolicy.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchDataBindingRefreshTarget.d.ts +47 -0
- package/dist/internal/personal-workbench/lib/workbenchDeleteLayoutCompact.d.ts +41 -0
- package/dist/internal/personal-workbench/lib/workbenchEntryParams.d.ts +50 -0
- package/dist/internal/personal-workbench/lib/workbenchGridstackAdapter.d.ts +231 -0
- package/dist/internal/personal-workbench/lib/workbenchGridstackSaveLayout.d.ts +48 -0
- package/dist/internal/personal-workbench/lib/workbenchImageCanvasSizing.d.ts +45 -0
- package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +53 -0
- package/dist/internal/personal-workbench/lib/workbenchImageGridstackRowRecovery.d.ts +93 -0
- package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +174 -0
- package/dist/internal/personal-workbench/lib/workbenchManualReplacement.d.ts +87 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricChartDetail.d.ts +75 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricDetailApi.d.ts +62 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricFilterBinding.d.ts +85 -0
- package/dist/internal/personal-workbench/lib/workbenchMetricFilterLinkage.d.ts +30 -0
- package/dist/internal/personal-workbench/lib/workbenchPendingPatch.d.ts +54 -0
- package/dist/internal/personal-workbench/lib/workbenchRemoteClient.d.ts +39 -0
- package/dist/internal/personal-workbench/lib/workbenchShellSplit.d.ts +107 -0
- package/dist/internal/personal-workbench/lib/workbenchShowcase.d.ts +60 -0
- package/dist/internal/personal-workbench/lib/workbenchSocketClient.d.ts +28 -0
- package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +67 -0
- package/dist/internal/personal-workbench/lib/workbenchSystemCardPreviews.d.ts +31 -0
- package/dist/internal/personal-workbench/lib/workbenchSystemCardPrompt.d.ts +36 -0
- package/dist/internal/personal-workbench/lib/workbenchTextIntent.d.ts +11 -0
- package/dist/internal/personal-workbench/lib/workbenchThemes.d.ts +6 -0
- package/dist/internal/personal-workbench/lib/workbenchV2Adapter.d.ts +49 -0
- package/dist/internal/personal-workbench/pages/Workspace.vue.d.ts +7 -0
- package/dist/internal/personal-workbench/stores/workbenchRuntime.d.ts +170 -0
- package/dist/internal/personal-workbench/themes/index.d.ts +6 -0
- package/dist/internal/personal-workbench/themes/workbenchThemeDefinitions.d.ts +78 -0
- package/dist/internal/personal-workbench/types/workbenchV2.d.ts +211 -0
- package/dist/internal/personal-workbench/vue-types/workbenchRuntime.d.ts +191 -0
- package/dist/runtime/context/workbenchAppContext.d.ts +32 -0
- package/dist/runtime/conversation/workbenchChatMessageOrdering.d.ts +50 -0
- package/dist/runtime/conversation/workbenchChatStatusCompletion.d.ts +27 -0
- package/dist/runtime/conversation/workbenchChatTurnSignature.d.ts +11 -0
- package/dist/runtime/data-binding/workbenchDataBindingRefreshPolicy.d.ts +36 -0
- package/dist/runtime/deep-agent/deepAgentProcessGroups.d.ts +84 -0
- package/dist/runtime/deep-agent/deepAgentProgressMessage.d.ts +22 -0
- package/dist/runtime/deep-agent/deepAgentToolDisplayName.d.ts +12 -0
- package/dist/runtime/index.d.ts +8 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/store/workbenchRuntimeFacade.d.ts +16 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/useWorkbenchRuntime-Pekhufen.js +26338 -0
- package/package.json +143 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 筛选器选项加载 - 经 handleSvcForAi 拉取下拉/人员/部门候选项
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-12
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillFilterControlType, FdeSkillFilterOptionItem, FdeSkillFilterOptionsSource, FdeSkillCardIntent, FdeSkillPageFilterBar, FdeSkillQueryCardIntent, FdeSkillQueryControlSpec } from './fdeSkillCardTypes';
|
|
7
|
+
/** 系统应用:人员/部门筛选固定 app。 */
|
|
8
|
+
export declare const FDE_SKILL_SYSTEM_ORG_APP_ID = "btdev_system_app";
|
|
9
|
+
/** 部门筛选固定服务与字段映射。 */
|
|
10
|
+
export declare const FDE_SKILL_SYSTEM_DEPT_FILTER: {
|
|
11
|
+
readonly app_id: "btdev_system_app";
|
|
12
|
+
readonly svc_code: "search_dept_c6cmkshz";
|
|
13
|
+
readonly value_field: "dept_id";
|
|
14
|
+
readonly label_field: "dept_name";
|
|
15
|
+
};
|
|
16
|
+
/** 人员筛选固定服务与字段映射。 */
|
|
17
|
+
export declare const FDE_SKILL_SYSTEM_PERSON_FILTER: {
|
|
18
|
+
readonly app_id: "btdev_system_app";
|
|
19
|
+
readonly svc_code: "search_internal_emp_sql_svc3bwrm";
|
|
20
|
+
readonly value_field: "employee_id";
|
|
21
|
+
readonly label_field: "employee_name";
|
|
22
|
+
};
|
|
23
|
+
export interface FdeSkillFilterOptionsServiceConfig {
|
|
24
|
+
app_id: string;
|
|
25
|
+
svc_code: string;
|
|
26
|
+
value_field: string;
|
|
27
|
+
label_field: string;
|
|
28
|
+
query_criteria?: Array<{
|
|
29
|
+
column_name: string;
|
|
30
|
+
query_type: number;
|
|
31
|
+
value: unknown[];
|
|
32
|
+
}>;
|
|
33
|
+
page_size?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 判断控件是否需要走服务拉选项。
|
|
37
|
+
* @param options - 选项来源协议。
|
|
38
|
+
* @returns 是否为服务类选项源。
|
|
39
|
+
*/
|
|
40
|
+
export declare function isFdeSkillServiceOptionsSource(options: FdeSkillFilterOptionsSource | null | undefined): options is FdeSkillFilterOptionsSource & {
|
|
41
|
+
service: NonNullable<FdeSkillFilterOptionsSource['service']>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 人员/部门是否走可搜索远程下拉(关键字 + 防抖)。
|
|
45
|
+
* @param type - 控件类型。
|
|
46
|
+
* @returns 是否远程检索。
|
|
47
|
+
*/
|
|
48
|
+
export declare function isFdeSkillRemoteSearchFilterType(type: FdeSkillFilterControlType | string | undefined): type is 'person' | 'department';
|
|
49
|
+
/**
|
|
50
|
+
* 构造人员/部门系统组织服务拉选项配置(固定 app/svc/字段;关键字决定 page_size 与 criteria)。
|
|
51
|
+
* @param kind - person | department。
|
|
52
|
+
* @param keyword - 可选检索关键字;空则 page_size=500 且无 keyword 条件。
|
|
53
|
+
* @returns 服务选项配置。
|
|
54
|
+
*/
|
|
55
|
+
export declare function buildFdeSkillSystemOrgOptionsConfig(kind: 'person' | 'department', keyword?: string): FdeSkillFilterOptionsServiceConfig;
|
|
56
|
+
/**
|
|
57
|
+
* 构造拉选项 HandleDataDto 请求体。
|
|
58
|
+
* @param config - 服务选项配置。
|
|
59
|
+
* @returns handleSvcForAi body。
|
|
60
|
+
*/
|
|
61
|
+
export declare function buildFdeSkillFilterOptionsRequestBody(config: FdeSkillFilterOptionsServiceConfig): Record<string, unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* 将服务行映射为下拉选项;缺字段的行跳过。
|
|
64
|
+
* @param rows - 服务 value 行。
|
|
65
|
+
* @param valueField - 存储值字段。
|
|
66
|
+
* @param labelField - 显示值字段。
|
|
67
|
+
* @returns 选项列表。
|
|
68
|
+
*/
|
|
69
|
+
export declare function mapFdeSkillFilterOptionRows(rows: Array<Record<string, unknown>>, valueField: string, labelField: string): FdeSkillFilterOptionItem[];
|
|
70
|
+
/**
|
|
71
|
+
* 调用 handleSvcForAi 拉取筛选器候选项。
|
|
72
|
+
* @param config - 服务选项配置。
|
|
73
|
+
* @param signal - 中止信号。
|
|
74
|
+
* @returns 选项列表。
|
|
75
|
+
*/
|
|
76
|
+
export declare function loadFdeSkillFilterOptionsFromService(config: FdeSkillFilterOptionsServiceConfig, signal?: AbortSignal): Promise<FdeSkillFilterOptionItem[]>;
|
|
77
|
+
/**
|
|
78
|
+
* 从控件协议解析手工选项。
|
|
79
|
+
* @param control - 控件协议。
|
|
80
|
+
* @returns 手工选项。
|
|
81
|
+
*/
|
|
82
|
+
export declare function resolveFdeSkillManualFilterOptions(control: FdeSkillQueryControlSpec): FdeSkillFilterOptionItem[];
|
|
83
|
+
/**
|
|
84
|
+
* 将页面级 filter_bar 归一为 FilterBar 可用的查询卡协议。
|
|
85
|
+
* @param filterBar - 页面筛选条。
|
|
86
|
+
* @returns 查询卡意图数组。
|
|
87
|
+
*/
|
|
88
|
+
export declare function convertFdeSkillFilterBarToQueryCards(filterBar: FdeSkillPageFilterBar): FdeSkillQueryCardIntent[];
|
|
89
|
+
/**
|
|
90
|
+
* Host 归一筛选源:优先 cards 内 query 卡;否则用 filter_bar。
|
|
91
|
+
* @param cards - 页面卡片。
|
|
92
|
+
* @param filterBar - 可选页面筛选条。
|
|
93
|
+
* @returns 供 FilterBar 渲染的查询卡。
|
|
94
|
+
*/
|
|
95
|
+
export declare function resolveFdeSkillHostQueryCards(cards: ReadonlyArray<FdeSkillCardIntent>, filterBar?: FdeSkillPageFilterBar | null): FdeSkillQueryCardIntent[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 浮层操作工具 - 判断图表浮层操作条是否应被外部点击关闭
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-07
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* 判断事件目标是否位于指定元素内部。
|
|
8
|
+
* @param target - 指针事件目标。
|
|
9
|
+
* @param element - 待判断的元素。
|
|
10
|
+
* @returns 是否位于元素内部。
|
|
11
|
+
*/
|
|
12
|
+
export declare function isFdeSkillEventTargetInsideElement(target: EventTarget | null, element: HTMLElement | null): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 判断图表浮层操作条是否应被当前指针事件关闭。
|
|
15
|
+
* @param target - 指针事件目标。
|
|
16
|
+
* @param actionElement - 浮层操作条元素。
|
|
17
|
+
* @returns 是否应关闭浮层。
|
|
18
|
+
*/
|
|
19
|
+
export declare function shouldCloseFdeSkillFloatingAction(target: EventTarget | null, actionElement: HTMLElement | null): boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 动态清单常量与裁剪 - 约束滚动清单的行/列上限(全画布共用)
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-09
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillListColumn, FdeSkillListMarqueeSpec, FdeSkillListSpec } from './fdeSkillCardTypes';
|
|
7
|
+
/** 动态清单默认单次拉取行数 */
|
|
8
|
+
export declare const FDE_SKILL_LIST_MARQUEE_DEFAULT_ROWS = 20;
|
|
9
|
+
/** 动态清单单次拉取硬上限 */
|
|
10
|
+
export declare const FDE_SKILL_LIST_MARQUEE_MAX_ROWS = 50;
|
|
11
|
+
/** 动态清单默认展示列数建议 */
|
|
12
|
+
export declare const FDE_SKILL_LIST_MARQUEE_DEFAULT_COLUMNS = 4;
|
|
13
|
+
/** 动态清单展示列硬上限 */
|
|
14
|
+
export declare const FDE_SKILL_LIST_MARQUEE_MAX_COLUMNS = 6;
|
|
15
|
+
/** 默认滚动速度(像素/秒) */
|
|
16
|
+
export declare const FDE_SKILL_LIST_MARQUEE_DEFAULT_SPEED = 42;
|
|
17
|
+
/**
|
|
18
|
+
* 归一化动态清单 marquee 配置,补齐默认值并钳制上下限。
|
|
19
|
+
* @param marquee - 原始 marquee 配置。
|
|
20
|
+
* @returns 归一化后的配置;未启用时返回 null。
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveFdeSkillListMarqueeSpec(marquee: FdeSkillListMarqueeSpec | undefined): Required<FdeSkillListMarqueeSpec> | null;
|
|
23
|
+
/**
|
|
24
|
+
* 按动态清单上限裁剪列与行,供渲染与生成共用。
|
|
25
|
+
* @param list - 清单协议。
|
|
26
|
+
* @returns 裁剪后的列、行与归一化 marquee。
|
|
27
|
+
*/
|
|
28
|
+
export declare function clipFdeSkillListForMarquee(list: FdeSkillListSpec): {
|
|
29
|
+
columns: FdeSkillListColumn[];
|
|
30
|
+
rows: FdeSkillListSpec['rows'];
|
|
31
|
+
marquee: Required<FdeSkillListMarqueeSpec>;
|
|
32
|
+
} | null;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricChartDrilldown.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 指标图表下钻 - 基于 chart/data metric_context 构造维度切换与逐层下钻请求。
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-30
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillChartCardIntent, FdeSkillMetricContext, FdeSkillMetricDimensionMeta, FdeSkillMetricStorageValue, FdeSkillProtocolChartDataRequest } from './fdeSkillCardTypes';
|
|
7
|
+
export interface FdeMetricChartPathItem {
|
|
8
|
+
dimension_code: string;
|
|
9
|
+
dimension_name: string;
|
|
10
|
+
display_value: string;
|
|
11
|
+
storage_value: FdeSkillMetricStorageValue;
|
|
12
|
+
}
|
|
13
|
+
export interface FdeMetricChartInteractionView {
|
|
14
|
+
card_id: string;
|
|
15
|
+
source_id: string;
|
|
16
|
+
current_dimension_code: string;
|
|
17
|
+
current_dimension_name: string;
|
|
18
|
+
supported_dimensions: FdeSkillMetricDimensionMeta[];
|
|
19
|
+
remaining_drill_dimensions: FdeSkillMetricDimensionMeta[];
|
|
20
|
+
path_items: FdeMetricChartPathItem[];
|
|
21
|
+
semantic_contract_hash?: string;
|
|
22
|
+
query_context_signature?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FdeMetricChartCardState {
|
|
25
|
+
defaultDimensionCode: string;
|
|
26
|
+
selectedRootDimensionCode: string;
|
|
27
|
+
pathItems: FdeMetricChartPathItem[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 从 protocol_data.extension.metric_context 读取指标上下文。
|
|
31
|
+
* @param protocolData - chart/data 返回的协议数据。
|
|
32
|
+
* @returns 指标上下文或 null。
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveFdeMetricContextFromProtocolData(protocolData: unknown): FdeSkillMetricContext | null;
|
|
35
|
+
/**
|
|
36
|
+
* 读取协议图表响应中的 metric_context。
|
|
37
|
+
* @param card - 指标图卡。
|
|
38
|
+
* @returns 指标上下文或 null。
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveFdeMetricContext(card: FdeSkillChartCardIntent): FdeSkillMetricContext | null;
|
|
41
|
+
/**
|
|
42
|
+
* 读取指标数值卡响应中的 metric_context。
|
|
43
|
+
* @param card - 指标数值卡。
|
|
44
|
+
* @returns 指标上下文或 null。
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveFdeNumberMetricContext(card: {
|
|
47
|
+
data_source: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
number: {
|
|
51
|
+
protocol_data?: Record<string, unknown>;
|
|
52
|
+
};
|
|
53
|
+
}): FdeSkillMetricContext | null;
|
|
54
|
+
/**
|
|
55
|
+
* 构造指标图表交互视图。
|
|
56
|
+
* @param card - 指标图卡。
|
|
57
|
+
* @param pathItems - 前端保存的下钻展示路径。
|
|
58
|
+
* @returns 可渲染的指标交互视图;非指标图返回 null。
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveFdeMetricChartInteractionView(card: FdeSkillChartCardIntent, pathItems?: FdeMetricChartPathItem[]): FdeMetricChartInteractionView | null;
|
|
61
|
+
/**
|
|
62
|
+
* 构造维度切换请求。
|
|
63
|
+
* @param card - 指标图卡。
|
|
64
|
+
* @param dimensionCode - 目标根维度。
|
|
65
|
+
* @returns 下一次 chart/data 请求。
|
|
66
|
+
*/
|
|
67
|
+
export declare function buildFdeMetricDimensionSwitchRequest(card: FdeSkillChartCardIntent, dimensionCode: string): FdeSkillProtocolChartDataRequest;
|
|
68
|
+
/**
|
|
69
|
+
* 构造指标下钻请求。
|
|
70
|
+
* @param card - 指标图卡。
|
|
71
|
+
* @param input - 点击行索引和下一层维度。
|
|
72
|
+
* @returns 下一次请求与前端路径项。
|
|
73
|
+
*/
|
|
74
|
+
export declare function buildFdeMetricDrilldownRequest(card: FdeSkillChartCardIntent, input: {
|
|
75
|
+
dataIndex: number;
|
|
76
|
+
nextDimensionCode: string;
|
|
77
|
+
}): {
|
|
78
|
+
request: FdeSkillProtocolChartDataRequest;
|
|
79
|
+
pathItem: FdeMetricChartPathItem;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 构造路径回跳请求。
|
|
83
|
+
* @param card - 指标图卡。
|
|
84
|
+
* @param pathItems - 前端保存的展示路径。
|
|
85
|
+
* @param targetIndex - 目标路径项索引。
|
|
86
|
+
* @returns 下一次 chart/data 请求。
|
|
87
|
+
*/
|
|
88
|
+
export declare function buildFdeMetricPathJumpRequest(card: FdeSkillChartCardIntent, pathItems: FdeMetricChartPathItem[], targetIndex: number): FdeSkillProtocolChartDataRequest;
|
|
89
|
+
/**
|
|
90
|
+
* 解析清空下钻时应恢复的根维度。
|
|
91
|
+
* @param state - 指标图表交互状态。
|
|
92
|
+
* @returns 根维度编码。
|
|
93
|
+
*/
|
|
94
|
+
export declare function resolveFdeMetricClearDrilldownDimension(state: Pick<FdeMetricChartCardState, 'defaultDimensionCode' | 'selectedRootDimensionCode'>): string;
|
|
95
|
+
/**
|
|
96
|
+
* 构造清空下钻请求。
|
|
97
|
+
* @param card - 指标图卡。
|
|
98
|
+
* @param rootDimensionCode - 进入下钻前的根维度。
|
|
99
|
+
* @returns 下一次 chart/data 请求。
|
|
100
|
+
*/
|
|
101
|
+
export declare function buildFdeMetricClearDrilldownRequest(card: FdeSkillChartCardIntent, rootDimensionCode: string): FdeSkillProtocolChartDataRequest;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillMetricNumberDetail.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 指标数值卡查看明细 - 卡级点击解析明细上下文(受 metric_context.detail_* 控制)
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-08-03
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillDrilldownContext, FdeSkillMetricContext, FdeSkillNumberCardIntent } from './fdeSkillCardTypes';
|
|
7
|
+
/**
|
|
8
|
+
* 判断指标上下文是否允许打开明细。
|
|
9
|
+
* @param metricContext - 指标上下文。
|
|
10
|
+
* @returns 后端未明确禁用时允许打开明细。
|
|
11
|
+
*/
|
|
12
|
+
export declare function isFdeSkillMetricDetailAvailable(metricContext: FdeSkillMetricContext): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 解析指标数值卡「查看明细」上下文。
|
|
15
|
+
* 空维 KPI 无点击行条件,明细仅带已应用筛选;开关与指标图一致读取 detail_enabled/detail_supported。
|
|
16
|
+
* @param card - 指标数值卡。
|
|
17
|
+
* @returns 明细上下文;不可查看时返回 null。
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveFdeSkillMetricNumberDetailContext(card: FdeSkillNumberCardIntent): FdeSkillDrilldownContext | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 数值卡格式化 - 统一金额前缀和普通单位后置规则
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-06-27
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillNumberSpec } from './fdeSkillCardTypes';
|
|
7
|
+
export interface FdeSkillFormattedNumberValue {
|
|
8
|
+
prefix: string;
|
|
9
|
+
value: string;
|
|
10
|
+
suffix: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 按数值卡协议输出前缀、主值和后缀。
|
|
14
|
+
* @param spec - 数值卡协议。
|
|
15
|
+
* @returns 拆分后的展示文本。
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatFdeSkillNumberValue(spec: FdeSkillNumberSpec): FdeSkillFormattedNumberValue;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 协议图表工具 - 校验 ECharts protocol 图表协议
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-06
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillChartCardIntent, FdeSkillDataSource, FdeSkillProtocolChartSpec } from './fdeSkillCardTypes';
|
|
7
|
+
export type FdeSkillProtocolChartCardIntent = FdeSkillChartCardIntent<FdeSkillProtocolChartSpec, FdeSkillDataSource>;
|
|
8
|
+
/**
|
|
9
|
+
* 判断图表协议是否为 ECharts protocol 图表。
|
|
10
|
+
* @param chart - 图表协议。
|
|
11
|
+
* @returns 是否为协议图表。
|
|
12
|
+
*/
|
|
13
|
+
export declare function isFdeSkillProtocolChartSpec(chart: FdeSkillChartCardIntent['chart'] | unknown): chart is FdeSkillProtocolChartSpec;
|
|
14
|
+
/**
|
|
15
|
+
* 判断图表卡是否为协议图表卡。
|
|
16
|
+
* @param card - 图表卡协议。
|
|
17
|
+
* @returns 是否为协议图表卡。
|
|
18
|
+
*/
|
|
19
|
+
export declare function isFdeSkillProtocolChartCard(card: FdeSkillChartCardIntent): card is FdeSkillProtocolChartCardIntent;
|
|
20
|
+
/**
|
|
21
|
+
* 断言图表卡必须使用 ECharts protocol 协议。
|
|
22
|
+
* @param card - 图表卡协议。
|
|
23
|
+
* @returns 无返回值。
|
|
24
|
+
*/
|
|
25
|
+
export declare function assertFdeSkillProtocolChartCard(card: FdeSkillChartCardIntent): asserts card is FdeSkillProtocolChartCardIntent;
|
|
26
|
+
/**
|
|
27
|
+
* 校验协议图表的 chartId 和 protocolType 在配置、数据、请求之间一致。
|
|
28
|
+
* @param card - 图表卡协议。
|
|
29
|
+
* @returns 无返回值。
|
|
30
|
+
*/
|
|
31
|
+
export declare function assertFdeSkillProtocolChartConsistency(card: FdeSkillChartCardIntent): void;
|
|
32
|
+
/**
|
|
33
|
+
* 判断协议图表是否为空数据。
|
|
34
|
+
* @param card - 图表卡协议。
|
|
35
|
+
* @returns 是否为空态。
|
|
36
|
+
*/
|
|
37
|
+
export declare function isFdeSkillProtocolChartEmpty(card: FdeSkillChartCardIntent): boolean;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartApi.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 协议图表接口 - 经平台 getFetch 调用 chart/data 并提取 protocol_data
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-06
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillProtocolChartDataRequest } from './fdeSkillCardTypes';
|
|
7
|
+
export interface FdeSkillChartDataApiResult {
|
|
8
|
+
protocolData: Record<string, unknown>;
|
|
9
|
+
diagnostics?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 调用协议图表数据接口(走平台 getFetch,携带 post-auth)。
|
|
13
|
+
* @param request - 图表数据请求。
|
|
14
|
+
* @param signal - 请求中止信号。
|
|
15
|
+
* @returns 协议图表数据和诊断信息。
|
|
16
|
+
*/
|
|
17
|
+
export declare function executeFdeSkillProtocolChartDataRequest(request: FdeSkillProtocolChartDataRequest, signal?: AbortSignal): Promise<FdeSkillChartDataApiResult>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 协议图表展示数据 - 补齐协议图表渲染所需的展示名称
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-07
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param protocolData - 原始协议数据。
|
|
8
|
+
* @returns 可直接交给 EChartsProtocolRenderer 的协议数据。
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizeFdeSkillProtocolChartDisplayData(protocolData: Record<string, unknown>): Record<string, unknown>;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDrilldown.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 协议图表下钻 - 从 436 协议图表点击构造服务明细请求
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-07
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillChartCardIntent, FdeSkillDrilldownContext, FdeSkillDrilldownResult, FdeSkillExecuteRequest, FdeSkillNumberCardIntent } from './fdeSkillCardTypes';
|
|
7
|
+
import type { FdeSkillQueryCriterion } from './fdeSkillQueryFilters';
|
|
8
|
+
/** 可发起指标/服务查看明细的卡片(图卡或指标数值卡) */
|
|
9
|
+
export type FdeSkillDetailSourceCard = FdeSkillChartCardIntent | FdeSkillNumberCardIntent;
|
|
10
|
+
export interface FdeSkillProtocolChartClickParams {
|
|
11
|
+
componentType?: string;
|
|
12
|
+
seriesName?: unknown;
|
|
13
|
+
name?: unknown;
|
|
14
|
+
value?: unknown;
|
|
15
|
+
dataIndex?: number;
|
|
16
|
+
event?: {
|
|
17
|
+
clientX?: number;
|
|
18
|
+
clientY?: number;
|
|
19
|
+
offsetX?: number;
|
|
20
|
+
offsetY?: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface FdeSkillProtocolDrilldownRequest extends FdeSkillExecuteRequest {
|
|
24
|
+
body: {
|
|
25
|
+
app_id: string;
|
|
26
|
+
svc_code: string;
|
|
27
|
+
source_type?: 'METRIC';
|
|
28
|
+
handle_type?: 'DETAIL_ROWS';
|
|
29
|
+
save_datas: Record<string, unknown>;
|
|
30
|
+
save_datas_list: unknown[];
|
|
31
|
+
query: Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 从 ECharts protocol 点击参数解析服务下钻上下文。
|
|
36
|
+
* @param card - 协议图表卡。
|
|
37
|
+
* @param params - 图表点击参数。
|
|
38
|
+
* @returns 下钻上下文,无法下钻时返回 null。
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveFdeSkillProtocolChartDrilldownContext(card: FdeSkillChartCardIntent, params: FdeSkillProtocolChartClickParams): FdeSkillDrilldownContext | null;
|
|
41
|
+
/**
|
|
42
|
+
* 构造协议图表/指标数值卡明细请求。
|
|
43
|
+
* @param card - 协议图表卡或指标数值卡。
|
|
44
|
+
* @param context - 点击上下文。
|
|
45
|
+
* @param pageIndex - 页码,从 1 开始。
|
|
46
|
+
* @param appliedQueryCriteria - 已应用的查询卡条件。
|
|
47
|
+
* @returns 明细执行请求。
|
|
48
|
+
*/
|
|
49
|
+
export declare function buildFdeSkillProtocolChartDrilldownRequest(card: FdeSkillDetailSourceCard, context: FdeSkillDrilldownContext, pageIndex?: number, appliedQueryCriteria?: FdeSkillQueryCriterion[]): FdeSkillProtocolDrilldownRequest;
|
|
50
|
+
/**
|
|
51
|
+
* 归一化服务明细响应。
|
|
52
|
+
* @param payload - 服务响应 JSON。
|
|
53
|
+
* @param options - 响应归一化选项。
|
|
54
|
+
* @returns 明细表格数据。
|
|
55
|
+
*/
|
|
56
|
+
export declare function normalizeFdeSkillProtocolDrilldownResponse(payload: unknown, options?: {
|
|
57
|
+
fieldNameMap?: Record<string, string>;
|
|
58
|
+
}): FdeSkillDrilldownResult;
|
|
59
|
+
/**
|
|
60
|
+
* 调用协议图表/指标数值卡明细接口。
|
|
61
|
+
* @param card - 协议图表卡或指标数值卡。
|
|
62
|
+
* @param context - 点击上下文。
|
|
63
|
+
* @param pageIndex - 页码。
|
|
64
|
+
* @param signal - 请求中止信号。
|
|
65
|
+
* @param appliedQueryCriteria - 已应用的查询卡条件。
|
|
66
|
+
* @returns 明细数据。
|
|
67
|
+
*/
|
|
68
|
+
export declare function executeFdeSkillProtocolChartDrilldown(card: FdeSkillDetailSourceCard, context: FdeSkillDrilldownContext, pageIndex: number, signal?: AbortSignal, appliedQueryCriteria?: FdeSkillQueryCriterion[]): Promise<FdeSkillDrilldownResult>;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartLinkage.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 协议图表联动 - 从点击事件构造 query_context.linkage
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-06-27
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillChartCardIntent, FdeSkillProtocolChartLinkageContext } from './fdeSkillCardTypes';
|
|
7
|
+
export interface FdeSkillChartClickParams {
|
|
8
|
+
name?: unknown;
|
|
9
|
+
value?: unknown;
|
|
10
|
+
dataIndex?: number;
|
|
11
|
+
seriesName?: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 从协议图表点击参数解析联动刷新上下文。
|
|
15
|
+
* @param card - 协议图表卡。
|
|
16
|
+
* @param params - 图表点击参数。
|
|
17
|
+
* @returns 联动刷新上下文;无法解析时返回 null。
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveFdeSkillProtocolChartLinkageContext(card: FdeSkillChartCardIntent, params: FdeSkillChartClickParams): FdeSkillProtocolChartLinkageContext | null;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartRefresh.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 协议图表刷新 - 新图表卡统一调用后端图表数据接口
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-07-06
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillChartCardIntent, FdeSkillProtocolChartDataRequest, FdeSkillProtocolChartLinkageContext } from './fdeSkillCardTypes';
|
|
7
|
+
import type { FdeSkillRefreshQueryContext } from './fdeSkillDataRefresh';
|
|
8
|
+
export interface FdeSkillProtocolChartRefreshOptions {
|
|
9
|
+
linkage?: FdeSkillProtocolChartLinkageContext;
|
|
10
|
+
metricRequest?: FdeSkillProtocolChartDataRequest;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 刷新协议图表卡。
|
|
14
|
+
* @param card - 图表卡协议。
|
|
15
|
+
* @param signal - 请求中止信号。
|
|
16
|
+
* @param queryContext - 当前查询卡上下文。
|
|
17
|
+
* @returns 刷新后的图表卡。
|
|
18
|
+
*/
|
|
19
|
+
export declare function refreshFdeSkillProtocolChartCard(card: FdeSkillChartCardIntent, signal?: AbortSignal, queryContext?: FdeSkillRefreshQueryContext, options?: FdeSkillProtocolChartRefreshOptions): Promise<FdeSkillChartCardIntent>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 查询过滤工具 - 将筛选器运行态值注入 query_criteria 或指标维度过滤
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-06-30
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillDataSource, FdeSkillMetricDimensionMeta, FdeSkillMetricStorageValue, FdeSkillQueryBinding } from './fdeSkillCardTypes';
|
|
7
|
+
/** 时间范围运行态值 */
|
|
8
|
+
export type FdeSkillTimeRangeValue = [string, string];
|
|
9
|
+
/** 筛选器运行态值:单值、多值或时间范围 */
|
|
10
|
+
export type FdeSkillFilterRuntimeValue = string | number | boolean | Array<string | number> | FdeSkillTimeRangeValue | null | undefined;
|
|
11
|
+
export type FdeSkillQueryValueMap = Record<string, FdeSkillFilterRuntimeValue>;
|
|
12
|
+
export interface FdeSkillQueryCriterion {
|
|
13
|
+
column_name: string;
|
|
14
|
+
query_type: number;
|
|
15
|
+
field_type?: string;
|
|
16
|
+
column_type?: string;
|
|
17
|
+
value: unknown[];
|
|
18
|
+
}
|
|
19
|
+
/** 旧图表 query_context.filters 兼容结构:字段 → 单值或数组 */
|
|
20
|
+
export type FdeSkillChartFiltersMap = Record<string, string | number | boolean | Array<string | number>>;
|
|
21
|
+
export interface FdeSkillApplyQueryFilterResult {
|
|
22
|
+
body: Record<string, unknown>;
|
|
23
|
+
appliedCriteria: FdeSkillQueryCriterion[];
|
|
24
|
+
}
|
|
25
|
+
export interface FdeSkillApplyChartFiltersResult {
|
|
26
|
+
filters: FdeSkillChartFiltersMap;
|
|
27
|
+
appliedCriteria: FdeSkillQueryCriterion[];
|
|
28
|
+
}
|
|
29
|
+
export interface FdeSkillMetricDimensionFilter {
|
|
30
|
+
dimension_code: string;
|
|
31
|
+
operator: 'EQ' | 'IN';
|
|
32
|
+
values: FdeSkillMetricStorageValue[];
|
|
33
|
+
}
|
|
34
|
+
export interface FdeSkillApplyMetricDimensionFiltersResult {
|
|
35
|
+
dimensionFilters: FdeSkillMetricDimensionFilter[];
|
|
36
|
+
dimensionCodes: string[];
|
|
37
|
+
appliedCriteria: FdeSkillQueryCriterion[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 从旧 chart/data filters 迁移 query_criteria。
|
|
41
|
+
* @param filters - 旧 query_context.filters。
|
|
42
|
+
* @param bindings - 查询绑定清单,用于补充 query_type。
|
|
43
|
+
* @returns 可合并到 query_context.query_criteria 的条件。
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolveFdeSkillLegacyChartFilterCriteria(filters: unknown, bindings?: readonly FdeSkillQueryBinding[]): FdeSkillQueryCriterion[];
|
|
46
|
+
/**
|
|
47
|
+
* 生成查询值映射 key。
|
|
48
|
+
* @param sourceCardId - 查询卡 / 筛选器 ID。
|
|
49
|
+
* @param controlId - 查询控件 ID / control_key。
|
|
50
|
+
* @returns 查询值 key。
|
|
51
|
+
*/
|
|
52
|
+
export declare function buildFdeSkillQueryValueKey(sourceCardId: string, controlId: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* 从数据源绑定生成清单/指标 query_criteria。
|
|
55
|
+
* @param dataSource - 卡片数据源。
|
|
56
|
+
* @param queryValues - 查询值映射。
|
|
57
|
+
* @returns 可执行查询条件。
|
|
58
|
+
*/
|
|
59
|
+
export declare function resolveFdeSkillQueryCriteria(dataSource: FdeSkillDataSource, queryValues: FdeSkillQueryValueMap): FdeSkillQueryCriterion[];
|
|
60
|
+
/**
|
|
61
|
+
* 从指标数据源绑定生成 metric_context.dimension_filters。
|
|
62
|
+
* @param dataSource - 指标卡数据源。
|
|
63
|
+
* @param queryValues - 查询值映射。
|
|
64
|
+
* @param supportedDimensions - 后端返回的可筛选维度。
|
|
65
|
+
* @returns 指标维度过滤、涉及维度和并行 criteria。
|
|
66
|
+
*/
|
|
67
|
+
export declare function resolveFdeSkillMetricDimensionFilters(dataSource: FdeSkillDataSource, queryValues: FdeSkillQueryValueMap, supportedDimensions: FdeSkillMetricDimensionMeta[]): FdeSkillApplyMetricDimensionFiltersResult;
|
|
68
|
+
/**
|
|
69
|
+
* 从数据源绑定生成旧图表 query_context.filters 兼容对象。
|
|
70
|
+
* @param dataSource - 卡片数据源。
|
|
71
|
+
* @param queryValues - 查询值映射。
|
|
72
|
+
* @returns 旧 filters 对象与并行 criteria(供下钻记录)。
|
|
73
|
+
*/
|
|
74
|
+
export declare function resolveFdeSkillChartFilters(dataSource: FdeSkillDataSource, queryValues: FdeSkillQueryValueMap): FdeSkillApplyChartFiltersResult;
|
|
75
|
+
/**
|
|
76
|
+
* 把查询卡运行态条件注入克隆后的服务或指标请求体(清单/数值通道)。
|
|
77
|
+
* @param body - 原始请求体。
|
|
78
|
+
* @param dataSource - 卡片数据源。
|
|
79
|
+
* @param queryValues - 查询值映射。
|
|
80
|
+
* @returns 克隆后的请求体和实际追加条件。
|
|
81
|
+
*/
|
|
82
|
+
export declare function applyFdeSkillQueryFiltersToRequestBody(body: Record<string, unknown>, dataSource: FdeSkillDataSource, queryValues: FdeSkillQueryValueMap): FdeSkillApplyQueryFilterResult;
|
package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillServiceDrilldown.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview FDE Skill 服务下钻 - 构造点击明细请求并归一化表格数据
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-06-27
|
|
5
|
+
*/
|
|
6
|
+
import type { FdeSkillLegacyChartCardIntent as FdeSkillChartCardIntent, FdeSkillDrilldownContext, FdeSkillDrilldownResult, FdeSkillExecuteRequest } from './fdeSkillCardTypes';
|
|
7
|
+
import type { FdeSkillQueryCriterion } from './fdeSkillQueryFilters';
|
|
8
|
+
export interface FdeSkillChartClickParams {
|
|
9
|
+
componentType?: string;
|
|
10
|
+
dataIndex?: number;
|
|
11
|
+
name?: unknown;
|
|
12
|
+
seriesName?: unknown;
|
|
13
|
+
event?: {
|
|
14
|
+
offsetX?: number;
|
|
15
|
+
offsetY?: number;
|
|
16
|
+
zrX?: number;
|
|
17
|
+
zrY?: number;
|
|
18
|
+
event?: {
|
|
19
|
+
offsetX?: number;
|
|
20
|
+
offsetY?: number;
|
|
21
|
+
clientX?: number;
|
|
22
|
+
clientY?: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface FdeSkillServiceDrilldownRequest extends FdeSkillExecuteRequest {
|
|
27
|
+
body: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
export interface FdeSkillDrilldownNormalizeOptions {
|
|
30
|
+
fieldNameMap?: Record<string, string>;
|
|
31
|
+
}
|
|
32
|
+
export interface FdeSkillDrilldownActionPositionInput {
|
|
33
|
+
clickX: number;
|
|
34
|
+
clickY: number;
|
|
35
|
+
containerWidth: number;
|
|
36
|
+
containerHeight: number;
|
|
37
|
+
actionWidth?: number;
|
|
38
|
+
actionHeight?: number;
|
|
39
|
+
cursorGap?: number;
|
|
40
|
+
margin?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface FdeSkillDrilldownActionPosition {
|
|
43
|
+
left: number;
|
|
44
|
+
top: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 根据点击点计算下钻操作条位置,并限制在图表容器内。
|
|
48
|
+
* @param input - 点击点、容器尺寸和操作条尺寸。
|
|
49
|
+
* @returns 操作条左上角坐标。
|
|
50
|
+
*/
|
|
51
|
+
export declare function resolveFdeSkillDrilldownActionPosition(input: FdeSkillDrilldownActionPositionInput): FdeSkillDrilldownActionPosition;
|
|
52
|
+
/**
|
|
53
|
+
* 基于 X 轴分类生成点击兜底下钻上下文。
|
|
54
|
+
* @param card - 图卡协议。
|
|
55
|
+
* @param axisValue - X 轴分类值。
|
|
56
|
+
* @returns 点击上下文。
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveFdeSkillChartAxisFallbackContext(card: FdeSkillChartCardIntent, axisValue: unknown): FdeSkillDrilldownContext | null;
|
|
59
|
+
/**
|
|
60
|
+
* 从 ECharts 点击参数解析服务下钻上下文。
|
|
61
|
+
* @param card - 图卡协议。
|
|
62
|
+
* @param params - ECharts click 参数。
|
|
63
|
+
* @returns 点击上下文,无法解析时返回 null。
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveFdeSkillChartClickContext(card: FdeSkillChartCardIntent, params: FdeSkillChartClickParams): FdeSkillDrilldownContext | null;
|
|
66
|
+
/**
|
|
67
|
+
* 构造服务型点击明细请求。
|
|
68
|
+
* @param card - 图卡协议。
|
|
69
|
+
* @param context - 点击上下文。
|
|
70
|
+
* @param pageIndex - 页码,从 1 开始。
|
|
71
|
+
* @returns 服务执行请求。
|
|
72
|
+
*/
|
|
73
|
+
export declare function buildFdeSkillServiceDrilldownRequest(card: FdeSkillChartCardIntent, context: FdeSkillDrilldownContext, pageIndex?: number, appliedQueryCriteria?: FdeSkillQueryCriterion[]): FdeSkillServiceDrilldownRequest;
|
|
74
|
+
/**
|
|
75
|
+
* 归一化服务明细响应。
|
|
76
|
+
* @param payload - 服务响应 JSON。
|
|
77
|
+
* @param options - 响应归一化选项。
|
|
78
|
+
* @returns 明细表格数据。
|
|
79
|
+
*/
|
|
80
|
+
export declare function normalizeFdeSkillDrilldownResponse(payload: unknown, options?: FdeSkillDrilldownNormalizeOptions): FdeSkillDrilldownResult;
|
|
81
|
+
/**
|
|
82
|
+
* 调用服务型下钻接口。
|
|
83
|
+
* @param card - 图卡协议。
|
|
84
|
+
* @param context - 点击上下文。
|
|
85
|
+
* @param pageIndex - 页码。
|
|
86
|
+
* @param signal - 请求中止信号。
|
|
87
|
+
* @returns 明细数据。
|
|
88
|
+
*/
|
|
89
|
+
export declare function executeFdeSkillServiceDrilldown(card: FdeSkillChartCardIntent, context: FdeSkillDrilldownContext, pageIndex: number, signal?: AbortSignal, appliedQueryCriteria?: FdeSkillQueryCriterion[]): Promise<FdeSkillDrilldownResult>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 构造服务字段列表运行态地址。
|
|
3
|
+
* @param appId - 应用 ID。
|
|
4
|
+
* @param serviceCode - 服务编码。
|
|
5
|
+
* @returns 服务字段列表地址。
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildFdeSkillServiceFieldListUrl(appId: string, serviceCode: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* 读取服务输出字段名映射,失败时返回空映射。
|
|
10
|
+
* @param input - 应用和服务编码。
|
|
11
|
+
* @param signal - 请求中止信号。
|
|
12
|
+
* @returns 字段编码到字段名称的映射。
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveFdeSkillServiceFieldNameMap(input: {
|
|
15
|
+
app_id: string;
|
|
16
|
+
svc_code: string;
|
|
17
|
+
}, signal?: AbortSignal): Promise<Record<string, string>>;
|