@a2simcode/ui 0.0.118 → 0.0.119
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/simcode-ui.es.js +149 -149
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -4583,15 +4583,15 @@ var Xh = class {
|
|
|
4583
4583
|
}, S = P(), F = P([]), J = (D, ...ee) => {
|
|
4584
4584
|
if (S.value && typeof S.value[D] == "function") return S.value[D](...ee);
|
|
4585
4585
|
console.warn(`方法 ${D} 不存在或不是函数`);
|
|
4586
|
-
},
|
|
4586
|
+
}, ue = () => {
|
|
4587
4587
|
if (F.value.forEach((ee) => ee()), F.value = [], !p) return;
|
|
4588
4588
|
const D = p(n.id, J);
|
|
4589
4589
|
F.value.push(D);
|
|
4590
4590
|
};
|
|
4591
4591
|
return st(() => S.value, () => {
|
|
4592
|
-
|
|
4592
|
+
ue();
|
|
4593
4593
|
}), Ct(() => {
|
|
4594
|
-
|
|
4594
|
+
ue();
|
|
4595
4595
|
}), bo(() => {
|
|
4596
4596
|
F.value.forEach((D) => D()), F.value = [];
|
|
4597
4597
|
}), (D, ee) => {
|
|
@@ -4898,7 +4898,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
4898
4898
|
}, 100);
|
|
4899
4899
|
}, J = () => {
|
|
4900
4900
|
U && (clearTimeout(U), U = null);
|
|
4901
|
-
},
|
|
4901
|
+
}, ue = () => {
|
|
4902
4902
|
V = !0, J();
|
|
4903
4903
|
}, D = () => {
|
|
4904
4904
|
V = !1, F();
|
|
@@ -4930,21 +4930,21 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
4930
4930
|
}
|
|
4931
4931
|
} : H, Ce = (H) => {
|
|
4932
4932
|
const { Group: L, Text: Y } = Ve.CustomLayout, te = o.actionsMaxCount, $ = H.filter((se) => se.config?.display !== !1), Z = $.length > te, ie = Z ? $.slice(0, te - 1) : $;
|
|
4933
|
-
let
|
|
4933
|
+
let de = 0;
|
|
4934
4934
|
if (ie.forEach((se, me) => {
|
|
4935
4935
|
const Ee = fn(se.config?.label || se.label || "") || 0;
|
|
4936
|
-
|
|
4936
|
+
de += Ee + (me === 0 ? 24 : 12);
|
|
4937
4937
|
}), Z) {
|
|
4938
4938
|
const se = (fn("更多") || 0) + 12;
|
|
4939
|
-
|
|
4939
|
+
de += se;
|
|
4940
4940
|
}
|
|
4941
|
-
const
|
|
4941
|
+
const re = Math.max(80, de) + "px";
|
|
4942
4942
|
return {
|
|
4943
4943
|
field: "__actions__",
|
|
4944
4944
|
title: o.actionsLabel,
|
|
4945
|
-
width:
|
|
4946
|
-
maxWidth:
|
|
4947
|
-
minWidth:
|
|
4945
|
+
width: re,
|
|
4946
|
+
maxWidth: re,
|
|
4947
|
+
minWidth: re,
|
|
4948
4948
|
disableColumnResize: !0,
|
|
4949
4949
|
disableSelect: !0,
|
|
4950
4950
|
customLayout: (se) => {
|
|
@@ -5020,20 +5020,20 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5020
5020
|
}
|
|
5021
5021
|
};
|
|
5022
5022
|
}, ze = (H, L) => {
|
|
5023
|
-
const { dataValue: Y, table: te, col: $, row: Z, value: ie } = H,
|
|
5023
|
+
const { dataValue: Y, table: te, col: $, row: Z, value: ie } = H, de = H.rect ?? te?.getCellRect?.($, Z) ?? {
|
|
5024
5024
|
width: 0,
|
|
5025
5025
|
height: 0
|
|
5026
|
-
},
|
|
5026
|
+
}, re = te?.getBodyField?.($, Z), se = te?.options?.columns || [], me = (re ? Bt(se, re) : null)?.style?.textAlign || "left", Ee = 8, Ie = Math.max(0, de.width - Ee * 2);
|
|
5027
5027
|
let Me = ie ?? Y;
|
|
5028
5028
|
Me == null && (Me = "");
|
|
5029
5029
|
const Ge = ke(typeof Me == "object" ? JSON.stringify(Me) : String(Me), Ie);
|
|
5030
5030
|
let Be = Ee, _e = "left";
|
|
5031
|
-
return me === "center" ? (Be =
|
|
5031
|
+
return me === "center" ? (Be = de.width / 2, _e = "center") : me === "right" && (Be = Math.max(Ee, de.width - Ee), _e = "right"), {
|
|
5032
5032
|
elements: [{
|
|
5033
5033
|
type: "text",
|
|
5034
5034
|
text: Ge,
|
|
5035
5035
|
x: Be,
|
|
5036
|
-
y:
|
|
5036
|
+
y: de.height / 2,
|
|
5037
5037
|
fontSize: 14,
|
|
5038
5038
|
fill: "#1d2129",
|
|
5039
5039
|
textAlign: _e,
|
|
@@ -5043,9 +5043,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5043
5043
|
};
|
|
5044
5044
|
}, Oe = (H, L) => {
|
|
5045
5045
|
const { dataValue: Y, rect: te, table: $, col: Z, row: ie } = H;
|
|
5046
|
-
let
|
|
5047
|
-
Y || (
|
|
5048
|
-
const se = ua(
|
|
5046
|
+
let de = "mdi:toggle-switch", re = "#165dff";
|
|
5047
|
+
Y || (de = "mdi:toggle-switch-off", re = "#e5e6eb");
|
|
5048
|
+
const se = ua(de), me = se?.body?.replace(/currentColor/g, re), Ee = [], Ie = $?.getBodyField?.(Z, ie), Me = $?.options?.columns || [], Ge = Ie ? Bt(Me, Ie) : null, Be = 8, _e = 40;
|
|
5049
5049
|
let Je = Be;
|
|
5050
5050
|
return Ge?.style?.textAlign === "center" ? Je = Math.max(Be, (te.width - _e) / 2) : Ge?.style?.textAlign === "right" && (Je = Math.max(Be, te.width - _e - Be)), Ee.push({
|
|
5051
5051
|
type: "icon",
|
|
@@ -5059,9 +5059,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5059
5059
|
expectedHeight: un
|
|
5060
5060
|
};
|
|
5061
5061
|
}, et = (H, L) => {
|
|
5062
|
-
const { dataValue: Y, rect: te } = H, $ = Number(Y) || 0, Z = 5, ie = 20,
|
|
5062
|
+
const { dataValue: Y, rect: te } = H, $ = Number(Y) || 0, Z = 5, ie = 20, de = 4, re = 8, se = (te.height - ie) / 2, me = [], Ee = ua("mdi:star"), Ie = ua("mdi:star-half-full"), Me = ua("mdi:star-outline"), Ge = "#f7ba2a", Be = "#e5e6eb";
|
|
5063
5063
|
for (let _e = 0; _e < Z; _e++) {
|
|
5064
|
-
const Je =
|
|
5064
|
+
const Je = re + _e * (ie + de), Xe = se;
|
|
5065
5065
|
if ($ >= _e + 1) {
|
|
5066
5066
|
const rt = Ee?.body?.replace(/currentColor/g, Ge);
|
|
5067
5067
|
me.push({
|
|
@@ -5099,9 +5099,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5099
5099
|
expectedHeight: un
|
|
5100
5100
|
};
|
|
5101
5101
|
}, ut = (H, L) => {
|
|
5102
|
-
const { dataValue: Y, rect: te, table: $, col: Z, row: ie } = H,
|
|
5103
|
-
config:
|
|
5104
|
-
getCompConfig:
|
|
5102
|
+
const { dataValue: Y, rect: te, table: $, col: Z, row: ie } = H, de = $.getBodyField(Z, ie), re = Bt($.options?.columns || [], de), se = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, me = L || bn({
|
|
5103
|
+
config: re?._compConfig,
|
|
5104
|
+
getCompConfig: re?._getCompConfig,
|
|
5105
5105
|
formData: l || {},
|
|
5106
5106
|
getTableData: Rn,
|
|
5107
5107
|
row: se
|
|
@@ -5161,9 +5161,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5161
5161
|
elements: [],
|
|
5162
5162
|
expectedHeight: un
|
|
5163
5163
|
};
|
|
5164
|
-
const
|
|
5165
|
-
config:
|
|
5166
|
-
getCompConfig:
|
|
5164
|
+
const de = $.getBodyField(Z, ie), re = Bt($.options?.columns || [], de), se = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, me = L || bn({
|
|
5165
|
+
config: re?._compConfig,
|
|
5166
|
+
getCompConfig: re?._getCompConfig,
|
|
5167
5167
|
formData: l || {},
|
|
5168
5168
|
getTableData: Rn,
|
|
5169
5169
|
row: se
|
|
@@ -5203,7 +5203,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5203
5203
|
expectedHeight: Math.max(un, Ee)
|
|
5204
5204
|
};
|
|
5205
5205
|
}, Ye = (H, L) => {
|
|
5206
|
-
const { dataValue: Y, rect: te, table: $, col: Z, row: ie, value:
|
|
5206
|
+
const { dataValue: Y, rect: te, table: $, col: Z, row: ie, value: de } = H, re = $.getBodyField(Z, ie), se = Bt($.options?.columns || [], re), me = $.getCellOriginRecord?.(Z, ie) || $.getRecordByCell?.(Z, ie) || {}, Ee = L || bn({
|
|
5207
5207
|
config: se?._compConfig,
|
|
5208
5208
|
getCompConfig: se?._getCompConfig,
|
|
5209
5209
|
formData: l || {},
|
|
@@ -5212,7 +5212,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5212
5212
|
}) || {}, Ie = se?.style?.textAlign || "left", Me = c({
|
|
5213
5213
|
config: Ee,
|
|
5214
5214
|
row: me,
|
|
5215
|
-
value: se._fieldFormat ?
|
|
5215
|
+
value: se._fieldFormat ? de : Y
|
|
5216
5216
|
});
|
|
5217
5217
|
if (Me.length === 0) return {
|
|
5218
5218
|
elements: [],
|
|
@@ -5281,12 +5281,12 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5281
5281
|
H = H.replace("#", ""), H.length === 3 && (H = H.split("").map(($) => $ + $).join(""));
|
|
5282
5282
|
const L = parseInt(H.substring(0, 2), 16), Y = parseInt(H.substring(2, 4), 16), te = parseInt(H.substring(4, 6), 16);
|
|
5283
5283
|
if ((L * 299 + Y * 587 + te * 114) / 1e3 >= 128) {
|
|
5284
|
-
const $ = L / 255, Z = Y / 255, ie = te / 255,
|
|
5284
|
+
const $ = L / 255, Z = Y / 255, ie = te / 255, de = Math.max($, Z, ie), re = Math.min($, Z, ie);
|
|
5285
5285
|
let se = 0, me = 0;
|
|
5286
|
-
const Ee = (
|
|
5287
|
-
if (
|
|
5288
|
-
const Xe =
|
|
5289
|
-
switch (me = Ee > 0.5 ? Xe / (2 -
|
|
5286
|
+
const Ee = (de + re) / 2;
|
|
5287
|
+
if (de !== re) {
|
|
5288
|
+
const Xe = de - re;
|
|
5289
|
+
switch (me = Ee > 0.5 ? Xe / (2 - de - re) : Xe / (de + re), de) {
|
|
5290
5290
|
case $:
|
|
5291
5291
|
se = (Z - ie) / Xe + (Z < ie ? 6 : 0);
|
|
5292
5292
|
break;
|
|
@@ -5311,13 +5311,13 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5311
5311
|
}
|
|
5312
5312
|
return "#ffffff";
|
|
5313
5313
|
}, Vt = (H) => {
|
|
5314
|
-
const { table: L, row: Y, col: te, rect: $, value: Z } = H, { Group: ie, Text:
|
|
5314
|
+
const { table: L, row: Y, col: te, rect: $, value: Z } = H, { Group: ie, Text: de } = Ve.CustomLayout, re = L.getBodyField(te, Y), se = Bt(L.options?.columns || [], re), me = se?._compConfig || {}, Ee = new ie({
|
|
5315
5315
|
height: $.height,
|
|
5316
5316
|
width: $.width,
|
|
5317
5317
|
display: "flex",
|
|
5318
5318
|
alignItems: "center",
|
|
5319
5319
|
justifyContent: se.style?.textAlign === "center" ? "center" : se.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
5320
|
-
}), Ie = "#165dff", Me = new
|
|
5320
|
+
}), Ie = "#165dff", Me = new de({
|
|
5321
5321
|
text: String(Z ?? ""),
|
|
5322
5322
|
fontSize: 14,
|
|
5323
5323
|
fill: Ie,
|
|
@@ -5347,7 +5347,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5347
5347
|
renderDefault: !1
|
|
5348
5348
|
};
|
|
5349
5349
|
}, it = (H) => {
|
|
5350
|
-
const { table: L, row: Y, col: te, rect: $ } = H, { height: Z, width: ie } = $ ?? L.getCellRect(te, Y), { Group:
|
|
5350
|
+
const { table: L, row: Y, col: te, rect: $ } = H, { height: Z, width: ie } = $ ?? L.getCellRect(te, Y), { Group: de, CheckBox: re } = Ve.CustomLayout, se = L.getBodyField(te, Y), me = Bt(L.options?.columns || [], se), Ee = L.getCellOriginRecord(te, Y) || {}, Ie = me?.style?.textAlign === "right" ? "flex-end" : me?.style?.textAlign === "center" ? "center" : "flex-start", Me = me?.style?.textAlign === "right" ? "flex-end" : me?.style?.textAlign === "center" ? "center" : "flex-start", Ge = (qe, pe) => {
|
|
5351
5351
|
const ct = Ee?.[se];
|
|
5352
5352
|
Ee[se] = (Array.isArray(ct) ? ct : []).map((De, At) => At !== qe ? De : De && typeof De == "object" ? {
|
|
5353
5353
|
...De,
|
|
@@ -5355,7 +5355,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5355
5355
|
} : { ...pe });
|
|
5356
5356
|
}, Be = () => {
|
|
5357
5357
|
L.renderWithRecreateCells();
|
|
5358
|
-
}, _e = new
|
|
5358
|
+
}, _e = new de({
|
|
5359
5359
|
width: ie,
|
|
5360
5360
|
height: Math.max(Z || 0, 40),
|
|
5361
5361
|
display: "flex",
|
|
@@ -5368,7 +5368,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5368
5368
|
rootContainer: _e,
|
|
5369
5369
|
renderDefault: !1
|
|
5370
5370
|
};
|
|
5371
|
-
const Xe = Je, rt = new
|
|
5371
|
+
const Xe = Je, rt = new de({
|
|
5372
5372
|
width: ie,
|
|
5373
5373
|
display: "flex",
|
|
5374
5374
|
flexDirection: "row",
|
|
@@ -5384,7 +5384,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5384
5384
|
});
|
|
5385
5385
|
_e.add(rt);
|
|
5386
5386
|
for (let qe = 0; qe < Xe.length; qe++) {
|
|
5387
|
-
const pe = Xe[qe], ct = pe && typeof pe == "object" ? pe.label ?? pe.value ?? "" : pe ?? "", De = new
|
|
5387
|
+
const pe = Xe[qe], ct = pe && typeof pe == "object" ? pe.label ?? pe.value ?? "" : pe ?? "", De = new re({
|
|
5388
5388
|
text: {
|
|
5389
5389
|
text: String(ct),
|
|
5390
5390
|
fontSize: 12
|
|
@@ -5430,21 +5430,21 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5430
5430
|
elements: [],
|
|
5431
5431
|
expectedHeight: un
|
|
5432
5432
|
};
|
|
5433
|
-
const ie = L.getCellOriginRecord?.(Y, te) || L.getRecordByCell?.(Y, te) || {},
|
|
5433
|
+
const ie = L.getCellOriginRecord?.(Y, te) || L.getRecordByCell?.(Y, te) || {}, de = bn({
|
|
5434
5434
|
config: Z._compConfig,
|
|
5435
5435
|
getCompConfig: Z._getCompConfig,
|
|
5436
5436
|
formData: l || {},
|
|
5437
5437
|
getTableData: Rn,
|
|
5438
5438
|
row: ie
|
|
5439
|
-
}),
|
|
5439
|
+
}), re = zl({
|
|
5440
5440
|
type: Z._compType,
|
|
5441
5441
|
getCompType: Z._getCompType,
|
|
5442
|
-
config:
|
|
5442
|
+
config: de,
|
|
5443
5443
|
formData: l || {},
|
|
5444
5444
|
getTableData: Rn,
|
|
5445
5445
|
row: ie
|
|
5446
5446
|
});
|
|
5447
|
-
ie._compTypeByRender =
|
|
5447
|
+
ie._compTypeByRender = re;
|
|
5448
5448
|
const se = {
|
|
5449
5449
|
text: ze,
|
|
5450
5450
|
"j-switch": Oe,
|
|
@@ -5453,8 +5453,8 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5453
5453
|
"j-tag": Ye,
|
|
5454
5454
|
"j-input-tag": Ye,
|
|
5455
5455
|
"j-icon": $e
|
|
5456
|
-
}[
|
|
5457
|
-
return se ? se(H,
|
|
5456
|
+
}[re];
|
|
5457
|
+
return se ? se(H, de) : {
|
|
5458
5458
|
elements: [],
|
|
5459
5459
|
expectedHeight: un
|
|
5460
5460
|
};
|
|
@@ -5476,7 +5476,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5476
5476
|
});
|
|
5477
5477
|
}, he = (H) => {
|
|
5478
5478
|
const L = H.filter((Y) => Y.config?.display !== !1).map((Y) => {
|
|
5479
|
-
const { id: te, type: $, config: Z, getCompConfig: ie, getCompType:
|
|
5479
|
+
const { id: te, type: $, config: Z, getCompConfig: ie, getCompType: de, children: re, customLayout: se } = Y, { label: me, width: Ee, minWidth: Ie, maxWidth: Me, align: Ge, headerAlign: Be, fieldFormat: _e, editor: Je, frozen: Xe, ...rt } = Z || {}, qe = Be ?? Ge, pe = {
|
|
5480
5480
|
field: te,
|
|
5481
5481
|
title: me,
|
|
5482
5482
|
width: Ee,
|
|
@@ -5489,10 +5489,10 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5489
5489
|
_compType: $,
|
|
5490
5490
|
_compConfig: { ...rt },
|
|
5491
5491
|
_getCompConfig: ie,
|
|
5492
|
-
_getCompType:
|
|
5492
|
+
_getCompType: de,
|
|
5493
5493
|
frozen: Xe
|
|
5494
|
-
}, ct = typeof
|
|
5495
|
-
return (De || ct) && (pe.editor = De, m = !0), ct ? pe.customRender = en : ($ === "j-switch" && (pe.customRender = Oe), $ === "j-rate" && (pe.customRender = et), $ === "j-slider" && (pe.customRender = ut), ($ === "j-tag" || $ === "j-input-tag") && (pe.customRender = Ye), $ === "j-icon" && (pe.customRender = $e)), $ === "link" && (pe.customLayout = Vt), $ === "checkbox" && (pe.customLayout = it), $ === "j-switch" && (pe.minWidth = pe.minWidth || Ee, pe.maxWidth = pe.maxWidth || Ee), se && (pe.customLayout = aa), pe.fieldFormat = q,
|
|
5494
|
+
}, ct = typeof de == "function", De = xc($);
|
|
5495
|
+
return (De || ct) && (pe.editor = De, m = !0), ct ? pe.customRender = en : ($ === "j-switch" && (pe.customRender = Oe), $ === "j-rate" && (pe.customRender = et), $ === "j-slider" && (pe.customRender = ut), ($ === "j-tag" || $ === "j-input-tag") && (pe.customRender = Ye), $ === "j-icon" && (pe.customRender = $e)), $ === "link" && (pe.customLayout = Vt), $ === "checkbox" && (pe.customLayout = it), $ === "j-switch" && (pe.minWidth = pe.minWidth || Ee, pe.maxWidth = pe.maxWidth || Ee), se && (pe.customLayout = aa), pe.fieldFormat = q, re && re.length > 0 && (pe.columns = he(re)), pe;
|
|
5496
5496
|
});
|
|
5497
5497
|
return o.isTree && L.length > 0 && (L[0].tree = !0), L;
|
|
5498
5498
|
}, Q = (H, L) => {
|
|
@@ -5550,9 +5550,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5550
5550
|
return;
|
|
5551
5551
|
}
|
|
5552
5552
|
const te = lt(Y.columns), $ = [], Z = [], ie = [];
|
|
5553
|
-
if (te.forEach((
|
|
5554
|
-
const
|
|
5555
|
-
|
|
5553
|
+
if (te.forEach((de) => {
|
|
5554
|
+
const re = He(de);
|
|
5555
|
+
re === "left" ? $.push(de) : re === "right" ? Z.push(de) : ie.push(de);
|
|
5556
5556
|
}), ($.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ie.length > 0 ? 1 : 0) <= 1) {
|
|
5557
5557
|
Y.columns = te, L.push(Y);
|
|
5558
5558
|
return;
|
|
@@ -5584,16 +5584,16 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5584
5584
|
const $ = {};
|
|
5585
5585
|
let Z = he(H);
|
|
5586
5586
|
Z.length === 0 && (Z = [Te()]), Z = lt(Z);
|
|
5587
|
-
const ie = [],
|
|
5587
|
+
const ie = [], de = [], re = [];
|
|
5588
5588
|
Z.forEach((Ie) => {
|
|
5589
5589
|
const Me = He(Ie);
|
|
5590
|
-
Me === "left" ? ie.push(Ie) : Me === "right" ?
|
|
5590
|
+
Me === "left" ? ie.push(Ie) : Me === "right" ? de.push(Ie) : re.push(Ie);
|
|
5591
5591
|
});
|
|
5592
|
-
const se = Et(ie), me = Et(
|
|
5592
|
+
const se = Et(ie), me = Et(de);
|
|
5593
5593
|
x += se.left, b += me.right, Z = [
|
|
5594
5594
|
...ie,
|
|
5595
|
-
...
|
|
5596
|
-
...
|
|
5595
|
+
...re,
|
|
5596
|
+
...de
|
|
5597
5597
|
], L && (Z.unshift(ce(te)), x++), Y.length > 0 && (Z.push(Ce(Y)), b++), m && ($.editCellTrigger = "click", $.keyboardOptions = {
|
|
5598
5598
|
copySelected: !0,
|
|
5599
5599
|
cutSelected: !0,
|
|
@@ -5679,11 +5679,11 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5679
5679
|
}
|
|
5680
5680
|
}
|
|
5681
5681
|
}), g.on("click_cell", ($) => {
|
|
5682
|
-
const { col: Z, cellType: ie, originData:
|
|
5683
|
-
if (
|
|
5682
|
+
const { col: Z, cellType: ie, originData: de } = $, re = de || { children: g.records };
|
|
5683
|
+
if (re.__checkState = $.target.attribute.checked, $t.value) {
|
|
5684
5684
|
if (ie === "checkbox" && Z == 0) {
|
|
5685
5685
|
const se = pt();
|
|
5686
|
-
se.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = se.length,
|
|
5686
|
+
se.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = se.length, i("selectionChanged", {
|
|
5687
5687
|
isMultiple: !0,
|
|
5688
5688
|
selections: se,
|
|
5689
5689
|
record: re,
|
|
@@ -5751,28 +5751,28 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5751
5751
|
return [];
|
|
5752
5752
|
}
|
|
5753
5753
|
if (g.stateManager && g.stateManager.checkedState) {
|
|
5754
|
-
const H = [], L = /* @__PURE__ */ new Set(), Y = (
|
|
5755
|
-
if (!
|
|
5756
|
-
const
|
|
5757
|
-
if (
|
|
5758
|
-
if (L.has(
|
|
5759
|
-
L.add(
|
|
5754
|
+
const H = [], L = /* @__PURE__ */ new Set(), Y = (de) => {
|
|
5755
|
+
if (!de) return;
|
|
5756
|
+
const re = Nt(de);
|
|
5757
|
+
if (re) {
|
|
5758
|
+
if (L.has(re)) return;
|
|
5759
|
+
L.add(re);
|
|
5760
5760
|
const se = {};
|
|
5761
|
-
hi(se,
|
|
5761
|
+
hi(se, de, ["children"]), H.push(se);
|
|
5762
5762
|
} else console.warn("key is empty");
|
|
5763
|
-
}, te = (
|
|
5764
|
-
const
|
|
5765
|
-
!Array.isArray(
|
|
5763
|
+
}, te = (de) => {
|
|
5764
|
+
const re = de?.children;
|
|
5765
|
+
!Array.isArray(re) || re.length === 0 || re.forEach((se) => {
|
|
5766
5766
|
Y(se), te(se);
|
|
5767
5767
|
});
|
|
5768
|
-
}, $ = g.stateManager.checkedState, Z = g.records, ie = (
|
|
5769
|
-
const me = se[
|
|
5770
|
-
return
|
|
5768
|
+
}, $ = g.stateManager.checkedState, Z = g.records, ie = (de, re, se) => {
|
|
5769
|
+
const me = se[re[de]];
|
|
5770
|
+
return de < re.length - 1 && me?.children && me.children.length > 0 ? ie(de + 1, re, me.children || []) : me;
|
|
5771
5771
|
};
|
|
5772
|
-
return $.forEach((
|
|
5773
|
-
const se =
|
|
5772
|
+
return $.forEach((de, re) => {
|
|
5773
|
+
const se = de?._checkState;
|
|
5774
5774
|
if (se === "indeterminate" || se === !0) {
|
|
5775
|
-
const me = ie(0, (
|
|
5775
|
+
const me = ie(0, (re + "").split(",").map(Number), Z);
|
|
5776
5776
|
Y(me), se === !0 && te(me);
|
|
5777
5777
|
}
|
|
5778
5778
|
}), H;
|
|
@@ -5783,27 +5783,27 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5783
5783
|
if ($t.value || g.clearSelected(), o.rowKey) {
|
|
5784
5784
|
const L = new Set(H.map(Nt)), Y = "__checkState";
|
|
5785
5785
|
if (!$t.value) {
|
|
5786
|
-
const
|
|
5787
|
-
for (let
|
|
5788
|
-
const se = re
|
|
5786
|
+
const de = g.records;
|
|
5787
|
+
for (let re = 0; re < de.length; re++) {
|
|
5788
|
+
const se = de[re];
|
|
5789
5789
|
if (!L.has(Nt(se))) continue;
|
|
5790
|
-
const me = g.getTableIndexByRecordIndex(
|
|
5790
|
+
const me = g.getTableIndexByRecordIndex(re);
|
|
5791
5791
|
g.selectRow(me);
|
|
5792
5792
|
break;
|
|
5793
5793
|
}
|
|
5794
5794
|
return;
|
|
5795
5795
|
}
|
|
5796
|
-
const te = (
|
|
5797
|
-
|
|
5798
|
-
if (Array.isArray(
|
|
5799
|
-
te(
|
|
5800
|
-
const se =
|
|
5801
|
-
me.length == se.length ?
|
|
5802
|
-
} else
|
|
5796
|
+
const te = (de) => {
|
|
5797
|
+
de.forEach((re) => {
|
|
5798
|
+
if (Array.isArray(re?.children) && re.children.length > 0) {
|
|
5799
|
+
te(re.children);
|
|
5800
|
+
const se = re.children, me = se.filter((Ie) => Ie?.[Y] === !0), Ee = se.filter((Ie) => Ie?.[Y] === !1);
|
|
5801
|
+
me.length == se.length ? re[Y] = !0 : Ee.length == se.length ? re[Y] = !1 : re[Y] = "indeterminate", re[Y] === "indeterminate" && (re.hierarchyState = "expand");
|
|
5802
|
+
} else re[Y] = !!L.has(Nt(re));
|
|
5803
5803
|
});
|
|
5804
5804
|
}, $ = g.records;
|
|
5805
|
-
o.isTree ? te($) : $.forEach((
|
|
5806
|
-
|
|
5805
|
+
o.isTree ? te($) : $.forEach((de) => {
|
|
5806
|
+
de[Y] = L.has(Nt(de));
|
|
5807
5807
|
});
|
|
5808
5808
|
const Z = In();
|
|
5809
5809
|
Z.records = $, g.updateOption(Z, {
|
|
@@ -5811,7 +5811,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5811
5811
|
clearRowHeightCache: !1
|
|
5812
5812
|
}), o.heightMode === "auto" && (d.value = g.getAllRowsHeight());
|
|
5813
5813
|
const ie = g.getAllBodyCells(1);
|
|
5814
|
-
for (let
|
|
5814
|
+
for (let de = 0; de < ie.length; de++) ie[de][0].originData[Y] == !0 && g.setCellCheckboxState(0, de + 1, !0);
|
|
5815
5815
|
g.renderWithRecreateCells();
|
|
5816
5816
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
5817
5817
|
}, Gt = (H) => {
|
|
@@ -5978,7 +5978,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5978
5978
|
key: 0,
|
|
5979
5979
|
class: "j-table-dropdown",
|
|
5980
5980
|
style: Pe(C.value),
|
|
5981
|
-
onMouseenter:
|
|
5981
|
+
onMouseenter: ue,
|
|
5982
5982
|
onMouseleave: D
|
|
5983
5983
|
}, [(_(!0), O(be, null, Ae(E.value, (Z) => (_(), O("div", {
|
|
5984
5984
|
key: Z.id,
|
|
@@ -6170,7 +6170,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6170
6170
|
}, J = j(() => a.steps.map((ne) => ({
|
|
6171
6171
|
title: ne,
|
|
6172
6172
|
disabled: !0
|
|
6173
|
-
}))),
|
|
6173
|
+
}))), ue = function(ne) {
|
|
6174
6174
|
a.autoHeight || (p.pageX = ne.pageX, p.pageY = ne.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = D, document.onmousemove = ee));
|
|
6175
6175
|
}, D = () => {
|
|
6176
6176
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
@@ -6228,7 +6228,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6228
6228
|
}, {
|
|
6229
6229
|
default: N(() => [z("div", {
|
|
6230
6230
|
class: "j-dialog-header",
|
|
6231
|
-
onMousedown:
|
|
6231
|
+
onMousedown: ue
|
|
6232
6232
|
}, [z("div", {
|
|
6233
6233
|
class: "j-dialog-header-left",
|
|
6234
6234
|
title: X(i)(e.title || ""),
|
|
@@ -6451,7 +6451,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6451
6451
|
showLoading: m,
|
|
6452
6452
|
hideLoading: w
|
|
6453
6453
|
}), (A, U) => {
|
|
6454
|
-
const V = B("el-step"), W = B("el-steps"), T = B("j-button"), S = B("el-space"), F = B("el-divider"), J = B("el-dialog"),
|
|
6454
|
+
const V = B("el-step"), W = B("el-steps"), T = B("j-button"), S = B("el-space"), F = B("el-divider"), J = B("el-dialog"), ue = ki("loading");
|
|
6455
6455
|
return _(), I(J, {
|
|
6456
6456
|
modelValue: r.value,
|
|
6457
6457
|
"onUpdate:modelValue": U[0] || (U[0] = (D) => r.value = D),
|
|
@@ -6548,7 +6548,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6548
6548
|
]),
|
|
6549
6549
|
_: 1
|
|
6550
6550
|
})])
|
|
6551
|
-
]), z("div", Sp, [Ke(A.$slots, "default")])], 8, yp)), [[
|
|
6551
|
+
]), z("div", Sp, [Ke(A.$slots, "default")])], 8, yp)), [[ue, s.value]])]),
|
|
6552
6552
|
_: 3
|
|
6553
6553
|
}, 8, ["modelValue", "destroy-on-close"]);
|
|
6554
6554
|
};
|
|
@@ -6713,7 +6713,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6713
6713
|
showLoading: u,
|
|
6714
6714
|
hideLoading: f
|
|
6715
6715
|
}), (A, U) => {
|
|
6716
|
-
const V = B("el-input"), W = B("j-button"), T = B("el-space"), S = B("el-step"), F = B("el-steps"), J = B("el-drawer"),
|
|
6716
|
+
const V = B("el-input"), W = B("j-button"), T = B("el-space"), S = B("el-step"), F = B("el-steps"), J = B("el-drawer"), ue = ki("loading");
|
|
6717
6717
|
return _(), I(J, {
|
|
6718
6718
|
modelValue: c.value,
|
|
6719
6719
|
"onUpdate:modelValue": U[0] || (U[0] = (D) => c.value = D),
|
|
@@ -6805,7 +6805,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6805
6805
|
}, null, 8, ["title"]))), 128))]),
|
|
6806
6806
|
_: 1
|
|
6807
6807
|
}, 8, ["active"])], 4)])) : G("", !0)
|
|
6808
|
-
], 10, Tp)), [[
|
|
6808
|
+
], 10, Tp)), [[ue, l.value]])]),
|
|
6809
6809
|
_: 3
|
|
6810
6810
|
}, 8, [
|
|
6811
6811
|
"modelValue",
|
|
@@ -7721,7 +7721,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7721
7721
|
});
|
|
7722
7722
|
}, J = async (oe) => {
|
|
7723
7723
|
await S(oe) && F(oe);
|
|
7724
|
-
},
|
|
7724
|
+
}, ue = P(!1), D = P(""), ee = P(""), ge = P(!1), Se = P(!1);
|
|
7725
7725
|
let ne = null;
|
|
7726
7726
|
const Ce = P(Yo(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ze = (oe) => {
|
|
7727
7727
|
if (oe.isPreview === !1 && !n.isUploadImg) {
|
|
@@ -7729,14 +7729,14 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7729
7729
|
return;
|
|
7730
7730
|
}
|
|
7731
7731
|
const ke = oe.name.split(".")[oe.name.split(".").length - 1];
|
|
7732
|
-
switch (ne = oe,
|
|
7732
|
+
switch (ne = oe, ue.value = !1, D.value = oe.name, ke.toLowerCase()) {
|
|
7733
7733
|
case "jpg":
|
|
7734
7734
|
case "gif":
|
|
7735
7735
|
case "png":
|
|
7736
7736
|
case "bmp":
|
|
7737
7737
|
case "jpeg":
|
|
7738
7738
|
case "svg":
|
|
7739
|
-
|
|
7739
|
+
ue.value = !0, ee.value = oe.url, Se.value = !1, ge.value = !0;
|
|
7740
7740
|
break;
|
|
7741
7741
|
default:
|
|
7742
7742
|
if (n.isNotApi) {
|
|
@@ -7863,7 +7863,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7863
7863
|
"has-btns": !!X(s),
|
|
7864
7864
|
onOk: et
|
|
7865
7865
|
}, {
|
|
7866
|
-
default: N(() => [
|
|
7866
|
+
default: N(() => [ue.value && ee.value ? (_(), O("div", cg, [z("img", {
|
|
7867
7867
|
width: "100%",
|
|
7868
7868
|
style: { "max-width": "1024px" },
|
|
7869
7869
|
src: ee.value,
|
|
@@ -11018,7 +11018,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11018
11018
|
}), jt;
|
|
11019
11019
|
}, y = j(() => R(i.columns, ut.value)), k = j(() => Cf(i.columns, (xe) => xe.config.label)), C = P(""), E = j(() => k.value.some((xe) => xe.config?.filter?.isSearchKeyword)), M = P(), A = P(!0), U = P([]), V = j(() => A.value ? "搜索全部" : `搜索范围:${k.value.filter((xe) => U.value.includes(xe.id)).map((xe) => xe.config?.label).join("、")}`), W = () => {
|
|
11020
11020
|
M.value.init();
|
|
11021
|
-
}, T = P(), S = P(!1), F = P(!1), J = P(!1),
|
|
11021
|
+
}, T = P(), S = P(!1), F = P(!1), J = P(!1), ue = P([]), D = P("and"), ee = P(), ge = P(!1), Se = P([]), ne = () => {
|
|
11022
11022
|
ee.value.init(Se.value);
|
|
11023
11023
|
}, Ce = (xe) => {
|
|
11024
11024
|
Se.value = xe, ge.value = !1, He();
|
|
@@ -11132,7 +11132,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11132
11132
|
xe && (ce = xe), ce && (Re.query = ce);
|
|
11133
11133
|
try {
|
|
11134
11134
|
const vt = {};
|
|
11135
|
-
vt.rel = D.value, vt.cond = (T.value?.getSearchFields?.() ||
|
|
11135
|
+
vt.rel = D.value, vt.cond = (T.value?.getSearchFields?.() || ue.value).filter((ve) => ve.value !== void 0 && ve.value !== null && ve.value !== "" || ["empty", "not_empty"].includes(ve.method)).map((ve) => ({
|
|
11136
11136
|
field: ve.field,
|
|
11137
11137
|
method: ve.method,
|
|
11138
11138
|
value: ve.value,
|
|
@@ -11291,7 +11291,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11291
11291
|
"onUpdate:isPin": Re[3] || (Re[3] = (Ze) => S.value = Ze),
|
|
11292
11292
|
relation: D.value,
|
|
11293
11293
|
"onUpdate:relation": Re[4] || (Re[4] = (Ze) => D.value = Ze),
|
|
11294
|
-
"search-field-list":
|
|
11294
|
+
"search-field-list": ue.value,
|
|
11295
11295
|
columns: k.value,
|
|
11296
11296
|
onFilter: He,
|
|
11297
11297
|
onClose: Re[5] || (Re[5] = (Ze) => F.value = !1)
|
|
@@ -11452,7 +11452,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11452
11452
|
"onUpdate:isPin": Re[10] || (Re[10] = (Ze) => S.value = Ze),
|
|
11453
11453
|
relation: D.value,
|
|
11454
11454
|
"onUpdate:relation": Re[11] || (Re[11] = (Ze) => D.value = Ze),
|
|
11455
|
-
"search-field-list":
|
|
11455
|
+
"search-field-list": ue.value,
|
|
11456
11456
|
columns: k.value,
|
|
11457
11457
|
onFilter: He
|
|
11458
11458
|
}, null, 8, [
|
|
@@ -11710,7 +11710,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11710
11710
|
setCheck: m,
|
|
11711
11711
|
getCheck: w
|
|
11712
11712
|
}), (W, T) => {
|
|
11713
|
-
const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"),
|
|
11713
|
+
const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"), ue = B("el-dropdown-menu"), D = B("el-dropdown"), ee = B("el-tree"), ge = B("el-empty"), Se = ki("loading");
|
|
11714
11714
|
return Tn((_(), O("div", {
|
|
11715
11715
|
class: We([
|
|
11716
11716
|
"j-block",
|
|
@@ -11762,7 +11762,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11762
11762
|
trigger: "click",
|
|
11763
11763
|
onVisibleChange: (Oe) => U(Oe, ne.data)
|
|
11764
11764
|
}, {
|
|
11765
|
-
dropdown: N(() => [K(
|
|
11765
|
+
dropdown: N(() => [K(ue, null, {
|
|
11766
11766
|
default: N(() => [(_(!0), O(be, null, Ae(Ce.children, (Oe, et) => (_(), I(J, {
|
|
11767
11767
|
key: et,
|
|
11768
11768
|
disabled: Oe.disabled,
|
|
@@ -12012,10 +12012,10 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12012
12012
|
"j-input-cards"
|
|
12013
12013
|
].includes(E[q]?.type || "");
|
|
12014
12014
|
let J;
|
|
12015
|
-
const
|
|
12015
|
+
const ue = (q, he) => {
|
|
12016
12016
|
Object.keys(q).forEach((Q) => {
|
|
12017
12017
|
const ae = q[Q];
|
|
12018
|
-
he && (Q = he + "." + Q), ae != null && typeof ae == "object" && !ul(ae) &&
|
|
12018
|
+
he && (Q = he + "." + Q), ae != null && typeof ae == "object" && !ul(ae) && ue(ae, Q), y[Q] = ae;
|
|
12019
12019
|
});
|
|
12020
12020
|
}, D = (q, he) => {
|
|
12021
12021
|
let Q = q.id;
|
|
@@ -12055,7 +12055,7 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12055
12055
|
}, ge = async (q, he) => {
|
|
12056
12056
|
v.value = !1;
|
|
12057
12057
|
const Q = !!he;
|
|
12058
|
-
C.splice(0, C.length), A = {}, U = {}, V = [], J = he, fo(y), fo(E), M.value = {}, Q &&
|
|
12058
|
+
C.splice(0, C.length), A = {}, U = {}, V = [], J = he, fo(y), fo(E), M.value = {}, Q && ue(he, ""), ee(q, C, Q), W = ln(y), Mt(() => {
|
|
12059
12059
|
v.value = !0, Mt(() => {
|
|
12060
12060
|
Bt(a.config?.codeInit, {});
|
|
12061
12061
|
});
|
|
@@ -14744,7 +14744,7 @@ function Vc(e, t, n, a, o, i, l, r, s, c) {
|
|
|
14744
14744
|
]);
|
|
14745
14745
|
}
|
|
14746
14746
|
E = C - k;
|
|
14747
|
-
var V = _t.cos(k), W = _t.sin(k), T = _t.cos(C), S = _t.sin(C), F = _t.tan(E / 4), J = 4 / 3 * n * F,
|
|
14747
|
+
var V = _t.cos(k), W = _t.sin(k), T = _t.cos(C), S = _t.sin(C), F = _t.tan(E / 4), J = 4 / 3 * n * F, ue = 4 / 3 * a * F, D = [e, t], ee = [e + J * W, t - ue * V], ge = [r + J * S, s - ue * T], Se = [r, s];
|
|
14748
14748
|
if (ee[0] = 2 * D[0] - ee[0], ee[1] = 2 * D[1] - ee[1], c) return [
|
|
14749
14749
|
ee,
|
|
14750
14750
|
ge,
|
|
@@ -17264,37 +17264,37 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17264
17264
|
}
|
|
17265
17265
|
function p(T, S, F, J) {
|
|
17266
17266
|
F = d(F);
|
|
17267
|
-
const
|
|
17268
|
-
return Ue(T,
|
|
17267
|
+
const ue = $l(S, F, J);
|
|
17268
|
+
return Ue(T, ue), ue;
|
|
17269
17269
|
}
|
|
17270
17270
|
function g(T, S, F) {
|
|
17271
17271
|
return p(T, S, F, 5);
|
|
17272
17272
|
}
|
|
17273
|
-
function v(T, S, F, J,
|
|
17274
|
-
ys(J) && (
|
|
17273
|
+
function v(T, S, F, J, ue) {
|
|
17274
|
+
ys(J) && (ue = J, J = 0), J = J || 0, ue = u(ue, {
|
|
17275
17275
|
stroke: s,
|
|
17276
17276
|
strokeWidth: 2,
|
|
17277
17277
|
fill: r
|
|
17278
|
-
}),
|
|
17278
|
+
}), ue.fill === "none" && delete ue.fillOpacity;
|
|
17279
17279
|
const D = S / 2, ee = F / 2, ge = Fe("circle");
|
|
17280
17280
|
return je(ge, {
|
|
17281
17281
|
cx: D,
|
|
17282
17282
|
cy: ee,
|
|
17283
17283
|
r: Math.round((S + F) / 4 - J)
|
|
17284
|
-
}), je(ge,
|
|
17284
|
+
}), je(ge, ue), Ue(T, ge), ge;
|
|
17285
17285
|
}
|
|
17286
|
-
function b(T, S, F, J,
|
|
17287
|
-
ys(
|
|
17286
|
+
function b(T, S, F, J, ue, D) {
|
|
17287
|
+
ys(ue) && (D = ue, ue = 0), ue = ue || 0, D = u(D, {
|
|
17288
17288
|
stroke: s,
|
|
17289
17289
|
strokeWidth: 2,
|
|
17290
17290
|
fill: r
|
|
17291
17291
|
});
|
|
17292
17292
|
const ee = Fe("rect");
|
|
17293
17293
|
return je(ee, {
|
|
17294
|
-
x:
|
|
17295
|
-
y:
|
|
17296
|
-
width: S -
|
|
17297
|
-
height: F -
|
|
17294
|
+
x: ue,
|
|
17295
|
+
y: ue,
|
|
17296
|
+
width: S - ue * 2,
|
|
17297
|
+
height: F - ue * 2,
|
|
17298
17298
|
rx: J,
|
|
17299
17299
|
ry: J
|
|
17300
17300
|
}), je(ee, D), Ue(T, ee), ee;
|
|
@@ -17308,9 +17308,9 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17308
17308
|
return je(J, { d: S }), je(J, F), Ue(T, J), J;
|
|
17309
17309
|
}
|
|
17310
17310
|
function m(T, S, F, J) {
|
|
17311
|
-
const
|
|
17311
|
+
const ue = S / 2, D = F / 2, ee = [
|
|
17312
17312
|
{
|
|
17313
|
-
x:
|
|
17313
|
+
x: ue,
|
|
17314
17314
|
y: 0
|
|
17315
17315
|
},
|
|
17316
17316
|
{
|
|
@@ -17318,7 +17318,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17318
17318
|
y: D
|
|
17319
17319
|
},
|
|
17320
17320
|
{
|
|
17321
|
-
x:
|
|
17321
|
+
x: ue,
|
|
17322
17322
|
y: F
|
|
17323
17323
|
},
|
|
17324
17324
|
{
|
|
@@ -17365,21 +17365,21 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17365
17365
|
}
|
|
17366
17366
|
function C(T, S, F) {
|
|
17367
17367
|
const J = F && F.indexOf("SubProcessMarker") !== -1;
|
|
17368
|
-
let
|
|
17369
|
-
J ?
|
|
17368
|
+
let ue;
|
|
17369
|
+
J ? ue = {
|
|
17370
17370
|
seq: -21,
|
|
17371
17371
|
parallel: -22,
|
|
17372
17372
|
compensation: -42,
|
|
17373
17373
|
loop: -18,
|
|
17374
17374
|
adhoc: 10
|
|
17375
|
-
} :
|
|
17375
|
+
} : ue = {
|
|
17376
17376
|
seq: -3,
|
|
17377
17377
|
parallel: -6,
|
|
17378
17378
|
compensation: -27,
|
|
17379
17379
|
loop: 0,
|
|
17380
17380
|
adhoc: 10
|
|
17381
17381
|
}, Hw(F, (D) => {
|
|
17382
|
-
f(D)(T, S,
|
|
17382
|
+
f(D)(T, S, ue);
|
|
17383
17383
|
});
|
|
17384
17384
|
}
|
|
17385
17385
|
function E(T) {
|
|
@@ -17389,7 +17389,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17389
17389
|
const { ref: F = {
|
|
17390
17390
|
x: 0,
|
|
17391
17391
|
y: 0
|
|
17392
|
-
}, scale: J = 1, element:
|
|
17392
|
+
}, scale: J = 1, element: ue, parentGfx: D = a._svg } = S, ee = Fe("marker", {
|
|
17393
17393
|
id: T,
|
|
17394
17394
|
viewBox: "0 0 20 20",
|
|
17395
17395
|
refX: F.x,
|
|
@@ -17398,21 +17398,21 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17398
17398
|
markerHeight: 20 * J,
|
|
17399
17399
|
orient: "auto"
|
|
17400
17400
|
});
|
|
17401
|
-
Ue(ee,
|
|
17401
|
+
Ue(ee, ue);
|
|
17402
17402
|
let ge = Wt(":scope > defs", D);
|
|
17403
17403
|
ge || (ge = Fe("defs"), Ue(D, ge)), Ue(ge, ee);
|
|
17404
17404
|
}
|
|
17405
17405
|
function A(T, S, F, J) {
|
|
17406
|
-
const
|
|
17407
|
-
return U(T,
|
|
17406
|
+
const ue = S + "-" + E(F) + "-" + E(J) + "-" + qc();
|
|
17407
|
+
return U(T, ue, S, F, J), "url(#" + ue + ")";
|
|
17408
17408
|
}
|
|
17409
|
-
function U(T, S, F, J,
|
|
17409
|
+
function U(T, S, F, J, ue) {
|
|
17410
17410
|
F === "sequenceflow-end" && M(S, {
|
|
17411
17411
|
element: Fe("path", {
|
|
17412
17412
|
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
17413
17413
|
...h({
|
|
17414
|
-
fill:
|
|
17415
|
-
stroke:
|
|
17414
|
+
fill: ue,
|
|
17415
|
+
stroke: ue,
|
|
17416
17416
|
strokeWidth: 1
|
|
17417
17417
|
})
|
|
17418
17418
|
}),
|
|
@@ -17429,7 +17429,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17429
17429
|
r: 3.5,
|
|
17430
17430
|
...h({
|
|
17431
17431
|
fill: J,
|
|
17432
|
-
stroke:
|
|
17432
|
+
stroke: ue,
|
|
17433
17433
|
strokeWidth: 1,
|
|
17434
17434
|
strokeDasharray: [1e4, 1]
|
|
17435
17435
|
})
|
|
@@ -17444,7 +17444,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17444
17444
|
d: "m 1 5 l 0 -3 l 7 3 l -7 3 z",
|
|
17445
17445
|
...h({
|
|
17446
17446
|
fill: J,
|
|
17447
|
-
stroke:
|
|
17447
|
+
stroke: ue,
|
|
17448
17448
|
strokeWidth: 1,
|
|
17449
17449
|
strokeDasharray: [1e4, 1]
|
|
17450
17450
|
})
|
|
@@ -17459,7 +17459,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17459
17459
|
d: "M 11 5 L 1 10 L 11 15",
|
|
17460
17460
|
...d({
|
|
17461
17461
|
fill: "none",
|
|
17462
|
-
stroke:
|
|
17462
|
+
stroke: ue,
|
|
17463
17463
|
strokeWidth: 1.5,
|
|
17464
17464
|
strokeDasharray: [1e4, 1]
|
|
17465
17465
|
})
|
|
@@ -17475,7 +17475,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17475
17475
|
d: "M 1 5 L 11 10 L 1 15",
|
|
17476
17476
|
...d({
|
|
17477
17477
|
fill: "none",
|
|
17478
|
-
stroke:
|
|
17478
|
+
stroke: ue,
|
|
17479
17479
|
strokeWidth: 1.5,
|
|
17480
17480
|
strokeDasharray: [1e4, 1]
|
|
17481
17481
|
})
|
|
@@ -17491,7 +17491,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17491
17491
|
d: "M 0 10 L 8 6 L 16 10 L 8 14 Z",
|
|
17492
17492
|
...h({
|
|
17493
17493
|
fill: J,
|
|
17494
|
-
stroke:
|
|
17494
|
+
stroke: ue
|
|
17495
17495
|
})
|
|
17496
17496
|
}),
|
|
17497
17497
|
ref: {
|
|
@@ -17504,7 +17504,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17504
17504
|
element: Fe("path", {
|
|
17505
17505
|
d: "M 6 4 L 10 16",
|
|
17506
17506
|
...h({
|
|
17507
|
-
stroke:
|
|
17507
|
+
stroke: ue,
|
|
17508
17508
|
fill: "none"
|
|
17509
17509
|
})
|
|
17510
17510
|
}),
|
|
@@ -17517,8 +17517,8 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17517
17517
|
});
|
|
17518
17518
|
}
|
|
17519
17519
|
function V(T, S, F, J) {
|
|
17520
|
-
const
|
|
17521
|
-
|
|
17520
|
+
const ue = c[S.type]?.icon || S.icon;
|
|
17521
|
+
ue && x(T, n.getScaledPath(ue, { abspos: {
|
|
17522
17522
|
x: F,
|
|
17523
17523
|
y: J
|
|
17524
17524
|
} }), {
|
|
@@ -17608,24 +17608,24 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17608
17608
|
return y(T, S, "center-middle"), C(T, S), J;
|
|
17609
17609
|
},
|
|
17610
17610
|
userTask(T, S) {
|
|
17611
|
-
const F = f("task")(T, S), J = 15,
|
|
17611
|
+
const F = f("task")(T, S), J = 15, ue = 12;
|
|
17612
17612
|
return x(T, n.getScaledPath("TASK_TYPE_USER_1", { abspos: {
|
|
17613
17613
|
x: J,
|
|
17614
|
-
y:
|
|
17614
|
+
y: ue
|
|
17615
17615
|
} }), {
|
|
17616
17616
|
strokeWidth: 0.5,
|
|
17617
17617
|
fill: dn(S, r),
|
|
17618
17618
|
stroke: bt(S, s)
|
|
17619
17619
|
}), x(T, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
|
|
17620
17620
|
x: J,
|
|
17621
|
-
y:
|
|
17621
|
+
y: ue
|
|
17622
17622
|
} }), {
|
|
17623
17623
|
strokeWidth: 0.5,
|
|
17624
17624
|
fill: dn(S, r),
|
|
17625
17625
|
stroke: bt(S, s)
|
|
17626
17626
|
}), x(T, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
|
|
17627
17627
|
x: J,
|
|
17628
|
-
y:
|
|
17628
|
+
y: ue
|
|
17629
17629
|
} }), {
|
|
17630
17630
|
strokeWidth: 0.5,
|
|
17631
17631
|
fill: bt(S, s),
|