@a2simcode/ui 0.0.76 → 0.0.77
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/comp/index.d.ts +30 -0
- package/dist/components/comp/src/comp.vue.d.ts +30 -0
- package/dist/simcode-ui.es.js +116 -92
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/examples/page/user-management.vue +1 -0
- package/docs/examples/table/editable.vue +0 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -35,8 +35,8 @@ import { useVirtualList as pl } from "@vueuse/core";
|
|
|
35
35
|
import Nd from "async-validator";
|
|
36
36
|
import { createEditor as Wd, createToolbar as Ud } from "@wangeditor/editor";
|
|
37
37
|
import Ws from "diagram-js";
|
|
38
|
-
import { closest as gl, queryAll as Wa, query as $t, delegate as Hn, classes as Nt, event as
|
|
39
|
-
import { isNumber as Ct, assign as _e, forEach as ne, isArray as
|
|
38
|
+
import { closest as gl, queryAll as Wa, query as $t, delegate as Hn, classes as Nt, event as Xe, assignStyle as ai, domify as Ut, remove as Ua, clear as Us, attr as tn, matches as Yd } from "min-dom";
|
|
39
|
+
import { isNumber as Ct, assign as _e, forEach as ne, isArray as Ze, find as rn, filter as Jt, isUndefined as Gd, isObject as Xt, groupBy as vl, has as Ys, map as li, every as ml, sortBy as oi, isNil as fr, bind as yl, uniqueBy as Kd, isFunction as sn, isDefined as en, some as Jd, omit as Xd, pick as Gi, values as Gs, without as qd, reduce as Ya, isString as Ga, matchPattern as Ki, flatten as Zd, size as Qd, debounce as ef } from "min-dash";
|
|
40
40
|
import { create as Ve, attr as ye, remove as Yt, append as Oe, clone as Ks, classes as lt, createTransform as qo, transform as bl, clear as xl } from "tiny-svg";
|
|
41
41
|
import io from "inherits";
|
|
42
42
|
import tf from "diagram-js-direct-editing";
|
|
@@ -4107,6 +4107,20 @@ const Mi = {
|
|
|
4107
4107
|
getTableProvide: {
|
|
4108
4108
|
type: Function,
|
|
4109
4109
|
default: void 0
|
|
4110
|
+
},
|
|
4111
|
+
/**
|
|
4112
|
+
* @zh 列索引
|
|
4113
|
+
*/
|
|
4114
|
+
colNum: {
|
|
4115
|
+
type: Number,
|
|
4116
|
+
default: void 0
|
|
4117
|
+
},
|
|
4118
|
+
/**
|
|
4119
|
+
* @zh 行索引
|
|
4120
|
+
*/
|
|
4121
|
+
rowNum: {
|
|
4122
|
+
type: Number,
|
|
4123
|
+
default: void 0
|
|
4110
4124
|
}
|
|
4111
4125
|
},
|
|
4112
4126
|
emits: ["update:modelValue", "change"],
|
|
@@ -4192,7 +4206,9 @@ const Mi = {
|
|
|
4192
4206
|
row: h,
|
|
4193
4207
|
getTableData: d,
|
|
4194
4208
|
config: y.value,
|
|
4195
|
-
type: "change"
|
|
4209
|
+
type: "change",
|
|
4210
|
+
colNum: n.colNum,
|
|
4211
|
+
rowNum: n.rowNum
|
|
4196
4212
|
};
|
|
4197
4213
|
y.value?.change && y.value?.change(z), p && p(z), l && l(z), o("change", z);
|
|
4198
4214
|
}, E = A(), S = A([]), T = (R, ...z) => {
|
|
@@ -4302,13 +4318,19 @@ class _h {
|
|
|
4302
4318
|
return await this.createEditor(t);
|
|
4303
4319
|
}
|
|
4304
4320
|
async createEditor(t) {
|
|
4305
|
-
const { container: n, referencePosition: o, col: i, row: a, table: l } = t
|
|
4321
|
+
const { container: n, referencePosition: o, col: i, row: a, table: l } = t;
|
|
4322
|
+
console.log(i, a, "createEditor");
|
|
4323
|
+
const r = l.getBodyField(i, a), s = l.options?.columns || [], c = this.findColumnByField(s, r), u = c?._compConfig || {}, d = A(l.getCellOriginRecord(i, a) || {});
|
|
4306
4324
|
if (!n)
|
|
4307
4325
|
return !1;
|
|
4308
4326
|
const f = document.createElement("div");
|
|
4309
4327
|
f.style.position = "absolute", f.style.width = "100%", f.style.height = "100%", f.style.boxSizing = "border-box";
|
|
4310
4328
|
const { bgColor: p } = l.getCellStyle(i, a) || {};
|
|
4311
|
-
f.style.backgroundColor = p || "#FFFFFF",
|
|
4329
|
+
if (f.style.backgroundColor = p || "#FFFFFF", c?._compType === "j-switch") {
|
|
4330
|
+
const g = c?.style?.textAlign;
|
|
4331
|
+
f.style.display = "flex", f.style.alignItems = "center", f.style.justifyContent = g === "center" ? "center" : g === "right" ? "flex-end" : "flex-start", f.style.paddingLeft = g === "center" ? "0" : "11px";
|
|
4332
|
+
}
|
|
4333
|
+
this.wrapContainer = f, this.container = n, this.container && this.container.appendChild(f), u.autoFocus = !0, this.currentValue = void 0;
|
|
4312
4334
|
const h = od(sc, {
|
|
4313
4335
|
id: r,
|
|
4314
4336
|
type: c._compType,
|
|
@@ -4321,7 +4343,9 @@ class _h {
|
|
|
4321
4343
|
"onUpdate:modelValue": (g) => {
|
|
4322
4344
|
this.currentValue = g;
|
|
4323
4345
|
},
|
|
4324
|
-
getTableProvide: l._getTableProvide
|
|
4346
|
+
getTableProvide: l._getTableProvide,
|
|
4347
|
+
colNum: i,
|
|
4348
|
+
rowNum: a
|
|
4325
4349
|
});
|
|
4326
4350
|
return h.appContext = l._getAppContext(), Yi(h, f), o?.rect && this.adjustPosition(o.rect), !0;
|
|
4327
4351
|
}
|
|
@@ -4798,12 +4822,12 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4798
4822
|
elements: Re
|
|
4799
4823
|
};
|
|
4800
4824
|
}, tt = (L) => {
|
|
4801
|
-
const { dataValue: W, rect: J, table: X, col: oe, row: Q } = L, se = X.getBodyField(oe, Q), Pe = X.options?.columns || [], Re = ee(Pe, se)?._compConfig || {}, me = Number(Re.min) || 0, De = Number(Re.max) || 100, at = Number(W) || 0, ct = De - me, ke = ct === 0 ? 0 : Math.max(0, Math.min(100, (at - me) / ct * 100)), pe = 4, Le = 8, et = 8, Fe = (J.height - pe) / 2, We = String(at), ut = on(We) || 0, ot = Le, Ft = Fe, Wt = J.width - Le * 2 - ut - et, Ht = Wt * ke / 100, It = [], nn = (Bt, Et,
|
|
4802
|
-
const Ie = Math.min(
|
|
4825
|
+
const { dataValue: W, rect: J, table: X, col: oe, row: Q } = L, se = X.getBodyField(oe, Q), Pe = X.options?.columns || [], Re = ee(Pe, se)?._compConfig || {}, me = Number(Re.min) || 0, De = Number(Re.max) || 100, at = Number(W) || 0, ct = De - me, ke = ct === 0 ? 0 : Math.max(0, Math.min(100, (at - me) / ct * 100)), pe = 4, Le = 8, et = 8, Fe = (J.height - pe) / 2, We = String(at), ut = on(We) || 0, ot = Le, Ft = Fe, Wt = J.width - Le * 2 - ut - et, Ht = Wt * ke / 100, It = [], nn = (Bt, Et, Je) => {
|
|
4826
|
+
const Ie = Math.min(Je, Et / 2, Bt / 2);
|
|
4803
4827
|
return `M ${Ie} 0 L ${Bt - Ie} 0 Q ${Bt} 0 ${Bt} ${Ie} L ${Bt} ${Et - Ie} Q ${Bt} ${Et} ${Bt - Ie} ${Et} L ${Ie} ${Et} Q 0 ${Et} 0 ${Et - Ie} L 0 ${Ie} Q 0 0 ${Ie} 0 Z`;
|
|
4804
|
-
}, Xn = (Bt, Et,
|
|
4805
|
-
const Ie = Math.min(
|
|
4806
|
-
return Bt <= Ie * 2 ? nn(Bt, Et,
|
|
4828
|
+
}, Xn = (Bt, Et, Je) => {
|
|
4829
|
+
const Ie = Math.min(Je, Et / 2, Bt / 2);
|
|
4830
|
+
return Bt <= Ie * 2 ? nn(Bt, Et, Je) : `M ${Ie} 0 L ${Bt} 0 L ${Bt} ${Et} L ${Ie} ${Et} Q 0 ${Et} 0 ${Et - Ie} L 0 ${Ie} Q 0 0 ${Ie} 0 Z`;
|
|
4807
4831
|
}, Ta = pe / 2, _i = nn(Wt, pe, Ta);
|
|
4808
4832
|
if (It.push({
|
|
4809
4833
|
type: "icon",
|
|
@@ -4891,23 +4915,23 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4891
4915
|
value: Re._fieldFormat ? se : W
|
|
4892
4916
|
});
|
|
4893
4917
|
if (at.length === 0) return { elements: [] };
|
|
4894
|
-
const ct = 14, ke = 28, pe = 2, Le = 12, et = 8, Fe = 6, We = 8, ut = Math.max(0, J.width - We * 2), ot = Math.max(0, ut - Le * 2), Ft = [], Wt = (
|
|
4895
|
-
const Ie = Z(
|
|
4918
|
+
const ct = 14, ke = 28, pe = 2, Le = 12, et = 8, Fe = 6, We = 8, ut = Math.max(0, J.width - We * 2), ot = Math.max(0, ut - Le * 2), Ft = [], Wt = (Je) => {
|
|
4919
|
+
const Ie = Z(Je, ot), Gt = on(Ie) || 0;
|
|
4896
4920
|
return Math.min(ut, Gt + Le * 2);
|
|
4897
|
-
}, Ht = (
|
|
4921
|
+
}, Ht = (Je, Ie, Gt, Lt, Tn) => {
|
|
4898
4922
|
const ki = Z(Gt, ot), Ku = ft(ki), Ju = on(ki) || 0, vo = Math.min(ut, Ju + Le * 2), Xu = Lt || "#f2f3f5", qu = Tn || "#1d2129", Zu = ke / 2 + ct * 0.35, Qu = `<svg xmlns="http://www.w3.org/2000/svg" width="${vo}" height="${ke}" viewBox="0 0 ${vo} ${ke}"><rect x="0" y="0" width="${vo}" height="${ke}" rx="${pe}" ry="${pe}" fill="${Xu}"/><text x="${vo / 2}" y="${Zu}" text-anchor="middle" font-size="${ct}" fill="${qu}">${Ku}</text></svg>`;
|
|
4899
4923
|
return Ft.push({
|
|
4900
4924
|
type: "icon",
|
|
4901
4925
|
svg: Qu,
|
|
4902
|
-
x:
|
|
4926
|
+
x: Je,
|
|
4903
4927
|
y: Ie,
|
|
4904
4928
|
width: vo,
|
|
4905
4929
|
height: ke
|
|
4906
4930
|
}), { tagWidth: vo };
|
|
4907
4931
|
}, It = [];
|
|
4908
4932
|
let nn = [], Xn = 0;
|
|
4909
|
-
for (let
|
|
4910
|
-
const Ie = at[
|
|
4933
|
+
for (let Je = 0; Je < at.length; Je++) {
|
|
4934
|
+
const Ie = at[Je], Gt = Ie.label, Lt = Wt(Gt), Tn = {
|
|
4911
4935
|
label: Gt,
|
|
4912
4936
|
bg: Ie.color || "#f2f3f5",
|
|
4913
4937
|
text: Ie.textColor || nt(Ie.color || "#f2f3f5"),
|
|
@@ -4919,19 +4943,19 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4919
4943
|
const Ta = J.height;
|
|
4920
4944
|
let _i = Math.max(1, Math.floor((Ta + Fe) / (ke + Fe))), Ei = !1;
|
|
4921
4945
|
if (It.length > _i && (Ei = !0, It.length = _i), Ei) {
|
|
4922
|
-
const
|
|
4923
|
-
let Gt =
|
|
4924
|
-
for (; Gt > ut &&
|
|
4925
|
-
const Lt =
|
|
4946
|
+
const Je = It[It.length - 1], Ie = Wt("...");
|
|
4947
|
+
let Gt = Je.lineWidth + (Je.items.length > 0 ? et : 0) + Ie;
|
|
4948
|
+
for (; Gt > ut && Je.items.length > 0; ) {
|
|
4949
|
+
const Lt = Je.items.pop();
|
|
4926
4950
|
if (!Lt) break;
|
|
4927
|
-
|
|
4951
|
+
Je.items.length > 0 ? Je.lineWidth -= et + Lt.width : Je.lineWidth -= Lt.width, Gt = Je.lineWidth + (Je.items.length > 0 ? et : 0) + Ie;
|
|
4928
4952
|
}
|
|
4929
|
-
|
|
4953
|
+
Je.items.push({ label: "...", bg: "#f2f3f5", text: "#1d2129", width: Ie }), Je.lineWidth += Je.items.length > 1 ? et + Ie : Ie;
|
|
4930
4954
|
}
|
|
4931
4955
|
const Ma = It.length * ke + (It.length > 1 ? (It.length - 1) * Fe : 0);
|
|
4932
4956
|
let Et = Math.max(0, (J.height - Ma) / 2);
|
|
4933
|
-
for (let
|
|
4934
|
-
const Ie = It[
|
|
4957
|
+
for (let Je = 0; Je < It.length; Je++) {
|
|
4958
|
+
const Ie = It[Je];
|
|
4935
4959
|
let Gt = De === "center" ? We + Math.max(0, (ut - Ie.lineWidth) / 2) : De === "right" ? We + Math.max(0, ut - Ie.lineWidth) : We;
|
|
4936
4960
|
for (let Lt = 0; Lt < Ie.items.length; Lt++) {
|
|
4937
4961
|
const Tn = Ie.items[Lt], { tagWidth: ki } = Ht(
|
|
@@ -4943,7 +4967,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4943
4967
|
);
|
|
4944
4968
|
Gt += ki + (Lt < Ie.items.length - 1 ? et : 0);
|
|
4945
4969
|
}
|
|
4946
|
-
Et += ke + (
|
|
4970
|
+
Et += ke + (Je < It.length - 1 ? Fe : 0);
|
|
4947
4971
|
}
|
|
4948
4972
|
return {
|
|
4949
4973
|
elements: Ft
|
|
@@ -5265,7 +5289,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5265
5289
|
});
|
|
5266
5290
|
else {
|
|
5267
5291
|
const W = _n();
|
|
5268
|
-
W !== m ? (m = W, i.subColumns && i.subColumns.length > 0 ? (Ye(), Me(L)) :
|
|
5292
|
+
W !== m ? (m = W, i.subColumns && i.subColumns.length > 0 ? (Ye(), Me(L)) : Qe(L)) : g.setRecords(L);
|
|
5269
5293
|
}
|
|
5270
5294
|
}, En = () => g ? g.records : [];
|
|
5271
5295
|
St(() => {
|
|
@@ -5325,8 +5349,8 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5325
5349
|
} else
|
|
5326
5350
|
console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
5327
5351
|
}, Ra = (L) => {
|
|
5328
|
-
|
|
5329
|
-
},
|
|
5352
|
+
g.renderWithRecreateCells(), a("rowChange", L);
|
|
5353
|
+
}, Qe = (L) => {
|
|
5330
5354
|
if (!g) return;
|
|
5331
5355
|
const W = st(), J = ve();
|
|
5332
5356
|
J.records = L || g.records, g.updateOption(J, {
|
|
@@ -5359,7 +5383,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5359
5383
|
L._i = Bn(), Wu.value.forEach((W) => {
|
|
5360
5384
|
const J = W.config?.valueRowKey || W.id || "";
|
|
5361
5385
|
J && (L[J] = yn(W.config?.defaultValue));
|
|
5362
|
-
}), g && (g.addRecord(L), i.heightMode === "auto" &&
|
|
5386
|
+
}), g && (g.addRecord(L), i.heightMode === "auto" && Qe(), g.scrollToCell({ col: 0, row: g.records.length })), a("change", {
|
|
5363
5387
|
id: i.id,
|
|
5364
5388
|
value: L,
|
|
5365
5389
|
data: L,
|
|
@@ -5378,7 +5402,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5378
5402
|
const W = g.records, J = new Set(L.map((oe) => oe._i)), X = W.filter(
|
|
5379
5403
|
(oe) => !J.has(oe._i)
|
|
5380
5404
|
);
|
|
5381
|
-
|
|
5405
|
+
Qe(X), a("update:modelValue", X), L.forEach((oe) => {
|
|
5382
5406
|
a("change", {
|
|
5383
5407
|
id: i.id,
|
|
5384
5408
|
value: oe,
|
|
@@ -5394,7 +5418,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5394
5418
|
rt(
|
|
5395
5419
|
() => i.columns,
|
|
5396
5420
|
() => {
|
|
5397
|
-
|
|
5421
|
+
Qe();
|
|
5398
5422
|
}
|
|
5399
5423
|
), rt(
|
|
5400
5424
|
() => [
|
|
@@ -5416,12 +5440,12 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5416
5440
|
Si.value
|
|
5417
5441
|
],
|
|
5418
5442
|
() => {
|
|
5419
|
-
|
|
5443
|
+
Qe();
|
|
5420
5444
|
}
|
|
5421
5445
|
), rt(
|
|
5422
5446
|
() => i.actions,
|
|
5423
5447
|
() => {
|
|
5424
|
-
|
|
5448
|
+
Qe();
|
|
5425
5449
|
},
|
|
5426
5450
|
{ deep: !0 }
|
|
5427
5451
|
);
|
|
@@ -10416,7 +10440,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10416
10440
|
P.value && !x.value ? (C(), I("div", nv, [
|
|
10417
10441
|
K(Jn, {
|
|
10418
10442
|
modelValue: T.value,
|
|
10419
|
-
"onUpdate:modelValue": he[2] || (he[2] = (
|
|
10443
|
+
"onUpdate:modelValue": he[2] || (he[2] = (Qe) => T.value = Qe),
|
|
10420
10444
|
modelModifiers: { trim: !0 },
|
|
10421
10445
|
placeholder: G(o)("搜索数据"),
|
|
10422
10446
|
clearable: "",
|
|
@@ -10454,9 +10478,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10454
10478
|
ref_key: "keywordPanelRef",
|
|
10455
10479
|
ref: R,
|
|
10456
10480
|
"check-all": z.value,
|
|
10457
|
-
"onUpdate:checkAll": he[0] || (he[0] = (
|
|
10481
|
+
"onUpdate:checkAll": he[0] || (he[0] = (Qe) => z.value = Qe),
|
|
10458
10482
|
"check-fields": $.value,
|
|
10459
|
-
"onUpdate:checkFields": he[1] || (he[1] = (
|
|
10483
|
+
"onUpdate:checkFields": he[1] || (he[1] = (Qe) => $.value = Qe),
|
|
10460
10484
|
columns: S.value
|
|
10461
10485
|
}, null, 8, ["check-all", "check-fields", "columns"])
|
|
10462
10486
|
]),
|
|
@@ -10473,7 +10497,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10473
10497
|
!O.value && !x.value ? (C(), H(ce, {
|
|
10474
10498
|
key: 1,
|
|
10475
10499
|
visible: N.value,
|
|
10476
|
-
"onUpdate:visible": he[6] || (he[6] = (
|
|
10500
|
+
"onUpdate:visible": he[6] || (he[6] = (Qe) => N.value = Qe),
|
|
10477
10501
|
placement: "bottom",
|
|
10478
10502
|
"popper-style": "padding: 0",
|
|
10479
10503
|
width: 664,
|
|
@@ -10494,13 +10518,13 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10494
10518
|
ref_key: "filterPanelRef",
|
|
10495
10519
|
ref: k,
|
|
10496
10520
|
"is-pin": O.value,
|
|
10497
|
-
"onUpdate:isPin": he[3] || (he[3] = (
|
|
10521
|
+
"onUpdate:isPin": he[3] || (he[3] = (Qe) => O.value = Qe),
|
|
10498
10522
|
relation: ge.value,
|
|
10499
|
-
"onUpdate:relation": he[4] || (he[4] = (
|
|
10523
|
+
"onUpdate:relation": he[4] || (he[4] = (Qe) => ge.value = Qe),
|
|
10500
10524
|
"search-field-list": ue.value,
|
|
10501
10525
|
columns: S.value,
|
|
10502
10526
|
onFilter: U,
|
|
10503
|
-
onClose: he[5] || (he[5] = (
|
|
10527
|
+
onClose: he[5] || (he[5] = (Qe) => N.value = !1)
|
|
10504
10528
|
}, null, 8, ["is-pin", "relation", "search-field-list", "columns"])
|
|
10505
10529
|
]),
|
|
10506
10530
|
_: 1
|
|
@@ -10514,7 +10538,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10514
10538
|
F("div", null, [
|
|
10515
10539
|
K(ce, {
|
|
10516
10540
|
visible: dt.value,
|
|
10517
|
-
"onUpdate:visible": he[7] || (he[7] = (
|
|
10541
|
+
"onUpdate:visible": he[7] || (he[7] = (Qe) => dt.value = Qe),
|
|
10518
10542
|
placement: "bottom",
|
|
10519
10543
|
"popper-style": "padding: 0",
|
|
10520
10544
|
width: 380,
|
|
@@ -10552,7 +10576,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10552
10576
|
F("div", null, [
|
|
10553
10577
|
K(ce, {
|
|
10554
10578
|
visible: ft.value,
|
|
10555
|
-
"onUpdate:visible": he[8] || (he[8] = (
|
|
10579
|
+
"onUpdate:visible": he[8] || (he[8] = (Qe) => ft.value = Qe),
|
|
10556
10580
|
placement: "bottom",
|
|
10557
10581
|
"popper-style": "padding: 0",
|
|
10558
10582
|
width: 400,
|
|
@@ -10627,7 +10651,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10627
10651
|
ref_key: "tableRef",
|
|
10628
10652
|
ref: r,
|
|
10629
10653
|
"table-page": u.value,
|
|
10630
|
-
"onUpdate:tablePage": he[9] || (he[9] = (
|
|
10654
|
+
"onUpdate:tablePage": he[9] || (he[9] = (Qe) => u.value = Qe),
|
|
10631
10655
|
columns: E.value,
|
|
10632
10656
|
"sub-columns": e.subColumns,
|
|
10633
10657
|
records: G(s),
|
|
@@ -10657,9 +10681,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10657
10681
|
ref_key: "filterPanelRef",
|
|
10658
10682
|
ref: k,
|
|
10659
10683
|
"is-pin": O.value,
|
|
10660
|
-
"onUpdate:isPin": he[10] || (he[10] = (
|
|
10684
|
+
"onUpdate:isPin": he[10] || (he[10] = (Qe) => O.value = Qe),
|
|
10661
10685
|
relation: ge.value,
|
|
10662
|
-
"onUpdate:relation": he[11] || (he[11] = (
|
|
10686
|
+
"onUpdate:relation": he[11] || (he[11] = (Qe) => ge.value = Qe),
|
|
10663
10687
|
"search-field-list": ue.value,
|
|
10664
10688
|
columns: S.value,
|
|
10665
10689
|
onFilter: U
|
|
@@ -13016,7 +13040,7 @@ Ho.prototype.isSelected = function(e) {
|
|
|
13016
13040
|
};
|
|
13017
13041
|
Ho.prototype.select = function(e, t) {
|
|
13018
13042
|
var n = this._selectedElements, o = n.slice();
|
|
13019
|
-
|
|
13043
|
+
Ze(e) || (e = e ? [e] : []);
|
|
13020
13044
|
var i = this._canvas, a = i.getRootElement();
|
|
13021
13045
|
e = e.filter(function(l) {
|
|
13022
13046
|
var r = i.findRoot(l);
|
|
@@ -13063,7 +13087,7 @@ function yc(e, t, n, o) {
|
|
|
13063
13087
|
if (l) {
|
|
13064
13088
|
if (c === !1)
|
|
13065
13089
|
return;
|
|
13066
|
-
|
|
13090
|
+
Ze(c) ? t.select(c) : t.select(r.filter(ym));
|
|
13067
13091
|
}
|
|
13068
13092
|
}), e.on("connect.end", 500, function(i) {
|
|
13069
13093
|
var a = i.context, l = a.connection;
|
|
@@ -13136,7 +13160,7 @@ function wc(e) {
|
|
|
13136
13160
|
return e.altKey ? !1 : e.ctrlKey || e.metaKey;
|
|
13137
13161
|
}
|
|
13138
13162
|
function Cc(e, t) {
|
|
13139
|
-
return e =
|
|
13163
|
+
return e = Ze(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
|
|
13140
13164
|
}
|
|
13141
13165
|
var yo = Math.round, Tr = "djs-drag-active";
|
|
13142
13166
|
function qn(e) {
|
|
@@ -13229,7 +13253,7 @@ function Sc(e, t, n, o) {
|
|
|
13229
13253
|
}
|
|
13230
13254
|
function y(x) {
|
|
13231
13255
|
var w, _;
|
|
13232
|
-
r("cleanup"), bc(), a.trapClick ? _ = f : _ = u,
|
|
13256
|
+
r("cleanup"), bc(), a.trapClick ? _ = f : _ = u, Xe.unbind(document, "mousemove", c), Xe.unbind(document, "dragstart", qn), Xe.unbind(document, "selectstart", qn), Xe.unbind(document, "mousedown", _, !0), Xe.unbind(document, "mouseup", _, !0), Xe.unbind(document, "keyup", d), Xe.unbind(document, "touchstart", p, !0), Xe.unbind(document, "touchcancel", v, !0), Xe.unbind(document, "touchmove", c, !0), Xe.unbind(document, "touchend", u, !0), e.off("element.hover", h), e.off("element.out", g), t.removeMarker(t.getRootElement(), Tr);
|
|
13233
13257
|
var m = a.payload.previousSelection;
|
|
13234
13258
|
return x !== !1 && m && !n.get().length && s(m), w = a, a = null, w;
|
|
13235
13259
|
}
|
|
@@ -13244,7 +13268,7 @@ function Sc(e, t, n, o) {
|
|
|
13244
13268
|
displacement: Eo(w, P),
|
|
13245
13269
|
localStart: P,
|
|
13246
13270
|
isTouch: z
|
|
13247
|
-
}, m), m.manual || (z ? (
|
|
13271
|
+
}, m), m.manual || (z ? (Xe.bind(document, "touchstart", p, !0), Xe.bind(document, "touchcancel", v, !0), Xe.bind(document, "touchmove", c, !0), Xe.bind(document, "touchend", u, !0)) : (Xe.bind(document, "mousemove", c), Xe.bind(document, "dragstart", qn), Xe.bind(document, "selectstart", qn), Xe.bind(document, "mousedown", R, !0), Xe.bind(document, "mouseup", R, !0)), Xe.bind(document, "keyup", d), e.on("element.hover", h), e.on("element.out", g)), r("init"), m.autoActivate && c(x, !0);
|
|
13248
13272
|
}
|
|
13249
13273
|
e.on("diagram.destroy", v), this.init = b, this.move = c, this.hover = h, this.out = g, this.end = u, this.cancel = v, this.context = function() {
|
|
13250
13274
|
return a;
|
|
@@ -13392,9 +13416,9 @@ function Mr(e, t, n) {
|
|
|
13392
13416
|
return e.push(t), o;
|
|
13393
13417
|
}
|
|
13394
13418
|
function Tl(e, t, n) {
|
|
13395
|
-
n = n || 0,
|
|
13419
|
+
n = n || 0, Ze(e) || (e = [e]), ne(e, function(o, i) {
|
|
13396
13420
|
var a = t(o, i, n);
|
|
13397
|
-
|
|
13421
|
+
Ze(a) && a.length && Tl(a, t, n + 1);
|
|
13398
13422
|
});
|
|
13399
13423
|
}
|
|
13400
13424
|
function Am(e, t, n) {
|
|
@@ -13435,7 +13459,7 @@ function Hm(e, t, n) {
|
|
|
13435
13459
|
};
|
|
13436
13460
|
}
|
|
13437
13461
|
function dn(e, t) {
|
|
13438
|
-
t = !!t,
|
|
13462
|
+
t = !!t, Ze(e) || (e = [e]);
|
|
13439
13463
|
var n, o, i, a;
|
|
13440
13464
|
return ne(e, function(l) {
|
|
13441
13465
|
var r = l;
|
|
@@ -13564,7 +13588,7 @@ function Ec(e, t, n, o, i) {
|
|
|
13564
13588
|
n.off("elements.changed", r);
|
|
13565
13589
|
});
|
|
13566
13590
|
}), this.start = function(s, c, u) {
|
|
13567
|
-
|
|
13591
|
+
Ze(c) || (c = [c]);
|
|
13568
13592
|
var d = rn(c, function(h) {
|
|
13569
13593
|
return !Dt(h);
|
|
13570
13594
|
});
|
|
@@ -14060,7 +14084,7 @@ function Qo(e) {
|
|
|
14060
14084
|
y: Math.round(e.y)
|
|
14061
14085
|
};
|
|
14062
14086
|
}
|
|
14063
|
-
function
|
|
14087
|
+
function qe(e) {
|
|
14064
14088
|
return {
|
|
14065
14089
|
top: e.y,
|
|
14066
14090
|
right: e.x + (e.width || 0),
|
|
@@ -14111,7 +14135,7 @@ function yt(e) {
|
|
|
14111
14135
|
}
|
|
14112
14136
|
function Ln(e, t, n) {
|
|
14113
14137
|
n = n || 0, Xt(n) || (n = { x: n, y: n });
|
|
14114
|
-
var o =
|
|
14138
|
+
var o = qe(e), i = qe(t), a = o.bottom + n.y <= i.top, l = o.left - n.x >= i.right, r = o.top - n.y >= i.bottom, s = o.right + n.x <= i.left, c = a ? "top" : r ? "bottom" : null, u = s ? "left" : l ? "right" : null;
|
|
14115
14139
|
return u && c ? c + "-" + u : u || c || "intersect";
|
|
14116
14140
|
}
|
|
14117
14141
|
function ol(e, t, n) {
|
|
@@ -14255,7 +14279,7 @@ function Hc(e, t) {
|
|
|
14255
14279
|
r.preventDefault();
|
|
14256
14280
|
}
|
|
14257
14281
|
function a(r) {
|
|
14258
|
-
|
|
14282
|
+
Xe.unbind(document, "mousemove", i), Xe.unbind(document, "mouseup", a), n = null, bc();
|
|
14259
14283
|
}
|
|
14260
14284
|
function l(r) {
|
|
14261
14285
|
if (!gl(r.target, ".djs-draggable")) {
|
|
@@ -14264,7 +14288,7 @@ function Hc(e, t) {
|
|
|
14264
14288
|
return n = {
|
|
14265
14289
|
button: s,
|
|
14266
14290
|
start: Po(r)
|
|
14267
|
-
},
|
|
14291
|
+
}, Xe.bind(document, "mousemove", i), Xe.bind(document, "mouseup", a), !0;
|
|
14268
14292
|
}
|
|
14269
14293
|
}
|
|
14270
14294
|
this.isActive = function() {
|
|
@@ -14354,7 +14378,7 @@ fn.prototype._zoom = function(e, t, n) {
|
|
|
14354
14378
|
};
|
|
14355
14379
|
fn.prototype.toggle = function(t) {
|
|
14356
14380
|
var n = this._container, o = this._handleWheel, i = this._enabled;
|
|
14357
|
-
return typeof t > "u" && (t = !i), i !== t &&
|
|
14381
|
+
return typeof t > "u" && (t = !i), i !== t && Xe[t ? "bind" : "unbind"](n, "wheel", o, !1), this._enabled = t, t;
|
|
14358
14382
|
};
|
|
14359
14383
|
fn.prototype._init = function(e) {
|
|
14360
14384
|
this.toggle(e);
|
|
@@ -14481,7 +14505,7 @@ ht.prototype._popAction = function() {
|
|
|
14481
14505
|
};
|
|
14482
14506
|
ht.prototype._markDirty = function(e) {
|
|
14483
14507
|
const t = this._currentExecution;
|
|
14484
|
-
e && (e =
|
|
14508
|
+
e && (e = Ze(e) ? e : [e], t.dirty = t.dirty.concat(e));
|
|
14485
14509
|
};
|
|
14486
14510
|
ht.prototype._executedAction = function(e, t) {
|
|
14487
14511
|
const n = ++this._stackIdx;
|
|
@@ -14552,7 +14576,7 @@ function Cy(e, t) {
|
|
|
14552
14576
|
Ot.prototype.on = function(e, t, n, o, i, a) {
|
|
14553
14577
|
if ((sn(t) || Ct(t)) && (a = i, i = o, o = n, n = t, t = null), sn(n) && (a = i, i = o, o = n, n = wy), Xt(i) && (a = i, i = !1), !sn(o))
|
|
14554
14578
|
throw new Error("handlerFn must be a function");
|
|
14555
|
-
|
|
14579
|
+
Ze(e) || (e = [e]);
|
|
14556
14580
|
var l = this._eventBus;
|
|
14557
14581
|
ne(e, function(r) {
|
|
14558
14582
|
var s = ["commandStack", r, t].filter(function(c) {
|
|
@@ -15285,11 +15309,11 @@ vi.prototype.execute = function(e) {
|
|
|
15285
15309
|
var t = e.newSource, n = e.newTarget, o = e.connection, i = e.dockingOrPoints;
|
|
15286
15310
|
if (!t && !n)
|
|
15287
15311
|
throw new Error("newSource or newTarget required");
|
|
15288
|
-
return
|
|
15312
|
+
return Ze(i) && (e.oldWaypoints = o.waypoints, o.waypoints = i), t && (e.oldSource = o.source, o.source = t), n && (e.oldTarget = o.target, o.target = n), o;
|
|
15289
15313
|
};
|
|
15290
15314
|
vi.prototype.postExecute = function(e) {
|
|
15291
15315
|
var t = e.connection, n = e.newSource, o = e.newTarget, i = e.dockingOrPoints, a = e.hints || {}, l = {};
|
|
15292
|
-
a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!o || a.docking === "source") && (l.connectionStart = l.connectionStart || es(
|
|
15316
|
+
a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!o || a.docking === "source") && (l.connectionStart = l.connectionStart || es(Ze(i) ? i[0] : i)), o && (!n || a.docking === "target") && (l.connectionEnd = l.connectionEnd || es(Ze(i) ? i[i.length - 1] : i)), a.newWaypoints && (l.waypoints = a.newWaypoints), this._modeling.layoutConnection(t, l));
|
|
15293
15317
|
};
|
|
15294
15318
|
vi.prototype.revert = function(e) {
|
|
15295
15319
|
var t = e.oldSource, n = e.oldTarget, o = e.oldWaypoints, i = e.connection;
|
|
@@ -15729,7 +15753,7 @@ Ge.prototype.createShape = function(e, t, n, o, i) {
|
|
|
15729
15753
|
return this._commandStack.execute("shape.create", s), s.shape;
|
|
15730
15754
|
};
|
|
15731
15755
|
Ge.prototype.createElements = function(e, t, n, o, i) {
|
|
15732
|
-
|
|
15756
|
+
Ze(e) || (e = [e]), typeof o != "number" && (i = o, o = void 0), i = i || {};
|
|
15733
15757
|
var a = {
|
|
15734
15758
|
position: t,
|
|
15735
15759
|
elements: e,
|
|
@@ -16120,7 +16144,7 @@ function ib(e, t, n, o, i) {
|
|
|
16120
16144
|
return ob(d, f, c);
|
|
16121
16145
|
}
|
|
16122
16146
|
function ab(e, t, n, o, i, a) {
|
|
16123
|
-
|
|
16147
|
+
Ze(n) && (i = n, a = o, n = yt(e), o = yt(t)), a = _e({ preferredLayouts: [] }, a), i = i || [];
|
|
16124
16148
|
var l = a.preferredLayouts, r = l.indexOf("straight") !== -1, s;
|
|
16125
16149
|
return s = r && rb(e, t, n, o, a), s || (s = a.connectionEnd && cb(t, e, o, i), s) || (s = a.connectionStart && sb(e, t, n, i), s) ? s : !a.connectionStart && !a.connectionEnd && i && i.length ? i : ib(e, t, n, o, a);
|
|
16126
16150
|
}
|
|
@@ -17421,7 +17445,7 @@ Lo.prototype.trigger = function(e, t) {
|
|
|
17421
17445
|
var n = this._modeling, o, i = Jt(e, function(s) {
|
|
17422
17446
|
return !(s.waypoints || s.host || s.labelTarget);
|
|
17423
17447
|
});
|
|
17424
|
-
if (o = this._rules.allowed("elements.align", { elements: i }),
|
|
17448
|
+
if (o = this._rules.allowed("elements.align", { elements: i }), Ze(o) && (i = o), !(i.length < 2 || !o)) {
|
|
17425
17449
|
var a = Fb[t], l = oi(i, a), r = this._alignmentPosition(t, l);
|
|
17426
17450
|
n.alignElements(l, r);
|
|
17427
17451
|
}
|
|
@@ -17597,7 +17621,7 @@ function bu(e, t, n, o, i) {
|
|
|
17597
17621
|
return E = l(w, m), a(m, _, E) ? i.start(x, w, m.index) : o.start(x, w, m.index, !m.bendpoint), !0;
|
|
17598
17622
|
}
|
|
17599
17623
|
function s(x, w, _) {
|
|
17600
|
-
|
|
17624
|
+
Xe.bind(x, w, function(m) {
|
|
17601
17625
|
n.triggerMouseEvent(w, m, _), m.stopPropagation();
|
|
17602
17626
|
});
|
|
17603
17627
|
}
|
|
@@ -17988,7 +18012,7 @@ function Su(e) {
|
|
|
17988
18012
|
var dx = Math.abs, ks = Math.round, $a = 10;
|
|
17989
18013
|
function _u(e) {
|
|
17990
18014
|
function t(a, l) {
|
|
17991
|
-
if (
|
|
18015
|
+
if (Ze(a)) {
|
|
17992
18016
|
for (var r = a.length; r--; ) if (dx(a[r] - l) <= $a)
|
|
17993
18017
|
return a[r];
|
|
17994
18018
|
} else {
|
|
@@ -18193,7 +18217,7 @@ Tt.prototype.add = function(e, t, n) {
|
|
|
18193
18217
|
};
|
|
18194
18218
|
Tt.prototype.remove = function(e) {
|
|
18195
18219
|
var t = this.get(e) || [];
|
|
18196
|
-
|
|
18220
|
+
Ze(t) || (t = [t]);
|
|
18197
18221
|
var n = this;
|
|
18198
18222
|
ne(t, function(o) {
|
|
18199
18223
|
var i = n._getOverlayContainer(o.element, !0);
|
|
@@ -18404,7 +18428,7 @@ wt.prototype._init = function() {
|
|
|
18404
18428
|
}), this._eventBus.on("elements.changed", function(t) {
|
|
18405
18429
|
var n = t.elements, o = e._current;
|
|
18406
18430
|
if (o) {
|
|
18407
|
-
var i = o.target, a =
|
|
18431
|
+
var i = o.target, a = Ze(i) ? i : [i], l = a.filter(function(s) {
|
|
18408
18432
|
return n.includes(s);
|
|
18409
18433
|
});
|
|
18410
18434
|
if (l.length) {
|
|
@@ -18419,7 +18443,7 @@ wt.prototype._init = function() {
|
|
|
18419
18443
|
e._updatePosition();
|
|
18420
18444
|
}), this._eventBus.on("element.marker.update", function(t) {
|
|
18421
18445
|
if (e.isOpen()) {
|
|
18422
|
-
var n = t.element, o = e._current, i =
|
|
18446
|
+
var n = t.element, o = e._current, i = Ze(o.target) ? o.target : [o.target];
|
|
18423
18447
|
i.includes(n) && e._updateVisibility();
|
|
18424
18448
|
}
|
|
18425
18449
|
}), this._container = this._createContainer();
|
|
@@ -18434,7 +18458,7 @@ wt.prototype.registerProvider = function(e, t) {
|
|
|
18434
18458
|
});
|
|
18435
18459
|
};
|
|
18436
18460
|
wt.prototype.getEntries = function(e) {
|
|
18437
|
-
var t = this._getProviders(), n =
|
|
18461
|
+
var t = this._getProviders(), n = Ze(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", o = {};
|
|
18438
18462
|
return ne(t, function(i) {
|
|
18439
18463
|
if (sn(i[n])) {
|
|
18440
18464
|
var a = i[n](e);
|
|
@@ -18506,7 +18530,7 @@ wt.prototype._createHtml = function(e) {
|
|
|
18506
18530
|
t.trigger("mouseover", o);
|
|
18507
18531
|
}), Hn.bind(n, Di, "mouseout", function(o) {
|
|
18508
18532
|
t.trigger("mouseout", o);
|
|
18509
|
-
}),
|
|
18533
|
+
}), Xe.bind(n, "mousedown", function(o) {
|
|
18510
18534
|
o.stopPropagation();
|
|
18511
18535
|
}), this._container.appendChild(n), this._eventBus.fire("contextPad.create", {
|
|
18512
18536
|
target: e,
|
|
@@ -18528,7 +18552,7 @@ wt.prototype.isOpen = function(e) {
|
|
|
18528
18552
|
if (!e)
|
|
18529
18553
|
return !0;
|
|
18530
18554
|
var n = t.target;
|
|
18531
|
-
return
|
|
18555
|
+
return Ze(e) !== Ze(n) ? !1 : Ze(e) ? e.length === n.length && ml(e, function(o) {
|
|
18532
18556
|
return n.includes(o);
|
|
18533
18557
|
}) : n === e;
|
|
18534
18558
|
};
|
|
@@ -18542,7 +18566,7 @@ wt.prototype.hide = function() {
|
|
|
18542
18566
|
this.isOpen() && (Nt(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
|
|
18543
18567
|
};
|
|
18544
18568
|
wt.prototype._getPosition = function(e) {
|
|
18545
|
-
if (!
|
|
18569
|
+
if (!Ze(e) && Dt(e)) {
|
|
18546
18570
|
var t = this._canvas.viewbox(), n = Tx(e), o = n.x * t.scale - t.x * t.scale, i = n.y * t.scale - t.y * t.scale;
|
|
18547
18571
|
return {
|
|
18548
18572
|
left: o + Rs * this._canvas.zoom(),
|
|
@@ -18574,7 +18598,7 @@ wt.prototype._updatePosition = function() {
|
|
|
18574
18598
|
wt.prototype._updateVisibility = function() {
|
|
18575
18599
|
const e = () => {
|
|
18576
18600
|
if (this.isOpen()) {
|
|
18577
|
-
var t = this, n = this._current.target, o =
|
|
18601
|
+
var t = this, n = this._current.target, o = Ze(n) ? n : [n], i = o.some(function(a) {
|
|
18578
18602
|
return t._canvas.hasMarker(a, _x);
|
|
18579
18603
|
});
|
|
18580
18604
|
i ? t.hide() : t.show();
|
|
@@ -18583,7 +18607,7 @@ wt.prototype._updateVisibility = function() {
|
|
|
18583
18607
|
this._scheduler.schedule(e, "ContextPad#_updateVisibility");
|
|
18584
18608
|
};
|
|
18585
18609
|
wt.prototype._getTargetBounds = function(e) {
|
|
18586
|
-
var t = this, n =
|
|
18610
|
+
var t = this, n = Ze(e) ? e : [e], o = n.map(function(i) {
|
|
18587
18611
|
return t._canvas.getGraphics(i);
|
|
18588
18612
|
});
|
|
18589
18613
|
return o.reduce(function(i, a) {
|
|
@@ -18598,7 +18622,7 @@ wt.prototype._getTargetBounds = function(e) {
|
|
|
18598
18622
|
};
|
|
18599
18623
|
function Rx(e, t) {
|
|
18600
18624
|
var n = Nt(e);
|
|
18601
|
-
t =
|
|
18625
|
+
t = Ze(t) ? t : t.split(/\s+/g), t.forEach(function(o) {
|
|
18602
18626
|
n.add(o);
|
|
18603
18627
|
});
|
|
18604
18628
|
}
|
|
@@ -18606,7 +18630,7 @@ function Tx(e) {
|
|
|
18606
18630
|
return e.waypoints[e.waypoints.length - 1];
|
|
18607
18631
|
}
|
|
18608
18632
|
function Mx(e, t) {
|
|
18609
|
-
return e =
|
|
18633
|
+
return e = Ze(e) ? e : [e], t = Ze(t) ? t : [t], e.length === t.length && ml(e, function(n) {
|
|
18610
18634
|
return t.includes(n);
|
|
18611
18635
|
});
|
|
18612
18636
|
}
|
|
@@ -19301,7 +19325,7 @@ xt.prototype._init = function() {
|
|
|
19301
19325
|
if (Yd(a, ju))
|
|
19302
19326
|
return e.toggle();
|
|
19303
19327
|
e.trigger("click", i);
|
|
19304
|
-
}),
|
|
19328
|
+
}), Xe.bind(o, "mousedown", function(i) {
|
|
19305
19329
|
i.stopPropagation();
|
|
19306
19330
|
}), Hn.bind(o, Hu, "dragstart", function(i) {
|
|
19307
19331
|
e.trigger("dragstart", i);
|
|
@@ -19391,7 +19415,7 @@ xt.prototype._getParentContainer = function() {
|
|
|
19391
19415
|
};
|
|
19392
19416
|
xt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
|
|
19393
19417
|
function qx(e, t) {
|
|
19394
|
-
var n = Nt(e), o =
|
|
19418
|
+
var n = Nt(e), o = Ze(t) ? t : t.split(/\s+/g);
|
|
19395
19419
|
o.forEach(function(i) {
|
|
19396
19420
|
n.add(i);
|
|
19397
19421
|
});
|
|
@@ -19448,7 +19472,7 @@ function Vi(e, t, n) {
|
|
|
19448
19472
|
function ow(e, t) {
|
|
19449
19473
|
if (!t)
|
|
19450
19474
|
return e;
|
|
19451
|
-
var n =
|
|
19475
|
+
var n = qe(e);
|
|
19452
19476
|
return Pc({
|
|
19453
19477
|
top: Vi("top", n, t),
|
|
19454
19478
|
right: Vi("right", n, t),
|
|
@@ -19457,12 +19481,12 @@ function ow(e, t) {
|
|
|
19457
19481
|
});
|
|
19458
19482
|
}
|
|
19459
19483
|
function iw(e, t, n, o) {
|
|
19460
|
-
var i =
|
|
19484
|
+
var i = qe(t), a = {
|
|
19461
19485
|
top: /n/.test(e) ? i.bottom - n.height : i.top,
|
|
19462
19486
|
left: /w/.test(e) ? i.right - n.width : i.left,
|
|
19463
19487
|
bottom: /s/.test(e) ? i.top + n.height : i.bottom,
|
|
19464
19488
|
right: /e/.test(e) ? i.left + n.width : i.right
|
|
19465
|
-
}, l = o ?
|
|
19489
|
+
}, l = o ? qe(o) : a, r = {
|
|
19466
19490
|
top: aa(a.top, l.top),
|
|
19467
19491
|
left: aa(a.left, l.left),
|
|
19468
19492
|
bottom: ia(a.bottom, l.bottom),
|
|
@@ -19501,7 +19525,7 @@ function bi(e, t, n, o) {
|
|
|
19501
19525
|
function l(s) {
|
|
19502
19526
|
var c = s.resizeConstraints, u = s.minBounds;
|
|
19503
19527
|
c === void 0 && (u === void 0 && (u = i.computeMinResizeBox(s)), s.resizeConstraints = {
|
|
19504
|
-
min:
|
|
19528
|
+
min: qe(u)
|
|
19505
19529
|
});
|
|
19506
19530
|
}
|
|
19507
19531
|
function r(s) {
|
|
@@ -19560,7 +19584,7 @@ function sw(e, t) {
|
|
|
19560
19584
|
return e.x !== t.x || e.y !== t.y || e.width !== t.width || e.height !== t.height;
|
|
19561
19585
|
}
|
|
19562
19586
|
function Ou(e, t) {
|
|
19563
|
-
var n = yt(e), o =
|
|
19587
|
+
var n = yt(e), o = qe(e), i = {
|
|
19564
19588
|
x: n.x,
|
|
19565
19589
|
y: n.y
|
|
19566
19590
|
};
|
|
@@ -19608,7 +19632,7 @@ Yn.prototype.makeDraggable = function(e, t, n) {
|
|
|
19608
19632
|
function i(a) {
|
|
19609
19633
|
$n(a) && o.activate(a, e, n);
|
|
19610
19634
|
}
|
|
19611
|
-
|
|
19635
|
+
Xe.bind(t, "mousedown", i), Xe.bind(t, "touchstart", i);
|
|
19612
19636
|
};
|
|
19613
19637
|
Yn.prototype._createResizer = function(e, t, n, o) {
|
|
19614
19638
|
var i = this._getResizersParent(), a = fw(o), l = Ve("g");
|
|
@@ -19972,7 +19996,7 @@ wi.prototype.getSnapTargets = function(e, t) {
|
|
|
19972
19996
|
});
|
|
19973
19997
|
};
|
|
19974
19998
|
function Lu(e, t) {
|
|
19975
|
-
var n = yt(e), o =
|
|
19999
|
+
var n = yt(e), o = qe(e), i = {
|
|
19976
20000
|
x: n.x,
|
|
19977
20001
|
y: n.y
|
|
19978
20002
|
};
|
|
@@ -20206,7 +20230,7 @@ function Pw(e, t) {
|
|
|
20206
20230
|
var o = t.defaultDistance || $u, i = t.direction || "e", a = t.filter, l = t.getWeight || n, r = t.maxDistance || Mw, s = t.reference || "start";
|
|
20207
20231
|
a || (a = Aw);
|
|
20208
20232
|
function c(h, g) {
|
|
20209
|
-
return i === "n" ? s === "start" ?
|
|
20233
|
+
return i === "n" ? s === "start" ? qe(h).top - qe(g).bottom : s === "center" ? qe(h).top - yt(g).y : qe(h).top - qe(g).top : i === "w" ? s === "start" ? qe(h).left - qe(g).right : s === "center" ? qe(h).left - yt(g).x : qe(h).left - qe(g).left : i === "s" ? s === "start" ? qe(g).top - qe(h).bottom : s === "center" ? yt(g).y - qe(h).bottom : qe(g).bottom - qe(h).bottom : s === "start" ? qe(g).left - qe(h).right : s === "center" ? yt(g).x - qe(h).right : qe(g).right - qe(h).right;
|
|
20210
20234
|
}
|
|
20211
20235
|
var u = e.incoming.filter(a).map(function(h) {
|
|
20212
20236
|
var g = l(h), v = g < 0 ? c(h.source, e) : c(e, h.source);
|
|
@@ -20262,7 +20286,7 @@ zu.$inject = [
|
|
|
20262
20286
|
];
|
|
20263
20287
|
function Hw(e, t, n) {
|
|
20264
20288
|
n || (n = {});
|
|
20265
|
-
var o = n.defaultDistance || $u, i = yt(e), a =
|
|
20289
|
+
var o = n.defaultDistance || $u, i = yt(e), a = qe(e);
|
|
20266
20290
|
return {
|
|
20267
20291
|
x: a.right + o + t.width / 2,
|
|
20268
20292
|
y: i.y
|
|
@@ -20337,7 +20361,7 @@ function Nw(e, t) {
|
|
|
20337
20361
|
return Ww(e, t);
|
|
20338
20362
|
}
|
|
20339
20363
|
function Ww(e, t) {
|
|
20340
|
-
const n =
|
|
20364
|
+
const n = qe(e), o = yt(e), i = Pw(e, {
|
|
20341
20365
|
filter: (u) => Bw(u, "myline")
|
|
20342
20366
|
}), a = 30, l = 80, s = {
|
|
20343
20367
|
x: n.right + i + t.width / 2,
|