@fses/workbench-app 0.2.0 → 0.2.2
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 +80 -0
- package/dist/Workspace-fYH2XNdb.js +22699 -0
- package/dist/fses-workbench-app.js +2 -2
- package/dist/{index-DbH6tMQy.js → index-CbIJlts1.js} +8 -8
- package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +2 -2
- package/dist/internal/personal-workbench/lib/deepAgentApi.d.ts +41 -2
- package/dist/internal/personal-workbench/lib/deepAgentQueueState.d.ts +111 -0
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +72 -0
- package/dist/internal/personal-workbench/lib/workbenchSocketClient.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchStorage.d.ts +2 -0
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-XpOzwm56.js → useWorkbenchRuntime-Ch8lqkjO.js} +6707 -6315
- package/node_modules/@byteluck/agentic-protocol/LICENSE +9 -0
- package/node_modules/@byteluck/agentic-protocol/README.md +74 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.d.ts +1623 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.mjs +3380 -0
- package/node_modules/@byteluck/agentic-protocol/package.json +37 -0
- package/node_modules/@byteluck/workbench-skill-contracts/LICENSE +9 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.d.ts +234 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.mjs +394 -0
- package/node_modules/@byteluck/workbench-skill-contracts/package.json +37 -0
- package/node_modules/@fses/ai-chat/LICENSE +9 -0
- package/node_modules/@fses/ai-chat/README.md +320 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/data.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-tool.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/options.d.ts +4 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/trace.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/types.d.ts +133 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDeferredDraft.vue.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDraft.vue.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/components/ChartCardRenderer.vue.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageItem.vue.d.ts +76 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageList.vue.d.ts +79 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatSender.vue.d.ts +98 -0
- package/node_modules/@fses/ai-chat/dist/components/CollapsedToolActivity.vue.d.ts +9 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/components/EChartsView.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +306 -0
- package/node_modules/@fses/ai-chat/dist/components/PlanDraftCard.vue.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/components/ShellExecPanel.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/TaskTodoPlanBar.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/ThinkingShimmer.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/composables/context-usage.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +465 -0
- package/node_modules/@fses/ai-chat/dist/composables/useChat.d.ts +2 -0
- package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +11408 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +25 -0
- package/node_modules/@fses/ai-chat/dist/index.d.ts +17 -0
- package/node_modules/@fses/ai-chat/dist/plugin.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/style.css +1 -0
- package/node_modules/@fses/ai-chat/dist/utils/assistant-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +22 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-config-summary.d.ts +86 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-field-label.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-source.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-title-source.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/utils/chart-card-visibility.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/derived-process-labels.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/utils/echarts-recommendation-icon.d.ts +36 -0
- package/node_modules/@fses/ai-chat/dist/utils/group-messages.d.ts +30 -0
- package/node_modules/@fses/ai-chat/dist/utils/status-activity.d.ts +48 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template-icons.generated.d.ts +305 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template.d.ts +20 -0
- package/node_modules/@fses/ai-chat/dist/utils/task-todo-plan.d.ts +40 -0
- package/node_modules/@fses/ai-chat/dist/utils/workbench-echarts-theme.d.ts +35 -0
- package/node_modules/@fses/ai-chat/package.json +81 -0
- package/node_modules/@fses/workbench-card/LICENSE +9 -0
- package/node_modules/@fses/workbench-card/README.md +81 -0
- package/node_modules/@fses/workbench-card/dist/chart/index.d.ts +8 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +2230 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +33742 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +21238 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -0
- package/node_modules/@fses/workbench-card/dist/index.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/registry/cardRegistry.d.ts +50 -0
- package/node_modules/@fses/workbench-card/dist/registry/compositeCardPatterns.d.ts +39 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateCategories.d.ts +20 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.d.ts +1158 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.generated.d.ts +1141 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateTypes.d.ts +76 -0
- package/node_modules/@fses/workbench-card/dist/registry/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/WorkbenchBlockRenderer.vue.d.ts +55 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/ChartRegistry.vue.d.ts +22 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/EChartsProtocolRenderer.vue.d.ts +34 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +219 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartResponsiveLayout.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/dynamicEchartOption.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/adapter.d.ts +73 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/composite.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/configOnly.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/geo.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/graphic.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/layout.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/network.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/scene3D.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/series.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/table.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/timeline.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/transition.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tree.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tuple.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/index.d.ts +9 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/merger.d.ts +16 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/types.d.ts +447 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTitle.d.ts +13 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTooltipPortal.d.ts +12 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/types.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/useEchart.d.ts +29 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/workbenchChartTheme.d.ts +36 -0
- package/node_modules/@fses/workbench-card/dist/renderers/custom-canvas/canvasLayoutBindings.d.ts +86 -0
- package/node_modules/@fses/workbench-card/dist/renderers/hostBridge.d.ts +61 -0
- package/node_modules/@fses/workbench-card/dist/renderers/index.d.ts +17 -0
- package/node_modules/@fses/workbench-card/dist/renderers/native/nativeBindings.d.ts +145 -0
- package/node_modules/@fses/workbench-card/dist/renderers/nested/nestedBlockBindings.d.ts +107 -0
- package/node_modules/@fses/workbench-card/dist/renderers/quickLinkDisplay.d.ts +24 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceCompositeBindings.d.ts +171 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceRiskAndStrategyBindings.d.ts +91 -0
- package/node_modules/@fses/workbench-card/dist/renderers/resizableTable.d.ts +51 -0
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/renderers/tableDisplay.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/renderers/useWorkbenchBlockRendererBindings.d.ts +580 -0
- package/node_modules/@fses/workbench-card/dist/shell/workbenchVisualShell.d.ts +48 -0
- package/node_modules/@fses/workbench-card/dist/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/types/block.d.ts +2011 -0
- package/node_modules/@fses/workbench-card/dist/types/canvas.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/types/echartsProtocol.d.ts +445 -0
- package/node_modules/@fses/workbench-card/dist/types/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/types/registry.d.ts +7 -0
- package/node_modules/@fses/workbench-card/dist/types/runtime.d.ts +34 -0
- package/node_modules/@fses/workbench-card/package.json +83 -0
- package/node_modules/@fses/workbench-card/src/chart/index.ts +8 -0
- package/node_modules/@fses/workbench-card/src/index.ts +13 -0
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +476 -0
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +206 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +74 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +19950 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +19951 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.ts +32 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateTypes.ts +83 -0
- package/node_modules/@fses/workbench-card/src/registry/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2728 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +221 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +304 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +311 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartResponsiveLayout.ts +172 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/dynamicEchartOption.ts +127 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/adapter.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/composite.converter.ts +71 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/configOnly.converter.ts +45 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/geo.converter.ts +97 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/graphic.converter.ts +59 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/layout.converter.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/network.converter.ts +82 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/scene3D.converter.ts +73 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +795 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/table.converter.ts +195 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/timeline.converter.ts +62 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/transition.converter.ts +58 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tree.converter.ts +75 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tuple.converter.ts +112 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/merger.ts +109 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/types.ts +515 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsRuntimeInteractions.ts +450 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTitle.ts +94 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTooltipPortal.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/types.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +1820 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/workbenchChartTheme.ts +240 -0
- package/node_modules/@fses/workbench-card/src/renderers/custom-canvas/canvasLayoutBindings.ts +660 -0
- package/node_modules/@fses/workbench-card/src/renderers/hostBridge.ts +74 -0
- package/node_modules/@fses/workbench-card/src/renderers/index.ts +25 -0
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +1096 -0
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/quickLinkDisplay.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +3209 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +1004 -0
- package/node_modules/@fses/workbench-card/src/renderers/resizableTable.ts +136 -0
- package/node_modules/@fses/workbench-card/src/renderers/tableDisplay.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +3192 -0
- package/node_modules/@fses/workbench-card/src/shell/workbenchVisualShell.ts +228 -0
- package/node_modules/@fses/workbench-card/src/styles/workbench-card.css +343 -0
- package/node_modules/@fses/workbench-card/src/types/block.ts +2496 -0
- package/node_modules/@fses/workbench-card/src/types/canvas.ts +30 -0
- package/node_modules/@fses/workbench-card/src/types/echartsProtocol.ts +513 -0
- package/node_modules/@fses/workbench-card/src/types/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/types/registry.ts +17 -0
- package/node_modules/@fses/workbench-card/src/types/runtime.ts +31 -0
- package/node_modules/dompurify/LICENSE +568 -0
- package/node_modules/dompurify/README.md +523 -0
- package/node_modules/dompurify/dist/purify.cjs.d.ts +451 -0
- package/node_modules/dompurify/dist/purify.cjs.js +1472 -0
- package/node_modules/dompurify/dist/purify.cjs.js.map +1 -0
- package/node_modules/dompurify/dist/purify.es.d.mts +448 -0
- package/node_modules/dompurify/dist/purify.es.mjs +1470 -0
- package/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
- package/node_modules/dompurify/dist/purify.js +1478 -0
- package/node_modules/dompurify/dist/purify.js.map +1 -0
- package/node_modules/dompurify/dist/purify.min.js +3 -0
- package/node_modules/dompurify/dist/purify.min.js.map +1 -0
- package/node_modules/dompurify/package.json +168 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +99 -104
- package/dist/Workspace-DMye5DU8.js +0 -43113
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Series 协议转换器 - 将笛卡尔/径向图表协议数据转换为 ECharts option
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-05
|
|
5
|
+
*/
|
|
6
|
+
import type { ProtocolConverter } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Series 协议转换器,处理标准笛卡尔坐标系和径向坐标系图表。
|
|
9
|
+
*/
|
|
10
|
+
export declare const seriesConverter: ProtocolConverter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Table protocol converter - maps tabular protocol data to ECharts dataset options.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-05
|
|
5
|
+
*/
|
|
6
|
+
import type { ProtocolConverter } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Table protocol converter for ECharts dataset-driven charts.
|
|
9
|
+
*/
|
|
10
|
+
export declare const tableConverter: ProtocolConverter;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Timeline 协议转换器 — 将时间轴数据转换为 ECharts option
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-05
|
|
5
|
+
*/
|
|
6
|
+
import type { ProtocolConverter } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Timeline 协议转换器,处理带有时间轴切换功能的图表数据
|
|
9
|
+
* 使用 ECharts timeline 组件实现多状态切换
|
|
10
|
+
*/
|
|
11
|
+
export declare const timelineConverter: ProtocolConverter;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Transition 协议转换器 — 将动画过渡数据转换为 ECharts option
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-05
|
|
5
|
+
*/
|
|
6
|
+
import type { ProtocolConverter } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Transition 协议转换器,处理动画状态过渡数据
|
|
9
|
+
* 依赖 optionPatch 定义完整的系列结构
|
|
10
|
+
*/
|
|
11
|
+
export declare const transitionConverter: ProtocolConverter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Tuple 协议转换器 — 将元组结构数据转换为 ECharts option
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-05
|
|
5
|
+
*/
|
|
6
|
+
import type { ProtocolConverter } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Tuple 协议转换器,处理包含类别和元组行的数据结构
|
|
9
|
+
*/
|
|
10
|
+
export declare const tupleConverter: ProtocolConverter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ECharts protocol module entry point — re-exports all public
|
|
3
|
+
* types, the protocol adapter, and the deep-merge utility.
|
|
4
|
+
* @author seadon
|
|
5
|
+
* @created 2026-05-05
|
|
6
|
+
*/
|
|
7
|
+
export { EChartsProtocolAdapter } from './adapter';
|
|
8
|
+
export { deepMergeOption } from './merger';
|
|
9
|
+
export * from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ECharts option 深度合并工具 — 将 source 选项深度合并到 target 中
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-05
|
|
5
|
+
*/
|
|
6
|
+
import type { EChartsOption } from 'echarts';
|
|
7
|
+
/**
|
|
8
|
+
* 将 source 深度合并到 target 中,source 中的值覆盖 target 中的同名值。
|
|
9
|
+
* 递归合并普通对象;series/xAxis/yAxis 对象数组按 id/name 或下标合并,其它数组直接覆盖。
|
|
10
|
+
* 返回一个新对象,不会修改 target。
|
|
11
|
+
*
|
|
12
|
+
* @param target - 目标 ECharts option,作为合并基础
|
|
13
|
+
* @param source - 源选项对象,其中的值将覆盖 target 中的同名值
|
|
14
|
+
* @returns 合并后的新 ECharts option 对象
|
|
15
|
+
*/
|
|
16
|
+
export declare function deepMergeOption(target: EChartsOption, source: Record<string, unknown>): EChartsOption;
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ECharts protocol type definitions — defines the contract between
|
|
3
|
+
* card payloads, protocol config/data payloads, and converter interfaces used
|
|
4
|
+
* by the echarts-protocol rendering pipeline.
|
|
5
|
+
* @author seadon
|
|
6
|
+
* @created 2026-05-05
|
|
7
|
+
*/
|
|
8
|
+
import type { EChartsOption } from 'echarts';
|
|
9
|
+
/**
|
|
10
|
+
* Supported renderer types for card payloads.
|
|
11
|
+
* Extensible via `string` to allow future renderers without breaking changes.
|
|
12
|
+
*/
|
|
13
|
+
export type RendererType = 'echarts' | 'table' | 'metric' | 'richtext' | 'iframe' | (string & {});
|
|
14
|
+
/**
|
|
15
|
+
* Top-level card payload delivered by the backend pipeline.
|
|
16
|
+
* Each card carries a renderer type discriminator so the frontend can route
|
|
17
|
+
* it to the correct renderer component.
|
|
18
|
+
*/
|
|
19
|
+
export interface CardPayload {
|
|
20
|
+
/** Discriminator that determines which renderer component handles this card */
|
|
21
|
+
rendererType: RendererType;
|
|
22
|
+
/** Unique identifier for the card instance */
|
|
23
|
+
cardId: string;
|
|
24
|
+
/** Primary display title */
|
|
25
|
+
title: string;
|
|
26
|
+
/** Optional secondary description */
|
|
27
|
+
subtitle?: string;
|
|
28
|
+
/** Renderer-specific configuration (e.g. ProtocolConfigPayload for echarts) */
|
|
29
|
+
configPayload: unknown;
|
|
30
|
+
/** Renderer-specific data (e.g. ProtocolDataPayload for echarts) */
|
|
31
|
+
dataPayload?: unknown;
|
|
32
|
+
/** Optional binding ID linking this card to a data source */
|
|
33
|
+
dataBindingId?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The 13 canonical protocol types that describe how chart data is structured.
|
|
37
|
+
* Each type implies a specific data shape and converter strategy.
|
|
38
|
+
*/
|
|
39
|
+
export type ProtocolType = 'series' | 'table' | 'tuple' | 'tree' | 'network' | 'geo' | 'scene3D' | 'timeline' | 'transition' | 'graphic' | 'layout' | 'composite' | 'configOnly';
|
|
40
|
+
/**
|
|
41
|
+
* Chart family classification used to group charts by coordinate system.
|
|
42
|
+
*/
|
|
43
|
+
export type ChartFamily = 'cartesian' | 'radial' | 'tree' | 'network' | 'geo' | 'gl' | 'free';
|
|
44
|
+
/**
|
|
45
|
+
* Describes a single series definition within a chart configuration.
|
|
46
|
+
* Maps one-to-one with ECharts series entries in the generated option.
|
|
47
|
+
*/
|
|
48
|
+
export interface SeriesDef {
|
|
49
|
+
/** Unique series identifier */
|
|
50
|
+
id: string;
|
|
51
|
+
/** ECharts series type (e.g. 'bar', 'line', 'pie') */
|
|
52
|
+
type: string;
|
|
53
|
+
/** Optional reference to a dataset the series draws from */
|
|
54
|
+
datasetId?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Static configuration payload that describes how to build the ECharts option.
|
|
58
|
+
* This is the "skeleton" of the chart — it defines structure but not the data.
|
|
59
|
+
*/
|
|
60
|
+
export interface ProtocolConfigPayload {
|
|
61
|
+
/** Protocol version for forward compatibility */
|
|
62
|
+
version: '1.0';
|
|
63
|
+
/** Discriminator indicating the protocol structure type */
|
|
64
|
+
protocolType: ProtocolType;
|
|
65
|
+
/** Unique identifier for the chart this config belongs to */
|
|
66
|
+
chartId: string;
|
|
67
|
+
/** Chart metadata */
|
|
68
|
+
chart: {
|
|
69
|
+
/** Chart identifier (may differ from chartId when chart is templated) */
|
|
70
|
+
id: string;
|
|
71
|
+
/** Human-readable chart title */
|
|
72
|
+
title: string;
|
|
73
|
+
/** Chart coordinate family classification */
|
|
74
|
+
family: ChartFamily;
|
|
75
|
+
/** Rendering engine */
|
|
76
|
+
renderer: 'canvas' | 'svg';
|
|
77
|
+
};
|
|
78
|
+
/** Series definitions describing each data series in the chart */
|
|
79
|
+
series: SeriesDef[];
|
|
80
|
+
/** Presentation configuration for visual elements */
|
|
81
|
+
presentation: {
|
|
82
|
+
/** ECharts theme name or theme object */
|
|
83
|
+
theme?: string | Record<string, unknown>;
|
|
84
|
+
/** Tooltip configuration */
|
|
85
|
+
tooltip?: Record<string, unknown>;
|
|
86
|
+
/** Legend configuration */
|
|
87
|
+
legend?: Record<string, unknown>;
|
|
88
|
+
/** Animation configuration */
|
|
89
|
+
animation?: Record<string, unknown>;
|
|
90
|
+
};
|
|
91
|
+
/** Extraction status metadata */
|
|
92
|
+
extraction?: {
|
|
93
|
+
/** Current extraction status (e.g. 'complete', 'partial') */
|
|
94
|
+
status: string;
|
|
95
|
+
};
|
|
96
|
+
/** Official ECharts example comparison for reference */
|
|
97
|
+
officialComparison?: {
|
|
98
|
+
/** URL to the ECharts editor with the original example */
|
|
99
|
+
editorUrl: string;
|
|
100
|
+
/** URL to the source code of the original example */
|
|
101
|
+
sourceUrl: string;
|
|
102
|
+
};
|
|
103
|
+
/** Source replay configuration for reproducing the chart from original examples */
|
|
104
|
+
officialSourceReplay?: {
|
|
105
|
+
/** Whether source replay is enabled */
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
/** Relative path to the source file */
|
|
108
|
+
sourceRelativePath: string;
|
|
109
|
+
/** Root path of the source repository */
|
|
110
|
+
rootPath: string;
|
|
111
|
+
/** CDN path for asset resolution */
|
|
112
|
+
cdnPath: string;
|
|
113
|
+
/** External dependency requirements */
|
|
114
|
+
requires: {
|
|
115
|
+
echartsGl?: boolean;
|
|
116
|
+
jquery?: boolean;
|
|
117
|
+
d3?: boolean;
|
|
118
|
+
ecStat?: boolean;
|
|
119
|
+
datGui?: boolean;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
/** Arbitrary ECharts option overrides merged on top of the generated option */
|
|
123
|
+
optionPatch?: Record<string, unknown>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Base fields shared by all protocol data payloads.
|
|
127
|
+
* Each concrete payload re-declares `protocolType` as a string literal
|
|
128
|
+
* so TypeScript can discriminate between them in the union type.
|
|
129
|
+
*/
|
|
130
|
+
interface ProtocolDataBase {
|
|
131
|
+
/** Protocol version for forward compatibility */
|
|
132
|
+
version: '1.0';
|
|
133
|
+
/** Unique identifier for the chart this data belongs to */
|
|
134
|
+
chartId: string;
|
|
135
|
+
/** Optional parameters passed alongside the data */
|
|
136
|
+
params?: Record<string, unknown>;
|
|
137
|
+
/** Reload policy controlling how data updates are handled */
|
|
138
|
+
reloadPolicy: {
|
|
139
|
+
/** Reload mode (e.g. 'replace', 'append', 'merge') */
|
|
140
|
+
mode: string;
|
|
141
|
+
/** Whether this data type supports refreshing without rebuilding the option */
|
|
142
|
+
supportsDataOnlyReload: boolean;
|
|
143
|
+
};
|
|
144
|
+
/** Extraction metadata */
|
|
145
|
+
extraction?: {
|
|
146
|
+
status: string;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Series protocol data — standard cartesian / radial chart data with
|
|
151
|
+
* categories on one axis and one or more numeric series.
|
|
152
|
+
*/
|
|
153
|
+
export interface SeriesDataPayload extends ProtocolDataBase {
|
|
154
|
+
protocolType: 'series';
|
|
155
|
+
/** Category labels for cartesian x-axis, or radar indicators for radial charts */
|
|
156
|
+
categories: {
|
|
157
|
+
xAxis?: string[];
|
|
158
|
+
indicators?: Array<{
|
|
159
|
+
name: string;
|
|
160
|
+
max?: number;
|
|
161
|
+
}>;
|
|
162
|
+
};
|
|
163
|
+
/** Array of data series, each with numeric values */
|
|
164
|
+
series: Array<{
|
|
165
|
+
/** Series identifier matching SeriesDef.id */
|
|
166
|
+
id: string;
|
|
167
|
+
/** Series display name */
|
|
168
|
+
name: string;
|
|
169
|
+
/** Hint for the preferred ECharts series type */
|
|
170
|
+
typeHint?: string;
|
|
171
|
+
/** Numeric data values, one per category */
|
|
172
|
+
data: number[];
|
|
173
|
+
}>;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Table protocol data — tabular data organized by datasets with dimensions.
|
|
177
|
+
*/
|
|
178
|
+
export interface TableDataPayload extends ProtocolDataBase {
|
|
179
|
+
protocolType: 'table';
|
|
180
|
+
/** Array of tabular datasets */
|
|
181
|
+
datasets: Array<{
|
|
182
|
+
/** Dataset identifier */
|
|
183
|
+
id: string;
|
|
184
|
+
/** Data shape discriminator */
|
|
185
|
+
shape: 'table';
|
|
186
|
+
/** Column dimension names */
|
|
187
|
+
dimensions?: string[];
|
|
188
|
+
/** Raw data rows (array of arrays) */
|
|
189
|
+
source: unknown[][];
|
|
190
|
+
/** Rows as key-value records (optional alternative to source) */
|
|
191
|
+
rows?: Record<string, unknown>[];
|
|
192
|
+
}>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Tuple protocol data — combines categories with tuple-structured rows.
|
|
196
|
+
*/
|
|
197
|
+
export interface TupleDataPayload extends ProtocolDataBase {
|
|
198
|
+
protocolType: 'tuple';
|
|
199
|
+
/** Single tuple dataset */
|
|
200
|
+
dataset: {
|
|
201
|
+
/** Dataset identifier */
|
|
202
|
+
id: string;
|
|
203
|
+
/** Data shape discriminator */
|
|
204
|
+
shape: 'tuple';
|
|
205
|
+
/** Kind of tuple encoding */
|
|
206
|
+
tupleKind: string;
|
|
207
|
+
/** Column dimension names */
|
|
208
|
+
dimensions: string[];
|
|
209
|
+
/** Optional category labels for tuple axes */
|
|
210
|
+
categories?: {
|
|
211
|
+
xAxis: string[];
|
|
212
|
+
yAxis?: string[];
|
|
213
|
+
};
|
|
214
|
+
/** Data rows as arrays */
|
|
215
|
+
rows: unknown[][];
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Hierarchical tree node used in TreeDataPayload.
|
|
220
|
+
*/
|
|
221
|
+
export interface TreeNode {
|
|
222
|
+
/** Node display name */
|
|
223
|
+
name: string;
|
|
224
|
+
/** Optional numeric value for leaf nodes */
|
|
225
|
+
value?: number;
|
|
226
|
+
/** Whether the node starts collapsed */
|
|
227
|
+
collapsed?: boolean;
|
|
228
|
+
/** Child nodes */
|
|
229
|
+
children?: TreeNode[];
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Tree protocol data — hierarchical data with nested nodes.
|
|
233
|
+
*/
|
|
234
|
+
export interface TreeDataPayload extends ProtocolDataBase {
|
|
235
|
+
protocolType: 'tree';
|
|
236
|
+
/** Single tree dataset */
|
|
237
|
+
dataset: {
|
|
238
|
+
/** Dataset identifier */
|
|
239
|
+
id: string;
|
|
240
|
+
/** Data shape discriminator */
|
|
241
|
+
shape: 'tree';
|
|
242
|
+
/** Root nodes of the tree (multiple roots supported) */
|
|
243
|
+
roots: TreeNode[];
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Network node used in NetworkDataPayload.
|
|
248
|
+
*/
|
|
249
|
+
export interface NetworkNode {
|
|
250
|
+
/** Node unique name / identifier */
|
|
251
|
+
name: string;
|
|
252
|
+
/** Optional numeric value for sizing */
|
|
253
|
+
value?: number;
|
|
254
|
+
/** Optional category index for grouping */
|
|
255
|
+
category?: number;
|
|
256
|
+
/** Optional symbol size */
|
|
257
|
+
symbolSize?: number;
|
|
258
|
+
/** Additional node properties */
|
|
259
|
+
[key: string]: unknown;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Network link (edge) used in NetworkDataPayload.
|
|
263
|
+
*/
|
|
264
|
+
export interface NetworkLink {
|
|
265
|
+
/** Source node name */
|
|
266
|
+
source: string;
|
|
267
|
+
/** Target node name */
|
|
268
|
+
target: string;
|
|
269
|
+
/** Optional link value for width weighting */
|
|
270
|
+
value?: number;
|
|
271
|
+
/** Additional link properties */
|
|
272
|
+
[key: string]: unknown;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Network protocol data — graph / relationship data with nodes and links.
|
|
276
|
+
*/
|
|
277
|
+
export interface NetworkDataPayload extends ProtocolDataBase {
|
|
278
|
+
protocolType: 'network';
|
|
279
|
+
/** Single network dataset */
|
|
280
|
+
dataset: {
|
|
281
|
+
/** Dataset identifier */
|
|
282
|
+
id: string;
|
|
283
|
+
/** Data shape discriminator */
|
|
284
|
+
shape: 'network';
|
|
285
|
+
/** Graph nodes */
|
|
286
|
+
nodes: NetworkNode[];
|
|
287
|
+
/** Graph edges / links */
|
|
288
|
+
links: NetworkLink[];
|
|
289
|
+
/** Optional category labels for node grouping */
|
|
290
|
+
categories?: Array<{
|
|
291
|
+
name: string;
|
|
292
|
+
}>;
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Geo protocol data — geographic data with regions, points, and lines.
|
|
297
|
+
*/
|
|
298
|
+
export interface GeoDataPayload extends ProtocolDataBase {
|
|
299
|
+
protocolType: 'geo';
|
|
300
|
+
/** Single geo dataset */
|
|
301
|
+
dataset: {
|
|
302
|
+
/** Dataset identifier */
|
|
303
|
+
id: string;
|
|
304
|
+
/** Data shape discriminator */
|
|
305
|
+
shape: 'geo';
|
|
306
|
+
/** ECharts map name (e.g. 'china', 'world') */
|
|
307
|
+
mapName?: string;
|
|
308
|
+
/** Point data for scatter overlay */
|
|
309
|
+
points?: unknown[];
|
|
310
|
+
/** Line data for connection overlay */
|
|
311
|
+
lines?: unknown[];
|
|
312
|
+
/** Region data with name-value pairs */
|
|
313
|
+
regions: Array<{
|
|
314
|
+
/** Region name matching map geography */
|
|
315
|
+
name: string;
|
|
316
|
+
/** Region numeric value for coloring */
|
|
317
|
+
value: number;
|
|
318
|
+
}>;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* 3D scene protocol data — data for echarts-gl 3D visualizations.
|
|
323
|
+
*/
|
|
324
|
+
export interface Scene3DDataPayload extends ProtocolDataBase {
|
|
325
|
+
protocolType: 'scene3D';
|
|
326
|
+
/** Single 3D scene dataset */
|
|
327
|
+
dataset: {
|
|
328
|
+
/** Dataset identifier */
|
|
329
|
+
id: string;
|
|
330
|
+
/** Data shape discriminator */
|
|
331
|
+
shape: 'scene3d';
|
|
332
|
+
/** Additional 3D-specific data properties */
|
|
333
|
+
[key: string]: unknown;
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Timeline protocol data — data with temporal ordering.
|
|
338
|
+
*/
|
|
339
|
+
export interface TimelineDataPayload extends ProtocolDataBase {
|
|
340
|
+
protocolType: 'timeline';
|
|
341
|
+
/** Single timeline dataset */
|
|
342
|
+
dataset: {
|
|
343
|
+
/** Dataset identifier */
|
|
344
|
+
id: string;
|
|
345
|
+
/** Data shape discriminator */
|
|
346
|
+
shape: 'timeline';
|
|
347
|
+
/** Additional timeline-specific data properties */
|
|
348
|
+
[key: string]: unknown;
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Transition protocol data — data for animated state transitions.
|
|
353
|
+
*/
|
|
354
|
+
export interface TransitionDataPayload extends ProtocolDataBase {
|
|
355
|
+
protocolType: 'transition';
|
|
356
|
+
/** Single transition dataset */
|
|
357
|
+
dataset: {
|
|
358
|
+
/** Dataset identifier */
|
|
359
|
+
id: string;
|
|
360
|
+
/** Data shape discriminator */
|
|
361
|
+
shape: 'transition';
|
|
362
|
+
/** Additional transition-specific data properties */
|
|
363
|
+
[key: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Graphic protocol data — custom graphic elements.
|
|
368
|
+
*/
|
|
369
|
+
export interface GraphicDataPayload extends ProtocolDataBase {
|
|
370
|
+
protocolType: 'graphic';
|
|
371
|
+
/** Single graphic dataset */
|
|
372
|
+
dataset: {
|
|
373
|
+
/** Dataset identifier */
|
|
374
|
+
id: string;
|
|
375
|
+
/** Data shape discriminator */
|
|
376
|
+
shape: 'graphic';
|
|
377
|
+
/** Custom graphic element descriptors */
|
|
378
|
+
elements: unknown[];
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Layout protocol data — grid / dashboard layout descriptors.
|
|
383
|
+
*/
|
|
384
|
+
export interface LayoutDataPayload extends ProtocolDataBase {
|
|
385
|
+
protocolType: 'layout';
|
|
386
|
+
/** Single layout dataset */
|
|
387
|
+
dataset: {
|
|
388
|
+
/** Dataset identifier */
|
|
389
|
+
id: string;
|
|
390
|
+
/** Data shape discriminator */
|
|
391
|
+
shape: 'layout';
|
|
392
|
+
/** Grid layout descriptors */
|
|
393
|
+
grids: unknown[];
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Composite protocol data — mixed / multi-chart composites.
|
|
398
|
+
*/
|
|
399
|
+
export interface CompositeDataPayload extends ProtocolDataBase {
|
|
400
|
+
protocolType: 'composite';
|
|
401
|
+
/** Single composite dataset */
|
|
402
|
+
dataset: {
|
|
403
|
+
/** Dataset identifier */
|
|
404
|
+
id: string;
|
|
405
|
+
/** Data shape discriminator */
|
|
406
|
+
shape: 'composite';
|
|
407
|
+
/** Additional composite-specific data properties */
|
|
408
|
+
[key: string]: unknown;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Config-only protocol data — charts that carry no external data
|
|
413
|
+
* (all data is embedded in the config option).
|
|
414
|
+
*/
|
|
415
|
+
export interface ConfigOnlyDataPayload extends ProtocolDataBase {
|
|
416
|
+
protocolType: 'configOnly';
|
|
417
|
+
/** Placeholder dataset with no actual data */
|
|
418
|
+
dataset: {
|
|
419
|
+
/** Shape discriminator indicating no data payload */
|
|
420
|
+
shape: 'none';
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Discriminated union of all 13 protocol data payloads.
|
|
425
|
+
* Use `payload.protocolType` to narrow to the specific type.
|
|
426
|
+
*/
|
|
427
|
+
export type ProtocolDataPayload = SeriesDataPayload | TableDataPayload | TupleDataPayload | TreeDataPayload | NetworkDataPayload | GeoDataPayload | Scene3DDataPayload | TimelineDataPayload | TransitionDataPayload | GraphicDataPayload | LayoutDataPayload | CompositeDataPayload | ConfigOnlyDataPayload;
|
|
428
|
+
/**
|
|
429
|
+
* Converter interface that transforms protocol payloads into ECharts options.
|
|
430
|
+
* Each protocol type should have its own implementation of this interface.
|
|
431
|
+
*/
|
|
432
|
+
export interface ProtocolConverter {
|
|
433
|
+
/**
|
|
434
|
+
* Build a complete ECharts option from the config payload.
|
|
435
|
+
* @param config - The protocol configuration describing chart structure
|
|
436
|
+
* @returns A fully-formed ECharts option ready for rendering
|
|
437
|
+
*/
|
|
438
|
+
buildOption(config: ProtocolConfigPayload): EChartsOption;
|
|
439
|
+
/**
|
|
440
|
+
* Merge data payload into an existing ECharts option without rebuilding it.
|
|
441
|
+
* @param option - The existing ECharts option to update
|
|
442
|
+
* @param data - The protocol data payload to merge
|
|
443
|
+
* @returns The updated ECharts option
|
|
444
|
+
*/
|
|
445
|
+
mergeData(option: EChartsOption, data: ProtocolDataPayload): EChartsOption;
|
|
446
|
+
}
|
|
447
|
+
export {};
|
package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ECharts runtime interaction helpers - shared readability defaults for workbench charts and recommendation previews.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-08-08
|
|
5
|
+
*/
|
|
6
|
+
import type { ECharts, EChartsOption } from 'echarts';
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether a pie data item is the internal transparent half-donut filler.
|
|
9
|
+
* @param value - Candidate ECharts data item.
|
|
10
|
+
* @returns True for display-only half-donut placeholders.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isWorkbenchHalfDonutPlaceholderData(value: unknown): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Applies workbench display defaults to all ECharts options before rendering.
|
|
15
|
+
* @param option - ECharts option from generated, materialized, or script renderers.
|
|
16
|
+
* @returns Option with generic readability safeguards.
|
|
17
|
+
*/
|
|
18
|
+
export declare function normalizeWorkbenchChartDisplayDefaults(option: EChartsOption): EChartsOption;
|
|
19
|
+
/**
|
|
20
|
+
* Binds generic donut hover behavior after the final runtime option is set.
|
|
21
|
+
* @param chart - Current ECharts instance.
|
|
22
|
+
* @param option - Final runtime ECharts option.
|
|
23
|
+
*/
|
|
24
|
+
export declare function bindWorkbenchEChartsRuntimeInteractions(chart: ECharts, option: EChartsOption): void;
|
|
25
|
+
/**
|
|
26
|
+
* Applies the shared workbench ECharts runtime option pipeline.
|
|
27
|
+
* @param option - Renderable ECharts option.
|
|
28
|
+
* @returns Option with readability and tooltip interaction defaults.
|
|
29
|
+
*/
|
|
30
|
+
export declare function prepareWorkbenchEChartsRuntimeOption<T extends EChartsOption>(option: T): T;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ECharts title helpers - hides inner chart titles already represented by card chrome.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-20
|
|
5
|
+
*/
|
|
6
|
+
import type { EChartsOption } from 'echarts';
|
|
7
|
+
/**
|
|
8
|
+
* Hides ECharts title entries when the outer card title is already present.
|
|
9
|
+
* @param option - ECharts option.
|
|
10
|
+
* @param cardTitle - Outer card title.
|
|
11
|
+
* @returns ECharts option with duplicated inner title hidden.
|
|
12
|
+
*/
|
|
13
|
+
export declare function hideDuplicateEchartsTitle<T extends EChartsOption | null>(option: T, cardTitle: string | undefined): T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ECharts tooltip bounds helpers - keeps chart tooltips readable without expanding page width.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-06-23
|
|
5
|
+
*/
|
|
6
|
+
import type { EChartsOption } from 'echarts';
|
|
7
|
+
/**
|
|
8
|
+
* Ensures chart HTML tooltips are appended to body instead of the chart container.
|
|
9
|
+
* @param option - ECharts option generated from a card renderer.
|
|
10
|
+
* @returns Option with tooltip portal defaults applied.
|
|
11
|
+
*/
|
|
12
|
+
export declare function withEchartsTooltipPortal<T extends EChartsOption>(option: T): T;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Chart renderer contracts - defines host-injected runtime APIs for reusable workbench chart components.
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-20
|
|
5
|
+
*/
|
|
6
|
+
import type { RoleId } from '../../types';
|
|
7
|
+
export interface WorkbenchChartRefreshContext {
|
|
8
|
+
data?: unknown;
|
|
9
|
+
meta?: Record<string, unknown>;
|
|
10
|
+
source?: unknown;
|
|
11
|
+
sourceType?: unknown;
|
|
12
|
+
suppressImageComposeAutoRefresh?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkbenchChartQueryScope {
|
|
15
|
+
userId: string;
|
|
16
|
+
roleId: RoleId | '';
|
|
17
|
+
conversationId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface WorkbenchChartQueryOptions {
|
|
20
|
+
businessWording?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface WorkbenchChartRefreshResult {
|
|
23
|
+
success: boolean;
|
|
24
|
+
rows?: Array<Record<string, unknown>>;
|
|
25
|
+
dataPayload?: unknown;
|
|
26
|
+
errorCode?: string;
|
|
27
|
+
errorMessage?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface WorkbenchChartRefreshClaim {
|
|
30
|
+
bindingId: string;
|
|
31
|
+
refreshApi: string;
|
|
32
|
+
renderer: string;
|
|
33
|
+
roleId: RoleId | '';
|
|
34
|
+
}
|
|
35
|
+
export interface WorkbenchChartRefreshRuntime {
|
|
36
|
+
conversationId?: string;
|
|
37
|
+
roleId?: RoleId | string;
|
|
38
|
+
userId?: string;
|
|
39
|
+
isImageComposeBackfillActive?: () => boolean;
|
|
40
|
+
refreshApi: (dataBinding: unknown) => string;
|
|
41
|
+
shouldAutoRefresh: (dataBinding: unknown, context: WorkbenchChartRefreshContext) => boolean;
|
|
42
|
+
claimAutoRefresh?: (claim: WorkbenchChartRefreshClaim) => boolean;
|
|
43
|
+
queryDataBinding: (scope: WorkbenchChartQueryScope, refreshApi: string, options?: WorkbenchChartQueryOptions) => Promise<WorkbenchChartRefreshResult>;
|
|
44
|
+
repairDataBindings?: (scope: Omit<WorkbenchChartQueryScope, 'conversationId'>, refreshApi: string, reason: unknown) => Promise<void>;
|
|
45
|
+
applyRefreshResult?: (result: WorkbenchChartRefreshResult) => void;
|
|
46
|
+
markRefreshStatus?: (bindingId: string, status: 'running' | 'ready' | 'error', message?: string) => void;
|
|
47
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import * as echarts from 'echarts';
|
|
3
|
+
import type { EChartsOption } from 'echarts';
|
|
4
|
+
import type { DisplayBlockData, EchartsScriptData } from '@fses/workbench-card/types';
|
|
5
|
+
export { normalizeChartRendererKey } from './chartRendererRegistry';
|
|
6
|
+
export declare function chartTheme(data: DisplayBlockData, option: EChartsOption | null): string;
|
|
7
|
+
export declare function optionFromWorkbenchData(rendererKey: string, data: DisplayBlockData): EChartsOption | null;
|
|
8
|
+
export declare function prepareWorkbenchChartOption(data: DisplayBlockData, option: EChartsOption | null): Promise<void>;
|
|
9
|
+
export declare function chartNarrative(data: DisplayBlockData): string;
|
|
10
|
+
export type WorkbenchEchartClickParams = {
|
|
11
|
+
componentType?: string;
|
|
12
|
+
seriesType?: string;
|
|
13
|
+
seriesName?: string;
|
|
14
|
+
name?: string | number;
|
|
15
|
+
value?: unknown;
|
|
16
|
+
data?: unknown;
|
|
17
|
+
dataIndex?: number;
|
|
18
|
+
event?: {
|
|
19
|
+
clientX?: number;
|
|
20
|
+
clientY?: number;
|
|
21
|
+
offsetX?: number;
|
|
22
|
+
offsetY?: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function useEchart(elementRef: Ref<HTMLElement | null>, optionRef: Ref<EChartsOption | null>, errorRef?: Ref<string>, themeRef?: Ref<string | undefined>, scriptRef?: Ref<EchartsScriptData | null>, onChartClick?: (params: WorkbenchEchartClickParams) => void): {
|
|
26
|
+
chartRef: import("vue").ShallowRef<echarts.ECharts, echarts.ECharts>;
|
|
27
|
+
resize: () => void;
|
|
28
|
+
dispose: () => void;
|
|
29
|
+
};
|