@blueking/bkflow-canvas-editor 0.0.18 → 0.0.20

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.esm.js CHANGED
@@ -5733,38 +5733,44 @@ const getRenderFormInputItemDefaultValue = (e) => {
5733
5733
  }
5734
5734
  return t;
5735
5735
  }, getUniformApiPluginFormValue = (e) => "default" in e ? e.default : "", getPluginDefaultComponentData = (e, t) => {
5736
- const { url: n, methods: r, inputs: i } = t, y = {};
5737
- return e === "uniform_api" ? (y.uniform_api_plugin_url = {
5736
+ const { url: n, methods: r, inputs: i, polling: y, credential_key: g } = t, k = {};
5737
+ return e === "uniform_api" ? (k.uniform_api_plugin_url = {
5738
5738
  value: n || "",
5739
5739
  hook: !1
5740
- }, y.uniform_api_plugin_method = {
5740
+ }, k.uniform_api_plugin_method = {
5741
5741
  value: r && r.length > 0 ? r[0] : "",
5742
5742
  hook: !1
5743
- }, i.forEach((g) => {
5744
- y[g.key] = {
5745
- value: getUniformApiPluginFormValue(g),
5743
+ }, y && (k.uniform_api_plugin_polling = {
5744
+ value: y,
5745
+ hook: !1
5746
+ }), g && (k.uniform_api_plugin_credential_key = {
5747
+ value: g,
5748
+ hook: !1
5749
+ }), i.forEach(($) => {
5750
+ k[$.key] = {
5751
+ value: getUniformApiPluginFormValue($),
5746
5752
  need_render: !0,
5747
5753
  hook: !1
5748
5754
  };
5749
- })) : e === "remote_plugin" ? (y.plugin_code = {
5755
+ })) : e === "remote_plugin" ? (k.plugin_code = {
5750
5756
  value: t.code,
5751
5757
  hook: !1
5752
- }, y.plugin_version = {
5758
+ }, k.plugin_version = {
5753
5759
  value: t.version,
5754
5760
  hook: !1
5755
- }, t.inputParamsFormType === "renderform" ? i.forEach((g) => {
5756
- y[g.tag_code] = {
5757
- value: getRenderFormInputItemDefaultValue(g),
5761
+ }, t.inputParamsFormType === "renderform" ? i.forEach(($) => {
5762
+ k[$.tag_code] = {
5763
+ value: getRenderFormInputItemDefaultValue($),
5758
5764
  need_render: !0,
5759
5765
  hook: !1
5760
5766
  };
5761
- }) : t.inputParamsFormType) : e === "inner" && i.forEach((g) => {
5762
- y[g.tag_code] = {
5763
- value: getRenderFormInputItemDefaultValue(g),
5767
+ }) : t.inputParamsFormType) : e === "inner" && i.forEach(($) => {
5768
+ k[$.tag_code] = {
5769
+ value: getRenderFormInputItemDefaultValue($),
5764
5770
  need_render: !0,
5765
5771
  hook: !1
5766
5772
  };
5767
- }), y;
5773
+ }), k;
5768
5774
  }, getInputFormsFromConstants = async (e, t) => {
5769
5775
  if (!t || Object.keys(t).length === 0)
5770
5776
  return [];
@@ -30342,7 +30348,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
30342
30348
  pluginDetailLoading: L,
30343
30349
  validate: async () => {
30344
30350
  let de;
30345
- !r.inputParams && $.value, de = $.value.validate;
30351
+ !r.inputParams && $.value ? de = $.value.validate : de = () => !0;
30346
30352
  const [_e, $e] = await Promise.all([
30347
30353
  k.value?.validate(),
30348
30354
  de()
@@ -30435,7 +30441,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
30435
30441
  ]);
30436
30442
  };
30437
30443
  }
30438
- }), NodeConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-38936b96"]]), _hoisted_1$g = { class: "node-config-slider" }, _hoisted_2$c = {
30444
+ }), NodeConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-5b11203e"]]), _hoisted_1$g = { class: "node-config-slider" }, _hoisted_2$c = {
30439
30445
  key: 0,
30440
30446
  class: "sideslider-footer-buttons"
30441
30447
  }, _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -31628,7 +31634,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
31628
31634
  alias: Cn,
31629
31635
  meta_url: hn,
31630
31636
  api_key: jt = "incident",
31631
- version: vn = "",
31637
+ version: vn = "v2.0.0",
31632
31638
  category: Et,
31633
31639
  category_id: wn
31634
31640
  } = Ne;
@@ -31745,7 +31751,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
31745
31751
  }, null, 8, ["show", "flow-id", "actived", "bkflow-tag", "plugin-group-list"]))
31746
31752
  ]));
31747
31753
  }
31748
- }), FlowCanvas = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-10f7dadb"]]), _hoisted_1$3 = { class: "execute-flow-slider" }, _hoisted_2$3 = { class: "flow-name-wrapper" }, _hoisted_3$3 = { class: "form-params-wrapper" }, _hoisted_4$3 = {
31754
+ }), FlowCanvas = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-bfe93680"]]), _hoisted_1$3 = { class: "execute-flow-slider" }, _hoisted_2$3 = { class: "flow-name-wrapper" }, _hoisted_3$3 = { class: "form-params-wrapper" }, _hoisted_4$3 = {
31749
31755
  key: 0,
31750
31756
  class: "sideslider-footer-buttons"
31751
31757
  }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -32091,6 +32097,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
32091
32097
  "system-variables": re.value,
32092
32098
  "fetch-user-api": unref(i).fetchUserApi
32093
32099
  }, null, 8, ["flow-data", "system-variables", "fetch-user-api"]),
32100
+ ae[5] || (ae[5] = createElementVNode("div", { class: "split-line" }, null, -1)),
32094
32101
  e.showHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
32095
32102
  createVNode(ue, {
32096
32103
  theme: "primary",
@@ -32165,7 +32172,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
32165
32172
  ]), 1032, ["desc"]));
32166
32173
  };
32167
32174
  }
32168
- }), view = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-90c77f14"]]), view$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32175
+ }), view = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-6af582dd"]]), view$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32169
32176
  __proto__: null,
32170
32177
  default: view
32171
32178
  }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$1 = { class: "execute-flow-slider" }, _hoisted_2$1 = { class: "flow-name-wrapper" }, _hoisted_3$1 = { class: "form-params-wrapper" }, _hoisted_4$1 = {