@blueking/bkflow-canvas-editor 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.cjs.js +1 -1
- package/dist/advanced.esm.js +1 -1
- package/dist/composable-D5aR8Rxu.cjs +1 -0
- package/dist/{composable-Bj2RyJCM.js → composable-DDDVgKK4.js} +28 -28
- package/dist/index.cjs.js +37 -37
- package/dist/index.d.ts +30 -9
- package/dist/index.esm.js +15628 -15334
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/composable-iHkGGq4L.cjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
4
4
|
import * as _blueking_flow_canvas from '@blueking/flow-canvas';
|
|
5
|
-
import { CanvasUiEvent, QuickAddConfig, FlowModel, FlowNodeModel, NodeActionsConfig, ConnectionValidator, CanvasPlugin, CommandEnvelope, CanvasSchema } from '@blueking/flow-canvas';
|
|
5
|
+
import { ZoomToFitOptions, CanvasUiEvent, QuickAddConfig, FlowModel, FlowNodeModel, NodeActionsConfig, ConnectionValidator, CanvasPlugin, CommandEnvelope, CanvasSchema } from '@blueking/flow-canvas';
|
|
6
6
|
export { InsertDirection, QuickAddConfig, QuickAddInsertDirectionResolver, QuickAddPortResolver } from '@blueking/flow-canvas';
|
|
7
7
|
|
|
8
8
|
type NodeExecutionStatus = 'CREATED' | 'RUNNING' | 'FINISHED' | 'FAILED' | 'SUSPENDED' | 'REVOKED';
|
|
@@ -604,11 +604,19 @@ interface CustomVariableType {
|
|
|
604
604
|
code: string;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
|
|
607
|
+
/** 画布视口相关方法,供 FlowView / FlowEdit 对外透传 */
|
|
608
|
+
interface CanvasViewportExpose {
|
|
609
|
+
zoomToFit: (options?: ZoomToFitOptions) => void;
|
|
610
|
+
centerContent: () => void;
|
|
611
|
+
getZoom: () => number;
|
|
612
|
+
}
|
|
613
|
+
interface FlowEditExpose extends CanvasViewportExpose {
|
|
608
614
|
isFlowEdited: boolean;
|
|
609
615
|
updateNodeInputParams: (inputParams: Record<string, PluginInputDataItem>) => void;
|
|
610
616
|
openGlobalVariables: () => void;
|
|
611
617
|
}
|
|
618
|
+
interface FlowViewExpose extends CanvasViewportExpose {
|
|
619
|
+
}
|
|
612
620
|
|
|
613
621
|
/**
|
|
614
622
|
* Flow API 配置接口
|
|
@@ -836,8 +844,8 @@ declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, v
|
|
|
836
844
|
approve: (nodeId: string) => any;
|
|
837
845
|
forceFail: (nodeId: string) => any;
|
|
838
846
|
gatewaySkip: (nodeId: string) => any;
|
|
839
|
-
back: () => any;
|
|
840
847
|
"ui-event": (event: CanvasUiEvent) => any;
|
|
848
|
+
back: () => any;
|
|
841
849
|
"node-click": (event: {
|
|
842
850
|
type: "node.click";
|
|
843
851
|
nodeId: string;
|
|
@@ -855,8 +863,8 @@ declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, v
|
|
|
855
863
|
onApprove?: ((nodeId: string) => any) | undefined;
|
|
856
864
|
onForceFail?: ((nodeId: string) => any) | undefined;
|
|
857
865
|
onGatewaySkip?: ((nodeId: string) => any) | undefined;
|
|
858
|
-
onBack?: (() => any) | undefined;
|
|
859
866
|
"onUi-event"?: ((event: CanvasUiEvent) => any) | undefined;
|
|
867
|
+
onBack?: (() => any) | undefined;
|
|
860
868
|
"onNode-click"?: ((event: {
|
|
861
869
|
type: "node.click";
|
|
862
870
|
nodeId: string;
|
|
@@ -1026,11 +1034,16 @@ type __VLS_Props$2 = {
|
|
|
1026
1034
|
bkflowSaasUrl?: string;
|
|
1027
1035
|
enableThirdPlugin?: boolean;
|
|
1028
1036
|
quickAdd?: QuickAddConfig;
|
|
1037
|
+
/** 是否隐藏基础信息中的触发器配置表单,默认 false */
|
|
1038
|
+
hideTrigger?: boolean;
|
|
1029
1039
|
};
|
|
1030
1040
|
declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$2, {
|
|
1031
1041
|
isFlowEdited: ComputedRef<FlowEditExpose["isFlowEdited"]>;
|
|
1032
1042
|
updateNodeInputParams: FlowEditExpose["updateNodeInputParams"];
|
|
1033
1043
|
openGlobalVariables: FlowEditExpose["openGlobalVariables"];
|
|
1044
|
+
zoomToFit: FlowEditExpose["zoomToFit"];
|
|
1045
|
+
centerContent: FlowEditExpose["centerContent"];
|
|
1046
|
+
getZoom: FlowEditExpose["getZoom"];
|
|
1034
1047
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
1035
1048
|
back: () => any;
|
|
1036
1049
|
save: (flowData: FlowTemplate) => any;
|
|
@@ -1045,6 +1058,7 @@ declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$2, {
|
|
|
1045
1058
|
onDebugBeforeClose?: (() => any) | undefined;
|
|
1046
1059
|
}>, {
|
|
1047
1060
|
quickAdd: QuickAddConfig;
|
|
1061
|
+
hideTrigger: boolean;
|
|
1048
1062
|
defaultZoom: number;
|
|
1049
1063
|
permissions: {
|
|
1050
1064
|
canSave?: boolean;
|
|
@@ -1105,15 +1119,22 @@ type __VLS_Props$1 = {
|
|
|
1105
1119
|
defaultZoom?: number;
|
|
1106
1120
|
bkflowSaasUrl?: string;
|
|
1107
1121
|
onExecuteSuccess?: (result: FlowTaskExecuteSuccessResult) => void;
|
|
1122
|
+
/** 是否隐藏基础信息中的触发器配置表单,默认 false */
|
|
1123
|
+
hideTrigger?: boolean;
|
|
1108
1124
|
};
|
|
1109
|
-
declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$1, {
|
|
1110
|
-
|
|
1125
|
+
declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$1, {
|
|
1126
|
+
zoomToFit: (options?: ZoomToFitOptions) => void;
|
|
1127
|
+
centerContent: () => void;
|
|
1128
|
+
getZoom: () => number;
|
|
1129
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
1111
1130
|
edit: () => any;
|
|
1131
|
+
back: () => any;
|
|
1112
1132
|
}, string, vue.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
1113
|
-
onBack?: (() => any) | undefined;
|
|
1114
1133
|
onEdit?: (() => any) | undefined;
|
|
1134
|
+
onBack?: (() => any) | undefined;
|
|
1115
1135
|
}>, {
|
|
1116
1136
|
thumbnail: boolean;
|
|
1137
|
+
hideTrigger: boolean;
|
|
1117
1138
|
defaultZoom: number;
|
|
1118
1139
|
permissions: {
|
|
1119
1140
|
canEdit?: boolean;
|
|
@@ -1297,8 +1318,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
1297
1318
|
}) => any) | undefined;
|
|
1298
1319
|
"onFormat-position"?: (() => any) | undefined;
|
|
1299
1320
|
}>, {
|
|
1300
|
-
mode: "edit" | "view";
|
|
1301
1321
|
thumbnail: boolean;
|
|
1322
|
+
mode: "edit" | "view";
|
|
1302
1323
|
nodeActions: NodeActionsConfig;
|
|
1303
1324
|
quickAdd: QuickAddConfig;
|
|
1304
1325
|
defaultZoom: number;
|
|
@@ -1376,4 +1397,4 @@ declare const _default: {
|
|
|
1376
1397
|
};
|
|
1377
1398
|
|
|
1378
1399
|
export { _default$1 as BkFlowCanvas, BkFlowModelAccessor, BkFlowNodeAccessor, _default$4 as FlowCreateTask, _default$6 as FlowDebug, _default$3 as FlowEdit, _default$5 as FlowExecute, _default$2 as FlowView, bkflowConnectionValidator, createBkflowPlugin, createBkflowSchema, createExecutionStatusPlugin, _default as default, exportToPipelineTree, generateId, getUniformApiPluginFormValue, getVariableDefaultConfig, importFromPipelineTree, provideFlowApiConfig, provideSelectPanelConfig, random4, resolveExecutionActions, useFlowApiConfig, useFlowEditApiConfig, useFlowViewApiConfig, useSelectPanelConfig, validatePipelineTree };
|
|
1379
|
-
export type { Activity, CreateFlowTaskResult, DndNodeItem, ExecuteFlowTaskResult, ExecutionNodeAction, FlowApiConfig, FlowEditExpose, FlowTaskExecuteSuccessResult, FlowTemplate, Gateway, GatewayCondition, NodeExecutionState, NodeExecutionStatus, NotifyConfig, PipelineTree, PluginDetailCommon, PluginInputDataItem, SelectPanelConfig, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };
|
|
1400
|
+
export type { Activity, CanvasViewportExpose, CreateFlowTaskResult, DndNodeItem, ExecuteFlowTaskResult, ExecutionNodeAction, FlowApiConfig, FlowEditExpose, FlowTaskExecuteSuccessResult, FlowTemplate, FlowViewExpose, Gateway, GatewayCondition, NodeExecutionState, NodeExecutionStatus, NotifyConfig, PipelineTree, PluginDetailCommon, PluginInputDataItem, SelectPanelConfig, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };
|