@kestra-io/ui-libs 0.0.272 → 0.0.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/plugins_v2/SchemaToHtmlV2.vue.d.ts +8 -12
- package/dist/components/plugins_v2/SchemaToHtmlV2.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +2 -2
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +114 -122
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/plugins_v2/SchemaToHtmlV2.vue +0 -3
package/dist/kestra-index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Ro, { Document as Po, YAMLMap as Pn } from "yaml";
|
|
2
2
|
import { S as pt, r as mr, E as B, U as Me, h as hr, d as gr, a as yr, c as _r, g as vr, C as Mo, l as Er, s as ao } from "./VueFlowUtils-DifPO0kH.js";
|
|
3
|
-
import { N as
|
|
3
|
+
import { N as M_, V as V_ } from "./VueFlowUtils-DifPO0kH.js";
|
|
4
4
|
import { g as br, e as Cr, d as kr, r as wr, a as Sr, f as Lr, b as Tr, c as Nr, h as Ir, u as Ar, i as $r, j as Or, k as Dr, l as Rr, m as Pr, n as Mr, s as Vr, p as Ur, o as Fr, q as xr, t as Pl, v as Hr, w as Br, x as Vo, y as Uo, z as zr, A as Wr, B as Ml, C as jr } from "./FlowYamlUtils-CEYKj9tP.js";
|
|
5
5
|
import { createElementBlock as d, openBlock as u, mergeProps as q, createElementVNode as p, createCommentVNode as v, toDisplayString as O, computed as U, isRef as Gr, defineComponent as oe, createBlock as j, getCurrentInstance as Tt, inject as zn, ref as Z, shallowRef as Qt, watch as Se, onMounted as yt, onUnmounted as Vl, h as St, createVNode as M, Text as Pt, Fragment as ue, nextTick as xt, onBeforeUnmount as Ul, renderSlot as X, createTextVNode as Be, normalizeClass as te, withCtx as F, normalizeStyle as mt, unref as $, toRef as Fo, renderList as Ie, resolveDynamicComponent as qe, createSlots as uo, provide as xo, normalizeProps as Kr, guardReactiveProps as Yr, getCurrentScope as qr, onScopeDispose as Xr, reactive as Fl, withModifiers as yn, withAsyncContext as nn, resolveComponent as xl, toRaw as Zr, defineAsyncComponent as Jr, Comment as Qr, Suspense as es } from "vue";
|
|
6
6
|
import { Handle as Ue, useVueFlow as Hl, Position as on, getSmoothStepPath as ts, EdgeLabelRenderer as ns, VueFlow as os } from "@vue-flow/core";
|
|
@@ -14,7 +14,7 @@ const rs = { lineWidth: 0 }, Bo = [
|
|
|
14
14
|
"finally",
|
|
15
15
|
"afterExecution",
|
|
16
16
|
"pluginDefaults"
|
|
17
|
-
],
|
|
17
|
+
], C_ = {
|
|
18
18
|
stringify: xr,
|
|
19
19
|
parse: Fr,
|
|
20
20
|
pairsToMap: Ur,
|
|
@@ -554,7 +554,7 @@ function Sa(e, t, n, o, r, l) {
|
|
|
554
554
|
], 8, Ca))
|
|
555
555
|
], 16, ba);
|
|
556
556
|
}
|
|
557
|
-
const jo = /* @__PURE__ */ x(Ea, [["render", Sa]]),
|
|
557
|
+
const jo = /* @__PURE__ */ x(Ea, [["render", Sa]]), k_ = ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"], ne = Object.freeze({
|
|
558
558
|
CREATED: {
|
|
559
559
|
name: "CREATED",
|
|
560
560
|
color: "#1761FD",
|
|
@@ -782,7 +782,7 @@ class ge {
|
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
let Kt;
|
|
785
|
-
async function
|
|
785
|
+
async function w_() {
|
|
786
786
|
if (Kt)
|
|
787
787
|
return Kt;
|
|
788
788
|
const e = await import("./useMarkdownParser-Dm9LTWWl.js");
|
|
@@ -832,13 +832,13 @@ function co(e) {
|
|
|
832
832
|
Object.entries(e).filter(([t, n]) => zl(t, n)).map(([t, n]) => [t.replace(/[A-Z]/g, (o) => ` ${o}`), n.filter(({ deprecated: o }) => !o).map(({ cls: o }) => o)])
|
|
833
833
|
);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function S_(e) {
|
|
836
836
|
return e.flatMap((t) => {
|
|
837
837
|
const n = Object.entries(t).filter(([o, r]) => zl(o, r)).map(([o, r]) => [o, r.filter((l) => !l.deprecated)]).filter(([, o]) => o.length > 0);
|
|
838
838
|
return n.length > 0 ? [{ ...t, ...Object.fromEntries(n) }] : [];
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function L_(e) {
|
|
842
842
|
const t = { clsToSubgroup: {}, clsToPlugin: {}, shortNameToCls: {} };
|
|
843
843
|
for (const n of e ?? []) {
|
|
844
844
|
const o = co(n), r = n.group ?? n.name ?? "", l = Fe(r), i = n.subGroup ? Fe(ot(n)) : void 0;
|
|
@@ -3945,7 +3945,7 @@ const ld = /* @__PURE__ */ x(Jc, [["render", od]]), id = { class: "dependency-te
|
|
|
3945
3945
|
}, null, 8, ["position"])
|
|
3946
3946
|
], 64));
|
|
3947
3947
|
}
|
|
3948
|
-
}),
|
|
3948
|
+
}), T_ = /* @__PURE__ */ x(ud, [["__scopeId", "data-v-2271d5b0"]]);
|
|
3949
3949
|
var Qe = /* @__PURE__ */ ((e) => (e.Lines = "lines", e.Dots = "dots", e))(Qe || {});
|
|
3950
3950
|
const Ei = function({ dimensions: e, size: t, color: n }) {
|
|
3951
3951
|
return St("path", {
|
|
@@ -6526,7 +6526,7 @@ const n1 = {
|
|
|
6526
6526
|
_: 1
|
|
6527
6527
|
}, 8, ["id", "default-marker-color"]));
|
|
6528
6528
|
}
|
|
6529
|
-
}),
|
|
6529
|
+
}), N_ = /* @__PURE__ */ x(o1, [["__scopeId", "data-v-ccfc7443"]]), l1 = { class: "text" }, i1 = /* @__PURE__ */ oe({
|
|
6530
6530
|
__name: "Status",
|
|
6531
6531
|
props: {
|
|
6532
6532
|
status: {},
|
|
@@ -6551,7 +6551,7 @@ const n1 = {
|
|
|
6551
6551
|
p("span", l1, O(o.value), 1)
|
|
6552
6552
|
], 2));
|
|
6553
6553
|
}
|
|
6554
|
-
}),
|
|
6554
|
+
}), I_ = /* @__PURE__ */ x(i1, [["__scopeId", "data-v-ce6b0e30"]]), r1 = {
|
|
6555
6555
|
name: "MenuRightIcon",
|
|
6556
6556
|
emits: ["click"],
|
|
6557
6557
|
props: {
|
|
@@ -7906,7 +7906,7 @@ type: "${o.pluginType}"
|
|
|
7906
7906
|
]))
|
|
7907
7907
|
]));
|
|
7908
7908
|
}
|
|
7909
|
-
}),
|
|
7909
|
+
}), A_ = /* @__PURE__ */ x(my, [["__scopeId", "data-v-af023a1d"]]), hy = { key: 0 }, gy = { class: "type-box rounded fs-7 px-2 py-1" }, yy = { key: 1 }, _y = { class: "border rounded px-2 py-1" }, vy = { key: 2 }, Ey = { class: "border rounded px-2 py-1" }, by = { key: 3 }, Cy = { class: "border rounded px-2 py-1" }, ky = { key: 4 }, wy = { class: "border rounded px-2 py-1" }, Sy = { key: 5 }, Ly = { class: "border rounded px-2 py-1" }, Ty = { key: 6 }, Ny = { class: "border rounded px-2 py-1" }, Iy = { key: 7 }, Ay = { class: "border rounded px-2 py-1" }, $y = { key: 8 }, Oy = { class: "border rounded px-2 py-1" }, Dy = { key: 9 }, Ry = { class: "border rounded px-2 py-1" }, Py = { key: 10 }, My = { class: "border rounded px-2 py-1" }, Vy = { key: 11 }, Uy = { class: "border rounded px-2 py-1" }, Fy = { key: 12 }, xy = { class: "border rounded px-2 py-1" }, Hy = { key: 13 }, By = { class: "values-wrapper d-flex flex-wrap justify-content-end gap-7 p-0" }, zy = /* @__PURE__ */ oe({
|
|
7910
7910
|
__name: "PropertyMeta",
|
|
7911
7911
|
props: {
|
|
7912
7912
|
property: {},
|
|
@@ -8278,14 +8278,11 @@ type: "${o.pluginType}"
|
|
|
8278
8278
|
role: "alert"
|
|
8279
8279
|
}, c0 = {
|
|
8280
8280
|
key: 1,
|
|
8281
|
-
class: "plugin-title markdown"
|
|
8282
|
-
}, d0 = {
|
|
8283
|
-
key: 2,
|
|
8284
8281
|
class: "markdown"
|
|
8285
|
-
},
|
|
8282
|
+
}, d0 = { class: "d-flex flex-column gap-4" }, f0 = { class: "d-flex flex-column" }, p0 = { class: "markdown" }, m0 = {
|
|
8286
8283
|
key: 0,
|
|
8287
8284
|
class: "w-100 align-self-center"
|
|
8288
|
-
},
|
|
8285
|
+
}, h0 = { class: "markdown" }, g0 = { class: "markdown" }, y0 = { class: "markdown" }, _0 = /* @__PURE__ */ oe({
|
|
8289
8286
|
__name: "SchemaToHtmlV2",
|
|
8290
8287
|
props: {
|
|
8291
8288
|
schema: {},
|
|
@@ -8309,12 +8306,7 @@ type: "${o.pluginType}"
|
|
|
8309
8306
|
f.schema.properties?.$beta ? (u(), d("div", u0, [...g[0] || (g[0] = [
|
|
8310
8307
|
p("p", null, " This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ", -1)
|
|
8311
8308
|
])])) : v("", !0),
|
|
8312
|
-
f.schema.properties?.
|
|
8313
|
-
X(f.$slots, "markdown", {
|
|
8314
|
-
content: f.schema.properties.title.replace(/ *:(?![ /])/g, ": ")
|
|
8315
|
-
}, void 0, !0)
|
|
8316
|
-
])) : v("", !0),
|
|
8317
|
-
f.schema.properties?.description ? (u(), d("div", d0, [
|
|
8309
|
+
f.schema.properties?.description ? (u(), d("div", c0, [
|
|
8318
8310
|
X(f.$slots, "markdown", {
|
|
8319
8311
|
content: f.schema.properties.description.replace(/ *:(?![ /])/g, ": ")
|
|
8320
8312
|
}, void 0, !0)
|
|
@@ -8339,12 +8331,12 @@ type: "${o.pluginType}"
|
|
|
8339
8331
|
"no-url-change": f.noUrlChange
|
|
8340
8332
|
}, {
|
|
8341
8333
|
content: F(() => [
|
|
8342
|
-
p("div",
|
|
8334
|
+
p("div", d0, [
|
|
8343
8335
|
(u(!0), d(ue, null, Ie(i.value, (_, k) => (u(), d(ue, {
|
|
8344
8336
|
key: f.pluginType + "-" + k
|
|
8345
8337
|
}, [
|
|
8346
|
-
p("div",
|
|
8347
|
-
p("div",
|
|
8338
|
+
p("div", f0, [
|
|
8339
|
+
p("div", p0, [
|
|
8348
8340
|
_.title ? X(f.$slots, "markdown", {
|
|
8349
8341
|
key: 0,
|
|
8350
8342
|
content: _.title.replace(/ *:(?![ /])/g, ": ")
|
|
@@ -8358,7 +8350,7 @@ type: "${o.pluginType}"
|
|
|
8358
8350
|
code: r(_)
|
|
8359
8351
|
}, null, 8, ["highlighter", "language", "code"])) : v("", !0)
|
|
8360
8352
|
]),
|
|
8361
|
-
k < i.value.length - 1 ? (u(), d("hr",
|
|
8353
|
+
k < i.value.length - 1 ? (u(), d("hr", m0)) : v("", !0)
|
|
8362
8354
|
], 64))), 128))
|
|
8363
8355
|
])
|
|
8364
8356
|
]),
|
|
@@ -8376,7 +8368,7 @@ type: "${o.pluginType}"
|
|
|
8376
8368
|
"no-url-change": f.noUrlChange
|
|
8377
8369
|
}, {
|
|
8378
8370
|
markdown: F(({ content: _ }) => [
|
|
8379
|
-
p("div",
|
|
8371
|
+
p("div", h0, [
|
|
8380
8372
|
X(f.$slots, "markdown", { content: _ }, void 0, !0)
|
|
8381
8373
|
])
|
|
8382
8374
|
]),
|
|
@@ -8393,7 +8385,7 @@ type: "${o.pluginType}"
|
|
|
8393
8385
|
"no-url-change": f.noUrlChange
|
|
8394
8386
|
}, {
|
|
8395
8387
|
markdown: F(({ content: _ }) => [
|
|
8396
|
-
p("div",
|
|
8388
|
+
p("div", g0, [
|
|
8397
8389
|
X(f.$slots, "markdown", { content: _ }, void 0, !0)
|
|
8398
8390
|
])
|
|
8399
8391
|
]),
|
|
@@ -8410,7 +8402,7 @@ type: "${o.pluginType}"
|
|
|
8410
8402
|
"no-url-change": f.noUrlChange
|
|
8411
8403
|
}, {
|
|
8412
8404
|
markdown: F(({ content: _ }) => [
|
|
8413
|
-
p("div",
|
|
8405
|
+
p("div", y0, [
|
|
8414
8406
|
X(f.$slots, "markdown", { content: _ }, void 0, !0)
|
|
8415
8407
|
])
|
|
8416
8408
|
]),
|
|
@@ -8419,19 +8411,19 @@ type: "${o.pluginType}"
|
|
|
8419
8411
|
]))
|
|
8420
8412
|
]));
|
|
8421
8413
|
}
|
|
8422
|
-
}),
|
|
8414
|
+
}), $_ = /* @__PURE__ */ x(_0, [["__scopeId", "data-v-1fe47a0f"]]), v0 = { class: "d-flex flex-column gap-4" }, E0 = {
|
|
8423
8415
|
key: 0,
|
|
8424
8416
|
class: "pb-2"
|
|
8425
|
-
},
|
|
8417
|
+
}, b0 = { class: "row g-4 last" }, C0 = ["id"], k0 = { class: "row g-4 last" }, w0 = {
|
|
8426
8418
|
key: 2,
|
|
8427
8419
|
class: "description"
|
|
8428
|
-
},
|
|
8420
|
+
}, S0 = {
|
|
8429
8421
|
key: 0,
|
|
8430
8422
|
class: "gradient-overlay"
|
|
8431
|
-
},
|
|
8423
|
+
}, L0 = {
|
|
8432
8424
|
key: 0,
|
|
8433
8425
|
class: "more-wrap text-center"
|
|
8434
|
-
},
|
|
8426
|
+
}, T0 = /* @__PURE__ */ oe({
|
|
8435
8427
|
__name: "PluginIndex",
|
|
8436
8428
|
props: {
|
|
8437
8429
|
plugins: {},
|
|
@@ -8457,9 +8449,9 @@ type: "${o.pluginType}"
|
|
|
8457
8449
|
const { elementsByType: _ } = Ia(i), k = Z(null), w = Z(null), C = Z(!1), { height: E } = Ol(k), { height: h } = Ol(w), b = U(() => h.value > E.value + 2), A = () => {
|
|
8458
8450
|
C.value = !C.value;
|
|
8459
8451
|
}, T = t;
|
|
8460
|
-
return (N, P) => (u(), d("div",
|
|
8461
|
-
N.subGroup === void 0 && N.plugins.length > 1 ? (u(), d("div",
|
|
8462
|
-
p("div",
|
|
8452
|
+
return (N, P) => (u(), d("div", v0, [
|
|
8453
|
+
N.subGroup === void 0 && N.plugins.length > 1 ? (u(), d("div", E0, [
|
|
8454
|
+
p("div", b0, [
|
|
8463
8455
|
(u(!0), d(ue, null, Ie(a.value, (L) => (u(), d("div", {
|
|
8464
8456
|
class: "col-md-4 col-lg-6 col-xl-6 col-xxl-4",
|
|
8465
8457
|
key: $(ot)(L)
|
|
@@ -8487,8 +8479,8 @@ type: "${o.pluginType}"
|
|
|
8487
8479
|
p("h4", {
|
|
8488
8480
|
id: `section-${$(Fe)(K)}`,
|
|
8489
8481
|
class: "text-capitalize"
|
|
8490
|
-
}, O(K), 9,
|
|
8491
|
-
p("div",
|
|
8482
|
+
}, O(K), 9, C0),
|
|
8483
|
+
p("div", k0, [
|
|
8492
8484
|
(u(!0), d(ue, null, Ie(L, (Q) => (u(), d("div", {
|
|
8493
8485
|
class: "col-md-4 col-lg-6 col-xl-6 col-xxl-4",
|
|
8494
8486
|
key: Q
|
|
@@ -8512,7 +8504,7 @@ type: "${o.pluginType}"
|
|
|
8512
8504
|
]))), 128))
|
|
8513
8505
|
])
|
|
8514
8506
|
]))), 128)) : v("", !0),
|
|
8515
|
-
s.value !== void 0 && i.value?.longDescription ? (u(), d("div",
|
|
8507
|
+
s.value !== void 0 && i.value?.longDescription ? (u(), d("div", w0, [
|
|
8516
8508
|
P[2] || (P[2] = p("h4", { id: "how-to-use-this-plugin" }, " How to use this plugin ", -1)),
|
|
8517
8509
|
p("div", {
|
|
8518
8510
|
ref_key: "contentWrap",
|
|
@@ -8528,9 +8520,9 @@ type: "${o.pluginType}"
|
|
|
8528
8520
|
content: s.value.replace(/ *:(?![ /])/g, ": ")
|
|
8529
8521
|
}, void 0, !0)
|
|
8530
8522
|
], 512),
|
|
8531
|
-
b.value && !C.value ? (u(), d("div",
|
|
8523
|
+
b.value && !C.value ? (u(), d("div", S0)) : v("", !0)
|
|
8532
8524
|
], 2),
|
|
8533
|
-
b.value || C.value ? (u(), d("div",
|
|
8525
|
+
b.value || C.value ? (u(), d("div", L0, [
|
|
8534
8526
|
p("button", {
|
|
8535
8527
|
class: "more-btn",
|
|
8536
8528
|
onClick: A
|
|
@@ -8542,18 +8534,18 @@ type: "${o.pluginType}"
|
|
|
8542
8534
|
])) : v("", !0)
|
|
8543
8535
|
]));
|
|
8544
8536
|
}
|
|
8545
|
-
}),
|
|
8546
|
-
function
|
|
8537
|
+
}), O_ = /* @__PURE__ */ x(T0, [["__scopeId", "data-v-535305bd"]]), N0 = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, I0 = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, A0 = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
8538
|
+
function $0(e, t) {
|
|
8547
8539
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
8548
|
-
|
|
8540
|
+
O0(e);
|
|
8549
8541
|
return;
|
|
8550
8542
|
}
|
|
8551
8543
|
return t;
|
|
8552
8544
|
}
|
|
8553
|
-
function
|
|
8545
|
+
function O0(e) {
|
|
8554
8546
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
8555
8547
|
}
|
|
8556
|
-
function
|
|
8548
|
+
function D0(e, t = {}) {
|
|
8557
8549
|
if (typeof e != "string")
|
|
8558
8550
|
return e;
|
|
8559
8551
|
if (e[0] === '"' && e[e.length - 1] === '"' && e.indexOf("\\") === -1)
|
|
@@ -8576,16 +8568,16 @@ function R0(e, t = {}) {
|
|
|
8576
8568
|
case "-infinity":
|
|
8577
8569
|
return Number.NEGATIVE_INFINITY;
|
|
8578
8570
|
}
|
|
8579
|
-
if (
|
|
8571
|
+
if (!A0.test(e)) {
|
|
8580
8572
|
if (t.strict)
|
|
8581
8573
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
8582
8574
|
return e;
|
|
8583
8575
|
}
|
|
8584
8576
|
try {
|
|
8585
|
-
if (
|
|
8577
|
+
if (N0.test(e) || I0.test(e)) {
|
|
8586
8578
|
if (t.strict)
|
|
8587
8579
|
throw new Error("[destr] Possible prototype pollution");
|
|
8588
|
-
return JSON.parse(e,
|
|
8580
|
+
return JSON.parse(e, $0);
|
|
8589
8581
|
}
|
|
8590
8582
|
return JSON.parse(e);
|
|
8591
8583
|
} catch (o) {
|
|
@@ -8594,13 +8586,13 @@ function R0(e, t = {}) {
|
|
|
8594
8586
|
return e;
|
|
8595
8587
|
}
|
|
8596
8588
|
}
|
|
8597
|
-
const
|
|
8598
|
-
function
|
|
8599
|
-
if (!
|
|
8589
|
+
const R0 = /\d/, P0 = ["-", "_", "/", "."];
|
|
8590
|
+
function M0(e = "") {
|
|
8591
|
+
if (!R0.test(e))
|
|
8600
8592
|
return e !== e.toLowerCase();
|
|
8601
8593
|
}
|
|
8602
8594
|
function qi(e, t) {
|
|
8603
|
-
const n =
|
|
8595
|
+
const n = P0, o = [];
|
|
8604
8596
|
if (!e || typeof e != "string")
|
|
8605
8597
|
return o;
|
|
8606
8598
|
let r = "", l, i;
|
|
@@ -8610,7 +8602,7 @@ function qi(e, t) {
|
|
|
8610
8602
|
o.push(r), r = "", l = void 0;
|
|
8611
8603
|
continue;
|
|
8612
8604
|
}
|
|
8613
|
-
const c =
|
|
8605
|
+
const c = M0(s);
|
|
8614
8606
|
if (i === !1) {
|
|
8615
8607
|
if (l === !1 && c === !0) {
|
|
8616
8608
|
o.push(r), r = s, l = c;
|
|
@@ -8626,13 +8618,13 @@ function qi(e, t) {
|
|
|
8626
8618
|
}
|
|
8627
8619
|
return o.push(r), o;
|
|
8628
8620
|
}
|
|
8629
|
-
function
|
|
8621
|
+
function V0(e) {
|
|
8630
8622
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
8631
8623
|
}
|
|
8632
8624
|
function Xi(e, t) {
|
|
8633
|
-
return e ? (Array.isArray(e) ? e : qi(e)).map((n) =>
|
|
8625
|
+
return e ? (Array.isArray(e) ? e : qi(e)).map((n) => V0(n)).join("") : "";
|
|
8634
8626
|
}
|
|
8635
|
-
function
|
|
8627
|
+
function U0(e, t) {
|
|
8636
8628
|
return e ? (Array.isArray(e) ? e : qi(e)).map((n) => n.toLowerCase()).join("-") : "";
|
|
8637
8629
|
}
|
|
8638
8630
|
class Bt {
|
|
@@ -8687,10 +8679,10 @@ De.prototype.overloadedBoolean = !1;
|
|
|
8687
8679
|
De.prototype.property = "";
|
|
8688
8680
|
De.prototype.spaceSeparated = !1;
|
|
8689
8681
|
De.prototype.space = void 0;
|
|
8690
|
-
let
|
|
8682
|
+
let F0 = 0;
|
|
8691
8683
|
const J = _t(), be = _t(), lo = _t(), R = _t(), fe = _t(), wt = _t(), Pe = _t();
|
|
8692
8684
|
function _t() {
|
|
8693
|
-
return 2 ** ++
|
|
8685
|
+
return 2 ** ++F0;
|
|
8694
8686
|
}
|
|
8695
8687
|
const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8696
8688
|
__proto__: null,
|
|
@@ -8807,7 +8799,7 @@ function Qi(e, t) {
|
|
|
8807
8799
|
function er(e, t) {
|
|
8808
8800
|
return Qi(e, t.toLowerCase());
|
|
8809
8801
|
}
|
|
8810
|
-
const
|
|
8802
|
+
const x0 = At({
|
|
8811
8803
|
attributes: {
|
|
8812
8804
|
acceptcharset: "accept-charset",
|
|
8813
8805
|
classname: "class",
|
|
@@ -9168,7 +9160,7 @@ const H0 = At({
|
|
|
9168
9160
|
},
|
|
9169
9161
|
space: "html",
|
|
9170
9162
|
transform: er
|
|
9171
|
-
}),
|
|
9163
|
+
}), H0 = At({
|
|
9172
9164
|
attributes: {
|
|
9173
9165
|
accentHeight: "accent-height",
|
|
9174
9166
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -9752,20 +9744,20 @@ const H0 = At({
|
|
|
9752
9744
|
transform(e, t) {
|
|
9753
9745
|
return "xml:" + t.slice(3).toLowerCase();
|
|
9754
9746
|
}
|
|
9755
|
-
}),
|
|
9756
|
-
function
|
|
9747
|
+
}), B0 = /[A-Z]/g, Rl = /-[a-z]/g, z0 = /^data[-\w.:]+$/i;
|
|
9748
|
+
function W0(e, t) {
|
|
9757
9749
|
const n = oo(t);
|
|
9758
9750
|
let o = t, r = De;
|
|
9759
9751
|
if (n in e.normal)
|
|
9760
9752
|
return e.property[e.normal[n]];
|
|
9761
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
9753
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && z0.test(t)) {
|
|
9762
9754
|
if (t.charAt(4) === "-") {
|
|
9763
|
-
const l = t.slice(5).replace(Rl,
|
|
9755
|
+
const l = t.slice(5).replace(Rl, G0);
|
|
9764
9756
|
o = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
|
9765
9757
|
} else {
|
|
9766
9758
|
const l = t.slice(4);
|
|
9767
9759
|
if (!Rl.test(l)) {
|
|
9768
|
-
let i = l.replace(
|
|
9760
|
+
let i = l.replace(B0, j0);
|
|
9769
9761
|
i.charAt(0) !== "-" && (i = "-" + i), t = "data" + i;
|
|
9770
9762
|
}
|
|
9771
9763
|
}
|
|
@@ -9773,14 +9765,14 @@ function j0(e, t) {
|
|
|
9773
9765
|
}
|
|
9774
9766
|
return new r(o, t);
|
|
9775
9767
|
}
|
|
9776
|
-
function
|
|
9768
|
+
function j0(e) {
|
|
9777
9769
|
return "-" + e.toLowerCase();
|
|
9778
9770
|
}
|
|
9779
|
-
function
|
|
9771
|
+
function G0(e) {
|
|
9780
9772
|
return e.charAt(1).toUpperCase();
|
|
9781
9773
|
}
|
|
9782
|
-
const
|
|
9783
|
-
Zi([Ji,
|
|
9774
|
+
const K0 = Zi([Ji, x0, tr, nr, or], "html");
|
|
9775
|
+
Zi([Ji, H0, tr, nr, or], "svg");
|
|
9784
9776
|
const Ao = [
|
|
9785
9777
|
"a",
|
|
9786
9778
|
"abbr",
|
|
@@ -9899,7 +9891,7 @@ const Ao = [
|
|
|
9899
9891
|
"var",
|
|
9900
9892
|
"video",
|
|
9901
9893
|
"wbr"
|
|
9902
|
-
],
|
|
9894
|
+
], Y0 = ["p", "h1", "h2", "h3", "h4", "h5", "h6", "li"];
|
|
9903
9895
|
function hn(e, t) {
|
|
9904
9896
|
return e.type === t || typeof e.type == "object" && e.type.tag === t || e.tag === t;
|
|
9905
9897
|
}
|
|
@@ -9923,7 +9915,7 @@ function ir(e, t = []) {
|
|
|
9923
9915
|
if (Array.isArray(e))
|
|
9924
9916
|
return e.flatMap((o) => ir(o, t));
|
|
9925
9917
|
let n = e;
|
|
9926
|
-
return t.some((o) => o === "*" || hn(e, o)) && (n = lr(e) || e, !Array.isArray(n) &&
|
|
9918
|
+
return t.some((o) => o === "*" || hn(e, o)) && (n = lr(e) || e, !Array.isArray(n) && Y0.some((o) => hn(e, o)) && (n = [n])), n;
|
|
9927
9919
|
}
|
|
9928
9920
|
function rr(e, t = []) {
|
|
9929
9921
|
return e = Array.isArray(e) ? e : [e], t.length ? e.flatMap((n) => rr(ir(n, [t[0]]), t.slice(1))).filter((n) => !($o(n) && gn(n).trim() === "")) : e;
|
|
@@ -9931,16 +9923,16 @@ function rr(e, t = []) {
|
|
|
9931
9923
|
function sr(e, t = []) {
|
|
9932
9924
|
return typeof t == "string" && (t = t.split(/[,\s]/).map((n) => n.trim()).filter(Boolean)), t.length ? rr(e, t).reduce((n, o) => ($o(o) ? typeof n[n.length - 1] == "string" ? n[n.length - 1] += o.children : n.push(o.children) : n.push(o), n), []) : e;
|
|
9933
9925
|
}
|
|
9934
|
-
function
|
|
9926
|
+
function q0(e, t) {
|
|
9935
9927
|
return t.reduce((n, o) => {
|
|
9936
|
-
const r =
|
|
9928
|
+
const r = X0(e, o);
|
|
9937
9929
|
return r !== void 0 && (n[o] = r), n;
|
|
9938
9930
|
}, {});
|
|
9939
9931
|
}
|
|
9940
|
-
function
|
|
9932
|
+
function X0(e, t) {
|
|
9941
9933
|
return t.split(".").reduce((n, o) => n && n[o], e);
|
|
9942
9934
|
}
|
|
9943
|
-
const ro = "default", ar = /^@|^v-on:/, ur = /^:|^v-bind:/,
|
|
9935
|
+
const ro = "default", ar = /^@|^v-on:/, ur = /^:|^v-bind:/, Z0 = /^v-model/, J0 = ["select", "textarea", "input"], Q0 = ["math", "svg"], e_ = Object.fromEntries(["p", "a", "blockquote", "code", "pre", "code", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "ul", "ol", "li", "strong", "table", "thead", "tbody", "td", "th", "tr", "script"].map((e) => [e, `prose-${e}`])), t_ = ["script", "base"], n_ = oe({
|
|
9944
9936
|
name: "MDCRenderer",
|
|
9945
9937
|
props: {
|
|
9946
9938
|
/**
|
|
@@ -9996,7 +9988,7 @@ const ro = "default", ar = /^@|^v-on:/, ur = /^:|^v-bind:/, J0 = /^v-model/, Q0
|
|
|
9996
9988
|
},
|
|
9997
9989
|
async setup(e) {
|
|
9998
9990
|
const n = Tt()?.appContext?.app?.$nuxt, o = n?.$route || n?._route, { mdc: r } = n?.$config?.public || {}, l = U(() => ({
|
|
9999
|
-
...r?.components?.prose && e.prose !== !1 ?
|
|
9991
|
+
...r?.components?.prose && e.prose !== !1 ? e_ : {},
|
|
10000
9992
|
...r?.components?.map || {},
|
|
10001
9993
|
...Zr(e.data?.mdc?.components || {}),
|
|
10002
9994
|
...e.components
|
|
@@ -10008,7 +10000,7 @@ const ro = "default", ar = /^@|^v-on:/, ur = /^:|^v-bind:/, J0 = /^v-model/, Q0
|
|
|
10008
10000
|
});
|
|
10009
10001
|
Se(() => e.data, (c) => {
|
|
10010
10002
|
Object.assign(s, c);
|
|
10011
|
-
}), await
|
|
10003
|
+
}), await p_(e.body, { tags: l.value });
|
|
10012
10004
|
function a(c, f) {
|
|
10013
10005
|
const g = c.split(".").length - 1;
|
|
10014
10006
|
return c.split(".").reduce((_, k, w) => w == g && _ ? (_[k] = f, _[k]) : typeof _ == "object" ? _[k] : void 0, s);
|
|
@@ -10030,7 +10022,7 @@ const ro = "default", ar = /^@|^v-on:/, ur = /^:|^v-bind:/, J0 = /^v-model/, Q0
|
|
|
10030
10022
|
}
|
|
10031
10023
|
}
|
|
10032
10024
|
});
|
|
10033
|
-
function
|
|
10025
|
+
function o_(e, t, n, o) {
|
|
10034
10026
|
const { documentMeta: r, parentScope: l, resolveComponent: i } = n;
|
|
10035
10027
|
if (e.type === "text")
|
|
10036
10028
|
return t(Pt, e.value);
|
|
@@ -10038,9 +10030,9 @@ function l_(e, t, n, o) {
|
|
|
10038
10030
|
return t(Qr, null, e.value);
|
|
10039
10031
|
const s = e.tag, a = fr(e, r.tags);
|
|
10040
10032
|
if (e.tag === "binding")
|
|
10041
|
-
return
|
|
10033
|
+
return l_(e, t, r, l);
|
|
10042
10034
|
const c = dr(a) ? (_) => _ : i;
|
|
10043
|
-
if (
|
|
10035
|
+
if (t_.includes(a))
|
|
10044
10036
|
return t(
|
|
10045
10037
|
"pre",
|
|
10046
10038
|
{ class: "mdc-renderer-dangerous-tag" },
|
|
@@ -10048,7 +10040,7 @@ function l_(e, t, n, o) {
|
|
|
10048
10040
|
);
|
|
10049
10041
|
const f = c(a);
|
|
10050
10042
|
typeof f == "object" && (f.tag = s);
|
|
10051
|
-
const g =
|
|
10043
|
+
const g = i_(e, r);
|
|
10052
10044
|
return o && (g.key = o), t(
|
|
10053
10045
|
f,
|
|
10054
10046
|
g,
|
|
@@ -10065,16 +10057,16 @@ function l_(e, t, n, o) {
|
|
|
10065
10057
|
}
|
|
10066
10058
|
function cr(e, t, n) {
|
|
10067
10059
|
const { documentMeta: o, parentScope: r, resolveComponent: l } = n, s = (e.children || []).reduce((c, f) => {
|
|
10068
|
-
if (!
|
|
10060
|
+
if (!d_(f))
|
|
10069
10061
|
return c[ro].children.push(f), c;
|
|
10070
|
-
const g =
|
|
10062
|
+
const g = c_(f);
|
|
10071
10063
|
return c[g] = c[g] || { props: {}, children: [] }, f.type === "element" && (c[g].props = f.props, c[g].children.push(...f.children || [])), c;
|
|
10072
10064
|
}, {
|
|
10073
10065
|
[ro]: { props: {}, children: [] }
|
|
10074
10066
|
});
|
|
10075
10067
|
return Object.entries(s).reduce((c, [f, { props: g, children: _ }]) => (_.length && (c[f] = (k = {}) => {
|
|
10076
|
-
const w =
|
|
10077
|
-
let C = _.map((E, h) =>
|
|
10068
|
+
const w = q0(k, Object.keys(g || {}));
|
|
10069
|
+
let C = _.map((E, h) => o_(
|
|
10078
10070
|
E,
|
|
10079
10071
|
t,
|
|
10080
10072
|
{
|
|
@@ -10084,10 +10076,10 @@ function cr(e, t, n) {
|
|
|
10084
10076
|
},
|
|
10085
10077
|
String(E.props?.key || h)
|
|
10086
10078
|
));
|
|
10087
|
-
return g?.unwrap && (C = sr(C, g.unwrap)),
|
|
10079
|
+
return g?.unwrap && (C = sr(C, g.unwrap)), f_(C);
|
|
10088
10080
|
}), c), {});
|
|
10089
10081
|
}
|
|
10090
|
-
function
|
|
10082
|
+
function l_(e, t, n, o = {}) {
|
|
10091
10083
|
const r = {
|
|
10092
10084
|
...n.runtimeData,
|
|
10093
10085
|
...o,
|
|
@@ -10099,38 +10091,38 @@ function i_(e, t, n, o = {}) {
|
|
|
10099
10091
|
}, r), a = e.props?.defaultValue;
|
|
10100
10092
|
return t(Pt, s ?? a ?? "");
|
|
10101
10093
|
}
|
|
10102
|
-
function
|
|
10094
|
+
function i_(e, t) {
|
|
10103
10095
|
const { tag: n = "", props: o = {} } = e;
|
|
10104
10096
|
return Object.keys(o).reduce(function(r, l) {
|
|
10105
10097
|
if (l === "__ignoreMap")
|
|
10106
10098
|
return r;
|
|
10107
10099
|
const i = o[l];
|
|
10108
|
-
if (
|
|
10109
|
-
return
|
|
10100
|
+
if (Z0.test(l))
|
|
10101
|
+
return r_(l, i, r, t, { native: J0.includes(n) });
|
|
10110
10102
|
if (l === "v-bind")
|
|
10111
|
-
return
|
|
10103
|
+
return s_(l, i, r, t);
|
|
10112
10104
|
if (ar.test(l))
|
|
10113
|
-
return
|
|
10105
|
+
return a_(l, i, r, t);
|
|
10114
10106
|
if (ur.test(l))
|
|
10115
|
-
return
|
|
10116
|
-
const { attribute: s } =
|
|
10107
|
+
return u_(l, i, r, t);
|
|
10108
|
+
const { attribute: s } = W0(K0, l);
|
|
10117
10109
|
return Array.isArray(i) && i.every((a) => typeof a == "string") ? (r[s] = i.join(" "), r) : (r[s] = i, r);
|
|
10118
10110
|
}, {});
|
|
10119
10111
|
}
|
|
10120
|
-
function
|
|
10112
|
+
function r_(e, t, n, o, { native: r }) {
|
|
10121
10113
|
const l = e.match(/^v-model:([^=]+)/)?.[1] || "modelValue", i = r ? "value" : l, s = r ? "onInput" : `onUpdate:${l}`;
|
|
10122
10114
|
return n[i] = Sn(t, o.runtimeData), n[s] = (a) => {
|
|
10123
10115
|
o.updateRuntimeData(t, r ? a.target?.value : a);
|
|
10124
10116
|
}, n;
|
|
10125
10117
|
}
|
|
10126
|
-
function
|
|
10118
|
+
function s_(e, t, n, o) {
|
|
10127
10119
|
const r = Sn(t, o);
|
|
10128
10120
|
return n = Object.assign(n, r), n;
|
|
10129
10121
|
}
|
|
10130
|
-
function
|
|
10122
|
+
function a_(e, t, n, o) {
|
|
10131
10123
|
return e = e.replace(ar, ""), n.on = n.on || {}, n.on[e] = () => Sn(t, o), n;
|
|
10132
10124
|
}
|
|
10133
|
-
function
|
|
10125
|
+
function u_(e, t, n, o) {
|
|
10134
10126
|
return e = e.replace(ur, ""), n[e] = Sn(t, o), n;
|
|
10135
10127
|
}
|
|
10136
10128
|
const so = (e) => {
|
|
@@ -10144,9 +10136,9 @@ const so = (e) => {
|
|
|
10144
10136
|
};
|
|
10145
10137
|
function Sn(e, t) {
|
|
10146
10138
|
const n = e.split(".").reduce((o, r) => typeof o == "object" ? o[r] : void 0, t);
|
|
10147
|
-
return typeof n > "u" ?
|
|
10139
|
+
return typeof n > "u" ? D0(e) : n;
|
|
10148
10140
|
}
|
|
10149
|
-
function
|
|
10141
|
+
function c_(e) {
|
|
10150
10142
|
let t = "";
|
|
10151
10143
|
for (const n of Object.keys(e.props || {}))
|
|
10152
10144
|
if (!(!n.startsWith("#") && !n.startsWith("v-slot:"))) {
|
|
@@ -10155,13 +10147,13 @@ function d_(e) {
|
|
|
10155
10147
|
}
|
|
10156
10148
|
return t || ro;
|
|
10157
10149
|
}
|
|
10158
|
-
function
|
|
10150
|
+
function d_(e) {
|
|
10159
10151
|
return e.tag === "template";
|
|
10160
10152
|
}
|
|
10161
10153
|
function dr(e) {
|
|
10162
|
-
return
|
|
10154
|
+
return Q0.includes(e);
|
|
10163
10155
|
}
|
|
10164
|
-
function
|
|
10156
|
+
function f_(e) {
|
|
10165
10157
|
const t = [];
|
|
10166
10158
|
for (const n of e) {
|
|
10167
10159
|
const o = t[t.length - 1];
|
|
@@ -10169,7 +10161,7 @@ function p_(e) {
|
|
|
10169
10161
|
}
|
|
10170
10162
|
return t;
|
|
10171
10163
|
}
|
|
10172
|
-
async function
|
|
10164
|
+
async function p_(e, t) {
|
|
10173
10165
|
if (!e)
|
|
10174
10166
|
return;
|
|
10175
10167
|
const n = Array.from(new Set(o(e, t)));
|
|
@@ -10195,14 +10187,14 @@ async function m_(e, t) {
|
|
|
10195
10187
|
}
|
|
10196
10188
|
function fr(e, t) {
|
|
10197
10189
|
const n = e.tag;
|
|
10198
|
-
return !n || typeof e.props?.__ignoreMap < "u" ? n : t[n] || t[Xi(n)] || t[
|
|
10190
|
+
return !n || typeof e.props?.__ignoreMap < "u" ? n : t[n] || t[Xi(n)] || t[U0(e.tag)] || n;
|
|
10199
10191
|
}
|
|
10200
|
-
const
|
|
10192
|
+
const D_ = /* @__PURE__ */ oe({
|
|
10201
10193
|
__name: "MDCRenderer",
|
|
10202
10194
|
setup(e) {
|
|
10203
10195
|
return (t, n) => (u(), j(es, null, {
|
|
10204
10196
|
default: F(() => [
|
|
10205
|
-
M(
|
|
10197
|
+
M(n_, q(t.$attrs, { prose: !0 }), null, 16)
|
|
10206
10198
|
]),
|
|
10207
10199
|
_: 1
|
|
10208
10200
|
}));
|
|
@@ -10212,31 +10204,31 @@ export {
|
|
|
10212
10204
|
Mo as CLUSTER_PREFIX,
|
|
10213
10205
|
fn as Collapsible,
|
|
10214
10206
|
pn as CollapsibleV2,
|
|
10215
|
-
|
|
10207
|
+
T_ as DependenciesNode,
|
|
10216
10208
|
B as EVENTS,
|
|
10217
10209
|
_h as ElementCard,
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10210
|
+
k_ as LOG_LEVELS,
|
|
10211
|
+
D_ as MDCRenderer,
|
|
10212
|
+
M_ as NODE_SIZES,
|
|
10213
|
+
O_ as PluginIndex,
|
|
10222
10214
|
Ua as RotatingDotsIcon,
|
|
10223
10215
|
pt as SECTIONS,
|
|
10224
10216
|
ne as STATES,
|
|
10225
|
-
|
|
10226
|
-
|
|
10217
|
+
A_ as SchemaToHtml,
|
|
10218
|
+
$_ as SchemaToHtmlV2,
|
|
10227
10219
|
ge as State,
|
|
10228
|
-
|
|
10220
|
+
I_ as Status,
|
|
10229
10221
|
uh as SubgroupCard,
|
|
10230
10222
|
_i as TaskIcon,
|
|
10231
|
-
|
|
10223
|
+
N_ as Topology,
|
|
10232
10224
|
Me as Utils,
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10225
|
+
V_ as VueFlowUtils,
|
|
10226
|
+
C_ as YamlUtils,
|
|
10227
|
+
L_ as buildPluginMappings,
|
|
10236
10228
|
xe as cssVariable,
|
|
10237
10229
|
co as extractPluginElements,
|
|
10238
|
-
|
|
10239
|
-
|
|
10230
|
+
S_ as filterPluginsWithoutDeprecated,
|
|
10231
|
+
w_ as getMDCParser,
|
|
10240
10232
|
zl as isEntryAPluginElementPredicate,
|
|
10241
10233
|
Fe as slugify,
|
|
10242
10234
|
ot as subGroupName,
|