@blueking/bkflow-canvas-editor 1.0.10 → 1.0.12
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/README.md +6 -0
- package/dist/advanced.d.ts +10 -12
- package/dist/index.cjs.js +21 -21
- package/dist/index.d.ts +40 -21
- package/dist/index.esm.js +4897 -4861
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -641,6 +641,14 @@ interface DrawPipelineParams {
|
|
|
641
641
|
gateway_size?: [number, number];
|
|
642
642
|
start?: [number, number];
|
|
643
643
|
}
|
|
644
|
+
interface CreateFlowTaskParams {
|
|
645
|
+
template_id: number;
|
|
646
|
+
name: string;
|
|
647
|
+
creator: string;
|
|
648
|
+
constants: Record<string, any>;
|
|
649
|
+
label_ids?: number[];
|
|
650
|
+
[key: string]: unknown;
|
|
651
|
+
}
|
|
644
652
|
interface CreateFlowTaskResult {
|
|
645
653
|
data: {
|
|
646
654
|
id: number;
|
|
@@ -697,12 +705,7 @@ interface FlowViewApiConfig {
|
|
|
697
705
|
data: any[];
|
|
698
706
|
};
|
|
699
707
|
}>;
|
|
700
|
-
createFlowTask?: (params:
|
|
701
|
-
template_id: number;
|
|
702
|
-
name: string;
|
|
703
|
-
creator: string;
|
|
704
|
-
constants: Record<string, any>;
|
|
705
|
-
}) => Promise<CreateFlowTaskResult>;
|
|
708
|
+
createFlowTask?: (params: CreateFlowTaskParams) => Promise<CreateFlowTaskResult>;
|
|
706
709
|
executeFlowTask?: (params: {
|
|
707
710
|
task_id: number;
|
|
708
711
|
action: string;
|
|
@@ -747,12 +750,7 @@ interface FlowEditApiConfig extends FlowViewApiConfig {
|
|
|
747
750
|
drawPipeline?: (params: DrawPipelineParams) => Promise<{
|
|
748
751
|
pipeline_tree: PipelineTree;
|
|
749
752
|
}>;
|
|
750
|
-
createFlowTask?: (params:
|
|
751
|
-
template_id: number;
|
|
752
|
-
name: string;
|
|
753
|
-
creator: string;
|
|
754
|
-
constants: Record<string, any>;
|
|
755
|
-
}) => Promise<CreateFlowTaskResult>;
|
|
753
|
+
createFlowTask?: (params: CreateFlowTaskParams) => Promise<CreateFlowTaskResult>;
|
|
756
754
|
executeFlowTask?: (params: {
|
|
757
755
|
task_id: number;
|
|
758
756
|
action: string;
|
|
@@ -784,10 +782,10 @@ declare var __VLS_65: {
|
|
|
784
782
|
};
|
|
785
783
|
variablesValue: Record<string, any>;
|
|
786
784
|
};
|
|
787
|
-
type __VLS_Slots$
|
|
785
|
+
type __VLS_Slots$5 = {} & {
|
|
788
786
|
'custom-form-content'?: (props: typeof __VLS_65) => any;
|
|
789
787
|
};
|
|
790
|
-
declare const __VLS_base$
|
|
788
|
+
declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$5, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
791
789
|
close: (...args: any[]) => void;
|
|
792
790
|
"update:show": (...args: any[]) => void;
|
|
793
791
|
confirm: (...args: any[]) => void;
|
|
@@ -803,10 +801,10 @@ declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$5, {}, {}, {}, {}, v
|
|
|
803
801
|
enableVersion: boolean;
|
|
804
802
|
useCustomConfirm: boolean;
|
|
805
803
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
806
|
-
declare const __VLS_export$5: __VLS_WithSlots$
|
|
804
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
807
805
|
declare const _default$6: typeof __VLS_export$5;
|
|
808
806
|
|
|
809
|
-
type __VLS_WithSlots$
|
|
807
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
810
808
|
new (): {
|
|
811
809
|
$slots: S;
|
|
812
810
|
};
|
|
@@ -818,7 +816,7 @@ declare namespace __debug_vue {
|
|
|
818
816
|
};
|
|
819
817
|
}
|
|
820
818
|
|
|
821
|
-
type __VLS_Slots$
|
|
819
|
+
type __VLS_Slots$4 = {
|
|
822
820
|
header?: () => any;
|
|
823
821
|
extend?: () => any;
|
|
824
822
|
};
|
|
@@ -831,7 +829,7 @@ type __VLS_Props$4 = {
|
|
|
831
829
|
showHeader?: boolean;
|
|
832
830
|
onBack?: () => void;
|
|
833
831
|
};
|
|
834
|
-
declare const __VLS_base$
|
|
832
|
+
declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
835
833
|
retry: (nodeId: string) => any;
|
|
836
834
|
skip: (nodeId: string) => any;
|
|
837
835
|
resume: (nodeId: string) => any;
|
|
@@ -874,10 +872,10 @@ declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, v
|
|
|
874
872
|
defaultZoom: number;
|
|
875
873
|
nodeStates: TaskExecutionStates;
|
|
876
874
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
877
|
-
declare const __VLS_export$4: __VLS_WithSlots$
|
|
875
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
878
876
|
declare const _default$5: typeof __VLS_export$4;
|
|
879
877
|
|
|
880
|
-
type __VLS_WithSlots$
|
|
878
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
881
879
|
new (): {
|
|
882
880
|
$slots: S;
|
|
883
881
|
};
|
|
@@ -889,6 +887,14 @@ declare namespace __execute_vue {
|
|
|
889
887
|
};
|
|
890
888
|
}
|
|
891
889
|
|
|
890
|
+
type __VLS_Slots$3 = {
|
|
891
|
+
customFormContent?: (props: {
|
|
892
|
+
customFormData: Record<string, any>;
|
|
893
|
+
additionalTaskParams: Record<string, any>;
|
|
894
|
+
updateCustomFormData: (data: Record<string, any>) => void;
|
|
895
|
+
updateAdditionalTaskParams: (params: Record<string, any>) => void;
|
|
896
|
+
}) => any;
|
|
897
|
+
};
|
|
892
898
|
type __VLS_Props$3 = {
|
|
893
899
|
flowId: string;
|
|
894
900
|
show: boolean;
|
|
@@ -898,7 +904,7 @@ type __VLS_Props$3 = {
|
|
|
898
904
|
onExecuteSuccess?: (result: FlowTaskExecuteSuccessResult) => void;
|
|
899
905
|
bkflowSaasUrl?: string;
|
|
900
906
|
};
|
|
901
|
-
declare const
|
|
907
|
+
declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$3, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
902
908
|
close: (...args: any[]) => void;
|
|
903
909
|
"update:show": (...args: any[]) => void;
|
|
904
910
|
confirm: (...args: any[]) => void;
|
|
@@ -914,8 +920,15 @@ declare const __VLS_export$3: vue.DefineComponent<__VLS_Props$3, {}, {}, {}, {},
|
|
|
914
920
|
editable: boolean;
|
|
915
921
|
showFlowEntry: boolean;
|
|
916
922
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
923
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
917
924
|
declare const _default$4: typeof __VLS_export$3;
|
|
918
925
|
|
|
926
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
927
|
+
new (): {
|
|
928
|
+
$slots: S;
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
|
|
919
932
|
declare namespace __create_task_vue {
|
|
920
933
|
export {
|
|
921
934
|
_default$4 as default,
|
|
@@ -1069,6 +1082,12 @@ type __VLS_Slots$1 = {
|
|
|
1069
1082
|
}[];
|
|
1070
1083
|
updateInputParams: (data: Record<string, any>) => void;
|
|
1071
1084
|
}) => any;
|
|
1085
|
+
customFormContent?: (props: {
|
|
1086
|
+
customFormData: Record<string, any>;
|
|
1087
|
+
additionalTaskParams: Record<string, any>;
|
|
1088
|
+
updateCustomFormData: (data: Record<string, any>) => void;
|
|
1089
|
+
updateAdditionalTaskParams: (params: Record<string, any>) => void;
|
|
1090
|
+
}) => any;
|
|
1072
1091
|
};
|
|
1073
1092
|
type __VLS_Props$1 = {
|
|
1074
1093
|
flowId: string;
|