@blueking/bkflow-canvas-editor 1.1.0-beta.8 → 1.1.0-beta.9
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/{index-Cr1IApLI.cjs → index-BUMqEAp_.cjs} +1 -1
- package/dist/index-CHDpGBhL.cjs +1 -0
- package/dist/{index-Z3twZd2j.js → index-DDcO09tO.js} +3 -3
- package/dist/{index-aTwexVNR.js → index-DRd1hJ7R.js} +2 -2
- package/dist/{index-CC5gBhZo.cjs → index-DY8COtuZ.cjs} +4 -4
- package/dist/{index-DhEdmFv2.js → index-Dl8vD9_A.js} +11 -10
- package/dist/{index-j1ZMdQyf.cjs → index-jvfjimMJ.cjs} +1 -1
- package/dist/{index-BL3fS0Jt.js → index-pO8VIoRB.js} +19 -19
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-D2oS_A8g.cjs +0 -1
|
@@ -4445,6 +4445,7 @@ const _hoisted_1$2d = { class: "editor-header" }, _sfc_main$1$ = /* @__PURE__ */
|
|
|
4445
4445
|
}), (le, ie) => {
|
|
4446
4446
|
const he = resolveComponent("bk-button"), ye = resolveComponent("bk-sideslider");
|
|
4447
4447
|
return openBlock(), createBlock(ye, {
|
|
4448
|
+
"ext-cls": "bkflow-global-variable-sideslider",
|
|
4448
4449
|
title: W.value,
|
|
4449
4450
|
"is-show": i.show,
|
|
4450
4451
|
width: 1080,
|
|
@@ -4552,7 +4553,7 @@ const _hoisted_1$2d = { class: "editor-header" }, _sfc_main$1$ = /* @__PURE__ */
|
|
|
4552
4553
|
]), 1032, ["title", "is-show"]);
|
|
4553
4554
|
};
|
|
4554
4555
|
}
|
|
4555
|
-
}), GlobalVariables = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["__scopeId", "data-v-
|
|
4556
|
+
}), GlobalVariables = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["__scopeId", "data-v-7687e00a"]]), _hoisted_1$21 = {
|
|
4556
4557
|
key: 0,
|
|
4557
4558
|
class: "desc"
|
|
4558
4559
|
}, _hoisted_2$1v = { class: "section-content" }, _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
@@ -27716,7 +27717,7 @@ const ElUpload = withInstall(upload_default), _hoisted_1$1x = { class: "tag-chec
|
|
|
27716
27717
|
}, 8, ["model"]);
|
|
27717
27718
|
};
|
|
27718
27719
|
}
|
|
27719
|
-
}), BuiltinVariableUsageForm = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-
|
|
27720
|
+
}), BuiltinVariableUsageForm = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-a642aa18"]]), BUILTIN_USAGE_COMPONENTS = {
|
|
27720
27721
|
input: BuiltinTextUsage,
|
|
27721
27722
|
textarea: BuiltinTextUsage,
|
|
27722
27723
|
select: BuiltinSelectUsage,
|
|
@@ -29218,7 +29219,7 @@ const _hoisted_1$10 = {
|
|
|
29218
29219
|
])) : createCommentVNode("", !0)
|
|
29219
29220
|
], 2));
|
|
29220
29221
|
}
|
|
29221
|
-
}), TaskNode = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-
|
|
29222
|
+
}), TaskNode = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-1107e7e6"]]), _hoisted_1$Z = { class: "bkflow-endpoint-node__label" }, _hoisted_2$K = {
|
|
29222
29223
|
key: 1,
|
|
29223
29224
|
class: "bkflow-endpoint-node__tooltip"
|
|
29224
29225
|
}, _hoisted_3$B = { class: "bkflow-endpoint-node__tooltip-content" }, _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
@@ -42144,7 +42145,7 @@ const _hoisted_1$m = { class: "execute-flow-slider" }, _hoisted_2$j = { class: "
|
|
|
42144
42145
|
}, 8, ["is-show"]);
|
|
42145
42146
|
};
|
|
42146
42147
|
}
|
|
42147
|
-
}), FlowCreateTask = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
42148
|
+
}), FlowCreateTask = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-aaca6c2f"]]), createTask = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42148
42149
|
__proto__: null,
|
|
42149
42150
|
default: FlowCreateTask
|
|
42150
42151
|
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$l = { class: "execute-flow-slider" }, _hoisted_2$i = { class: "flow-name-wrapper" }, _hoisted_3$g = { class: "form-params-wrapper" }, _hoisted_4$d = {
|
|
@@ -42473,7 +42474,7 @@ const _hoisted_1$m = { class: "execute-flow-slider" }, _hoisted_2$j = { class: "
|
|
|
42473
42474
|
}, 8, ["is-show"]);
|
|
42474
42475
|
};
|
|
42475
42476
|
}
|
|
42476
|
-
}), FlowDebug = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
42477
|
+
}), FlowDebug = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-f7045432"]]), debug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42477
42478
|
__proto__: null,
|
|
42478
42479
|
default: FlowDebug
|
|
42479
42480
|
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$k = { class: "mock-field-renderer" }, _hoisted_2$h = {
|
|
@@ -46222,7 +46223,7 @@ const _hoisted_1$2 = { class: "debug-trigger" }, _hoisted_2$2 = ["disabled", "ti
|
|
|
46222
46223
|
onClick: H[1] || (H[1] = (ee) => r("runMock"))
|
|
46223
46224
|
}, {
|
|
46224
46225
|
default: withCtx(() => [...H[11] || (H[11] = [
|
|
46225
|
-
createTextVNode(" Mock
|
|
46226
|
+
createTextVNode(" Mock输出 ", -1)
|
|
46226
46227
|
])]),
|
|
46227
46228
|
_: 1
|
|
46228
46229
|
}, 8, ["loading"]),
|
|
@@ -46233,7 +46234,7 @@ const _hoisted_1$2 = { class: "debug-trigger" }, _hoisted_2$2 = ["disabled", "ti
|
|
|
46233
46234
|
onClick: H[2] || (H[2] = (ee) => r("cancelMock"))
|
|
46234
46235
|
}, {
|
|
46235
46236
|
default: withCtx(() => [...H[12] || (H[12] = [
|
|
46236
|
-
createTextVNode(" 取消
|
|
46237
|
+
createTextVNode(" 取消Mock ", -1)
|
|
46237
46238
|
])]),
|
|
46238
46239
|
_: 1
|
|
46239
46240
|
}, 8, ["loading"])) : createCommentVNode("", !0),
|
|
@@ -46251,7 +46252,7 @@ const _hoisted_1$2 = { class: "debug-trigger" }, _hoisted_2$2 = ["disabled", "ti
|
|
|
46251
46252
|
]);
|
|
46252
46253
|
};
|
|
46253
46254
|
}
|
|
46254
|
-
}), NodeDebugConfig = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
46255
|
+
}), NodeDebugConfig = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d8f7e14d"]]);
|
|
46255
46256
|
function resolveNodeResultLocator(e, t) {
|
|
46256
46257
|
const n = e.nodes.find((r) => r.node_id === t);
|
|
46257
46258
|
return {
|
|
@@ -46472,8 +46473,8 @@ const _hoisted_1 = {
|
|
|
46472
46473
|
emits: ["save", "saveSuccess", "back", "createVariable"],
|
|
46473
46474
|
setup(e, { expose: t, emit: n }) {
|
|
46474
46475
|
const r = defineAsyncComponent(
|
|
46475
|
-
() => import("./index-
|
|
46476
|
-
), i = defineAsyncComponent(() => import("./index-
|
|
46476
|
+
() => import("./index-DRd1hJ7R.js")
|
|
46477
|
+
), i = defineAsyncComponent(() => import("./index-pO8VIoRB.js")), C = defineAsyncComponent(() => import("./index-DDcO09tO.js")), k = e, y = n, B = computed(() => ({
|
|
46477
46478
|
canEdit: k.permissions?.canEdit ?? !1,
|
|
46478
46479
|
canDebug: k.permissions?.canDebug ?? !1
|
|
46479
46480
|
})), L = "fetchFlowDetail" in k.apiConfig ? k.apiConfig : { ...k.apiConfig, enableThirdPlugin: k.enableThirdPlugin }, R = provideFlowApiConfig(L);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("bkui-vue/lib"),N=require("bkui-vue/lib/message"),E=require("lodash"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("bkui-vue/lib"),N=require("bkui-vue/lib/message"),E=require("lodash"),r=require("./index-DY8COtuZ.cjs"),F={key:0,class:"mock-data-sideslider__title-sep"},M=["title"],q={class:"mock-data-sideslider"},j={class:"mock-data-sideslider__footer"},D=e.defineComponent({__name:"index",props:{show:{type:Boolean},node:{default:null},outputs:{default:()=>({})},pending:{type:Boolean,default:!1}},emits:["confirm","close","update:show"],setup(v,{emit:f}){const t=v,p=f,y=r.useFlowApiConfig(),m=e.ref(!1),d=e.shallowRef([]),u=e.ref({}),k=e.ref({}),h=async()=>{if(t.node){m.value=!0,k.value={};try{const n=await r.pluginDetailRequest(y,t.node.component);d.value=r.mergeOutputs(n.outputs??[]);const o=t.outputs??{},s={};d.value.forEach(l=>{const c=Object.prototype.hasOwnProperty.call(o,l.key)?o[l.key]:l.type==="object"?{}:void 0,a=r.resolveMockFormControl(l);s[l.key]=a==="json-editor"||a==="data-table"?r.formatJsonFieldValue(c):c}),u.value=s}catch(n){console.error(n),d.value=[],u.value={},N({theme:"error",message:"加载输出参数失败"})}finally{m.value=!1}}},b=()=>{const n={},o={};return d.value.forEach(s=>{const l=u.value[s.key],c=r.resolveMockFormControl(s);if(c==="json-editor"||c==="data-table"){const a=r.parseJsonFieldValue(l);if(!a.valid){n[s.key]=a.message;return}a.value!==void 0&&(o[s.key]=a.value);return}l!==void 0&&l!==""&&(o[s.key]=l)}),{errors:n,outputs:o}},w=n=>{B.InfoBox({title:"确认 Mock 输出?",content:"Mock 输出将覆盖当前输出参数,执行时跳过该节点并以 Mock 值替代实际输出",confirmText:"确定",cancelText:"取消",width:400,onConfirm:()=>{n()}})},C=()=>{const{errors:n,outputs:o}=b();k.value=n,!(Object.keys(n).length>0)&&w(()=>p("confirm",{outputs:o}))},_=()=>{p("close"),p("update:show",!1)};return e.watch(()=>[t.show,t.node?.id],([n])=>{n&&t.node&&(u.value=E.cloneDeep(t.outputs??{}),h())},{immediate:!0}),(n,o)=>{const s=e.resolveComponent("bk-form-item"),l=e.resolveComponent("bk-form"),c=e.resolveComponent("bk-exception"),a=e.resolveComponent("bk-button"),g=e.resolveComponent("bk-sideslider"),x=e.resolveDirective("bkloading");return e.openBlock(),e.createBlock(g,{"is-show":t.show,width:640,"quick-close":"","esc-close":!1,onClosed:_},{header:e.withCtx(()=>[o[0]||(o[0]=e.createElementVNode("span",{class:"mock-data-sideslider__title"},"Mock输出",-1)),t.node?.name?(e.openBlock(),e.createElementBlock("span",F,"-")):e.createCommentVNode("",!0),t.node?.name?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mock-data-sideslider__title-node",title:t.node.name},e.toDisplayString(t.node.name),9,M)):e.createCommentVNode("",!0)]),footer:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(a,{theme:"primary","data-test":"mock-confirm",loading:t.pending,onClick:C},{default:e.withCtx(()=>[...o[1]||(o[1]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"]),e.createVNode(a,{disabled:t.pending,onClick:_},{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode("取消",-1)])]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",q,[d.value.length>0?(e.openBlock(),e.createBlock(l,{key:0,"form-type":"vertical","label-width":120,"data-test":"mock-outputs-form"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,i=>(e.openBlock(),e.createBlock(s,{key:i.key,label:i.name||i.key},{default:e.withCtx(()=>[e.createVNode(r.MockFieldRenderer,{modelValue:u.value[i.key],"onUpdate:modelValue":V=>u.value[i.key]=V,field:i,error:k.value[i.key]},null,8,["modelValue","onUpdate:modelValue","field","error"])]),_:2},1032,["label"]))),128))]),_:1})):m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:1,class:"mock-data-sideslider__exception",scene:"part",type:"empty",title:"暂无输出参数"}))])),[[x,{loading:m.value}]])]),_:1},8,["is-show"])}}}),O=r._export_sfc(D,[["__scopeId","data-v-bccecd7f"]]);exports.default=O;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as T, ref as y, shallowRef as q, watch as I, resolveComponent as m, resolveDirective as J, openBlock as l, createBlock as k, withCtx as
|
|
1
|
+
import { defineComponent as T, ref as y, shallowRef as q, watch as I, resolveComponent as m, resolveDirective as J, openBlock as l, createBlock as k, withCtx as i, withDirectives as U, createElementBlock as _, Fragment as z, renderList as A, createVNode as b, createCommentVNode as h, createElementVNode as w, createTextVNode as V, toDisplayString as L } from "vue";
|
|
2
2
|
import { InfoBox as P } from "bkui-vue/lib";
|
|
3
3
|
import S from "bkui-vue/lib/message";
|
|
4
4
|
import { cloneDeep as W } from "lodash";
|
|
5
|
-
import { u as G, M as H, p as K, m as Q, r as x, f as X, a as Y, _ as Z } from "./index-
|
|
5
|
+
import { u as G, M as H, p as K, m as Q, r as x, f as X, a as Y, _ as Z } from "./index-Dl8vD9_A.js";
|
|
6
6
|
const $ = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "mock-data-sideslider__title-sep"
|
|
@@ -80,8 +80,8 @@ const $ = {
|
|
|
80
80
|
"esc-close": !1,
|
|
81
81
|
onClosed: g
|
|
82
82
|
}, {
|
|
83
|
-
header:
|
|
84
|
-
e[0] || (e[0] = w("span", { class: "mock-data-sideslider__title" }, "Mock
|
|
83
|
+
header: i(() => [
|
|
84
|
+
e[0] || (e[0] = w("span", { class: "mock-data-sideslider__title" }, "Mock输出", -1)),
|
|
85
85
|
o.node?.name ? (l(), _("span", $, "-")) : h("", !0),
|
|
86
86
|
o.node?.name ? (l(), _("span", {
|
|
87
87
|
key: 1,
|
|
@@ -89,7 +89,7 @@ const $ = {
|
|
|
89
89
|
title: o.node.name
|
|
90
90
|
}, L(o.node.name), 9, ee)) : h("", !0)
|
|
91
91
|
]),
|
|
92
|
-
footer:
|
|
92
|
+
footer: i(() => [
|
|
93
93
|
w("div", te, [
|
|
94
94
|
b(n, {
|
|
95
95
|
theme: "primary",
|
|
@@ -97,7 +97,7 @@ const $ = {
|
|
|
97
97
|
loading: o.pending,
|
|
98
98
|
onClick: E
|
|
99
99
|
}, {
|
|
100
|
-
default:
|
|
100
|
+
default: i(() => [...e[1] || (e[1] = [
|
|
101
101
|
V(" 确定 ", -1)
|
|
102
102
|
])]),
|
|
103
103
|
_: 1
|
|
@@ -106,14 +106,14 @@ const $ = {
|
|
|
106
106
|
disabled: o.pending,
|
|
107
107
|
onClick: g
|
|
108
108
|
}, {
|
|
109
|
-
default:
|
|
109
|
+
default: i(() => [...e[2] || (e[2] = [
|
|
110
110
|
V("取消", -1)
|
|
111
111
|
])]),
|
|
112
112
|
_: 1
|
|
113
113
|
}, 8, ["disabled"])
|
|
114
114
|
])
|
|
115
115
|
]),
|
|
116
|
-
default:
|
|
116
|
+
default: i(() => [
|
|
117
117
|
U((l(), _("div", oe, [
|
|
118
118
|
d.value.length > 0 ? (l(), k(s, {
|
|
119
119
|
key: 0,
|
|
@@ -121,17 +121,17 @@ const $ = {
|
|
|
121
121
|
"label-width": 120,
|
|
122
122
|
"data-test": "mock-outputs-form"
|
|
123
123
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
(l(!0), _(z, null, A(d.value, (
|
|
126
|
-
key:
|
|
127
|
-
label:
|
|
124
|
+
default: i(() => [
|
|
125
|
+
(l(!0), _(z, null, A(d.value, (c) => (l(), k(a, {
|
|
126
|
+
key: c.key,
|
|
127
|
+
label: c.name || c.key
|
|
128
128
|
}, {
|
|
129
|
-
default:
|
|
129
|
+
default: i(() => [
|
|
130
130
|
b(H, {
|
|
131
|
-
modelValue: u.value[
|
|
132
|
-
"onUpdate:modelValue": (R) => u.value[
|
|
133
|
-
field:
|
|
134
|
-
error: v.value[
|
|
131
|
+
modelValue: u.value[c.key],
|
|
132
|
+
"onUpdate:modelValue": (R) => u.value[c.key] = R,
|
|
133
|
+
field: c,
|
|
134
|
+
error: v.value[c.key]
|
|
135
135
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "field", "error"])
|
|
136
136
|
]),
|
|
137
137
|
_: 2
|
|
@@ -153,7 +153,7 @@ const $ = {
|
|
|
153
153
|
}, 8, ["is-show"]);
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
}),
|
|
156
|
+
}), ie = /* @__PURE__ */ Z(se, [["__scopeId", "data-v-bccecd7f"]]);
|
|
157
157
|
export {
|
|
158
|
-
|
|
158
|
+
ie as default
|
|
159
159
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-DY8COtuZ.cjs"),o=require("./composable-YlUVct40.cjs");require("lodash");exports.BkFlowCanvas=e.BkFlowCanvas;exports.BkFlowModelAccessor=e.BkFlowModelAccessor;exports.BkFlowNodeAccessor=e.BkFlowNodeAccessor;exports.FlowCreateTask=e.FlowCreateTask;exports.FlowDebug=e.FlowDebug;exports.FlowDetail=e.index;exports.FlowEdit=e.edit;exports.FlowExecute=e.execute;exports.FlowMockDebug=e.mock;exports.FlowView=e.view;exports.bkflowConnectionValidator=e.bkflowConnectionValidator;exports.createBkflowPlugin=e.createBkflowPlugin;exports.createBkflowSchema=e.createBkflowSchema;exports.createExecutionStatusPlugin=e.createExecutionStatusPlugin;exports.default=e.index$1;exports.exportToPipelineTree=e.exportToPipelineTree;exports.getUniformApiPluginFormValue=e.getUniformApiPluginFormValue;exports.getVariableDefaultConfig=e.getVariableDefaultConfig;exports.importFromPipelineTree=e.importFromPipelineTree;exports.isMockableNode=e.isMockableNode;exports.mergeOutputs=e.mergeOutputs;exports.normalizePluginOutputItems=e.normalizePluginOutputItems;exports.provideFlowApiConfig=e.provideFlowApiConfig;exports.provideMemberSelectorConfig=e.provideMemberSelectorConfig;exports.provideSelectPanelConfig=e.provideSelectPanelConfig;exports.resolveExecutionActions=e.resolveExecutionActions;exports.resolveMockFormControl=e.resolveMockFormControl;exports.useFlowApiConfig=e.useFlowApiConfig;exports.useFlowEditApiConfig=e.useFlowEditApiConfig;exports.useFlowViewApiConfig=e.useFlowViewApiConfig;exports.useMemberSelectorConfig=e.useMemberSelectorConfig;exports.useSelectPanelConfig=e.useSelectPanelConfig;exports.validatePipelineTree=e.validatePipelineTree;exports.generateId=o.generateId;exports.random4=o.random4;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as s, d as i, e as l, F as r, h as t, j as n, k as u, l as c, o as g, v as w, q as p, s as F, t as f, w as m, x as d, y as C, z as k, A as P, G as A, H as v, m as b, I as x, J as M, K as S, N as T, O as V, r as B, u as E, P as D, Q as I, T as N, U as O, V as h } from "./index-
|
|
1
|
+
import { c as s, d as i, e as l, F as r, h as t, j as n, k as u, l as c, o as g, v as w, q as p, s as F, t as f, w as m, x as d, y as C, z as k, A as P, G as A, H as v, m as b, I as x, J as M, K as S, N as T, O as V, r as B, u as E, P as D, Q as I, T as N, U as O, V as h } from "./index-Dl8vD9_A.js";
|
|
2
2
|
import { g as U, r as j } from "./composable-Cf47ka9M.js";
|
|
3
3
|
import "lodash";
|
|
4
4
|
export {
|