@blueking/bkflow-canvas-editor 1.1.0-beta.6 → 1.1.0-beta.8

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as B, ref as C, computed as _, watch as q, nextTick as J, resolveComponent as N, openBlock as c, createElementBlock as p, createVNode as m, Fragment as W, renderList as Q, withKeys as X, withModifiers as Z, normalizeClass as R, createElementVNode as l, createBlock as D, createCommentVNode as E, toDisplayString as M, withCtx as y, createTextVNode as T, onBeforeUnmount as ee, resolveDirective as te, normalizeStyle as se, withDirectives as ae, unref as ne } from "vue";
2
- import { L as z, S as le, E as oe, _ as P, n as ue, D as U, C as ie, b as re } from "./index-C5lTl48-.js";
3
- import { a as G } from "./composable-DQzX4bmX.js";
1
+ import { defineComponent as B, ref as h, computed as _, watch as q, nextTick as J, resolveComponent as N, openBlock as c, createElementBlock as p, createVNode as m, Fragment as W, renderList as Q, withKeys as X, withModifiers as Z, normalizeClass as R, createElementVNode as l, createBlock as D, createCommentVNode as C, toDisplayString as M, withCtx as y, createTextVNode as T, onBeforeUnmount as ee, resolveDirective as te, normalizeStyle as se, withDirectives as ae, unref as ne } from "vue";
2
+ import { L as z, S as le, E as oe, _ as P, n as ue, D as U, C as re, b as ie } from "./index-DhEdmFv2.js";
3
+ import { a as G } from "./composable-Cf47ka9M.js";
4
4
  const de = { class: "debug-result-node-list" }, ce = ["data-node-id", "aria-selected", "onClick", "onKeydown"], me = ["title"], pe = {
5
5
  key: 0,
6
6
  class: "debug-result-node-list__mock",
@@ -16,7 +16,7 @@ const de = { class: "debug-result-node-list" }, ce = ["data-node-id", "aria-sele
16
16
  },
17
17
  emits: ["update:modelValue"],
18
18
  setup(a, { emit: u }) {
19
- const e = a, o = u, i = C(""), n = C("all"), v = C(null), b = [
19
+ const e = a, o = u, r = h(""), n = h("all"), v = h(null), b = [
20
20
  { value: "all", label: "全部" },
21
21
  { value: "finished", icon: "bkflow-canvas-dark-circle-checkbox", iconColor: "#2dcb56" },
22
22
  { value: "failed", icon: "bkflow-canvas-circle-alert-filled", iconColor: "#ea3636" },
@@ -26,32 +26,32 @@ const de = { class: "debug-result-node-list" }, ce = ["data-node-id", "aria-sele
26
26
  ], f = _(
27
27
  () => b.map((d) => ({
28
28
  ...d,
29
- count: d.value === "all" ? e.nodes.length : e.nodes.filter((r) => r.status === d.value).length
29
+ count: d.value === "all" ? e.nodes.length : e.nodes.filter((i) => i.status === d.value).length
30
30
  }))
31
31
  ), k = _(() => {
32
- const d = i.value.trim().toLowerCase();
33
- return e.nodes.filter((r) => n.value !== "all" && r.status !== n.value ? !1 : d ? r.name.toLowerCase().includes(d) || r.type.toLowerCase().includes(d) || (r.typeName ?? "").toLowerCase().includes(d) : !0);
32
+ const d = r.value.trim().toLowerCase();
33
+ return e.nodes.filter((i) => n.value !== "all" && i.status !== n.value ? !1 : d ? i.name.toLowerCase().includes(d) || i.type.toLowerCase().includes(d) || (i.typeName ?? "").toLowerCase().includes(d) : !0);
34
34
  }), x = {
35
35
  finished: "成功",
36
36
  failed: "失败",
37
37
  running: "正在调试",
38
38
  suspended: "挂起",
39
39
  skipped: "跳过"
40
- }, V = _(() => i.value.trim() ? "搜索结果为空" : n.value !== "all" ? `暂无${x[n.value]}状态节点` : "暂无节点"), $ = () => {
41
- i.value = "", n.value = "all";
40
+ }, V = _(() => r.value.trim() ? "搜索结果为空" : n.value !== "all" ? `暂无${x[n.value]}状态节点` : "暂无节点"), $ = () => {
41
+ r.value = "", n.value = "all";
42
42
  };
43
43
  return q(
44
44
  () => e.modelValue,
45
45
  async (d) => {
46
46
  if (!d) return;
47
- !k.value.some((t) => t.id === d) && e.nodes.some((t) => t.id === d) && (i.value = "", n.value = "all", await J()), v.value?.querySelector(`[data-node-id="${CSS.escape(d)}"]`)?.scrollIntoView({ block: "nearest" });
47
+ !k.value.some((t) => t.id === d) && e.nodes.some((t) => t.id === d) && (r.value = "", n.value = "all", await J()), v.value?.querySelector(`[data-node-id="${CSS.escape(d)}"]`)?.scrollIntoView({ block: "nearest" });
48
48
  }
49
- ), (d, r) => {
49
+ ), (d, i) => {
50
50
  const s = N("bk-input");
51
51
  return c(), p("aside", de, [
52
52
  m(s, {
53
- modelValue: i.value,
54
- "onUpdate:modelValue": r[0] || (r[0] = (t) => i.value = t),
53
+ modelValue: r.value,
54
+ "onUpdate:modelValue": i[0] || (i[0] = (t) => r.value = t),
55
55
  class: "debug-result-node-list__search",
56
56
  placeholder: "搜索节点名称 / 类型",
57
57
  type: "search",
@@ -60,7 +60,7 @@ const de = { class: "debug-result-node-list" }, ce = ["data-node-id", "aria-sele
60
60
  }, null, 8, ["modelValue"]),
61
61
  m(le, {
62
62
  modelValue: n.value,
63
- "onUpdate:modelValue": r[1] || (r[1] = (t) => n.value = t),
63
+ "onUpdate:modelValue": i[1] || (i[1] = (t) => n.value = t),
64
64
  class: "debug-result-node-list__filters",
65
65
  "data-test": "status-filters",
66
66
  items: f.value
@@ -104,13 +104,13 @@ const de = { class: "debug-result-node-list" }, ce = ["data-node-id", "aria-sele
104
104
  key: 1,
105
105
  class: R(t.icon),
106
106
  "data-test": "node-icon"
107
- }, null, 2)) : E("", !0)
107
+ }, null, 2)) : C("", !0)
108
108
  ], 2),
109
109
  l("span", {
110
110
  class: "debug-result-node-list__name",
111
111
  title: t.isConfigured ? `${t.name} ${t.typeName || t.type}` : t.name
112
112
  }, M(t.name), 9, me),
113
- t.isMock ? (c(), p("span", pe, "MOCK")) : E("", !0)
113
+ t.isMock ? (c(), p("span", pe, "MOCK")) : C("", !0)
114
114
  ], 42, ce))), 128))
115
115
  ], 512)) : (c(), p("div", _e, [
116
116
  m(oe, {
@@ -143,10 +143,10 @@ function ge(a) {
143
143
  const fe = { class: "debug-result-tabs" }, ye = {
144
144
  class: "debug-result-tabs__execution",
145
145
  "data-test": "tab-execution"
146
- }, ke = { class: "debug-result-tabs__row" }, we = { class: "value" }, xe = { class: "debug-result-tabs__row" }, he = { class: "value" }, Ce = {
146
+ }, ke = { class: "debug-result-tabs__row" }, we = { class: "value" }, xe = { class: "debug-result-tabs__row" }, Ee = { class: "value" }, he = {
147
147
  key: 0,
148
148
  class: "debug-result-tabs__row is-error"
149
- }, Ee = { class: "value" }, Ve = {
149
+ }, Ce = { class: "value" }, Ve = {
150
150
  key: 0,
151
151
  class: "debug-result-tabs__mock-banner",
152
152
  "data-test": "mock-banner"
@@ -168,7 +168,7 @@ const fe = { class: "debug-result-tabs" }, ye = {
168
168
  },
169
169
  emits: ["reEditMock", "runReal", "runMock"],
170
170
  setup(a, { emit: u }) {
171
- const e = a, o = u, i = C("execution"), n = {
171
+ const e = a, o = u, r = h("execution"), n = {
172
172
  not_run: "未调试",
173
173
  running: "正在调试",
174
174
  finished: "成功",
@@ -176,15 +176,15 @@ const fe = { class: "debug-result-tabs" }, ye = {
176
176
  suspended: "挂起",
177
177
  skipped: "跳过"
178
178
  }, v = _(() => n[e.result.execution.status] ?? e.result.execution.status), b = _(() => {
179
- const r = e.result.execution.durationMs;
180
- return r == null ? "--" : `${(r / 1e3).toFixed(1)}s`;
181
- }), f = _(() => ge(e.result.error || e.result.execution.errorDetail)), k = _(() => e.result.execution.status === "failed"), x = (r) => Object.entries(r ?? {}).map(([s, t]) => ({ key: s, name: s, value: t })), V = _(() => x(e.result.inputs)), $ = _(() => x(e.result.outputs)), d = _(() => e.result.logs == null ? "" : ue(e.result.logs));
182
- return (r, s) => {
179
+ const i = e.result.execution.durationMs;
180
+ return i == null ? "--" : `${(i / 1e3).toFixed(1)}s`;
181
+ }), f = _(() => ge(e.result.error || e.result.execution.errorDetail)), k = _(() => e.result.execution.status === "failed"), x = (i) => Object.entries(i ?? {}).map(([s, t]) => ({ key: s, name: s, value: t })), V = _(() => x(e.result.inputs)), $ = _(() => x(e.result.outputs)), d = _(() => e.result.logs == null ? "" : ue(e.result.logs));
182
+ return (i, s) => {
183
183
  const t = N("bk-tab-panel"), w = N("bk-button"), L = N("bk-tab");
184
184
  return c(), p("div", fe, [
185
185
  m(L, {
186
- active: i.value,
187
- "onUpdate:active": s[3] || (s[3] = (S) => i.value = S),
186
+ active: r.value,
187
+ "onUpdate:active": s[3] || (s[3] = (S) => r.value = S),
188
188
  type: "card-grid"
189
189
  }, {
190
190
  default: y(() => [
@@ -200,12 +200,12 @@ const fe = { class: "debug-result-tabs" }, ye = {
200
200
  ]),
201
201
  l("div", xe, [
202
202
  s[5] || (s[5] = l("span", { class: "label" }, "调试用时", -1)),
203
- l("span", he, M(b.value), 1)
203
+ l("span", Ee, M(b.value), 1)
204
204
  ]),
205
- f.value ? (c(), p("div", Ce, [
205
+ f.value ? (c(), p("div", he, [
206
206
  s[6] || (s[6] = l("span", { class: "label" }, "错误信息", -1)),
207
- l("span", Ee, M(f.value), 1)
208
- ])) : E("", !0)
207
+ l("span", Ce, M(f.value), 1)
208
+ ])) : C("", !0)
209
209
  ])
210
210
  ]),
211
211
  _: 1
@@ -218,7 +218,7 @@ const fe = { class: "debug-result-tabs" }, ye = {
218
218
  m(U, {
219
219
  rows: V.value,
220
220
  loading: e.result.loading,
221
- error: e.result.error,
221
+ error: e.result.detailError,
222
222
  "empty-text": "暂无输入参数"
223
223
  }, null, 8, ["rows", "loading", "error"])
224
224
  ]),
@@ -243,9 +243,9 @@ const fe = { class: "debug-result-tabs" }, ye = {
243
243
  ])]),
244
244
  _: 1
245
245
  })
246
- ])) : E("", !0),
246
+ ])) : C("", !0),
247
247
  k.value ? (c(), p("div", Se, [
248
- f.value ? (c(), p("p", Me, M(f.value), 1)) : E("", !0),
248
+ f.value ? (c(), p("p", Me, M(f.value), 1)) : C("", !0),
249
249
  l("p", Re, [
250
250
  s[11] || (s[11] = l("span", null, "该节点调试失败,可", -1)),
251
251
  m(w, {
@@ -276,8 +276,9 @@ const fe = { class: "debug-result-tabs" }, ye = {
276
276
  key: 2,
277
277
  rows: $.value,
278
278
  loading: e.result.loading,
279
+ error: e.result.detailError,
279
280
  "empty-text": "暂无输出结果"
280
- }, null, 8, ["rows", "loading"]))
281
+ }, null, 8, ["rows", "loading", "error"]))
281
282
  ]),
282
283
  _: 1
283
284
  }),
@@ -287,10 +288,10 @@ const fe = { class: "debug-result-tabs" }, ye = {
287
288
  }, {
288
289
  default: y(() => [
289
290
  l("div", $e, [
290
- m(ie, {
291
+ m(re, {
291
292
  "log-text": d.value,
292
293
  loading: e.result.loading,
293
- error: e.result.error
294
+ error: e.result.logError
294
295
  }, null, 8, ["log-text", "loading", "error"])
295
296
  ])
296
297
  ]),
@@ -302,7 +303,7 @@ const fe = { class: "debug-result-tabs" }, ye = {
302
303
  ]);
303
304
  };
304
305
  }
305
- }), Te = /* @__PURE__ */ P(Ne, [["__scopeId", "data-v-16a27efa"]]), Le = {
306
+ }), Te = /* @__PURE__ */ P(Ne, [["__scopeId", "data-v-99ed168c"]]), Le = {
306
307
  ExclusiveGateway: "bkflow-canvas-fenzhiwangguan",
307
308
  ParallelGateway: "bkflow-canvas-bingxingwangguan",
308
309
  ConditionalParallelGateway: "bkflow-canvas-tiaojianbingxingwangguan",
@@ -325,13 +326,13 @@ function Ge(a) {
325
326
  return G.bkflow;
326
327
  }
327
328
  function Ae(a, u) {
328
- const e = a?.location?.find((v) => v.id === u), o = e?.icon ?? "", i = a?.activities?.[u];
329
- if (i)
329
+ const e = a?.location?.find((v) => v.id === u), o = e?.icon ?? "", r = a?.activities?.[u];
330
+ if (r)
330
331
  return {
331
- name: !!i.component?.code ? i.name || e?.name || u : "节点未配置",
332
- type: i.type || "ServiceActivity",
333
- typeName: A[i.type] ?? "任务节点",
334
- icon: Ge(i)
332
+ name: !!r.component?.code ? r.name || e?.name || u : "节点未配置",
333
+ type: r.type || "ServiceActivity",
334
+ typeName: A[r.type] ?? "任务节点",
335
+ icon: Ge(r)
335
336
  };
336
337
  const n = a?.gateways?.[u];
337
338
  return n ? {
@@ -359,7 +360,7 @@ function Ae(a, u) {
359
360
  function Be(a, u, e = /* @__PURE__ */ new Set()) {
360
361
  const o = a?.activities;
361
362
  if (!o) return [];
362
- const i = new Map((u ?? []).map((n) => [n.node_id, n.status]));
363
+ const r = new Map((u ?? []).map((n) => [n.node_id, n.status]));
363
364
  return Object.values(o).map((n) => {
364
365
  const v = !!n.component?.code, b = Ae(a, n.id);
365
366
  return {
@@ -368,7 +369,7 @@ function Be(a, u, e = /* @__PURE__ */ new Set()) {
368
369
  type: b.type || n.type,
369
370
  typeName: b.typeName,
370
371
  icon: b.icon,
371
- status: i.get(n.id) ?? "not_run",
372
+ status: r.get(n.id) ?? "not_run",
372
373
  isMock: e.has(n.id),
373
374
  isConfigured: v
374
375
  };
@@ -392,28 +393,28 @@ const De = { class: "debug-result-drawer__header" }, Pe = { class: "debug-result
392
393
  },
393
394
  emits: ["update:open", "update:modelValue", "reEditMock", "runReal", "runMock"],
394
395
  setup(a, { emit: u }) {
395
- const e = a, o = u, i = C(!1), n = i, v = C(420), b = C(!1);
396
+ const e = a, o = u, r = h(!1), n = r, v = h(420), b = h(!1);
396
397
  let f = 0, k = 0, x = "", V = "";
397
398
  const $ = _(() => ({
398
399
  height: `${e.open ? v.value : je}px`
399
400
  })), d = () => {
400
401
  o("update:open", !e.open);
401
- }, r = (h) => {
402
- const g = k - (h.clientY - f);
402
+ }, i = (E) => {
403
+ const g = k - (E.clientY - f);
403
404
  v.value = Math.max(200, Math.min(window.innerHeight * 0.8, g));
404
405
  }, s = () => {
405
- document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", s), document.body.style.cursor = x, document.body.style.userSelect = V, b.value = !1;
406
- }, t = (h) => {
407
- h.preventDefault(), b.value = !0, f = h.clientY, k = v.value, x = document.body.style.cursor, V = document.body.style.userSelect, document.body.style.cursor = "ns-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", r), document.addEventListener("mouseup", s);
406
+ document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", s), document.body.style.cursor = x, document.body.style.userSelect = V, b.value = !1;
407
+ }, t = (E) => {
408
+ E.preventDefault(), b.value = !0, f = E.clientY, k = v.value, x = document.body.style.cursor, V = document.body.style.userSelect, document.body.style.cursor = "ns-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", i), document.addEventListener("mouseup", s);
408
409
  };
409
410
  ee(s);
410
411
  const w = _({
411
412
  get: () => e.modelValue,
412
- set: (h) => o("update:modelValue", h)
413
+ set: (E) => o("update:modelValue", E)
413
414
  }), L = _(
414
415
  () => Be(e.pipelineTree, e.context?.nodes, e.mockNodeIds)
415
416
  ), S = _(() => e.mockNodeIds.has(e.modelValue)), I = () => {
416
- e.hasGlobalRun && (i.value = !i.value);
417
+ e.hasGlobalRun && (r.value = !r.value);
417
418
  }, F = () => {
418
419
  e.modelValue && o("reEditMock", e.modelValue);
419
420
  }, O = () => {
@@ -421,7 +422,7 @@ const De = { class: "debug-result-drawer__header" }, Pe = { class: "debug-result
421
422
  }, j = () => {
422
423
  e.modelValue && o("runMock", e.modelValue);
423
424
  };
424
- return (h, g) => {
425
+ return (E, g) => {
425
426
  const H = N("bk-button"), Y = te("bk-tooltips");
426
427
  return c(), p("div", {
427
428
  class: R(["debug-result-drawer-wrapper", { "is-resizing": b.value }]),
@@ -431,7 +432,7 @@ const De = { class: "debug-result-drawer__header" }, Pe = { class: "debug-result
431
432
  key: 0,
432
433
  class: "debug-result-drawer__resize",
433
434
  onMousedown: t
434
- }, null, 32)) : E("", !0),
435
+ }, null, 32)) : C("", !0),
435
436
  l("section", {
436
437
  class: R(["debug-result-drawer", { "is-collapsed": !e.open }])
437
438
  }, [
@@ -468,12 +469,12 @@ const De = { class: "debug-result-drawer__header" }, Pe = { class: "debug-result
468
469
  ne(n) ? (c(), p("div", Ue, [
469
470
  g[4] || (g[4] = l("div", { class: "debug-result-drawer__params-title" }, "本次调试输入参数", -1)),
470
471
  l("div", Ie, [
471
- m(re, {
472
+ m(ie, {
472
473
  value: e.globalInputs ?? {},
473
474
  "default-expanded": !0
474
475
  }, null, 8, ["value"])
475
476
  ])
476
- ])) : E("", !0),
477
+ ])) : C("", !0),
477
478
  l("div", Fe, [
478
479
  m(be, {
479
480
  modelValue: w.value,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as $, ref as _, shallowRef as h, computed as V, watch as A, resolveComponent as C, resolveDirective as O, openBlock as c, createBlock as d, withCtx as m, withDirectives as P, createElementBlock as U, createElementVNode as F, unref as K, createCommentVNode as g, createVNode as x, createTextVNode as B } from "vue";
2
2
  import { cloneDeep as p } from "lodash";
3
- import { u as G, i as H, g as Y, B as z, R as J, E as M, _ as Q } from "./index-C5lTl48-.js";
3
+ import { u as G, i as H, g as Y, B as z, R as J, E as M, _ as Q } from "./index-DhEdmFv2.js";
4
4
  import "bkui-vue/lib/message";
5
5
  import "bkui-vue/lib/icon";
6
6
  import "monaco-editor";
@@ -0,0 +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-CC5gBhZo.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-8f1333c7"]]);exports.default=O;
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-BoQLjwKV.cjs"),o=require("./composable-D55LNZ1F.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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-CC5gBhZo.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.d.ts CHANGED
@@ -720,7 +720,7 @@ interface FlowDetailExpose extends CanvasViewportExpose {
720
720
  }
721
721
 
722
722
  type DebugContextStatus = 'idle' | 'running' | 'terminating';
723
- type DebugNodeStatus = 'not_run' | 'running' | 'finished' | 'failed' | 'suspended' | 'skipped';
723
+ type DebugNodeStatus = 'not_run' | 'running' | 'waiting' | 'paused' | 'finished' | 'failed' | 'suspended' | 'skipped';
724
724
  type DebugExecutionMode = 'real' | 'mock';
725
725
  interface DebugMissingVar {
726
726
  key: string;
@@ -728,7 +728,7 @@ interface DebugMissingVar {
728
728
  }
729
729
  type DebugRunMode = DebugExecutionMode | 'mixed';
730
730
  type DebugRunType = 'global' | 'step';
731
- type DebugRunStatus = 'running' | 'terminating' | 'finished' | 'failed' | 'revoked';
731
+ type DebugRunStatus = 'not_run' | 'running' | 'waiting' | 'paused' | 'terminating' | 'finished' | 'failed' | 'revoked';
732
732
  /** 运行级 / 节点级错误详情(last_error_detail、nodes[].error_detail)。 */
733
733
  interface DebugErrorFailure {
734
734
  message: string;
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
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-C5lTl48-.js";
2
- import { g as U, r as j } from "./composable-DQzX4bmX.js";
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-DhEdmFv2.js";
2
+ import { g as U, r as j } from "./composable-Cf47ka9M.js";
3
3
  import "lodash";
4
4
  export {
5
5
  s as BkFlowCanvas,