@kong-ui-public/entities-plugins 9.87.5 → 9.87.6
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/entities-plugins.es.js +41 -37
- package/dist/entities-plugins.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/free-form/Datakit/CodeEditor.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/FlowCanvas.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/Datakit/flow-editor/node/NodePanelItem.vue.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -831,7 +831,7 @@ const av = {
|
|
|
831
831
|
},
|
|
832
832
|
proceed: "Yes, update"
|
|
833
833
|
},
|
|
834
|
-
phase_mask_help: "
|
|
834
|
+
phase_mask_help: "You can't add call or exit nodes in the response phase."
|
|
835
835
|
},
|
|
836
836
|
code_editor: {
|
|
837
837
|
mode: "Code editor"
|
|
@@ -9296,19 +9296,19 @@ const xx = `nodes:
|
|
|
9296
9296
|
emits: ["change", "error"],
|
|
9297
9297
|
setup(e, { expose: t, emit: n }) {
|
|
9298
9298
|
const { t: i } = vt("en-us", yt), { formData: o } = at(), r = n, a = ot("editor-root"), s = ei(null);
|
|
9299
|
-
function l(
|
|
9300
|
-
const
|
|
9301
|
-
if (!
|
|
9299
|
+
function l(c) {
|
|
9300
|
+
const d = s.value, f = d == null ? void 0 : d.getModel();
|
|
9301
|
+
if (!d || !f)
|
|
9302
9302
|
return;
|
|
9303
|
-
const
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
c.focus();
|
|
9303
|
+
const m = Sc[c];
|
|
9304
|
+
d.getValue() !== m && (d.pushUndoStop(), d.executeEdits(Ox, [{ range: f.getFullModelRange(), text: m }]), d.pushUndoStop()), u();
|
|
9305
|
+
}
|
|
9306
|
+
function u() {
|
|
9307
|
+
const c = s.value, d = c == null ? void 0 : c.getModel();
|
|
9308
|
+
!c || !d || (c.setPosition(d.getFullModelRange().getEndPosition()), c.focus());
|
|
9309
9309
|
}
|
|
9310
9310
|
return It(() => {
|
|
9311
|
-
const
|
|
9311
|
+
const c = tr.editor.create(a.value, {
|
|
9312
9312
|
language: "yaml",
|
|
9313
9313
|
automaticLayout: !0,
|
|
9314
9314
|
minimap: {
|
|
@@ -9321,41 +9321,45 @@ const xx = `nodes:
|
|
|
9321
9321
|
},
|
|
9322
9322
|
autoIndent: "keep"
|
|
9323
9323
|
});
|
|
9324
|
-
s.value =
|
|
9325
|
-
|
|
9324
|
+
if (s.value = c, o.config && Object.keys(o.config).length > 0) {
|
|
9325
|
+
const d = { ...o.config };
|
|
9326
|
+
d.nodes && d.nodes.length === 0 && delete d.nodes;
|
|
9327
|
+
const f = Object.keys(d).length === 0 ? "" : Cc.dump(Ir(d), {
|
|
9326
9328
|
schema: Ds,
|
|
9327
9329
|
noArrayIndent: !0
|
|
9328
|
-
})
|
|
9329
|
-
|
|
9330
|
-
|
|
9330
|
+
});
|
|
9331
|
+
c.setValue(f), u();
|
|
9332
|
+
}
|
|
9333
|
+
c.onDidChangeModelContent(() => {
|
|
9334
|
+
const d = c.getModel(), f = c.getValue() || "";
|
|
9331
9335
|
try {
|
|
9332
|
-
const
|
|
9336
|
+
const m = Cc.load(f, {
|
|
9333
9337
|
schema: Ds,
|
|
9334
9338
|
json: !0
|
|
9335
9339
|
});
|
|
9336
|
-
tr.editor.setModelMarkers(
|
|
9337
|
-
} catch (
|
|
9338
|
-
const { message:
|
|
9339
|
-
`)[0],
|
|
9340
|
+
tr.editor.setModelMarkers(d, Ua, []), o.config = m, r("change", m);
|
|
9341
|
+
} catch (m) {
|
|
9342
|
+
const { message: h, mark: v } = m, { line: g, column: y } = v || { line: 0, column: 0 }, b = h.split(`
|
|
9343
|
+
`)[0], _ = [
|
|
9340
9344
|
{
|
|
9341
|
-
startLineNumber:
|
|
9342
|
-
startColumn:
|
|
9343
|
-
endLineNumber:
|
|
9344
|
-
endColumn:
|
|
9345
|
-
message:
|
|
9345
|
+
startLineNumber: g + 1,
|
|
9346
|
+
startColumn: y + 1,
|
|
9347
|
+
endLineNumber: g + 1,
|
|
9348
|
+
endColumn: y + 2,
|
|
9349
|
+
message: b,
|
|
9346
9350
|
severity: tr.MarkerSeverity.Error,
|
|
9347
9351
|
source: Ua
|
|
9348
9352
|
}
|
|
9349
9353
|
];
|
|
9350
|
-
tr.editor.setModelMarkers(
|
|
9354
|
+
tr.editor.setModelMarkers(d, Ua, _), r("error", b);
|
|
9351
9355
|
}
|
|
9352
9356
|
});
|
|
9353
9357
|
}), ea(() => {
|
|
9354
|
-
var
|
|
9355
|
-
(
|
|
9358
|
+
var c;
|
|
9359
|
+
(c = s.value) == null || c.dispose();
|
|
9356
9360
|
}), t({
|
|
9357
9361
|
setExampleCode: l
|
|
9358
|
-
}), (
|
|
9362
|
+
}), (c, d) => (w(), ne("div", Tx, [
|
|
9359
9363
|
P(p(Wh), { class: "examples" }, {
|
|
9360
9364
|
icon: M(() => [
|
|
9361
9365
|
P(p(rf))
|
|
@@ -9363,14 +9367,14 @@ const xx = `nodes:
|
|
|
9363
9367
|
default: M(() => [
|
|
9364
9368
|
G("div", $x, [
|
|
9365
9369
|
De(ge(p(i)("plugins.free-form.datakit.description_example")) + " ", 1),
|
|
9366
|
-
(w(), ne(Ke, null, ze(Sc, (
|
|
9367
|
-
key:
|
|
9370
|
+
(w(), ne(Ke, null, ze(Sc, (f, m) => P(p(an), {
|
|
9371
|
+
key: m,
|
|
9368
9372
|
appearance: "secondary",
|
|
9369
9373
|
size: "small",
|
|
9370
|
-
onClick: (
|
|
9374
|
+
onClick: (h) => l(m)
|
|
9371
9375
|
}, {
|
|
9372
9376
|
default: M(() => [
|
|
9373
|
-
De(ge(p(i)(`plugins.free-form.datakit.examples.${
|
|
9377
|
+
De(ge(p(i)(`plugins.free-form.datakit.examples.${m}`)), 1)
|
|
9374
9378
|
]),
|
|
9375
9379
|
_: 2
|
|
9376
9380
|
}, 1032, ["onClick"])), 64))
|
|
@@ -9381,7 +9385,7 @@ const xx = `nodes:
|
|
|
9381
9385
|
G("div", Nx, null, 512)
|
|
9382
9386
|
]));
|
|
9383
9387
|
}
|
|
9384
|
-
}), Mx = /* @__PURE__ */ Me(Px, [["__scopeId", "data-v-
|
|
9388
|
+
}), Mx = /* @__PURE__ */ Me(Px, [["__scopeId", "data-v-f15f69c5"]]), { t: Vl } = vt("en-us", yt);
|
|
9385
9389
|
function on(e) {
|
|
9386
9390
|
return Vl(`plugins.free-form.datakit.flow_editor.node_types.${e}.description`);
|
|
9387
9391
|
}
|
|
@@ -20513,7 +20517,7 @@ const aD = {
|
|
|
20513
20517
|
A.value ? (w(), ne("div", bD, ge(p(a)("plugins.free-form.datakit.flow_editor.phase_mask_help")), 1)) : we("", !0)
|
|
20514
20518
|
], 512));
|
|
20515
20519
|
}
|
|
20516
|
-
}), Bd = /* @__PURE__ */ Me(wD, [["__scopeId", "data-v-
|
|
20520
|
+
}), Bd = /* @__PURE__ */ Me(wD, [["__scopeId", "data-v-853d0524"]]), ED = /* @__PURE__ */ he({
|
|
20517
20521
|
__name: "FlowPanels",
|
|
20518
20522
|
props: {
|
|
20519
20523
|
readonly: { type: Boolean },
|
|
@@ -20958,7 +20962,7 @@ const MD = { class: "dk-editor-main" }, FD = { class: "header" }, RD = { class:
|
|
|
20958
20962
|
])
|
|
20959
20963
|
], 2));
|
|
20960
20964
|
}
|
|
20961
|
-
}), UD = /* @__PURE__ */ Me(zD, [["__scopeId", "data-v-
|
|
20965
|
+
}), UD = /* @__PURE__ */ Me(zD, [["__scopeId", "data-v-3b48dd37"]]), HD = { class: "dk-node-panel" }, GD = { class: "title" }, YD = { class: "node-list" }, WD = {
|
|
20962
20966
|
"aria-hidden": "true",
|
|
20963
20967
|
class: "preview",
|
|
20964
20968
|
inert: ""
|