@blueking/bkflow-canvas-editor 0.0.19 → 0.0.21
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.cjs.js +2 -2
- package/dist/index.esm.js +15 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5664,23 +5664,25 @@ async function getThirdPartyPluginDetail(api, pluginCode, pluginVersion) {
|
|
|
5664
5664
|
async function getUniformApiPlugin(e, t) {
|
|
5665
5665
|
if (!e?.fetchPluginDetail)
|
|
5666
5666
|
throw new Error("fetchPluginDetail API is not available");
|
|
5667
|
-
const n = await e.fetchPluginDetail(t), { inputs: r, url: i, methods: y, group: g } = n;
|
|
5667
|
+
const n = await e.fetchPluginDetail(t), { inputs: r, url: i, methods: y, group: g, polling: k = {}, credential_key: $ = "" } = n;
|
|
5668
5668
|
return {
|
|
5669
5669
|
code: "uniform_api",
|
|
5670
5670
|
name: n.name,
|
|
5671
5671
|
desc: "",
|
|
5672
5672
|
version: "",
|
|
5673
5673
|
inputs: r,
|
|
5674
|
-
outputs: uniformApiCommonConfig.data.output.map((
|
|
5675
|
-
description:
|
|
5676
|
-
key:
|
|
5677
|
-
type:
|
|
5678
|
-
name:
|
|
5674
|
+
outputs: uniformApiCommonConfig.data.output.map((V) => ({
|
|
5675
|
+
description: V.schema.description,
|
|
5676
|
+
key: V.key,
|
|
5677
|
+
type: V.type,
|
|
5678
|
+
name: V.name
|
|
5679
5679
|
})),
|
|
5680
5680
|
inputParamsFormType: "uniformApiForm",
|
|
5681
5681
|
url: i,
|
|
5682
5682
|
group: g,
|
|
5683
5683
|
methods: y,
|
|
5684
|
+
polling: k,
|
|
5685
|
+
credential_key: $,
|
|
5684
5686
|
category: n.category,
|
|
5685
5687
|
uniformApiName: n.name
|
|
5686
5688
|
};
|
|
@@ -5740,7 +5742,7 @@ const getRenderFormInputItemDefaultValue = (e) => {
|
|
|
5740
5742
|
}, k.uniform_api_plugin_method = {
|
|
5741
5743
|
value: r && r.length > 0 ? r[0] : "",
|
|
5742
5744
|
hook: !1
|
|
5743
|
-
}, y && (k.uniform_api_plugin_polling = {
|
|
5745
|
+
}, y && Object.keys(y).length > 0 && (k.uniform_api_plugin_polling = {
|
|
5744
5746
|
value: y,
|
|
5745
5747
|
hook: !1
|
|
5746
5748
|
}), g && (k.uniform_api_plugin_credential_key = {
|
|
@@ -30348,7 +30350,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
30348
30350
|
pluginDetailLoading: L,
|
|
30349
30351
|
validate: async () => {
|
|
30350
30352
|
let de;
|
|
30351
|
-
!r.inputParams && $.value
|
|
30353
|
+
!r.inputParams && $.value ? de = $.value.validate : de = () => !0;
|
|
30352
30354
|
const [_e, $e] = await Promise.all([
|
|
30353
30355
|
k.value?.validate(),
|
|
30354
30356
|
de()
|
|
@@ -30441,7 +30443,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
30441
30443
|
]);
|
|
30442
30444
|
};
|
|
30443
30445
|
}
|
|
30444
|
-
}), NodeConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-
|
|
30446
|
+
}), NodeConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-5b11203e"]]), _hoisted_1$g = { class: "node-config-slider" }, _hoisted_2$c = {
|
|
30445
30447
|
key: 0,
|
|
30446
30448
|
class: "sideslider-footer-buttons"
|
|
30447
30449
|
}, _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -31440,7 +31442,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
31440
31442
|
component: {
|
|
31441
31443
|
code: "uniform_api",
|
|
31442
31444
|
data: {},
|
|
31443
|
-
version: wn,
|
|
31445
|
+
version: wn || "v2.0.0",
|
|
31444
31446
|
api_meta: {
|
|
31445
31447
|
id: Cn,
|
|
31446
31448
|
name: hn,
|
|
@@ -31751,7 +31753,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
31751
31753
|
}, null, 8, ["show", "flow-id", "actived", "bkflow-tag", "plugin-group-list"]))
|
|
31752
31754
|
]));
|
|
31753
31755
|
}
|
|
31754
|
-
}), FlowCanvas = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-
|
|
31756
|
+
}), FlowCanvas = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-200aa4e2"]]), _hoisted_1$3 = { class: "execute-flow-slider" }, _hoisted_2$3 = { class: "flow-name-wrapper" }, _hoisted_3$3 = { class: "form-params-wrapper" }, _hoisted_4$3 = {
|
|
31755
31757
|
key: 0,
|
|
31756
31758
|
class: "sideslider-footer-buttons"
|
|
31757
31759
|
}, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -32097,6 +32099,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
32097
32099
|
"system-variables": re.value,
|
|
32098
32100
|
"fetch-user-api": unref(i).fetchUserApi
|
|
32099
32101
|
}, null, 8, ["flow-data", "system-variables", "fetch-user-api"]),
|
|
32102
|
+
ae[5] || (ae[5] = createElementVNode("div", { class: "split-line" }, null, -1)),
|
|
32100
32103
|
e.showHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
32101
32104
|
createVNode(ue, {
|
|
32102
32105
|
theme: "primary",
|
|
@@ -32171,7 +32174,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
32171
32174
|
]), 1032, ["desc"]));
|
|
32172
32175
|
};
|
|
32173
32176
|
}
|
|
32174
|
-
}), view = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-
|
|
32177
|
+
}), view = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-6af582dd"]]), view$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32175
32178
|
__proto__: null,
|
|
32176
32179
|
default: view
|
|
32177
32180
|
}, 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 = {
|