@blueking/bkflow-canvas-editor 1.2.0-beta.0 → 1.2.0-beta.1
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.d.ts +145 -5
- package/dist/advanced.esm.js +1 -1
- package/dist/{context-B9wWQx6k.cjs → context-Bj442dps.cjs} +1 -1
- package/dist/{context-CVSZiSc9.js → context-CdSU0w5S.js} +49 -21
- package/dist/{index-Ddt7hVPG.js → index-Bg_GQyNU.js} +1 -1
- package/dist/index-Bij1hZGP.js +56012 -0
- package/dist/{index-D_PNC9EL.cjs → index-BxGg3wAN.cjs} +1 -1
- package/dist/{index-C5XXJX1_.cjs → index-C98sai1H.cjs} +1 -1
- package/dist/{index-Ac8oJo2D.js → index-CFs7FBc2.js} +50 -48
- package/dist/index-DuddWhYg.cjs +93 -0
- package/dist/{index-GVGs8lwh.js → index-YTEMyQpg.js} +1 -1
- package/dist/{index-B0bs5G6n.cjs → index-uUrwPR1f.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +177 -5
- package/dist/index.esm.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-BUBxGOMp.cjs +0 -74
- package/dist/index-FsDBMpW4.js +0 -50941
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DuddWhYg.cjs");require("bkui-vue/lib/message");require("bkui-vue/lib/icon");require("monaco-editor");const N={string:"input",text:"input",textarea:"textarea",int:"input",integer:"input",number:"input",float:"input",json:"json",object:"json",array:"array",list:"array",select:"select",time:"timepicker",datetime:"timepicker"},h=l=>l.replace(/^\$\{(.+)\}$/,"$1"),g=l=>`\${${h(l)}}`;function F(l,c){const a=g(l.key),n=c?s.cloneDeep(c):{},d=l.custom_type??n.custom_type??N[l.type]??"input";return{...n,key:a,name:l.name??n.name??h(l.key),custom_type:d,desc:n.desc??"",index:n.index??0,show_type:"show",source_info:n.source_info??{},source_tag:n.source_tag??"",source_type:n.source_type??"custom",validation:n.validation??"",value:l.default??n.value,meta:{...n.meta??{},required:l.required??n.meta?.required??!1}}}function D(l,c={}){if(!l)return{};const a=l.constants;return a&&Object.keys(a).length>0?{...a}:Array.isArray(l.fields)&&l.fields.length>0?l.fields.reduce((n,d)=>{const r=g(d.key);return n[r]=F(d,c[r]),n},{}):{}}const j={class:"global-debug-input"},q={key:0,class:"global-debug-input__params","data-test":"input-params"},R={key:0},L=["title"],O={class:"col-value"},T={key:1,class:"global-debug-input__value"},I={key:1,class:"form-params-wrapper"},P={class:"sideslider-footer-buttons"},$=e.defineComponent({__name:"index",props:{show:{type:Boolean},schema:{},pipelineConstants:{default:()=>({})},initialValues:{default:()=>({})},pending:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["confirm","close","update:show"],setup(l,{emit:c}){const a=l,n=c,d=s.useFlowApiConfig(),r=e.ref({}),p=e.shallowRef([]),m=e.shallowRef([]),f=e.shallowRef(!1),y=e.ref(),v=e.ref(),k=e.computed(()=>p.value.filter(t=>s.isBuiltinUsageVariable(t))),V=e.computed(()=>k.value.length>0||m.value.length>0),b=e.computed(()=>[...p.value].sort((t,o)=>(t.index??0)-(o.index??0)).map(t=>{const o=Object.prototype.hasOwnProperty.call(r.value,t.key)?r.value[t.key]:t.value;return{key:t.key,name:t.name||t.key,value:o,display:s.formatDebugValue(o),isComplex:s.isComplexDebugValue(o)}}));e.watch(()=>a.show,t=>{t&&(r.value=s.cloneDeep(a.initialValues??{}),w())});const w=async()=>{const t=D(a.schema,a.pipelineConstants),o=Object.values(t).filter(i=>typeof i=="object"&&i!==null&&i.show_type==="show");if(p.value=o,a.readonly||Object.keys(t).length<1){m.value=[];return}f.value=!0;try{m.value=await s.getInputFormsFromConstants(d,t)}catch(i){console.error("Failed to build debug input forms from schema:",i),m.value=[]}finally{f.value=!1}},B=t=>{r.value={...r.value,...s.cloneDeep(t)}},C=async()=>{const[t,o]=await Promise.all([Promise.resolve(typeof v.value?.validate=="function"?v.value.validate():!0),Promise.resolve(typeof y.value?.validate=="function"?y.value.validate():!0)]);!t||!o||n("confirm",s.cloneDeep(r.value))},_=()=>{n("close"),n("update:show",!1)};return(t,o)=>{const i=e.resolveComponent("bk-button"),x=e.resolveComponent("bk-sideslider"),E=e.resolveDirective("bkloading");return e.openBlock(),e.createBlock(x,{title:"调试参数","is-show":a.show,width:960,"quick-close":!0,"esc-close":!1,onClosed:_},e.createSlots({default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",j,[a.readonly?(e.openBlock(),e.createElementBlock("table",q,[o[2]||(o[2]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"col-name"},"参数名"),e.createElementVNode("th",{class:"col-value"},"参数值")])],-1)),e.createElementVNode("tbody",null,[b.value.length===0?(e.openBlock(),e.createElementBlock("tr",R,[...o[1]||(o[1]=[e.createElementVNode("td",{class:"global-debug-input__empty",colspan:"2"},"暂无参数",-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,u=>(e.openBlock(),e.createElementBlock("tr",{key:u.key,"data-test":"input-row"},[e.createElementVNode("td",{class:"col-name",title:u.key},e.toDisplayString(u.name),9,L),e.createElementVNode("td",O,[u.isComplex?(e.openBlock(),e.createBlock(s.DebugJsonViewer,{key:0,value:u.value,"data-test":"json-viewer"},null,8,["value"])):(e.openBlock(),e.createElementBlock("pre",T,e.toDisplayString(u.display),1))])]))),128))])])):(e.openBlock(),e.createElementBlock("div",I,[k.value.length>0?(e.openBlock(),e.createBlock(e.unref(s.BuiltinVariableUsageForm),{key:0,ref_key:"builtinVariableFormRef",ref:v,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=u=>r.value=u),variables:k.value},null,8,["modelValue","variables"])):e.createCommentVNode("",!0),m.value.length>0?(e.openBlock(),e.createBlock(s.RenderForm,{key:1,ref_key:"renderFormRef",ref:y,scheme:m.value,editable:"","form-option":{showRequired:!0,showGroup:!0,showLabel:!1,showHook:!1,showDesc:!0,formEdit:!0},"form-data":r.value,onChange:B},null,8,["scheme","form-data"])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.EmptyException,{key:2,title:"暂无参数"}))]))])),[[E,{loading:f.value}]])]),_:2},[a.readonly?void 0:{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(i,{theme:"primary","data-test":"save-and-run",loading:a.pending,onClick:C},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" 保存并执行 ",-1)])]),_:1},8,["loading"]),e.createVNode(i,{disabled:a.pending,onClick:_},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode("取消",-1)])]),_:1},8,["disabled"])])]),key:"0"}]),1032,["is-show"])}}}),S=s._export_sfc($,[["__scopeId","data-v-01a33593"]]);exports.default=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M=require("bkui-vue/lib"),N=require("bkui-vue/lib/message"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M=require("bkui-vue/lib"),N=require("bkui-vue/lib/message"),s=require("./index-DuddWhYg.cjs"),O={key:0,class:"mock-data-sideslider__title-sep"},F=["title"],S={class:"mock-data-sideslider"},D={class:"mock-data-sideslider__footer"},j="当前节点的输出不支持mock,是否需要在调试时跳过当前节点?",q="跳过调试",Y=e.defineComponent({__name:"index",props:{show:{type:Boolean},node:{default:null},outputs:{default:()=>({})},pending:{type:Boolean,default:!1}},emits:["confirm","close","update:show"],setup(f,{emit:y}){const o=f,p=y,h=s.useFlowApiConfig(),k=e.ref(!1),u=e.shallowRef([]),d=e.ref({}),_=e.ref({}),m=e.ref(!1),b=e.computed(()=>m.value?j:"暂无输出结果"),C=e.computed(()=>m.value?q:"确定"),w=async()=>{if(o.node){k.value=!0,_.value={},m.value=!1;try{const t=await s.pluginDetailRequest(h,o.node.component);u.value=s.mergeOutputs(t.outputs??[]),m.value=s.hasOnlySystemOutputs(t.outputs);const n=o.outputs??{},a={};u.value.forEach(l=>{const c=Object.prototype.hasOwnProperty.call(n,l.key)?n[l.key]:l.type==="object"?{}:void 0,r=s.resolveMockFormControl(l);a[l.key]=r==="json-editor"||r==="data-table"?s.formatJsonFieldValue(c):c}),d.value=a}catch(t){console.error(t),u.value=[],d.value={},m.value=!1,N({theme:"error",message:"加载输出结果失败"})}finally{k.value=!1}}},g=()=>{const t={},n={};return u.value.forEach(a=>{const l=d.value[a.key],c=s.resolveMockFormControl(a);if(c==="json-editor"||c==="data-table"){const r=s.parseJsonFieldValue(l);if(!r.valid){t[a.key]=r.message;return}r.value!==void 0&&(n[a.key]=r.value);return}l!==void 0&&l!==""&&(n[a.key]=l)}),{errors:t,outputs:n}},x=t=>{M.InfoBox({title:"确认 Mock 输出?",content:"Mock 输出将覆盖当前输出结果,执行时跳过该节点并以 Mock 值替代实际输出",confirmText:"确定",cancelText:"取消",width:400,onConfirm:()=>{t()}})},V=()=>{if(m.value){p("confirm",{outputs:{}});return}const{errors:t,outputs:n}=g();_.value=t,!(Object.keys(t).length>0)&&x(()=>p("confirm",{outputs:n}))},v=()=>{p("close"),p("update:show",!1)};return e.watch(()=>[o.show,o.node?.id],([t])=>{t&&o.node&&(d.value=s.cloneDeep(o.outputs??{}),w())},{immediate:!0}),(t,n)=>{const a=e.resolveComponent("bk-form-item"),l=e.resolveComponent("bk-form"),c=e.resolveComponent("bk-exception"),r=e.resolveComponent("bk-button"),B=e.resolveComponent("bk-sideslider"),E=e.resolveDirective("bkloading");return e.openBlock(),e.createBlock(B,{"is-show":o.show,width:960,"quick-close":"","esc-close":!1,onClosed:v},{header:e.withCtx(()=>[n[0]||(n[0]=e.createElementVNode("span",{class:"mock-data-sideslider__title"},"Mock输出",-1)),o.node?.name?(e.openBlock(),e.createElementBlock("span",O,"-")):e.createCommentVNode("",!0),o.node?.name?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mock-data-sideslider__title-node",title:o.node.name},e.toDisplayString(o.node.name),9,F)):e.createCommentVNode("",!0)]),footer:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(r,{theme:"primary","data-test":"mock-confirm",loading:o.pending,onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.value),1)]),_:1},8,["loading"]),e.createVNode(r,{disabled:o.pending,onClick:v},{default:e.withCtx(()=>[...n[1]||(n[1]=[e.createTextVNode("取消",-1)])]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",S,[u.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(u.value,i=>(e.openBlock(),e.createBlock(a,{key:i.key,label:i.name||i.key},{default:e.withCtx(()=>[e.createVNode(s.MockFieldRenderer,{modelValue:d.value[i.key],"onUpdate:modelValue":T=>d.value[i.key]=T,field:i,error:_.value[i.key]},null,8,["modelValue","onUpdate:modelValue","field","error"])]),_:2},1032,["label"]))),128))]),_:1})):k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:1,class:"mock-data-sideslider__exception",scene:"part",type:"empty",title:b.value},null,8,["title"]))])),[[E,{loading:k.value}]])]),_:1},8,["is-show"])}}}),I=s._export_sfc(Y,[["__scopeId","data-v-c4e2476a"]]);exports.default=I;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as G, ref as S, computed as i, watch as K, nextTick as Q, resolveComponent as N, openBlock as f, createElementBlock as y, createVNode as p, Fragment as W, renderList as X, withKeys as Z, withModifiers as ee, normalizeClass as L, createElementVNode as o, createCommentVNode as F, toDisplayString as E, createSlots as Y, withCtx as k, createTextVNode as
|
|
2
|
-
import { L as ae, S as ne, E as ue, _ as j, e as ie, j as re, k as de, o as ce, t as pe, s as me, n as ve, l as J, C as be, q as fe } from "./index-
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as S, computed as i, watch as K, nextTick as Q, resolveComponent as N, openBlock as f, createElementBlock as y, createVNode as p, Fragment as W, renderList as X, withKeys as Z, withModifiers as ee, normalizeClass as L, createElementVNode as o, createCommentVNode as F, toDisplayString as E, createSlots as Y, withCtx as k, createTextVNode as A, onBeforeUnmount as te, resolveDirective as se, normalizeStyle as oe, withDirectives as le, createBlock as q } from "vue";
|
|
2
|
+
import { L as ae, S as ne, E as ue, _ as j, e as ie, j as re, k as de, o as ce, t as pe, s as me, n as ve, l as J, C as be, q as fe, v as ge } from "./index-Bij1hZGP.js";
|
|
3
|
+
const _e = { class: "debug-result-node-list" }, ke = ["data-node-id", "aria-selected", "onClick", "onKeydown"], ye = ["title"], we = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "debug-result-node-list__mock",
|
|
6
6
|
"data-test": "node-mock-flag"
|
|
7
|
-
},
|
|
7
|
+
}, xe = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "debug-result-node-list__empty"
|
|
10
|
-
},
|
|
10
|
+
}, he = /* @__PURE__ */ G({
|
|
11
11
|
__name: "node-list",
|
|
12
12
|
props: {
|
|
13
13
|
nodes: {},
|
|
@@ -92,7 +92,7 @@ const ge = { class: "debug-result-node-list" }, _e = ["data-node-id", "aria-sele
|
|
|
92
92
|
{ flush: "post" }
|
|
93
93
|
), (n, a) => {
|
|
94
94
|
const b = N("bk-input");
|
|
95
|
-
return f(), y("aside",
|
|
95
|
+
return f(), y("aside", _e, [
|
|
96
96
|
p(b, {
|
|
97
97
|
modelValue: r.value,
|
|
98
98
|
"onUpdate:modelValue": a[0] || (a[0] = (t) => r.value = t),
|
|
@@ -150,10 +150,10 @@ const ge = { class: "debug-result-node-list" }, _e = ["data-node-id", "aria-sele
|
|
|
150
150
|
o("span", {
|
|
151
151
|
class: "debug-result-node-list__name",
|
|
152
152
|
title: t.isConfigured ? `${t.name} ${t.typeName || t.type}` : t.name
|
|
153
|
-
}, E(t.name), 9,
|
|
154
|
-
t.isMock ? (f(), y("span",
|
|
155
|
-
], 42,
|
|
156
|
-
], 512)) : (f(), y("div",
|
|
153
|
+
}, E(t.name), 9, ye),
|
|
154
|
+
t.isMock ? (f(), y("span", we, "MOCK")) : F("", !0)
|
|
155
|
+
], 42, ke))), 128))
|
|
156
|
+
], 512)) : (f(), y("div", xe, [
|
|
157
157
|
p(ue, {
|
|
158
158
|
"is-search": !1,
|
|
159
159
|
title: $.value,
|
|
@@ -163,8 +163,8 @@ const ge = { class: "debug-result-node-list" }, _e = ["data-node-id", "aria-sele
|
|
|
163
163
|
]);
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
167
|
-
function
|
|
166
|
+
}), Ce = /* @__PURE__ */ j(he, [["__scopeId", "data-v-db0cb31c"]]);
|
|
167
|
+
function Re(c) {
|
|
168
168
|
if (c == null) return "";
|
|
169
169
|
if (typeof c == "string") return c;
|
|
170
170
|
if (typeof c == "object") {
|
|
@@ -181,22 +181,22 @@ function Ce(c) {
|
|
|
181
181
|
}
|
|
182
182
|
return String(c);
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const Ve = { class: "debug-result-tabs" }, Te = {
|
|
185
185
|
class: "debug-result-tabs__failed-actions",
|
|
186
186
|
"data-test": "output-error-actions"
|
|
187
|
-
},
|
|
187
|
+
}, Me = {
|
|
188
188
|
class: "debug-result-tabs__execution",
|
|
189
189
|
"data-test": "tab-execution"
|
|
190
|
-
},
|
|
190
|
+
}, Ee = { class: "debug-result-tabs__row" }, Se = { class: "value" }, Le = { class: "debug-result-tabs__row" }, $e = { class: "value" }, De = {
|
|
191
191
|
key: 0,
|
|
192
192
|
class: "debug-result-tabs__row is-error"
|
|
193
|
-
},
|
|
193
|
+
}, Ne = { class: "value" }, Ae = {
|
|
194
194
|
class: "debug-result-tabs__mock-hint",
|
|
195
195
|
"data-test": "mock-banner"
|
|
196
196
|
}, Be = {
|
|
197
197
|
class: "debug-result-tabs__logs",
|
|
198
198
|
"data-test": "tab-logs"
|
|
199
|
-
},
|
|
199
|
+
}, Ie = /* @__PURE__ */ G({
|
|
200
200
|
__name: "result-tabs",
|
|
201
201
|
props: {
|
|
202
202
|
result: {},
|
|
@@ -220,13 +220,13 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
220
220
|
suspended: "挂起",
|
|
221
221
|
skipped: "跳过",
|
|
222
222
|
revoked: "已终止"
|
|
223
|
-
}, x = i(() => m[e.result.execution.status] ?? e.result.execution.status), v = i(() => ie(e.result.execution.durationMs)), h = i(() =>
|
|
223
|
+
}, x = i(() => m[e.result.execution.status] ?? e.result.execution.status), v = i(() => ie(e.result.execution.durationMs)), h = i(() => Re(e.result.error || e.result.execution.errorDetail)), R = i(() => e.result.execution.status === "revoked"), C = i(() => re(e.result.execution.status)), $ = i(() => R.value ? "该节点调试已终止,可" : "该节点执行失败,可"), {
|
|
224
224
|
loading: D,
|
|
225
225
|
error: V,
|
|
226
226
|
visibleInputs: n,
|
|
227
227
|
visibleOutputs: a,
|
|
228
228
|
outputNameMap: b
|
|
229
|
-
} = de({ component: () => e.component }), t = i(() => e.result.loading || D.value), g = i(() => e.result.detailError || V.value),
|
|
229
|
+
} = de({ component: () => e.component }), t = i(() => e.result.loading || D.value), g = i(() => e.result.detailError || V.value), B = i(
|
|
230
230
|
() => n.value.filter(({ key: _ }) => Object.prototype.hasOwnProperty.call(e.result.inputs, _)).map(({ key: _, name: s }) => ({ key: _, name: s, value: e.result.inputs[_] }))
|
|
231
231
|
), I = i(
|
|
232
232
|
() => ce(
|
|
@@ -236,7 +236,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
236
236
|
), P = i(() => me(e.isMock, a.value)), z = i(() => e.result.logs == null ? "" : ve(e.result.logs));
|
|
237
237
|
return (_, s) => {
|
|
238
238
|
const d = N("bk-button"), u = N("bk-tab-panel"), H = N("bk-tab");
|
|
239
|
-
return f(), y("div",
|
|
239
|
+
return f(), y("div", Ve, [
|
|
240
240
|
p(H, {
|
|
241
241
|
active: r.value,
|
|
242
242
|
"onUpdate:active": s[3] || (s[3] = (T) => r.value = T),
|
|
@@ -248,18 +248,18 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
248
248
|
label: "执行信息"
|
|
249
249
|
}, {
|
|
250
250
|
default: k(() => [
|
|
251
|
-
o("div",
|
|
252
|
-
o("div",
|
|
251
|
+
o("div", Me, [
|
|
252
|
+
o("div", Ee, [
|
|
253
253
|
s[8] || (s[8] = o("span", { class: "label" }, "执行状态", -1)),
|
|
254
|
-
o("span",
|
|
254
|
+
o("span", Se, E(x.value), 1)
|
|
255
255
|
]),
|
|
256
|
-
o("div",
|
|
256
|
+
o("div", Le, [
|
|
257
257
|
s[9] || (s[9] = o("span", { class: "label" }, "调试用时", -1)),
|
|
258
|
-
o("span",
|
|
258
|
+
o("span", $e, E(v.value), 1)
|
|
259
259
|
]),
|
|
260
|
-
h.value ? (f(), y("div",
|
|
260
|
+
h.value ? (f(), y("div", De, [
|
|
261
261
|
s[10] || (s[10] = o("span", { class: "label" }, "错误信息", -1)),
|
|
262
|
-
o("span",
|
|
262
|
+
o("span", Ne, E(h.value), 1)
|
|
263
263
|
])) : F("", !0)
|
|
264
264
|
])
|
|
265
265
|
]),
|
|
@@ -271,7 +271,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
271
271
|
}, {
|
|
272
272
|
default: k(() => [
|
|
273
273
|
p(J, {
|
|
274
|
-
rows:
|
|
274
|
+
rows: B.value,
|
|
275
275
|
loading: t.value,
|
|
276
276
|
error: g.value,
|
|
277
277
|
"empty-text": "暂无输入参数"
|
|
@@ -293,7 +293,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
293
293
|
P.value ? {
|
|
294
294
|
name: "toolbar",
|
|
295
295
|
fn: k(() => [
|
|
296
|
-
o("div",
|
|
296
|
+
o("div", Ae, [
|
|
297
297
|
s[12] || (s[12] = o("i", {
|
|
298
298
|
class: "bkflow-canvas-icon bkflow-canvas-info debug-result-tabs__mock-info",
|
|
299
299
|
"aria-hidden": "true"
|
|
@@ -307,7 +307,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
307
307
|
onClick: s[2] || (s[2] = (T) => l("reEditMock"))
|
|
308
308
|
}, {
|
|
309
309
|
default: k(() => [...s[11] || (s[11] = [
|
|
310
|
-
|
|
310
|
+
A(" 重新编辑 ", -1)
|
|
311
311
|
])]),
|
|
312
312
|
_: 1
|
|
313
313
|
})
|
|
@@ -340,7 +340,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
340
340
|
C.value && e.canRunNodeDebug ? {
|
|
341
341
|
name: "setting",
|
|
342
342
|
fn: k(() => [
|
|
343
|
-
o("div",
|
|
343
|
+
o("div", Te, [
|
|
344
344
|
s[6] || (s[6] = o("i", { class: "bkflow-canvas-icon bkflow-canvas-alert" }, null, -1)),
|
|
345
345
|
o("span", null, E($.value), 1),
|
|
346
346
|
p(d, {
|
|
@@ -350,7 +350,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
350
350
|
onClick: s[0] || (s[0] = (T) => l("runReal"))
|
|
351
351
|
}, {
|
|
352
352
|
default: k(() => [...s[4] || (s[4] = [
|
|
353
|
-
|
|
353
|
+
A("重新调试", -1)
|
|
354
354
|
])]),
|
|
355
355
|
_: 1
|
|
356
356
|
}),
|
|
@@ -362,7 +362,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
362
362
|
onClick: s[1] || (s[1] = (T) => l("runMock"))
|
|
363
363
|
}, {
|
|
364
364
|
default: k(() => [...s[5] || (s[5] = [
|
|
365
|
-
|
|
365
|
+
A("Mock 输出", -1)
|
|
366
366
|
])]),
|
|
367
367
|
_: 1
|
|
368
368
|
})
|
|
@@ -374,11 +374,11 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
374
374
|
]);
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
}),
|
|
377
|
+
}), Pe = /* @__PURE__ */ j(Ie, [["__scopeId", "data-v-2a925689"]]), ze = { class: "debug-result-drawer__header" }, He = { class: "debug-result-drawer__header-left" }, Ue = { class: "debug-result-drawer__body" }, Oe = { class: "debug-result-drawer__content" }, Fe = { class: "debug-result-drawer__result" }, Ge = {
|
|
378
378
|
key: 1,
|
|
379
379
|
class: "debug-result-drawer__unselected",
|
|
380
380
|
"data-test": "node-unselected"
|
|
381
|
-
}, M = 44, O = 420,
|
|
381
|
+
}, M = 44, O = 420, Ke = /* @__PURE__ */ G({
|
|
382
382
|
__name: "index",
|
|
383
383
|
props: {
|
|
384
384
|
open: { type: Boolean },
|
|
@@ -425,7 +425,9 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
425
425
|
);
|
|
426
426
|
const t = i(
|
|
427
427
|
() => fe(e.pipelineTree, e.context?.nodes, e.mockNodeIds)
|
|
428
|
-
), g = i(() => e.mockNodeIds.has(e.modelValue)),
|
|
428
|
+
), g = i(() => e.mockNodeIds.has(e.modelValue)), B = i(
|
|
429
|
+
() => ge(e.pipelineTree?.activities?.[e.modelValue])
|
|
430
|
+
), I = i(() => {
|
|
429
431
|
const d = t.value.find((u) => u.id === e.modelValue);
|
|
430
432
|
return d?.type === "ServiceActivity" && d.isConfigured;
|
|
431
433
|
}), P = () => {
|
|
@@ -450,8 +452,8 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
450
452
|
o("section", {
|
|
451
453
|
class: L(["debug-result-drawer", { "is-collapsed": !e.open }])
|
|
452
454
|
}, [
|
|
453
|
-
o("header",
|
|
454
|
-
o("div",
|
|
455
|
+
o("header", ze, [
|
|
456
|
+
o("div", He, [
|
|
455
457
|
u[3] || (u[3] = o("span", { class: "debug-result-drawer__title" }, "调试结果", -1)),
|
|
456
458
|
u[4] || (u[4] = o("span", { class: "debug-result-drawer__divider" }, null, -1)),
|
|
457
459
|
le((f(), q(H, {
|
|
@@ -463,7 +465,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
463
465
|
}, {
|
|
464
466
|
default: k(() => [...u[2] || (u[2] = [
|
|
465
467
|
o("i", { class: "bkflow-canvas-icon bkflow-canvas-audit view-params-icon" }, null, -1),
|
|
466
|
-
|
|
468
|
+
A(" 查看参数 ", -1)
|
|
467
469
|
])]),
|
|
468
470
|
_: 1
|
|
469
471
|
}, 8, ["disabled", "loading"])), [
|
|
@@ -480,25 +482,25 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
480
482
|
}, null, 2)
|
|
481
483
|
])
|
|
482
484
|
]),
|
|
483
|
-
o("div",
|
|
484
|
-
o("div",
|
|
485
|
-
p(
|
|
485
|
+
o("div", Ue, [
|
|
486
|
+
o("div", Oe, [
|
|
487
|
+
p(Ce, {
|
|
486
488
|
modelValue: b.value,
|
|
487
489
|
"onUpdate:modelValue": u[0] || (u[0] = (U) => b.value = U),
|
|
488
490
|
nodes: t.value
|
|
489
491
|
}, null, 8, ["modelValue", "nodes"]),
|
|
490
|
-
o("div",
|
|
491
|
-
e.modelValue ? (f(), q(
|
|
492
|
+
o("div", Fe, [
|
|
493
|
+
e.modelValue ? (f(), q(Pe, {
|
|
492
494
|
key: 0,
|
|
493
495
|
result: e.result,
|
|
494
|
-
component:
|
|
496
|
+
component: B.value,
|
|
495
497
|
"is-mock": g.value,
|
|
496
498
|
"can-run-node-debug": I.value,
|
|
497
499
|
onReEditMock: z,
|
|
498
500
|
onRunReal: _,
|
|
499
501
|
onRunMock: s,
|
|
500
502
|
onLogsTabActive: u[1] || (u[1] = (U) => l("logsTabActive", U))
|
|
501
|
-
}, null, 8, ["result", "component", "is-mock", "can-run-node-debug"])) : (f(), y("div",
|
|
503
|
+
}, null, 8, ["result", "component", "is-mock", "can-run-node-debug"])) : (f(), y("div", Ge, " 请先选择节点查看调试详情 "))
|
|
502
504
|
])
|
|
503
505
|
])
|
|
504
506
|
])
|
|
@@ -506,7 +508,7 @@ const Re = { class: "debug-result-tabs" }, Ve = {
|
|
|
506
508
|
], 6);
|
|
507
509
|
};
|
|
508
510
|
}
|
|
509
|
-
}),
|
|
511
|
+
}), qe = /* @__PURE__ */ j(Ke, [["__scopeId", "data-v-1d34ca9a"]]);
|
|
510
512
|
export {
|
|
511
|
-
|
|
513
|
+
qe as default
|
|
512
514
|
};
|