@blueking/bkflow-canvas-editor 0.0.1 → 0.0.3
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,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as pe, useSlots as Un, createElementBlock as B, openBlock as
|
|
2
|
-
import { ArrowsLeft as Ti, EditLine as Si, AngleRight as Di, ArrowsRight as Mi, CopyShape as Li, Info as
|
|
3
|
-
import { View as Vi, CssLoader as
|
|
1
|
+
import { defineComponent as pe, useSlots as Un, createElementBlock as B, openBlock as w, createElementVNode as E, renderSlot as pt, createBlock as oe, createCommentVNode as ue, unref as $e, toDisplayString as ge, resolveComponent as te, withCtx as M, createVNode as _, shallowRef as he, watch as Ce, resolveDirective as Fe, withDirectives as Te, ref as G, onMounted as ot, normalizeClass as Oe, nextTick as it, Fragment as _e, renderList as je, computed as ke, createTextVNode as de, inject as Wa, onBeforeUnmount as vn, resolveDynamicComponent as mn, h as ln, withModifiers as Ne, createSlots as Ja, Transition as _i, vShow as Ya, createApp as Za, getCurrentInstance as Po, toRefs as Ka, provide as Ai, mergeProps as ki, normalizeStyle as Qa, Teleport as Ci, createStaticVNode as lo, readonly as xi, watchEffect as Ei, normalizeProps as jn, guardReactiveProps as Gn } from "vue";
|
|
2
|
+
import { ArrowsLeft as Ti, EditLine as Si, AngleRight as Di, ArrowsRight as Mi, CopyShape as Li, Info as Xa, AngleUpFill as Oi, Copy as Pi, FilliscreenLine as Ri, UnfullScreen as $i, Plus as zi, Share as Bi } from "bkui-vue/lib/icon";
|
|
3
|
+
import { View as Vi, CssLoader as Xo, Dom as ht, Graph as es, FunctionExt as ea, Rectangle as Ni, GeometryUtil as ta, Shape as Fi, Markup as Ii } from "@antv/x6";
|
|
4
4
|
import { Selection as Ui } from "@antv/x6-plugin-selection";
|
|
5
5
|
import { Clipboard as ji } from "@antv/x6-plugin-clipboard";
|
|
6
6
|
import { Snapline as Gi } from "@antv/x6-plugin-snapline";
|
|
7
7
|
import { getTeleport as qi, register as Hi } from "@antv/x6-vue-shape";
|
|
8
|
-
import { merge as
|
|
8
|
+
import { merge as ts, cloneDeep as Re, debounce as co, throttle as Wi } from "lodash";
|
|
9
9
|
import zn from "bkui-vue/lib/message";
|
|
10
10
|
import { MiniMap as Ji } from "@antv/x6-plugin-minimap";
|
|
11
|
-
import { useRouter as
|
|
12
|
-
import { Message as Yi, InfoBox as
|
|
11
|
+
import { useRouter as ns, useRoute as os } from "vue-router";
|
|
12
|
+
import { Message as Yi, InfoBox as as } from "bkui-vue/lib";
|
|
13
13
|
import * as on from "monaco-editor";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { Message as
|
|
14
|
+
import ss from "monaco-editor/esm/vs/editor/editor.worker.js?worker";
|
|
15
|
+
import is from "monaco-editor/esm/vs/language/json/json.worker.js?worker";
|
|
16
|
+
import rs from "monaco-editor/esm/vs/language/css/css.worker.js?worker";
|
|
17
|
+
import ls from "monaco-editor/esm/vs/language/html/html.worker.js?worker";
|
|
18
|
+
import cs from "monaco-editor/esm/vs/language/typescript/ts.worker.js?worker";
|
|
19
|
+
import { Message as na } from "bkui-vue";
|
|
20
20
|
function us(e, t) {
|
|
21
21
|
return function() {
|
|
22
22
|
return e.apply(t, arguments);
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
const { toString: Zi } = Object.prototype, { getPrototypeOf:
|
|
25
|
+
const { toString: Zi } = Object.prototype, { getPrototypeOf: Ro } = Object, { iterator: qn, toStringTag: ds } = Symbol, Hn = /* @__PURE__ */ ((e) => (t) => {
|
|
26
26
|
const n = Zi.call(t);
|
|
27
27
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
28
28
|
})(/* @__PURE__ */ Object.create(null)), ft = (e) => (e = e.toLowerCase(), (t) => Hn(t) === e), Wn = (e) => (t) => typeof t === e, { isArray: Qt } = Array, cn = Wn("undefined");
|
|
@@ -37,7 +37,7 @@ function Ki(e) {
|
|
|
37
37
|
const Qi = Wn("string"), Ke = Wn("function"), fs = Wn("number"), gn = (e) => e !== null && typeof e == "object", Xi = (e) => e === !0 || e === !1, Mn = (e) => {
|
|
38
38
|
if (Hn(e) !== "object")
|
|
39
39
|
return !1;
|
|
40
|
-
const t =
|
|
40
|
+
const t = Ro(e);
|
|
41
41
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ds in e) && !(qn in e);
|
|
42
42
|
}, er = (e) => {
|
|
43
43
|
if (!gn(e) || hn(e))
|
|
@@ -102,7 +102,7 @@ const fr = (e, t, n, { allOwnKeys: o } = {}) => (yn(t, (a, i) => {
|
|
|
102
102
|
do {
|
|
103
103
|
for (a = Object.getOwnPropertyNames(e), i = a.length; i-- > 0; )
|
|
104
104
|
s = a[i], (!o || o(s, e, t)) && !r[s] && (t[s] = e[s], r[s] = !0);
|
|
105
|
-
e = n !== !1 &&
|
|
105
|
+
e = n !== !1 && Ro(e);
|
|
106
106
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
107
107
|
return t;
|
|
108
108
|
}, gr = (e, t, n) => {
|
|
@@ -118,7 +118,7 @@ const fr = (e, t, n, { allOwnKeys: o } = {}) => (yn(t, (a, i) => {
|
|
|
118
118
|
for (; t-- > 0; )
|
|
119
119
|
n[t] = e[t];
|
|
120
120
|
return n;
|
|
121
|
-
}, br = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
121
|
+
}, br = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ro(Uint8Array)), wr = (e, t) => {
|
|
122
122
|
const o = (e && e[qn]).call(e);
|
|
123
123
|
let a;
|
|
124
124
|
for (; (a = o.next()) && !a.done; ) {
|
|
@@ -136,7 +136,7 @@ const fr = (e, t, n, { allOwnKeys: o } = {}) => (yn(t, (a, i) => {
|
|
|
136
136
|
function(n, o, a) {
|
|
137
137
|
return o.toUpperCase() + a;
|
|
138
138
|
}
|
|
139
|
-
),
|
|
139
|
+
), oa = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Cr = ft("RegExp"), hs = (e, t) => {
|
|
140
140
|
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
141
141
|
yn(n, (a, i) => {
|
|
142
142
|
let s;
|
|
@@ -235,8 +235,8 @@ const Mr = (e) => {
|
|
|
235
235
|
forEachEntry: wr,
|
|
236
236
|
matchAll: _r,
|
|
237
237
|
isHTMLForm: Ar,
|
|
238
|
-
hasOwnProperty:
|
|
239
|
-
hasOwnProp:
|
|
238
|
+
hasOwnProperty: oa,
|
|
239
|
+
hasOwnProp: oa,
|
|
240
240
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
241
241
|
reduceDescriptors: hs,
|
|
242
242
|
freezeMethods: xr,
|
|
@@ -312,7 +312,7 @@ function bo(e) {
|
|
|
312
312
|
function ws(e) {
|
|
313
313
|
return O.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function aa(e, t, n) {
|
|
316
316
|
return e ? e.concat(t).map(function(a, i) {
|
|
317
317
|
return a = ws(a), !n && i ? "[" + a + "]" : a;
|
|
318
318
|
}).join(n ? "." : "") : t;
|
|
@@ -347,20 +347,20 @@ function Jn(e, t, n) {
|
|
|
347
347
|
return O.isArrayBuffer(f) || O.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
348
348
|
}
|
|
349
349
|
function u(f, h, p) {
|
|
350
|
-
let
|
|
350
|
+
let b = f;
|
|
351
351
|
if (f && !p && typeof f == "object") {
|
|
352
352
|
if (O.endsWith(h, "{}"))
|
|
353
353
|
h = o ? h : h.slice(0, -2), f = JSON.stringify(f);
|
|
354
|
-
else if (O.isArray(f) && zr(f) || (O.isFileList(f) || O.endsWith(h, "[]")) && (
|
|
355
|
-
return h = ws(h),
|
|
354
|
+
else if (O.isArray(f) && zr(f) || (O.isFileList(f) || O.endsWith(h, "[]")) && (b = O.toArray(f)))
|
|
355
|
+
return h = ws(h), b.forEach(function(C, d) {
|
|
356
356
|
!(O.isUndefined(C) || C === null) && t.append(
|
|
357
357
|
// eslint-disable-next-line no-nested-ternary
|
|
358
|
-
s === !0 ?
|
|
358
|
+
s === !0 ? aa([h], d, i) : s === null ? h : h + "[]",
|
|
359
359
|
c(C)
|
|
360
360
|
);
|
|
361
361
|
}), !1;
|
|
362
362
|
}
|
|
363
|
-
return bo(f) ? !0 : (t.append(
|
|
363
|
+
return bo(f) ? !0 : (t.append(aa(p, h, i), c(f)), !1);
|
|
364
364
|
}
|
|
365
365
|
const v = [], y = Object.assign(Br, {
|
|
366
366
|
defaultVisitor: u,
|
|
@@ -371,14 +371,14 @@ function Jn(e, t, n) {
|
|
|
371
371
|
if (!O.isUndefined(f)) {
|
|
372
372
|
if (v.indexOf(f) !== -1)
|
|
373
373
|
throw Error("Circular reference detected in " + h.join("."));
|
|
374
|
-
v.push(f), O.forEach(f, function(
|
|
375
|
-
(!(O.isUndefined(
|
|
374
|
+
v.push(f), O.forEach(f, function(b, g) {
|
|
375
|
+
(!(O.isUndefined(b) || b === null) && a.call(
|
|
376
376
|
t,
|
|
377
|
-
|
|
377
|
+
b,
|
|
378
378
|
O.isString(g) ? g.trim() : g,
|
|
379
379
|
h,
|
|
380
380
|
y
|
|
381
|
-
)) === !0 && m(
|
|
381
|
+
)) === !0 && m(b, h ? h.concat(g) : [g]);
|
|
382
382
|
}), v.pop();
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -386,7 +386,7 @@ function Jn(e, t, n) {
|
|
|
386
386
|
throw new TypeError("data must be an object");
|
|
387
387
|
return m(e), t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function sa(e) {
|
|
390
390
|
const t = {
|
|
391
391
|
"!": "%21",
|
|
392
392
|
"'": "%27",
|
|
@@ -400,17 +400,17 @@ function ua(e) {
|
|
|
400
400
|
return t[o];
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function $o(e, t) {
|
|
404
404
|
this._pairs = [], e && Jn(e, this, t);
|
|
405
405
|
}
|
|
406
|
-
const _s =
|
|
406
|
+
const _s = $o.prototype;
|
|
407
407
|
_s.append = function(t, n) {
|
|
408
408
|
this._pairs.push([t, n]);
|
|
409
409
|
};
|
|
410
410
|
_s.toString = function(t) {
|
|
411
411
|
const n = t ? function(o) {
|
|
412
|
-
return t.call(this, o,
|
|
413
|
-
} :
|
|
412
|
+
return t.call(this, o, sa);
|
|
413
|
+
} : sa;
|
|
414
414
|
return this._pairs.map(function(a) {
|
|
415
415
|
return n(a[0]) + "=" + n(a[1]);
|
|
416
416
|
}, "").join("&");
|
|
@@ -427,13 +427,13 @@ function As(e, t, n) {
|
|
|
427
427
|
});
|
|
428
428
|
const a = n && n.serialize;
|
|
429
429
|
let i;
|
|
430
|
-
if (a ? i = a(t, n) : i = O.isURLSearchParams(t) ? t.toString() : new
|
|
430
|
+
if (a ? i = a(t, n) : i = O.isURLSearchParams(t) ? t.toString() : new $o(t, n).toString(o), i) {
|
|
431
431
|
const s = e.indexOf("#");
|
|
432
432
|
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
433
433
|
}
|
|
434
434
|
return e;
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class ia {
|
|
437
437
|
constructor() {
|
|
438
438
|
this.handlers = [];
|
|
439
439
|
}
|
|
@@ -491,7 +491,7 @@ const ks = {
|
|
|
491
491
|
silentJSONParsing: !0,
|
|
492
492
|
forcedJSONParsing: !0,
|
|
493
493
|
clarifyTimeoutError: !1
|
|
494
|
-
}, Nr = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
494
|
+
}, Nr = typeof URLSearchParams < "u" ? URLSearchParams : $o, Fr = typeof FormData < "u" ? FormData : null, Ir = typeof Blob < "u" ? Blob : null, Ur = {
|
|
495
495
|
isBrowser: !0,
|
|
496
496
|
classes: {
|
|
497
497
|
URLSearchParams: Nr,
|
|
@@ -499,10 +499,10 @@ const ks = {
|
|
|
499
499
|
Blob: Ir
|
|
500
500
|
},
|
|
501
501
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
502
|
-
},
|
|
503
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qr =
|
|
502
|
+
}, zo = typeof window < "u" && typeof document < "u", wo = typeof navigator == "object" && navigator || void 0, jr = zo && (!wo || ["ReactNative", "NativeScript", "NS"].indexOf(wo.product) < 0), Gr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
503
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qr = zo && window.location.href || "http://localhost", Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
504
504
|
__proto__: null,
|
|
505
|
-
hasBrowserEnv:
|
|
505
|
+
hasBrowserEnv: zo,
|
|
506
506
|
hasStandardBrowserEnv: jr,
|
|
507
507
|
hasStandardBrowserWebWorkerEnv: Gr,
|
|
508
508
|
navigator: wo,
|
|
@@ -650,7 +650,7 @@ const Kr = O.toObjectSet([
|
|
|
650
650
|
`).forEach(function(s) {
|
|
651
651
|
a = s.indexOf(":"), n = s.substring(0, a).trim().toLowerCase(), o = s.substring(a + 1).trim(), !(!n || t[n] && Kr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(o) : t[n] = [o] : t[n] = t[n] ? t[n] + ", " + o : o);
|
|
652
652
|
}), t;
|
|
653
|
-
},
|
|
653
|
+
}, ra = Symbol("internals");
|
|
654
654
|
function en(e) {
|
|
655
655
|
return e && String(e).trim().toLowerCase();
|
|
656
656
|
}
|
|
@@ -805,7 +805,7 @@ let Qe = class {
|
|
|
805
805
|
return n.forEach((a) => o.set(a)), o;
|
|
806
806
|
}
|
|
807
807
|
static accessor(t) {
|
|
808
|
-
const o = (this[
|
|
808
|
+
const o = (this[ra] = this[ra] = {
|
|
809
809
|
accessors: {}
|
|
810
810
|
}).accessors, a = this.prototype;
|
|
811
811
|
function i(s) {
|
|
@@ -903,14 +903,14 @@ const Bn = (e, t, n = 3) => {
|
|
|
903
903
|
};
|
|
904
904
|
e(v);
|
|
905
905
|
}, n);
|
|
906
|
-
},
|
|
906
|
+
}, la = (e, t) => {
|
|
907
907
|
const n = e != null;
|
|
908
908
|
return [(o) => t[0]({
|
|
909
909
|
lengthComputable: n,
|
|
910
910
|
total: e,
|
|
911
911
|
loaded: o
|
|
912
912
|
}), t[1]];
|
|
913
|
-
},
|
|
913
|
+
}, ca = (e) => (...t) => O.asap(() => e(...t)), il = We.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, We.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
914
914
|
new URL(We.origin),
|
|
915
915
|
We.navigator && /(msie|trident)/i.test(We.navigator.userAgent)
|
|
916
916
|
) : () => !0, rl = We.hasStandardBrowserEnv ? (
|
|
@@ -950,7 +950,7 @@ function Ts(e, t, n) {
|
|
|
950
950
|
let o = !ll(t);
|
|
951
951
|
return e && (o || n == !1) ? cl(e, t) : t;
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const ua = (e) => e instanceof Qe ? { ...e } : e;
|
|
954
954
|
function Vt(e, t) {
|
|
955
955
|
t = t || {};
|
|
956
956
|
const n = {};
|
|
@@ -1008,7 +1008,7 @@ function Vt(e, t) {
|
|
|
1008
1008
|
socketPath: s,
|
|
1009
1009
|
responseEncoding: s,
|
|
1010
1010
|
validateStatus: r,
|
|
1011
|
-
headers: (c, u, v) => a(
|
|
1011
|
+
headers: (c, u, v) => a(ua(c), ua(u), v, !0)
|
|
1012
1012
|
};
|
|
1013
1013
|
return O.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
1014
1014
|
const v = l[u] || a, y = v(e[u], t[u], u);
|
|
@@ -1047,7 +1047,7 @@ const Ss = (e) => {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
let p = new XMLHttpRequest();
|
|
1049
1049
|
p.open(a.method.toUpperCase(), a.url, !0), p.timeout = a.timeout;
|
|
1050
|
-
function
|
|
1050
|
+
function b() {
|
|
1051
1051
|
if (!p)
|
|
1052
1052
|
return;
|
|
1053
1053
|
const C = Qe.from(
|
|
@@ -1066,8 +1066,8 @@ const Ss = (e) => {
|
|
|
1066
1066
|
o(S), h();
|
|
1067
1067
|
}, A), p = null;
|
|
1068
1068
|
}
|
|
1069
|
-
"onloadend" in p ? p.onloadend =
|
|
1070
|
-
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1069
|
+
"onloadend" in p ? p.onloadend = b : p.onreadystatechange = function() {
|
|
1070
|
+
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
1071
1071
|
}, p.onabort = function() {
|
|
1072
1072
|
p && (o(new Ae("Request aborted", Ae.ECONNABORTED, e, p)), p = null);
|
|
1073
1073
|
}, p.onerror = function() {
|
|
@@ -1144,7 +1144,7 @@ const Ss = (e) => {
|
|
|
1144
1144
|
} finally {
|
|
1145
1145
|
await t.cancel();
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, da = (e, t, n, o) => {
|
|
1148
1148
|
const a = vl(e, t);
|
|
1149
1149
|
let i = 0, s, r = (l) => {
|
|
1150
1150
|
s || (s = !0, o && o(l));
|
|
@@ -1189,7 +1189,7 @@ const Ss = (e) => {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}).headers.has("Content-Type");
|
|
1191
1191
|
return e && !t;
|
|
1192
|
-
}),
|
|
1192
|
+
}), pa = 64 * 1024, _o = Ds && Ms(() => O.isReadableStream(new Response("").body)), Vn = {
|
|
1193
1193
|
stream: _o && ((e) => e.body)
|
|
1194
1194
|
};
|
|
1195
1195
|
Yn && ((e) => {
|
|
@@ -1245,15 +1245,15 @@ const yl = async (e) => {
|
|
|
1245
1245
|
duplex: "half"
|
|
1246
1246
|
}), k;
|
|
1247
1247
|
if (O.isFormData(o) && (k = A.headers.get("content-type")) && u.setContentType(k), A.body) {
|
|
1248
|
-
const [S, H] =
|
|
1248
|
+
const [S, H] = la(
|
|
1249
1249
|
p,
|
|
1250
|
-
Bn(
|
|
1250
|
+
Bn(ca(l))
|
|
1251
1251
|
);
|
|
1252
|
-
o =
|
|
1252
|
+
o = da(A.body, pa, S, H);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
O.isString(v) || (v = v ? "include" : "omit");
|
|
1256
|
-
const
|
|
1256
|
+
const b = "credentials" in Request.prototype;
|
|
1257
1257
|
f = new Request(t, {
|
|
1258
1258
|
...y,
|
|
1259
1259
|
signal: m,
|
|
@@ -1261,7 +1261,7 @@ const yl = async (e) => {
|
|
|
1261
1261
|
headers: u.normalize().toJSON(),
|
|
1262
1262
|
body: o,
|
|
1263
1263
|
duplex: "half",
|
|
1264
|
-
credentials:
|
|
1264
|
+
credentials: b ? v : void 0
|
|
1265
1265
|
});
|
|
1266
1266
|
let g = await fetch(f, y);
|
|
1267
1267
|
const C = _o && (c === "stream" || c === "response");
|
|
@@ -1270,12 +1270,12 @@ const yl = async (e) => {
|
|
|
1270
1270
|
["status", "statusText", "headers"].forEach((j) => {
|
|
1271
1271
|
A[j] = g[j];
|
|
1272
1272
|
});
|
|
1273
|
-
const k = O.toFiniteNumber(g.headers.get("content-length")), [S, H] = r &&
|
|
1273
|
+
const k = O.toFiniteNumber(g.headers.get("content-length")), [S, H] = r && la(
|
|
1274
1274
|
k,
|
|
1275
|
-
Bn(
|
|
1275
|
+
Bn(ca(r), !0)
|
|
1276
1276
|
) || [];
|
|
1277
1277
|
g = new Response(
|
|
1278
|
-
|
|
1278
|
+
da(g.body, pa, S, () => {
|
|
1279
1279
|
H && H(), h && h();
|
|
1280
1280
|
}),
|
|
1281
1281
|
A
|
|
@@ -1293,13 +1293,13 @@ const yl = async (e) => {
|
|
|
1293
1293
|
request: f
|
|
1294
1294
|
});
|
|
1295
1295
|
});
|
|
1296
|
-
} catch (
|
|
1297
|
-
throw h && h(),
|
|
1296
|
+
} catch (b) {
|
|
1297
|
+
throw h && h(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
|
|
1298
1298
|
new Ae("Network Error", Ae.ERR_NETWORK, e, f),
|
|
1299
1299
|
{
|
|
1300
|
-
cause:
|
|
1300
|
+
cause: b.cause || b
|
|
1301
1301
|
}
|
|
1302
|
-
) : Ae.from(
|
|
1302
|
+
) : Ae.from(b, b && b.code, e, f);
|
|
1303
1303
|
}
|
|
1304
1304
|
}), Ao = {
|
|
1305
1305
|
http: $r,
|
|
@@ -1315,7 +1315,7 @@ O.forEach(Ao, (e, t) => {
|
|
|
1315
1315
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1316
1316
|
}
|
|
1317
1317
|
});
|
|
1318
|
-
const
|
|
1318
|
+
const fa = (e) => `- ${e}`, _l = (e) => O.isFunction(e) || e === null || e === !1, Ls = {
|
|
1319
1319
|
getAdapter: (e) => {
|
|
1320
1320
|
e = O.isArray(e) ? e : [e];
|
|
1321
1321
|
const { length: t } = e;
|
|
@@ -1335,8 +1335,8 @@ const ya = (e) => `- ${e}`, _l = (e) => O.isFunction(e) || e === null || e === !
|
|
|
1335
1335
|
([r, l]) => `adapter ${r} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1336
1336
|
);
|
|
1337
1337
|
let s = t ? i.length > 1 ? `since :
|
|
1338
|
-
` + i.map(
|
|
1339
|
-
`) : " " +
|
|
1338
|
+
` + i.map(fa).join(`
|
|
1339
|
+
`) : " " + fa(i[0]) : "as no adapter specified";
|
|
1340
1340
|
throw new Ae(
|
|
1341
1341
|
"There is no suitable adapter to dispatch the request " + s,
|
|
1342
1342
|
"ERR_NOT_SUPPORT"
|
|
@@ -1350,7 +1350,7 @@ function fo(e) {
|
|
|
1350
1350
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1351
1351
|
throw new Xt(null, e);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function va(e) {
|
|
1354
1354
|
return fo(e), e.headers = Qe.from(e.headers), e.data = po.call(
|
|
1355
1355
|
e,
|
|
1356
1356
|
e.transformRequest
|
|
@@ -1374,7 +1374,7 @@ const Os = "1.11.0", Zn = {};
|
|
|
1374
1374
|
return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1375
1375
|
};
|
|
1376
1376
|
});
|
|
1377
|
-
const
|
|
1377
|
+
const ma = {};
|
|
1378
1378
|
Zn.transitional = function(t, n, o) {
|
|
1379
1379
|
function a(i, s) {
|
|
1380
1380
|
return "[Axios v" + Os + "] Transitional option '" + i + "'" + s + (o ? ". " + o : "");
|
|
@@ -1385,7 +1385,7 @@ Zn.transitional = function(t, n, o) {
|
|
|
1385
1385
|
a(s, " has been removed" + (n ? " in " + n : "")),
|
|
1386
1386
|
Ae.ERR_DEPRECATED
|
|
1387
1387
|
);
|
|
1388
|
-
return n && !
|
|
1388
|
+
return n && !ma[s] && (ma[s] = !0, console.warn(
|
|
1389
1389
|
a(
|
|
1390
1390
|
s,
|
|
1391
1391
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1420,8 +1420,8 @@ const On = {
|
|
|
1420
1420
|
let zt = class {
|
|
1421
1421
|
constructor(t) {
|
|
1422
1422
|
this.defaults = t || {}, this.interceptors = {
|
|
1423
|
-
request: new
|
|
1424
|
-
response: new
|
|
1423
|
+
request: new ia(),
|
|
1424
|
+
response: new ia()
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
1427
|
/**
|
|
@@ -1486,7 +1486,7 @@ let zt = class {
|
|
|
1486
1486
|
});
|
|
1487
1487
|
let u, v = 0, y;
|
|
1488
1488
|
if (!l) {
|
|
1489
|
-
const f = [
|
|
1489
|
+
const f = [va.bind(this), void 0];
|
|
1490
1490
|
for (f.unshift(...r), f.push(...c), y = f.length, u = Promise.resolve(n); v < y; )
|
|
1491
1491
|
u = u.then(f[v++], f[v++]);
|
|
1492
1492
|
return u;
|
|
@@ -1503,7 +1503,7 @@ let zt = class {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
try {
|
|
1506
|
-
u =
|
|
1506
|
+
u = va.call(this, m);
|
|
1507
1507
|
} catch (f) {
|
|
1508
1508
|
return Promise.reject(f);
|
|
1509
1509
|
}
|
|
@@ -1879,18 +1879,18 @@ const Sl = { class: "container-layout" }, Dl = { class: "container-layout-header
|
|
|
1879
1879
|
}, i = () => {
|
|
1880
1880
|
o("edit");
|
|
1881
1881
|
};
|
|
1882
|
-
return (s, r) => (
|
|
1882
|
+
return (s, r) => (w(), B("div", Sl, [
|
|
1883
1883
|
E("section", Dl, [
|
|
1884
1884
|
pt(s.$slots, "header", {}, () => [
|
|
1885
1885
|
E("div", Ml, [
|
|
1886
|
-
n.showBackIcon ? (
|
|
1886
|
+
n.showBackIcon ? (w(), oe($e(Ti), {
|
|
1887
1887
|
key: 0,
|
|
1888
1888
|
class: "back-btn",
|
|
1889
1889
|
onClick: a
|
|
1890
1890
|
})) : ue("", !0),
|
|
1891
1891
|
E("h3", Ll, ge(n.title), 1),
|
|
1892
1892
|
E("p", Ol, ge(n.desc), 1),
|
|
1893
|
-
n.showEditIcon ? (
|
|
1893
|
+
n.showEditIcon ? (w(), oe($e(Si), {
|
|
1894
1894
|
key: 1,
|
|
1895
1895
|
class: "edit-btn",
|
|
1896
1896
|
onClick: i
|
|
@@ -1915,13 +1915,13 @@ const Sl = { class: "container-layout" }, Dl = { class: "container-layout-header
|
|
|
1915
1915
|
function zl(e) {
|
|
1916
1916
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1917
1917
|
}
|
|
1918
|
-
var Pn = { exports: {} }, Bl = Pn.exports,
|
|
1918
|
+
var Pn = { exports: {} }, Bl = Pn.exports, ha;
|
|
1919
1919
|
function Vl() {
|
|
1920
|
-
return
|
|
1920
|
+
return ha || (ha = 1, (function(e, t) {
|
|
1921
1921
|
(function(n, o) {
|
|
1922
1922
|
e.exports = o();
|
|
1923
1923
|
})(Bl, (function() {
|
|
1924
|
-
var n = 1e3, o = 6e4, a = 36e5, i = "millisecond", s = "second", r = "minute", l = "hour", c = "day", u = "week", v = "month", y = "quarter", m = "year", f = "date", h = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
1924
|
+
var n = 1e3, o = 6e4, a = 36e5, i = "millisecond", s = "second", r = "minute", l = "hour", c = "day", u = "week", v = "month", y = "quarter", m = "year", f = "date", h = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
|
|
1925
1925
|
var P = ["th", "st", "nd", "rd"], R = $ % 100;
|
|
1926
1926
|
return "[" + $ + (P[(R - 20) % 10] || P[R] || P[0]) + "]";
|
|
1927
1927
|
} }, C = function($, P, R) {
|
|
@@ -2071,7 +2071,7 @@ function Vl() {
|
|
|
2071
2071
|
var le = ee < 12 ? "AM" : "PM";
|
|
2072
2072
|
return K ? le.toLowerCase() : le;
|
|
2073
2073
|
};
|
|
2074
|
-
return ne.replace(
|
|
2074
|
+
return ne.replace(b, (function(ee, ae) {
|
|
2075
2075
|
return ae || (function(K) {
|
|
2076
2076
|
switch (K) {
|
|
2077
2077
|
case "YY":
|
|
@@ -2194,7 +2194,7 @@ function Vl() {
|
|
|
2194
2194
|
})(Pn)), Pn.exports;
|
|
2195
2195
|
}
|
|
2196
2196
|
var Nl = Vl();
|
|
2197
|
-
const
|
|
2197
|
+
const Bo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
2198
2198
|
__name: "records-table",
|
|
2199
2199
|
props: {
|
|
2200
2200
|
data: {}
|
|
@@ -2203,7 +2203,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2203
2203
|
const t = e;
|
|
2204
2204
|
return (n, o) => {
|
|
2205
2205
|
const a = te("bk-table-column"), i = te("bk-table");
|
|
2206
|
-
return
|
|
2206
|
+
return w(), oe(i, {
|
|
2207
2207
|
data: t.data,
|
|
2208
2208
|
border: ["outer"]
|
|
2209
2209
|
}, {
|
|
@@ -2255,7 +2255,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2255
2255
|
try {
|
|
2256
2256
|
const l = await n.apiConfig.fetchFlowOperateRecord(n.flowId);
|
|
2257
2257
|
l.data.data.forEach(
|
|
2258
|
-
(c) => c.operate_date =
|
|
2258
|
+
(c) => c.operate_date = Bo(c.operate_date).format("YYYY-MM-DD HH:mm:ss")
|
|
2259
2259
|
), a.value = l.data.data;
|
|
2260
2260
|
} catch (l) {
|
|
2261
2261
|
console.error(l);
|
|
@@ -2267,7 +2267,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2267
2267
|
};
|
|
2268
2268
|
return (l, c) => {
|
|
2269
2269
|
const u = te("bk-sideslider"), v = Fe("bk-loading");
|
|
2270
|
-
return
|
|
2270
|
+
return w(), oe(u, {
|
|
2271
2271
|
title: "操作记录",
|
|
2272
2272
|
"is-show": n.show,
|
|
2273
2273
|
width: 800,
|
|
@@ -2275,7 +2275,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2275
2275
|
"before-close": r
|
|
2276
2276
|
}, {
|
|
2277
2277
|
default: M(() => [
|
|
2278
|
-
Te((
|
|
2278
|
+
Te((w(), B("div", Il, [
|
|
2279
2279
|
_(Fl, { data: a.value }, null, 8, ["data"])
|
|
2280
2280
|
])), [
|
|
2281
2281
|
[v, { loading: i.value }]
|
|
@@ -2285,10 +2285,10 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2285
2285
|
}, 8, ["is-show"]);
|
|
2286
2286
|
};
|
|
2287
2287
|
}
|
|
2288
|
-
}), jl = /* @__PURE__ */ fe(Ul, [["__scopeId", "data-v-4541c008"]]),
|
|
2288
|
+
}), jl = /* @__PURE__ */ fe(Ul, [["__scopeId", "data-v-4541c008"]]), ga = (e, t) => {
|
|
2289
2289
|
const { start_event: n, end_event: o, activities: a, gateways: i, flows: s, line: r } = t;
|
|
2290
2290
|
return n.id === e ? n : o.id === e ? o : a[e] ? a[e] : i[e] ? i[e] : null;
|
|
2291
|
-
},
|
|
2291
|
+
}, ya = () => ({
|
|
2292
2292
|
custom_type: "input",
|
|
2293
2293
|
desc: "",
|
|
2294
2294
|
index: 0,
|
|
@@ -2302,7 +2302,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2302
2302
|
pre_render_mako: !1,
|
|
2303
2303
|
value: "",
|
|
2304
2304
|
version: "legacy"
|
|
2305
|
-
}), Gl = (e, t = {}) =>
|
|
2305
|
+
}), Gl = (e, t = {}) => ts(
|
|
2306
2306
|
{
|
|
2307
2307
|
id: e,
|
|
2308
2308
|
component: {},
|
|
@@ -2337,7 +2337,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2337
2337
|
};
|
|
2338
2338
|
return ["ExclusiveGateway", "ConditionalParallelGateway"].includes(t) && (o.conditions = {}, o.extra_info = {
|
|
2339
2339
|
parse_lang: "boolrule"
|
|
2340
|
-
}), t !== "ConvergeGateway" && (o.converge_gateway_id = ""),
|
|
2340
|
+
}), t !== "ConvergeGateway" && (o.converge_gateway_id = ""), ts(o, n);
|
|
2341
2341
|
}, Hl = (e, t) => {
|
|
2342
2342
|
const n = [];
|
|
2343
2343
|
return e.forEach((o) => {
|
|
@@ -2369,7 +2369,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2369
2369
|
};
|
|
2370
2370
|
n.push(p);
|
|
2371
2371
|
}), n;
|
|
2372
|
-
},
|
|
2372
|
+
}, ba = (e) => {
|
|
2373
2373
|
const t = [];
|
|
2374
2374
|
return e.forEach((n) => {
|
|
2375
2375
|
const { id: o, source: a, target: i } = n;
|
|
@@ -2597,12 +2597,12 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2597
2597
|
return st(!1, "重复添加连线");
|
|
2598
2598
|
if (!f) {
|
|
2599
2599
|
if (v >= c.max_out) {
|
|
2600
|
-
const
|
|
2601
|
-
return st(!1,
|
|
2600
|
+
const b = `已达到${Ct[r.type]}最大输出连线条数`;
|
|
2601
|
+
return st(!1, b);
|
|
2602
2602
|
}
|
|
2603
2603
|
if (y >= u.max_in) {
|
|
2604
|
-
const
|
|
2605
|
-
return st(!1,
|
|
2604
|
+
const b = `已达到${Ct[l.type]}最大输入连线条数`;
|
|
2605
|
+
return st(!1, b);
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
2608
|
return st(!0);
|
|
@@ -2756,7 +2756,7 @@ const Uo = /* @__PURE__ */ zl(Nl), Fl = /* @__PURE__ */ pe({
|
|
|
2756
2756
|
}
|
|
2757
2757
|
return !1;
|
|
2758
2758
|
};
|
|
2759
|
-
var Le = lc(), Nn = cc(), Vs = uc(), Ns = dc(),
|
|
2759
|
+
var Le = lc(), Nn = cc(), Vs = uc(), Ns = dc(), wa = {
|
|
2760
2760
|
// Default is to fail on error, no placeholder
|
|
2761
2761
|
imagePlaceholder: void 0,
|
|
2762
2762
|
// Default cache bust is false, it will use the cache
|
|
@@ -2815,7 +2815,7 @@ function oc(e, t) {
|
|
|
2815
2815
|
return Kn(e, t || {}).then(Le.canvasToBlob);
|
|
2816
2816
|
}
|
|
2817
2817
|
function ac(e) {
|
|
2818
|
-
typeof e.imagePlaceholder > "u" ? Dt.impl.options.imagePlaceholder =
|
|
2818
|
+
typeof e.imagePlaceholder > "u" ? Dt.impl.options.imagePlaceholder = wa.imagePlaceholder : Dt.impl.options.imagePlaceholder = e.imagePlaceholder, typeof e.cacheBust > "u" ? Dt.impl.options.cacheBust = wa.cacheBust : Dt.impl.options.cacheBust = e.cacheBust;
|
|
2819
2819
|
}
|
|
2820
2820
|
function Kn(e, t) {
|
|
2821
2821
|
return Fs(e, t).then(Le.makeImage).then(Le.delay(100)).then(function(o) {
|
|
@@ -2867,9 +2867,9 @@ function Is(e, t, n) {
|
|
|
2867
2867
|
y(window.getComputedStyle(s), r.style);
|
|
2868
2868
|
function y(m, f) {
|
|
2869
2869
|
m.cssText ? f.cssText = m.cssText : h(m, f);
|
|
2870
|
-
function h(p,
|
|
2870
|
+
function h(p, b) {
|
|
2871
2871
|
Le.asArray(p).forEach(function(g) {
|
|
2872
|
-
|
|
2872
|
+
b.setProperty(
|
|
2873
2873
|
g,
|
|
2874
2874
|
p.getPropertyValue(g),
|
|
2875
2875
|
p.getPropertyPriority(g)
|
|
@@ -2887,8 +2887,8 @@ function Is(e, t, n) {
|
|
|
2887
2887
|
if (h === "" || h === "none") return;
|
|
2888
2888
|
var p = Le.uid();
|
|
2889
2889
|
r.className = r.className + " " + p;
|
|
2890
|
-
var
|
|
2891
|
-
|
|
2890
|
+
var b = document.createElement("style");
|
|
2891
|
+
b.appendChild(g(p, m, f)), r.appendChild(b);
|
|
2892
2892
|
function g(C, d, A) {
|
|
2893
2893
|
var k = "." + C + ":" + d, S = A.cssText ? H(A) : j(A);
|
|
2894
2894
|
return document.createTextNode(k + "{" + S + "}");
|
|
@@ -3073,14 +3073,14 @@ function lc() {
|
|
|
3073
3073
|
return g.replace(/#/g, "%23").replace(/\n/g, "%0A");
|
|
3074
3074
|
}
|
|
3075
3075
|
function h(g) {
|
|
3076
|
-
var C =
|
|
3076
|
+
var C = b(g, "border-left-width"), d = b(g, "border-right-width");
|
|
3077
3077
|
return g.scrollWidth + C + d;
|
|
3078
3078
|
}
|
|
3079
3079
|
function p(g) {
|
|
3080
|
-
var C =
|
|
3080
|
+
var C = b(g, "border-top-width"), d = b(g, "border-bottom-width");
|
|
3081
3081
|
return g.scrollHeight + C + d;
|
|
3082
3082
|
}
|
|
3083
|
-
function
|
|
3083
|
+
function b(g, C) {
|
|
3084
3084
|
var d = window.getComputedStyle(g).getPropertyValue(C);
|
|
3085
3085
|
return parseFloat(d.replace("px", ""));
|
|
3086
3086
|
}
|
|
@@ -3262,9 +3262,9 @@ const pc = { class: "canvas-tools-wrapper" }, fc = { class: "tools-content" }, v
|
|
|
3262
3262
|
};
|
|
3263
3263
|
return (y, m) => {
|
|
3264
3264
|
const f = Fe("bk-tooltips");
|
|
3265
|
-
return
|
|
3265
|
+
return w(), B("div", pc, [
|
|
3266
3266
|
E("div", fc, [
|
|
3267
|
-
Te((
|
|
3267
|
+
Te((w(), B("div", {
|
|
3268
3268
|
class: Oe(["tool-icon", { "is-active": i.value }]),
|
|
3269
3269
|
onClick: u
|
|
3270
3270
|
}, [...m[1] || (m[1] = [
|
|
@@ -3287,7 +3287,7 @@ const pc = { class: "canvas-tools-wrapper" }, fc = { class: "tools-content" }, v
|
|
|
3287
3287
|
[f, { content: "放大", placement: "bottom" }]
|
|
3288
3288
|
])
|
|
3289
3289
|
]),
|
|
3290
|
-
Te((
|
|
3290
|
+
Te((w(), B("div", {
|
|
3291
3291
|
class: "tool-icon",
|
|
3292
3292
|
onClick: v
|
|
3293
3293
|
}, [...m[2] || (m[2] = [
|
|
@@ -3295,7 +3295,7 @@ const pc = { class: "canvas-tools-wrapper" }, fc = { class: "tools-content" }, v
|
|
|
3295
3295
|
])])), [
|
|
3296
3296
|
[f, { content: "复位", placement: "bottom" }]
|
|
3297
3297
|
]),
|
|
3298
|
-
Te((
|
|
3298
|
+
Te((w(), B("div", {
|
|
3299
3299
|
class: "tool-icon",
|
|
3300
3300
|
onClick: m[0] || (m[0] = (h) => o("download"))
|
|
3301
3301
|
}, [...m[3] || (m[3] = [
|
|
@@ -3304,7 +3304,7 @@ const pc = { class: "canvas-tools-wrapper" }, fc = { class: "tools-content" }, v
|
|
|
3304
3304
|
[f, { content: "导出图片", placement: "bottom" }]
|
|
3305
3305
|
])
|
|
3306
3306
|
]),
|
|
3307
|
-
i.value ? (
|
|
3307
|
+
i.value ? (w(), B("div", {
|
|
3308
3308
|
key: 0,
|
|
3309
3309
|
ref_key: "miniMapRef",
|
|
3310
3310
|
ref: s,
|
|
@@ -3356,7 +3356,7 @@ let Eo = class To extends Vi {
|
|
|
3356
3356
|
super(), this.name = "dnd", this.options = Object.assign(Object.assign({}, To.defaults), t), this.init();
|
|
3357
3357
|
}
|
|
3358
3358
|
init() {
|
|
3359
|
-
|
|
3359
|
+
Xo.ensure(this.name, yc), this.container = document.createElement("div"), ht.addClass(this.container, this.prefixClassName("widget-dnd")), this.draggingGraph = new es(
|
|
3360
3360
|
Object.assign(Object.assign({}, this.options.delegateGraphOptions), {
|
|
3361
3361
|
container: document.createElement("div"),
|
|
3362
3362
|
width: 1,
|
|
@@ -3468,7 +3468,7 @@ let Eo = class To extends Vi {
|
|
|
3468
3468
|
candidateEmbedView: this.candidateEmbedView
|
|
3469
3469
|
}), a.finalizeEmbedding(o, a.getEventData(o)))) : this.onDropInvalid(), this.candidateEmbedView = null, this.targetModel.stopBatch("dnd");
|
|
3470
3470
|
};
|
|
3471
|
-
this.options.nodeDragEnd?.(t, this.sourceNode),
|
|
3471
|
+
this.options.nodeDragEnd?.(t, this.sourceNode), ea.isAsync(c) ? (this.undelegateDocumentEvents(), c.then(u)) : u(c);
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
3474
|
clearDragging() {
|
|
@@ -3516,7 +3516,7 @@ let Eo = class To extends Vi {
|
|
|
3516
3516
|
}), l = r.getBBox();
|
|
3517
3517
|
i.x += l.x - l.width / 2, i.y += l.y - l.height / 2;
|
|
3518
3518
|
const c = this.snapOffset ? 1 : o.getGridSize();
|
|
3519
|
-
r.position(
|
|
3519
|
+
r.position(ta.snapToGrid(i.x, c), ta.snapToGrid(i.y, c)), r.removeZIndex();
|
|
3520
3520
|
const { validateNode: u } = this.options, v = u ? u(r, {
|
|
3521
3521
|
sourceNode: s,
|
|
3522
3522
|
draggingNode: t,
|
|
@@ -3524,7 +3524,7 @@ let Eo = class To extends Vi {
|
|
|
3524
3524
|
targetGraph: o,
|
|
3525
3525
|
draggingGraph: this.draggingGraph
|
|
3526
3526
|
}) : !0;
|
|
3527
|
-
return typeof v == "boolean" ? v ? (a.addCell(r, { stencil: this.cid }), r) : null :
|
|
3527
|
+
return typeof v == "boolean" ? v ? (a.addCell(r, { stencil: this.cid }), r) : null : ea.toDeferredBoolean(v).then((y) => y ? (a.addCell(r, { stencil: this.cid }), r) : null);
|
|
3528
3528
|
}
|
|
3529
3529
|
return null;
|
|
3530
3530
|
}
|
|
@@ -3532,7 +3532,7 @@ let Eo = class To extends Vi {
|
|
|
3532
3532
|
this.draggingGraph && (this.draggingGraph.view.remove(), this.draggingGraph.dispose());
|
|
3533
3533
|
}
|
|
3534
3534
|
dispose() {
|
|
3535
|
-
this.remove(),
|
|
3535
|
+
this.remove(), Xo.clean(this.name);
|
|
3536
3536
|
}
|
|
3537
3537
|
};
|
|
3538
3538
|
(function(e) {
|
|
@@ -3569,42 +3569,42 @@ const bc = ["data-type"], wc = /* @__PURE__ */ pe({
|
|
|
3569
3569
|
target: o.instance,
|
|
3570
3570
|
scaled: !1,
|
|
3571
3571
|
dndContainer: l.value,
|
|
3572
|
-
nodeDragging: (p,
|
|
3573
|
-
nodeDragEnd: (p,
|
|
3572
|
+
nodeDragging: (p, b) => c(p, b),
|
|
3573
|
+
nodeDragEnd: (p, b) => u(p, b),
|
|
3574
3574
|
getDragNode: (p) => p.clone({ keepId: !0 }),
|
|
3575
3575
|
getDropNode: (p) => p.clone({ keepId: !0 })
|
|
3576
3576
|
}), o.instance.on("node:added", ({ node: p }) => {
|
|
3577
|
-
const
|
|
3578
|
-
p.setZIndex(
|
|
3577
|
+
const b = p.shape === "custom-group-node" ? 1 : 2;
|
|
3578
|
+
p.setZIndex(b);
|
|
3579
3579
|
}), r.value.addEventListener("mousedown", v);
|
|
3580
3580
|
});
|
|
3581
|
-
const c = (p,
|
|
3582
|
-
a("dragging", { e: p, node:
|
|
3583
|
-
}, u = (p,
|
|
3584
|
-
a("dragEnd", { e: p, node:
|
|
3581
|
+
const c = (p, b) => {
|
|
3582
|
+
a("dragging", { e: p, node: b });
|
|
3583
|
+
}, u = (p, b) => {
|
|
3584
|
+
a("dragEnd", { e: p, node: b });
|
|
3585
3585
|
}, v = (p) => {
|
|
3586
3586
|
(xo("node-item", p.target) || xo("entry-item", p.target)) && (s.value = p, document.addEventListener("mousemove", y), document.addEventListener("mouseup", m));
|
|
3587
3587
|
}, y = (p) => {
|
|
3588
3588
|
if (!s.value) return;
|
|
3589
|
-
const { pageX:
|
|
3590
|
-
Math.max(p.pageX -
|
|
3589
|
+
const { pageX: b, pageY: g } = s.value;
|
|
3590
|
+
Math.max(p.pageX - b, p.pageY - g) > 3 && (f(s.value), document.removeEventListener("mousemove", y));
|
|
3591
3591
|
}, m = () => {
|
|
3592
3592
|
s.value = null, document.removeEventListener("mouseup", m);
|
|
3593
3593
|
}, f = (p) => {
|
|
3594
|
-
const
|
|
3594
|
+
const b = h(p.target), g = b.type === "tasknode", C = o.instance.createNode({
|
|
3595
3595
|
id: `node${yt()}`,
|
|
3596
3596
|
shape: "custom-node",
|
|
3597
3597
|
width: g ? 154 : 34,
|
|
3598
3598
|
height: g ? 54 : 34,
|
|
3599
|
-
data:
|
|
3599
|
+
data: b,
|
|
3600
3600
|
zIndex: 5
|
|
3601
3601
|
});
|
|
3602
3602
|
i.value.start(C, p);
|
|
3603
3603
|
}, h = (p) => {
|
|
3604
|
-
const
|
|
3605
|
-
return
|
|
3604
|
+
const b = p.getAttribute("data-type");
|
|
3605
|
+
return b ? { type: b } : {};
|
|
3606
3606
|
};
|
|
3607
|
-
return (p,
|
|
3607
|
+
return (p, b) => (w(), B("div", {
|
|
3608
3608
|
ref_key: "dndPanel",
|
|
3609
3609
|
ref: r,
|
|
3610
3610
|
class: "dnd-panel"
|
|
@@ -3614,7 +3614,7 @@ const bc = ["data-type"], wc = /* @__PURE__ */ pe({
|
|
|
3614
3614
|
ref: l,
|
|
3615
3615
|
class: "nodes-wrapper"
|
|
3616
3616
|
}, [
|
|
3617
|
-
(
|
|
3617
|
+
(w(), B(_e, null, je(n, (g) => E("li", {
|
|
3618
3618
|
key: g.id,
|
|
3619
3619
|
class: Oe([
|
|
3620
3620
|
"node-item",
|
|
@@ -3639,7 +3639,7 @@ const bc = ["data-type"], wc = /* @__PURE__ */ pe({
|
|
|
3639
3639
|
}
|
|
3640
3640
|
};
|
|
3641
3641
|
function kc(e, t, n, o, a, i) {
|
|
3642
|
-
return
|
|
3642
|
+
return w(), B("div", {
|
|
3643
3643
|
class: Oe(["node-item circle-node", { ready: n.node.ready }])
|
|
3644
3644
|
}, " 开始 ", 2);
|
|
3645
3645
|
}
|
|
@@ -3656,11 +3656,11 @@ const Cc = /* @__PURE__ */ fe(Ac, [["render", kc]]), xc = {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
};
|
|
3658
3658
|
function Ec(e, t, n, o, a, i) {
|
|
3659
|
-
return
|
|
3659
|
+
return w(), B("div", {
|
|
3660
3660
|
class: Oe(["node-item circle-node", { ready: n.node.ready }])
|
|
3661
3661
|
}, " 结束 ", 2);
|
|
3662
3662
|
}
|
|
3663
|
-
const Tc = /* @__PURE__ */ fe(xc, [["render", Ec]]), Sc = ["CMDB", "JOB", "BK", "Nodeman", "Monitor", "GCLOUD", "TCM", "WechatWork"],
|
|
3663
|
+
const Tc = /* @__PURE__ */ fe(xc, [["render", Ec]]), Sc = ["CMDB", "JOB", "BK", "Nodeman", "Monitor", "GCLOUD", "TCM", "WechatWork"], _a = {
|
|
3664
3664
|
bk_http_request: "bkflow-canvas-icon bkflow-canvas-bk-plugin-http",
|
|
3665
3665
|
bk_notify: "bkflow-canvas-icon bkflow-canvas-bk-plugin-notify",
|
|
3666
3666
|
sleep_timer: "bkflow-canvas-icon bkflow-canvas-bk-plugin-timer",
|
|
@@ -3689,8 +3689,8 @@ const Tc = /* @__PURE__ */ fe(xc, [["render", Ec]]), Sc = ["CMDB", "JOB", "BK",
|
|
|
3689
3689
|
methods: {
|
|
3690
3690
|
getIconCls(e) {
|
|
3691
3691
|
const { code: t, group: n } = e;
|
|
3692
|
-
if (
|
|
3693
|
-
return
|
|
3692
|
+
if (_a[t])
|
|
3693
|
+
return _a[t];
|
|
3694
3694
|
if (t === "remote_plugin")
|
|
3695
3695
|
return "bkflow-canvas-icon bkflow-canvas-sys-third-party";
|
|
3696
3696
|
const o = Sc.find((a) => new RegExp(a).test(n));
|
|
@@ -3702,19 +3702,19 @@ const Tc = /* @__PURE__ */ fe(xc, [["render", Ec]]), Sc = ["CMDB", "JOB", "BK",
|
|
|
3702
3702
|
class: "stage-name"
|
|
3703
3703
|
}, Pc = { class: "node-name" }, Rc = { class: "name-text" };
|
|
3704
3704
|
function $c(e, t, n, o, a, i) {
|
|
3705
|
-
return
|
|
3705
|
+
return w(), B("div", {
|
|
3706
3706
|
class: Oe(["node-item task-node", { "empty-node": i.isEmptyNode }])
|
|
3707
3707
|
}, [
|
|
3708
3708
|
E("div", Mc, [
|
|
3709
|
-
n.node.icon ? (
|
|
3709
|
+
n.node.icon ? (w(), B("img", {
|
|
3710
3710
|
key: 0,
|
|
3711
3711
|
class: "node-icon",
|
|
3712
3712
|
src: n.node.icon
|
|
3713
|
-
}, null, 8, Lc)) : (
|
|
3713
|
+
}, null, 8, Lc)) : (w(), B("i", {
|
|
3714
3714
|
key: 1,
|
|
3715
3715
|
class: Oe(["node-icon-font", i.getIconCls(n.node)])
|
|
3716
3716
|
}, null, 2)),
|
|
3717
|
-
n.node.stage_name ? (
|
|
3717
|
+
n.node.stage_name ? (w(), B("div", Oc, ge(n.node.stage_name), 1)) : ue("", !0)
|
|
3718
3718
|
]),
|
|
3719
3719
|
E("div", Pc, [
|
|
3720
3720
|
E("div", Rc, ge(i.isEmptyNode ? "- 节点未配置 -" : n.node.name), 1)
|
|
@@ -3731,7 +3731,7 @@ const zc = /* @__PURE__ */ fe(Dc, [["render", $c], ["__scopeId", "data-v-53ab1e5
|
|
|
3731
3731
|
}
|
|
3732
3732
|
};
|
|
3733
3733
|
function Vc(e, t, n, o, a, i) {
|
|
3734
|
-
return
|
|
3734
|
+
return w(), B("div", {
|
|
3735
3735
|
class: Oe([
|
|
3736
3736
|
"node-item gateway-node",
|
|
3737
3737
|
{ "fail-skip": n.node.status === "FINISHED" && n.node.skip },
|
|
@@ -3751,7 +3751,7 @@ const Nc = /* @__PURE__ */ fe(Bc, [["render", Vc]]), Fc = {
|
|
|
3751
3751
|
}
|
|
3752
3752
|
};
|
|
3753
3753
|
function Ic(e, t, n, o, a, i) {
|
|
3754
|
-
return
|
|
3754
|
+
return w(), B("div", {
|
|
3755
3755
|
class: Oe(["node-item gateway-node", { ready: n.node.ready }])
|
|
3756
3756
|
}, [...t[0] || (t[0] = [
|
|
3757
3757
|
E("div", { class: "bpmn-flow-icon bkflow-canvas-icon bkflow-canvas-node-parallelgateway" }, null, -1)
|
|
@@ -3767,7 +3767,7 @@ const Uc = /* @__PURE__ */ fe(Fc, [["render", Ic]]), jc = {
|
|
|
3767
3767
|
}
|
|
3768
3768
|
};
|
|
3769
3769
|
function Gc(e, t, n, o, a, i) {
|
|
3770
|
-
return
|
|
3770
|
+
return w(), B("div", {
|
|
3771
3771
|
class: Oe([
|
|
3772
3772
|
"node-item gateway-node",
|
|
3773
3773
|
{ "fail-skip": n.node.status === "FINISHED" && n.node.skip },
|
|
@@ -3787,7 +3787,7 @@ const qc = /* @__PURE__ */ fe(jc, [["render", Gc]]), Hc = {
|
|
|
3787
3787
|
}
|
|
3788
3788
|
};
|
|
3789
3789
|
function Wc(e, t, n, o, a, i) {
|
|
3790
|
-
return
|
|
3790
|
+
return w(), B("div", {
|
|
3791
3791
|
class: Oe(["node-item gateway-node", { ready: n.node.ready }])
|
|
3792
3792
|
}, [...t[0] || (t[0] = [
|
|
3793
3793
|
E("div", { class: "bpmn-flow-icon bkflow-canvas-icon bkflow-canvas-node-convergegateway" }, null, -1)
|
|
@@ -3816,22 +3816,22 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
3816
3816
|
},
|
|
3817
3817
|
setup(e) {
|
|
3818
3818
|
const t = e;
|
|
3819
|
-
return (n, o) => (
|
|
3820
|
-
t.editable ? (
|
|
3821
|
-
t.node.error_ignorable ? (
|
|
3819
|
+
return (n, o) => (w(), B("div", Yc, [
|
|
3820
|
+
t.editable ? (w(), B(_e, { key: 0 }, [
|
|
3821
|
+
t.node.error_ignorable ? (w(), B("span", Zc, [...o[0] || (o[0] = [
|
|
3822
3822
|
E("span", { class: "text" }, "AS", -1)
|
|
3823
3823
|
])])) : ue("", !0),
|
|
3824
|
-
t.node.skippable ? (
|
|
3824
|
+
t.node.skippable ? (w(), B("span", Kc, [...o[1] || (o[1] = [
|
|
3825
3825
|
E("span", { class: "text" }, "MS", -1)
|
|
3826
3826
|
])])) : ue("", !0),
|
|
3827
|
-
t.node.retryable ? (
|
|
3827
|
+
t.node.retryable ? (w(), B("span", Qc, [...o[2] || (o[2] = [
|
|
3828
3828
|
E("span", { class: "text" }, "MR", -1)
|
|
3829
3829
|
])])) : ue("", !0),
|
|
3830
|
-
t.node.auto_retry?.enable ? (
|
|
3830
|
+
t.node.auto_retry?.enable ? (w(), B("span", Xc, [...o[3] || (o[3] = [
|
|
3831
3831
|
E("span", { class: "text" }, "AR", -1)
|
|
3832
3832
|
])])) : ue("", !0)
|
|
3833
3833
|
], 64)) : ue("", !0),
|
|
3834
|
-
t.node.create_method === "mock" ? (
|
|
3834
|
+
t.node.create_method === "mock" ? (w(), B("span", eu, "MOCK")) : ue("", !0)
|
|
3835
3835
|
]));
|
|
3836
3836
|
}
|
|
3837
3837
|
}), nu = /* @__PURE__ */ fe(tu, [["__scopeId", "data-v-077f8bb9"]]), ou = { class: "node-operate-actions" }, au = {
|
|
@@ -3852,7 +3852,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
3852
3852
|
};
|
|
3853
3853
|
return (r, l) => {
|
|
3854
3854
|
const c = Fe("bk-tooltips");
|
|
3855
|
-
return
|
|
3855
|
+
return w(), B("div", ou, [
|
|
3856
3856
|
Te(E("i", {
|
|
3857
3857
|
class: "delete-btn bk-incident-icon incident-shanchujiedian",
|
|
3858
3858
|
onClick: l[0] || (l[0] = (u) => n("delete"))
|
|
@@ -3863,8 +3863,8 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
3863
3863
|
class: "more-btn bkflow-canvas-icon bkflow-canvas-more-fill",
|
|
3864
3864
|
onClick: i
|
|
3865
3865
|
}),
|
|
3866
|
-
o.value ? (
|
|
3867
|
-
(
|
|
3866
|
+
o.value ? (w(), B("div", au, [
|
|
3867
|
+
(w(!0), B(_e, null, je(a.value, (u) => (w(), B("div", {
|
|
3868
3868
|
class: "more-btn-item",
|
|
3869
3869
|
key: u.id,
|
|
3870
3870
|
onClick: (v) => s(u.id)
|
|
@@ -3885,17 +3885,17 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
3885
3885
|
},
|
|
3886
3886
|
setup(e) {
|
|
3887
3887
|
const t = e;
|
|
3888
|
-
return (n, o) => (
|
|
3888
|
+
return (n, o) => (w(), B("div", pu, [
|
|
3889
3889
|
E("img", {
|
|
3890
3890
|
class: "option-img",
|
|
3891
3891
|
src: t.option.iconUrl
|
|
3892
3892
|
}, null, 8, fu),
|
|
3893
3893
|
E("div", vu, ge(t.option.name), 1),
|
|
3894
|
-
t.option.type === "group" ? (
|
|
3894
|
+
t.option.type === "group" ? (w(), oe($e(Di), {
|
|
3895
3895
|
key: 0,
|
|
3896
3896
|
class: "angle-icon"
|
|
3897
3897
|
})) : ue("", !0),
|
|
3898
|
-
t.option.type === "link" ? (
|
|
3898
|
+
t.option.type === "link" ? (w(), oe($e(Mi), {
|
|
3899
3899
|
key: 1,
|
|
3900
3900
|
class: "arrow-icon"
|
|
3901
3901
|
})) : ue("", !0)
|
|
@@ -3912,13 +3912,13 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
3912
3912
|
const n = e, o = t, a = ke(() => n.isSearch ? "搜索结果为空" : n.title || "暂无数据");
|
|
3913
3913
|
return (i, s) => {
|
|
3914
3914
|
const r = te("bk-exception");
|
|
3915
|
-
return
|
|
3915
|
+
return w(), oe(r, {
|
|
3916
3916
|
scene: "part",
|
|
3917
3917
|
type: n.isSearch ? "search-empty" : "empty",
|
|
3918
3918
|
title: a.value
|
|
3919
3919
|
}, {
|
|
3920
3920
|
default: M(() => [
|
|
3921
|
-
n.isSearch ? (
|
|
3921
|
+
n.isSearch ? (w(), B("div", hu, [
|
|
3922
3922
|
s[1] || (s[1] = de(" 可以尝试 调整关键词 或 ", -1)),
|
|
3923
3923
|
E("span", {
|
|
3924
3924
|
class: "clear-button",
|
|
@@ -3964,7 +3964,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
3964
3964
|
log_plugin: "incident-rizhi",
|
|
3965
3965
|
profling: "incident-profling",
|
|
3966
3966
|
图谱: "incident-tupu"
|
|
3967
|
-
}, a =
|
|
3967
|
+
}, a = ns(), i = os(), s = e, r = t, l = he(
|
|
3968
3968
|
s.dataGroupPlugins.map((d) => ({
|
|
3969
3969
|
id: d.id,
|
|
3970
3970
|
name: d.alias,
|
|
@@ -4006,7 +4006,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4006
4006
|
v.value = "", y.value = [...u];
|
|
4007
4007
|
}, p = (d) => {
|
|
4008
4008
|
r("addNode", d);
|
|
4009
|
-
},
|
|
4009
|
+
}, b = (d, A) => {
|
|
4010
4010
|
r("addPlugin", d, A);
|
|
4011
4011
|
}, g = (d) => {
|
|
4012
4012
|
r("openPluginSelect", d);
|
|
@@ -4023,7 +4023,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4023
4023
|
};
|
|
4024
4024
|
return (d, A) => {
|
|
4025
4025
|
const k = te("bk-input"), S = te("bk-popover"), H = te("bk-button"), j = Fe("bk-tooltips");
|
|
4026
|
-
return
|
|
4026
|
+
return w(), B("div", yu, [
|
|
4027
4027
|
E("div", bu, [
|
|
4028
4028
|
_(k, {
|
|
4029
4029
|
modelValue: v.value,
|
|
@@ -4036,10 +4036,10 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4036
4036
|
}, null, 8, ["modelValue"])
|
|
4037
4037
|
]),
|
|
4038
4038
|
E("div", wu, [
|
|
4039
|
-
(
|
|
4039
|
+
(w(!0), B(_e, null, je(y.value, (D) => (w(), B(_e, {
|
|
4040
4040
|
key: D.id
|
|
4041
4041
|
}, [
|
|
4042
|
-
D.id === "logic" ? (
|
|
4042
|
+
D.id === "logic" ? (w(), oe(S, {
|
|
4043
4043
|
key: 0,
|
|
4044
4044
|
theme: "light",
|
|
4045
4045
|
placement: "right-start",
|
|
@@ -4051,7 +4051,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4051
4051
|
}, {
|
|
4052
4052
|
content: M(() => [
|
|
4053
4053
|
E("div", _u, [
|
|
4054
|
-
(
|
|
4054
|
+
(w(!0), B(_e, null, je(D.children, (N) => Te((w(), B("i", {
|
|
4055
4055
|
class: Oe(["bk-incident-icon", N.icon]),
|
|
4056
4056
|
key: N.id,
|
|
4057
4057
|
onClick: (ie) => p(N.id)
|
|
@@ -4064,7 +4064,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4064
4064
|
_(En, { option: D }, null, 8, ["option"])
|
|
4065
4065
|
]),
|
|
4066
4066
|
_: 2
|
|
4067
|
-
}, 1024)) : D.id === "data" ? (
|
|
4067
|
+
}, 1024)) : D.id === "data" ? (w(), oe(S, {
|
|
4068
4068
|
key: 1,
|
|
4069
4069
|
theme: "light",
|
|
4070
4070
|
placement: "right-start",
|
|
@@ -4076,10 +4076,10 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4076
4076
|
}, {
|
|
4077
4077
|
content: M(() => [
|
|
4078
4078
|
E("div", ku, [
|
|
4079
|
-
(
|
|
4079
|
+
(w(!0), B(_e, null, je(D.children, (N) => (w(), B("div", {
|
|
4080
4080
|
class: "data-plugin-item",
|
|
4081
4081
|
key: N.id,
|
|
4082
|
-
onClick: (ie) =>
|
|
4082
|
+
onClick: (ie) => b(N.id, "data")
|
|
4083
4083
|
}, [
|
|
4084
4084
|
E("i", {
|
|
4085
4085
|
class: Oe(["bk-incident-icon", N.icon])
|
|
@@ -4087,7 +4087,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4087
4087
|
E("div", xu, ge(N.name), 1)
|
|
4088
4088
|
], 8, Cu))), 128))
|
|
4089
4089
|
]),
|
|
4090
|
-
D.children && D.children.length === 0 ? (
|
|
4090
|
+
D.children && D.children.length === 0 ? (w(), oe(Mt, {
|
|
4091
4091
|
key: 0,
|
|
4092
4092
|
class: "group-empty-exception",
|
|
4093
4093
|
title: "暂无数据插件"
|
|
@@ -4097,7 +4097,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4097
4097
|
_(En, { option: D }, null, 8, ["option"])
|
|
4098
4098
|
]),
|
|
4099
4099
|
_: 2
|
|
4100
|
-
}, 1024)) : D.id === "agent" ? (
|
|
4100
|
+
}, 1024)) : D.id === "agent" ? (w(), oe(S, {
|
|
4101
4101
|
key: 2,
|
|
4102
4102
|
theme: "light",
|
|
4103
4103
|
placement: "right-start",
|
|
@@ -4110,16 +4110,16 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4110
4110
|
content: M(() => [
|
|
4111
4111
|
E("div", Eu, [
|
|
4112
4112
|
E("div", Tu, [
|
|
4113
|
-
(
|
|
4113
|
+
(w(!0), B(_e, null, je(D.children, (N) => (w(), B("div", {
|
|
4114
4114
|
class: "agent-plugin-item",
|
|
4115
4115
|
key: N.id,
|
|
4116
|
-
onClick: (ie) =>
|
|
4116
|
+
onClick: (ie) => b(N.id, "agent")
|
|
4117
4117
|
}, [
|
|
4118
4118
|
E("span", Du, ge(N.name), 1),
|
|
4119
4119
|
E("span", Mu, "(" + ge(N.enName) + ")", 1)
|
|
4120
4120
|
], 8, Su))), 128))
|
|
4121
4121
|
]),
|
|
4122
|
-
D.children && D.children.length === 0 ? (
|
|
4122
|
+
D.children && D.children.length === 0 ? (w(), oe(Mt, {
|
|
4123
4123
|
key: 0,
|
|
4124
4124
|
class: "group-empty-exception",
|
|
4125
4125
|
title: "暂无智能体插件"
|
|
@@ -4146,13 +4146,13 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4146
4146
|
_(En, { option: D }, null, 8, ["option"])
|
|
4147
4147
|
]),
|
|
4148
4148
|
_: 2
|
|
4149
|
-
}, 1024)) : (
|
|
4149
|
+
}, 1024)) : (w(), oe(En, {
|
|
4150
4150
|
key: 3,
|
|
4151
4151
|
option: D,
|
|
4152
4152
|
onClick: (N) => g(D.id)
|
|
4153
4153
|
}, null, 8, ["option", "onClick"]))
|
|
4154
4154
|
], 64))), 128)),
|
|
4155
|
-
y.value.length === 0 ? (
|
|
4155
|
+
y.value.length === 0 ? (w(), oe(Mt, {
|
|
4156
4156
|
key: 0,
|
|
4157
4157
|
"is-search": v.value.length > 0,
|
|
4158
4158
|
onClear: h
|
|
@@ -4191,7 +4191,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4191
4191
|
parallelgateway: Uc,
|
|
4192
4192
|
conditionalparallelgateway: qc,
|
|
4193
4193
|
convergegateway: Jc
|
|
4194
|
-
}, o =
|
|
4194
|
+
}, o = Wa("getNode");
|
|
4195
4195
|
if (!o)
|
|
4196
4196
|
throw new Error("getNode is not defined");
|
|
4197
4197
|
const a = e, i = t, s = G({
|
|
@@ -4199,21 +4199,21 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4199
4199
|
type: "",
|
|
4200
4200
|
name: ""
|
|
4201
4201
|
}), r = G(), l = G(!1), c = ke(() => {
|
|
4202
|
-
const p = o(), { type:
|
|
4203
|
-
return n[
|
|
4202
|
+
const p = o(), { type: b } = p.getData();
|
|
4203
|
+
return n[b];
|
|
4204
4204
|
});
|
|
4205
4205
|
ot(() => {
|
|
4206
4206
|
const p = o();
|
|
4207
|
-
s.value = p.getData(), p.on("change:data", ({ current:
|
|
4208
|
-
s.value =
|
|
4207
|
+
s.value = p.getData(), p.on("change:data", ({ current: b }) => {
|
|
4208
|
+
s.value = b;
|
|
4209
4209
|
});
|
|
4210
4210
|
}), vn(() => {
|
|
4211
4211
|
r.value?.resetPopover();
|
|
4212
4212
|
});
|
|
4213
4213
|
const u = (p) => {
|
|
4214
4214
|
i("addNode", s.value.id, p), r.value.hide();
|
|
4215
|
-
}, v = (p,
|
|
4216
|
-
i("addPlugin", s.value.id, p,
|
|
4215
|
+
}, v = (p, b) => {
|
|
4216
|
+
i("addPlugin", s.value.id, p, b), r.value.hide();
|
|
4217
4217
|
}, y = (p) => {
|
|
4218
4218
|
i("addNodeAndSelectPlugin", s.value.id, p), r.value.hide();
|
|
4219
4219
|
}, m = () => {
|
|
@@ -4223,15 +4223,15 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4223
4223
|
}, h = (p) => {
|
|
4224
4224
|
p === "copyNode" ? i("copyNodeClick", s.value.id) : p === "copyNodeAndInsert" ? i("copyNodeAndInsertClick", s.value.id) : p === "detachEdges" && i("detachEdgesClick", s.value.id);
|
|
4225
4225
|
};
|
|
4226
|
-
return (p,
|
|
4226
|
+
return (p, b) => {
|
|
4227
4227
|
const g = te("bk-popover");
|
|
4228
|
-
return
|
|
4229
|
-
["task", "tasknode"].includes(s.value.type) ? (
|
|
4228
|
+
return w(), B("div", Pu, [
|
|
4229
|
+
["task", "tasknode"].includes(s.value.type) ? (w(), oe(nu, {
|
|
4230
4230
|
key: 0,
|
|
4231
4231
|
node: s.value,
|
|
4232
4232
|
editable: a.editable
|
|
4233
4233
|
}, null, 8, ["node", "editable"])) : ue("", !0),
|
|
4234
|
-
(
|
|
4234
|
+
(w(), oe(g, {
|
|
4235
4235
|
ref_key: "popoverRef",
|
|
4236
4236
|
ref: r,
|
|
4237
4237
|
"ext-cls": "custom-node-popover",
|
|
@@ -4241,7 +4241,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4241
4241
|
content: s.value.name,
|
|
4242
4242
|
key: s.value.id,
|
|
4243
4243
|
arrow: !1,
|
|
4244
|
-
onAfterHidden:
|
|
4244
|
+
onAfterHidden: b[0] || (b[0] = (C) => l.value = !1)
|
|
4245
4245
|
}, {
|
|
4246
4246
|
content: M(() => [
|
|
4247
4247
|
E("div", {
|
|
@@ -4251,7 +4251,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4251
4251
|
class: "bkflow-canvas-icon bkflow-canvas-add-fill",
|
|
4252
4252
|
onClick: m
|
|
4253
4253
|
}),
|
|
4254
|
-
l.value ? (
|
|
4254
|
+
l.value ? (w(), B("div", Ru, [
|
|
4255
4255
|
_(Ou, {
|
|
4256
4256
|
"plugin-group-list": a.pluginGroupList,
|
|
4257
4257
|
"data-group-plugins": a.dataGroupPlugins,
|
|
@@ -4268,7 +4268,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4268
4268
|
})
|
|
4269
4269
|
]),
|
|
4270
4270
|
default: M(() => [
|
|
4271
|
-
(
|
|
4271
|
+
(w(), oe(mn(c.value), {
|
|
4272
4272
|
node: s.value,
|
|
4273
4273
|
class: Oe(s.value.status ? s.value.status.toLowerCase() : "")
|
|
4274
4274
|
}, null, 8, ["node", "class"]))
|
|
@@ -4317,7 +4317,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4317
4317
|
r.value.positionPoint({ x, y: W }, 40, 134);
|
|
4318
4318
|
});
|
|
4319
4319
|
const v = () => {
|
|
4320
|
-
r.value = new
|
|
4320
|
+
r.value = new es({
|
|
4321
4321
|
container: l.value,
|
|
4322
4322
|
grid: {
|
|
4323
4323
|
size: 1,
|
|
@@ -4450,7 +4450,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4450
4450
|
pointerEvents: "none"
|
|
4451
4451
|
// 解决节点的事件无法响应
|
|
4452
4452
|
})
|
|
4453
|
-
), m(), Xl(r.value, i.editable), r.value.on("node:moving", h), r.value.on("node:moved",
|
|
4453
|
+
), m(), Xl(r.value, i.editable), r.value.on("node:moving", h), r.value.on("node:moved", b), r.value.on("node:click", co(C, 200)), r.value.on("node:dblclick", d), r.value.on("node:mouseenter", A), r.value.on("node:mouseleave", k), r.value.on("edge:click", co(S, 200)), r.value.on("edge:mouseenter", H), r.value.on("edge:click", j), r.value.on("edge:added", D), r.value.on("edge:change:labels", ie), r.value.on("edge:mouseenter", ({ cell: x }) => {
|
|
4454
4454
|
i.editable && x.addTools([
|
|
4455
4455
|
{
|
|
4456
4456
|
name: "button-remove",
|
|
@@ -4466,7 +4466,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4466
4466
|
x.removeTools();
|
|
4467
4467
|
});
|
|
4468
4468
|
}, y = () => {
|
|
4469
|
-
const x = Hl(c.value.location, c.value.activities), W =
|
|
4469
|
+
const x = Hl(c.value.location, c.value.activities), W = ba(c.value.line);
|
|
4470
4470
|
r.value?.addNodes(x), r.value?.addEdges(W);
|
|
4471
4471
|
}, m = () => {
|
|
4472
4472
|
Hi({
|
|
@@ -4520,7 +4520,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4520
4520
|
}, h = ({ node: x }) => {
|
|
4521
4521
|
s("nodeMoving", x);
|
|
4522
4522
|
}, p = ({ node: x }) => {
|
|
4523
|
-
},
|
|
4523
|
+
}, b = ({ node: x }) => {
|
|
4524
4524
|
const W = x.position(), q = [...c.value.location], J = q.findIndex((ee) => ee.id === x.id);
|
|
4525
4525
|
q.splice(J, 1, { ...q[J], x: W.x, y: W.y }), c.value = {
|
|
4526
4526
|
...c.value,
|
|
@@ -4700,10 +4700,10 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4700
4700
|
ee ? J.flows[q].source = K : J.flows[q].target = K;
|
|
4701
4701
|
const le = J.line.findIndex((xe) => xe.id === q);
|
|
4702
4702
|
le > -1 && J.line.splice(le, 1, W);
|
|
4703
|
-
const ve =
|
|
4703
|
+
const ve = ga(K, J), we = ga(ae, J), ye = ee ? "outgoing" : "incoming";
|
|
4704
4704
|
Array.isArray(ve[ye]) ? ve[ye].push(q) : ve[ye] = q, Array.isArray(we[ye]) ? we[ye] = we[ye].filter((xe) => xe !== q) : we[ye] = "", c.value = J, X();
|
|
4705
4705
|
}, F = (x) => {
|
|
4706
|
-
const W =
|
|
4706
|
+
const W = ba(x);
|
|
4707
4707
|
r.value?.addEdges(W), R(x);
|
|
4708
4708
|
}, ne = (x) => {
|
|
4709
4709
|
r.value?.removeNode(x);
|
|
@@ -4819,15 +4819,15 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4819
4819
|
insertEdgesToCanvas: F,
|
|
4820
4820
|
updateEdgeLabel: N,
|
|
4821
4821
|
updateNodeData: I
|
|
4822
|
-
}), (x, W) => (
|
|
4822
|
+
}), (x, W) => (w(), B("div", {
|
|
4823
4823
|
class: Oe(["bkflow-canvas-container", { "bkflow-canvas-view": !i.editable }])
|
|
4824
4824
|
}, [
|
|
4825
|
-
r.value ? (
|
|
4825
|
+
r.value ? (w(), oe(gc, {
|
|
4826
4826
|
key: 0,
|
|
4827
4827
|
instance: r.value,
|
|
4828
4828
|
onDownload: Z
|
|
4829
4829
|
}, null, 8, ["instance"])) : ue("", !0),
|
|
4830
|
-
r.value && i.editable ? (
|
|
4830
|
+
r.value && i.editable ? (w(), oe(_c, {
|
|
4831
4831
|
key: 1,
|
|
4832
4832
|
instance: r.value,
|
|
4833
4833
|
onDragging: p,
|
|
@@ -4918,7 +4918,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4918
4918
|
};
|
|
4919
4919
|
return _("div", {
|
|
4920
4920
|
class: "thead-custom"
|
|
4921
|
-
}, [d.column.label, Te(_(
|
|
4921
|
+
}, [d.column.label, Te(_(Xa, {
|
|
4922
4922
|
class: "info-icon"
|
|
4923
4923
|
}, null), [[Fe("bk-tooltips"), j]])]);
|
|
4924
4924
|
}
|
|
@@ -4926,7 +4926,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4926
4926
|
}
|
|
4927
4927
|
}, l = (d) => d.source_type === "system" ? "系统变量" : d.source_type === "custom" ? n.customVariableTypes.find((k) => k.code === d.custom_type)?.name || "自定义" : "组件", c = (d) => {
|
|
4928
4928
|
const A = d.length > 1 ? `确认删除所选的${d.length}个变量?` : `确认删除全局变量"${d[0]}"?`;
|
|
4929
|
-
|
|
4929
|
+
as({
|
|
4930
4930
|
title: A,
|
|
4931
4931
|
content: "若该变量被节点引用,请及时检查并更新节点配置",
|
|
4932
4932
|
width: 450,
|
|
@@ -4974,7 +4974,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4974
4974
|
theme: "success",
|
|
4975
4975
|
message: "复制成功"
|
|
4976
4976
|
});
|
|
4977
|
-
},
|
|
4977
|
+
}, b = (d, A) => {
|
|
4978
4978
|
const k = {
|
|
4979
4979
|
...n.constants
|
|
4980
4980
|
};
|
|
@@ -4989,13 +4989,13 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
4989
4989
|
};
|
|
4990
4990
|
return (d, A) => {
|
|
4991
4991
|
const k = te("bk-button"), S = te("bk-checkbox"), H = te("bk-table-column"), j = te("bk-overflow-title"), D = te("bk-switcher"), N = te("bk-popover"), ie = te("bk-table"), re = Fe("bk-tooltips");
|
|
4992
|
-
return
|
|
4992
|
+
return w(), B("div", Nu, [E("div", Fu, [E("div", Iu, [_(k, {
|
|
4993
4993
|
theme: "primary",
|
|
4994
4994
|
onClick: A[0] || (A[0] = ($) => o("create"))
|
|
4995
4995
|
}, {
|
|
4996
4996
|
default: M(() => [...A[7] || (A[7] = [de("新建", -1)])]),
|
|
4997
4997
|
_: 1
|
|
4998
|
-
}), i.value.length > 0 ? (
|
|
4998
|
+
}), i.value.length > 0 ? (w(), B(_e, {
|
|
4999
4999
|
key: 0
|
|
5000
5000
|
}, [_(k, {
|
|
5001
5001
|
onClick: f
|
|
@@ -5029,7 +5029,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5029
5029
|
}, {
|
|
5030
5030
|
default: M(({
|
|
5031
5031
|
row: $
|
|
5032
|
-
}) => [E("div", Gu, [$.source_type === "system" ? (
|
|
5032
|
+
}) => [E("div", Gu, [$.source_type === "system" ? (w(), B("i", qu)) : (w(), B("span", {
|
|
5033
5033
|
key: 1,
|
|
5034
5034
|
onClick: A[3] || (A[3] = Ne(() => {
|
|
5035
5035
|
}, ["stop"]))
|
|
@@ -5106,7 +5106,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5106
5106
|
disabled: !n.editable || ["system", "component_outputs"].includes($.source_type),
|
|
5107
5107
|
onClick: A[4] || (A[4] = Ne(() => {
|
|
5108
5108
|
}, ["stop"])),
|
|
5109
|
-
onChange: (P) =>
|
|
5109
|
+
onChange: (P) => b($, P)
|
|
5110
5110
|
}, null, 8, ["value", "disabled", "onChange"])]),
|
|
5111
5111
|
_: 1
|
|
5112
5112
|
}), _(H, {
|
|
@@ -5136,7 +5136,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5136
5136
|
}, {
|
|
5137
5137
|
default: M(({
|
|
5138
5138
|
row: $
|
|
5139
|
-
}) => [E("div", Yu, [n.editable && $.source_type !== "system" ? (
|
|
5139
|
+
}) => [E("div", Yu, [n.editable && $.source_type !== "system" ? (w(), B(_e, {
|
|
5140
5140
|
key: 0
|
|
5141
5141
|
}, [_(k, {
|
|
5142
5142
|
theme: "primary",
|
|
@@ -5165,7 +5165,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5165
5165
|
}, ["stop"]))
|
|
5166
5166
|
})]),
|
|
5167
5167
|
_: 2
|
|
5168
|
-
}, 1024)], 64)) : (
|
|
5168
|
+
}, 1024)], 64)) : (w(), oe(k, {
|
|
5169
5169
|
key: 1,
|
|
5170
5170
|
theme: "primary",
|
|
5171
5171
|
size: "small",
|
|
@@ -5201,7 +5201,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5201
5201
|
};
|
|
5202
5202
|
return (r, l) => {
|
|
5203
5203
|
const c = te("bk-input");
|
|
5204
|
-
return
|
|
5204
|
+
return w(), oe(c, {
|
|
5205
5205
|
modelValue: a.value,
|
|
5206
5206
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => a.value = u),
|
|
5207
5207
|
type: i.value,
|
|
@@ -5225,7 +5225,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5225
5225
|
setup(e, { emit: t }) {
|
|
5226
5226
|
self.MonacoEnvironment = {
|
|
5227
5227
|
getWorker(c, u) {
|
|
5228
|
-
return u === "json" ? new
|
|
5228
|
+
return u === "json" ? new is() : u === "css" || u === "scss" || u === "less" ? new rs() : u === "html" || u === "handlebars" || u === "razor" ? new ls() : u === "typescript" || u === "javascript" ? new cs() : new ss();
|
|
5229
5229
|
}
|
|
5230
5230
|
};
|
|
5231
5231
|
const n = {
|
|
@@ -5271,7 +5271,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5271
5271
|
}, l = (c) => {
|
|
5272
5272
|
a("update:modelValue", c), a("change", c);
|
|
5273
5273
|
};
|
|
5274
|
-
return (c, u) => (
|
|
5274
|
+
return (c, u) => (w(), B("div", td, [
|
|
5275
5275
|
E("div", {
|
|
5276
5276
|
ref_key: "monacoContainerRef",
|
|
5277
5277
|
ref: i,
|
|
@@ -5311,14 +5311,14 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5311
5311
|
};
|
|
5312
5312
|
return l.name || c[l.custom_type];
|
|
5313
5313
|
};
|
|
5314
|
-
return (l, c) => (
|
|
5315
|
-
(
|
|
5314
|
+
return (l, c) => (w(), B("div", ad, [
|
|
5315
|
+
(w(!0), B(_e, null, je(n.variables, (u) => (w(), B("div", {
|
|
5316
5316
|
key: u.key,
|
|
5317
5317
|
class: "render-form-item"
|
|
5318
5318
|
}, [
|
|
5319
5319
|
E("div", sd, ge(r(u)), 1),
|
|
5320
5320
|
E("div", id, [
|
|
5321
|
-
(
|
|
5321
|
+
(w(), oe(mn(s(u)), {
|
|
5322
5322
|
"model-value": a.value[u.key],
|
|
5323
5323
|
variable: u,
|
|
5324
5324
|
disabled: !n.editable,
|
|
@@ -5344,10 +5344,10 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5344
5344
|
const o = e, a = n, i = G(Re(o.variable)), s = G(o.variable.key), r = G(), l = {
|
|
5345
5345
|
name: [{ required: !0, message: "请输入变量名称" }],
|
|
5346
5346
|
key: [
|
|
5347
|
-
{ validator: (
|
|
5347
|
+
{ validator: (b) => b.trim().length > 0, message: "KEY不能为空", trigger: "blur" },
|
|
5348
5348
|
{
|
|
5349
5349
|
// 合法变量key正则,eg:${fsdf_f32sd},fsdf_f32sd
|
|
5350
|
-
validator: (
|
|
5350
|
+
validator: (b) => /(^\${(?!_env_|_system\.)[a-zA-Z_]\w*}$)|(^(?!_env_|_system\.)[a-zA-Z_]\w*$)/.test(b),
|
|
5351
5351
|
message: "变量KEY由英文字母、数字、下划线组成,不允许使用系统变量及业务环境变量命名规则,且不能以数字开头",
|
|
5352
5352
|
trigger: "blur"
|
|
5353
5353
|
}
|
|
@@ -5356,32 +5356,32 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5356
5356
|
}, c = ke(() => o.variable.source_type !== "custom" ? [
|
|
5357
5357
|
{ value: "component_inputs", label: "组件" },
|
|
5358
5358
|
{ value: "component_outputs", label: "组件" }
|
|
5359
|
-
] : o.customVariableTypes.filter((
|
|
5360
|
-
value:
|
|
5361
|
-
label:
|
|
5359
|
+
] : o.customVariableTypes.filter((b) => ["textarea", "input", "int", "json_variable"].includes(b.code)).map((b) => ({
|
|
5360
|
+
value: b.code,
|
|
5361
|
+
label: b.name
|
|
5362
5362
|
}))), u = ke(() => ({
|
|
5363
5363
|
...i.value,
|
|
5364
5364
|
key: s.value
|
|
5365
5365
|
})), v = ke(() => {
|
|
5366
5366
|
if (o.variable.key.length > 0 && o.variablesReference?.defined && o.variablesReference.defined[o.variable.key]) {
|
|
5367
|
-
const { activities:
|
|
5368
|
-
return
|
|
5367
|
+
const { activities: b, conditions: g, constants: C } = o.variablesReference.defined[o.variable.key];
|
|
5368
|
+
return b.length + g.length + C.length > 0;
|
|
5369
5369
|
}
|
|
5370
5370
|
return !1;
|
|
5371
5371
|
}), y = () => {
|
|
5372
5372
|
i.value.key = s.value, p();
|
|
5373
|
-
}, m = (
|
|
5374
|
-
i.value.custom_type =
|
|
5375
|
-
}, f = (
|
|
5376
|
-
i.value.value =
|
|
5373
|
+
}, m = (b) => {
|
|
5374
|
+
i.value.custom_type = b, ["textarea", "input"].includes(b) ? i.value.validation = "^.+$" : i.value.validation = "", i.value.source_tag = `${b}.${b}`, p();
|
|
5375
|
+
}, f = (b) => {
|
|
5376
|
+
i.value.value = b[i.value.key], a("change", Re(i.value));
|
|
5377
5377
|
}, h = () => r.value.validate().then(() => !0).catch(() => !1), p = () => {
|
|
5378
5378
|
a("change", Re(i.value));
|
|
5379
5379
|
};
|
|
5380
5380
|
return t({
|
|
5381
5381
|
validate: h
|
|
5382
|
-
}), (
|
|
5382
|
+
}), (b, g) => {
|
|
5383
5383
|
const C = te("bk-input"), d = te("bk-form-item"), A = te("bk-select"), k = te("bk-option"), S = te("bk-form"), H = Fe("bk-tooltips");
|
|
5384
|
-
return
|
|
5384
|
+
return w(), B("div", ld, [
|
|
5385
5385
|
E("div", cd, [
|
|
5386
5386
|
g[5] || (g[5] = E("h4", { class: "variable-edit-section-title" }, "基础信息", -1)),
|
|
5387
5387
|
_(S, {
|
|
@@ -5439,7 +5439,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5439
5439
|
]),
|
|
5440
5440
|
_: 1
|
|
5441
5441
|
}),
|
|
5442
|
-
i.value.custom_type === "input" ? (
|
|
5442
|
+
i.value.custom_type === "input" ? (w(), oe(d, {
|
|
5443
5443
|
key: 0,
|
|
5444
5444
|
label: "正则校验",
|
|
5445
5445
|
property: "validation"
|
|
@@ -5454,7 +5454,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5454
5454
|
]),
|
|
5455
5455
|
_: 1
|
|
5456
5456
|
})) : ue("", !0),
|
|
5457
|
-
i.value.source_type !== "system" ? (
|
|
5457
|
+
i.value.source_type !== "system" ? (w(), oe(d, {
|
|
5458
5458
|
key: 1,
|
|
5459
5459
|
label: "执行时显示",
|
|
5460
5460
|
description: "配置为「显示」可在执行时做为任务入参使用,配置为「隐藏」则仅能在流程内部使用"
|
|
@@ -5482,7 +5482,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5482
5482
|
]),
|
|
5483
5483
|
_: 1
|
|
5484
5484
|
})) : ue("", !0),
|
|
5485
|
-
i.value.source_type !== "system" ? (
|
|
5485
|
+
i.value.source_type !== "system" ? (w(), oe(d, {
|
|
5486
5486
|
key: 2,
|
|
5487
5487
|
label: "说明"
|
|
5488
5488
|
}, {
|
|
@@ -5503,7 +5503,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5503
5503
|
_: 1
|
|
5504
5504
|
}, 8, ["model"])
|
|
5505
5505
|
]),
|
|
5506
|
-
["components_input", "custom"].includes(i.value.source_type) ? (
|
|
5506
|
+
["components_input", "custom"].includes(i.value.source_type) ? (w(), B(_e, { key: 0 }, [
|
|
5507
5507
|
g[6] || (g[6] = E("h4", { class: "variable-edit-section-title" }, "默认值", -1)),
|
|
5508
5508
|
_(js, {
|
|
5509
5509
|
variables: [i.value],
|
|
@@ -5535,7 +5535,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5535
5535
|
nodefined: {}
|
|
5536
5536
|
}), s = he(!1), r = he({
|
|
5537
5537
|
type: "create",
|
|
5538
|
-
data:
|
|
5538
|
+
data: ya(),
|
|
5539
5539
|
oldKey: ""
|
|
5540
5540
|
}), l = G([]), c = G(), u = ke(() => Object.keys(o.flowData.pipeline_tree.constants).length);
|
|
5541
5541
|
Ce(
|
|
@@ -5560,7 +5560,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5560
5560
|
i.value = j.data;
|
|
5561
5561
|
}
|
|
5562
5562
|
}, m = () => {
|
|
5563
|
-
const k =
|
|
5563
|
+
const k = ya();
|
|
5564
5564
|
k.index = u.value, r.value = {
|
|
5565
5565
|
type: "create",
|
|
5566
5566
|
data: k
|
|
@@ -5582,7 +5582,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5582
5582
|
...r.value,
|
|
5583
5583
|
data: k
|
|
5584
5584
|
};
|
|
5585
|
-
},
|
|
5585
|
+
}, b = async () => {
|
|
5586
5586
|
if (await c.value?.validate()) {
|
|
5587
5587
|
const S = { ...o.flowData.pipeline_tree.constants };
|
|
5588
5588
|
let H = r.value.data.key.trim();
|
|
@@ -5598,20 +5598,20 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5598
5598
|
};
|
|
5599
5599
|
return (k, S) => {
|
|
5600
5600
|
const H = te("bk-button"), j = te("bk-sideslider");
|
|
5601
|
-
return
|
|
5601
|
+
return w(), oe(j, {
|
|
5602
5602
|
title: "全局变量",
|
|
5603
5603
|
"is-show": o.show,
|
|
5604
5604
|
width: 800,
|
|
5605
5605
|
"esc-close": !1,
|
|
5606
5606
|
"before-close": A
|
|
5607
|
-
},
|
|
5607
|
+
}, Ja({
|
|
5608
5608
|
header: M(() => [
|
|
5609
5609
|
E("div", pd, [
|
|
5610
5610
|
E("span", {
|
|
5611
5611
|
class: Oe([s.value ? "main-title-text" : ""]),
|
|
5612
5612
|
onClick: S[0] || (S[0] = (D) => s.value = !1)
|
|
5613
5613
|
}, "全局变量", 2),
|
|
5614
|
-
s.value ? (
|
|
5614
|
+
s.value ? (w(), B("span", fd, [
|
|
5615
5615
|
S[3] || (S[3] = E("span", null, ">", -1)),
|
|
5616
5616
|
E("span", vd, ge(n[r.value.type]), 1)
|
|
5617
5617
|
])) : ue("", !0)
|
|
@@ -5619,7 +5619,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5619
5619
|
]),
|
|
5620
5620
|
default: M(() => [
|
|
5621
5621
|
E("div", md, [
|
|
5622
|
-
s.value ? ue("", !0) : (
|
|
5622
|
+
s.value ? ue("", !0) : (w(), oe(Xu, {
|
|
5623
5623
|
key: 0,
|
|
5624
5624
|
constants: o.flowData.pipeline_tree.constants,
|
|
5625
5625
|
"system-variables": o.systemVariables,
|
|
@@ -5634,7 +5634,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5634
5634
|
onUpdateConstants: d,
|
|
5635
5635
|
onOutputChange: g
|
|
5636
5636
|
}, null, 8, ["constants", "system-variables", "outputs", "variables-reference", "custom-variable-types", "editable"])),
|
|
5637
|
-
s.value ? (
|
|
5637
|
+
s.value ? (w(), oe(dd, {
|
|
5638
5638
|
key: 1,
|
|
5639
5639
|
ref_key: "variableEditRef",
|
|
5640
5640
|
ref: c,
|
|
@@ -5652,10 +5652,10 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5652
5652
|
name: "footer",
|
|
5653
5653
|
fn: M(() => [
|
|
5654
5654
|
E("div", hd, [
|
|
5655
|
-
o.editable && r.value.type !== "view" && r.value.data.source_type !== "system" ? (
|
|
5655
|
+
o.editable && r.value.type !== "view" && r.value.data.source_type !== "system" ? (w(), B(_e, { key: 0 }, [
|
|
5656
5656
|
_(H, {
|
|
5657
5657
|
theme: "primary",
|
|
5658
|
-
onClick:
|
|
5658
|
+
onClick: b
|
|
5659
5659
|
}, {
|
|
5660
5660
|
default: M(() => [...S[4] || (S[4] = [
|
|
5661
5661
|
de("确定", -1)
|
|
@@ -5670,7 +5670,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5670
5670
|
])]),
|
|
5671
5671
|
_: 1
|
|
5672
5672
|
})
|
|
5673
|
-
], 64)) : (
|
|
5673
|
+
], 64)) : (w(), oe(H, {
|
|
5674
5674
|
key: 1,
|
|
5675
5675
|
theme: "primary",
|
|
5676
5676
|
onClick: S[2] || (S[2] = (D) => s.value = !1)
|
|
@@ -5712,7 +5712,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5712
5712
|
const c = l;
|
|
5713
5713
|
c.style.height = "";
|
|
5714
5714
|
};
|
|
5715
|
-
return (l, c) => (
|
|
5715
|
+
return (l, c) => (w(), B("div", {
|
|
5716
5716
|
class: Oe(["section-container", { fold: n.value }])
|
|
5717
5717
|
}, [
|
|
5718
5718
|
E("div", {
|
|
@@ -5721,7 +5721,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5721
5721
|
}, [
|
|
5722
5722
|
_($e(Oi), { class: "arrow-icon" }),
|
|
5723
5723
|
de(" " + ge(t.title) + " ", 1),
|
|
5724
|
-
t.desc ? (
|
|
5724
|
+
t.desc ? (w(), B("span", bd, ge(t.desc), 1)) : ue("", !0)
|
|
5725
5725
|
]),
|
|
5726
5726
|
_(_i, {
|
|
5727
5727
|
name: "fold",
|
|
@@ -5735,7 +5735,7 @@ const Jc = /* @__PURE__ */ fe(Hc, [["render", Wc]]), Yc = { class: "node-config-
|
|
|
5735
5735
|
Te(E("div", wd, [
|
|
5736
5736
|
pt(l.$slots, "default", {}, void 0, !0)
|
|
5737
5737
|
], 512), [
|
|
5738
|
-
[
|
|
5738
|
+
[Ya, !n.value]
|
|
5739
5739
|
])
|
|
5740
5740
|
]),
|
|
5741
5741
|
_: 3
|
|
@@ -5770,26 +5770,26 @@ function Gs(e, t = {}, n = {}) {
|
|
|
5770
5770
|
});
|
|
5771
5771
|
}
|
|
5772
5772
|
const vo = /* @__PURE__ */ new Map();
|
|
5773
|
-
function
|
|
5773
|
+
function Vo(e) {
|
|
5774
5774
|
if (vo.has(e))
|
|
5775
5775
|
return vo.get(e);
|
|
5776
5776
|
const t = /* @__PURE__ */ new Map();
|
|
5777
5777
|
return vo.set(e, t), t;
|
|
5778
5778
|
}
|
|
5779
5779
|
function qs(e, t) {
|
|
5780
|
-
const n =
|
|
5780
|
+
const n = Vo(e);
|
|
5781
5781
|
t.forEach((o) => n.set(o.username, o));
|
|
5782
5782
|
}
|
|
5783
|
-
function
|
|
5784
|
-
const n =
|
|
5783
|
+
function Aa(e, t) {
|
|
5784
|
+
const n = Vo(e), o = [];
|
|
5785
5785
|
return t.forEach((a) => {
|
|
5786
5786
|
n.has(a) && o.push(n.get(a));
|
|
5787
5787
|
}), o;
|
|
5788
5788
|
}
|
|
5789
|
-
async function
|
|
5790
|
-
const o =
|
|
5789
|
+
async function ka(e, t, n) {
|
|
5790
|
+
const o = Vo(e), a = [...new Set(t)].filter((s) => !o.has(s));
|
|
5791
5791
|
if (!a.length)
|
|
5792
|
-
return Promise.resolve(
|
|
5792
|
+
return Promise.resolve(Aa(e, t));
|
|
5793
5793
|
const i = [];
|
|
5794
5794
|
a.reduce((s, r, l) => s.length < 100 ? (s.push(r), l === a.length - 1 && i.push(s), s) : (i.push(s), []), []);
|
|
5795
5795
|
try {
|
|
@@ -5812,10 +5812,10 @@ async function Sa(e, t, n) {
|
|
|
5812
5812
|
} catch (s) {
|
|
5813
5813
|
console.error(s);
|
|
5814
5814
|
}
|
|
5815
|
-
return Promise.resolve(
|
|
5815
|
+
return Promise.resolve(Aa(e, t));
|
|
5816
5816
|
}
|
|
5817
5817
|
function Sd(e) {
|
|
5818
|
-
const n =
|
|
5818
|
+
const n = Za({
|
|
5819
5819
|
setup() {
|
|
5820
5820
|
const { proxy: a } = Po();
|
|
5821
5821
|
Qn.setInstance("exactSearch", e, a);
|
|
@@ -5882,12 +5882,12 @@ const nn = {
|
|
|
5882
5882
|
},
|
|
5883
5883
|
// 精确搜索,不在此处捕获异常,在上层捕获并显示在tooltips中
|
|
5884
5884
|
async exactSearch(e, t, n) {
|
|
5885
|
-
const o = Array.isArray(t), i = await
|
|
5885
|
+
const o = Array.isArray(t), i = await ka(e, o ? t : [t], n);
|
|
5886
5886
|
return o ? i : i[0];
|
|
5887
5887
|
},
|
|
5888
5888
|
// 粘贴时对粘贴的用户进行校验
|
|
5889
5889
|
pasteValidate(e, t, n) {
|
|
5890
|
-
return
|
|
5890
|
+
return ka(e, t, n);
|
|
5891
5891
|
},
|
|
5892
5892
|
// 队列式查询,用于多个组件共存时,批量拉取已存在的用户信息
|
|
5893
5893
|
scheduleExactSearch(e, t) {
|
|
@@ -5895,9 +5895,9 @@ const nn = {
|
|
|
5895
5895
|
return Sd(e), Qn.getInstance("exactSearch", e).search(n);
|
|
5896
5896
|
}
|
|
5897
5897
|
};
|
|
5898
|
-
var Xe = "top", lt = "bottom", ct = "right", et = "left",
|
|
5898
|
+
var Xe = "top", lt = "bottom", ct = "right", et = "left", No = "auto", wn = [Xe, lt, ct, et], Jt = "start", un = "end", Dd = "clippingParents", Hs = "viewport", tn = "popper", Md = "reference", Ca = /* @__PURE__ */ wn.reduce(function(e, t) {
|
|
5899
5899
|
return e.concat([t + "-" + Jt, t + "-" + un]);
|
|
5900
|
-
}, []), Ws = /* @__PURE__ */ [].concat(wn, [
|
|
5900
|
+
}, []), Ws = /* @__PURE__ */ [].concat(wn, [No]).reduce(function(e, t) {
|
|
5901
5901
|
return e.concat([t, t + "-" + Jt, t + "-" + un]);
|
|
5902
5902
|
}, []), Ld = "beforeRead", Od = "read", Pd = "afterRead", Rd = "beforeMain", $d = "main", zd = "afterMain", Bd = "beforeWrite", Vd = "write", Nd = "afterWrite", Fd = [Ld, Od, Pd, Rd, $d, zd, Bd, Vd, Nd];
|
|
5903
5903
|
function _t(e) {
|
|
@@ -5920,7 +5920,7 @@ function rt(e) {
|
|
|
5920
5920
|
var t = nt(e).HTMLElement;
|
|
5921
5921
|
return e instanceof t || e instanceof HTMLElement;
|
|
5922
5922
|
}
|
|
5923
|
-
function
|
|
5923
|
+
function Fo(e) {
|
|
5924
5924
|
if (typeof ShadowRoot > "u")
|
|
5925
5925
|
return !1;
|
|
5926
5926
|
var t = nt(e).ShadowRoot;
|
|
@@ -5997,7 +5997,7 @@ function Zt(e, t, n) {
|
|
|
5997
5997
|
y: u
|
|
5998
5998
|
};
|
|
5999
5999
|
}
|
|
6000
|
-
function
|
|
6000
|
+
function Io(e) {
|
|
6001
6001
|
var t = Zt(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
6002
6002
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
6003
6003
|
x: e.offsetLeft,
|
|
@@ -6010,7 +6010,7 @@ function Zs(e, t) {
|
|
|
6010
6010
|
var n = t.getRootNode && t.getRootNode();
|
|
6011
6011
|
if (e.contains(t))
|
|
6012
6012
|
return !0;
|
|
6013
|
-
if (n &&
|
|
6013
|
+
if (n && Fo(n)) {
|
|
6014
6014
|
var o = t;
|
|
6015
6015
|
do {
|
|
6016
6016
|
if (o && e.isSameNode(o))
|
|
@@ -6039,12 +6039,12 @@ function Xn(e) {
|
|
|
6039
6039
|
// $FlowFixMe[prop-missing]
|
|
6040
6040
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
6041
6041
|
e.parentNode || // DOM Element detected
|
|
6042
|
-
(
|
|
6042
|
+
(Fo(e) ? e.host : null) || // ShadowRoot detected
|
|
6043
6043
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
6044
6044
|
Lt(e)
|
|
6045
6045
|
);
|
|
6046
6046
|
}
|
|
6047
|
-
function
|
|
6047
|
+
function xa(e) {
|
|
6048
6048
|
return !rt(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
6049
6049
|
Et(e).position === "fixed" ? null : e.offsetParent;
|
|
6050
6050
|
}
|
|
@@ -6056,7 +6056,7 @@ function Gd(e) {
|
|
|
6056
6056
|
return null;
|
|
6057
6057
|
}
|
|
6058
6058
|
var a = Xn(e);
|
|
6059
|
-
for (
|
|
6059
|
+
for (Fo(a) && (a = a.host); rt(a) && ["html", "body"].indexOf(_t(a)) < 0; ) {
|
|
6060
6060
|
var i = Et(a);
|
|
6061
6061
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
6062
6062
|
return a;
|
|
@@ -6065,11 +6065,11 @@ function Gd(e) {
|
|
|
6065
6065
|
return null;
|
|
6066
6066
|
}
|
|
6067
6067
|
function _n(e) {
|
|
6068
|
-
for (var t = nt(e), n =
|
|
6069
|
-
n =
|
|
6068
|
+
for (var t = nt(e), n = xa(e); n && jd(n) && Et(n).position === "static"; )
|
|
6069
|
+
n = xa(n);
|
|
6070
6070
|
return n && (_t(n) === "html" || _t(n) === "body" && Et(n).position === "static") ? t : n || Gd(e) || t;
|
|
6071
6071
|
}
|
|
6072
|
-
function
|
|
6072
|
+
function Uo(e) {
|
|
6073
6073
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
6074
6074
|
}
|
|
6075
6075
|
function an(e, t, n) {
|
|
@@ -6101,9 +6101,9 @@ var Hd = function(t, n) {
|
|
|
6101
6101
|
})) : t, Qs(typeof t != "number" ? t : Xs(t, wn));
|
|
6102
6102
|
};
|
|
6103
6103
|
function Wd(e) {
|
|
6104
|
-
var t, n = e.state, o = e.name, a = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, r = wt(n.placement), l =
|
|
6104
|
+
var t, n = e.state, o = e.name, a = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, r = wt(n.placement), l = Uo(r), c = [et, ct].indexOf(r) >= 0, u = c ? "height" : "width";
|
|
6105
6105
|
if (!(!i || !s)) {
|
|
6106
|
-
var v = Hd(a.padding, n), y =
|
|
6106
|
+
var v = Hd(a.padding, n), y = Io(i), m = l === "y" ? Xe : et, f = l === "y" ? lt : ct, h = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], p = s[l] - n.rects.reference[l], b = _n(i), g = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = h / 2 - p / 2, d = v[m], A = g - y[u] - v[f], k = g / 2 - y[u] / 2 + C, S = an(d, k, A), H = l;
|
|
6107
6107
|
n.modifiersData[o] = (t = {}, t[H] = S, t.centerOffset = S - k, t);
|
|
6108
6108
|
}
|
|
6109
6109
|
}
|
|
@@ -6136,7 +6136,7 @@ function Kd(e, t) {
|
|
|
6136
6136
|
y: Yt(o * a) / a || 0
|
|
6137
6137
|
};
|
|
6138
6138
|
}
|
|
6139
|
-
function
|
|
6139
|
+
function Ea(e) {
|
|
6140
6140
|
var t, n = e.popper, o = e.popperRect, a = e.placement, i = e.variation, s = e.offsets, r = e.position, l = e.gpuAcceleration, c = e.adaptive, u = e.roundOffsets, v = e.isFixed, y = s.x, m = y === void 0 ? 0 : y, f = s.y, h = f === void 0 ? 0 : f, p = typeof u == "function" ? u({
|
|
6141
6141
|
x: m,
|
|
6142
6142
|
y: h
|
|
@@ -6145,7 +6145,7 @@ function La(e) {
|
|
|
6145
6145
|
y: h
|
|
6146
6146
|
};
|
|
6147
6147
|
m = p.x, h = p.y;
|
|
6148
|
-
var
|
|
6148
|
+
var b = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), C = et, d = Xe, A = window;
|
|
6149
6149
|
if (c) {
|
|
6150
6150
|
var k = _n(n), S = "clientHeight", H = "clientWidth";
|
|
6151
6151
|
if (k === nt(n) && (k = Lt(n), Et(k).position !== "static" && r === "absolute" && (S = "scrollHeight", H = "scrollWidth")), k = k, a === Xe || (a === et || a === ct) && i === un) {
|
|
@@ -6176,9 +6176,9 @@ function La(e) {
|
|
|
6176
6176
|
};
|
|
6177
6177
|
if (m = ie.x, h = ie.y, l) {
|
|
6178
6178
|
var re;
|
|
6179
|
-
return Object.assign({}, N, (re = {}, re[d] = g ? "0" : "", re[C] =
|
|
6179
|
+
return Object.assign({}, N, (re = {}, re[d] = g ? "0" : "", re[C] = b ? "0" : "", re.transform = (A.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + h + "px)" : "translate3d(" + m + "px, " + h + "px, 0)", re));
|
|
6180
6180
|
}
|
|
6181
|
-
return Object.assign({}, N, (t = {}, t[d] = g ? h + "px" : "", t[C] =
|
|
6181
|
+
return Object.assign({}, N, (t = {}, t[d] = g ? h + "px" : "", t[C] = b ? m + "px" : "", t.transform = "", t));
|
|
6182
6182
|
}
|
|
6183
6183
|
function Qd(e) {
|
|
6184
6184
|
var t = e.state, n = e.options, o = n.gpuAcceleration, a = o === void 0 ? !0 : o, i = n.adaptive, s = i === void 0 ? !0 : i, r = n.roundOffsets, l = r === void 0 ? !0 : r, c = {
|
|
@@ -6189,12 +6189,12 @@ function Qd(e) {
|
|
|
6189
6189
|
gpuAcceleration: a,
|
|
6190
6190
|
isFixed: t.options.strategy === "fixed"
|
|
6191
6191
|
};
|
|
6192
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
6192
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ea(Object.assign({}, c, {
|
|
6193
6193
|
offsets: t.modifiersData.popperOffsets,
|
|
6194
6194
|
position: t.options.strategy,
|
|
6195
6195
|
adaptive: s,
|
|
6196
6196
|
roundOffsets: l
|
|
6197
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
6197
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ea(Object.assign({}, c, {
|
|
6198
6198
|
offsets: t.modifiersData.arrow,
|
|
6199
6199
|
position: "absolute",
|
|
6200
6200
|
adaptive: !1,
|
|
@@ -6247,20 +6247,20 @@ var op = {
|
|
|
6247
6247
|
start: "end",
|
|
6248
6248
|
end: "start"
|
|
6249
6249
|
};
|
|
6250
|
-
function
|
|
6250
|
+
function Ta(e) {
|
|
6251
6251
|
return e.replace(/start|end/g, function(t) {
|
|
6252
6252
|
return op[t];
|
|
6253
6253
|
});
|
|
6254
6254
|
}
|
|
6255
|
-
function
|
|
6255
|
+
function jo(e) {
|
|
6256
6256
|
var t = nt(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
6257
6257
|
return {
|
|
6258
6258
|
scrollLeft: n,
|
|
6259
6259
|
scrollTop: o
|
|
6260
6260
|
};
|
|
6261
6261
|
}
|
|
6262
|
-
function
|
|
6263
|
-
return Zt(Lt(e)).left +
|
|
6262
|
+
function Go(e) {
|
|
6263
|
+
return Zt(Lt(e)).left + jo(e).scrollLeft;
|
|
6264
6264
|
}
|
|
6265
6265
|
function ap(e, t) {
|
|
6266
6266
|
var n = nt(e), o = Lt(e), a = n.visualViewport, i = o.clientWidth, s = o.clientHeight, r = 0, l = 0;
|
|
@@ -6272,12 +6272,12 @@ function ap(e, t) {
|
|
|
6272
6272
|
return {
|
|
6273
6273
|
width: i,
|
|
6274
6274
|
height: s,
|
|
6275
|
-
x: r +
|
|
6275
|
+
x: r + Go(e),
|
|
6276
6276
|
y: l
|
|
6277
6277
|
};
|
|
6278
6278
|
}
|
|
6279
6279
|
function sp(e) {
|
|
6280
|
-
var t, n = Lt(e), o =
|
|
6280
|
+
var t, n = Lt(e), o = jo(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Bt(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = Bt(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), r = -o.scrollLeft + Go(e), l = -o.scrollTop;
|
|
6281
6281
|
return Et(a || n).direction === "rtl" && (r += Bt(n.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
6282
6282
|
width: i,
|
|
6283
6283
|
height: s,
|
|
@@ -6285,17 +6285,17 @@ function sp(e) {
|
|
|
6285
6285
|
y: l
|
|
6286
6286
|
};
|
|
6287
6287
|
}
|
|
6288
|
-
function
|
|
6288
|
+
function qo(e) {
|
|
6289
6289
|
var t = Et(e), n = t.overflow, o = t.overflowX, a = t.overflowY;
|
|
6290
6290
|
return /auto|scroll|overlay|hidden/.test(n + a + o);
|
|
6291
6291
|
}
|
|
6292
6292
|
function ei(e) {
|
|
6293
|
-
return ["html", "body", "#document"].indexOf(_t(e)) >= 0 ? e.ownerDocument.body : rt(e) &&
|
|
6293
|
+
return ["html", "body", "#document"].indexOf(_t(e)) >= 0 ? e.ownerDocument.body : rt(e) && qo(e) ? e : ei(Xn(e));
|
|
6294
6294
|
}
|
|
6295
6295
|
function sn(e, t) {
|
|
6296
6296
|
var n;
|
|
6297
6297
|
t === void 0 && (t = []);
|
|
6298
|
-
var o = ei(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = nt(o), s = a ? [i].concat(i.visualViewport || [],
|
|
6298
|
+
var o = ei(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = nt(o), s = a ? [i].concat(i.visualViewport || [], qo(o) ? o : []) : o, r = t.concat(s);
|
|
6299
6299
|
return a ? r : (
|
|
6300
6300
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
6301
6301
|
r.concat(sn(Xn(s)))
|
|
@@ -6313,7 +6313,7 @@ function ip(e, t) {
|
|
|
6313
6313
|
var n = Zt(e, !1, t === "fixed");
|
|
6314
6314
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
6315
6315
|
}
|
|
6316
|
-
function
|
|
6316
|
+
function Sa(e, t, n) {
|
|
6317
6317
|
return t === Hs ? Do(ap(e, n)) : Nt(t) ? ip(t, n) : Do(sp(Lt(e)));
|
|
6318
6318
|
}
|
|
6319
6319
|
function rp(e) {
|
|
@@ -6324,9 +6324,9 @@ function rp(e) {
|
|
|
6324
6324
|
}
|
|
6325
6325
|
function lp(e, t, n, o) {
|
|
6326
6326
|
var a = t === "clippingParents" ? rp(e) : [].concat(t), i = [].concat(a, [n]), s = i[0], r = i.reduce(function(l, c) {
|
|
6327
|
-
var u =
|
|
6327
|
+
var u = Sa(e, c, o);
|
|
6328
6328
|
return l.top = Bt(u.top, l.top), l.right = Fn(u.right, l.right), l.bottom = Fn(u.bottom, l.bottom), l.left = Bt(u.left, l.left), l;
|
|
6329
|
-
},
|
|
6329
|
+
}, Sa(e, s, o));
|
|
6330
6330
|
return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
6331
6331
|
}
|
|
6332
6332
|
function ti(e) {
|
|
@@ -6362,7 +6362,7 @@ function ti(e) {
|
|
|
6362
6362
|
y: t.y
|
|
6363
6363
|
};
|
|
6364
6364
|
}
|
|
6365
|
-
var c = a ?
|
|
6365
|
+
var c = a ? Uo(a) : null;
|
|
6366
6366
|
if (c != null) {
|
|
6367
6367
|
var u = c === "y" ? "height" : "width";
|
|
6368
6368
|
switch (i) {
|
|
@@ -6378,15 +6378,15 @@ function ti(e) {
|
|
|
6378
6378
|
}
|
|
6379
6379
|
function dn(e, t) {
|
|
6380
6380
|
t === void 0 && (t = {});
|
|
6381
|
-
var n = t, o = n.placement, a = o === void 0 ? e.placement : o, i = n.strategy, s = i === void 0 ? e.strategy : i, r = n.boundary, l = r === void 0 ? Dd : r, c = n.rootBoundary, u = c === void 0 ? Hs : c, v = n.elementContext, y = v === void 0 ? tn : v, m = n.altBoundary, f = m === void 0 ? !1 : m, h = n.padding, p = h === void 0 ? 0 : h,
|
|
6381
|
+
var n = t, o = n.placement, a = o === void 0 ? e.placement : o, i = n.strategy, s = i === void 0 ? e.strategy : i, r = n.boundary, l = r === void 0 ? Dd : r, c = n.rootBoundary, u = c === void 0 ? Hs : c, v = n.elementContext, y = v === void 0 ? tn : v, m = n.altBoundary, f = m === void 0 ? !1 : m, h = n.padding, p = h === void 0 ? 0 : h, b = Qs(typeof p != "number" ? p : Xs(p, wn)), g = y === tn ? Md : tn, C = e.rects.popper, d = e.elements[f ? g : y], A = lp(Nt(d) ? d : d.contextElement || Lt(e.elements.popper), l, u, s), k = Zt(e.elements.reference), S = ti({
|
|
6382
6382
|
reference: k,
|
|
6383
6383
|
element: C,
|
|
6384
6384
|
placement: a
|
|
6385
6385
|
}), H = Do(Object.assign({}, C, S)), j = y === tn ? H : k, D = {
|
|
6386
|
-
top: A.top - j.top +
|
|
6387
|
-
bottom: j.bottom - A.bottom +
|
|
6388
|
-
left: A.left - j.left +
|
|
6389
|
-
right: j.right - A.right +
|
|
6386
|
+
top: A.top - j.top + b.top,
|
|
6387
|
+
bottom: j.bottom - A.bottom + b.bottom,
|
|
6388
|
+
left: A.left - j.left + b.left,
|
|
6389
|
+
right: j.right - A.right + b.right
|
|
6390
6390
|
}, N = e.modifiersData.offset;
|
|
6391
6391
|
if (y === tn && N) {
|
|
6392
6392
|
var ie = N[a];
|
|
@@ -6399,7 +6399,7 @@ function dn(e, t) {
|
|
|
6399
6399
|
}
|
|
6400
6400
|
function cp(e, t) {
|
|
6401
6401
|
t === void 0 && (t = {});
|
|
6402
|
-
var n = t, o = n.placement, a = n.boundary, i = n.rootBoundary, s = n.padding, r = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Ws : l, u = Kt(o), v = u ? r ?
|
|
6402
|
+
var n = t, o = n.placement, a = n.boundary, i = n.rootBoundary, s = n.padding, r = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Ws : l, u = Kt(o), v = u ? r ? Ca : Ca.filter(function(f) {
|
|
6403
6403
|
return Kt(f) === u;
|
|
6404
6404
|
}) : wn, y = v.filter(function(f) {
|
|
6405
6405
|
return c.indexOf(f) >= 0;
|
|
@@ -6418,16 +6418,16 @@ function cp(e, t) {
|
|
|
6418
6418
|
});
|
|
6419
6419
|
}
|
|
6420
6420
|
function up(e) {
|
|
6421
|
-
if (wt(e) ===
|
|
6421
|
+
if (wt(e) === No)
|
|
6422
6422
|
return [];
|
|
6423
6423
|
var t = Rn(e);
|
|
6424
|
-
return [
|
|
6424
|
+
return [Ta(e), t, Ta(t)];
|
|
6425
6425
|
}
|
|
6426
6426
|
function dp(e) {
|
|
6427
6427
|
var t = e.state, n = e.options, o = e.name;
|
|
6428
6428
|
if (!t.modifiersData[o]._skip) {
|
|
6429
|
-
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, s = n.altAxis, r = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, v = n.rootBoundary, y = n.altBoundary, m = n.flipVariations, f = m === void 0 ? !0 : m, h = n.allowedAutoPlacements, p = t.options.placement,
|
|
6430
|
-
return Z.concat(wt(X) ===
|
|
6429
|
+
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, s = n.altAxis, r = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, v = n.rootBoundary, y = n.altBoundary, m = n.flipVariations, f = m === void 0 ? !0 : m, h = n.allowedAutoPlacements, p = t.options.placement, b = wt(p), g = b === p, C = l || (g || !f ? [Rn(p)] : up(p)), d = [p].concat(C).reduce(function(Z, X) {
|
|
6430
|
+
return Z.concat(wt(X) === No ? cp(t, {
|
|
6431
6431
|
placement: X,
|
|
6432
6432
|
boundary: u,
|
|
6433
6433
|
rootBoundary: v,
|
|
@@ -6481,7 +6481,7 @@ const pp = {
|
|
|
6481
6481
|
_skip: !1
|
|
6482
6482
|
}
|
|
6483
6483
|
};
|
|
6484
|
-
function
|
|
6484
|
+
function Da(e, t, n) {
|
|
6485
6485
|
return n === void 0 && (n = {
|
|
6486
6486
|
x: 0,
|
|
6487
6487
|
y: 0
|
|
@@ -6492,7 +6492,7 @@ function Ra(e, t, n) {
|
|
|
6492
6492
|
left: e.left - t.width - n.x
|
|
6493
6493
|
};
|
|
6494
6494
|
}
|
|
6495
|
-
function
|
|
6495
|
+
function Ma(e) {
|
|
6496
6496
|
return [Xe, ct, lt, et].some(function(t) {
|
|
6497
6497
|
return e[t] >= 0;
|
|
6498
6498
|
});
|
|
@@ -6502,7 +6502,7 @@ function fp(e) {
|
|
|
6502
6502
|
elementContext: "reference"
|
|
6503
6503
|
}), r = dn(t, {
|
|
6504
6504
|
altBoundary: !0
|
|
6505
|
-
}), l =
|
|
6505
|
+
}), l = Da(s, o), c = Da(r, a, i), u = Ma(l), v = Ma(c);
|
|
6506
6506
|
t.modifiersData[n] = {
|
|
6507
6507
|
referenceClippingOffsets: l,
|
|
6508
6508
|
popperEscapeOffsets: c,
|
|
@@ -6569,7 +6569,7 @@ function _p(e) {
|
|
|
6569
6569
|
rootBoundary: c,
|
|
6570
6570
|
padding: v,
|
|
6571
6571
|
altBoundary: u
|
|
6572
|
-
}),
|
|
6572
|
+
}), b = wt(t.placement), g = Kt(t.placement), C = !g, d = Uo(b), A = wp(d), k = t.modifiersData.popperOffsets, S = t.rects.reference, H = t.rects.popper, j = typeof h == "function" ? h(Object.assign({}, t.rects, {
|
|
6573
6573
|
placement: t.placement
|
|
6574
6574
|
})) : h, D = typeof j == "number" ? {
|
|
6575
6575
|
mainAxis: j,
|
|
@@ -6583,14 +6583,14 @@ function _p(e) {
|
|
|
6583
6583
|
};
|
|
6584
6584
|
if (k) {
|
|
6585
6585
|
if (i) {
|
|
6586
|
-
var re, $ = d === "y" ? Xe : et, P = d === "y" ? lt : ct, R = d === "y" ? "height" : "width", L = k[d], F = L + p[$], ne = L - p[P], T = m ? -H[R] / 2 : 0, z = g === Jt ? S[R] : H[R], I = g === Jt ? -H[R] : -S[R], Q = t.elements.arrow, Z = m && Q ?
|
|
6586
|
+
var re, $ = d === "y" ? Xe : et, P = d === "y" ? lt : ct, R = d === "y" ? "height" : "width", L = k[d], F = L + p[$], ne = L - p[P], T = m ? -H[R] / 2 : 0, z = g === Jt ? S[R] : H[R], I = g === Jt ? -H[R] : -S[R], Q = t.elements.arrow, Z = m && Q ? Io(Q) : {
|
|
6587
6587
|
width: 0,
|
|
6588
6588
|
height: 0
|
|
6589
6589
|
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ks(), x = X[$], W = X[P], q = an(0, S[R], Z[R]), J = C ? S[R] / 2 - T - q - x - D.mainAxis : z - q - x - D.mainAxis, ee = C ? -S[R] / 2 + T + q + W + D.mainAxis : I + q + W + D.mainAxis, ae = t.elements.arrow && _n(t.elements.arrow), K = ae ? d === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, le = (re = N?.[d]) != null ? re : 0, ve = L + J - le - K, we = L + ee - le, ye = an(m ? Fn(F, ve) : F, L, m ? Bt(ne, we) : ne);
|
|
6590
6590
|
k[d] = ye, ie[d] = ye - L;
|
|
6591
6591
|
}
|
|
6592
6592
|
if (r) {
|
|
6593
|
-
var xe, Pe = d === "x" ? Xe : et, Ie = d === "x" ? lt : ct, De = k[A], Ge = A === "y" ? "height" : "width", Je = De + p[Pe], Ue = De - p[Ie], ut = [Xe, et].indexOf(
|
|
6593
|
+
var xe, Pe = d === "x" ? Xe : et, Ie = d === "x" ? lt : ct, De = k[A], Ge = A === "y" ? "height" : "width", Je = De + p[Pe], Ue = De - p[Ie], ut = [Xe, et].indexOf(b) !== -1, vt = (xe = N?.[A]) != null ? xe : 0, Ot = ut ? Je : De - S[Ge] - H[Ge] - vt + D.altAxis, mt = ut ? De + S[Ge] + H[Ge] - vt - D.altAxis : Ue, Pt = m && ut ? qd(Ot, De, mt) : an(m ? Ot : Je, De, m ? mt : Ue);
|
|
6594
6594
|
k[A] = Pt, ie[A] = Pt - De;
|
|
6595
6595
|
}
|
|
6596
6596
|
t.modifiersData[o] = ie;
|
|
@@ -6610,7 +6610,7 @@ function kp(e) {
|
|
|
6610
6610
|
};
|
|
6611
6611
|
}
|
|
6612
6612
|
function Cp(e) {
|
|
6613
|
-
return e === nt(e) || !rt(e) ?
|
|
6613
|
+
return e === nt(e) || !rt(e) ? jo(e) : kp(e);
|
|
6614
6614
|
}
|
|
6615
6615
|
function xp(e) {
|
|
6616
6616
|
var t = e.getBoundingClientRect(), n = Yt(t.width) / e.offsetWidth || 1, o = Yt(t.height) / e.offsetHeight || 1;
|
|
@@ -6626,7 +6626,7 @@ function Ep(e, t, n) {
|
|
|
6626
6626
|
y: 0
|
|
6627
6627
|
};
|
|
6628
6628
|
return (o || !o && !n) && ((_t(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
6629
|
-
|
|
6629
|
+
qo(i)) && (r = Cp(t)), rt(t) ? (l = Zt(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = Go(i))), {
|
|
6630
6630
|
x: s.left + r.scrollLeft - l.x,
|
|
6631
6631
|
y: s.top + r.scrollTop - l.y,
|
|
6632
6632
|
width: s.width,
|
|
@@ -6682,12 +6682,12 @@ function Mp(e) {
|
|
|
6682
6682
|
return t[n];
|
|
6683
6683
|
});
|
|
6684
6684
|
}
|
|
6685
|
-
var
|
|
6685
|
+
var La = {
|
|
6686
6686
|
placement: "bottom",
|
|
6687
6687
|
modifiers: [],
|
|
6688
6688
|
strategy: "absolute"
|
|
6689
6689
|
};
|
|
6690
|
-
function
|
|
6690
|
+
function Oa() {
|
|
6691
6691
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
6692
6692
|
t[n] = arguments[n];
|
|
6693
6693
|
return !t.some(function(o) {
|
|
@@ -6696,13 +6696,13 @@ function Ba() {
|
|
|
6696
6696
|
}
|
|
6697
6697
|
function Lp(e) {
|
|
6698
6698
|
e === void 0 && (e = {});
|
|
6699
|
-
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, a = t.defaultOptions, i = a === void 0 ?
|
|
6699
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, a = t.defaultOptions, i = a === void 0 ? La : a;
|
|
6700
6700
|
return function(r, l, c) {
|
|
6701
6701
|
c === void 0 && (c = i);
|
|
6702
6702
|
var u = {
|
|
6703
6703
|
placement: "bottom",
|
|
6704
6704
|
orderedModifiers: [],
|
|
6705
|
-
options: Object.assign({},
|
|
6705
|
+
options: Object.assign({}, La, i),
|
|
6706
6706
|
modifiersData: {},
|
|
6707
6707
|
elements: {
|
|
6708
6708
|
reference: r,
|
|
@@ -6712,8 +6712,8 @@ function Lp(e) {
|
|
|
6712
6712
|
styles: {}
|
|
6713
6713
|
}, v = [], y = !1, m = {
|
|
6714
6714
|
state: u,
|
|
6715
|
-
setOptions: function(
|
|
6716
|
-
var g = typeof
|
|
6715
|
+
setOptions: function(b) {
|
|
6716
|
+
var g = typeof b == "function" ? b(u.options) : b;
|
|
6717
6717
|
h(), u.options = Object.assign({}, i, u.options, g), u.scrollParents = {
|
|
6718
6718
|
reference: Nt(r) ? sn(r) : r.contextElement ? sn(r.contextElement) : [],
|
|
6719
6719
|
popper: sn(l)
|
|
@@ -6730,11 +6730,11 @@ function Lp(e) {
|
|
|
6730
6730
|
// prefer the async Popper#update method
|
|
6731
6731
|
forceUpdate: function() {
|
|
6732
6732
|
if (!y) {
|
|
6733
|
-
var
|
|
6734
|
-
if (
|
|
6733
|
+
var b = u.elements, g = b.reference, C = b.popper;
|
|
6734
|
+
if (Oa(g, C)) {
|
|
6735
6735
|
u.rects = {
|
|
6736
6736
|
reference: Ep(g, _n(C), u.options.strategy === "fixed"),
|
|
6737
|
-
popper:
|
|
6737
|
+
popper: Io(C)
|
|
6738
6738
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(D) {
|
|
6739
6739
|
return u.modifiersData[D.name] = Object.assign({}, D.data);
|
|
6740
6740
|
});
|
|
@@ -6765,18 +6765,18 @@ function Lp(e) {
|
|
|
6765
6765
|
h(), y = !0;
|
|
6766
6766
|
}
|
|
6767
6767
|
};
|
|
6768
|
-
if (!
|
|
6768
|
+
if (!Oa(r, l))
|
|
6769
6769
|
return m;
|
|
6770
6770
|
m.setOptions(c).then(function(p) {
|
|
6771
6771
|
!y && c.onFirstUpdate && c.onFirstUpdate(p);
|
|
6772
6772
|
});
|
|
6773
6773
|
function f() {
|
|
6774
6774
|
u.orderedModifiers.forEach(function(p) {
|
|
6775
|
-
var
|
|
6775
|
+
var b = p.name, g = p.options, C = g === void 0 ? {} : g, d = p.effect;
|
|
6776
6776
|
if (typeof d == "function") {
|
|
6777
6777
|
var A = d({
|
|
6778
6778
|
state: u,
|
|
6779
|
-
name:
|
|
6779
|
+
name: b,
|
|
6780
6780
|
instance: m,
|
|
6781
6781
|
options: C
|
|
6782
6782
|
}), k = function() {
|
|
@@ -6811,14 +6811,14 @@ function mo(e, t, n) {
|
|
|
6811
6811
|
}
|
|
6812
6812
|
return e;
|
|
6813
6813
|
}
|
|
6814
|
-
function
|
|
6814
|
+
function Ho(e, t) {
|
|
6815
6815
|
var n = {}.toString.call(e);
|
|
6816
6816
|
return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
|
|
6817
6817
|
}
|
|
6818
6818
|
function ii(e, t) {
|
|
6819
6819
|
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
6820
6820
|
}
|
|
6821
|
-
function
|
|
6821
|
+
function Pa(e, t) {
|
|
6822
6822
|
if (t === 0)
|
|
6823
6823
|
return e;
|
|
6824
6824
|
var n;
|
|
@@ -6840,7 +6840,7 @@ function Vp(e) {
|
|
|
6840
6840
|
function Ht(e) {
|
|
6841
6841
|
return [].concat(e);
|
|
6842
6842
|
}
|
|
6843
|
-
function
|
|
6843
|
+
function Ra(e, t) {
|
|
6844
6844
|
e.indexOf(t) === -1 && e.push(t);
|
|
6845
6845
|
}
|
|
6846
6846
|
function Np(e) {
|
|
@@ -6854,7 +6854,7 @@ function Fp(e) {
|
|
|
6854
6854
|
function In(e) {
|
|
6855
6855
|
return [].slice.call(e);
|
|
6856
6856
|
}
|
|
6857
|
-
function
|
|
6857
|
+
function $a(e) {
|
|
6858
6858
|
return Object.keys(e).reduce(function(t, n) {
|
|
6859
6859
|
return e[n] !== void 0 && (t[n] = e[n]), t;
|
|
6860
6860
|
}, {});
|
|
@@ -6864,14 +6864,14 @@ function rn() {
|
|
|
6864
6864
|
}
|
|
6865
6865
|
function pn(e) {
|
|
6866
6866
|
return ["Element", "Fragment"].some(function(t) {
|
|
6867
|
-
return
|
|
6867
|
+
return Ho(e, t);
|
|
6868
6868
|
});
|
|
6869
6869
|
}
|
|
6870
6870
|
function Ip(e) {
|
|
6871
|
-
return
|
|
6871
|
+
return Ho(e, "NodeList");
|
|
6872
6872
|
}
|
|
6873
6873
|
function Up(e) {
|
|
6874
|
-
return
|
|
6874
|
+
return Ho(e, "MouseEvent");
|
|
6875
6875
|
}
|
|
6876
6876
|
function ri(e) {
|
|
6877
6877
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
@@ -6884,7 +6884,7 @@ function ho(e, t) {
|
|
|
6884
6884
|
n && (n.style.transitionDuration = t + "ms");
|
|
6885
6885
|
});
|
|
6886
6886
|
}
|
|
6887
|
-
function
|
|
6887
|
+
function za(e, t) {
|
|
6888
6888
|
e.forEach(function(n) {
|
|
6889
6889
|
n && n.setAttribute("data-state", t);
|
|
6890
6890
|
});
|
|
@@ -6899,8 +6899,8 @@ function qp(e, t) {
|
|
|
6899
6899
|
var i = a.popperRect, s = a.popperState, r = a.props, l = r.interactiveBorder, c = Fp(s.placement), u = s.modifiersData.offset;
|
|
6900
6900
|
if (!u)
|
|
6901
6901
|
return !0;
|
|
6902
|
-
var v = c === "bottom" ? u.top.y : 0, y = c === "top" ? u.bottom.y : 0, m = c === "right" ? u.left.x : 0, f = c === "left" ? u.right.x : 0, h = i.top - o + v > l, p = o - i.bottom - y > l,
|
|
6903
|
-
return h || p ||
|
|
6902
|
+
var v = c === "bottom" ? u.top.y : 0, y = c === "top" ? u.bottom.y : 0, m = c === "right" ? u.left.x : 0, f = c === "left" ? u.right.x : 0, h = i.top - o + v > l, p = o - i.bottom - y > l, b = i.left - n + m > l, g = n - i.right - f > l;
|
|
6903
|
+
return h || p || b || g;
|
|
6904
6904
|
});
|
|
6905
6905
|
}
|
|
6906
6906
|
function go(e, t, n) {
|
|
@@ -6909,7 +6909,7 @@ function go(e, t, n) {
|
|
|
6909
6909
|
e[o](a, n);
|
|
6910
6910
|
});
|
|
6911
6911
|
}
|
|
6912
|
-
function
|
|
6912
|
+
function Ba(e, t) {
|
|
6913
6913
|
for (var n = t; n; ) {
|
|
6914
6914
|
var o;
|
|
6915
6915
|
if (e.contains(n))
|
|
@@ -6920,13 +6920,13 @@ function Ua(e, t) {
|
|
|
6920
6920
|
}
|
|
6921
6921
|
var bt = {
|
|
6922
6922
|
isTouch: !1
|
|
6923
|
-
},
|
|
6923
|
+
}, Va = 0;
|
|
6924
6924
|
function Hp() {
|
|
6925
6925
|
bt.isTouch || (bt.isTouch = !0, window.performance && document.addEventListener("mousemove", li));
|
|
6926
6926
|
}
|
|
6927
6927
|
function li() {
|
|
6928
6928
|
var e = performance.now();
|
|
6929
|
-
e -
|
|
6929
|
+
e - Va < 20 && (bt.isTouch = !1, document.removeEventListener("mousemove", li)), Va = e;
|
|
6930
6930
|
}
|
|
6931
6931
|
function Wp() {
|
|
6932
6932
|
var e = document.activeElement;
|
|
@@ -6946,15 +6946,15 @@ function qt(e) {
|
|
|
6946
6946
|
var t = e === "destroy" ? "n already-" : " ";
|
|
6947
6947
|
return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
6948
6948
|
}
|
|
6949
|
-
function
|
|
6949
|
+
function Na(e) {
|
|
6950
6950
|
var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
|
|
6951
6951
|
return e.replace(t, " ").replace(n, "").trim();
|
|
6952
6952
|
}
|
|
6953
6953
|
function Kp(e) {
|
|
6954
|
-
return
|
|
6954
|
+
return Na(`
|
|
6955
6955
|
%ctippy.js
|
|
6956
6956
|
|
|
6957
|
-
%c` +
|
|
6957
|
+
%c` + Na(e) + `
|
|
6958
6958
|
|
|
6959
6959
|
%c👷 This is a development-only message. It will be removed in production.
|
|
6960
6960
|
`);
|
|
@@ -7091,7 +7091,7 @@ function of(e, t) {
|
|
|
7091
7091
|
}, {});
|
|
7092
7092
|
return o;
|
|
7093
7093
|
}
|
|
7094
|
-
function
|
|
7094
|
+
function Fa(e, t) {
|
|
7095
7095
|
var n = Object.assign({}, t, {
|
|
7096
7096
|
content: ii(t.content, [e])
|
|
7097
7097
|
}, t.ignoreAttributes ? {} : of(e, t.plugins));
|
|
@@ -7119,11 +7119,11 @@ var af = function() {
|
|
|
7119
7119
|
function Lo(e, t) {
|
|
7120
7120
|
e[af()] = t;
|
|
7121
7121
|
}
|
|
7122
|
-
function
|
|
7122
|
+
function Ia(e) {
|
|
7123
7123
|
var t = rn();
|
|
7124
7124
|
return e === !0 ? t.className = oi : (t.className = ai, pn(e) ? t.appendChild(e) : Lo(t, e)), t;
|
|
7125
7125
|
}
|
|
7126
|
-
function
|
|
7126
|
+
function Ua(e, t) {
|
|
7127
7127
|
pn(t.content) ? (Lo(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Lo(e, t.content) : e.textContent = t.content);
|
|
7128
7128
|
}
|
|
7129
7129
|
function Oo(e) {
|
|
@@ -7145,10 +7145,10 @@ function fi(e) {
|
|
|
7145
7145
|
var t = rn(), n = rn();
|
|
7146
7146
|
n.className = Rp, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
7147
7147
|
var o = rn();
|
|
7148
|
-
o.className = ni, o.setAttribute("data-state", "hidden"),
|
|
7148
|
+
o.className = ni, o.setAttribute("data-state", "hidden"), Ua(o, e.props), t.appendChild(n), n.appendChild(o), a(e.props, e.props);
|
|
7149
7149
|
function a(i, s) {
|
|
7150
7150
|
var r = Oo(t), l = r.box, c = r.content, u = r.arrow;
|
|
7151
|
-
s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i.content !== s.content || i.allowHTML !== s.allowHTML) &&
|
|
7151
|
+
s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i.content !== s.content || i.allowHTML !== s.allowHTML) && Ua(c, e.props), s.arrow ? u ? i.arrow !== s.arrow && (l.removeChild(u), l.appendChild(Ia(s.arrow))) : l.appendChild(Ia(s.arrow)) : u && l.removeChild(u);
|
|
7152
7152
|
}
|
|
7153
7153
|
return {
|
|
7154
7154
|
popper: t,
|
|
@@ -7158,7 +7158,7 @@ function fi(e) {
|
|
|
7158
7158
|
fi.$$tippy = !0;
|
|
7159
7159
|
var sf = 1, Dn = [], $n = [];
|
|
7160
7160
|
function rf(e, t) {
|
|
7161
|
-
var n =
|
|
7161
|
+
var n = Fa(e, Object.assign({}, tt, di($a(t)))), o, a, i, s = !1, r = !1, l = !1, c = !1, u, v, y, m = [], f = Pa(ve, n.interactiveDebounce), h, p = sf++, b = null, g = Np(n.plugins), C = {
|
|
7162
7162
|
// Is the instance currently enabled?
|
|
7163
7163
|
isEnabled: !0,
|
|
7164
7164
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -7174,7 +7174,7 @@ function rf(e, t) {
|
|
|
7174
7174
|
id: p,
|
|
7175
7175
|
reference: e,
|
|
7176
7176
|
popper: rn(),
|
|
7177
|
-
popperInstance:
|
|
7177
|
+
popperInstance: b,
|
|
7178
7178
|
props: n,
|
|
7179
7179
|
state: C,
|
|
7180
7180
|
plugins: g,
|
|
@@ -7268,9 +7268,9 @@ function rf(e, t) {
|
|
|
7268
7268
|
function I(V) {
|
|
7269
7269
|
if (!(bt.isTouch && (l || V.type === "mousedown"))) {
|
|
7270
7270
|
var ce = V.composedPath && V.composedPath()[0] || V.target;
|
|
7271
|
-
if (!(d.props.interactive &&
|
|
7271
|
+
if (!(d.props.interactive && Ba(k, ce))) {
|
|
7272
7272
|
if (Ht(d.props.triggerTarget || e).some(function(be) {
|
|
7273
|
-
return
|
|
7273
|
+
return Ba(be, ce);
|
|
7274
7274
|
})) {
|
|
7275
7275
|
if (bt.isTouch || d.state.isVisible && d.props.trigger.indexOf("click") >= 0)
|
|
7276
7276
|
return;
|
|
@@ -7496,10 +7496,10 @@ function rf(e, t) {
|
|
|
7496
7496
|
function mt(V) {
|
|
7497
7497
|
if (process.env.NODE_ENV !== "production" && xt(d.state.isDestroyed, qt("setProps")), !d.state.isDestroyed) {
|
|
7498
7498
|
F("onBeforeUpdate", [d, V]), K();
|
|
7499
|
-
var ce = d.props, be =
|
|
7499
|
+
var ce = d.props, be = Fa(e, Object.assign({}, ce, $a(V), {
|
|
7500
7500
|
ignoreAttributes: !0
|
|
7501
7501
|
}));
|
|
7502
|
-
d.props = be, ae(), ce.interactiveDebounce !== be.interactiveDebounce && (z(), f =
|
|
7502
|
+
d.props = be, ae(), ce.interactiveDebounce !== be.interactiveDebounce && (z(), f = Pa(ve, be.interactiveDebounce)), ce.triggerTarget && !be.triggerTarget ? Ht(ce.triggerTarget).forEach(function(Se) {
|
|
7503
7503
|
Se.removeAttribute("aria-expanded");
|
|
7504
7504
|
}) : be.triggerTarget && e.removeAttribute("aria-expanded"), T(), L(), S && S(ce, be), d.popperInstance && (Pe(), Ge().forEach(function(Se) {
|
|
7505
7505
|
requestAnimationFrame(Se._tippy.popperInstance.forceUpdate);
|
|
@@ -7524,9 +7524,9 @@ function rf(e, t) {
|
|
|
7524
7524
|
if (!(!d.state.isVisible || c)) {
|
|
7525
7525
|
if (c = !0, k.offsetHeight, k.style.transition = d.props.moveTransition, ie() && d.props.animation) {
|
|
7526
7526
|
var jt = P(), St = jt.box, at = jt.content;
|
|
7527
|
-
ho([St, at], Ee),
|
|
7527
|
+
ho([St, at], Ee), za([St, at], "visible");
|
|
7528
7528
|
}
|
|
7529
|
-
ne(), T(),
|
|
7529
|
+
ne(), T(), Ra($n, d), (At = d.popperInstance) == null || At.forceUpdate(), F("onMount", [d]), d.props.animation && ie() && q(Ee, function() {
|
|
7530
7530
|
d.state.isShown = !0, F("onShown", [d]);
|
|
7531
7531
|
});
|
|
7532
7532
|
}
|
|
@@ -7539,13 +7539,13 @@ function rf(e, t) {
|
|
|
7539
7539
|
if (!(V || ce || be) && (F("onHide", [d], !1), d.props.onHide(d) !== !1)) {
|
|
7540
7540
|
if (d.state.isVisible = !1, d.state.isShown = !1, c = !1, s = !1, ie() && (k.style.visibility = "hidden"), z(), x(), L(!0), ie()) {
|
|
7541
7541
|
var Ee = P(), qe = Ee.box, Ze = Ee.content;
|
|
7542
|
-
d.props.animation && (ho([qe, Ze], Se),
|
|
7542
|
+
d.props.animation && (ho([qe, Ze], Se), za([qe, Ze], "hidden"));
|
|
7543
7543
|
}
|
|
7544
7544
|
ne(), T(), d.props.animation ? ie() && W(Se, d.unmount) : d.unmount();
|
|
7545
7545
|
}
|
|
7546
7546
|
}
|
|
7547
7547
|
function to(V) {
|
|
7548
|
-
process.env.NODE_ENV !== "production" && xt(d.state.isDestroyed, qt("hideWithInteractivity")), $().addEventListener("mousemove", f),
|
|
7548
|
+
process.env.NODE_ENV !== "production" && xt(d.state.isDestroyed, qt("hideWithInteractivity")), $().addEventListener("mousemove", f), Ra(Dn, f), f(V);
|
|
7549
7549
|
}
|
|
7550
7550
|
function no() {
|
|
7551
7551
|
process.env.NODE_ENV !== "production" && xt(d.state.isDestroyed, qt("unmount")), d.state.isVisible && d.hide(), d.state.isMounted && (Ie(), Ge().forEach(function(V) {
|
|
@@ -7675,7 +7675,7 @@ const vi = {
|
|
|
7675
7675
|
const n = typeof t.value == "object" ? t.value : { disabled: !1, content: t.value };
|
|
7676
7676
|
n.disabled ? e._tippy.disable() : e._tippy.enable(), e._tippy.setContent(n.content);
|
|
7677
7677
|
}
|
|
7678
|
-
},
|
|
7678
|
+
}, ja = /* @__PURE__ */ pe({
|
|
7679
7679
|
name: "AlternateItem",
|
|
7680
7680
|
directives: {
|
|
7681
7681
|
tooltips: uf
|
|
@@ -7700,7 +7700,7 @@ const vi = {
|
|
|
7700
7700
|
selector: t,
|
|
7701
7701
|
user: n,
|
|
7702
7702
|
keyword: o
|
|
7703
|
-
} =
|
|
7703
|
+
} = Ka(e);
|
|
7704
7704
|
return {
|
|
7705
7705
|
disabled: ke(() => t.value.disabledUsers.includes(n.value.username)),
|
|
7706
7706
|
getItemContent: () => {
|
|
@@ -7762,8 +7762,8 @@ const vi = {
|
|
|
7762
7762
|
return f;
|
|
7763
7763
|
}), l = (f, h = 0) => {
|
|
7764
7764
|
let p = 0;
|
|
7765
|
-
return i.value.slice(0, f).forEach((
|
|
7766
|
-
|
|
7765
|
+
return i.value.slice(0, f).forEach((b) => {
|
|
7766
|
+
b.hasOwnProperty("children") ? p += b.children.length : p += 1;
|
|
7767
7767
|
}), p + h;
|
|
7768
7768
|
}, c = () => {
|
|
7769
7769
|
if (lf({
|
|
@@ -7813,13 +7813,13 @@ const vi = {
|
|
|
7813
7813
|
onClick: (n) => n.stopPropagation(),
|
|
7814
7814
|
onMousedown: Ne(() => void this.selector.handleGroupMousedown(), ["left", "stop"]),
|
|
7815
7815
|
onMouseup: Ne(() => void this.selector.handleGroupMouseup(), ["left", "stop"])
|
|
7816
|
-
}, [`${e.display_name}(${e.children.length})`]), e.children.map((n, o) => _(_e, null, [_(
|
|
7816
|
+
}, [`${e.display_name}(${e.children.length})`]), e.children.map((n, o) => _(_e, null, [_(ja, {
|
|
7817
7817
|
ref: (a) => void this.setRef(a),
|
|
7818
7818
|
index: this.getIndex(t, o),
|
|
7819
7819
|
selector: this.selector,
|
|
7820
7820
|
user: n,
|
|
7821
7821
|
keyword: this.keyword
|
|
7822
|
-
}, null)]))]) : _(_e, null, [_(
|
|
7822
|
+
}, null)]))]) : _(_e, null, [_(ja, {
|
|
7823
7823
|
ref: (n) => void this.setRef(n),
|
|
7824
7824
|
selector: this.selector,
|
|
7825
7825
|
user: e,
|
|
@@ -7850,7 +7850,7 @@ const vi = {
|
|
|
7850
7850
|
// },
|
|
7851
7851
|
// },
|
|
7852
7852
|
setup(e) {
|
|
7853
|
-
const t =
|
|
7853
|
+
const t = Wa("parentSelector");
|
|
7854
7854
|
return () => t.renderTag(ln, {
|
|
7855
7855
|
username: e.username,
|
|
7856
7856
|
index: e.index,
|
|
@@ -7995,7 +7995,7 @@ const vi = {
|
|
|
7995
7995
|
displayTagTips: f,
|
|
7996
7996
|
tagTipsContent: h,
|
|
7997
7997
|
tagTipsDelay: p,
|
|
7998
|
-
fixedHeight:
|
|
7998
|
+
fixedHeight: b,
|
|
7999
7999
|
disabledUsers: g,
|
|
8000
8000
|
api: C,
|
|
8001
8001
|
searchLimit: d,
|
|
@@ -8003,7 +8003,7 @@ const vi = {
|
|
|
8003
8003
|
pasteValidator: k,
|
|
8004
8004
|
displayDomain: S,
|
|
8005
8005
|
type: H
|
|
8006
|
-
} =
|
|
8006
|
+
} = Ka(e), j = async (U, Y) => {
|
|
8007
8007
|
try {
|
|
8008
8008
|
const se = Ge();
|
|
8009
8009
|
Je(), se.setContent(x.value.$refs.alternateListContainer), Ot(), x.value.loading = !!U;
|
|
@@ -8011,8 +8011,8 @@ const vi = {
|
|
|
8011
8011
|
if (U) {
|
|
8012
8012
|
const xn = [(y.value || Pe)(U, Y)];
|
|
8013
8013
|
l.value && xn.push(ye(U));
|
|
8014
|
-
const [
|
|
8015
|
-
|
|
8014
|
+
const [Ko, Qo] = await Promise.all(xn);
|
|
8015
|
+
Qo && Ko.results.unshift(...Qo.results), He(Ko);
|
|
8016
8016
|
} else {
|
|
8017
8017
|
const xn = ye();
|
|
8018
8018
|
He(xn);
|
|
@@ -8035,7 +8035,7 @@ const vi = {
|
|
|
8035
8035
|
Ai("parentSelector", ie);
|
|
8036
8036
|
const re = G(32), $ = G(30), P = G(""), R = G(0), L = G(-1), F = G(!0), ne = G(!1), T = G(null), z = G([]), I = G([]), Q = G([]), Z = Wi(j, 800, { leading: !1 }), X = G(null), x = G(null), W = G({}), q = G(null), J = G(!1), ee = ke(() => H.value === "selector"), ae = ke(() => {
|
|
8037
8037
|
const U = {};
|
|
8038
|
-
return ne.value ? U.maxHeight =
|
|
8038
|
+
return ne.value ? U.maxHeight = b.value ? `${s.value * $.value}px` : "auto" : b.value && (U.height = `${$.value}px`), U;
|
|
8039
8039
|
}), K = G([]);
|
|
8040
8040
|
K.value = [...n.value];
|
|
8041
8041
|
const le = ke(
|
|
@@ -8126,7 +8126,7 @@ const vi = {
|
|
|
8126
8126
|
onShow: () => ne.value
|
|
8127
8127
|
})), X.value), Je = () => {
|
|
8128
8128
|
if (!x.value) {
|
|
8129
|
-
const U =
|
|
8129
|
+
const U = Za(df), Y = document.createElement("div");
|
|
8130
8130
|
U.mount(Y), x.value = Qn.getInstance("alternateContent", "alternateList"), x.value.selector = ie;
|
|
8131
8131
|
}
|
|
8132
8132
|
}, Ue = () => {
|
|
@@ -8297,7 +8297,7 @@ const vi = {
|
|
|
8297
8297
|
}, Gt = (U) => Q.value.find((se) => {
|
|
8298
8298
|
const me = se.username, Me = se.display_name, Be = [me, Me].some((He) => He.toLowerCase() === U.toLowerCase()), Ve = K.value.includes(me);
|
|
8299
8299
|
return Be && !Ve;
|
|
8300
|
-
}),
|
|
8300
|
+
}), Wo = async (U) => {
|
|
8301
8301
|
if (C.value) {
|
|
8302
8302
|
const se = (await nn.pasteValidate(C.value, U)).map((me) => me.username);
|
|
8303
8303
|
return i.value ? se : [...new Set(se.concat(U))];
|
|
@@ -8310,7 +8310,7 @@ const vi = {
|
|
|
8310
8310
|
const se = U.clipboardData.getData("text").replace(/\s/g, "").split(/,|;/).map((He) => A.value(He)).filter((He) => He.length), me = [...new Set(se)];
|
|
8311
8311
|
if (!me.length)
|
|
8312
8312
|
return;
|
|
8313
|
-
const Me = await (k.value ||
|
|
8313
|
+
const Me = await (k.value || Wo)(me), Be = Me.filter((He) => !K.value.includes(He));
|
|
8314
8314
|
if (!Me.length)
|
|
8315
8315
|
return;
|
|
8316
8316
|
const Ve = [...K.value];
|
|
@@ -8341,18 +8341,18 @@ const vi = {
|
|
|
8341
8341
|
Y.scrollTop = 0;
|
|
8342
8342
|
});
|
|
8343
8343
|
}, io = G(0), kn = () => {
|
|
8344
|
-
if (!ee.value || (
|
|
8344
|
+
if (!ee.value || (Zo(), !b.value || ne.value || K.value.length < 2))
|
|
8345
8345
|
return !1;
|
|
8346
8346
|
ro(), io.value = setTimeout(() => {
|
|
8347
8347
|
const U = An(), Y = U.findIndex((se, me) => me ? U[me - 1].offsetTop !== se.offsetTop : !1);
|
|
8348
|
-
Y > -1 ? T.value = Y : T.value = null, D.value.scrollTop = 0,
|
|
8348
|
+
Y > -1 ? T.value = Y : T.value = null, D.value.scrollTop = 0, Jo();
|
|
8349
8349
|
}, 0);
|
|
8350
8350
|
}, ro = () => {
|
|
8351
8351
|
io.value && clearTimeout(io.value);
|
|
8352
|
-
},
|
|
8352
|
+
}, Jo = () => {
|
|
8353
8353
|
if (!T.value)
|
|
8354
8354
|
return;
|
|
8355
|
-
|
|
8355
|
+
Yo();
|
|
8356
8356
|
const U = An(), Y = U[T.value];
|
|
8357
8357
|
if (Y)
|
|
8358
8358
|
q.value.textContent = `+${K.value.length - T.value}`, D.value.insertBefore(q.value, Y);
|
|
@@ -8364,12 +8364,12 @@ const vi = {
|
|
|
8364
8364
|
const se = U[T.value - 1];
|
|
8365
8365
|
q.value.offsetTop !== se.offsetTop && (T.value -= 1, D.value.insertBefore(q.value, q.value.previousSibling), q.value.textContent = `+${K.value.length - T.value}`);
|
|
8366
8366
|
}, 0);
|
|
8367
|
-
},
|
|
8367
|
+
}, Yo = () => {
|
|
8368
8368
|
if (q.value)
|
|
8369
8369
|
return q.value;
|
|
8370
8370
|
const U = document.createElement("span");
|
|
8371
8371
|
U.className = "user-selector-overflow-tag", q.value = U;
|
|
8372
|
-
},
|
|
8372
|
+
}, Zo = () => {
|
|
8373
8373
|
q.value && q.value.parentNode === D.value && D.value.removeChild(q.value);
|
|
8374
8374
|
}, wi = () => {
|
|
8375
8375
|
K.value = [], t.emit("clear");
|
|
@@ -8445,16 +8445,16 @@ const vi = {
|
|
|
8445
8445
|
handleInput: ao,
|
|
8446
8446
|
handleBlur: dt,
|
|
8447
8447
|
getMatchedUser: Gt,
|
|
8448
|
-
defaultPasteValidator:
|
|
8448
|
+
defaultPasteValidator: Wo,
|
|
8449
8449
|
handlePaste: bi,
|
|
8450
8450
|
getSelectedDOM: An,
|
|
8451
8451
|
moveInput: Ye,
|
|
8452
8452
|
updateScroller: so,
|
|
8453
8453
|
calcOverflow: kn,
|
|
8454
8454
|
clearOverflowTimer: ro,
|
|
8455
|
-
insertOverflowTag:
|
|
8456
|
-
getOverflowTagNode:
|
|
8457
|
-
removeOverflowTagNode:
|
|
8455
|
+
insertOverflowTag: Jo,
|
|
8456
|
+
getOverflowTagNode: Yo,
|
|
8457
|
+
removeOverflowTagNode: Zo,
|
|
8458
8458
|
handleFastClear: wi,
|
|
8459
8459
|
reset: kt,
|
|
8460
8460
|
// getRefSetter,
|
|
@@ -8468,7 +8468,7 @@ const vi = {
|
|
|
8468
8468
|
};
|
|
8469
8469
|
function wf(e, t, n, o, a, i) {
|
|
8470
8470
|
const s = te("render-tag"), r = te("render-avatar");
|
|
8471
|
-
return e.isSelector ? (
|
|
8471
|
+
return e.isSelector ? (w(), B("div", ki({
|
|
8472
8472
|
key: 0,
|
|
8473
8473
|
class: "user-selector"
|
|
8474
8474
|
}, e.$attrs, {
|
|
@@ -8490,11 +8490,11 @@ function wf(e, t, n, o, a, i) {
|
|
|
8490
8490
|
"is-flex-height": !e.fixedHeight
|
|
8491
8491
|
}]),
|
|
8492
8492
|
ref: "containerRef",
|
|
8493
|
-
style:
|
|
8493
|
+
style: Qa(e.containerStyle),
|
|
8494
8494
|
"data-placeholder": e.placeholder,
|
|
8495
8495
|
onMousewheel: t[8] || (t[8] = (...l) => e.handleContainerScroll && e.handleContainerScroll(...l))
|
|
8496
8496
|
}, [
|
|
8497
|
-
e.multiple || !e.isFocus ? (
|
|
8497
|
+
e.multiple || !e.isFocus ? (w(!0), B(_e, { key: 0 }, je(e.localValueUsers, (l, c) => (w(), B("span", {
|
|
8498
8498
|
class: "user-selector-selected",
|
|
8499
8499
|
key: l.username,
|
|
8500
8500
|
onClick: t[2] || (t[2] = Ne(() => {
|
|
@@ -8504,13 +8504,13 @@ function wf(e, t, n, o, a, i) {
|
|
|
8504
8504
|
onMouseenter: (u) => e.handleSelectedMouseenter(u, l),
|
|
8505
8505
|
onMouseleave: (u) => e.handleSelectedMouseleave(u, l)
|
|
8506
8506
|
}, [
|
|
8507
|
-
e.renderTag ? (
|
|
8507
|
+
e.renderTag ? (w(), oe(s, {
|
|
8508
8508
|
key: 0,
|
|
8509
8509
|
user: l,
|
|
8510
8510
|
username: l.username,
|
|
8511
8511
|
index: c
|
|
8512
|
-
}, null, 8, ["user", "username", "index"])) : (
|
|
8513
|
-
e.tagType === "avatar" ? (
|
|
8512
|
+
}, null, 8, ["user", "username", "index"])) : (w(), B(_e, { key: 1 }, [
|
|
8513
|
+
e.tagType === "avatar" ? (w(), oe(r, {
|
|
8514
8514
|
key: 0,
|
|
8515
8515
|
class: "user-selector-selected-avatar",
|
|
8516
8516
|
user: l,
|
|
@@ -8518,7 +8518,7 @@ function wf(e, t, n, o, a, i) {
|
|
|
8518
8518
|
}, null, 8, ["user", "url-method"])) : ue("", !0),
|
|
8519
8519
|
E("span", gf, ge(e.getDisplayText(l)), 1)
|
|
8520
8520
|
], 64)),
|
|
8521
|
-
e.tagClearable && e.tagType === "tag" ? (
|
|
8521
|
+
e.tagClearable && e.tagType === "tag" ? (w(), B("i", {
|
|
8522
8522
|
key: 2,
|
|
8523
8523
|
class: "user-selector-selected-clear bk-biz-components-icon bk-biz-icon-close",
|
|
8524
8524
|
onMouseup: t[0] || (t[0] = Ne(() => {
|
|
@@ -8539,16 +8539,16 @@ function wf(e, t, n, o, a, i) {
|
|
|
8539
8539
|
onPaste: t[6] || (t[6] = Ne((l) => e.handlePaste(l), ["prevent", "stop"])),
|
|
8540
8540
|
onKeydown: t[7] || (t[7] = (l) => e.handleKeydown(l))
|
|
8541
8541
|
}, null, 544), [
|
|
8542
|
-
[
|
|
8542
|
+
[Ya, e.isFocus]
|
|
8543
8543
|
])
|
|
8544
8544
|
], 46, mf),
|
|
8545
|
-
e.fastClear && !e.disabled && e.localValue.length ? (
|
|
8545
|
+
e.fastClear && !e.disabled && e.localValue.length ? (w(), B("i", {
|
|
8546
8546
|
key: 0,
|
|
8547
8547
|
class: "user-selector-clear bk-biz-components-icon bk-biz-icon-close-circle-shape",
|
|
8548
8548
|
onClick: t[9] || (t[9] = Ne((...l) => e.handleFastClear && e.handleFastClear(...l), ["stop"]))
|
|
8549
8549
|
})) : ue("", !0)
|
|
8550
8550
|
])
|
|
8551
|
-
], 16)) : (
|
|
8551
|
+
], 16)) : (w(), B("span", bf, ge(e.userInfo), 1));
|
|
8552
8552
|
}
|
|
8553
8553
|
const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
8554
8554
|
__name: "index",
|
|
@@ -8571,7 +8571,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8571
8571
|
const i = (s) => {
|
|
8572
8572
|
o("update:modelValue", s.slice()), o("change", s.slice());
|
|
8573
8573
|
};
|
|
8574
|
-
return (s, r) => (
|
|
8574
|
+
return (s, r) => (w(), oe($e(_f), {
|
|
8575
8575
|
modelValue: n.modelValue,
|
|
8576
8576
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => n.modelValue = l),
|
|
8577
8577
|
api: n.fetchUserApi,
|
|
@@ -8651,8 +8651,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8651
8651
|
if (h)
|
|
8652
8652
|
p.includes(f) || p.push(f);
|
|
8653
8653
|
else {
|
|
8654
|
-
const
|
|
8655
|
-
|
|
8654
|
+
const b = p.findIndex((g) => g === f);
|
|
8655
|
+
b > -1 && p.splice(b, 1);
|
|
8656
8656
|
}
|
|
8657
8657
|
y();
|
|
8658
8658
|
}, y = () => {
|
|
@@ -8668,29 +8668,29 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8668
8668
|
});
|
|
8669
8669
|
};
|
|
8670
8670
|
return (m, f) => {
|
|
8671
|
-
const h = te("bk-switcher"), p = te("bk-table-column"),
|
|
8672
|
-
return
|
|
8671
|
+
const h = te("bk-switcher"), p = te("bk-table-column"), b = te("bk-table"), g = te("bk-form-item");
|
|
8672
|
+
return w(), B("div", kf, [_(g, {
|
|
8673
8673
|
label: "通知方式"
|
|
8674
8674
|
}, {
|
|
8675
|
-
default: M(() => [_(
|
|
8675
|
+
default: M(() => [_(b, {
|
|
8676
8676
|
class: "notify-type-table",
|
|
8677
8677
|
data: i,
|
|
8678
8678
|
border: ["outer"]
|
|
8679
8679
|
}, {
|
|
8680
|
-
default: M(() => [(
|
|
8680
|
+
default: M(() => [(w(), B(_e, null, je(n, (C) => _(p, {
|
|
8681
8681
|
key: C.type,
|
|
8682
8682
|
label: c
|
|
8683
8683
|
}, {
|
|
8684
8684
|
default: M(({
|
|
8685
8685
|
index: d
|
|
8686
|
-
}) => [C.type ? (
|
|
8686
|
+
}) => [C.type ? (w(), oe(h, {
|
|
8687
8687
|
key: 0,
|
|
8688
8688
|
size: "small",
|
|
8689
8689
|
theme: "primary",
|
|
8690
8690
|
disabled: !o.editable,
|
|
8691
8691
|
value: u(d, C.type),
|
|
8692
8692
|
onChange: (A) => v(d, C.type, A)
|
|
8693
|
-
}, null, 8, ["disabled", "value", "onChange"])) : (
|
|
8693
|
+
}, null, 8, ["disabled", "value", "onChange"])) : (w(), B("span", Cf, ge(d === 0 ? "成功" : "失败"), 1))]),
|
|
8694
8694
|
_: 2
|
|
8695
8695
|
}, 1024)), 64))]),
|
|
8696
8696
|
_: 1
|
|
@@ -8739,7 +8739,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8739
8739
|
validate: c
|
|
8740
8740
|
}), (v, y) => {
|
|
8741
8741
|
const m = te("bk-input"), f = te("bk-form-item"), h = te("bk-form");
|
|
8742
|
-
return
|
|
8742
|
+
return w(), B("div", Tf, [
|
|
8743
8743
|
_(h, {
|
|
8744
8744
|
ref_key: "formRef",
|
|
8745
8745
|
ref: s,
|
|
@@ -8836,7 +8836,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8836
8836
|
};
|
|
8837
8837
|
return (c, u) => {
|
|
8838
8838
|
const v = te("bk-button"), y = te("bk-sideslider");
|
|
8839
|
-
return
|
|
8839
|
+
return w(), oe(y, {
|
|
8840
8840
|
title: "基础信息",
|
|
8841
8841
|
"is-show": n.show,
|
|
8842
8842
|
width: 800,
|
|
@@ -8846,7 +8846,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8846
8846
|
}, {
|
|
8847
8847
|
footer: M(() => [
|
|
8848
8848
|
E("div", Lf, [
|
|
8849
|
-
n.editable ? (
|
|
8849
|
+
n.editable ? (w(), B(_e, { key: 0 }, [
|
|
8850
8850
|
_(v, {
|
|
8851
8851
|
theme: "primary",
|
|
8852
8852
|
onClick: r
|
|
@@ -8862,7 +8862,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8862
8862
|
])]),
|
|
8863
8863
|
_: 1
|
|
8864
8864
|
})
|
|
8865
|
-
], 64)) : (
|
|
8865
|
+
], 64)) : (w(), oe(v, {
|
|
8866
8866
|
key: 1,
|
|
8867
8867
|
theme: "primary",
|
|
8868
8868
|
onClick: l
|
|
@@ -8898,11 +8898,22 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8898
8898
|
},
|
|
8899
8899
|
emits: ["update:modelValue", "change", "blur", "save"],
|
|
8900
8900
|
setup(e, { emit: t }) {
|
|
8901
|
-
self.MonacoEnvironment = {
|
|
8901
|
+
typeof self < "u" && (self.MonacoEnvironment = {
|
|
8902
8902
|
getWorker(f, h) {
|
|
8903
|
-
|
|
8903
|
+
const b = {
|
|
8904
|
+
json: "monaco-editor/esm/vs/language/json/json.worker.js",
|
|
8905
|
+
css: "monaco-editor/esm/vs/language/css/css.worker.js",
|
|
8906
|
+
scss: "monaco-editor/esm/vs/language/css/css.worker.js",
|
|
8907
|
+
less: "monaco-editor/esm/vs/language/css/css.worker.js",
|
|
8908
|
+
html: "monaco-editor/esm/vs/language/html/html.worker.js",
|
|
8909
|
+
handlebars: "monaco-editor/esm/vs/language/html/html.worker.js",
|
|
8910
|
+
razor: "monaco-editor/esm/vs/language/html/html.worker.js",
|
|
8911
|
+
typescript: "monaco-editor/esm/vs/language/typescript/ts.worker.js",
|
|
8912
|
+
javascript: "monaco-editor/esm/vs/language/typescript/ts.worker.js"
|
|
8913
|
+
}[h] || "monaco-editor/esm/vs/editor/editor.worker.js";
|
|
8914
|
+
return new Worker(b, { type: "module" });
|
|
8904
8915
|
}
|
|
8905
|
-
};
|
|
8916
|
+
});
|
|
8906
8917
|
const n = {
|
|
8907
8918
|
language: "javascript",
|
|
8908
8919
|
theme: "vs-dark",
|
|
@@ -8973,7 +8984,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8973
8984
|
};
|
|
8974
8985
|
return (f, h) => {
|
|
8975
8986
|
const p = Fe("bk-tooltips");
|
|
8976
|
-
return
|
|
8987
|
+
return w(), oe(Ci, {
|
|
8977
8988
|
disabled: !r.value,
|
|
8978
8989
|
to: "body"
|
|
8979
8990
|
}, [
|
|
@@ -8987,13 +8998,13 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
8987
8998
|
}, null, 512), [
|
|
8988
8999
|
[p, { content: "复制", placement: "top", distance: 20 }]
|
|
8989
9000
|
]),
|
|
8990
|
-
r.value ? Te((
|
|
9001
|
+
r.value ? Te((w(), oe($e($i), {
|
|
8991
9002
|
key: 1,
|
|
8992
9003
|
class: "fullscreen-icon",
|
|
8993
9004
|
onClick: v
|
|
8994
9005
|
}, null, 512)), [
|
|
8995
9006
|
[p, { content: "退出全屏", placement: "top", distance: 20 }]
|
|
8996
|
-
]) : Te((
|
|
9007
|
+
]) : Te((w(), oe($e(Ri), {
|
|
8997
9008
|
key: 0,
|
|
8998
9009
|
class: "fullscreen-icon",
|
|
8999
9010
|
onClick: u
|
|
@@ -9010,7 +9021,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9010
9021
|
], 8, ["disabled"]);
|
|
9011
9022
|
};
|
|
9012
9023
|
}
|
|
9013
|
-
}), mi = /* @__PURE__ */ fe($f, [["__scopeId", "data-v-
|
|
9024
|
+
}), mi = /* @__PURE__ */ fe($f, [["__scopeId", "data-v-35fe332c"]]), zf = { class: "pipeline-tree-code" }, Bf = /* @__PURE__ */ pe({
|
|
9014
9025
|
__name: "pipeline-tree-code",
|
|
9015
9026
|
props: {
|
|
9016
9027
|
pipelineTree: {}
|
|
@@ -9020,7 +9031,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9020
9031
|
readOnly: !0,
|
|
9021
9032
|
language: "json"
|
|
9022
9033
|
});
|
|
9023
|
-
return (a, i) => (
|
|
9034
|
+
return (a, i) => (w(), B("div", zf, [
|
|
9024
9035
|
_(mi, {
|
|
9025
9036
|
modelValue: n.value,
|
|
9026
9037
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => n.value = s),
|
|
@@ -9042,7 +9053,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9042
9053
|
};
|
|
9043
9054
|
return (i, s) => {
|
|
9044
9055
|
const r = te("bk-button"), l = te("bk-sideslider");
|
|
9045
|
-
return
|
|
9056
|
+
return w(), oe(l, {
|
|
9046
9057
|
title: "Code",
|
|
9047
9058
|
"is-show": n.show,
|
|
9048
9059
|
width: 800,
|
|
@@ -9064,7 +9075,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9064
9075
|
]),
|
|
9065
9076
|
default: M(() => [
|
|
9066
9077
|
E("div", Nf, [
|
|
9067
|
-
n.show ? (
|
|
9078
|
+
n.show ? (w(), oe(Vf, {
|
|
9068
9079
|
key: 0,
|
|
9069
9080
|
"pipeline-tree": n.pipelineTree
|
|
9070
9081
|
}, null, 8, ["pipeline-tree"])) : ue("", !0)
|
|
@@ -9107,7 +9118,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9107
9118
|
success: [],
|
|
9108
9119
|
fail: []
|
|
9109
9120
|
},
|
|
9110
|
-
notify_receivers:
|
|
9121
|
+
notify_receivers: b = {
|
|
9111
9122
|
more_receiver: "",
|
|
9112
9123
|
receiver_group: []
|
|
9113
9124
|
}
|
|
@@ -9119,7 +9130,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9119
9130
|
desc: f,
|
|
9120
9131
|
notify_config: {
|
|
9121
9132
|
notify_type: p,
|
|
9122
|
-
notify_receivers:
|
|
9133
|
+
notify_receivers: b
|
|
9123
9134
|
}
|
|
9124
9135
|
}
|
|
9125
9136
|
};
|
|
@@ -9131,14 +9142,14 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9131
9142
|
}, y = (m, f) => {
|
|
9132
9143
|
const h = [...o.flowData.pipeline_tree.outputs], p = h.indexOf(m);
|
|
9133
9144
|
f ? p === -1 && h.push(m) : p > -1 && h.splice(p, 1);
|
|
9134
|
-
const
|
|
9135
|
-
a("change", { ...o.flowData, pipeline_tree:
|
|
9145
|
+
const b = { ...o.flowData.pipeline_tree, outputs: h };
|
|
9146
|
+
a("change", { ...o.flowData, pipeline_tree: b });
|
|
9136
9147
|
};
|
|
9137
9148
|
return t({
|
|
9138
9149
|
openBasicSetting: c
|
|
9139
9150
|
}), (m, f) => {
|
|
9140
9151
|
const h = Fe("bk-tooltips");
|
|
9141
|
-
return
|
|
9152
|
+
return w(), B("div", jf, [
|
|
9142
9153
|
E("span", Gf, [
|
|
9143
9154
|
Te(E("i", {
|
|
9144
9155
|
class: "bk-incident-icon incident-caozuojilu",
|
|
@@ -9207,12 +9218,12 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9207
9218
|
const t = e;
|
|
9208
9219
|
return (n, o) => {
|
|
9209
9220
|
const a = te("bk-link");
|
|
9210
|
-
return
|
|
9211
|
-
t.parseLang === "MAKO" ? (
|
|
9221
|
+
return w(), B("div", Hf, [
|
|
9222
|
+
t.parseLang === "MAKO" ? (w(), B(_e, { key: 0 }, [
|
|
9212
9223
|
o[0] || (o[0] = lo('<p data-v-dd71ced7>makoOperates</p><p data-v-dd71ced7>支持 "and、or、not、True、False" 等 MAKO 关键字语法</p><br data-v-dd71ced7><p data-v-dd71ced7>支持直接引用全局变量</p><p data-v-dd71ced7>使用内置函数、datetime、re、hashlib、random、time、os.path模块处理全局变量</p><br data-v-dd71ced7><p data-v-dd71ced7>示例:</p><p data-v-dd71ced7>假设 key 是值为 "3" 的全局变量</p><p data-v-dd71ced7>字符串比较:<code class="code" data-v-dd71ced7>key == "3"</code></p><p data-v-dd71ced7>数值比较:<code class="code" data-v-dd71ced7>int(key) >= 3</code></p><p data-v-dd71ced7>包含:<code class="code" data-v-dd71ced7>int(key) in (1,2,3)</code></p>', 11))
|
|
9213
|
-
], 64)) : t.parseLang === "FEEL" ? (
|
|
9224
|
+
], 64)) : t.parseLang === "FEEL" ? (w(), B(_e, { key: 1 }, [
|
|
9214
9225
|
o[1] || (o[1] = lo('<p data-v-dd71ced7>feelOperates</p><p data-v-dd71ced7>支持 "and、or、true、false" 等关键字语法</p><p data-v-dd71ced7>支持 FEEL (Friendly Enough Expression Language) 基础语法</p><br data-v-dd71ced7><p data-v-dd71ced7>支持使用全局变量,如<code class="code" data-v-dd71ced7>${key}</code>、<code class="code" data-v-dd71ced7>${int(key)}</code></p><p data-v-dd71ced7>${}中支持使用内置函数、datetime、re、hashlib、random、time、os.path模块处理全局变量</p><br data-v-dd71ced7><p data-v-dd71ced7>示例:</p><p data-v-dd71ced7>字符串比较:<code class="code" data-v-dd71ced7>"${key}" = "my string"</code></p><p data-v-dd71ced7>数值比较:<code class="code" data-v-dd71ced7>${int(key)} >= 3</code></p><p data-v-dd71ced7>包含:<code class="code" data-v-dd71ced7>list contains([1, 2, 3], ${int(key)})</code></p>', 11))
|
|
9215
|
-
], 64)) : (
|
|
9226
|
+
], 64)) : (w(), B(_e, { key: 2 }, [
|
|
9216
9227
|
o[4] || (o[4] = E("p", null, "makoOperates", -1)),
|
|
9217
9228
|
o[5] || (o[5] = E("p", null, '支持 "and、or、True/true、False/false" 等关键字语法', -1)),
|
|
9218
9229
|
E("p", null, [
|
|
@@ -9266,8 +9277,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9266
9277
|
return t({
|
|
9267
9278
|
validate: () => r.value.validate().then(() => !0).catch(() => !1)
|
|
9268
9279
|
}), (y, m) => {
|
|
9269
|
-
const f = te("bk-input"), h = te("bk-form-item"), p = te("bk-radio"),
|
|
9270
|
-
return
|
|
9280
|
+
const f = te("bk-input"), h = te("bk-form-item"), p = te("bk-radio"), b = te("bk-radio-group"), g = te("bk-form"), C = Fe("bk-tooltips");
|
|
9281
|
+
return w(), B("div", Yf, [
|
|
9271
9282
|
_(g, {
|
|
9272
9283
|
ref_key: "formRef",
|
|
9273
9284
|
ref: r,
|
|
@@ -9296,7 +9307,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9296
9307
|
required: !0
|
|
9297
9308
|
}, {
|
|
9298
9309
|
default: M(() => [
|
|
9299
|
-
_(
|
|
9310
|
+
_(b, {
|
|
9300
9311
|
modelValue: s.value,
|
|
9301
9312
|
"onUpdate:modelValue": m[1] || (m[1] = (d) => s.value = d),
|
|
9302
9313
|
onChange: c
|
|
@@ -9317,7 +9328,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9317
9328
|
}, {
|
|
9318
9329
|
default: M(() => [
|
|
9319
9330
|
m[4] || (m[4] = de(" 默认分支 ", -1)),
|
|
9320
|
-
Te(_($e(
|
|
9331
|
+
Te(_($e(Xa), { class: "radio-tips" }, null, 512), [
|
|
9321
9332
|
[C, {
|
|
9322
9333
|
content: "所有分支均不匹配时执行,类似switch-case-default里面的default",
|
|
9323
9334
|
width: 216,
|
|
@@ -9333,7 +9344,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9333
9344
|
]),
|
|
9334
9345
|
_: 1
|
|
9335
9346
|
}),
|
|
9336
|
-
s.value ? ue("", !0) : (
|
|
9347
|
+
s.value ? ue("", !0) : (w(), oe(h, {
|
|
9337
9348
|
key: 0,
|
|
9338
9349
|
label: "表达式",
|
|
9339
9350
|
property: "evaluate",
|
|
@@ -9385,7 +9396,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9385
9396
|
};
|
|
9386
9397
|
return (u, v) => {
|
|
9387
9398
|
const y = te("bk-button"), m = te("bk-sideslider");
|
|
9388
|
-
return
|
|
9399
|
+
return w(), oe(m, {
|
|
9389
9400
|
title: "分支条件",
|
|
9390
9401
|
"is-show": n.show,
|
|
9391
9402
|
width: 800,
|
|
@@ -9394,7 +9405,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9394
9405
|
}, {
|
|
9395
9406
|
footer: M(() => [
|
|
9396
9407
|
E("div", e0, [
|
|
9397
|
-
n.editable ? (
|
|
9408
|
+
n.editable ? (w(), B(_e, { key: 0 }, [
|
|
9398
9409
|
_(y, {
|
|
9399
9410
|
theme: "primary",
|
|
9400
9411
|
onClick: l
|
|
@@ -9410,7 +9421,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9410
9421
|
])]),
|
|
9411
9422
|
_: 1
|
|
9412
9423
|
})
|
|
9413
|
-
], 64)) : (
|
|
9424
|
+
], 64)) : (w(), oe(y, {
|
|
9414
9425
|
key: 1,
|
|
9415
9426
|
theme: "primary",
|
|
9416
9427
|
onClick: c
|
|
@@ -9456,11 +9467,11 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9456
9467
|
}
|
|
9457
9468
|
);
|
|
9458
9469
|
const l = ke(() => o.node.component.code === "uniform_api"), c = ke(() => {
|
|
9459
|
-
const { component: h, name: p } = s.value, { code:
|
|
9460
|
-
let d =
|
|
9470
|
+
const { component: h, name: p } = s.value, { code: b = "", version: g = "", data: C = {} } = h;
|
|
9471
|
+
let d = b === "uniform_api" && C.uniform_api_plugin_method?.value || "";
|
|
9461
9472
|
return {
|
|
9462
9473
|
name: p,
|
|
9463
|
-
code:
|
|
9474
|
+
code: b,
|
|
9464
9475
|
version: g,
|
|
9465
9476
|
method: d
|
|
9466
9477
|
};
|
|
@@ -9488,8 +9499,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9488
9499
|
return t({
|
|
9489
9500
|
validate: m
|
|
9490
9501
|
}), (h, p) => {
|
|
9491
|
-
const
|
|
9492
|
-
return
|
|
9502
|
+
const b = te("bk-input"), g = te("bk-button"), C = te("bk-form-item"), d = te("bk-option"), A = te("bk-select"), k = te("bk-checkbox"), S = te("bk-switcher"), H = te("bk-form");
|
|
9503
|
+
return w(), B("section", o0, [
|
|
9493
9504
|
_(H, {
|
|
9494
9505
|
ref_key: "formRef",
|
|
9495
9506
|
ref: i,
|
|
@@ -9505,11 +9516,11 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9505
9516
|
}, {
|
|
9506
9517
|
default: M(() => [
|
|
9507
9518
|
E("div", a0, [
|
|
9508
|
-
l.value ? (
|
|
9519
|
+
l.value ? (w(), oe(b, {
|
|
9509
9520
|
key: 0,
|
|
9510
9521
|
"model-value": o.node.component.api_meta?.alias,
|
|
9511
9522
|
readonly: !0
|
|
9512
|
-
}, null, 8, ["model-value"])) : (
|
|
9523
|
+
}, null, 8, ["model-value"])) : (w(), oe(b, {
|
|
9513
9524
|
key: 1,
|
|
9514
9525
|
"model-value": o.node.component.code,
|
|
9515
9526
|
readonly: !0
|
|
@@ -9529,7 +9540,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9529
9540
|
]),
|
|
9530
9541
|
_: 1
|
|
9531
9542
|
}, 8, ["label"]),
|
|
9532
|
-
l.value ? (
|
|
9543
|
+
l.value ? (w(), oe(C, {
|
|
9533
9544
|
key: 0,
|
|
9534
9545
|
label: "请求方法",
|
|
9535
9546
|
required: "",
|
|
@@ -9543,7 +9554,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9543
9554
|
onChange: u
|
|
9544
9555
|
}, {
|
|
9545
9556
|
default: M(() => [
|
|
9546
|
-
(
|
|
9557
|
+
(w(!0), B(_e, null, je(o.uniformApiMethods, (j) => (w(), oe(d, {
|
|
9547
9558
|
key: j,
|
|
9548
9559
|
id: j,
|
|
9549
9560
|
label: j
|
|
@@ -9553,7 +9564,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9553
9564
|
}, 8, ["model-value", "disabled"])
|
|
9554
9565
|
]),
|
|
9555
9566
|
_: 1
|
|
9556
|
-
})) : (
|
|
9567
|
+
})) : (w(), oe(C, {
|
|
9557
9568
|
key: 1,
|
|
9558
9569
|
label: "插件版本",
|
|
9559
9570
|
required: "",
|
|
@@ -9575,7 +9586,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9575
9586
|
property: "name"
|
|
9576
9587
|
}, {
|
|
9577
9588
|
default: M(() => [
|
|
9578
|
-
_(
|
|
9589
|
+
_(b, {
|
|
9579
9590
|
modelValue: s.value.name,
|
|
9580
9591
|
"onUpdate:modelValue": p[1] || (p[1] = (j) => s.value.name = j),
|
|
9581
9592
|
disabled: !o.editable,
|
|
@@ -9636,7 +9647,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9636
9647
|
}, 8, ["modelValue", "disabled"]),
|
|
9637
9648
|
E("span", i0, [
|
|
9638
9649
|
p[19] || (p[19] = de(" 在 ", -1)),
|
|
9639
|
-
_(
|
|
9650
|
+
_(b, {
|
|
9640
9651
|
modelValue: s.value.auto_retry.interval,
|
|
9641
9652
|
"onUpdate:modelValue": p[10] || (p[10] = (j) => s.value.auto_retry.interval = j),
|
|
9642
9653
|
type: "number",
|
|
@@ -9647,7 +9658,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9647
9658
|
onBlur: f
|
|
9648
9659
|
}, null, 8, ["modelValue", "disabled"]),
|
|
9649
9660
|
p[20] || (p[20] = de(" 秒后,自动重试 ", -1)),
|
|
9650
|
-
_(
|
|
9661
|
+
_(b, {
|
|
9651
9662
|
modelValue: s.value.auto_retry.times,
|
|
9652
9663
|
"onUpdate:modelValue": p[11] || (p[11] = (j) => s.value.auto_retry.times = j),
|
|
9653
9664
|
type: "number",
|
|
@@ -9674,10 +9685,10 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9674
9685
|
disabled: !o.editable,
|
|
9675
9686
|
onChange: y
|
|
9676
9687
|
}, null, 8, ["modelValue", "disabled"]),
|
|
9677
|
-
s.value.timeout_config.enable ? (
|
|
9688
|
+
s.value.timeout_config.enable ? (w(), B(_e, { key: 0 }, [
|
|
9678
9689
|
p[23] || (p[23] = de(" 超时 ", -1)),
|
|
9679
9690
|
E("span", l0, [
|
|
9680
|
-
_(
|
|
9691
|
+
_(b, {
|
|
9681
9692
|
modelValue: s.value.timeout_config.seconds,
|
|
9682
9693
|
"onUpdate:modelValue": p[13] || (p[13] = (j) => s.value.timeout_config.seconds = j),
|
|
9683
9694
|
type: "number",
|
|
@@ -9777,7 +9788,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9777
9788
|
...u.value,
|
|
9778
9789
|
left: R
|
|
9779
9790
|
};
|
|
9780
|
-
},
|
|
9791
|
+
}, b = () => {
|
|
9781
9792
|
const D = i.value?.$el?.querySelector("input, textarea");
|
|
9782
9793
|
if (!D) return;
|
|
9783
9794
|
const N = D.selectionStart || 0, ie = r.value.substring(0, N), re = ie.lastIndexOf("$");
|
|
@@ -9796,11 +9807,11 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9796
9807
|
}, 0);
|
|
9797
9808
|
}, g = () => {
|
|
9798
9809
|
o("update:modelValue", r.value), o("change", r.value), it(() => {
|
|
9799
|
-
|
|
9810
|
+
b();
|
|
9800
9811
|
});
|
|
9801
9812
|
}, C = () => {
|
|
9802
9813
|
it(() => {
|
|
9803
|
-
|
|
9814
|
+
b();
|
|
9804
9815
|
});
|
|
9805
9816
|
}, d = (D) => {
|
|
9806
9817
|
setTimeout(() => {
|
|
@@ -9875,7 +9886,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9875
9886
|
D && D.removeEventListener("keydown", S, !0);
|
|
9876
9887
|
}), (D, N) => {
|
|
9877
9888
|
const ie = te("bk-input");
|
|
9878
|
-
return
|
|
9889
|
+
return w(), B("div", {
|
|
9879
9890
|
ref_key: "containerRef",
|
|
9880
9891
|
ref: a,
|
|
9881
9892
|
class: "variable-input-wrapper"
|
|
@@ -9894,14 +9905,14 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9894
9905
|
onFocus: C,
|
|
9895
9906
|
onBlur: d
|
|
9896
9907
|
}, null, 8, ["modelValue", "type", "placeholder", "disabled", "rows", "resize"]),
|
|
9897
|
-
l.value ? (
|
|
9908
|
+
l.value ? (w(), B("div", {
|
|
9898
9909
|
key: 0,
|
|
9899
9910
|
ref_key: "dropdownRef",
|
|
9900
9911
|
ref: s,
|
|
9901
9912
|
class: "variable-dropdown",
|
|
9902
|
-
style:
|
|
9913
|
+
style: Qa(y.value)
|
|
9903
9914
|
}, [
|
|
9904
|
-
(
|
|
9915
|
+
(w(!0), B(_e, null, je(m.value, (re, $) => (w(), B("div", {
|
|
9905
9916
|
key: re.key,
|
|
9906
9917
|
class: Oe(["dropdown-item", { active: $ === c.value }]),
|
|
9907
9918
|
onMousedown: Ne((P) => A(re), ["prevent"])
|
|
@@ -9911,7 +9922,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9911
9922
|
E("span", v0, ge(re.name), 1)
|
|
9912
9923
|
])
|
|
9913
9924
|
], 42, d0))), 128)),
|
|
9914
|
-
m.value.length === 0 ? (
|
|
9925
|
+
m.value.length === 0 ? (w(), B("div", m0, "无匹配项")) : ue("", !0)
|
|
9915
9926
|
], 4)) : ue("", !0)
|
|
9916
9927
|
], 512);
|
|
9917
9928
|
};
|
|
@@ -9939,7 +9950,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9939
9950
|
const s = () => {
|
|
9940
9951
|
o("update:modelValue", a.value), o("change", a.value);
|
|
9941
9952
|
};
|
|
9942
|
-
return (r, l) => (
|
|
9953
|
+
return (r, l) => (w(), B("div", y0, [
|
|
9943
9954
|
_(g0, {
|
|
9944
9955
|
modelValue: a.value,
|
|
9945
9956
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => a.value = c),
|
|
@@ -9953,7 +9964,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9953
9964
|
}, null, 8, ["modelValue", "type", "disabled", "options"])
|
|
9954
9965
|
]));
|
|
9955
9966
|
}
|
|
9956
|
-
}),
|
|
9967
|
+
}), Ga = /* @__PURE__ */ fe(b0, [["__scopeId", "data-v-b6b3c278"]]), w0 = /* @__PURE__ */ pe({
|
|
9957
9968
|
__name: "switcher",
|
|
9958
9969
|
props: {
|
|
9959
9970
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9973,7 +9984,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9973
9984
|
};
|
|
9974
9985
|
return (s, r) => {
|
|
9975
9986
|
const l = te("bk-switcher");
|
|
9976
|
-
return
|
|
9987
|
+
return w(), oe(l, {
|
|
9977
9988
|
"model-value": s.modelValue,
|
|
9978
9989
|
theme: "primary",
|
|
9979
9990
|
size: "small",
|
|
@@ -9994,7 +10005,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
9994
10005
|
setup(e, { emit: t }) {
|
|
9995
10006
|
self.MonacoEnvironment = {
|
|
9996
10007
|
getWorker(c, u) {
|
|
9997
|
-
return u === "json" ? new
|
|
10008
|
+
return u === "json" ? new is() : u === "css" || u === "scss" || u === "less" ? new rs() : u === "html" || u === "handlebars" || u === "razor" ? new ls() : u === "typescript" || u === "javascript" ? new cs() : new ss();
|
|
9998
10009
|
}
|
|
9999
10010
|
};
|
|
10000
10011
|
const n = {
|
|
@@ -10040,7 +10051,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10040
10051
|
}, l = (c) => {
|
|
10041
10052
|
a("update:modelValue", c), a("change", c);
|
|
10042
10053
|
};
|
|
10043
|
-
return (c, u) => (
|
|
10054
|
+
return (c, u) => (w(), B("div", _0, [
|
|
10044
10055
|
E("div", {
|
|
10045
10056
|
ref_key: "monacoContainerRef",
|
|
10046
10057
|
ref: i,
|
|
@@ -10048,7 +10059,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10048
10059
|
}, null, 512)
|
|
10049
10060
|
]));
|
|
10050
10061
|
}
|
|
10051
|
-
}),
|
|
10062
|
+
}), qa = /* @__PURE__ */ fe(A0, [["__scopeId", "data-v-da309700"]]), k0 = { class: "bkflow-plugin-uniform-api-form" }, C0 = /* @__PURE__ */ pe({
|
|
10052
10063
|
__name: "index",
|
|
10053
10064
|
props: {
|
|
10054
10065
|
inputData: { default: () => ({}) },
|
|
@@ -10094,16 +10105,16 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10094
10105
|
const { type: m, form_type: f = "" } = y;
|
|
10095
10106
|
if (f) {
|
|
10096
10107
|
if (["textarea", "input"].includes(f))
|
|
10097
|
-
return
|
|
10108
|
+
return Ga;
|
|
10098
10109
|
if (["json"].includes(f))
|
|
10099
|
-
return
|
|
10110
|
+
return qa;
|
|
10100
10111
|
} else {
|
|
10101
10112
|
if (["string", "int", "integer", "number"].includes(m))
|
|
10102
|
-
return
|
|
10113
|
+
return Ga;
|
|
10103
10114
|
if (["boolean", "bool"].includes(m))
|
|
10104
10115
|
return w0;
|
|
10105
10116
|
if (["json", "dict"].includes(m))
|
|
10106
|
-
return
|
|
10117
|
+
return qa;
|
|
10107
10118
|
}
|
|
10108
10119
|
return ln("div", "暂不支持该类型");
|
|
10109
10120
|
}, c = (y, m) => {
|
|
@@ -10118,7 +10129,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10118
10129
|
validate: u
|
|
10119
10130
|
}), (y, m) => {
|
|
10120
10131
|
const f = te("bk-form-item"), h = te("bk-form");
|
|
10121
|
-
return
|
|
10132
|
+
return w(), B("div", k0, [
|
|
10122
10133
|
_(h, {
|
|
10123
10134
|
ref_key: "formRef",
|
|
10124
10135
|
ref: i,
|
|
@@ -10127,7 +10138,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10127
10138
|
"label-width": 94
|
|
10128
10139
|
}, {
|
|
10129
10140
|
default: M(() => [
|
|
10130
|
-
(
|
|
10141
|
+
(w(!0), B(_e, null, je(o.inputs, (p) => (w(), oe(f, {
|
|
10131
10142
|
key: p.key,
|
|
10132
10143
|
label: p.name,
|
|
10133
10144
|
required: p.required,
|
|
@@ -10135,12 +10146,12 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10135
10146
|
property: p.key
|
|
10136
10147
|
}, {
|
|
10137
10148
|
default: M(() => [
|
|
10138
|
-
(
|
|
10149
|
+
(w(), oe(mn(l(p)), {
|
|
10139
10150
|
"model-value": s.value[p.key],
|
|
10140
10151
|
disabled: !o.editable,
|
|
10141
10152
|
config: p,
|
|
10142
10153
|
"full-variable-list": o.fullVariableList,
|
|
10143
|
-
onChange: (
|
|
10154
|
+
onChange: (b) => c(p.key, b)
|
|
10144
10155
|
}, null, 40, ["model-value", "disabled", "config", "full-variable-list", "onChange"]))
|
|
10145
10156
|
]),
|
|
10146
10157
|
_: 2
|
|
@@ -10151,7 +10162,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10151
10162
|
]);
|
|
10152
10163
|
};
|
|
10153
10164
|
}
|
|
10154
|
-
}),
|
|
10165
|
+
}), Ha = /* @__PURE__ */ fe(C0, [["__scopeId", "data-v-cb961ebd"]]), x0 = { class: "node-config-input-params" }, E0 = /* @__PURE__ */ pe({
|
|
10155
10166
|
__name: "input-params",
|
|
10156
10167
|
props: {
|
|
10157
10168
|
node: {},
|
|
@@ -10163,10 +10174,10 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10163
10174
|
emits: ["change"],
|
|
10164
10175
|
setup(e, { expose: t, emit: n }) {
|
|
10165
10176
|
const o = {
|
|
10166
|
-
uniform_api_plugin:
|
|
10177
|
+
uniform_api_plugin: Ha
|
|
10167
10178
|
}, a = e, i = n, s = G(), r = ke(() => a.node.component.code === "uniform_api" && a.uniformApiPluginDetail?.config?.resource === "bk-incident"), l = ke(() => {
|
|
10168
10179
|
const v = a.uniformApiPluginDetail?.name;
|
|
10169
|
-
return r.value && v && v in o ? o[v] :
|
|
10180
|
+
return r.value && v && v in o ? o[v] : Ha;
|
|
10170
10181
|
}), c = (v) => {
|
|
10171
10182
|
const y = { ...a.node.component.data.bk_display_message };
|
|
10172
10183
|
y.value = v, i("change", { ...a.node.component.data, bk_display_message: y });
|
|
@@ -10175,8 +10186,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10175
10186
|
validate: () => r.value && s.value && s.value.validate ? s.value.validate() : !0
|
|
10176
10187
|
}), (v, y) => {
|
|
10177
10188
|
const m = te("bk-input"), f = te("bk-form-item"), h = te("bk-form");
|
|
10178
|
-
return
|
|
10179
|
-
r.value && a.uniformApiPluginDetail ? (
|
|
10189
|
+
return w(), B("section", x0, [
|
|
10190
|
+
r.value && a.uniformApiPluginDetail ? (w(), oe(mn(l.value), {
|
|
10180
10191
|
key: 0,
|
|
10181
10192
|
ref_key: "incidentPluginComponentRef",
|
|
10182
10193
|
ref: s,
|
|
@@ -10188,8 +10199,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10188
10199
|
editable: a.editable,
|
|
10189
10200
|
"full-variable-list": a.fullVariableList,
|
|
10190
10201
|
onChange: y[0] || (y[0] = (p) => i("change", p))
|
|
10191
|
-
}, null, 40, ["node", "plugin-detail", "plugin-id", "input-data", "inputs", "editable", "full-variable-list"])) : (
|
|
10192
|
-
a.node.component.code === "bk_display" ? (
|
|
10202
|
+
}, null, 40, ["node", "plugin-detail", "plugin-id", "input-data", "inputs", "editable", "full-variable-list"])) : (w(), B(_e, { key: 1 }, [
|
|
10203
|
+
a.node.component.code === "bk_display" ? (w(), oe(h, {
|
|
10193
10204
|
key: 0,
|
|
10194
10205
|
"label-width": 94
|
|
10195
10206
|
}, {
|
|
@@ -10280,7 +10291,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10280
10291
|
};
|
|
10281
10292
|
return (l, c) => {
|
|
10282
10293
|
const u = te("bk-table-column"), v = te("bk-input"), y = te("bk-table"), m = Fe("bk-tooltips");
|
|
10283
|
-
return
|
|
10294
|
+
return w(), B("section", S0, [
|
|
10284
10295
|
_(y, {
|
|
10285
10296
|
"empty-text": "暂无参数",
|
|
10286
10297
|
data: i.value,
|
|
@@ -10294,7 +10305,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10294
10305
|
prop: "name"
|
|
10295
10306
|
}, {
|
|
10296
10307
|
default: M(({ row: f }) => [
|
|
10297
|
-
Te((
|
|
10308
|
+
Te((w(), B("span", {
|
|
10298
10309
|
class: Oe(["params-name", { "has-desc": f.description !== "" }])
|
|
10299
10310
|
}, [
|
|
10300
10311
|
de(ge(f.name), 1)
|
|
@@ -10311,7 +10322,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10311
10322
|
default: M(({ row: f }) => [
|
|
10312
10323
|
E("div", D0, [
|
|
10313
10324
|
E("span", M0, ge(f.key), 1),
|
|
10314
|
-
f.hookedKey ? (
|
|
10325
|
+
f.hookedKey ? (w(), oe(v, {
|
|
10315
10326
|
key: 0,
|
|
10316
10327
|
class: "variable-key-input",
|
|
10317
10328
|
"model-value": f.hookedKey,
|
|
@@ -10328,7 +10339,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10328
10339
|
}, {
|
|
10329
10340
|
default: M(({ row: f }) => [
|
|
10330
10341
|
E("div", L0, [
|
|
10331
|
-
Te((
|
|
10342
|
+
Te((w(), B("span", {
|
|
10332
10343
|
class: Oe([
|
|
10333
10344
|
"btn",
|
|
10334
10345
|
{
|
|
@@ -10371,9 +10382,9 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10371
10382
|
name: S.name
|
|
10372
10383
|
})));
|
|
10373
10384
|
ot(() => {
|
|
10374
|
-
m.value = !1, a.node.component.code === "uniform_api" ? (
|
|
10385
|
+
m.value = !1, a.node.component.code === "uniform_api" ? (b(), g()) : c.value = !1;
|
|
10375
10386
|
});
|
|
10376
|
-
const
|
|
10387
|
+
const b = async () => {
|
|
10377
10388
|
if (!a.apiConfig?.fetchPluginDetail) {
|
|
10378
10389
|
console.warn("fetchPluginDetail is not provided in apiConfig"), c.value = !1;
|
|
10379
10390
|
return;
|
|
@@ -10448,8 +10459,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10448
10459
|
updateInputParams: A
|
|
10449
10460
|
}), (S, H) => {
|
|
10450
10461
|
const j = te("bk-button"), D = te("bk-exception"), N = Fe("bk-loading");
|
|
10451
|
-
return Te((
|
|
10452
|
-
m.value ? (
|
|
10462
|
+
return Te((w(), B("div", B0, [
|
|
10463
|
+
m.value ? (w(), oe(D, {
|
|
10453
10464
|
key: 0,
|
|
10454
10465
|
class: "plugin-not-exist-exception",
|
|
10455
10466
|
type: "500",
|
|
@@ -10457,7 +10468,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10457
10468
|
scene: "part"
|
|
10458
10469
|
}, {
|
|
10459
10470
|
default: M(() => [
|
|
10460
|
-
a.editable ? (
|
|
10471
|
+
a.editable ? (w(), oe(j, {
|
|
10461
10472
|
key: 0,
|
|
10462
10473
|
text: "",
|
|
10463
10474
|
theme: "primary",
|
|
@@ -10470,7 +10481,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10470
10481
|
})) : ue("", !0)
|
|
10471
10482
|
]),
|
|
10472
10483
|
_: 1
|
|
10473
|
-
})) : (
|
|
10484
|
+
})) : (w(), B(_e, { key: 1 }, [
|
|
10474
10485
|
_(Wt, { title: "基础信息" }, {
|
|
10475
10486
|
default: M(() => [
|
|
10476
10487
|
_(u0, {
|
|
@@ -10512,7 +10523,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10512
10523
|
}),
|
|
10513
10524
|
_(Wt, { title: "输出参数" }, {
|
|
10514
10525
|
default: M(() => [
|
|
10515
|
-
c.value ? ue("", !0) : (
|
|
10526
|
+
c.value ? ue("", !0) : (w(), oe(R0, {
|
|
10516
10527
|
key: 0,
|
|
10517
10528
|
node: a.node,
|
|
10518
10529
|
"outputs-forms": h.value,
|
|
@@ -10560,7 +10571,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10560
10571
|
}, v = () => {
|
|
10561
10572
|
if (o.editable)
|
|
10562
10573
|
return new Promise((f) => {
|
|
10563
|
-
|
|
10574
|
+
as({
|
|
10564
10575
|
title: "确认离开?",
|
|
10565
10576
|
content: "离开将会导致未保存信息丢失",
|
|
10566
10577
|
confirmText: "离开",
|
|
@@ -10583,8 +10594,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10583
10594
|
i.value && i.value.updateInputParams?.(f);
|
|
10584
10595
|
}
|
|
10585
10596
|
}), (f, h) => {
|
|
10586
|
-
const p = te("bk-button"),
|
|
10587
|
-
return
|
|
10597
|
+
const p = te("bk-button"), b = te("bk-sideslider");
|
|
10598
|
+
return w(), oe(b, {
|
|
10588
10599
|
title: "节点配置",
|
|
10589
10600
|
"is-show": o.show,
|
|
10590
10601
|
width: 960,
|
|
@@ -10592,8 +10603,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10592
10603
|
"before-close": v
|
|
10593
10604
|
}, {
|
|
10594
10605
|
footer: M(() => [
|
|
10595
|
-
s.value ? (
|
|
10596
|
-
o.editable ? (
|
|
10606
|
+
s.value ? (w(), B("div", I0, [
|
|
10607
|
+
o.editable ? (w(), B(_e, { key: 0 }, [
|
|
10597
10608
|
_(p, {
|
|
10598
10609
|
theme: "primary",
|
|
10599
10610
|
onClick: u
|
|
@@ -10609,7 +10620,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10609
10620
|
])]),
|
|
10610
10621
|
_: 1
|
|
10611
10622
|
})
|
|
10612
|
-
], 64)) : (
|
|
10623
|
+
], 64)) : (w(), oe(p, {
|
|
10613
10624
|
key: 1,
|
|
10614
10625
|
theme: "primary",
|
|
10615
10626
|
onClick: y
|
|
@@ -10623,7 +10634,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10623
10634
|
]),
|
|
10624
10635
|
default: M(() => [
|
|
10625
10636
|
E("div", F0, [
|
|
10626
|
-
o.show ? (
|
|
10637
|
+
o.show ? (w(), oe(N0, {
|
|
10627
10638
|
key: 0,
|
|
10628
10639
|
ref_key: "nodeConfigRef",
|
|
10629
10640
|
ref: i,
|
|
@@ -10658,9 +10669,9 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10658
10669
|
const n = e, o = t, a = (i) => {
|
|
10659
10670
|
o("update:actived", i), o("change", i);
|
|
10660
10671
|
};
|
|
10661
|
-
return (i, s) => (
|
|
10672
|
+
return (i, s) => (w(), B("section", G0, [
|
|
10662
10673
|
E("div", q0, [
|
|
10663
|
-
(
|
|
10674
|
+
(w(!0), B(_e, null, je(n.groups, (r) => (w(), B("div", {
|
|
10664
10675
|
class: Oe(["group-item", { actived: n.actived === r.name }]),
|
|
10665
10676
|
key: r.id,
|
|
10666
10677
|
onClick: (l) => a(r.name)
|
|
@@ -10694,9 +10705,9 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10694
10705
|
name: s.alias,
|
|
10695
10706
|
icon: a[s.name]
|
|
10696
10707
|
})));
|
|
10697
|
-
return (s, r) => (
|
|
10708
|
+
return (s, r) => (w(), B("div", a2, [
|
|
10698
10709
|
E("div", s2, [
|
|
10699
|
-
(
|
|
10710
|
+
(w(!0), B(_e, null, je(i.value, (l) => (w(), B("div", {
|
|
10700
10711
|
class: "plugin-item",
|
|
10701
10712
|
key: l.id,
|
|
10702
10713
|
onClick: (c) => o("select", l.id)
|
|
@@ -10708,7 +10719,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10708
10719
|
E("h4", l2, ge(l.name), 1)
|
|
10709
10720
|
], 8, i2))), 128))
|
|
10710
10721
|
]),
|
|
10711
|
-
i.value.length === 0 ? (
|
|
10722
|
+
i.value.length === 0 ? (w(), oe(Mt, {
|
|
10712
10723
|
key: 0,
|
|
10713
10724
|
title: "暂无数据插件"
|
|
10714
10725
|
})) : ue("", !0)
|
|
@@ -10736,7 +10747,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10736
10747
|
};
|
|
10737
10748
|
return (s, r) => {
|
|
10738
10749
|
const l = te("bk-search-select");
|
|
10739
|
-
return
|
|
10750
|
+
return w(), B("div", d2, [
|
|
10740
10751
|
_(l, {
|
|
10741
10752
|
modelValue: a.value,
|
|
10742
10753
|
"onUpdate:modelValue": [
|
|
@@ -10760,7 +10771,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10760
10771
|
},
|
|
10761
10772
|
emits: ["select"],
|
|
10762
10773
|
setup(e, { emit: t }) {
|
|
10763
|
-
const n =
|
|
10774
|
+
const n = ns(), o = os(), a = [
|
|
10764
10775
|
{
|
|
10765
10776
|
id: "alias",
|
|
10766
10777
|
name: "智能体名称"
|
|
@@ -10769,29 +10780,29 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10769
10780
|
id: "created_by",
|
|
10770
10781
|
name: "创建人"
|
|
10771
10782
|
}
|
|
10772
|
-
], i = e, s = t, r = G("all"), l = G([]), c = ke(() => Object.keys(i.properties).map((
|
|
10773
|
-
const
|
|
10774
|
-
return l.value.length > 0 ?
|
|
10783
|
+
], i = e, s = t, r = G("all"), l = G([]), c = ke(() => Object.keys(i.properties).map((b) => ({ id: b, name: i.properties[b] }))), u = ke(() => i.plugins.filter((b) => !b.display_content.hidden)), v = ke(() => {
|
|
10784
|
+
const b = u.value.filter((g) => r.value !== "all" ? g.group === r.value : !0);
|
|
10785
|
+
return l.value.length > 0 ? b.filter((g) => l.value.some((C) => C.id === "alias" ? g.alias.toLowerCase().includes(C.values[0].id.toLowerCase()) : C.id === "agent_type" ? (g.display_content?.agent_type || "") === C.values[0].id : C.id === "space_name" ? (g.display_content?.space_name || "").toLowerCase().includes(C.values[0].id.toLowerCase()) : C.id === "created_by" ? (g.display_content?.created_by || "") === C.values[0].id : !0)) : b;
|
|
10775
10786
|
}), y = () => {
|
|
10776
|
-
const { href:
|
|
10787
|
+
const { href: b } = n.resolve({
|
|
10777
10788
|
name: "spaceResource",
|
|
10778
10789
|
params: o.params
|
|
10779
10790
|
});
|
|
10780
|
-
window.open(
|
|
10791
|
+
window.open(b, "_blank");
|
|
10781
10792
|
}, m = () => {
|
|
10782
|
-
const { href:
|
|
10793
|
+
const { href: b } = n.resolve({
|
|
10783
10794
|
name: "spaceResource",
|
|
10784
10795
|
params: o.params
|
|
10785
10796
|
});
|
|
10786
|
-
window.open(
|
|
10787
|
-
}, f = (
|
|
10788
|
-
l.value =
|
|
10789
|
-
}, h = (
|
|
10790
|
-
|
|
10791
|
-
}, p = (
|
|
10792
|
-
return (
|
|
10797
|
+
window.open(b, "_blank");
|
|
10798
|
+
}, f = (b) => {
|
|
10799
|
+
l.value = b;
|
|
10800
|
+
}, h = (b) => {
|
|
10801
|
+
b.display_content.fetch_url && window.open(b.display_content.fetch_url, "_blank");
|
|
10802
|
+
}, p = (b) => b ? Bo(b).format("YYYY-MM-DD HH:mm:ss") : "--";
|
|
10803
|
+
return (b, g) => {
|
|
10793
10804
|
const C = te("bk-button"), d = te("bk-alert"), A = te("bk-radio-button"), k = te("bk-radio-group");
|
|
10794
|
-
return
|
|
10805
|
+
return w(), B("div", f2, [
|
|
10795
10806
|
_(d, null, {
|
|
10796
10807
|
default: M(() => [
|
|
10797
10808
|
g[3] || (g[3] = de(" 如有需要,您可以申请更多的智能体权限 ", -1)),
|
|
@@ -10833,7 +10844,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10833
10844
|
])]),
|
|
10834
10845
|
_: 1
|
|
10835
10846
|
}),
|
|
10836
|
-
(
|
|
10847
|
+
(w(!0), B(_e, null, je(c.value, (S) => (w(), oe(A, {
|
|
10837
10848
|
key: S.id,
|
|
10838
10849
|
label: S.id
|
|
10839
10850
|
}, {
|
|
@@ -10855,7 +10866,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10855
10866
|
]),
|
|
10856
10867
|
E("div", h2, [
|
|
10857
10868
|
E("div", g2, [
|
|
10858
|
-
(
|
|
10869
|
+
(w(!0), B(_e, null, je(v.value, (S) => (w(), B("div", {
|
|
10859
10870
|
class: "card-item",
|
|
10860
10871
|
key: S.id
|
|
10861
10872
|
}, [
|
|
@@ -10906,7 +10917,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10906
10917
|
])
|
|
10907
10918
|
]))), 128))
|
|
10908
10919
|
]),
|
|
10909
|
-
v.value.length === 0 ? (
|
|
10920
|
+
v.value.length === 0 ? (w(), oe(Mt, {
|
|
10910
10921
|
key: 0,
|
|
10911
10922
|
"is-search": l.value.length > 0,
|
|
10912
10923
|
title: "暂无智能体",
|
|
@@ -10928,7 +10939,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10928
10939
|
const t = e;
|
|
10929
10940
|
return (n, o) => {
|
|
10930
10941
|
const a = te("bk-tag");
|
|
10931
|
-
return
|
|
10942
|
+
return w(), B("div", L2, [
|
|
10932
10943
|
E("div", O2, [
|
|
10933
10944
|
o[0] || (o[0] = E("img", {
|
|
10934
10945
|
src: "",
|
|
@@ -10942,7 +10953,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10942
10953
|
title: t.card.name
|
|
10943
10954
|
}, ge(t.card.name), 9, $2),
|
|
10944
10955
|
E("div", z2, "线上版本:" + ge(t.card.version), 1),
|
|
10945
|
-
t.card.isNew ? (
|
|
10956
|
+
t.card.isNew ? (w(), B("span", B2, "new")) : ue("", !0)
|
|
10946
10957
|
]),
|
|
10947
10958
|
E("p", V2, [
|
|
10948
10959
|
E("span", null, "基座模型: " + ge(t.card.baseModel), 1),
|
|
@@ -10980,7 +10991,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
10980
10991
|
},
|
|
10981
10992
|
setup(e) {
|
|
10982
10993
|
const t = e;
|
|
10983
|
-
return (n, o) => (
|
|
10994
|
+
return (n, o) => (w(), B("div", G2, [
|
|
10984
10995
|
E("div", q2, [
|
|
10985
10996
|
E("span", H2, ge(t.card.name), 1),
|
|
10986
10997
|
E("span", W2, "(" + ge(t.card.enName) + ")", 1)
|
|
@@ -11073,7 +11084,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11073
11084
|
], o = G("big"), a = G(""), i = ke(() => o.value === "big" ? "搜索 模型名称、基座模型、任务阶段、更新人、tag" : "搜索 模型名称、发布人、描述");
|
|
11074
11085
|
return (s, r) => {
|
|
11075
11086
|
const l = te("bk-radio-button"), c = te("bk-radio-group"), u = te("bk-select"), v = te("bk-input");
|
|
11076
|
-
return
|
|
11087
|
+
return w(), B("div", Q2, [
|
|
11077
11088
|
E("div", X2, [
|
|
11078
11089
|
_(c, {
|
|
11079
11090
|
modelValue: o.value,
|
|
@@ -11097,7 +11108,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11097
11108
|
_: 1
|
|
11098
11109
|
}, 8, ["modelValue"]),
|
|
11099
11110
|
E("div", ev, [
|
|
11100
|
-
o.value === "big" ? (
|
|
11111
|
+
o.value === "big" ? (w(), oe(u, {
|
|
11101
11112
|
key: 0,
|
|
11102
11113
|
class: "order-select"
|
|
11103
11114
|
}, {
|
|
@@ -11117,10 +11128,10 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11117
11128
|
]),
|
|
11118
11129
|
E("div", tv, [
|
|
11119
11130
|
E("div", nv, [
|
|
11120
|
-
o.value === "big" ? (
|
|
11131
|
+
o.value === "big" ? (w(), B(_e, { key: 0 }, je(t, (y) => _(j2, {
|
|
11121
11132
|
key: y.id,
|
|
11122
11133
|
card: y
|
|
11123
|
-
}, null, 8, ["card"])), 64)) : (
|
|
11134
|
+
}, null, 8, ["card"])), 64)) : (w(), B(_e, { key: 1 }, je(n, (y) => _(K2, {
|
|
11124
11135
|
key: y.id,
|
|
11125
11136
|
card: y
|
|
11126
11137
|
}, null, 8, ["card"])), 64))
|
|
@@ -11132,14 +11143,14 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11132
11143
|
}), av = /* @__PURE__ */ fe(ov, [["__scopeId", "data-v-cd4ca0c5"]]), sv = { class: "plugin-group" }, iv = /* @__PURE__ */ pe({
|
|
11133
11144
|
__name: "output-plugin-group",
|
|
11134
11145
|
setup(e) {
|
|
11135
|
-
return (t, n) => (
|
|
11146
|
+
return (t, n) => (w(), B("div", sv, [
|
|
11136
11147
|
_(Mt, { title: "暂无结论输出插件" })
|
|
11137
11148
|
]));
|
|
11138
11149
|
}
|
|
11139
11150
|
}), rv = /* @__PURE__ */ fe(iv, [["__scopeId", "data-v-474d5047"]]), lv = { class: "plugin-group" }, cv = /* @__PURE__ */ pe({
|
|
11140
11151
|
__name: "other-plugin-group",
|
|
11141
11152
|
setup(e) {
|
|
11142
|
-
return (t, n) => (
|
|
11153
|
+
return (t, n) => (w(), B("div", lv, [
|
|
11143
11154
|
_(Mt, { title: "暂无其他插件" })
|
|
11144
11155
|
]));
|
|
11145
11156
|
}
|
|
@@ -11194,7 +11205,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11194
11205
|
};
|
|
11195
11206
|
return (m, f) => {
|
|
11196
11207
|
const h = te("bk-sideslider"), p = Fe("bk-loading");
|
|
11197
|
-
return
|
|
11208
|
+
return w(), oe(h, {
|
|
11198
11209
|
title: "节点选择",
|
|
11199
11210
|
"is-show": o.show,
|
|
11200
11211
|
width: 1200,
|
|
@@ -11205,12 +11216,12 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11205
11216
|
E("div", dv, [
|
|
11206
11217
|
_(Z0, {
|
|
11207
11218
|
actived: i.value,
|
|
11208
|
-
"onUpdate:actived": f[0] || (f[0] = (
|
|
11219
|
+
"onUpdate:actived": f[0] || (f[0] = (b) => i.value = b),
|
|
11209
11220
|
groups: o.pluginGroupList,
|
|
11210
11221
|
onChange: u
|
|
11211
11222
|
}, null, 8, ["actived", "groups"]),
|
|
11212
|
-
o.show ? Te((
|
|
11213
|
-
(
|
|
11223
|
+
o.show ? Te((w(), B("section", pv, [
|
|
11224
|
+
(w(), oe(mn(l.value), {
|
|
11214
11225
|
plugins: s.value,
|
|
11215
11226
|
properties: c.value,
|
|
11216
11227
|
onSelect: v
|
|
@@ -11334,7 +11345,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11334
11345
|
};
|
|
11335
11346
|
}
|
|
11336
11347
|
}, 100);
|
|
11337
|
-
},
|
|
11348
|
+
}, b = (T, z) => {
|
|
11338
11349
|
const Q = {
|
|
11339
11350
|
x: o.pipelineTree.location.find((X) => X.id === T).x + 200,
|
|
11340
11351
|
y: k(T, "tasknode")
|
|
@@ -11546,7 +11557,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11546
11557
|
updateNodeInputParams: (T) => {
|
|
11547
11558
|
s.value && l.value.show && s.value.updateNodeInputParams?.(T);
|
|
11548
11559
|
}
|
|
11549
|
-
}), (T, z) => (
|
|
11560
|
+
}), (T, z) => (w(), B("div", mv, [
|
|
11550
11561
|
_($e(Bu), {
|
|
11551
11562
|
ref_key: "bkflowCanvasRef",
|
|
11552
11563
|
ref: i,
|
|
@@ -11568,7 +11579,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11568
11579
|
"agent-group-plugins": o.agentGroupPlugins,
|
|
11569
11580
|
onAddNode: h,
|
|
11570
11581
|
onAddPlugin: p,
|
|
11571
|
-
onAddNodeAndSelectPlugin:
|
|
11582
|
+
onAddNodeAndSelectPlugin: b,
|
|
11572
11583
|
onDeleteBtnClick: ie,
|
|
11573
11584
|
onCopyNodeClick: g,
|
|
11574
11585
|
onCopyNodeAndInsertClick: C,
|
|
@@ -11577,7 +11588,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11577
11588
|
]),
|
|
11578
11589
|
_: 1
|
|
11579
11590
|
}, 8, ["editable", "pipeline-tree"]),
|
|
11580
|
-
r.value.condition ? (
|
|
11591
|
+
r.value.condition ? (w(), oe(n0, {
|
|
11581
11592
|
key: 0,
|
|
11582
11593
|
show: r.value.show,
|
|
11583
11594
|
"onUpdate:show": z[0] || (z[0] = (I) => r.value.show = I),
|
|
@@ -11587,7 +11598,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11587
11598
|
editable: o.mode === "edit",
|
|
11588
11599
|
onConfirm: $
|
|
11589
11600
|
}, null, 8, ["show", "condition", "has-default-branch", "is-default", "editable"])) : ue("", !0),
|
|
11590
|
-
l.value.node ? (
|
|
11601
|
+
l.value.node ? (w(), oe(j0, {
|
|
11591
11602
|
key: 1,
|
|
11592
11603
|
ref_key: "nodeConfigPanelRef",
|
|
11593
11604
|
ref: s,
|
|
@@ -11639,16 +11650,16 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11639
11650
|
}), v = he(!1);
|
|
11640
11651
|
Ce(
|
|
11641
11652
|
() => n.show,
|
|
11642
|
-
(
|
|
11643
|
-
|
|
11653
|
+
(b) => {
|
|
11654
|
+
b && y();
|
|
11644
11655
|
}
|
|
11645
11656
|
);
|
|
11646
11657
|
const y = async () => {
|
|
11647
11658
|
s.value = !0;
|
|
11648
|
-
const
|
|
11649
|
-
i.value =
|
|
11659
|
+
const b = await n.apiConfig.fetchFlowDetail(n.flowId);
|
|
11660
|
+
i.value = b, u.value.name = `${b.name}_${Bo().format("YYYYMMDDHHmmss")}`;
|
|
11650
11661
|
const g = [], C = {};
|
|
11651
|
-
Object.values(
|
|
11662
|
+
Object.values(b.pipeline_tree.constants).forEach((d) => {
|
|
11652
11663
|
if (typeof d != "object" || d === null)
|
|
11653
11664
|
return;
|
|
11654
11665
|
const A = d;
|
|
@@ -11656,9 +11667,9 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11656
11667
|
}), l.value = g, r.value = C, s.value = !1;
|
|
11657
11668
|
}, m = () => {
|
|
11658
11669
|
n.onExecuteSuccess;
|
|
11659
|
-
}, f = (
|
|
11660
|
-
Object.keys(
|
|
11661
|
-
g in r.value && (r.value[g] =
|
|
11670
|
+
}, f = (b) => {
|
|
11671
|
+
Object.keys(b).forEach((g) => {
|
|
11672
|
+
g in r.value && (r.value[g] = b[g]);
|
|
11662
11673
|
});
|
|
11663
11674
|
}, h = async () => {
|
|
11664
11675
|
if (!n.apiConfig.createFlowTask || !n.apiConfig.executeFlowTask) {
|
|
@@ -11693,9 +11704,9 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11693
11704
|
}, p = () => {
|
|
11694
11705
|
l.value = [], r.value = {}, o("close"), o("update:show", !1);
|
|
11695
11706
|
};
|
|
11696
|
-
return (
|
|
11707
|
+
return (b, g) => {
|
|
11697
11708
|
const C = te("bk-input"), d = te("bk-form-item"), A = te("bk-form"), k = te("bk-button"), S = te("bk-sideslider"), H = Fe("bk-tooltips"), j = Fe("bkloading");
|
|
11698
|
-
return
|
|
11709
|
+
return w(), oe(S, {
|
|
11699
11710
|
title: "执行流程",
|
|
11700
11711
|
"is-show": n.show,
|
|
11701
11712
|
width: 700,
|
|
@@ -11704,7 +11715,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11704
11715
|
"before-close": p
|
|
11705
11716
|
}, {
|
|
11706
11717
|
footer: M(() => [
|
|
11707
|
-
s.value ? ue("", !0) : (
|
|
11718
|
+
s.value ? ue("", !0) : (w(), B("div", wv, [
|
|
11708
11719
|
_(k, {
|
|
11709
11720
|
theme: "primary",
|
|
11710
11721
|
loading: v.value,
|
|
@@ -11724,7 +11735,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11724
11735
|
]))
|
|
11725
11736
|
]),
|
|
11726
11737
|
default: M(() => [
|
|
11727
|
-
Te((
|
|
11738
|
+
Te((w(), B("div", gv, [
|
|
11728
11739
|
_(A, {
|
|
11729
11740
|
ref_key: "formRef",
|
|
11730
11741
|
ref: c,
|
|
@@ -11733,7 +11744,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11733
11744
|
"label-width": 100
|
|
11734
11745
|
}, {
|
|
11735
11746
|
default: M(() => [
|
|
11736
|
-
|
|
11747
|
+
b.showFlowEntry ? (w(), oe(d, {
|
|
11737
11748
|
key: 0,
|
|
11738
11749
|
label: "排障流程",
|
|
11739
11750
|
required: ""
|
|
@@ -11787,7 +11798,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11787
11798
|
editable: !0,
|
|
11788
11799
|
onChange: f
|
|
11789
11800
|
}, null, 8, ["variables"]),
|
|
11790
|
-
l.value.length === 0 ? (
|
|
11801
|
+
l.value.length === 0 ? (w(), oe(Mt, {
|
|
11791
11802
|
key: 0,
|
|
11792
11803
|
title: "暂无参数"
|
|
11793
11804
|
})) : ue("", !0)
|
|
@@ -11861,20 +11872,20 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11861
11872
|
}
|
|
11862
11873
|
}, p = () => {
|
|
11863
11874
|
typeof o.onBack == "function" ? o.onBack() : i("back");
|
|
11864
|
-
},
|
|
11875
|
+
}, b = () => {
|
|
11865
11876
|
typeof o.onEdit == "function" ? o.onEdit() : i("edit");
|
|
11866
11877
|
}, g = (C, d) => {
|
|
11867
11878
|
};
|
|
11868
11879
|
return (C, d) => {
|
|
11869
11880
|
const A = te("bk-button"), k = Fe("bk-tooltips"), S = Fe("bkloading");
|
|
11870
|
-
return
|
|
11881
|
+
return w(), oe(zs, {
|
|
11871
11882
|
title: "查看流程",
|
|
11872
11883
|
desc: r.value?.name,
|
|
11873
11884
|
"show-back-icon": !0,
|
|
11874
11885
|
onBack: p
|
|
11875
|
-
},
|
|
11886
|
+
}, Ja({
|
|
11876
11887
|
extend: M(() => [
|
|
11877
|
-
r.value ? (
|
|
11888
|
+
r.value ? (w(), B("div", kv, [
|
|
11878
11889
|
_(hi, {
|
|
11879
11890
|
editable: !1,
|
|
11880
11891
|
"flow-data": r.value,
|
|
@@ -11886,7 +11897,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11886
11897
|
_(A, {
|
|
11887
11898
|
theme: "primary",
|
|
11888
11899
|
class: Oe([C.permissions.canEdit ? "" : "is-disabled"]),
|
|
11889
|
-
onClick:
|
|
11900
|
+
onClick: b
|
|
11890
11901
|
}, {
|
|
11891
11902
|
default: M(() => [...d[2] || (d[2] = [
|
|
11892
11903
|
de(" 编辑 ", -1)
|
|
@@ -11903,7 +11914,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11903
11914
|
])]),
|
|
11904
11915
|
_: 1
|
|
11905
11916
|
}),
|
|
11906
|
-
Te((
|
|
11917
|
+
Te((w(), oe(A, { disabled: !0 }, {
|
|
11907
11918
|
default: M(() => [...d[4] || (d[4] = [
|
|
11908
11919
|
de("调试", -1)
|
|
11909
11920
|
])]),
|
|
@@ -11915,8 +11926,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11915
11926
|
])) : ue("", !0)
|
|
11916
11927
|
]),
|
|
11917
11928
|
default: M(() => [
|
|
11918
|
-
Te((
|
|
11919
|
-
r.value ? (
|
|
11929
|
+
Te((w(), B("div", xv, [
|
|
11930
|
+
r.value ? (w(), oe(gi, {
|
|
11920
11931
|
key: 0,
|
|
11921
11932
|
mode: "view",
|
|
11922
11933
|
"flow-id": C.flowId,
|
|
@@ -11932,7 +11943,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11932
11943
|
])), [
|
|
11933
11944
|
[S, { loading: l.value || u.value }]
|
|
11934
11945
|
]),
|
|
11935
|
-
r.value ? (
|
|
11946
|
+
r.value ? (w(), oe(yi, {
|
|
11936
11947
|
key: 0,
|
|
11937
11948
|
"flow-id": C.flowId,
|
|
11938
11949
|
show: s.value,
|
|
@@ -11981,7 +11992,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
11981
11992
|
},
|
|
11982
11993
|
emits: ["save", "saveSuccess", "back"],
|
|
11983
11994
|
setup(e, { expose: t, emit: n }) {
|
|
11984
|
-
const o = e, a = $s(o.apiConfig), i = n, s = he(null), r = he(!0), l = G(), c = G(), u = he(!0), v = he({}), y = he(!1), m = he([]), f = he(!1), h = he([]), p = he([]),
|
|
11995
|
+
const o = e, a = $s(o.apiConfig), i = n, s = he(null), r = he(!0), l = G(), c = G(), u = he(!0), v = he({}), y = he(!1), m = he([]), f = he(!1), h = he([]), p = he([]), b = he([]), g = he(!1), C = he(!1), d = ke(() => String(o.flowId)), A = ke(
|
|
11985
11996
|
() => r.value || f.value || u.value
|
|
11986
11997
|
);
|
|
11987
11998
|
ot(() => {
|
|
@@ -12035,7 +12046,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12035
12046
|
g.value = !0;
|
|
12036
12047
|
try {
|
|
12037
12048
|
const L = await a.fetchSystemVariables(d.value);
|
|
12038
|
-
|
|
12049
|
+
b.value = L;
|
|
12039
12050
|
} catch (L) {
|
|
12040
12051
|
console.error(L);
|
|
12041
12052
|
} finally {
|
|
@@ -12058,7 +12069,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12058
12069
|
if (!o.permissions.canSave)
|
|
12059
12070
|
return;
|
|
12060
12071
|
const L = Kl(s.value?.pipeline_tree);
|
|
12061
|
-
L.valid ? R() :
|
|
12072
|
+
L.valid ? R() : na({
|
|
12062
12073
|
theme: "error",
|
|
12063
12074
|
message: L.message
|
|
12064
12075
|
});
|
|
@@ -12071,7 +12082,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12071
12082
|
triggers: z
|
|
12072
12083
|
};
|
|
12073
12084
|
try {
|
|
12074
|
-
y.value = !0, await a.saveFlow(d.value, I), C.value = !1,
|
|
12085
|
+
y.value = !0, await a.saveFlow(d.value, I), C.value = !1, na({
|
|
12075
12086
|
theme: "success",
|
|
12076
12087
|
message: "保存成功"
|
|
12077
12088
|
}), o.onSave && o.onSave(s.value), o.onSaveSuccess && o.onSaveSuccess(), i("save", s.value), i("saveSuccess");
|
|
@@ -12086,7 +12097,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12086
12097
|
updateNodeInputParams: $
|
|
12087
12098
|
}), (L, F) => {
|
|
12088
12099
|
const ne = te("bk-button"), T = Fe("bk-tooltips"), z = Fe("bkloading");
|
|
12089
|
-
return
|
|
12100
|
+
return w(), oe(zs, {
|
|
12090
12101
|
title: "编辑流程",
|
|
12091
12102
|
desc: s.value?.name,
|
|
12092
12103
|
"show-back-icon": !0,
|
|
@@ -12098,13 +12109,13 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12098
12109
|
pt(L.$slots, "header", {}, void 0, !0)
|
|
12099
12110
|
]),
|
|
12100
12111
|
extend: M(() => [
|
|
12101
|
-
s.value ? (
|
|
12112
|
+
s.value ? (w(), B("div", Mv, [
|
|
12102
12113
|
E("div", Lv, [
|
|
12103
12114
|
_(hi, {
|
|
12104
12115
|
ref_key: "flowInfoSlidersRef",
|
|
12105
12116
|
ref: l,
|
|
12106
12117
|
"flow-data": s.value,
|
|
12107
|
-
"system-variables":
|
|
12118
|
+
"system-variables": b.value,
|
|
12108
12119
|
"fetch-user-api": $e(a).fetchUserApi,
|
|
12109
12120
|
"api-config": $e(a),
|
|
12110
12121
|
onChange: ie
|
|
@@ -12121,7 +12132,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12121
12132
|
])]),
|
|
12122
12133
|
_: 1
|
|
12123
12134
|
}, 8, ["class", "loading"]),
|
|
12124
|
-
Te((
|
|
12135
|
+
Te((w(), oe(ne, { disabled: !0 }, {
|
|
12125
12136
|
default: M(() => [...F[1] || (F[1] = [
|
|
12126
12137
|
de("调试", -1)
|
|
12127
12138
|
])]),
|
|
@@ -12134,8 +12145,8 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12134
12145
|
])) : ue("", !0)
|
|
12135
12146
|
]),
|
|
12136
12147
|
default: M(() => [
|
|
12137
|
-
Te((
|
|
12138
|
-
!A.value && s.value ? (
|
|
12148
|
+
Te((w(), B("div", Pv, [
|
|
12149
|
+
!A.value && s.value ? (w(), oe(gi, {
|
|
12139
12150
|
key: 0,
|
|
12140
12151
|
ref_key: "flowCanvasRef",
|
|
12141
12152
|
ref: c,
|
|
@@ -12146,7 +12157,7 @@ const _f = /* @__PURE__ */ fe(ff, [["render", wf]]), Af = /* @__PURE__ */ pe({
|
|
|
12146
12157
|
"plugin-group-list": m.value,
|
|
12147
12158
|
"data-group-plugins": h.value,
|
|
12148
12159
|
"agent-group-plugins": p.value,
|
|
12149
|
-
"system-variables":
|
|
12160
|
+
"system-variables": b.value,
|
|
12150
12161
|
"api-config": $e(a),
|
|
12151
12162
|
onChange: re
|
|
12152
12163
|
}, {
|
|
@@ -12181,7 +12192,7 @@ export {
|
|
|
12181
12192
|
Dv as PLUGIN_GROUP_ICON_MAP,
|
|
12182
12193
|
bm as default,
|
|
12183
12194
|
Vu as getUniformApiPluginFormValue,
|
|
12184
|
-
|
|
12195
|
+
ya as getVariableDefaultConfig,
|
|
12185
12196
|
xo as parentClsContains,
|
|
12186
12197
|
$s as useFlowApi,
|
|
12187
12198
|
yt as uuid,
|