@a2simcode/dui 0.0.37 → 0.0.38
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/dui.es.js +131 -131
- package/dist/dui.umd.js +1 -1
- package/package.json +1 -1
package/dist/dui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as GB from "vue";
|
|
2
|
-
import { Fragment as ae, Teleport as VB, computed as UA, createBlock as JA, createCommentVNode as oe, createElementBlock as vA, createElementVNode as rA, createPropsRestProxy as zB, createTextVNode as Dt, createVNode as CA, customRef as $B, defineComponent as $A, effectScope as yu, getCurrentInstance as Xn, getCurrentScope as Qu, guardReactiveProps as XB, h as fe, inject as ft, isMemoSame as WB, isRef as Cs, markRaw as bi, mergeProps as qt, nextTick as Fe, normalizeClass as Ke, normalizeProps as Uu, normalizeStyle as YA, onBeforeMount as YB, onBeforeUnmount as ys, onMounted as Ye, onScopeDispose as Ii, onUnmounted as Fu, openBlock as Z, provide as dt, reactive as kn, readonly as JB, ref as hA, renderList as Le, renderSlot as
|
|
2
|
+
import { Fragment as ae, Teleport as VB, computed as UA, createBlock as JA, createCommentVNode as oe, createElementBlock as vA, createElementVNode as rA, createPropsRestProxy as zB, createTextVNode as Dt, createVNode as CA, customRef as $B, defineComponent as $A, effectScope as yu, getCurrentInstance as Xn, getCurrentScope as Qu, guardReactiveProps as XB, h as fe, inject as ft, isMemoSame as WB, isRef as Cs, markRaw as bi, mergeProps as qt, nextTick as Fe, normalizeClass as Ke, normalizeProps as Uu, normalizeStyle as YA, onBeforeMount as YB, onBeforeUnmount as ys, onMounted as Ye, onScopeDispose as Ii, onUnmounted as Fu, openBlock as Z, provide as dt, reactive as kn, readonly as JB, ref as hA, renderList as Le, renderSlot as he, resolveComponent as OA, resolveDynamicComponent as je, shallowRef as jt, toDisplayString as ge, toRef as Be, toRefs as ZB, toValue as ee, unref as W, useAttrs as jB, useSlots as qB, vShow as An, watch as qA, withCtx as KA, withDirectives as en, withModifiers as de } from "vue";
|
|
3
3
|
import { deepClone as Ap, getFunction as ep, isNullOrEmpty as Vo, useAppInject as Wn } from "@a2simcode/ui";
|
|
4
4
|
import * as UU from "vue";
|
|
5
5
|
var tp = Object.create, Li = Object.defineProperty, np = Object.getOwnPropertyDescriptor, rp = Object.getOwnPropertyNames, ip = Object.getPrototypeOf, op = Object.prototype.hasOwnProperty, sp = (e, A) => () => (A || (e((A = { exports: {} }).exports, A), e = null), A.exports), ap = (e, A) => {
|
|
@@ -415,7 +415,7 @@ var tp = Object.create, Li = Object.defineProperty, np = Object.getOwnPropertyDe
|
|
|
415
415
|
onMousedown: U[8] || (U[8] = de((...X) => W(L) && W(L)(...X), ["stop"])),
|
|
416
416
|
onMouseenter: U[9] || (U[9] = (...X) => W(n) && W(n)(...X)),
|
|
417
417
|
onMouseleave: U[10] || (U[10] = (...X) => W(r) && W(r)(...X))
|
|
418
|
-
}, [
|
|
418
|
+
}, [he(k.$slots, "default"), e.isContainer ? oe("", !0) : (Z(), vA("div", pp))], 544)
|
|
419
419
|
], 2);
|
|
420
420
|
};
|
|
421
421
|
}
|
|
@@ -433,7 +433,7 @@ var tp = Object.create, Li = Object.defineProperty, np = Object.getOwnPropertyDe
|
|
|
433
433
|
onClick: s[0] || (s[0] = de((...l) => W(n) && W(n)(...l), ["stop"])),
|
|
434
434
|
onContextmenu: s[1] || (s[1] = de((...l) => W(A) && W(A)(...l), ["stop"])),
|
|
435
435
|
onMousedown: s[2] || (s[2] = de((...l) => W(t) && W(t)(...l), ["stop"]))
|
|
436
|
-
}, [
|
|
436
|
+
}, [he(r.$slots, "default")], 32));
|
|
437
437
|
}
|
|
438
438
|
}), Iu = wp, mp = {
|
|
439
439
|
key: 0,
|
|
@@ -485,7 +485,7 @@ var tp = Object.create, Li = Object.defineProperty, np = Object.getOwnPropertyDe
|
|
|
485
485
|
onClick: b[0] || (b[0] = de((...N) => W(l) && W(l)(...N), ["stop"])),
|
|
486
486
|
onMouseenter: b[1] || (b[1] = (...N) => W(r) && W(r)(...N)),
|
|
487
487
|
onMouseleave: b[2] || (b[2] = (...N) => W(s) && W(s)(...N))
|
|
488
|
-
}, [
|
|
488
|
+
}, [he(C.$slots, "default")], 32)
|
|
489
489
|
], 2);
|
|
490
490
|
};
|
|
491
491
|
}
|
|
@@ -3973,7 +3973,7 @@ function As(e, A, t, n, r, s, l, c) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
var cu = /* @__PURE__ */ Symbol("vueFlow"), Ec = /* @__PURE__ */ Symbol("nodeId"), bc = /* @__PURE__ */ Symbol("nodeRef"), jC = /* @__PURE__ */ Symbol("edgeId"), qC = /* @__PURE__ */ Symbol("edgeRef"), to = /* @__PURE__ */ Symbol("slots");
|
|
3975
3975
|
function Ic(e) {
|
|
3976
|
-
const { vueFlowRef: A, snapToGrid: t, snapGrid: n, noDragClassName: r, nodeLookup: s, nodeExtent: l, nodeDragThreshold: c, viewport: g, autoPanOnNodeDrag: f, autoPanSpeed: h, nodesDraggable: v, panBy: p, findNode: m, multiSelectionActive: C, nodesSelectionActive: b, selectNodesOnDrag: L, removeSelectedElements: N, addSelectedNodes: k, updateNodePositions: U, emits: M } =
|
|
3976
|
+
const { vueFlowRef: A, snapToGrid: t, snapGrid: n, noDragClassName: r, nodeLookup: s, nodeExtent: l, nodeDragThreshold: c, viewport: g, autoPanOnNodeDrag: f, autoPanSpeed: h, nodesDraggable: v, panBy: p, findNode: m, multiSelectionActive: C, nodesSelectionActive: b, selectNodesOnDrag: L, removeSelectedElements: N, addSelectedNodes: k, updateNodePositions: U, emits: M } = pe(), { onStart: nA, onDrag: X, onStop: uA, onClick: gA, el: oA, disabled: sA, id: eA, selectable: O, dragHandle: cA } = e, H = jt(!1);
|
|
3977
3977
|
let j = [], F, x = null, G = {
|
|
3978
3978
|
x: void 0,
|
|
3979
3979
|
y: void 0
|
|
@@ -4130,7 +4130,7 @@ function ey(e, A) {
|
|
|
4130
4130
|
});
|
|
4131
4131
|
}
|
|
4132
4132
|
function ty() {
|
|
4133
|
-
const { viewport: e, snapGrid: A, snapToGrid: t, vueFlowRef: n } =
|
|
4133
|
+
const { viewport: e, snapGrid: A, snapToGrid: t, vueFlowRef: n } = pe();
|
|
4134
4134
|
return (r) => {
|
|
4135
4135
|
var s;
|
|
4136
4136
|
const l = ((s = n.value) == null ? void 0 : s.getBoundingClientRect()) ?? {
|
|
@@ -4151,7 +4151,7 @@ function Qi() {
|
|
|
4151
4151
|
return !0;
|
|
4152
4152
|
}
|
|
4153
4153
|
function Hc({ handleId: e, nodeId: A, type: t, isValidConnection: n, edgeUpdaterType: r, onEdgeUpdate: s, onEdgeUpdateEnd: l }) {
|
|
4154
|
-
const { id: c, vueFlowRef: g, connectionMode: f, connectionRadius: h, connectOnClick: v, connectionClickStartHandle: p, nodesConnectable: m, autoPanOnConnect: C, autoPanSpeed: b, findNode: L, panBy: N, startConnection: k, updateConnection: U, endConnection: M, emits: nA, viewport: X, edges: uA, nodes: gA, isValidConnection: oA, nodeLookup: sA } =
|
|
4154
|
+
const { id: c, vueFlowRef: g, connectionMode: f, connectionRadius: h, connectOnClick: v, connectionClickStartHandle: p, nodesConnectable: m, autoPanOnConnect: C, autoPanSpeed: b, findNode: L, panBy: N, startConnection: k, updateConnection: U, endConnection: M, emits: nA, viewport: X, edges: uA, nodes: gA, isValidConnection: oA, nodeLookup: sA } = pe();
|
|
4155
4155
|
let eA = null, O = !1, cA = null;
|
|
4156
4156
|
function H(F) {
|
|
4157
4157
|
var x;
|
|
@@ -4295,7 +4295,7 @@ function ny() {
|
|
|
4295
4295
|
return ft(Ec, "");
|
|
4296
4296
|
}
|
|
4297
4297
|
function _c(e) {
|
|
4298
|
-
const A = e ?? ny() ?? "", t = ft(bc, hA(null)), { findNode: n, edges: r, emits: s } =
|
|
4298
|
+
const A = e ?? ny() ?? "", t = ft(bc, hA(null)), { findNode: n, edges: r, emits: s } = pe(), l = n(A);
|
|
4299
4299
|
return l || s.error(new De(xe.NODE_NOT_FOUND, A)), {
|
|
4300
4300
|
id: A,
|
|
4301
4301
|
nodeEl: t,
|
|
@@ -4352,7 +4352,7 @@ function iy(e, A) {
|
|
|
4352
4352
|
});
|
|
4353
4353
|
}
|
|
4354
4354
|
function xc() {
|
|
4355
|
-
const { getSelectedNodes: e, nodeExtent: A, updateNodePositions: t, findNode: n, snapGrid: r, snapToGrid: s, nodesDraggable: l, emits: c } =
|
|
4355
|
+
const { getSelectedNodes: e, nodeExtent: A, updateNodePositions: t, findNode: n, snapGrid: r, snapToGrid: s, nodesDraggable: l, emits: c } = pe();
|
|
4356
4356
|
return (g, f = !1) => {
|
|
4357
4357
|
const h = s.value ? r.value[0] : 5, v = s.value ? r.value[1] : 5, p = f ? 4 : 1, m = g.x * h * p, C = g.y * v * p, b = [];
|
|
4358
4358
|
for (const L of e.value) if (L.draggable || l && typeof L.draggable > "u") {
|
|
@@ -4616,7 +4616,7 @@ function ly(e, A, t) {
|
|
|
4616
4616
|
for (const L of Object.keys(A)) {
|
|
4617
4617
|
const N = L;
|
|
4618
4618
|
if (!b.includes(N)) {
|
|
4619
|
-
const k =
|
|
4619
|
+
const k = Be(() => A[N]), U = t[N];
|
|
4620
4620
|
Cs(U) && n.run(() => {
|
|
4621
4621
|
qA(k, (M) => {
|
|
4622
4622
|
_e(M) && (U.value = M);
|
|
@@ -5218,10 +5218,10 @@ var hy = [
|
|
|
5218
5218
|
"connectableStart",
|
|
5219
5219
|
"connectableEnd",
|
|
5220
5220
|
"id"
|
|
5221
|
-
]), n =
|
|
5221
|
+
]), n = Be(() => t.type ?? "source"), r = Be(() => t.isValidConnection ?? null), { id: s, connectionStartHandle: l, connectionClickStartHandle: c, connectionEndHandle: g, vueFlowRef: f, nodesConnectable: h, noDragClassName: v, noPanClassName: p } = pe(), { id: m, node: C, nodeEl: b, connectedEdges: L } = _c(), N = hA(), k = Be(() => typeof e.connectableStart < "u" ? e.connectableStart : !0), U = Be(() => typeof e.connectableEnd < "u" ? e.connectableEnd : !0), M = Be(() => {
|
|
5222
5222
|
var eA, O, cA, H, j, F;
|
|
5223
5223
|
return ((eA = l.value) == null ? void 0 : eA.nodeId) === m && ((O = l.value) == null ? void 0 : O.id) === e.id && ((cA = l.value) == null ? void 0 : cA.type) === n.value || ((H = g.value) == null ? void 0 : H.nodeId) === m && ((j = g.value) == null ? void 0 : j.id) === e.id && ((F = g.value) == null ? void 0 : F.type) === n.value;
|
|
5224
|
-
}), nA =
|
|
5224
|
+
}), nA = Be(() => {
|
|
5225
5225
|
var eA, O, cA;
|
|
5226
5226
|
return ((eA = c.value) == null ? void 0 : eA.nodeId) === m && ((O = c.value) == null ? void 0 : O.id) === e.id && ((cA = c.value) == null ? void 0 : cA.type) === n.value;
|
|
5227
5227
|
}), { handlePointerDown: X, handleClick: uA } = Hc({
|
|
@@ -5290,7 +5290,7 @@ var hy = [
|
|
|
5290
5290
|
onMousedown: oA,
|
|
5291
5291
|
onTouchstartPassive: oA,
|
|
5292
5292
|
onClick: sA
|
|
5293
|
-
}, [
|
|
5293
|
+
}, [he(eA.$slots, "default", { id: eA.id })], 42, hy));
|
|
5294
5294
|
}
|
|
5295
5295
|
}), no = function({ sourcePosition: e = TA.Bottom, targetPosition: A = TA.Top, label: t, connectable: n = !0, isValidTargetPos: r, isValidSourcePos: s, data: l }) {
|
|
5296
5296
|
const c = l.label ?? t;
|
|
@@ -5418,7 +5418,7 @@ var vy = io, wy = ["transform"], my = [
|
|
|
5418
5418
|
y: A.value.height / 2,
|
|
5419
5419
|
dy: "0.3em",
|
|
5420
5420
|
style: s.labelStyle
|
|
5421
|
-
}), [
|
|
5421
|
+
}), [he(s.$slots, "default", {}, () => [typeof s.label != "string" ? (Z(), JA(je(s.label), { key: 0 })) : (Z(), vA(ae, { key: 1 }, [Dt(ge(s.label), 1)], 64))])], 16, Cy)], 8, wy));
|
|
5422
5422
|
}
|
|
5423
5423
|
}), Qy = [
|
|
5424
5424
|
"id",
|
|
@@ -6102,7 +6102,7 @@ var Ny = class Nn {
|
|
|
6102
6102
|
return `vue-flow-${this.currentId++}`;
|
|
6103
6103
|
}
|
|
6104
6104
|
};
|
|
6105
|
-
function
|
|
6105
|
+
function pe(e) {
|
|
6106
6106
|
const A = Ny.getInstance(), t = Qu(), n = typeof e == "object", r = n ? e : { id: e }, s = r.id, l = s ?? t?.vueFlowId;
|
|
6107
6107
|
let c;
|
|
6108
6108
|
if (t) {
|
|
@@ -6136,7 +6136,7 @@ function Be(e) {
|
|
|
6136
6136
|
return c;
|
|
6137
6137
|
}
|
|
6138
6138
|
function My(e) {
|
|
6139
|
-
const { emits: A, dimensions: t } =
|
|
6139
|
+
const { emits: A, dimensions: t } = pe();
|
|
6140
6140
|
let n;
|
|
6141
6141
|
Ye(() => {
|
|
6142
6142
|
const r = () => {
|
|
@@ -6171,7 +6171,7 @@ var Oy = /* @__PURE__ */ $A({
|
|
|
6171
6171
|
name: "NodesSelection",
|
|
6172
6172
|
compatConfig: { MODE: 3 },
|
|
6173
6173
|
setup(e) {
|
|
6174
|
-
const { emits: A, viewport: t, getSelectedNodes: n, noPanClassName: r, disableKeyboardA11y: s, userSelectionActive: l } =
|
|
6174
|
+
const { emits: A, viewport: t, getSelectedNodes: n, noPanClassName: r, disableKeyboardA11y: s, userSelectionActive: l } = pe(), c = xc(), g = hA(null), f = Ic({
|
|
6175
6175
|
el: g,
|
|
6176
6176
|
onStart(C) {
|
|
6177
6177
|
A.selectionDragStart(C), A.nodeDragStart(C);
|
|
@@ -6234,7 +6234,7 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6234
6234
|
selectionKeyPressed: { type: Boolean }
|
|
6235
6235
|
},
|
|
6236
6236
|
setup(e) {
|
|
6237
|
-
const { vueFlowRef: A, nodes: t, viewport: n, emits: r, userSelectionActive: s, removeSelectedElements: l, userSelectionRect: c, elementsSelectable: g, nodesSelectionActive: f, getSelectedEdges: h, getSelectedNodes: v, removeNodes: p, removeEdges: m, selectionMode: C, deleteKeyCode: b, multiSelectionKeyCode: L, multiSelectionActive: N, edgeLookup: k, nodeLookup: U, connectionLookup: M, defaultEdgeOptions: nA, connectionStartHandle: X, panOnDrag: uA } =
|
|
6237
|
+
const { vueFlowRef: A, nodes: t, viewport: n, emits: r, userSelectionActive: s, removeSelectedElements: l, userSelectionRect: c, elementsSelectable: g, nodesSelectionActive: f, getSelectedEdges: h, getSelectedNodes: v, removeNodes: p, removeEdges: m, selectionMode: C, deleteKeyCode: b, multiSelectionKeyCode: L, multiSelectionActive: N, edgeLookup: k, nodeLookup: U, connectionLookup: M, defaultEdgeOptions: nA, connectionStartHandle: X, panOnDrag: uA } = pe(), gA = jt(null), oA = jt(/* @__PURE__ */ new Set()), sA = jt(/* @__PURE__ */ new Set()), eA = jt(null), O = Be(() => g.value && (e.isSelecting || s.value)), cA = Be(() => X.value !== null);
|
|
6238
6238
|
let H = !1, j = !1;
|
|
6239
6239
|
const F = mr(b, { actInsideInputWithModifier: !1 }), x = mr(L);
|
|
6240
6240
|
qA(F, (tA) => {
|
|
@@ -6328,7 +6328,7 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6328
6328
|
onPointerup: fA[6] || (fA[6] = (Y) => O.value ? SA(Y) : void 0),
|
|
6329
6329
|
onPointerleave: fA[7] || (fA[7] = (Y) => W(r).paneMouseLeave(Y))
|
|
6330
6330
|
}, [
|
|
6331
|
-
|
|
6331
|
+
he(tA.$slots, "default"),
|
|
6332
6332
|
W(s) && W(c) ? (Z(), JA(Oy, {
|
|
6333
6333
|
key: 0,
|
|
6334
6334
|
"user-selection-rect": W(c)
|
|
@@ -6340,20 +6340,20 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6340
6340
|
name: "Transform",
|
|
6341
6341
|
compatConfig: { MODE: 3 },
|
|
6342
6342
|
setup(e) {
|
|
6343
|
-
const { viewport: A, fitViewOnInit: t, fitViewOnInitDone: n } =
|
|
6343
|
+
const { viewport: A, fitViewOnInit: t, fitViewOnInitDone: n } = pe(), r = UA(() => t.value ? !n.value : !1), s = UA(() => `translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);
|
|
6344
6344
|
return (l, c) => (Z(), vA("div", {
|
|
6345
6345
|
class: "vue-flow__transformationpane vue-flow__container",
|
|
6346
6346
|
style: YA({
|
|
6347
6347
|
transform: s.value,
|
|
6348
6348
|
opacity: r.value ? 0 : void 0
|
|
6349
6349
|
})
|
|
6350
|
-
}, [
|
|
6350
|
+
}, [he(l.$slots, "default")], 4));
|
|
6351
6351
|
}
|
|
6352
6352
|
}), Vy = /* @__PURE__ */ $A({
|
|
6353
6353
|
name: "Viewport",
|
|
6354
6354
|
compatConfig: { MODE: 3 },
|
|
6355
6355
|
setup(e) {
|
|
6356
|
-
const { minZoom: A, maxZoom: t, defaultViewport: n, translateExtent: r, zoomActivationKeyCode: s, selectionKeyCode: l, panActivationKeyCode: c, panOnScroll: g, panOnScrollMode: f, panOnScrollSpeed: h, panOnDrag: v, zoomOnDoubleClick: p, zoomOnPinch: m, zoomOnScroll: C, preventScrolling: b, noWheelClassName: L, noPanClassName: N, emits: k, connectionStartHandle: U, userSelectionActive: M, paneDragging: nA, d3Zoom: X, d3Selection: uA, d3ZoomHandler: gA, viewport: oA, viewportRef: sA, paneClickDistance: eA } =
|
|
6356
|
+
const { minZoom: A, maxZoom: t, defaultViewport: n, translateExtent: r, zoomActivationKeyCode: s, selectionKeyCode: l, panActivationKeyCode: c, panOnScroll: g, panOnScrollMode: f, panOnScrollSpeed: h, panOnDrag: v, zoomOnDoubleClick: p, zoomOnPinch: m, zoomOnScroll: C, preventScrolling: b, noWheelClassName: L, noPanClassName: N, emits: k, connectionStartHandle: U, userSelectionActive: M, paneDragging: nA, d3Zoom: X, d3Selection: uA, d3ZoomHandler: gA, viewport: oA, viewportRef: sA, paneClickDistance: eA } = pe();
|
|
6357
6357
|
My(sA);
|
|
6358
6358
|
const O = jt(!1), cA = jt(!1);
|
|
6359
6359
|
let H = null, j = !1, F = 0, x = {
|
|
@@ -6361,7 +6361,7 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6361
6361
|
y: 0,
|
|
6362
6362
|
zoom: 0
|
|
6363
6363
|
};
|
|
6364
|
-
const G = mr(c), R = mr(l), z = mr(s), J =
|
|
6364
|
+
const G = mr(c), R = mr(l), z = mr(s), J = Be(() => (!R.value || R.value && l.value === !0) && (G.value || v.value)), iA = Be(() => G.value || g.value), wA = Be(() => l.value === !0 && J.value !== !0), SA = Be(() => R.value && l.value !== !0 || M.value || wA.value), tA = Be(() => U.value !== null);
|
|
6365
6365
|
Ye(() => {
|
|
6366
6366
|
if (!sA.value) {
|
|
6367
6367
|
Sr("Viewport element is missing");
|
|
@@ -6486,7 +6486,7 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6486
6486
|
})
|
|
6487
6487
|
}, {
|
|
6488
6488
|
default: KA(() => [CA(Gy, null, {
|
|
6489
|
-
default: KA(() => [
|
|
6489
|
+
default: KA(() => [he(bA.$slots, "default")]),
|
|
6490
6490
|
_: 3
|
|
6491
6491
|
})]),
|
|
6492
6492
|
_: 3
|
|
@@ -6500,12 +6500,12 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6500
6500
|
name: "A11yDescriptions",
|
|
6501
6501
|
compatConfig: { MODE: 3 },
|
|
6502
6502
|
setup(e) {
|
|
6503
|
-
const { id: A, disableKeyboardA11y: t, ariaLiveMessage: n } =
|
|
6503
|
+
const { id: A, disableKeyboardA11y: t, ariaLiveMessage: n } = pe();
|
|
6504
6504
|
return (r, s) => (Z(), vA(ae, null, [
|
|
6505
6505
|
rA("div", {
|
|
6506
6506
|
id: `${W(lc)}-${W(A)}`,
|
|
6507
6507
|
style: { display: "none" }
|
|
6508
|
-
}, " Press enter or space to select a node. " +
|
|
6508
|
+
}, " Press enter or space to select a node. " + ge(W(t) ? "" : "You can then use the arrow keys to move the node around.") + " You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ", 9, zy),
|
|
6509
6509
|
rA("div", {
|
|
6510
6510
|
id: `${W(uc)}-${W(A)}`,
|
|
6511
6511
|
style: { display: "none" }
|
|
@@ -6526,12 +6526,12 @@ var Py = /* @__PURE__ */ $A({
|
|
|
6526
6526
|
clip: "rect(0px, 0px, 0px, 0px)",
|
|
6527
6527
|
"clip-path": "inset(100%)"
|
|
6528
6528
|
}
|
|
6529
|
-
},
|
|
6529
|
+
}, ge(W(n)), 9, Xy))
|
|
6530
6530
|
], 64));
|
|
6531
6531
|
}
|
|
6532
6532
|
});
|
|
6533
6533
|
function Yy() {
|
|
6534
|
-
const e =
|
|
6534
|
+
const e = pe();
|
|
6535
6535
|
qA(() => e.viewportHelper.value.viewportInitialized, (A) => {
|
|
6536
6536
|
A && setTimeout(() => {
|
|
6537
6537
|
e.emits.init(e), e.emits.paneReady(e);
|
|
@@ -6567,7 +6567,7 @@ var Bu = Ns, jy = $A({
|
|
|
6567
6567
|
compatConfig: { MODE: 3 },
|
|
6568
6568
|
props: ["id"],
|
|
6569
6569
|
setup(e) {
|
|
6570
|
-
const { id: A, addSelectedEdges: t, connectionMode: n, edgeUpdaterRadius: r, emits: s, nodesSelectionActive: l, noPanClassName: c, getEdgeTypes: g, removeSelectedEdges: f, findEdge: h, findNode: v, isValidConnection: p, multiSelectionActive: m, disableKeyboardA11y: C, elementsSelectable: b, edgesUpdatable: L, edgesFocusable: N, hooks: k } =
|
|
6570
|
+
const { id: A, addSelectedEdges: t, connectionMode: n, edgeUpdaterRadius: r, emits: s, nodesSelectionActive: l, noPanClassName: c, getEdgeTypes: g, removeSelectedEdges: f, findEdge: h, findNode: v, isValidConnection: p, multiSelectionActive: m, disableKeyboardA11y: C, elementsSelectable: b, edgesUpdatable: L, edgesFocusable: N, hooks: k } = pe(), U = UA(() => h(e.id)), { emit: M, on: nA } = ey(U.value, s), X = ft(to), uA = Xn(), gA = hA(!1), oA = hA(!1), sA = hA(""), eA = hA(null), O = hA("source"), cA = hA(null), H = Be(() => typeof U.value.selectable > "u" ? b.value : U.value.selectable), j = Be(() => typeof U.value.updatable > "u" ? L.value : U.value.updatable), F = Be(() => typeof U.value.focusable > "u" ? N.value : U.value.focusable);
|
|
6571
6571
|
dt(jC, e.id), dt(qC, cA);
|
|
6572
6572
|
const x = UA(() => U.value.class instanceof Function ? U.value.class(U.value) : U.value.class), G = UA(() => U.value.style instanceof Function ? U.value.style(U.value) : U.value.style), R = UA(() => {
|
|
6573
6573
|
const I = U.value.type || "default", T = X?.[`edge-${I}`];
|
|
@@ -6768,7 +6768,7 @@ var Bu = Ns, jy = $A({
|
|
|
6768
6768
|
compatConfig: { MODE: 3 },
|
|
6769
6769
|
setup() {
|
|
6770
6770
|
var e;
|
|
6771
|
-
const { id: A, connectionMode: t, connectionStartHandle: n, connectionEndHandle: r, connectionPosition: s, connectionLineType: l, connectionLineStyle: c, connectionLineOptions: g, connectionStatus: f, viewport: h, findNode: v } =
|
|
6771
|
+
const { id: A, connectionMode: t, connectionStartHandle: n, connectionEndHandle: r, connectionPosition: s, connectionLineType: l, connectionLineStyle: c, connectionLineOptions: g, connectionStatus: f, viewport: h, findNode: v } = pe(), p = (e = ft(to)) == null ? void 0 : e["connection-line"], m = UA(() => {
|
|
6772
6772
|
var k;
|
|
6773
6773
|
return v((k = n.value) == null ? void 0 : k.nodeId);
|
|
6774
6774
|
}), C = UA(() => {
|
|
@@ -6901,7 +6901,7 @@ var Bu = Ns, jy = $A({
|
|
|
6901
6901
|
name: "MarkerDefinitions",
|
|
6902
6902
|
compatConfig: { MODE: 3 },
|
|
6903
6903
|
setup(e) {
|
|
6904
|
-
const { id: A, edges: t, connectionLineOptions: n, defaultMarkerColor: r } =
|
|
6904
|
+
const { id: A, edges: t, connectionLineOptions: n, defaultMarkerColor: r } = pe(), s = UA(() => {
|
|
6905
6905
|
const l = /* @__PURE__ */ new Set(), c = [], g = (f) => {
|
|
6906
6906
|
if (f) {
|
|
6907
6907
|
const h = Hr(f, A);
|
|
@@ -6945,7 +6945,7 @@ var Bu = Ns, jy = $A({
|
|
|
6945
6945
|
name: "Edges",
|
|
6946
6946
|
compatConfig: { MODE: 3 },
|
|
6947
6947
|
setup(e) {
|
|
6948
|
-
const { findNode: A, getEdges: t, elevateEdgesOnSelect: n } =
|
|
6948
|
+
const { findNode: A, getEdges: t, elevateEdgesOnSelect: n } = pe();
|
|
6949
6949
|
return (r, s) => (Z(), vA(ae, null, [
|
|
6950
6950
|
CA(nQ),
|
|
6951
6951
|
(Z(!0), vA(ae, null, Le(W(t), (l) => (Z(), vA("svg", {
|
|
@@ -6961,9 +6961,9 @@ var Bu = Ns, jy = $A({
|
|
|
6961
6961
|
compatConfig: { MODE: 3 },
|
|
6962
6962
|
props: ["id", "resizeObserver"],
|
|
6963
6963
|
setup(e) {
|
|
6964
|
-
const { id: A, noPanClassName: t, selectNodesOnDrag: n, nodesSelectionActive: r, multiSelectionActive: s, emits: l, removeSelectedNodes: c, addSelectedNodes: g, updateNodeDimensions: f, onUpdateNodeInternals: h, getNodeTypes: v, nodeExtent: p, elevateNodesOnSelect: m, disableKeyboardA11y: C, ariaLiveMessage: b, snapToGrid: L, snapGrid: N, nodeDragThreshold: k, nodesDraggable: U, elementsSelectable: M, nodesConnectable: nA, nodesFocusable: X, hooks: uA } =
|
|
6964
|
+
const { id: A, noPanClassName: t, selectNodesOnDrag: n, nodesSelectionActive: r, multiSelectionActive: s, emits: l, removeSelectedNodes: c, addSelectedNodes: g, updateNodeDimensions: f, onUpdateNodeInternals: h, getNodeTypes: v, nodeExtent: p, elevateNodesOnSelect: m, disableKeyboardA11y: C, ariaLiveMessage: b, snapToGrid: L, snapGrid: N, nodeDragThreshold: k, nodesDraggable: U, elementsSelectable: M, nodesConnectable: nA, nodesFocusable: X, hooks: uA } = pe(), gA = hA(null);
|
|
6965
6965
|
dt(bc, gA), dt(Ec, e.id);
|
|
6966
|
-
const oA = ft(to), sA = Xn(), eA = xc(), { node: O, parentNode: cA } = _c(e.id), { emit: H, on: j } = iy(O, l), F =
|
|
6966
|
+
const oA = ft(to), sA = Xn(), eA = xc(), { node: O, parentNode: cA } = _c(e.id), { emit: H, on: j } = iy(O, l), F = Be(() => typeof O.draggable > "u" ? U.value : O.draggable), x = Be(() => typeof O.selectable > "u" ? M.value : O.selectable), G = Be(() => typeof O.connectable > "u" ? nA.value : O.connectable), R = Be(() => typeof O.focusable > "u" ? X.value : O.focusable), z = UA(() => x.value || F.value || uA.value.nodeClick.hasListeners() || uA.value.nodeDoubleClick.hasListeners() || uA.value.nodeMouseEnter.hasListeners() || uA.value.nodeMouseMove.hasListeners() || uA.value.nodeMouseLeave.hasListeners()), J = Be(() => !!O.dimensions.width && !!O.dimensions.height), iA = UA(() => {
|
|
6967
6967
|
const T = O.type || "default", S = oA?.[`node-${T}`];
|
|
6968
6968
|
if (S) return S;
|
|
6969
6969
|
let E = O.template || v.value[T];
|
|
@@ -6993,7 +6993,7 @@ var Bu = Ns, jy = $A({
|
|
|
6993
6993
|
}), SA = UA(() => O.class instanceof Function ? O.class(O) : O.class), tA = UA(() => {
|
|
6994
6994
|
const T = (O.style instanceof Function ? O.style(O) : O.style) || {}, S = O.width instanceof Function ? O.width(O) : O.width, E = O.height instanceof Function ? O.height(O) : O.height;
|
|
6995
6995
|
return !T.width && S && (T.width = typeof S == "string" ? S : `${S}px`), !T.height && E && (T.height = typeof E == "string" ? E : `${E}px`), T;
|
|
6996
|
-
}), fA =
|
|
6996
|
+
}), fA = Be(() => Number(O.zIndex ?? tA.value.zIndex ?? 0));
|
|
6997
6997
|
return h((T) => {
|
|
6998
6998
|
(T.includes(e.id) || !T.length) && dA();
|
|
6999
6999
|
}), Ye(() => {
|
|
@@ -7189,18 +7189,18 @@ var Bu = Ns, jy = $A({
|
|
|
7189
7189
|
name: "EdgeLabelRenderer",
|
|
7190
7190
|
compatConfig: { MODE: 3 },
|
|
7191
7191
|
setup(e) {
|
|
7192
|
-
const { viewportRef: A } =
|
|
7192
|
+
const { viewportRef: A } = pe(), t = Be(() => {
|
|
7193
7193
|
var n;
|
|
7194
7194
|
return (n = A.value) == null ? void 0 : n.getElementsByClassName("vue-flow__edge-labels")[0];
|
|
7195
7195
|
});
|
|
7196
7196
|
return (n, r) => (Z(), vA("svg", null, [(Z(), vA("foreignObject", oQ, [(Z(), JA(VB, {
|
|
7197
7197
|
to: t.value,
|
|
7198
7198
|
disabled: !t.value
|
|
7199
|
-
}, [
|
|
7199
|
+
}, [he(n.$slots, "default")], 8, ["to", "disabled"]))]))]));
|
|
7200
7200
|
}
|
|
7201
7201
|
});
|
|
7202
7202
|
function aQ(e = { includeHiddenNodes: !1 }) {
|
|
7203
|
-
const { nodes: A } =
|
|
7203
|
+
const { nodes: A } = pe();
|
|
7204
7204
|
return UA(() => {
|
|
7205
7205
|
if (A.value.length === 0) return !1;
|
|
7206
7206
|
for (const t of A.value) if ((e.includeHiddenNodes || !t.hidden) && (t?.handleBounds === void 0 || t.dimensions.width === 0 || t.dimensions.height === 0))
|
|
@@ -7212,7 +7212,7 @@ var lQ = { class: "vue-flow__nodes vue-flow__container" }, uQ = /* @__PURE__ */
|
|
|
7212
7212
|
name: "Nodes",
|
|
7213
7213
|
compatConfig: { MODE: 3 },
|
|
7214
7214
|
setup(e) {
|
|
7215
|
-
const { getNodes: A, updateNodeDimensions: t, emits: n } =
|
|
7215
|
+
const { getNodes: A, updateNodeDimensions: t, emits: n } = pe(), r = aQ(), s = hA();
|
|
7216
7216
|
return qA(r, (l) => {
|
|
7217
7217
|
l && Fe(() => {
|
|
7218
7218
|
n.nodesInitialized(A.value);
|
|
@@ -7242,7 +7242,7 @@ var lQ = { class: "vue-flow__nodes vue-flow__container" }, uQ = /* @__PURE__ */
|
|
|
7242
7242
|
}
|
|
7243
7243
|
});
|
|
7244
7244
|
function cQ() {
|
|
7245
|
-
const { emits: e } =
|
|
7245
|
+
const { emits: e } = pe();
|
|
7246
7246
|
Ye(() => {
|
|
7247
7247
|
if (Fc()) {
|
|
7248
7248
|
const A = document.querySelector(".vue-flow__pane");
|
|
@@ -7451,7 +7451,7 @@ var dQ = /* @__PURE__ */ rA("div", { class: "vue-flow__edge-labels" }, null, -1)
|
|
|
7451
7451
|
"update:edges"
|
|
7452
7452
|
],
|
|
7453
7453
|
setup(e, { expose: A, emit: t }) {
|
|
7454
|
-
const n = e, r = qB(), s = zo(n, "modelValue", t), l = zo(n, "nodes", t), c = zo(n, "edges", t), g =
|
|
7454
|
+
const n = e, r = qB(), s = zo(n, "modelValue", t), l = zo(n, "nodes", t), c = zo(n, "edges", t), g = pe(n), f = ly({
|
|
7455
7455
|
modelValue: s,
|
|
7456
7456
|
nodes: l,
|
|
7457
7457
|
edges: c
|
|
@@ -7465,11 +7465,11 @@ var dQ = /* @__PURE__ */ rA("div", { class: "vue-flow__edge-labels" }, null, -1)
|
|
|
7465
7465
|
CA(rQ),
|
|
7466
7466
|
dQ,
|
|
7467
7467
|
CA(uQ),
|
|
7468
|
-
|
|
7468
|
+
he(h.$slots, "zoom-pane")
|
|
7469
7469
|
]),
|
|
7470
7470
|
_: 3
|
|
7471
7471
|
}),
|
|
7472
|
-
|
|
7472
|
+
he(h.$slots, "default"),
|
|
7473
7473
|
CA(Wy)
|
|
7474
7474
|
], 512));
|
|
7475
7475
|
}
|
|
@@ -7478,11 +7478,11 @@ var dQ = /* @__PURE__ */ rA("div", { class: "vue-flow__edge-labels" }, null, -1)
|
|
|
7478
7478
|
compatConfig: { MODE: 3 },
|
|
7479
7479
|
props: { position: {} },
|
|
7480
7480
|
setup(e) {
|
|
7481
|
-
const A = e, { userSelectionActive: t } =
|
|
7481
|
+
const A = e, { userSelectionActive: t } = pe(), n = UA(() => `${A.position}`.split("-"));
|
|
7482
7482
|
return (r, s) => (Z(), vA("div", {
|
|
7483
7483
|
class: Ke(["vue-flow__panel", n.value]),
|
|
7484
7484
|
style: YA({ pointerEvents: W(t) ? "none" : "all" })
|
|
7485
|
-
}, [
|
|
7485
|
+
}, [he(r.$slots, "default")], 6));
|
|
7486
7486
|
}
|
|
7487
7487
|
}), Nt = /* @__PURE__ */ ((e) => (e.Lines = "lines", e.Dots = "dots", e))(Nt || {}), hQ = function({ dimensions: e, size: A, color: t }) {
|
|
7488
7488
|
return fe("path", {
|
|
@@ -7536,14 +7536,14 @@ var pQ = {
|
|
|
7536
7536
|
offset: { default: 0 }
|
|
7537
7537
|
},
|
|
7538
7538
|
setup(e) {
|
|
7539
|
-
const { id: A, viewport: t } =
|
|
7539
|
+
const { id: A, viewport: t } = pe(), n = UA(() => {
|
|
7540
7540
|
const l = t.value.zoom, [c, g] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], f = [c * l || 1, g * l || 1], h = e.size * l, [v, p] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset];
|
|
7541
7541
|
return {
|
|
7542
7542
|
scaledGap: f,
|
|
7543
7543
|
offset: [v * l || 1 + f[0] / 2, p * l || 1 + f[1] / 2],
|
|
7544
7544
|
size: h
|
|
7545
7545
|
};
|
|
7546
|
-
}), r =
|
|
7546
|
+
}), r = Be(() => `pattern-${A}${e.id ? `-${e.id}` : ""}`), s = Be(() => e.color || e.patternColor || pQ[e.variant || Nt.Dots]);
|
|
7547
7547
|
return (l, c) => (Z(), vA("svg", {
|
|
7548
7548
|
class: "vue-flow__background vue-flow__container",
|
|
7549
7549
|
style: YA({
|
|
@@ -7551,7 +7551,7 @@ var pQ = {
|
|
|
7551
7551
|
width: `${l.width > 100 ? 100 : l.width}%`
|
|
7552
7552
|
})
|
|
7553
7553
|
}, [
|
|
7554
|
-
|
|
7554
|
+
he(l.$slots, "pattern-container", { id: r.value }, () => [rA("pattern", {
|
|
7555
7555
|
id: r.value,
|
|
7556
7556
|
x: W(t).x % n.value.scaledGap[0],
|
|
7557
7557
|
y: W(t).y % n.value.scaledGap[1],
|
|
@@ -7559,7 +7559,7 @@ var pQ = {
|
|
|
7559
7559
|
height: n.value.scaledGap[1],
|
|
7560
7560
|
patternTransform: `translate(-${n.value.offset[0]},-${n.value.offset[1]})`,
|
|
7561
7561
|
patternUnits: "userSpaceOnUse"
|
|
7562
|
-
}, [
|
|
7562
|
+
}, [he(l.$slots, "pattern", {}, () => [l.variant === W(Nt).Lines ? (Z(), JA(W(hQ), {
|
|
7563
7563
|
key: 0,
|
|
7564
7564
|
size: l.lineWidth,
|
|
7565
7565
|
color: s.value,
|
|
@@ -7584,7 +7584,7 @@ var pQ = {
|
|
|
7584
7584
|
height: "100%",
|
|
7585
7585
|
fill: `url(#${r.value})`
|
|
7586
7586
|
}, null, 8, CQ),
|
|
7587
|
-
|
|
7587
|
+
he(l.$slots, "default", { id: r.value })
|
|
7588
7588
|
], 4));
|
|
7589
7589
|
}
|
|
7590
7590
|
}), QQ = {
|
|
@@ -7599,7 +7599,7 @@ var pQ = {
|
|
|
7599
7599
|
class: "vue-flow__controls-button"
|
|
7600
7600
|
};
|
|
7601
7601
|
function EQ(e, A, t, n, r, s) {
|
|
7602
|
-
return Z(), vA("button", FQ, [
|
|
7602
|
+
return Z(), vA("button", FQ, [he(e.$slots, "default")]);
|
|
7603
7603
|
}
|
|
7604
7604
|
var Ei = /* @__PURE__ */ UQ(QQ, [["render", EQ]]), bQ = {
|
|
7605
7605
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7662,7 +7662,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7662
7662
|
"interactionChange"
|
|
7663
7663
|
],
|
|
7664
7664
|
setup(e, { emit: A }) {
|
|
7665
|
-
const { nodesDraggable: t, nodesConnectable: n, elementsSelectable: r, setInteractive: s, zoomIn: l, zoomOut: c, fitView: g, viewport: f, minZoom: h, maxZoom: v } =
|
|
7665
|
+
const { nodesDraggable: t, nodesConnectable: n, elementsSelectable: r, setInteractive: s, zoomIn: l, zoomOut: c, fitView: g, viewport: f, minZoom: h, maxZoom: v } = pe(), p = Be(() => t.value || n.value || r.value), m = Be(() => f.value.zoom <= h.value), C = Be(() => f.value.zoom >= v.value);
|
|
7666
7666
|
function b() {
|
|
7667
7667
|
l(), A("zoomIn");
|
|
7668
7668
|
}
|
|
@@ -7680,38 +7680,38 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7680
7680
|
position: U.position
|
|
7681
7681
|
}, {
|
|
7682
7682
|
default: KA(() => [
|
|
7683
|
-
|
|
7684
|
-
U.showZoom ? (Z(), vA(ae, { key: 0 }, [
|
|
7683
|
+
he(U.$slots, "top"),
|
|
7684
|
+
U.showZoom ? (Z(), vA(ae, { key: 0 }, [he(U.$slots, "control-zoom-in", {}, () => [CA(Ei, {
|
|
7685
7685
|
class: "vue-flow__controls-zoomin",
|
|
7686
7686
|
disabled: C.value,
|
|
7687
7687
|
onClick: b
|
|
7688
7688
|
}, {
|
|
7689
|
-
default: KA(() => [
|
|
7689
|
+
default: KA(() => [he(U.$slots, "icon-zoom-in", {}, () => [(Z(), JA(je(W(_Q))))])]),
|
|
7690
7690
|
_: 3
|
|
7691
|
-
}, 8, ["disabled"])]),
|
|
7691
|
+
}, 8, ["disabled"])]), he(U.$slots, "control-zoom-out", {}, () => [CA(Ei, {
|
|
7692
7692
|
class: "vue-flow__controls-zoomout",
|
|
7693
7693
|
disabled: m.value,
|
|
7694
7694
|
onClick: L
|
|
7695
7695
|
}, {
|
|
7696
|
-
default: KA(() => [
|
|
7696
|
+
default: KA(() => [he(U.$slots, "icon-zoom-out", {}, () => [(Z(), JA(je(W(LQ))))])]),
|
|
7697
7697
|
_: 3
|
|
7698
7698
|
}, 8, ["disabled"])])], 64)) : oe("", !0),
|
|
7699
|
-
U.showFitView ?
|
|
7699
|
+
U.showFitView ? he(U.$slots, "control-fit-view", { key: 1 }, () => [CA(Ei, {
|
|
7700
7700
|
class: "vue-flow__controls-fitview",
|
|
7701
7701
|
onClick: N
|
|
7702
7702
|
}, {
|
|
7703
|
-
default: KA(() => [
|
|
7703
|
+
default: KA(() => [he(U.$slots, "icon-fit-view", {}, () => [(Z(), JA(je(W(OQ))))])]),
|
|
7704
7704
|
_: 3
|
|
7705
7705
|
})]) : oe("", !0),
|
|
7706
|
-
U.showInteractive ?
|
|
7706
|
+
U.showInteractive ? he(U.$slots, "control-interactive", { key: 2 }, () => [U.showInteractive ? (Z(), JA(Ei, {
|
|
7707
7707
|
key: 0,
|
|
7708
7708
|
class: "vue-flow__controls-interactive",
|
|
7709
7709
|
onClick: k
|
|
7710
7710
|
}, {
|
|
7711
|
-
default: KA(() => [p.value ?
|
|
7711
|
+
default: KA(() => [p.value ? he(U.$slots, "icon-unlock", { key: 0 }, () => [(Z(), JA(je(W($Q))))]) : oe("", !0), p.value ? oe("", !0) : he(U.$slots, "icon-lock", { key: 1 }, () => [(Z(), JA(je(W(PQ))))])]),
|
|
7712
7712
|
_: 3
|
|
7713
7713
|
})) : oe("", !0)]) : oe("", !0),
|
|
7714
|
-
|
|
7714
|
+
he(U.$slots, "default")
|
|
7715
7715
|
]),
|
|
7716
7716
|
_: 3
|
|
7717
7717
|
}, 8, ["position"]));
|
|
@@ -7743,7 +7743,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7743
7743
|
}, [rA("div", {
|
|
7744
7744
|
class: "d-flow-node-menus-item-icon",
|
|
7745
7745
|
style: YA({ backgroundColor: h.iconColor || "var(--j-color-primary)" })
|
|
7746
|
-
}, [CA(f, { icon: h.icon || "mdi:source-branch" }, null, 8, ["icon"])], 4), rA("div", YQ,
|
|
7746
|
+
}, [CA(f, { icon: h.icon || "mdi:source-branch" }, null, 8, ["icon"])], 4), rA("div", YQ, ge(h.name), 1)], 8, WQ))), 128))]);
|
|
7747
7747
|
};
|
|
7748
7748
|
}
|
|
7749
7749
|
}), vs = JQ, ZQ = { class: "d-flow-step-name" }, jQ = {
|
|
@@ -7757,7 +7757,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7757
7757
|
data: {}
|
|
7758
7758
|
},
|
|
7759
7759
|
setup(e) {
|
|
7760
|
-
const A = e, { onNodeClick: t, onEdgeClick: n, onMoveStart: r, onConnectStart: s, onNodeDragStart: l, removeNodes: c, getEdges: g, getNodes: f, onNodesChange: h } =
|
|
7760
|
+
const A = e, { onNodeClick: t, onEdgeClick: n, onMoveStart: r, onConnectStart: s, onNodeDragStart: l, removeNodes: c, getEdges: g, getNodes: f, onNodesChange: h } = pe(), v = ft("d_flow_design_provide", {}), p = UA(() => v.getFlowComponentMap?.value?.[A.data.type] || {}), m = () => {
|
|
7761
7761
|
c(A.id), v.onRemoveNode?.(A.id);
|
|
7762
7762
|
}, C = hA({});
|
|
7763
7763
|
h((cA) => {
|
|
@@ -7817,7 +7817,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7817
7817
|
class: "d-flow-step-icon",
|
|
7818
7818
|
style: YA({ backgroundColor: p.value.iconColor || "var(--j-color-primary)" })
|
|
7819
7819
|
}, [CA(j, { icon: p.value.icon || "mdi:source-branch" }, null, 8, ["icon"])], 4),
|
|
7820
|
-
rA("div", ZQ,
|
|
7820
|
+
rA("div", ZQ, ge(p.value.name), 1),
|
|
7821
7821
|
e.data.type !== "start" ? (Z(), JA(x, {
|
|
7822
7822
|
key: 0,
|
|
7823
7823
|
placement: "top",
|
|
@@ -7943,7 +7943,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7943
7943
|
}, [H[8] || (H[8] = rA("div", { style: {
|
|
7944
7944
|
"margin-bottom": "4px",
|
|
7945
7945
|
color: "var(--j-color-text-2)"
|
|
7946
|
-
} }, "关于", -1)), rA("div", qQ,
|
|
7946
|
+
} }, "关于", -1)), rA("div", qQ, ge(p.value.des), 1)], 4)) : oe("", !0)]),
|
|
7947
7947
|
_: 1
|
|
7948
7948
|
})]),
|
|
7949
7949
|
_: 1
|
|
@@ -7966,7 +7966,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
7966
7966
|
style: {}
|
|
7967
7967
|
},
|
|
7968
7968
|
setup(e) {
|
|
7969
|
-
const A = e, { onEdgeMouseEnter: t, onEdgeMouseLeave: n, onNodeClick: r, onEdgeClick: s, onMoveStart: l, onConnectStart: c, onNodeDragStart: g } =
|
|
7969
|
+
const A = e, { onEdgeMouseEnter: t, onEdgeMouseLeave: n, onNodeClick: r, onEdgeClick: s, onMoveStart: l, onConnectStart: c, onNodeDragStart: g } = pe(), f = UA(() => Ts(A)), h = hA(!1), v = hA(!1);
|
|
7970
7970
|
t(({ edge: L }) => {
|
|
7971
7971
|
L.id === A.id && (h.value = !0);
|
|
7972
7972
|
}), n(() => {
|
|
@@ -8096,7 +8096,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
8096
8096
|
"connect"
|
|
8097
8097
|
],
|
|
8098
8098
|
setup(e, { expose: A, emit: t }) {
|
|
8099
|
-
const n = e, r = t, { addNodes: s, addEdges: l, removeEdges: c, addSelectedNodes: g, removeSelectedNodes: f, onConnect: h, onNodeClick: v, onPaneClick: p, onEdgeClick: m, getNodes: C, getEdges: b } =
|
|
8099
|
+
const n = e, r = t, { addNodes: s, addEdges: l, removeEdges: c, addSelectedNodes: g, removeSelectedNodes: f, onConnect: h, onNodeClick: v, onPaneClick: p, onEdgeClick: m, getNodes: C, getEdges: b } = pe(), L = UA(() => {
|
|
8100
8100
|
const R = {};
|
|
8101
8101
|
return n.components.forEach((z) => {
|
|
8102
8102
|
R[z.type] = z;
|
|
@@ -8318,7 +8318,7 @@ var $Q = { render: zQ }, XQ = /* @__PURE__ */ $A({
|
|
|
8318
8318
|
}, null, 8, ["nodes", "edges"])]), en(rA("div", a0, [rA("div", l0, [rA("div", {
|
|
8319
8319
|
class: "d-flow-design-title-icon",
|
|
8320
8320
|
style: YA({ backgroundColor: sA.value?.iconColor || "var(--j-color-primary)" })
|
|
8321
|
-
}, [CA(J, { icon: sA.value?.icon || "mdi:source-branch" }, null, 8, ["icon"])], 4), rA("div", u0,
|
|
8321
|
+
}, [CA(J, { icon: sA.value?.icon || "mdi:source-branch" }, null, 8, ["icon"])], 4), rA("div", u0, ge(sA.value?.name || ""), 1)]), rA("div", c0, [CA(iA, {
|
|
8322
8322
|
config: { labelPosition: "top" },
|
|
8323
8323
|
style: { padding: "0" },
|
|
8324
8324
|
ref_key: "configRef",
|
|
@@ -10785,7 +10785,7 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
10785
10785
|
"gs-max-w": C.maxW,
|
|
10786
10786
|
"gs-max-h": C.maxH,
|
|
10787
10787
|
class: "d-layout-item"
|
|
10788
|
-
}, [
|
|
10788
|
+
}, [he(p.$slots, "item", { item: C })], 8, U0))), 128))], 512)]));
|
|
10789
10789
|
}
|
|
10790
10790
|
}), E0 = F0, b0 = rn(E0), ce = (e, A = "", t = !1) => t ? `${e}pt` : A ? `${e}${A}` : `${e}px`, Xe = (e, A = 0) => e == null || isNaN(e) ? 0 : Number(Number(e).toFixed(A)), I0 = (e) => e * 3 / 4, H0 = (e) => e * 4 / 3, _0 = ["onMousedown"], x0 = {
|
|
10791
10791
|
key: 2,
|
|
@@ -11058,7 +11058,7 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
11058
11058
|
key: 0,
|
|
11059
11059
|
class: "d-draggable__line d-draggable__line--label",
|
|
11060
11060
|
style: YA(gA.value)
|
|
11061
|
-
},
|
|
11061
|
+
}, ge(f.value) + "," + ge(h.value), 5))
|
|
11062
11062
|
], 64)) : oe("", !0),
|
|
11063
11063
|
!e.readonly && !e.disabled ? (Z(!0), vA(ae, { key: 1 }, Le(L.value, (Y, dA) => (Z(), vA(ae, { key: dA }, [b.value ? (Z(), vA("div", {
|
|
11064
11064
|
key: 0,
|
|
@@ -11070,7 +11070,7 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
11070
11070
|
class: "d-draggable__item",
|
|
11071
11071
|
ref_key: "item",
|
|
11072
11072
|
ref: l
|
|
11073
|
-
}, [
|
|
11073
|
+
}, [he(tA.$slots, "default")], 512),
|
|
11074
11074
|
!e.disabled && e.mask ? (Z(), vA("div", x0)) : oe("", !0)
|
|
11075
11075
|
], 512)], 38));
|
|
11076
11076
|
}
|
|
@@ -12030,7 +12030,7 @@ var zc = /* @__PURE__ */ k0(R0, [["render", P0]]), G0 = { class: "d-form-design
|
|
|
12030
12030
|
class: "j-component-tool-icon",
|
|
12031
12031
|
icon: Pe.icon,
|
|
12032
12032
|
size: 14
|
|
12033
|
-
}, null, 8, ["icon"]), rA("div", X0,
|
|
12033
|
+
}, null, 8, ["icon"]), rA("div", X0, ge(W(n)(Pe.name)), 1)])]),
|
|
12034
12034
|
_: 2
|
|
12035
12035
|
}, 1032, ["config"]))), 128))]),
|
|
12036
12036
|
_: 2
|
|
@@ -12044,7 +12044,7 @@ var zc = /* @__PURE__ */ k0(R0, [["render", P0]]), G0 = { class: "d-form-design
|
|
|
12044
12044
|
"is-component-container": !1,
|
|
12045
12045
|
"component-data": l
|
|
12046
12046
|
}, {
|
|
12047
|
-
default: KA(() => [!l.children || l.children.length === 0 ? (Z(), vA("div", J0, [
|
|
12047
|
+
default: KA(() => [!l.children || l.children.length === 0 ? (Z(), vA("div", J0, [rA("div", null, ge(W(n)("请从左侧拖拽组件到此处")), 1)])) : (Z(), JA(RA, { key: 1 }, {
|
|
12048
12048
|
default: KA(() => [CA(MA, {
|
|
12049
12049
|
"component-list": l.children,
|
|
12050
12050
|
"global-config": l.config
|
|
@@ -12053,7 +12053,7 @@ var zc = /* @__PURE__ */ k0(R0, [["render", P0]]), G0 = { class: "d-form-design
|
|
|
12053
12053
|
}))]),
|
|
12054
12054
|
_: 1
|
|
12055
12055
|
}, 8, ["component-data"])])]),
|
|
12056
|
-
en(rA("div", Z0, [rA("div", j0, [rA("span", q0,
|
|
12056
|
+
en(rA("div", Z0, [rA("div", j0, [rA("span", q0, ge(`${W(n)("属性配置")}${O.value}`), 1)]), rA("div", AU, [CA(Qe, {
|
|
12057
12057
|
config: {
|
|
12058
12058
|
labelPosition: "top",
|
|
12059
12059
|
size: "small"
|
|
@@ -12376,7 +12376,7 @@ var zc = /* @__PURE__ */ k0(R0, [["render", P0]]), G0 = { class: "d-form-design
|
|
|
12376
12376
|
class: "j-component-tool-icon",
|
|
12377
12377
|
icon: IA.icon,
|
|
12378
12378
|
size: 14
|
|
12379
|
-
}, null, 8, ["icon"]), rA("div", dU,
|
|
12379
|
+
}, null, 8, ["icon"]), rA("div", dU, ge(W(t)(IA.name)), 1)])]),
|
|
12380
12380
|
_: 2
|
|
12381
12381
|
}, 1032, ["config"]))), 128))]),
|
|
12382
12382
|
_: 2
|
|
@@ -12419,7 +12419,7 @@ var zc = /* @__PURE__ */ k0(R0, [["render", P0]]), G0 = { class: "d-form-design
|
|
|
12419
12419
|
}, null, 8, ["component-list", "global-config"]))]),
|
|
12420
12420
|
_: 1
|
|
12421
12421
|
}, 8, ["component-data"])])]),
|
|
12422
|
-
en(rA("div", pU, [rA("div", vU, [rA("span", wU,
|
|
12422
|
+
en(rA("div", pU, [rA("div", vU, [rA("span", wU, ge(`${W(t)("属性配置")}${N.value}`), 1)]), rA("div", mU, [CA(dA, {
|
|
12423
12423
|
config: {
|
|
12424
12424
|
labelPosition: "top",
|
|
12425
12425
|
size: "small"
|
|
@@ -12545,7 +12545,7 @@ function _U(e, A, t, n, r, s) {
|
|
|
12545
12545
|
}, [rA("span", {
|
|
12546
12546
|
class: "del",
|
|
12547
12547
|
onClick: A[0] || (A[0] = (...l) => e.handleRemove && e.handleRemove(...l))
|
|
12548
|
-
}, "×"), rA("span", HU,
|
|
12548
|
+
}, "×"), rA("span", HU, ge(e.startValue), 1)], 4)], 36)), [[An, e.showLine]]);
|
|
12549
12549
|
}
|
|
12550
12550
|
var xU = /* @__PURE__ */ oo(IU, [["render", _U], ["__scopeId", "data-v-074b3d94"]]), SU = (e) => e <= 0.25 ? 40 : e <= 0.5 ? 20 : e <= 1 ? 10 : e <= 2 ? 5 : e <= 4 ? 2 : 1, mu = 0.83, DU = (e, A, t, n, r, s) => {
|
|
12551
12551
|
const { scale: l, width: c, height: g, ratio: f, palette: h } = r, { bgColor: v, fontColor: p, shadowColor: m, longfgColor: C, shortfgColor: b } = h;
|
|
@@ -12781,7 +12781,7 @@ function KU(e, A, t, n, r, s) {
|
|
|
12781
12781
|
en(rA("div", {
|
|
12782
12782
|
class: "indicator",
|
|
12783
12783
|
style: YA(e.indicatorStyle)
|
|
12784
|
-
}, [rA("div", OU,
|
|
12784
|
+
}, [rA("div", OU, ge(e.valueNum), 1)], 4), [[An, e.showIndicator]])
|
|
12785
12785
|
], 6);
|
|
12786
12786
|
}
|
|
12787
12787
|
var RU = /* @__PURE__ */ oo(NU, [["render", KU], ["__scopeId", "data-v-5cc064d4"]]), kU = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC", PU = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=", GU = (0, ye.defineComponent)({
|
|
@@ -13744,12 +13744,12 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
13744
13744
|
return o.type === 15;
|
|
13745
13745
|
}, Un = function(o) {
|
|
13746
13746
|
return o.type === 17;
|
|
13747
|
-
},
|
|
13747
|
+
}, ve = function(o) {
|
|
13748
13748
|
return o.type === 20;
|
|
13749
13749
|
}, cf = function(o) {
|
|
13750
13750
|
return o.type === 0;
|
|
13751
13751
|
}, go = function(o, i) {
|
|
13752
|
-
return
|
|
13752
|
+
return ve(o) && o.value === i;
|
|
13753
13753
|
}, na = function(o) {
|
|
13754
13754
|
return o.type !== 31;
|
|
13755
13755
|
}, Fn = function(o) {
|
|
@@ -13815,7 +13815,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
13815
13815
|
}, la = function(o) {
|
|
13816
13816
|
return o.type === 15 && (o.unit === ia || o.unit === oa || o.unit === sa || o.unit === aa);
|
|
13817
13817
|
}, ua = function(o) {
|
|
13818
|
-
switch (o.filter(
|
|
13818
|
+
switch (o.filter(ve).map(function(i) {
|
|
13819
13819
|
return i.value;
|
|
13820
13820
|
}).join(" ")) {
|
|
13821
13821
|
case "to bottom right":
|
|
@@ -14084,7 +14084,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14084
14084
|
type: 1,
|
|
14085
14085
|
parse: function(o, i) {
|
|
14086
14086
|
return i.map(function(u) {
|
|
14087
|
-
if (
|
|
14087
|
+
if (ve(u)) switch (u.value) {
|
|
14088
14088
|
case "padding-box":
|
|
14089
14089
|
return 1;
|
|
14090
14090
|
case "content-box":
|
|
@@ -14238,10 +14238,10 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14238
14238
|
return Bt(i).forEach(function(Q, D) {
|
|
14239
14239
|
var K = Q[0];
|
|
14240
14240
|
if (D === 0) {
|
|
14241
|
-
if (
|
|
14241
|
+
if (ve(K) && K.value === "linear") {
|
|
14242
14242
|
d = 1;
|
|
14243
14243
|
return;
|
|
14244
|
-
} else if (
|
|
14244
|
+
} else if (ve(K) && K.value === "radial") {
|
|
14245
14245
|
d = 2;
|
|
14246
14246
|
return;
|
|
14247
14247
|
}
|
|
@@ -14293,7 +14293,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14293
14293
|
var D = !1;
|
|
14294
14294
|
Q = w.reduce(function($, q) {
|
|
14295
14295
|
if (D)
|
|
14296
|
-
if (
|
|
14296
|
+
if (ve(q)) switch (q.value) {
|
|
14297
14297
|
case "center":
|
|
14298
14298
|
return B.push(ho), $;
|
|
14299
14299
|
case "top":
|
|
@@ -14304,7 +14304,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14304
14304
|
return B.push(kt), $;
|
|
14305
14305
|
}
|
|
14306
14306
|
else (Ie(q) || Rt(q)) && B.push(q);
|
|
14307
|
-
else if (
|
|
14307
|
+
else if (ve(q)) switch (q.value) {
|
|
14308
14308
|
case ma:
|
|
14309
14309
|
return u = 0, !1;
|
|
14310
14310
|
case Ca:
|
|
@@ -14343,7 +14343,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14343
14343
|
return Bt(i).forEach(function(w, y) {
|
|
14344
14344
|
var Q = !0;
|
|
14345
14345
|
if (y === 0 ? Q = w.reduce(function(K, $) {
|
|
14346
|
-
if (
|
|
14346
|
+
if (ve($)) switch ($.value) {
|
|
14347
14347
|
case "center":
|
|
14348
14348
|
return B.push(ho), !1;
|
|
14349
14349
|
case "top":
|
|
@@ -14357,7 +14357,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14357
14357
|
return B.push($), !1;
|
|
14358
14358
|
return K;
|
|
14359
14359
|
}, Q) : y === 1 && (Q = w.reduce(function(K, $) {
|
|
14360
|
-
if (
|
|
14360
|
+
if (ve($)) switch ($.value) {
|
|
14361
14361
|
case ma:
|
|
14362
14362
|
return u = 0, !1;
|
|
14363
14363
|
case Ca:
|
|
@@ -14445,7 +14445,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14445
14445
|
type: 1,
|
|
14446
14446
|
parse: function(o, i) {
|
|
14447
14447
|
return i.map(function(u) {
|
|
14448
|
-
if (
|
|
14448
|
+
if (ve(u)) switch (u.value) {
|
|
14449
14449
|
case "padding-box":
|
|
14450
14450
|
return 1;
|
|
14451
14451
|
case "content-box":
|
|
@@ -14471,7 +14471,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14471
14471
|
type: 1,
|
|
14472
14472
|
parse: function(o, i) {
|
|
14473
14473
|
return Bt(i).map(function(u) {
|
|
14474
|
-
return u.filter(
|
|
14474
|
+
return u.filter(ve).map(function(a) {
|
|
14475
14475
|
return a.value;
|
|
14476
14476
|
}).join(" ");
|
|
14477
14477
|
}).map(Hf);
|
|
@@ -14504,7 +14504,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14504
14504
|
});
|
|
14505
14505
|
}
|
|
14506
14506
|
}, xf = function(o) {
|
|
14507
|
-
return
|
|
14507
|
+
return ve(o) || Ie(o);
|
|
14508
14508
|
}, Yr = function(o) {
|
|
14509
14509
|
return {
|
|
14510
14510
|
name: "border-" + o + "-color",
|
|
@@ -14573,7 +14573,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14573
14573
|
prefix: !1,
|
|
14574
14574
|
type: 1,
|
|
14575
14575
|
parse: function(o, i) {
|
|
14576
|
-
return i.filter(
|
|
14576
|
+
return i.filter(ve).reduce(function(u, a) {
|
|
14577
14577
|
return u | Zf(a.value);
|
|
14578
14578
|
}, 0);
|
|
14579
14579
|
}
|
|
@@ -14686,7 +14686,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14686
14686
|
prefix: !1,
|
|
14687
14687
|
type: 4
|
|
14688
14688
|
}, Fa = function(o, i) {
|
|
14689
|
-
return
|
|
14689
|
+
return ve(o) && o.value === "normal" ? 1.2 * i : o.type === 17 ? i * o.number : Ie(o) ? me(o, i) : i;
|
|
14690
14690
|
}, tg = {
|
|
14691
14691
|
name: "list-style-image",
|
|
14692
14692
|
initialValue: "none",
|
|
@@ -14833,7 +14833,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
14833
14833
|
prefix: !1,
|
|
14834
14834
|
type: 1,
|
|
14835
14835
|
parse: function(o, i) {
|
|
14836
|
-
return i.filter(
|
|
14836
|
+
return i.filter(ve).map(function(u) {
|
|
14837
14837
|
switch (u.value) {
|
|
14838
14838
|
case "hidden":
|
|
14839
14839
|
return 1;
|
|
@@ -15069,7 +15069,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
15069
15069
|
prefix: !1,
|
|
15070
15070
|
type: 1,
|
|
15071
15071
|
parse: function(o, i) {
|
|
15072
|
-
return i.filter(
|
|
15072
|
+
return i.filter(ve).map(function(u) {
|
|
15073
15073
|
switch (u.value) {
|
|
15074
15074
|
case "underline":
|
|
15075
15075
|
return 1;
|
|
@@ -15121,7 +15121,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
15121
15121
|
type: 0,
|
|
15122
15122
|
prefix: !1,
|
|
15123
15123
|
parse: function(o, i) {
|
|
15124
|
-
return Un(i) ? i.number :
|
|
15124
|
+
return Un(i) ? i.number : ve(i) && i.value === "bold" ? 700 : 400;
|
|
15125
15125
|
}
|
|
15126
15126
|
}, Dg = {
|
|
15127
15127
|
name: "font-variant",
|
|
@@ -15129,7 +15129,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
15129
15129
|
type: 1,
|
|
15130
15130
|
prefix: !1,
|
|
15131
15131
|
parse: function(o, i) {
|
|
15132
|
-
return i.filter(
|
|
15132
|
+
return i.filter(ve).map(function(u) {
|
|
15133
15133
|
return u.value;
|
|
15134
15134
|
});
|
|
15135
15135
|
}
|
|
@@ -15190,7 +15190,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
15190
15190
|
if (i.length === 0) return [];
|
|
15191
15191
|
for (var u = [], a = i.filter(na), d = 0; d < a.length; d++) {
|
|
15192
15192
|
var B = a[d], w = a[d + 1];
|
|
15193
|
-
if (
|
|
15193
|
+
if (ve(B) && B.value !== "none") {
|
|
15194
15194
|
var y = w && Un(w) ? w.number : 0;
|
|
15195
15195
|
u.push({
|
|
15196
15196
|
counter: B.value,
|
|
@@ -15266,7 +15266,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
15266
15266
|
1,
|
|
15267
15267
|
2
|
|
15268
15268
|
], a = [];
|
|
15269
|
-
return i.filter(
|
|
15269
|
+
return i.filter(ve).forEach(function(d) {
|
|
15270
15270
|
switch (d.value) {
|
|
15271
15271
|
case "stroke":
|
|
15272
15272
|
a.push(1);
|
|
@@ -15335,7 +15335,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
15335
15335
|
switch (i.type) {
|
|
15336
15336
|
case 2:
|
|
15337
15337
|
var w = B.parseComponentValue();
|
|
15338
|
-
return i.parse(o,
|
|
15338
|
+
return i.parse(o, ve(w) ? w.value : i.initialValue);
|
|
15339
15339
|
case 0:
|
|
15340
15340
|
return i.parse(o, B.parseComponentValue());
|
|
15341
15341
|
case 1:
|
|
@@ -16410,18 +16410,18 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
16410
16410
|
q.src = $.value, q.style.opacity = "1", D.appendChild(q);
|
|
16411
16411
|
} else if ($.type === 18) {
|
|
16412
16412
|
if ($.name === "attr") {
|
|
16413
|
-
var EA = $.values.filter(
|
|
16413
|
+
var EA = $.values.filter(ve);
|
|
16414
16414
|
EA.length && D.appendChild(y.createTextNode(i.getAttribute(EA[0].value) || ""));
|
|
16415
16415
|
} else if ($.name === "counter") {
|
|
16416
16416
|
var mA = $.values.filter(Fn), FA = mA[0], jA = mA[1];
|
|
16417
|
-
if (FA &&
|
|
16418
|
-
var kA = B.counters.getCounterValue(FA.value), NA = jA &&
|
|
16417
|
+
if (FA && ve(FA)) {
|
|
16418
|
+
var kA = B.counters.getCounterValue(FA.value), NA = jA && ve(jA) ? vo.parse(B.context, jA.value) : 3;
|
|
16419
16419
|
D.appendChild(y.createTextNode(ur(kA, NA, !1)));
|
|
16420
16420
|
}
|
|
16421
16421
|
} else if ($.name === "counters") {
|
|
16422
16422
|
var Ce = $.values.filter(Fn), FA = Ce[0], se = Ce[1], jA = Ce[2];
|
|
16423
|
-
if (FA &&
|
|
16424
|
-
var zA = B.counters.getCounterValues(FA.value), _A = jA &&
|
|
16423
|
+
if (FA && ve(FA)) {
|
|
16424
|
+
var zA = B.counters.getCounterValues(FA.value), _A = jA && ve(jA) ? vo.parse(B.context, jA.value) : 3, re = se && se.type === 0 ? se.value : "", ie = zA.map(function(Ve) {
|
|
16425
16425
|
return ur(Ve, _A, !1);
|
|
16426
16426
|
}).join(re);
|
|
16427
16427
|
D.appendChild(y.createTextNode(ie));
|
|
@@ -16625,8 +16625,8 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
16625
16625
|
jA.push((B + Q) / a.width), jA.push((mA + $) / a.width), jA.push((w + FA) / a.height), jA.push((D + q) / a.height);
|
|
16626
16626
|
var kA = Math.max.apply(Math, jA);
|
|
16627
16627
|
kA > 1 && (B /= kA, w /= kA, Q /= kA, D /= kA, $ /= kA, q /= kA, mA /= kA, FA /= kA);
|
|
16628
|
-
var NA = a.width - Q, Ce = a.height - q, se = a.width - $, zA = a.height - FA, _A = u.borderTopWidth, re = u.borderRightWidth, ie = u.borderBottomWidth, WA = u.borderLeftWidth, He = me(u.paddingTop, i.bounds.width), Ve = me(u.paddingRight, i.bounds.width), Je = me(u.paddingBottom, i.bounds.width),
|
|
16629
|
-
this.topLeftBorderDoubleOuterBox = B > 0 || w > 0 ? Ue(a.left + WA / 3, a.top + _A / 3, B - WA / 3, w - _A / 3, ue.TOP_LEFT) : new HA(a.left + WA / 3, a.top + _A / 3), this.topRightBorderDoubleOuterBox = B > 0 || w > 0 ? Ue(a.left + NA, a.top + _A / 3, Q - re / 3, D - _A / 3, ue.TOP_RIGHT) : new HA(a.left + a.width - re / 3, a.top + _A / 3), this.bottomRightBorderDoubleOuterBox = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $ - re / 3, q - ie / 3, ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re / 3, a.top + a.height - ie / 3), this.bottomLeftBorderDoubleOuterBox = mA > 0 || FA > 0 ? Ue(a.left + WA / 3, a.top + zA, mA - WA / 3, FA - ie / 3, ue.BOTTOM_LEFT) : new HA(a.left + WA / 3, a.top + a.height - ie / 3), this.topLeftBorderDoubleInnerBox = B > 0 || w > 0 ? Ue(a.left + WA * 2 / 3, a.top + _A * 2 / 3, B - WA * 2 / 3, w - _A * 2 / 3, ue.TOP_LEFT) : new HA(a.left + WA * 2 / 3, a.top + _A * 2 / 3), this.topRightBorderDoubleInnerBox = B > 0 || w > 0 ? Ue(a.left + NA, a.top + _A * 2 / 3, Q - re * 2 / 3, D - _A * 2 / 3, ue.TOP_RIGHT) : new HA(a.left + a.width - re * 2 / 3, a.top + _A * 2 / 3), this.bottomRightBorderDoubleInnerBox = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $ - re * 2 / 3, q - ie * 2 / 3, ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re * 2 / 3, a.top + a.height - ie * 2 / 3), this.bottomLeftBorderDoubleInnerBox = mA > 0 || FA > 0 ? Ue(a.left + WA * 2 / 3, a.top + zA, mA - WA * 2 / 3, FA - ie * 2 / 3, ue.BOTTOM_LEFT) : new HA(a.left + WA * 2 / 3, a.top + a.height - ie * 2 / 3), this.topLeftBorderStroke = B > 0 || w > 0 ? Ue(a.left + WA / 2, a.top + _A / 2, B - WA / 2, w - _A / 2, ue.TOP_LEFT) : new HA(a.left + WA / 2, a.top + _A / 2), this.topRightBorderStroke = B > 0 || w > 0 ? Ue(a.left + NA, a.top + _A / 2, Q - re / 2, D - _A / 2, ue.TOP_RIGHT) : new HA(a.left + a.width - re / 2, a.top + _A / 2), this.bottomRightBorderStroke = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $ - re / 2, q - ie / 2, ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re / 2, a.top + a.height - ie / 2), this.bottomLeftBorderStroke = mA > 0 || FA > 0 ? Ue(a.left + WA / 2, a.top + zA, mA - WA / 2, FA - ie / 2, ue.BOTTOM_LEFT) : new HA(a.left + WA / 2, a.top + a.height - ie / 2), this.topLeftBorderBox = B > 0 || w > 0 ? Ue(a.left, a.top, B, w, ue.TOP_LEFT) : new HA(a.left, a.top), this.topRightBorderBox = Q > 0 || D > 0 ? Ue(a.left + NA, a.top, Q, D, ue.TOP_RIGHT) : new HA(a.left + a.width, a.top), this.bottomRightBorderBox = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $, q, ue.BOTTOM_RIGHT) : new HA(a.left + a.width, a.top + a.height), this.bottomLeftBorderBox = mA > 0 || FA > 0 ? Ue(a.left, a.top + zA, mA, FA, ue.BOTTOM_LEFT) : new HA(a.left, a.top + a.height), this.topLeftPaddingBox = B > 0 || w > 0 ? Ue(a.left + WA, a.top + _A, Math.max(0, B - WA), Math.max(0, w - _A), ue.TOP_LEFT) : new HA(a.left + WA, a.top + _A), this.topRightPaddingBox = Q > 0 || D > 0 ? Ue(a.left + Math.min(NA, a.width - re), a.top + _A, NA > a.width + re ? 0 : Math.max(0, Q - re), Math.max(0, D - _A), ue.TOP_RIGHT) : new HA(a.left + a.width - re, a.top + _A), this.bottomRightPaddingBox = $ > 0 || q > 0 ? Ue(a.left + Math.min(se, a.width - WA), a.top + Math.min(Ce, a.height - ie), Math.max(0, $ - re), Math.max(0, q - ie), ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re, a.top + a.height - ie), this.bottomLeftPaddingBox = mA > 0 || FA > 0 ? Ue(a.left + WA, a.top + Math.min(zA, a.height - ie), Math.max(0, mA - WA), Math.max(0, FA - ie), ue.BOTTOM_LEFT) : new HA(a.left + WA, a.top + a.height - ie), this.topLeftContentBox = B > 0 || w > 0 ? Ue(a.left + WA +
|
|
16628
|
+
var NA = a.width - Q, Ce = a.height - q, se = a.width - $, zA = a.height - FA, _A = u.borderTopWidth, re = u.borderRightWidth, ie = u.borderBottomWidth, WA = u.borderLeftWidth, He = me(u.paddingTop, i.bounds.width), Ve = me(u.paddingRight, i.bounds.width), Je = me(u.paddingBottom, i.bounds.width), we = me(u.paddingLeft, i.bounds.width);
|
|
16629
|
+
this.topLeftBorderDoubleOuterBox = B > 0 || w > 0 ? Ue(a.left + WA / 3, a.top + _A / 3, B - WA / 3, w - _A / 3, ue.TOP_LEFT) : new HA(a.left + WA / 3, a.top + _A / 3), this.topRightBorderDoubleOuterBox = B > 0 || w > 0 ? Ue(a.left + NA, a.top + _A / 3, Q - re / 3, D - _A / 3, ue.TOP_RIGHT) : new HA(a.left + a.width - re / 3, a.top + _A / 3), this.bottomRightBorderDoubleOuterBox = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $ - re / 3, q - ie / 3, ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re / 3, a.top + a.height - ie / 3), this.bottomLeftBorderDoubleOuterBox = mA > 0 || FA > 0 ? Ue(a.left + WA / 3, a.top + zA, mA - WA / 3, FA - ie / 3, ue.BOTTOM_LEFT) : new HA(a.left + WA / 3, a.top + a.height - ie / 3), this.topLeftBorderDoubleInnerBox = B > 0 || w > 0 ? Ue(a.left + WA * 2 / 3, a.top + _A * 2 / 3, B - WA * 2 / 3, w - _A * 2 / 3, ue.TOP_LEFT) : new HA(a.left + WA * 2 / 3, a.top + _A * 2 / 3), this.topRightBorderDoubleInnerBox = B > 0 || w > 0 ? Ue(a.left + NA, a.top + _A * 2 / 3, Q - re * 2 / 3, D - _A * 2 / 3, ue.TOP_RIGHT) : new HA(a.left + a.width - re * 2 / 3, a.top + _A * 2 / 3), this.bottomRightBorderDoubleInnerBox = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $ - re * 2 / 3, q - ie * 2 / 3, ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re * 2 / 3, a.top + a.height - ie * 2 / 3), this.bottomLeftBorderDoubleInnerBox = mA > 0 || FA > 0 ? Ue(a.left + WA * 2 / 3, a.top + zA, mA - WA * 2 / 3, FA - ie * 2 / 3, ue.BOTTOM_LEFT) : new HA(a.left + WA * 2 / 3, a.top + a.height - ie * 2 / 3), this.topLeftBorderStroke = B > 0 || w > 0 ? Ue(a.left + WA / 2, a.top + _A / 2, B - WA / 2, w - _A / 2, ue.TOP_LEFT) : new HA(a.left + WA / 2, a.top + _A / 2), this.topRightBorderStroke = B > 0 || w > 0 ? Ue(a.left + NA, a.top + _A / 2, Q - re / 2, D - _A / 2, ue.TOP_RIGHT) : new HA(a.left + a.width - re / 2, a.top + _A / 2), this.bottomRightBorderStroke = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $ - re / 2, q - ie / 2, ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re / 2, a.top + a.height - ie / 2), this.bottomLeftBorderStroke = mA > 0 || FA > 0 ? Ue(a.left + WA / 2, a.top + zA, mA - WA / 2, FA - ie / 2, ue.BOTTOM_LEFT) : new HA(a.left + WA / 2, a.top + a.height - ie / 2), this.topLeftBorderBox = B > 0 || w > 0 ? Ue(a.left, a.top, B, w, ue.TOP_LEFT) : new HA(a.left, a.top), this.topRightBorderBox = Q > 0 || D > 0 ? Ue(a.left + NA, a.top, Q, D, ue.TOP_RIGHT) : new HA(a.left + a.width, a.top), this.bottomRightBorderBox = $ > 0 || q > 0 ? Ue(a.left + se, a.top + Ce, $, q, ue.BOTTOM_RIGHT) : new HA(a.left + a.width, a.top + a.height), this.bottomLeftBorderBox = mA > 0 || FA > 0 ? Ue(a.left, a.top + zA, mA, FA, ue.BOTTOM_LEFT) : new HA(a.left, a.top + a.height), this.topLeftPaddingBox = B > 0 || w > 0 ? Ue(a.left + WA, a.top + _A, Math.max(0, B - WA), Math.max(0, w - _A), ue.TOP_LEFT) : new HA(a.left + WA, a.top + _A), this.topRightPaddingBox = Q > 0 || D > 0 ? Ue(a.left + Math.min(NA, a.width - re), a.top + _A, NA > a.width + re ? 0 : Math.max(0, Q - re), Math.max(0, D - _A), ue.TOP_RIGHT) : new HA(a.left + a.width - re, a.top + _A), this.bottomRightPaddingBox = $ > 0 || q > 0 ? Ue(a.left + Math.min(se, a.width - WA), a.top + Math.min(Ce, a.height - ie), Math.max(0, $ - re), Math.max(0, q - ie), ue.BOTTOM_RIGHT) : new HA(a.left + a.width - re, a.top + a.height - ie), this.bottomLeftPaddingBox = mA > 0 || FA > 0 ? Ue(a.left + WA, a.top + Math.min(zA, a.height - ie), Math.max(0, mA - WA), Math.max(0, FA - ie), ue.BOTTOM_LEFT) : new HA(a.left + WA, a.top + a.height - ie), this.topLeftContentBox = B > 0 || w > 0 ? Ue(a.left + WA + we, a.top + _A + He, Math.max(0, B - (WA + we)), Math.max(0, w - (_A + He)), ue.TOP_LEFT) : new HA(a.left + WA + we, a.top + _A + He), this.topRightContentBox = Q > 0 || D > 0 ? Ue(a.left + Math.min(NA, a.width + WA + we), a.top + _A + He, NA > a.width + WA + we ? 0 : Q - WA + we, D - (_A + He), ue.TOP_RIGHT) : new HA(a.left + a.width - (re + Ve), a.top + _A + He), this.bottomRightContentBox = $ > 0 || q > 0 ? Ue(a.left + Math.min(se, a.width - (WA + we)), a.top + Math.min(Ce, a.height + _A + He), Math.max(0, $ - (re + Ve)), q - (ie + Je), ue.BOTTOM_RIGHT) : new HA(a.left + a.width - (re + Ve), a.top + a.height - (ie + Je)), this.bottomLeftContentBox = mA > 0 || FA > 0 ? Ue(a.left + WA + we, a.top + zA, Math.max(0, mA - (WA + we)), FA - (ie + Je), ue.BOTTOM_LEFT) : new HA(a.left + WA + we, a.top + a.height - (ie + Je));
|
|
16630
16630
|
}
|
|
16631
16631
|
return o;
|
|
16632
16632
|
})(), ue;
|
|
@@ -16843,7 +16843,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
16843
16843
|
y
|
|
16844
16844
|
];
|
|
16845
16845
|
}, xn = function(o) {
|
|
16846
|
-
return
|
|
16846
|
+
return ve(o) && o.value === En.AUTO;
|
|
16847
16847
|
}, Bi = function(o) {
|
|
16848
16848
|
return typeof o == "number";
|
|
16849
16849
|
}, FB = function(o, i, u) {
|
|
@@ -16851,7 +16851,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
16851
16851
|
if (!w) return [0, 0];
|
|
16852
16852
|
if (Ie(w) && y && Ie(y)) return [me(w, u.width), me(y, u.height)];
|
|
16853
16853
|
var Q = Bi(B);
|
|
16854
|
-
if (
|
|
16854
|
+
if (ve(w) && (w.value === En.CONTAIN || w.value === En.COVER))
|
|
16855
16855
|
return Bi(B) ? u.width / u.height < B != (w.value === En.COVER) ? [u.width, u.width / B] : [u.height * B, u.height] : [u.width, u.height];
|
|
16856
16856
|
var D = Bi(a), K = Bi(d), $ = D || K;
|
|
16857
16857
|
if (xn(w) && (!y || xn(y)))
|
|
@@ -17221,7 +17221,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
17221
17221
|
switch (D.label) {
|
|
17222
17222
|
case 0:
|
|
17223
17223
|
a = u.styles.backgroundImage.length - 1, d = function(K) {
|
|
17224
|
-
var $, q, EA, He, ze, $e,
|
|
17224
|
+
var $, q, EA, He, ze, $e, we, Oe, ie, mA, He, ze, $e, we, Oe, FA, jA, kA, NA, Ce, se, zA, _A, re, ie, WA, He, Ve, Je, we, Oe, Xt, ze, $e, cn, vt, Wt, dn, fn, Ht, gn, _t;
|
|
17225
17225
|
return l(this, function(Dn) {
|
|
17226
17226
|
switch (Dn.label) {
|
|
17227
17227
|
case 0:
|
|
@@ -17243,21 +17243,21 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
17243
17243
|
$.width,
|
|
17244
17244
|
$.height,
|
|
17245
17245
|
$.width / $.height
|
|
17246
|
-
]), He = EA[0], ze = EA[1], $e = EA[2],
|
|
17246
|
+
]), He = EA[0], ze = EA[1], $e = EA[2], we = EA[3], Oe = EA[4], ie = B.ctx.createPattern(B.resizeImage($, we, Oe), "repeat"), B.renderRepeat(He, ie, ze, $e)), [3, 6];
|
|
17247
17247
|
case 5:
|
|
17248
17248
|
yf(K) ? (mA = Go(u, a, [
|
|
17249
17249
|
null,
|
|
17250
17250
|
null,
|
|
17251
17251
|
null
|
|
17252
|
-
]), He = mA[0], ze = mA[1], $e = mA[2],
|
|
17252
|
+
]), He = mA[0], ze = mA[1], $e = mA[2], we = mA[3], Oe = mA[4], FA = pf(K.angle, we, Oe), jA = FA[0], kA = FA[1], NA = FA[2], Ce = FA[3], se = FA[4], zA = document.createElement("canvas"), zA.width = we, zA.height = Oe, _A = zA.getContext("2d"), re = _A.createLinearGradient(kA, Ce, NA, se), ga(K.stops, jA).forEach(function(dr) {
|
|
17253
17253
|
return re.addColorStop(dr.stop, Te(dr.color));
|
|
17254
|
-
}), _A.fillStyle = re, _A.fillRect(0, 0,
|
|
17254
|
+
}), _A.fillStyle = re, _A.fillRect(0, 0, we, Oe), we > 0 && Oe > 0 && (ie = B.ctx.createPattern(zA, "repeat"), B.renderRepeat(He, ie, ze, $e))) : Qf(K) && (WA = Go(u, a, [
|
|
17255
17255
|
null,
|
|
17256
17256
|
null,
|
|
17257
17257
|
null
|
|
17258
|
-
]), He = WA[0], Ve = WA[1], Je = WA[2],
|
|
17258
|
+
]), He = WA[0], Ve = WA[1], Je = WA[2], we = WA[3], Oe = WA[4], Xt = K.position.length === 0 ? [ho] : K.position, ze = me(Xt[0], we), $e = me(Xt[Xt.length - 1], Oe), cn = vf(K, ze, $e, we, Oe), vt = cn[0], Wt = cn[1], vt > 0 && Wt > 0 && (dn = B.ctx.createRadialGradient(Ve + ze, Je + $e, 0, Ve + ze, Je + $e, vt), ga(K.stops, vt * 2).forEach(function(dr) {
|
|
17259
17259
|
return dn.addColorStop(dr.stop, Te(dr.color));
|
|
17260
|
-
}), B.path(He), B.ctx.fillStyle = dn, vt !== Wt ? (fn = u.bounds.left + 0.5 * u.bounds.width, Ht = u.bounds.top + 0.5 * u.bounds.height, gn = Wt / vt, _t = 1 / gn, B.ctx.save(), B.ctx.translate(fn, Ht), B.ctx.transform(1, 0, 0, gn, 0, 0), B.ctx.translate(-fn, -Ht), B.ctx.fillRect(Ve, _t * (Je - Ht) + Ht,
|
|
17260
|
+
}), B.path(He), B.ctx.fillStyle = dn, vt !== Wt ? (fn = u.bounds.left + 0.5 * u.bounds.width, Ht = u.bounds.top + 0.5 * u.bounds.height, gn = Wt / vt, _t = 1 / gn, B.ctx.save(), B.ctx.translate(fn, Ht), B.ctx.transform(1, 0, 0, gn, 0, 0), B.ctx.translate(-fn, -Ht), B.ctx.fillRect(Ve, _t * (Je - Ht) + Ht, we, Oe * _t), B.ctx.restore()) : B.ctx.fill())), Dn.label = 6;
|
|
17261
17261
|
case 6:
|
|
17262
17262
|
return a--, [2];
|
|
17263
17263
|
}
|
|
@@ -17460,7 +17460,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
17460
17460
|
typeof window < "u" && pl.setContext(window);
|
|
17461
17461
|
var kB = function(o, i) {
|
|
17462
17462
|
return s(void 0, void 0, void 0, function() {
|
|
17463
|
-
var u, a, d, B, w, y, Q, D, K, $, q, EA, mA, FA, jA, kA, NA, Ce, se, zA, re, _A, re, ie, WA, He, Ve, Je,
|
|
17463
|
+
var u, a, d, B, w, y, Q, D, K, $, q, EA, mA, FA, jA, kA, NA, Ce, se, zA, re, _A, re, ie, WA, He, Ve, Je, we, Oe, Xt, ze, $e, cn, vt, Wt, dn, fn, Ht, gn;
|
|
17464
17464
|
return l(this, function(_t) {
|
|
17465
17465
|
switch (_t.label) {
|
|
17466
17466
|
case 0:
|
|
@@ -17477,7 +17477,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
17477
17477
|
cache: i.cache
|
|
17478
17478
|
}, d), w = {
|
|
17479
17479
|
windowWidth: (Je = i.windowWidth) !== null && Je !== void 0 ? Je : a.innerWidth,
|
|
17480
|
-
windowHeight: (
|
|
17480
|
+
windowHeight: (we = i.windowHeight) !== null && we !== void 0 ? we : a.innerHeight,
|
|
17481
17481
|
scrollX: (Oe = i.scrollX) !== null && Oe !== void 0 ? Oe : a.pageXOffset,
|
|
17482
17482
|
scrollY: (Xt = i.scrollY) !== null && Xt !== void 0 ? Xt : a.pageYOffset
|
|
17483
17483
|
}, y = new g(w.scrollX, w.scrollY, w.windowWidth, w.windowHeight), Q = new KB(B, y), D = (ze = i.foreignObjectRendering) !== null && ze !== void 0 ? ze : !1, K = {
|
|
@@ -17970,37 +17970,37 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
17970
17970
|
rA("div", {
|
|
17971
17971
|
class: "item j-bi-design-contentmenu__btn",
|
|
17972
17972
|
onClick: yA[0] || (yA[0] = (ne) => pA(b.value))
|
|
17973
|
-
},
|
|
17973
|
+
}, ge(W(n)("复制")), 1),
|
|
17974
17974
|
rA("div", {
|
|
17975
17975
|
class: "item j-bi-design-contentmenu__btn",
|
|
17976
17976
|
onClick: yA[1] || (yA[1] = (ne) => nA(b.value))
|
|
17977
|
-
},
|
|
17977
|
+
}, ge(b.value && b.value.display ? "隐藏" : "显示"), 1),
|
|
17978
17978
|
rA("div", {
|
|
17979
17979
|
class: "item j-bi-design-contentmenu__btn",
|
|
17980
17980
|
onClick: yA[2] || (yA[2] = (ne) => X(b.value))
|
|
17981
|
-
},
|
|
17981
|
+
}, ge(b.value && b.value.lock ? "解锁" : "锁定"), 1),
|
|
17982
17982
|
rA("div", {
|
|
17983
17983
|
class: "item j-bi-design-contentmenu__btn",
|
|
17984
17984
|
onClick: yA[3] || (yA[3] = (ne) => uA("top", b.value))
|
|
17985
|
-
},
|
|
17985
|
+
}, ge(W(n)("置顶图层")), 1),
|
|
17986
17986
|
rA("div", {
|
|
17987
17987
|
class: "item j-bi-design-contentmenu__btn",
|
|
17988
17988
|
onClick: yA[4] || (yA[4] = (ne) => uA("bottom", b.value))
|
|
17989
|
-
},
|
|
17989
|
+
}, ge(W(n)("置底图层")), 1),
|
|
17990
17990
|
rA("div", {
|
|
17991
17991
|
class: "item j-bi-design-contentmenu__btn",
|
|
17992
17992
|
onClick: yA[5] || (yA[5] = (ne) => uA("up", b.value))
|
|
17993
|
-
},
|
|
17993
|
+
}, ge(W(n)("上移一层")), 1),
|
|
17994
17994
|
rA("div", {
|
|
17995
17995
|
class: "item j-bi-design-contentmenu__btn",
|
|
17996
17996
|
onClick: yA[6] || (yA[6] = (ne) => uA("down", b.value))
|
|
17997
|
-
},
|
|
17997
|
+
}, ge(W(n)("下移一层")), 1),
|
|
17998
17998
|
CA(PA, { style: { margin: "4px 0" } }),
|
|
17999
17999
|
rA("div", {
|
|
18000
18000
|
class: "item j-bi-design-contentmenu__btn",
|
|
18001
18001
|
style: { color: "var(--j-color-danger)" },
|
|
18002
18002
|
onClick: yA[7] || (yA[7] = (ne) => P(b.value?.id))
|
|
18003
|
-
},
|
|
18003
|
+
}, ge(W(n)("删除")), 1)
|
|
18004
18004
|
], 4)) : oe("", !0),
|
|
18005
18005
|
rA("div", jU, [
|
|
18006
18006
|
rA("div", {
|
|
@@ -18009,7 +18009,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
18009
18009
|
}, [CA(XA, {
|
|
18010
18010
|
size: 24,
|
|
18011
18011
|
icon: "mdi:bookmark-box-multiple-outline"
|
|
18012
|
-
}), rA("span", null,
|
|
18012
|
+
}), rA("span", null, ge(W(n)("图层")), 1)], 2),
|
|
18013
18013
|
rA("div", qU, [CA(PA)]),
|
|
18014
18014
|
(Z(!0), vA(ae, null, Le(e.components, (ne, st) => (Z(), vA("div", {
|
|
18015
18015
|
key: st,
|
|
@@ -18018,7 +18018,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
18018
18018
|
}, [CA(XA, {
|
|
18019
18019
|
size: 24,
|
|
18020
18020
|
icon: ne.icon
|
|
18021
|
-
}, null, 8, ["icon"]), rA("span", null,
|
|
18021
|
+
}, null, 8, ["icon"]), rA("span", null, ge(W(n)(ne.name)), 1)], 10, AF))), 128))
|
|
18022
18022
|
]),
|
|
18023
18023
|
rA("div", eF, [g.value == -1 ? (Z(), vA("div", tF, [rA("div", nF, [CA(Jn, {
|
|
18024
18024
|
modelValue: U.value,
|
|
@@ -18048,7 +18048,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
18048
18048
|
src: `${e.imgUrlPrefix}${c.value[ne.type].img}`
|
|
18049
18049
|
}, null, 8, oF)]),
|
|
18050
18050
|
CA(on, { truncated: "" }, {
|
|
18051
|
-
default: KA(() => [Dt(
|
|
18051
|
+
default: KA(() => [Dt(ge(W(n)(ne.config.label)), 1)]),
|
|
18052
18052
|
_: 2
|
|
18053
18053
|
}, 1024),
|
|
18054
18054
|
rA("div", sF, [CA(sn, { size: 2 }, {
|
|
@@ -18069,7 +18069,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
18069
18069
|
onDragend: (Ft) => V(Ft, ne),
|
|
18070
18070
|
draggable: "true"
|
|
18071
18071
|
}, [rA("div", dF, [CA(on, { truncated: "" }, {
|
|
18072
|
-
default: KA(() => [Dt(
|
|
18072
|
+
default: KA(() => [Dt(ge(W(n)(ne.name)), 1)]),
|
|
18073
18073
|
_: 2
|
|
18074
18074
|
}, 1024)]), rA("img", {
|
|
18075
18075
|
class: "component-item2-img",
|
|
@@ -18142,7 +18142,7 @@ var $U = /* @__PURE__ */ oo(GU, [["render", zU]]), XU = /* @__PURE__ */ sp(((e,
|
|
|
18142
18142
|
"font-size": "14px"
|
|
18143
18143
|
}
|
|
18144
18144
|
}, {
|
|
18145
|
-
default: KA(() => [Dt(
|
|
18145
|
+
default: KA(() => [Dt(ge(`${W(n)("属性配置")}${IA.value} `), 1)]),
|
|
18146
18146
|
_: 1
|
|
18147
18147
|
})]), rA("div", BF, [CA(Zn, {
|
|
18148
18148
|
config: {
|