@a2simcode/ui 0.0.117 → 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 +447 -446
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/examples/table/multiple.vue +10 -0
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -36,7 +36,7 @@ import Jd from "async-validator";
|
|
|
36
36
|
import { createEditor as Xd, createToolbar as qd } from "@wangeditor/editor";
|
|
37
37
|
import ac from "diagram-js";
|
|
38
38
|
import { assignStyle as xo, attr as pn, classes as Kt, clear as oc, closest as Al, delegate as Fn, domify as qt, event as nt, matches as Zd, query as Wt, queryAll as ll, remove as rl } from "min-dom";
|
|
39
|
-
import { assign as Le, bind as jl, debounce as Qd, every as Pl, filter as an, find as wn, flatten as ef, forEach as
|
|
39
|
+
import { assign as Le, bind as jl, debounce as Qd, every as Pl, filter as an, find as wn, flatten as ef, forEach as le, groupBy as Ol, has as ic, isArray as ot, isDefined as hn, isFunction as xn, isNil as kr, isNumber as Tt, isObject as on, isString as sl, isUndefined as tf, map as _o, matchPattern as di, omit as nf, pick as fi, reduce as cl, size as af, some as of, sortBy as mo, uniqueBy as lf, values as lc, without as rf } from "min-dash";
|
|
40
40
|
import { append as Ue, attr as je, classes as ft, clear as Hl, clone as rc, create as Fe, createTransform as uo, remove as Zt, transform as Il } from "tiny-svg";
|
|
41
41
|
import pa from "inherits";
|
|
42
42
|
import sf from "diagram-js-direct-editing";
|
|
@@ -468,22 +468,23 @@ var cc = (e, t, n, a) => {
|
|
|
468
468
|
const a = [];
|
|
469
469
|
return dc(a, e, t, "", n), a;
|
|
470
470
|
}, Ll = (e) => [
|
|
471
|
+
"j-autocomplete",
|
|
472
|
+
"j-checkbox",
|
|
473
|
+
"j-count",
|
|
474
|
+
"j-cascader-select",
|
|
475
|
+
"j-date",
|
|
476
|
+
"j-guid",
|
|
471
477
|
"j-input",
|
|
478
|
+
"j-number",
|
|
479
|
+
"j-radio",
|
|
480
|
+
"j-rate",
|
|
472
481
|
"j-textarea",
|
|
473
|
-
"j-select",
|
|
474
482
|
"j-tree-select",
|
|
475
|
-
"j-
|
|
476
|
-
"j-
|
|
483
|
+
"j-time",
|
|
484
|
+
"j-select",
|
|
477
485
|
"j-switch",
|
|
478
|
-
"j-number",
|
|
479
486
|
"j-slider-captcha",
|
|
480
|
-
"j-
|
|
481
|
-
"j-autocomplete",
|
|
482
|
-
"j-rate",
|
|
483
|
-
"j-slider",
|
|
484
|
-
"j-date",
|
|
485
|
-
"j-time",
|
|
486
|
-
"j-count"
|
|
487
|
+
"j-slider"
|
|
487
488
|
].includes(e) || e.indexOf("j-input") != -1, Sf = (e) => [
|
|
488
489
|
"j-input",
|
|
489
490
|
"j-textarea",
|
|
@@ -704,7 +705,7 @@ var Lf = async (e) => new Promise((t, n) => {
|
|
|
704
705
|
clear() {
|
|
705
706
|
this.events.clear();
|
|
706
707
|
}
|
|
707
|
-
}, VC = new pc(),
|
|
708
|
+
}, VC = new pc(), Lt = {
|
|
708
709
|
APP_PROVIDE: "jcode_app_provide",
|
|
709
710
|
FORM_PROVIDE: "jcode_form_provide",
|
|
710
711
|
TABLE_PROVIDE: "jcode_table_provide",
|
|
@@ -722,7 +723,7 @@ function jn(e, t) {
|
|
|
722
723
|
sd(e, t);
|
|
723
724
|
}
|
|
724
725
|
function kt() {
|
|
725
|
-
return An(
|
|
726
|
+
return An(Lt.APP_PROVIDE, {
|
|
726
727
|
t: (e, ...t) => {
|
|
727
728
|
if (!e) return "";
|
|
728
729
|
if (typeof e != "string") return e;
|
|
@@ -755,55 +756,55 @@ function kt() {
|
|
|
755
756
|
});
|
|
756
757
|
}
|
|
757
758
|
function NC(e) {
|
|
758
|
-
jn(
|
|
759
|
+
jn(Lt.APP_PROVIDE, e);
|
|
759
760
|
}
|
|
760
761
|
function ga() {
|
|
761
|
-
return An(
|
|
762
|
+
return An(Lt.FORM_PROVIDE, {});
|
|
762
763
|
}
|
|
763
764
|
function gc(e) {
|
|
764
|
-
jn(
|
|
765
|
+
jn(Lt.FORM_PROVIDE, e);
|
|
765
766
|
}
|
|
766
767
|
function zf() {
|
|
767
|
-
return An(
|
|
768
|
+
return An(Lt.TABLE_PROVIDE, {});
|
|
768
769
|
}
|
|
769
770
|
function Ei(e) {
|
|
770
|
-
jn(
|
|
771
|
+
jn(Lt.TABLE_PROVIDE, e);
|
|
771
772
|
}
|
|
772
773
|
function $f() {
|
|
773
|
-
return An(
|
|
774
|
+
return An(Lt.COMP_PROVIDE, {});
|
|
774
775
|
}
|
|
775
776
|
function vc(e) {
|
|
776
|
-
jn(
|
|
777
|
+
jn(Lt.COMP_PROVIDE, e);
|
|
777
778
|
}
|
|
778
779
|
function Co() {
|
|
779
|
-
return An(
|
|
780
|
+
return An(Lt.MENU_PROVIDE, {});
|
|
780
781
|
}
|
|
781
782
|
function Df(e) {
|
|
782
|
-
jn(
|
|
783
|
+
jn(Lt.MENU_PROVIDE, e);
|
|
783
784
|
}
|
|
784
785
|
function Ff() {
|
|
785
|
-
return An(
|
|
786
|
+
return An(Lt.H_MENU_PROVIDE, {});
|
|
786
787
|
}
|
|
787
788
|
function Vf(e) {
|
|
788
|
-
jn(
|
|
789
|
+
jn(Lt.H_MENU_PROVIDE, e);
|
|
789
790
|
}
|
|
790
791
|
function Nf() {
|
|
791
|
-
return An(
|
|
792
|
+
return An(Lt.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
|
|
792
793
|
}
|
|
793
794
|
function Wf(e) {
|
|
794
|
-
jn(
|
|
795
|
+
jn(Lt.AUTH_PAGE_PROVIDE, e);
|
|
795
796
|
}
|
|
796
797
|
function WC() {
|
|
797
|
-
return An(
|
|
798
|
+
return An(Lt.LAYER_PROVIDE, {});
|
|
798
799
|
}
|
|
799
800
|
function Uf(e) {
|
|
800
|
-
jn(
|
|
801
|
+
jn(Lt.LAYER_PROVIDE, e);
|
|
801
802
|
}
|
|
802
803
|
function Yf() {
|
|
803
|
-
return An(
|
|
804
|
+
return An(Lt.PAGE_PROVIDE, {});
|
|
804
805
|
}
|
|
805
806
|
function Kf(e) {
|
|
806
|
-
jn(
|
|
807
|
+
jn(Lt.PAGE_PROVIDE, e);
|
|
807
808
|
}
|
|
808
809
|
var Gf = /* @__PURE__ */ fe({
|
|
809
810
|
name: "JDynamicLayer",
|
|
@@ -4470,19 +4471,19 @@ var Xh = class {
|
|
|
4470
4471
|
"j-tree-select",
|
|
4471
4472
|
"j-checkbox"
|
|
4472
4473
|
].includes(n.type)) {
|
|
4473
|
-
const
|
|
4474
|
-
return !(n.type === "j-select" &&
|
|
4474
|
+
const D = { ...n.config || {} };
|
|
4475
|
+
return !(n.type === "j-select" && !D.multiple || n.type === "j-tree-select" && !D.multiple);
|
|
4475
4476
|
}
|
|
4476
4477
|
return !1;
|
|
4477
4478
|
}), R = j({
|
|
4478
4479
|
get() {
|
|
4479
|
-
let
|
|
4480
|
-
if (x ?
|
|
4480
|
+
let D;
|
|
4481
|
+
if (x ? D = x[n.id] : c ? D = c[n.id] : D = n.modelValue, D === void 0 && C.value === "j-tabs") {
|
|
4481
4482
|
if (y.value?.defaultValue) return y.value.defaultValue;
|
|
4482
4483
|
const ee = n.children.findIndex((ge) => ge.config?.active);
|
|
4483
4484
|
return ee > -1 ? "_tab" + ee : "_tab0";
|
|
4484
4485
|
}
|
|
4485
|
-
if (
|
|
4486
|
+
if (D === void 0 && C.value === "j-collapse") {
|
|
4486
4487
|
if (y.value?.defaultValue) return y.value.defaultValue;
|
|
4487
4488
|
const ee = n.children.map((ge, Se) => ({
|
|
4488
4489
|
item: ge,
|
|
@@ -4490,10 +4491,10 @@ var Xh = class {
|
|
|
4490
4491
|
})).filter(({ item: ge }) => ge.config?.active);
|
|
4491
4492
|
return y.value?.accordion ? ee.length > 0 ? "_collapse" + ee[0].index : "" : ee.map(({ index: ge }) => "_collapse" + ge);
|
|
4492
4493
|
}
|
|
4493
|
-
return w.value ?
|
|
4494
|
+
return w.value ? D ? D.split(",") : [] : D;
|
|
4494
4495
|
},
|
|
4495
|
-
set(
|
|
4496
|
-
|
|
4496
|
+
set(D) {
|
|
4497
|
+
D && w.value && (D = String(D || [])), x ? x[n.id] = D : c && (c[n.id] = D), a("update:modelValue", D);
|
|
4497
4498
|
}
|
|
4498
4499
|
}), y = j(() => bn({
|
|
4499
4500
|
config: n.config,
|
|
@@ -4508,46 +4509,46 @@ var Xh = class {
|
|
|
4508
4509
|
formData: c || {},
|
|
4509
4510
|
row: x,
|
|
4510
4511
|
getTableData: g
|
|
4511
|
-
})), C = j(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), E = (
|
|
4512
|
-
if (Object.prototype.hasOwnProperty.call(ee,
|
|
4513
|
-
if (ee.parentRow) return M(
|
|
4514
|
-
const ge = u[
|
|
4512
|
+
})), C = j(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), E = (D) => r(D, n.config || {}), M = (D, ee) => {
|
|
4513
|
+
if (Object.prototype.hasOwnProperty.call(ee, D)) return ee[D];
|
|
4514
|
+
if (ee.parentRow) return M(D, ee.parentRow);
|
|
4515
|
+
const ge = u[D];
|
|
4515
4516
|
if (ge && ge.config?.field) return M(ge.config?.field, ee);
|
|
4516
|
-
}, A = (
|
|
4517
|
-
if (
|
|
4518
|
-
return c && Object.prototype.hasOwnProperty.call(c,
|
|
4519
|
-
}, U = async (
|
|
4517
|
+
}, A = (D) => {
|
|
4518
|
+
if (D)
|
|
4519
|
+
return c && Object.prototype.hasOwnProperty.call(c, D) ? c[D] : M(D, n.config?.row || {});
|
|
4520
|
+
}, U = async (D) => {
|
|
4520
4521
|
let ee = null;
|
|
4521
4522
|
const ge = n.config?.dataCode, Se = n.config?.dataType;
|
|
4522
4523
|
if (!ge) return;
|
|
4523
4524
|
const ne = ln(n.config?.params) || {};
|
|
4524
4525
|
if (Se === "dataItem" && i)
|
|
4525
|
-
await i("dataItem", ge, void 0, !1), ee = l("dataItem", ge) || [],
|
|
4526
|
+
await i("dataItem", ge, void 0, !1), ee = l("dataItem", ge) || [], D.ids && (ee = ee.filter((Ce) => D.ids.split(",").includes(Ce[V.value.valueKey])));
|
|
4526
4527
|
else if (n.config?.upCtrl) {
|
|
4527
4528
|
const Ce = A(n.config?.upCtrl);
|
|
4528
4529
|
ne[n.config?.upKey || "param"] = Ce;
|
|
4529
4530
|
}
|
|
4530
4531
|
return Se === "dataSource" ? (n.config?.layerSearchInputList?.length > 0 && n.config?.layerSearchInputList.forEach((Ce) => {
|
|
4531
|
-
Qt(
|
|
4532
|
+
Qt(D[Ce.id]) || (ne[Ce.id] = D[Ce.id]);
|
|
4532
4533
|
}), n.config?.paramList?.length > 0 && n.config?.paramList.forEach((Ce) => {
|
|
4533
4534
|
!Qt(Ce.upId) && !Qt(Ce.upKey) && (ne[Ce.upKey] = A(Ce.upId));
|
|
4534
|
-
})) : Se === "dataItem" && n.config?.isKeyword &&
|
|
4535
|
+
})) : Se === "dataItem" && n.config?.isKeyword && D.layerKeyword && (ee = ee.filter((Ce) => !!(Ce.f_ItemValue.toLowerCase().includes(D.layerKeyword.toLowerCase()) || Ce.f_ItemName.toLowerCase().includes(D.layerKeyword.toLowerCase())))), D.param = JSON.stringify(ne), n.config?.isPage ? Se === "dataItem" ? ee = vf(D, ee) : (await i("dbsourcePages", ge, JSON.stringify(D), !1), ee = l("dbsourcePages", ge, { param: JSON.stringify(D) })) : Se === "dataSource" && (await i("dbsource", ge, JSON.stringify(ne), !1), ee = l("dbsource", ge, { param: JSON.stringify(ne) })), ee;
|
|
4535
4536
|
}, V = j(() => {
|
|
4536
|
-
const
|
|
4537
|
-
return C.value === "j-layer-form" && (
|
|
4537
|
+
const D = { ...y.value };
|
|
4538
|
+
return C.value === "j-layer-form" && (D.schema = n.children), C.value === "el-collapse-item" && D.label && (D.title = D.label, delete D.label), [
|
|
4538
4539
|
"j-input-cards",
|
|
4539
4540
|
"j-input-rows",
|
|
4540
4541
|
"j-table"
|
|
4541
|
-
].includes(k.value) && (console.log(n.children),
|
|
4542
|
+
].includes(k.value) && (console.log(n.children), D.columns = n.children.map((ee) => {
|
|
4542
4543
|
const ge = ee.config?.parentTableId;
|
|
4543
4544
|
return ge && ee.id && ee.id.startsWith(ge + ".") ? {
|
|
4544
4545
|
...ee,
|
|
4545
4546
|
id: ee.id.slice(ge.length + 1)
|
|
4546
4547
|
} : ee;
|
|
4547
|
-
})), n.isTableCell && (k.value === "j-checkbox" && (
|
|
4548
|
+
})), n.isTableCell && (k.value === "j-checkbox" && (D.multiple = !0), k.value === "j-select" && D.multiple && (D.collapseTags = !0, D.collapseTagsTooltip = !0), k.value === "j-switch" && (D.size = "small"), k.value === "j-textarea" && (D.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (D.loadLayerData = U, D.getText = E), D;
|
|
4548
4549
|
}), W = j(() => {
|
|
4549
4550
|
if (C.value === "j-layer-form" || C.value === "j-input-rows" || C.value === "j-input-cards") return {};
|
|
4550
|
-
const
|
|
4551
|
+
const D = {};
|
|
4551
4552
|
return n.children.forEach((ee, ge) => {
|
|
4552
4553
|
let Se = ee;
|
|
4553
4554
|
C.value === "j-tabs" && (Se = {
|
|
@@ -4564,11 +4565,11 @@ var Xh = class {
|
|
|
4564
4565
|
...ee.config || {},
|
|
4565
4566
|
name: "_collapse" + ge
|
|
4566
4567
|
}
|
|
4567
|
-
}, s == "form" && (Se.config.needRow = Se.config.needRow !== !1, Se.config.needFormItem = Se.config.needFormItem !== !1)), Se.slot ? (
|
|
4568
|
-
}),
|
|
4569
|
-
}), T = (
|
|
4568
|
+
}, s == "form" && (Se.config.needRow = Se.config.needRow !== !1, Se.config.needFormItem = Se.config.needFormItem !== !1)), Se.slot ? (D[Se.slot] = D[Se.slot] || [], D[Se.slot].push(Se)) : (D.default = D.default || [], D.default.push(Se));
|
|
4569
|
+
}), D;
|
|
4570
|
+
}), T = (D) => {
|
|
4570
4571
|
const ee = {
|
|
4571
|
-
|
|
4572
|
+
...D,
|
|
4572
4573
|
id: n.id,
|
|
4573
4574
|
formData: c,
|
|
4574
4575
|
row: x,
|
|
@@ -4579,21 +4580,21 @@ var Xh = class {
|
|
|
4579
4580
|
rowNum: n.rowNum
|
|
4580
4581
|
};
|
|
4581
4582
|
y.value?.change && y.value?.change(ee), b && b(ee), f && f(ee), a("change", ee);
|
|
4582
|
-
}, S = P(), F = P([]), J = (
|
|
4583
|
-
if (S.value && typeof S.value[
|
|
4584
|
-
console.warn(`方法 ${
|
|
4583
|
+
}, S = P(), F = P([]), J = (D, ...ee) => {
|
|
4584
|
+
if (S.value && typeof S.value[D] == "function") return S.value[D](...ee);
|
|
4585
|
+
console.warn(`方法 ${D} 不存在或不是函数`);
|
|
4585
4586
|
}, ue = () => {
|
|
4586
4587
|
if (F.value.forEach((ee) => ee()), F.value = [], !p) return;
|
|
4587
|
-
const
|
|
4588
|
-
F.value.push(
|
|
4588
|
+
const D = p(n.id, J);
|
|
4589
|
+
F.value.push(D);
|
|
4589
4590
|
};
|
|
4590
4591
|
return st(() => S.value, () => {
|
|
4591
4592
|
ue();
|
|
4592
4593
|
}), Ct(() => {
|
|
4593
4594
|
ue();
|
|
4594
4595
|
}), bo(() => {
|
|
4595
|
-
F.value.forEach((
|
|
4596
|
-
}), (
|
|
4596
|
+
F.value.forEach((D) => D()), F.value = [];
|
|
4597
|
+
}), (D, ee) => {
|
|
4597
4598
|
const ge = B("JComp"), Se = B("el-row");
|
|
4598
4599
|
return V.value.display != !1 && m.value ? (_(), I(Pa(C.value), Ne({
|
|
4599
4600
|
key: 0,
|
|
@@ -4884,10 +4885,10 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
4884
4885
|
let R = o.records.length, y = 45;
|
|
4885
4886
|
const k = P(!1), C = P({}), E = P([]), M = P(null), A = P(0);
|
|
4886
4887
|
let U = null, V = !1, W = !1;
|
|
4887
|
-
const T = (H, L, Y, te,
|
|
4888
|
+
const T = (H, L, Y, te, $) => {
|
|
4888
4889
|
E.value = H, M.value = L, A.value = Y, C.value = {
|
|
4889
4890
|
left: `${te}px`,
|
|
4890
|
-
top: `${
|
|
4891
|
+
top: `${$}px`
|
|
4891
4892
|
}, k.value = !0, V = !1, document.addEventListener("wheel", ee, { passive: !1 });
|
|
4892
4893
|
}, S = () => {
|
|
4893
4894
|
k.value = !1, V = !1, W = !1, J(), document.removeEventListener("wheel", ee);
|
|
@@ -4899,7 +4900,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
4899
4900
|
U && (clearTimeout(U), U = null);
|
|
4900
4901
|
}, ue = () => {
|
|
4901
4902
|
V = !0, J();
|
|
4902
|
-
},
|
|
4903
|
+
}, D = () => {
|
|
4903
4904
|
V = !1, F();
|
|
4904
4905
|
}, ee = (H) => {
|
|
4905
4906
|
H.preventDefault();
|
|
@@ -4912,8 +4913,8 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
4912
4913
|
let L = H.action.config?.display !== !1, Y = H.action.config?.disabled === !0;
|
|
4913
4914
|
const te = o.actionFilter;
|
|
4914
4915
|
if (te) try {
|
|
4915
|
-
const
|
|
4916
|
-
typeof
|
|
4916
|
+
const $ = te(H);
|
|
4917
|
+
typeof $ == "boolean" ? L = $ : $ && typeof $ == "object" && (typeof $.display == "boolean" && (L = $.display), typeof $.disabled == "boolean" && (Y = $.disabled));
|
|
4917
4918
|
} catch {
|
|
4918
4919
|
L = H.action.config?.display !== !1, Y = H.action.config?.disabled === !0;
|
|
4919
4920
|
}
|
|
@@ -4928,26 +4929,26 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
4928
4929
|
disabled: !0
|
|
4929
4930
|
}
|
|
4930
4931
|
} : H, Ce = (H) => {
|
|
4931
|
-
const { Group: L, Text: Y } = Ve.CustomLayout, te = o.actionsMaxCount,
|
|
4932
|
-
let
|
|
4933
|
-
if (ie.forEach((
|
|
4934
|
-
const Ee = fn(
|
|
4935
|
-
|
|
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 de = 0;
|
|
4934
|
+
if (ie.forEach((se, me) => {
|
|
4935
|
+
const Ee = fn(se.config?.label || se.label || "") || 0;
|
|
4936
|
+
de += Ee + (me === 0 ? 24 : 12);
|
|
4936
4937
|
}), Z) {
|
|
4937
|
-
const
|
|
4938
|
-
|
|
4938
|
+
const se = (fn("更多") || 0) + 12;
|
|
4939
|
+
de += se;
|
|
4939
4940
|
}
|
|
4940
|
-
const
|
|
4941
|
+
const re = Math.max(80, de) + "px";
|
|
4941
4942
|
return {
|
|
4942
4943
|
field: "__actions__",
|
|
4943
4944
|
title: o.actionsLabel,
|
|
4944
|
-
width:
|
|
4945
|
-
maxWidth:
|
|
4946
|
-
minWidth:
|
|
4945
|
+
width: re,
|
|
4946
|
+
maxWidth: re,
|
|
4947
|
+
minWidth: re,
|
|
4947
4948
|
disableColumnResize: !0,
|
|
4948
4949
|
disableSelect: !0,
|
|
4949
|
-
customLayout: (
|
|
4950
|
-
const { table: me, row: Ee, col: Ie } =
|
|
4950
|
+
customLayout: (se) => {
|
|
4951
|
+
const { table: me, row: Ee, col: Ie } = se, Me = me.getCellOriginRecord(Ie, Ee), Ge = me.getRecordIndexByCell(Ie, Ee), Be = $.map((pe) => {
|
|
4951
4952
|
const ct = Se({
|
|
4952
4953
|
action: pe,
|
|
4953
4954
|
record: Me,
|
|
@@ -5019,20 +5020,20 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5019
5020
|
}
|
|
5020
5021
|
};
|
|
5021
5022
|
}, ze = (H, L) => {
|
|
5022
|
-
const { dataValue: Y, table: te, col:
|
|
5023
|
+
const { dataValue: Y, table: te, col: $, row: Z, value: ie } = H, de = H.rect ?? te?.getCellRect?.($, Z) ?? {
|
|
5023
5024
|
width: 0,
|
|
5024
5025
|
height: 0
|
|
5025
|
-
},
|
|
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);
|
|
5026
5027
|
let Me = ie ?? Y;
|
|
5027
5028
|
Me == null && (Me = "");
|
|
5028
5029
|
const Ge = ke(typeof Me == "object" ? JSON.stringify(Me) : String(Me), Ie);
|
|
5029
5030
|
let Be = Ee, _e = "left";
|
|
5030
|
-
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"), {
|
|
5031
5032
|
elements: [{
|
|
5032
5033
|
type: "text",
|
|
5033
5034
|
text: Ge,
|
|
5034
5035
|
x: Be,
|
|
5035
|
-
y:
|
|
5036
|
+
y: de.height / 2,
|
|
5036
5037
|
fontSize: 14,
|
|
5037
5038
|
fill: "#1d2129",
|
|
5038
5039
|
textAlign: _e,
|
|
@@ -5041,14 +5042,14 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5041
5042
|
expectedHeight: un
|
|
5042
5043
|
};
|
|
5043
5044
|
}, Oe = (H, L) => {
|
|
5044
|
-
const { dataValue: Y, rect: te, table:
|
|
5045
|
-
let
|
|
5046
|
-
Y || (
|
|
5047
|
-
const
|
|
5045
|
+
const { dataValue: Y, rect: te, table: $, col: Z, row: ie } = H;
|
|
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;
|
|
5048
5049
|
let Je = Be;
|
|
5049
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({
|
|
5050
5051
|
type: "icon",
|
|
5051
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${_e}" viewBox="0 0 ${
|
|
5052
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${_e}" viewBox="0 0 ${se?.width} ${se?.height}" >${me}</svg>`,
|
|
5052
5053
|
x: Je,
|
|
5053
5054
|
y: (te.height - _e) / 2,
|
|
5054
5055
|
width: _e,
|
|
@@ -5058,10 +5059,10 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5058
5059
|
expectedHeight: un
|
|
5059
5060
|
};
|
|
5060
5061
|
}, et = (H, L) => {
|
|
5061
|
-
const { dataValue: Y, rect: te } = H,
|
|
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";
|
|
5062
5063
|
for (let _e = 0; _e < Z; _e++) {
|
|
5063
|
-
const Je =
|
|
5064
|
-
if (
|
|
5064
|
+
const Je = re + _e * (ie + de), Xe = se;
|
|
5065
|
+
if ($ >= _e + 1) {
|
|
5065
5066
|
const rt = Ee?.body?.replace(/currentColor/g, Ge);
|
|
5066
5067
|
me.push({
|
|
5067
5068
|
type: "icon",
|
|
@@ -5071,7 +5072,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5071
5072
|
width: ie,
|
|
5072
5073
|
height: ie
|
|
5073
5074
|
});
|
|
5074
|
-
} else if (
|
|
5075
|
+
} else if ($ > _e && $ < _e + 1) {
|
|
5075
5076
|
const rt = Ie?.body?.replace(/currentColor/g, Ge);
|
|
5076
5077
|
me.push({
|
|
5077
5078
|
type: "icon",
|
|
@@ -5098,18 +5099,18 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5098
5099
|
expectedHeight: un
|
|
5099
5100
|
};
|
|
5100
5101
|
}, ut = (H, L) => {
|
|
5101
|
-
const { dataValue: Y, rect: te, table:
|
|
5102
|
-
config:
|
|
5103
|
-
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,
|
|
5104
5105
|
formData: l || {},
|
|
5105
5106
|
getTableData: Rn,
|
|
5106
|
-
row:
|
|
5107
|
-
}) || {}, Ee = Number(me.min) || 0, Ie = Number(me.max) || 100, Me = Number(Y) || 0, Ge = Ie - Ee, Be = Ge === 0 ? 0 : Math.max(0, Math.min(100, (Me - Ee) / Ge * 100)), _e = 4, Je = 8, Xe = 8, rt = (te.height - _e) / 2, qe = String(Me), pe = fn(qe) || 0, ct = Je, De = rt, At = te.width - Je * 2 - pe - Xe, tn = At * Be / 100, sn = [], cn = (
|
|
5108
|
-
const dt = Math.min(xt, tt / 2,
|
|
5109
|
-
return `M ${dt} 0 L ${
|
|
5110
|
-
}, qa = (
|
|
5111
|
-
const dt = Math.min(xt, tt / 2,
|
|
5112
|
-
return
|
|
5107
|
+
row: se
|
|
5108
|
+
}) || {}, Ee = Number(me.min) || 0, Ie = Number(me.max) || 100, Me = Number(Y) || 0, Ge = Ie - Ee, Be = Ge === 0 ? 0 : Math.max(0, Math.min(100, (Me - Ee) / Ge * 100)), _e = 4, Je = 8, Xe = 8, rt = (te.height - _e) / 2, qe = String(Me), pe = fn(qe) || 0, ct = Je, De = rt, At = te.width - Je * 2 - pe - Xe, tn = At * Be / 100, sn = [], cn = (Dt, tt, xt) => {
|
|
5109
|
+
const dt = Math.min(xt, tt / 2, Dt / 2);
|
|
5110
|
+
return `M ${dt} 0 L ${Dt - dt} 0 Q ${Dt} 0 ${Dt} ${dt} L ${Dt} ${tt - dt} Q ${Dt} ${tt} ${Dt - dt} ${tt} L ${dt} ${tt} Q 0 ${tt} 0 ${tt - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
|
|
5111
|
+
}, qa = (Dt, tt, xt) => {
|
|
5112
|
+
const dt = Math.min(xt, tt / 2, Dt / 2);
|
|
5113
|
+
return Dt <= dt * 2 ? cn(Dt, tt, xt) : `M ${dt} 0 L ${Dt} 0 L ${Dt} ${tt} L ${dt} ${tt} Q 0 ${tt} 0 ${tt - dt} L 0 ${dt} Q 0 0 ${dt} 0 Z`;
|
|
5113
5114
|
}, Vo = cn(At, _e, _e / 2);
|
|
5114
5115
|
if (sn.push({
|
|
5115
5116
|
type: "icon",
|
|
@@ -5119,10 +5120,10 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5119
5120
|
width: At,
|
|
5120
5121
|
height: _e
|
|
5121
5122
|
}), tn > 0) {
|
|
5122
|
-
const
|
|
5123
|
+
const Dt = qa(tn, _e, _e / 2);
|
|
5123
5124
|
sn.push({
|
|
5124
5125
|
type: "icon",
|
|
5125
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${tn}" height="${_e}" viewBox="0 0 ${tn} ${_e}"><path d="${
|
|
5126
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${tn}" height="${_e}" viewBox="0 0 ${tn} ${_e}"><path d="${Dt}" fill="#165dff"/></svg>`,
|
|
5126
5127
|
x: ct,
|
|
5127
5128
|
y: De,
|
|
5128
5129
|
width: tn,
|
|
@@ -5148,24 +5149,24 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5148
5149
|
if ((fn(H) || 0) <= L) return H;
|
|
5149
5150
|
const Y = "...", te = fn(Y) || 0;
|
|
5150
5151
|
if (te >= L) return "";
|
|
5151
|
-
let
|
|
5152
|
-
for (;
|
|
5153
|
-
const ie = Math.ceil((
|
|
5154
|
-
(fn(H.slice(0, ie)) || 0) + te <= L ?
|
|
5152
|
+
let $ = 0, Z = H.length;
|
|
5153
|
+
for (; $ < Z; ) {
|
|
5154
|
+
const ie = Math.ceil(($ + Z) / 2);
|
|
5155
|
+
(fn(H.slice(0, ie)) || 0) + te <= L ? $ = ie : Z = ie - 1;
|
|
5155
5156
|
}
|
|
5156
|
-
return H.slice(0,
|
|
5157
|
+
return H.slice(0, $) + Y;
|
|
5157
5158
|
}, $e = (H, L) => {
|
|
5158
|
-
const { value: Y, rect: te, table:
|
|
5159
|
+
const { value: Y, rect: te, table: $, col: Z, row: ie } = H;
|
|
5159
5160
|
if (!Y) return {
|
|
5160
5161
|
elements: [],
|
|
5161
5162
|
expectedHeight: un
|
|
5162
5163
|
};
|
|
5163
|
-
const
|
|
5164
|
-
config:
|
|
5165
|
-
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,
|
|
5166
5167
|
formData: l || {},
|
|
5167
5168
|
getTableData: Rn,
|
|
5168
|
-
row:
|
|
5169
|
+
row: se
|
|
5169
5170
|
}) || {}, Ee = Number(me.size) || 16, Ie = me.color, Me = (te.width - Ee) / 2, Ge = (te.height - Ee) / 2;
|
|
5170
5171
|
let Be = String(Y).trim();
|
|
5171
5172
|
if (!Be) return {
|
|
@@ -5202,16 +5203,16 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5202
5203
|
expectedHeight: Math.max(un, Ee)
|
|
5203
5204
|
};
|
|
5204
5205
|
}, Ye = (H, L) => {
|
|
5205
|
-
const { dataValue: Y, rect: te, table:
|
|
5206
|
-
config:
|
|
5207
|
-
getCompConfig:
|
|
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
|
+
config: se?._compConfig,
|
|
5208
|
+
getCompConfig: se?._getCompConfig,
|
|
5208
5209
|
formData: l || {},
|
|
5209
5210
|
getTableData: Rn,
|
|
5210
5211
|
row: me
|
|
5211
|
-
}) || {}, Ie =
|
|
5212
|
+
}) || {}, Ie = se?.style?.textAlign || "left", Me = c({
|
|
5212
5213
|
config: Ee,
|
|
5213
5214
|
row: me,
|
|
5214
|
-
value:
|
|
5215
|
+
value: se._fieldFormat ? de : Y
|
|
5215
5216
|
});
|
|
5216
5217
|
if (Me.length === 0) return {
|
|
5217
5218
|
elements: [],
|
|
@@ -5239,7 +5240,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5239
5240
|
const vn = Me[gn], oa = vn.label, ia = At(oa), Wo = {
|
|
5240
5241
|
label: oa,
|
|
5241
5242
|
bg: vn.color || "#f2f3f5",
|
|
5242
|
-
text: vn.textColor ||
|
|
5243
|
+
text: vn.textColor || zt(vn.color || "#f2f3f5"),
|
|
5243
5244
|
width: ia
|
|
5244
5245
|
};
|
|
5245
5246
|
xt.length > 0 && dt + Xe + ia > pe ? (tt.push({
|
|
@@ -5269,54 +5270,54 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5269
5270
|
}
|
|
5270
5271
|
No += Be + (tt < cn.length - 1 ? rt : 0);
|
|
5271
5272
|
}
|
|
5272
|
-
const
|
|
5273
|
+
const Dt = Math.min(te.width, Math.max(0, ...cn.map((tt) => tt.lineWidth)) + qe * 2);
|
|
5273
5274
|
return {
|
|
5274
5275
|
elements: De,
|
|
5275
5276
|
expectedHeight: Math.max(un, Vo),
|
|
5276
|
-
expectedWidth:
|
|
5277
|
+
expectedWidth: Dt
|
|
5277
5278
|
};
|
|
5278
|
-
},
|
|
5279
|
+
}, zt = (H) => {
|
|
5279
5280
|
if (!H) return "#1d2129";
|
|
5280
|
-
H = H.replace("#", ""), H.length === 3 && (H = H.split("").map((
|
|
5281
|
+
H = H.replace("#", ""), H.length === 3 && (H = H.split("").map(($) => $ + $).join(""));
|
|
5281
5282
|
const L = parseInt(H.substring(0, 2), 16), Y = parseInt(H.substring(2, 4), 16), te = parseInt(H.substring(4, 6), 16);
|
|
5282
5283
|
if ((L * 299 + Y * 587 + te * 114) / 1e3 >= 128) {
|
|
5283
|
-
const
|
|
5284
|
-
let
|
|
5285
|
-
const Ee = (
|
|
5286
|
-
if (
|
|
5287
|
-
const Xe =
|
|
5288
|
-
switch (me = Ee > 0.5 ? Xe / (2 -
|
|
5289
|
-
case
|
|
5290
|
-
|
|
5284
|
+
const $ = L / 255, Z = Y / 255, ie = te / 255, de = Math.max($, Z, ie), re = Math.min($, Z, ie);
|
|
5285
|
+
let se = 0, me = 0;
|
|
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
|
+
case $:
|
|
5291
|
+
se = (Z - ie) / Xe + (Z < ie ? 6 : 0);
|
|
5291
5292
|
break;
|
|
5292
5293
|
case Z:
|
|
5293
|
-
|
|
5294
|
+
se = (ie - $) / Xe + 2;
|
|
5294
5295
|
break;
|
|
5295
5296
|
case ie:
|
|
5296
|
-
|
|
5297
|
+
se = ($ - Z) / Xe + 4;
|
|
5297
5298
|
break;
|
|
5298
5299
|
}
|
|
5299
|
-
|
|
5300
|
+
se /= 6;
|
|
5300
5301
|
}
|
|
5301
5302
|
const Ie = 0.3, Me = me;
|
|
5302
5303
|
let Ge, Be, _e;
|
|
5303
5304
|
if (Me === 0) Ge = Be = _e = Ie;
|
|
5304
5305
|
else {
|
|
5305
5306
|
const Xe = (pe, ct, De) => (De < 0 && (De += 1), De > 1 && (De -= 1), De < 0.16666666666666666 ? pe + (ct - pe) * 6 * De : De < 0.5 ? ct : De < 0.6666666666666666 ? pe + (ct - pe) * (0.6666666666666666 - De) * 6 : pe), rt = Ie < 0.5 ? Ie * (1 + Me) : Ie + Me - Ie * Me, qe = 2 * Ie - rt;
|
|
5306
|
-
Ge = Xe(qe, rt,
|
|
5307
|
+
Ge = Xe(qe, rt, se + 1 / 3), Be = Xe(qe, rt, se), _e = Xe(qe, rt, se - 1 / 3);
|
|
5307
5308
|
}
|
|
5308
5309
|
const Je = (Xe) => Math.round(Xe * 255).toString(16).padStart(2, "0");
|
|
5309
5310
|
return `#${Je(Ge)}${Je(Be)}${Je(_e)}`;
|
|
5310
5311
|
}
|
|
5311
5312
|
return "#ffffff";
|
|
5312
|
-
},
|
|
5313
|
-
const { table: L, row: Y, col: te, rect:
|
|
5314
|
-
height:
|
|
5315
|
-
width:
|
|
5313
|
+
}, Vt = (H) => {
|
|
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
|
+
height: $.height,
|
|
5316
|
+
width: $.width,
|
|
5316
5317
|
display: "flex",
|
|
5317
5318
|
alignItems: "center",
|
|
5318
|
-
justifyContent:
|
|
5319
|
-
}), Ie = "#165dff", Me = new
|
|
5319
|
+
justifyContent: se.style?.textAlign === "center" ? "center" : se.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
5320
|
+
}), Ie = "#165dff", Me = new de({
|
|
5320
5321
|
text: String(Z ?? ""),
|
|
5321
5322
|
fontSize: 14,
|
|
5322
5323
|
fill: Ie,
|
|
@@ -5333,7 +5334,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5333
5334
|
const Ge = L.getCellOriginRecord(te, Y);
|
|
5334
5335
|
me.click({
|
|
5335
5336
|
row: Ge,
|
|
5336
|
-
column:
|
|
5337
|
+
column: se,
|
|
5337
5338
|
openLayer: u
|
|
5338
5339
|
});
|
|
5339
5340
|
}
|
|
@@ -5346,15 +5347,15 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5346
5347
|
renderDefault: !1
|
|
5347
5348
|
};
|
|
5348
5349
|
}, it = (H) => {
|
|
5349
|
-
const { table: L, row: Y, col: te, rect:
|
|
5350
|
-
const ct = Ee?.[
|
|
5351
|
-
Ee[
|
|
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
|
+
const ct = Ee?.[se];
|
|
5352
|
+
Ee[se] = (Array.isArray(ct) ? ct : []).map((De, At) => At !== qe ? De : De && typeof De == "object" ? {
|
|
5352
5353
|
...De,
|
|
5353
5354
|
...pe
|
|
5354
5355
|
} : { ...pe });
|
|
5355
5356
|
}, Be = () => {
|
|
5356
5357
|
L.renderWithRecreateCells();
|
|
5357
|
-
}, _e = new
|
|
5358
|
+
}, _e = new de({
|
|
5358
5359
|
width: ie,
|
|
5359
5360
|
height: Math.max(Z || 0, 40),
|
|
5360
5361
|
display: "flex",
|
|
@@ -5362,12 +5363,12 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5362
5363
|
alignItems: Ie,
|
|
5363
5364
|
justifyContent: "center",
|
|
5364
5365
|
flexWrap: "nowrap"
|
|
5365
|
-
}), Je = Ee?.[
|
|
5366
|
+
}), Je = Ee?.[se];
|
|
5366
5367
|
if (!Array.isArray(Je)) return {
|
|
5367
5368
|
rootContainer: _e,
|
|
5368
5369
|
renderDefault: !1
|
|
5369
5370
|
};
|
|
5370
|
-
const Xe = Je, rt = new
|
|
5371
|
+
const Xe = Je, rt = new de({
|
|
5371
5372
|
width: ie,
|
|
5372
5373
|
display: "flex",
|
|
5373
5374
|
flexDirection: "row",
|
|
@@ -5383,7 +5384,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5383
5384
|
});
|
|
5384
5385
|
_e.add(rt);
|
|
5385
5386
|
for (let qe = 0; qe < Xe.length; qe++) {
|
|
5386
|
-
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({
|
|
5387
5388
|
text: {
|
|
5388
5389
|
text: String(ct),
|
|
5389
5390
|
fontSize: 12
|
|
@@ -5408,7 +5409,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5408
5409
|
renderDefault: !1
|
|
5409
5410
|
};
|
|
5410
5411
|
}, aa = (H) => {
|
|
5411
|
-
const { table: L, row: Y, col: te } = H,
|
|
5412
|
+
const { table: L, row: Y, col: te } = H, $ = L.getBodyField(te, Y), Z = Bt(L.options?.columns || [], $), ie = Z?._compConfig || {};
|
|
5412
5413
|
if (Z?._customLayout) return Z._customLayout({
|
|
5413
5414
|
...H,
|
|
5414
5415
|
config: ie,
|
|
@@ -5424,27 +5425,27 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5424
5425
|
}
|
|
5425
5426
|
return null;
|
|
5426
5427
|
}, en = (H) => {
|
|
5427
|
-
const { table: L, col: Y, row: te } = H,
|
|
5428
|
+
const { table: L, col: Y, row: te } = H, $ = L.getBodyField(Y, te), Z = Bt(L.options?.columns || [], $);
|
|
5428
5429
|
if (!Z) return {
|
|
5429
5430
|
elements: [],
|
|
5430
5431
|
expectedHeight: un
|
|
5431
5432
|
};
|
|
5432
|
-
const ie = L.getCellOriginRecord?.(Y, te) || L.getRecordByCell?.(Y, te) || {},
|
|
5433
|
+
const ie = L.getCellOriginRecord?.(Y, te) || L.getRecordByCell?.(Y, te) || {}, de = bn({
|
|
5433
5434
|
config: Z._compConfig,
|
|
5434
5435
|
getCompConfig: Z._getCompConfig,
|
|
5435
5436
|
formData: l || {},
|
|
5436
5437
|
getTableData: Rn,
|
|
5437
5438
|
row: ie
|
|
5438
|
-
}),
|
|
5439
|
+
}), re = zl({
|
|
5439
5440
|
type: Z._compType,
|
|
5440
5441
|
getCompType: Z._getCompType,
|
|
5441
|
-
config:
|
|
5442
|
+
config: de,
|
|
5442
5443
|
formData: l || {},
|
|
5443
5444
|
getTableData: Rn,
|
|
5444
5445
|
row: ie
|
|
5445
5446
|
});
|
|
5446
|
-
ie._compTypeByRender =
|
|
5447
|
-
const
|
|
5447
|
+
ie._compTypeByRender = re;
|
|
5448
|
+
const se = {
|
|
5448
5449
|
text: ze,
|
|
5449
5450
|
"j-switch": Oe,
|
|
5450
5451
|
"j-rate": et,
|
|
@@ -5452,19 +5453,19 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5452
5453
|
"j-tag": Ye,
|
|
5453
5454
|
"j-input-tag": Ye,
|
|
5454
5455
|
"j-icon": $e
|
|
5455
|
-
}[
|
|
5456
|
-
return
|
|
5456
|
+
}[re];
|
|
5457
|
+
return se ? se(H, de) : {
|
|
5457
5458
|
elements: [],
|
|
5458
5459
|
expectedHeight: un
|
|
5459
5460
|
};
|
|
5460
5461
|
}, q = (H, L, Y, te) => {
|
|
5461
|
-
const
|
|
5462
|
+
const $ = te.getBodyField(L, Y), Z = Bt(te.options?.columns || [], $);
|
|
5462
5463
|
if (Z._fieldFormat) return Z._fieldFormat(H, L, Y, te);
|
|
5463
5464
|
if (Z._compType === "dateTime") {
|
|
5464
5465
|
const ie = Z._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
5465
|
-
return fc(H[
|
|
5466
|
+
return fc(H[$], ie);
|
|
5466
5467
|
}
|
|
5467
|
-
return kf(H[
|
|
5468
|
+
return kf(H[$], s, {
|
|
5468
5469
|
type: Z._compType,
|
|
5469
5470
|
getCompType: Z._getCompType,
|
|
5470
5471
|
getCompConfig: Z._getCompConfig,
|
|
@@ -5475,7 +5476,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5475
5476
|
});
|
|
5476
5477
|
}, he = (H) => {
|
|
5477
5478
|
const L = H.filter((Y) => Y.config?.display !== !1).map((Y) => {
|
|
5478
|
-
const { id: te, type:
|
|
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 = {
|
|
5479
5480
|
field: te,
|
|
5480
5481
|
title: me,
|
|
5481
5482
|
width: Ee,
|
|
@@ -5483,31 +5484,31 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5483
5484
|
maxWidth: Me,
|
|
5484
5485
|
...qe ? { headerStyle: { textAlign: qe } } : {},
|
|
5485
5486
|
style: { textAlign: Ge },
|
|
5486
|
-
_customLayout:
|
|
5487
|
+
_customLayout: se,
|
|
5487
5488
|
_fieldFormat: _e,
|
|
5488
|
-
_compType:
|
|
5489
|
+
_compType: $,
|
|
5489
5490
|
_compConfig: { ...rt },
|
|
5490
5491
|
_getCompConfig: ie,
|
|
5491
|
-
_getCompType:
|
|
5492
|
+
_getCompType: de,
|
|
5492
5493
|
frozen: Xe
|
|
5493
|
-
}, ct = typeof
|
|
5494
|
-
return (De || ct) && (pe.editor = De, m = !0), ct ? pe.customRender = en : (
|
|
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;
|
|
5495
5496
|
});
|
|
5496
5497
|
return o.isTree && L.length > 0 && (L[0].tree = !0), L;
|
|
5497
5498
|
}, Q = (H, L) => {
|
|
5498
|
-
const Y = H.replace("#", ""), te = parseInt(Y, 16),
|
|
5499
|
-
return `#${(
|
|
5499
|
+
const Y = H.replace("#", ""), te = parseInt(Y, 16), $ = Math.min(255, Math.max(0, (te >> 16) + L)), Z = Math.min(255, Math.max(0, (te >> 8 & 255) + L)), ie = Math.min(255, Math.max(0, (te & 255) + L));
|
|
5500
|
+
return `#${($ << 16 | Z << 8 | ie).toString(16).padStart(6, "0")}`;
|
|
5500
5501
|
}, ae = () => {
|
|
5501
5502
|
let H = R;
|
|
5502
5503
|
o.isPage && (H = jt.value + R);
|
|
5503
5504
|
let L = fn(String(H)) || 0;
|
|
5504
5505
|
return o.subColumns && o.subColumns.length > 0 && (L = L + 32), Math.max(45, L + 18);
|
|
5505
5506
|
}, ce = (H) => {
|
|
5506
|
-
let L = (Y, te,
|
|
5507
|
-
const ie = Z.getRecordIndexByCell(te,
|
|
5507
|
+
let L = (Y, te, $, Z) => {
|
|
5508
|
+
const ie = Z.getRecordIndexByCell(te, $);
|
|
5508
5509
|
return o.isPage && !H ? jt.value + ie + 1 : ie + 1;
|
|
5509
5510
|
};
|
|
5510
|
-
return H && (L = (Y, te,
|
|
5511
|
+
return H && (L = (Y, te, $, Z) => Z.getRecordIndexByCell(te, $) + 1), {
|
|
5511
5512
|
field: "__sequence__",
|
|
5512
5513
|
title: "序号",
|
|
5513
5514
|
width: y,
|
|
@@ -5548,17 +5549,17 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5548
5549
|
L.push(Y);
|
|
5549
5550
|
return;
|
|
5550
5551
|
}
|
|
5551
|
-
const te = lt(Y.columns),
|
|
5552
|
-
if (te.forEach((
|
|
5553
|
-
const
|
|
5554
|
-
|
|
5555
|
-
}), (
|
|
5552
|
+
const te = lt(Y.columns), $ = [], Z = [], ie = [];
|
|
5553
|
+
if (te.forEach((de) => {
|
|
5554
|
+
const re = He(de);
|
|
5555
|
+
re === "left" ? $.push(de) : re === "right" ? Z.push(de) : ie.push(de);
|
|
5556
|
+
}), ($.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ie.length > 0 ? 1 : 0) <= 1) {
|
|
5556
5557
|
Y.columns = te, L.push(Y);
|
|
5557
5558
|
return;
|
|
5558
5559
|
}
|
|
5559
|
-
|
|
5560
|
+
$.length && L.push({
|
|
5560
5561
|
...Y,
|
|
5561
|
-
columns:
|
|
5562
|
+
columns: $
|
|
5562
5563
|
}), ie.length && L.push({
|
|
5563
5564
|
...Y,
|
|
5564
5565
|
columns: ie
|
|
@@ -5571,8 +5572,8 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5571
5572
|
let L = 0, Y = 0;
|
|
5572
5573
|
return H.forEach((te) => {
|
|
5573
5574
|
if (te.columns && te.columns.length > 0) {
|
|
5574
|
-
const
|
|
5575
|
-
L +=
|
|
5575
|
+
const $ = Et(te.columns);
|
|
5576
|
+
L += $.left, Y += $.right;
|
|
5576
5577
|
} else te.frozen === "left" ? L++ : te.frozen === "right" && Y++;
|
|
5577
5578
|
}), {
|
|
5578
5579
|
left: L,
|
|
@@ -5580,20 +5581,20 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5580
5581
|
};
|
|
5581
5582
|
}, ht = (H, L, Y, te) => {
|
|
5582
5583
|
b = 0, x = 0, m = !1;
|
|
5583
|
-
const
|
|
5584
|
+
const $ = {};
|
|
5584
5585
|
let Z = he(H);
|
|
5585
5586
|
Z.length === 0 && (Z = [Te()]), Z = lt(Z);
|
|
5586
|
-
const ie = [],
|
|
5587
|
+
const ie = [], de = [], re = [];
|
|
5587
5588
|
Z.forEach((Ie) => {
|
|
5588
5589
|
const Me = He(Ie);
|
|
5589
|
-
Me === "left" ? ie.push(Ie) : Me === "right" ?
|
|
5590
|
+
Me === "left" ? ie.push(Ie) : Me === "right" ? de.push(Ie) : re.push(Ie);
|
|
5590
5591
|
});
|
|
5591
|
-
const
|
|
5592
|
-
x +=
|
|
5592
|
+
const se = Et(ie), me = Et(de);
|
|
5593
|
+
x += se.left, b += me.right, Z = [
|
|
5593
5594
|
...ie,
|
|
5594
|
-
...
|
|
5595
|
-
...
|
|
5596
|
-
], L && (Z.unshift(ce(te)), x++), Y.length > 0 && (Z.push(Ce(Y)), b++), m && (
|
|
5595
|
+
...re,
|
|
5596
|
+
...de
|
|
5597
|
+
], L && (Z.unshift(ce(te)), x++), Y.length > 0 && (Z.push(Ce(Y)), b++), m && ($.editCellTrigger = "click", $.keyboardOptions = {
|
|
5597
5598
|
copySelected: !0,
|
|
5598
5599
|
cutSelected: !0,
|
|
5599
5600
|
pasteValueToCell: !0,
|
|
@@ -5604,19 +5605,19 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5604
5605
|
if (Me?._compType === "checkbox" || Me?.customRender === en || Me?.customRender === Ye || Array.isArray(Me?.columns) && Ee(Me.columns)) return !0;
|
|
5605
5606
|
return !1;
|
|
5606
5607
|
};
|
|
5607
|
-
return Ee(Z) && (
|
|
5608
|
+
return Ee(Z) && ($.defaultRowHeight = "auto", $.defaultHeaderRowHeight = 40), {
|
|
5608
5609
|
columns: Z,
|
|
5609
|
-
option:
|
|
5610
|
+
option: $
|
|
5610
5611
|
};
|
|
5611
5612
|
}, In = () => {
|
|
5612
5613
|
const H = ht(o.columns, o.isShowNumber && !o.isTree, o.actions);
|
|
5613
|
-
|
|
5614
|
+
$t.value && x++;
|
|
5614
5615
|
const L = {
|
|
5615
5616
|
records: [],
|
|
5616
5617
|
columns: H.columns,
|
|
5617
5618
|
autoFillWidth: !0,
|
|
5618
|
-
enableCheckboxCascade:
|
|
5619
|
-
enableHeaderCheckboxCascade:
|
|
5619
|
+
enableCheckboxCascade: $t.value,
|
|
5620
|
+
enableHeaderCheckboxCascade: $t.value,
|
|
5620
5621
|
rightFrozenColCount: b,
|
|
5621
5622
|
frozenColCount: x,
|
|
5622
5623
|
tooltip: { isShowOverflowTextTooltip: !0 },
|
|
@@ -5629,7 +5630,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5629
5630
|
delay: 0,
|
|
5630
5631
|
type: "one-by-one",
|
|
5631
5632
|
direction: "row"
|
|
5632
|
-
}),
|
|
5633
|
+
}), $t.value && (L.rowSeriesNumber = {
|
|
5633
5634
|
width: 40,
|
|
5634
5635
|
minWidth: 40,
|
|
5635
5636
|
maxWidth: 40,
|
|
@@ -5667,34 +5668,34 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5667
5668
|
const L = In(), Y = Xt();
|
|
5668
5669
|
H && H.length >= 0 ? L.records = Bn(H) : Y.length > 0 ? L.records = Bn(Y) : (L.records = Bn(o.records), i("update:modelValue", L.records)), g = new Ve.ListTable(p.value, L), g._getAppContext = () => a?.appContext;
|
|
5669
5670
|
const te = a?.provides;
|
|
5670
|
-
g._getProvides = () => te, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (
|
|
5671
|
-
if (
|
|
5672
|
-
g.setLoadingHierarchyState(
|
|
5671
|
+
g._getProvides = () => te, o.loadChildren && g.on(Ve.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async ($) => {
|
|
5672
|
+
if ($.hierarchyState === Ve.TYPES.HierarchyState.expand && $.originData?.children === !0) {
|
|
5673
|
+
g.setLoadingHierarchyState($.col, $.row);
|
|
5673
5674
|
try {
|
|
5674
|
-
const Z = await o.loadChildren(
|
|
5675
|
-
o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(Z,
|
|
5675
|
+
const Z = await o.loadChildren($.originData);
|
|
5676
|
+
o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(Z, $.col, $.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(Z, $.col, $.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(Z, $.col, $.row);
|
|
5676
5677
|
} catch (Z) {
|
|
5677
|
-
console.error("Failed to load detail data:", Z), g.setLoadingHierarchyState(
|
|
5678
|
+
console.error("Failed to load detail data:", Z), g.setLoadingHierarchyState($.col, $.row);
|
|
5678
5679
|
}
|
|
5679
5680
|
}
|
|
5680
|
-
}), g.on("click_cell", (
|
|
5681
|
-
const { col: Z, cellType: ie, originData:
|
|
5682
|
-
if (
|
|
5681
|
+
}), g.on("click_cell", ($) => {
|
|
5682
|
+
const { col: Z, cellType: ie, originData: de } = $, re = de || { children: g.records };
|
|
5683
|
+
if (re.__checkState = $.target.attribute.checked, $t.value) {
|
|
5683
5684
|
if (ie === "checkbox" && Z == 0) {
|
|
5684
|
-
const
|
|
5685
|
-
|
|
5685
|
+
const se = pt();
|
|
5686
|
+
se.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = se.length, i("selectionChanged", {
|
|
5686
5687
|
isMultiple: !0,
|
|
5687
|
-
selections:
|
|
5688
|
-
record:
|
|
5689
|
-
checked:
|
|
5688
|
+
selections: se,
|
|
5689
|
+
record: re,
|
|
5690
|
+
checked: re.__checkState
|
|
5690
5691
|
}), g.renderWithRecreateCells();
|
|
5691
5692
|
}
|
|
5692
5693
|
} else setTimeout(() => {
|
|
5693
|
-
const
|
|
5694
|
-
w.value =
|
|
5694
|
+
const se = pt();
|
|
5695
|
+
w.value = se.length, i("selectionChanged", {
|
|
5695
5696
|
isMultiple: !1,
|
|
5696
|
-
selections:
|
|
5697
|
-
record:
|
|
5697
|
+
selections: se,
|
|
5698
|
+
record: re,
|
|
5698
5699
|
checked: !0
|
|
5699
5700
|
});
|
|
5700
5701
|
}, 0);
|
|
@@ -5741,7 +5742,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5741
5742
|
});
|
|
5742
5743
|
}, pt = () => {
|
|
5743
5744
|
if (!g) return [];
|
|
5744
|
-
if (
|
|
5745
|
+
if (!$t.value) {
|
|
5745
5746
|
const H = g.getSelectedCellInfos();
|
|
5746
5747
|
if (H && H.length > 0) {
|
|
5747
5748
|
const L = H[0][0];
|
|
@@ -5750,67 +5751,67 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5750
5751
|
return [];
|
|
5751
5752
|
}
|
|
5752
5753
|
if (g.stateManager && g.stateManager.checkedState) {
|
|
5753
|
-
const H = [], L = /* @__PURE__ */ new Set(), Y = (
|
|
5754
|
-
if (!
|
|
5755
|
-
const
|
|
5756
|
-
if (
|
|
5757
|
-
if (L.has(
|
|
5758
|
-
L.add(
|
|
5759
|
-
const
|
|
5760
|
-
hi(
|
|
5761
|
-
}
|
|
5762
|
-
}, te = (
|
|
5763
|
-
const
|
|
5764
|
-
!Array.isArray(
|
|
5765
|
-
Y(
|
|
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
|
+
const se = {};
|
|
5761
|
+
hi(se, de, ["children"]), H.push(se);
|
|
5762
|
+
} else console.warn("key is empty");
|
|
5763
|
+
}, te = (de) => {
|
|
5764
|
+
const re = de?.children;
|
|
5765
|
+
!Array.isArray(re) || re.length === 0 || re.forEach((se) => {
|
|
5766
|
+
Y(se), te(se);
|
|
5766
5767
|
});
|
|
5767
|
-
},
|
|
5768
|
-
const me =
|
|
5769
|
-
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;
|
|
5770
5771
|
};
|
|
5771
|
-
return
|
|
5772
|
-
const
|
|
5773
|
-
if (
|
|
5774
|
-
const me = ie(0, (
|
|
5775
|
-
Y(me),
|
|
5772
|
+
return $.forEach((de, re) => {
|
|
5773
|
+
const se = de?._checkState;
|
|
5774
|
+
if (se === "indeterminate" || se === !0) {
|
|
5775
|
+
const me = ie(0, (re + "").split(",").map(Number), Z);
|
|
5776
|
+
Y(me), se === !0 && te(me);
|
|
5776
5777
|
}
|
|
5777
5778
|
}), H;
|
|
5778
5779
|
}
|
|
5779
5780
|
return [];
|
|
5780
|
-
},
|
|
5781
|
+
}, Nt = (H) => o.rowKey ? o.rowKey.split(",").map((L) => H[L.trim()]).join("::") : "", Pt = (H) => {
|
|
5781
5782
|
if (g)
|
|
5782
|
-
if (
|
|
5783
|
-
const L = new Set(H.map(
|
|
5784
|
-
if (
|
|
5785
|
-
const
|
|
5786
|
-
for (let
|
|
5787
|
-
const
|
|
5788
|
-
if (!L.has(
|
|
5789
|
-
const me = g.getTableIndexByRecordIndex(
|
|
5783
|
+
if ($t.value || g.clearSelected(), o.rowKey) {
|
|
5784
|
+
const L = new Set(H.map(Nt)), Y = "__checkState";
|
|
5785
|
+
if (!$t.value) {
|
|
5786
|
+
const de = g.records;
|
|
5787
|
+
for (let re = 0; re < de.length; re++) {
|
|
5788
|
+
const se = de[re];
|
|
5789
|
+
if (!L.has(Nt(se))) continue;
|
|
5790
|
+
const me = g.getTableIndexByRecordIndex(re);
|
|
5790
5791
|
g.selectRow(me);
|
|
5791
5792
|
break;
|
|
5792
5793
|
}
|
|
5793
5794
|
return;
|
|
5794
5795
|
}
|
|
5795
|
-
const te = (
|
|
5796
|
-
|
|
5797
|
-
if (Array.isArray(
|
|
5798
|
-
te(
|
|
5799
|
-
const
|
|
5800
|
-
me.length ==
|
|
5801
|
-
} 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));
|
|
5802
5803
|
});
|
|
5803
|
-
},
|
|
5804
|
-
o.isTree ? te(
|
|
5805
|
-
|
|
5804
|
+
}, $ = g.records;
|
|
5805
|
+
o.isTree ? te($) : $.forEach((de) => {
|
|
5806
|
+
de[Y] = L.has(Nt(de));
|
|
5806
5807
|
});
|
|
5807
5808
|
const Z = In();
|
|
5808
|
-
Z.records =
|
|
5809
|
+
Z.records = $, g.updateOption(Z, {
|
|
5809
5810
|
clearColWidthCache: !1,
|
|
5810
5811
|
clearRowHeightCache: !1
|
|
5811
5812
|
}), o.heightMode === "auto" && (d.value = g.getAllRowsHeight());
|
|
5812
5813
|
const ie = g.getAllBodyCells(1);
|
|
5813
|
-
for (let
|
|
5814
|
+
for (let de = 0; de < ie.length; de++) ie[de][0].originData[Y] == !0 && g.setCellCheckboxState(0, de + 1, !0);
|
|
5814
5815
|
g.renderWithRecreateCells();
|
|
5815
5816
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
5816
5817
|
}, Gt = (H) => {
|
|
@@ -5829,7 +5830,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5829
5830
|
}), o.heightMode === "auto" && (d.value = g.getAllRowsHeight()), w.value = 0;
|
|
5830
5831
|
}, Ga = () => {
|
|
5831
5832
|
g.renderWithRecreateCells();
|
|
5832
|
-
}, Ja = j(() => o.editConfig.isAddBtn), Do = j(() => o.editConfig.addBtnText || "添加"), Ot = j(() => o.editConfig.isRemoveBtn), Jt = j(() => o.editConfig.readonly),
|
|
5833
|
+
}, Ja = j(() => o.editConfig.isAddBtn), Do = j(() => o.editConfig.addBtnText || "添加"), Ot = j(() => o.editConfig.isRemoveBtn), Jt = j(() => o.editConfig.readonly), $t = j(() => o.isMultiple || Ot.value), Xt = () => {
|
|
5833
5834
|
const H = o.modelValue || [];
|
|
5834
5835
|
return H.forEach((L) => {
|
|
5835
5836
|
L._i || (L._i = Wn());
|
|
@@ -5870,12 +5871,12 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5870
5871
|
cancelButtonText: "取消",
|
|
5871
5872
|
type: "warning"
|
|
5872
5873
|
}).then(() => {
|
|
5873
|
-
const L = g.records, Y = new Set(H.map((
|
|
5874
|
-
Ze(te), i("update:modelValue", te), H.forEach((
|
|
5874
|
+
const L = g.records, Y = new Set(H.map(($) => $._i)), te = L.filter(($) => !Y.has($._i));
|
|
5875
|
+
Ze(te), i("update:modelValue", te), H.forEach(($) => {
|
|
5875
5876
|
i("change", {
|
|
5876
5877
|
id: o.id,
|
|
5877
|
-
value:
|
|
5878
|
-
data:
|
|
5878
|
+
value: $,
|
|
5879
|
+
data: $,
|
|
5879
5880
|
formData: l,
|
|
5880
5881
|
tableData: te,
|
|
5881
5882
|
type: "delete"
|
|
@@ -5918,7 +5919,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5918
5919
|
setSelection: Pt,
|
|
5919
5920
|
renderTable: Ga
|
|
5920
5921
|
}), (H, L) => {
|
|
5921
|
-
const Y = B("j-button"), te = B("el-space"),
|
|
5922
|
+
const Y = B("j-button"), te = B("el-space"), $ = B("el-pagination");
|
|
5922
5923
|
return _(), O("div", {
|
|
5923
5924
|
class: We(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
5924
5925
|
style: Pe(f.value)
|
|
@@ -5951,7 +5952,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5951
5952
|
_: 1
|
|
5952
5953
|
}),
|
|
5953
5954
|
L[2] || (L[2] = z("div", null, null, -1)),
|
|
5954
|
-
e.isPage ? (_(), I(
|
|
5955
|
+
e.isPage ? (_(), I($, {
|
|
5955
5956
|
key: 0,
|
|
5956
5957
|
"current-page": xe.value,
|
|
5957
5958
|
"onUpdate:currentPage": L[0] || (L[0] = (Z) => xe.value = Z),
|
|
@@ -5978,7 +5979,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
5978
5979
|
class: "j-table-dropdown",
|
|
5979
5980
|
style: Pe(C.value),
|
|
5980
5981
|
onMouseenter: ue,
|
|
5981
|
-
onMouseleave:
|
|
5982
|
+
onMouseleave: D
|
|
5982
5983
|
}, [(_(!0), O(be, null, Ae(E.value, (Z) => (_(), O("div", {
|
|
5983
5984
|
key: Z.id,
|
|
5984
5985
|
class: "j-table-dropdown-item",
|
|
@@ -6170,8 +6171,8 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6170
6171
|
title: ne,
|
|
6171
6172
|
disabled: !0
|
|
6172
6173
|
}))), ue = function(ne) {
|
|
6173
|
-
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 =
|
|
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
|
+
}, D = () => {
|
|
6175
6176
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
6176
6177
|
}, ee = (ne) => {
|
|
6177
6178
|
if (p.isMove) {
|
|
@@ -6190,9 +6191,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6190
6191
|
return;
|
|
6191
6192
|
}
|
|
6192
6193
|
v.value.onmousedown = (ke) => {
|
|
6193
|
-
const { clientX: $e } = ke, { clientY: Ye } = ke,
|
|
6194
|
-
p._left = p.left, p._top = p.top, m.value || (m.value = ut), x.value || (x.value = Oe), $e >
|
|
6195
|
-
it.preventDefault(), $e >
|
|
6194
|
+
const { clientX: $e } = ke, { clientY: Ye } = ke, zt = p.left + R.value, Vt = p.top + y.value;
|
|
6195
|
+
p._left = p.left, p._top = p.top, m.value || (m.value = ut), x.value || (x.value = Oe), $e > zt + 10 && $e < zt + Oe - 10 && Ye > Vt + 5 && Ye < Vt + 47 || (typeof document < "u" && (document.onmousemove = function(it) {
|
|
6196
|
+
it.preventDefault(), $e > zt && $e < zt + 10 && ($e > it.clientX && (x.value = Oe + ($e - it.clientX), p.left = p._left - ($e - it.clientX)), $e < it.clientX && x.value > a.minWidth && (x.value = Oe - (it.clientX - $e), p.left = p._left + it.clientX - $e)), $e > zt + Oe - 10 && $e < zt + Oe && ($e > it.clientX && x.value > a.minWidth && (x.value = Oe - ($e - it.clientX)), $e < it.clientX && typeof document < "u" && document.body && R.value + p.left + x.value < document.body.clientWidth && (x.value = Oe + (it.clientX - $e))), Ye > Vt && Ye < Vt + 5 && (Ye > it.clientY && (m.value = ut + Ye - it.clientY, p.top = p._top - (Ye - it.clientY)), Ye < it.clientY && m.value > a.minHeight && (m.value = ut - (it.clientY - Ye), p.top = p._top + it.clientY - Ye)), oe + Ye > Vt + ut + 38 && oe + Ye < Vt + ut + 48 && (Ye > it.clientY && m.value > a.minHeight && (m.value = ut - (Ye - it.clientY)), Ye < it.clientY && typeof window < "u" && y.value + p.top + m.value + 48 < window.innerHeight && (m.value = ut + it.clientY - Ye));
|
|
6196
6197
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
6197
6198
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
6198
6199
|
}));
|
|
@@ -6453,7 +6454,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6453
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");
|
|
6454
6455
|
return _(), I(J, {
|
|
6455
6456
|
modelValue: r.value,
|
|
6456
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
6457
|
+
"onUpdate:modelValue": U[0] || (U[0] = (D) => r.value = D),
|
|
6457
6458
|
class: "j-dialog-full",
|
|
6458
6459
|
width: "100%",
|
|
6459
6460
|
"append-to-body": !0,
|
|
@@ -6486,9 +6487,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6486
6487
|
space: 160,
|
|
6487
6488
|
"finish-status": "success"
|
|
6488
6489
|
}, {
|
|
6489
|
-
default: N(() => [(_(!0), O(be, null, Ae(E.value, (
|
|
6490
|
+
default: N(() => [(_(!0), O(be, null, Ae(E.value, (D, ee) => (_(), I(V, {
|
|
6490
6491
|
key: ee,
|
|
6491
|
-
title: X(l)(
|
|
6492
|
+
title: X(l)(D.title)
|
|
6492
6493
|
}, null, 8, ["title"]))), 128))]),
|
|
6493
6494
|
_: 1
|
|
6494
6495
|
}, 8, ["active"])) : G("", !0)], 4),
|
|
@@ -6515,12 +6516,12 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6515
6516
|
"loading",
|
|
6516
6517
|
"label"
|
|
6517
6518
|
])) : G("", !0),
|
|
6518
|
-
(_(!0), O(be, null, Ae(e.buttons, (
|
|
6519
|
+
(_(!0), O(be, null, Ae(e.buttons, (D) => (_(), O(be, { key: D.id }, [D.config?.display !== !1 ? (_(), I(T, Ne({
|
|
6519
6520
|
key: 0,
|
|
6520
6521
|
ref_for: !0
|
|
6521
|
-
},
|
|
6522
|
-
label:
|
|
6523
|
-
onClick: (ee) => M(
|
|
6522
|
+
}, D.config, {
|
|
6523
|
+
label: D.label,
|
|
6524
|
+
onClick: (ee) => M(D)
|
|
6524
6525
|
}), null, 16, ["label", "onClick"])) : G("", !0)], 64))), 128)),
|
|
6525
6526
|
e.hasSaveBtn ? (_(), I(T, {
|
|
6526
6527
|
key: 2,
|
|
@@ -6715,7 +6716,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6715
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");
|
|
6716
6717
|
return _(), I(J, {
|
|
6717
6718
|
modelValue: c.value,
|
|
6718
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
6719
|
+
"onUpdate:modelValue": U[0] || (U[0] = (D) => c.value = D),
|
|
6719
6720
|
class: "j-drawer",
|
|
6720
6721
|
"append-to-body": !0,
|
|
6721
6722
|
direction: e.direction,
|
|
@@ -6768,9 +6769,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6768
6769
|
label: X(o)("取消"),
|
|
6769
6770
|
onClick: p
|
|
6770
6771
|
}, null, 8, ["label"])) : G("", !0),
|
|
6771
|
-
(_(!0), O(be, null, Ae(e.buttons, (
|
|
6772
|
-
label:
|
|
6773
|
-
onClick: (ee) => g(
|
|
6772
|
+
(_(!0), O(be, null, Ae(e.buttons, (D) => (_(), I(W, Ne({ key: D.id }, { ref_for: !0 }, D.config, {
|
|
6773
|
+
label: D.label,
|
|
6774
|
+
onClick: (ee) => g(D)
|
|
6774
6775
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
6775
6776
|
e.hasSaveBtn ? (_(), I(W, {
|
|
6776
6777
|
key: 3,
|
|
@@ -6798,9 +6799,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
6798
6799
|
space: 160,
|
|
6799
6800
|
"finish-status": "success"
|
|
6800
6801
|
}, {
|
|
6801
|
-
default: N(() => [(_(!0), O(be, null, Ae(M.value, (
|
|
6802
|
+
default: N(() => [(_(!0), O(be, null, Ae(M.value, (D, ee) => (_(), I(S, {
|
|
6802
6803
|
key: ee,
|
|
6803
|
-
title: X(o)(
|
|
6804
|
+
title: X(o)(D.title)
|
|
6804
6805
|
}, null, 8, ["title"]))), 128))]),
|
|
6805
6806
|
_: 1
|
|
6806
6807
|
}, 8, ["active"])], 4)])) : G("", !0)
|
|
@@ -7720,7 +7721,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7720
7721
|
});
|
|
7721
7722
|
}, J = async (oe) => {
|
|
7722
7723
|
await S(oe) && F(oe);
|
|
7723
|
-
}, ue = P(!1),
|
|
7724
|
+
}, ue = P(!1), D = P(""), ee = P(""), ge = P(!1), Se = P(!1);
|
|
7724
7725
|
let ne = null;
|
|
7725
7726
|
const Ce = P(Yo(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ze = (oe) => {
|
|
7726
7727
|
if (oe.isPreview === !1 && !n.isUploadImg) {
|
|
@@ -7728,7 +7729,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7728
7729
|
return;
|
|
7729
7730
|
}
|
|
7730
7731
|
const ke = oe.name.split(".")[oe.name.split(".").length - 1];
|
|
7731
|
-
switch (ne = oe, ue.value = !1,
|
|
7732
|
+
switch (ne = oe, ue.value = !1, D.value = oe.name, ke.toLowerCase()) {
|
|
7732
7733
|
case "jpg":
|
|
7733
7734
|
case "gif":
|
|
7734
7735
|
case "png":
|
|
@@ -7766,9 +7767,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7766
7767
|
return o && o(`当前限制选择${n.limit}个文件`), !1;
|
|
7767
7768
|
};
|
|
7768
7769
|
return (oe, ke) => {
|
|
7769
|
-
const $e = B("j-icon"), Ye = B("j-button"),
|
|
7770
|
+
const $e = B("j-icon"), Ye = B("j-button"), zt = B("el-popover"), Vt = B("el-upload"), it = B("el-text"), aa = B("j-dialog-full"), Bt = ki("loading");
|
|
7770
7771
|
return _(), O("div", ig, [
|
|
7771
|
-
K(
|
|
7772
|
+
K(Vt, {
|
|
7772
7773
|
action: "",
|
|
7773
7774
|
drag: e.drag,
|
|
7774
7775
|
disabled: e.readonly,
|
|
@@ -7785,7 +7786,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7785
7786
|
"on-preview": ze,
|
|
7786
7787
|
"on-exceed": ut
|
|
7787
7788
|
}, {
|
|
7788
|
-
default: N(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", lg, [K($e, { icon: "mdi:add" }), z("div", rg, we(X(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && x.value.length > 0 && !ge.value ? (_(), I(
|
|
7789
|
+
default: N(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (_(), O("div", lg, [K($e, { icon: "mdi:add" }), z("div", rg, we(X(r)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && x.value.length > 0 && !ge.value ? (_(), I(zt, {
|
|
7789
7790
|
key: 1,
|
|
7790
7791
|
placement: "bottom",
|
|
7791
7792
|
title: e.isUploadImg ? X(r)("图片列表") : X(r)("文件列表")
|
|
@@ -7857,7 +7858,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
7857
7858
|
visible: ge.value,
|
|
7858
7859
|
"onUpdate:visible": ke[1] || (ke[1] = (en) => ge.value = en),
|
|
7859
7860
|
"btn-text": "下载",
|
|
7860
|
-
title: `${X(r)("文件预览")}【${
|
|
7861
|
+
title: `${X(r)("文件预览")}【${D.value}】`,
|
|
7861
7862
|
"destroy-on-close": !0,
|
|
7862
7863
|
"has-btns": !!X(s),
|
|
7863
7864
|
onOk: et
|
|
@@ -10998,11 +10999,11 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
10998
10999
|
const pt = vt.get(ve.id);
|
|
10999
11000
|
if (pt) {
|
|
11000
11001
|
if (ve.display) {
|
|
11001
|
-
let
|
|
11002
|
-
pt.children && pt.children.length > 0 && (
|
|
11002
|
+
let Nt = pt;
|
|
11003
|
+
pt.children && pt.children.length > 0 && (Nt = {
|
|
11003
11004
|
...pt,
|
|
11004
11005
|
children: R(pt.children, ve.children)
|
|
11005
|
-
}), jt.push(
|
|
11006
|
+
}), jt.push(Nt);
|
|
11006
11007
|
}
|
|
11007
11008
|
vt.delete(ve.id);
|
|
11008
11009
|
}
|
|
@@ -11017,7 +11018,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11017
11018
|
}), jt;
|
|
11018
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 = () => {
|
|
11019
11020
|
M.value.init();
|
|
11020
|
-
}, T = P(), S = P(!1), F = P(!1), J = P(!1), ue = P([]),
|
|
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 = () => {
|
|
11021
11022
|
ee.value.init(Se.value);
|
|
11022
11023
|
}, Ce = (xe) => {
|
|
11023
11024
|
Se.value = xe, ge.value = !1, He();
|
|
@@ -11027,9 +11028,9 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11027
11028
|
Oe.value?.init();
|
|
11028
11029
|
}, $e = (xe) => {
|
|
11029
11030
|
ut.value = xe, et.value = !1;
|
|
11030
|
-
}, Ye = P(!1),
|
|
11031
|
+
}, Ye = P(!1), zt = () => {
|
|
11031
11032
|
Ye.value = !Ye.value;
|
|
11032
|
-
},
|
|
11033
|
+
}, Vt = () => {
|
|
11033
11034
|
p.value = [], r.value && (r.value.setSelection?.([]), g.value && (g.value = !1, r.value.setRecords(s)));
|
|
11034
11035
|
}, it = () => {
|
|
11035
11036
|
g.value = !g.value, g.value ? r.value?.setRecords(p.value) : (console.log(s, "tableData"), r.value?.setRecords(s)), r.value?.setSelection?.(p.value);
|
|
@@ -11051,7 +11052,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11051
11052
|
id: "clear_selection",
|
|
11052
11053
|
label: "清空选中",
|
|
11053
11054
|
config: { type: "text" },
|
|
11054
|
-
click:
|
|
11055
|
+
click: Vt
|
|
11055
11056
|
}
|
|
11056
11057
|
], Re = i.batchButtons.map((vt) => ({
|
|
11057
11058
|
...vt,
|
|
@@ -11087,17 +11088,17 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11087
11088
|
if (Re <= 0) return xe;
|
|
11088
11089
|
const vt = Math.max(0, Re - 4), jt = (Ot, Jt) => Ot.groupId || `__auto_${Jt}`, ve = (Ot) => {
|
|
11089
11090
|
if (Ot.config?.notLabel === !0 || !Ot.label) return 28;
|
|
11090
|
-
const Jt = 24,
|
|
11091
|
-
return Math.ceil(
|
|
11091
|
+
const Jt = 24, $t = fn(Ot.label || "") || 0, Xt = Ot.config?.icon ? 18 : 0;
|
|
11092
|
+
return Math.ceil($t + Jt + Xt + 2);
|
|
11092
11093
|
};
|
|
11093
11094
|
if (((Ot) => {
|
|
11094
|
-
let Jt = 0,
|
|
11095
|
+
let Jt = 0, $t = null;
|
|
11095
11096
|
return Ot.forEach((Xt, Xa) => {
|
|
11096
11097
|
const Fo = jt(Xt, Xa);
|
|
11097
|
-
|
|
11098
|
+
$t !== null && (Jt += Fo === $t ? -1 : 8), Jt += ve(Xt), $t = Fo;
|
|
11098
11099
|
}), Jt;
|
|
11099
11100
|
})(xe) <= vt) return xe;
|
|
11100
|
-
const
|
|
11101
|
+
const Nt = {
|
|
11101
11102
|
id: "__table_panel_more__",
|
|
11102
11103
|
label: "",
|
|
11103
11104
|
config: {
|
|
@@ -11108,18 +11109,18 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11108
11109
|
}, Pt = 28, Gt = [];
|
|
11109
11110
|
let Ze = 0, Ga = null;
|
|
11110
11111
|
for (let Ot = 0; Ot < xe.length; Ot++) {
|
|
11111
|
-
const Jt = xe[Ot],
|
|
11112
|
+
const Jt = xe[Ot], $t = jt(Jt, Ot);
|
|
11112
11113
|
let Xt = Ze;
|
|
11113
|
-
Ga !== null && (Xt +=
|
|
11114
|
+
Ga !== null && (Xt += $t === Ga ? -1 : 8), Xt += ve(Jt);
|
|
11114
11115
|
const Xa = xe.length - (Ot + 1) > 0 ? (Xt > 0 ? 8 : 0) + Pt : 0;
|
|
11115
11116
|
if (Xt + Xa <= vt)
|
|
11116
|
-
Gt.push(Jt), Ze = Xt, Ga =
|
|
11117
|
+
Gt.push(Jt), Ze = Xt, Ga = $t;
|
|
11117
11118
|
else break;
|
|
11118
11119
|
}
|
|
11119
11120
|
const Ja = xe.slice(Gt.length);
|
|
11120
11121
|
if (Ja.length === 0) return xe;
|
|
11121
11122
|
const Do = {
|
|
11122
|
-
...
|
|
11123
|
+
...Nt,
|
|
11123
11124
|
children: Ja
|
|
11124
11125
|
};
|
|
11125
11126
|
return Gt.length === 0 ? [Do] : [...Gt, Do];
|
|
@@ -11131,7 +11132,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11131
11132
|
xe && (ce = xe), ce && (Re.query = ce);
|
|
11132
11133
|
try {
|
|
11133
11134
|
const vt = {};
|
|
11134
|
-
vt.rel =
|
|
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) => ({
|
|
11135
11136
|
field: ve.field,
|
|
11136
11137
|
method: ve.method,
|
|
11137
11138
|
value: ve.value,
|
|
@@ -11183,11 +11184,11 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11183
11184
|
if (v.value) ve = xe;
|
|
11184
11185
|
else if (!i.rowKey) ve = xe;
|
|
11185
11186
|
else {
|
|
11186
|
-
const pt = new Map(xe.map((Pt) => [w(Pt), Pt])),
|
|
11187
|
+
const pt = new Map(xe.map((Pt) => [w(Pt), Pt])), Nt = new Map(p.value.map((Pt) => [w(Pt), Pt]));
|
|
11187
11188
|
s.forEach((Pt) => {
|
|
11188
11189
|
const Gt = w(Pt);
|
|
11189
|
-
pt.has(Gt) ?
|
|
11190
|
-
}), ve = Array.from(
|
|
11190
|
+
pt.has(Gt) ? Nt.set(Gt, pt.get(Gt)) : Nt.delete(Gt);
|
|
11191
|
+
}), ve = Array.from(Nt.values());
|
|
11191
11192
|
}
|
|
11192
11193
|
p.value = ve, l("select", {
|
|
11193
11194
|
selections: ve,
|
|
@@ -11206,11 +11207,11 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11206
11207
|
getSelection: Ka,
|
|
11207
11208
|
setSelection: Wi,
|
|
11208
11209
|
clearSelection: () => {
|
|
11209
|
-
|
|
11210
|
+
Vt();
|
|
11210
11211
|
},
|
|
11211
11212
|
getTableRef: $o
|
|
11212
11213
|
}), (xe, Re) => {
|
|
11213
|
-
const vt = B("j-buttons"), jt = B("j-icon"), ve = B("el-popover"), pt = B("el-tooltip"),
|
|
11214
|
+
const vt = B("j-buttons"), jt = B("j-icon"), ve = B("el-popover"), pt = B("el-tooltip"), Nt = B("el-input"), Pt = B("j-button"), Gt = B("j-table");
|
|
11214
11215
|
return _(), O("div", { class: We(["j-table-panel-wrapper", {
|
|
11215
11216
|
fullscreen: Ye.value,
|
|
11216
11217
|
"no-padding": e.noPadding || Ye.value
|
|
@@ -11219,7 +11220,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11219
11220
|
ref: en,
|
|
11220
11221
|
class: "j-table-panel-top-left"
|
|
11221
11222
|
}, [K(vt, { list: ae.value }, null, 8, ["list"])], 512), z("div", jy, [
|
|
11222
|
-
E.value && !x.value ? (_(), O("div", Py, [K(
|
|
11223
|
+
E.value && !x.value ? (_(), O("div", Py, [K(Nt, {
|
|
11223
11224
|
modelValue: C.value,
|
|
11224
11225
|
"onUpdate:modelValue": Re[2] || (Re[2] = (Ze) => C.value = Ze),
|
|
11225
11226
|
modelModifiers: { trim: !0 },
|
|
@@ -11288,8 +11289,8 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11288
11289
|
ref: T,
|
|
11289
11290
|
"is-pin": S.value,
|
|
11290
11291
|
"onUpdate:isPin": Re[3] || (Re[3] = (Ze) => S.value = Ze),
|
|
11291
|
-
relation:
|
|
11292
|
-
"onUpdate:relation": Re[4] || (Re[4] = (Ze) =>
|
|
11292
|
+
relation: D.value,
|
|
11293
|
+
"onUpdate:relation": Re[4] || (Re[4] = (Ze) => D.value = Ze),
|
|
11293
11294
|
"search-field-list": ue.value,
|
|
11294
11295
|
columns: k.value,
|
|
11295
11296
|
onFilter: He,
|
|
@@ -11382,7 +11383,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11382
11383
|
default: N(() => [K(Pt, {
|
|
11383
11384
|
type: "text",
|
|
11384
11385
|
icon: Ye.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
11385
|
-
onClick:
|
|
11386
|
+
onClick: zt
|
|
11386
11387
|
}, null, 8, ["icon"])]),
|
|
11387
11388
|
_: 1
|
|
11388
11389
|
}, 8, ["content"])) : G("", !0)
|
|
@@ -11449,8 +11450,8 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11449
11450
|
ref: T,
|
|
11450
11451
|
"is-pin": S.value,
|
|
11451
11452
|
"onUpdate:isPin": Re[10] || (Re[10] = (Ze) => S.value = Ze),
|
|
11452
|
-
relation:
|
|
11453
|
-
"onUpdate:relation": Re[11] || (Re[11] = (Ze) =>
|
|
11453
|
+
relation: D.value,
|
|
11454
|
+
"onUpdate:relation": Re[11] || (Re[11] = (Ze) => D.value = Ze),
|
|
11454
11455
|
"search-field-list": ue.value,
|
|
11455
11456
|
columns: k.value,
|
|
11456
11457
|
onFilter: He
|
|
@@ -11709,7 +11710,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11709
11710
|
setCheck: m,
|
|
11710
11711
|
getCheck: w
|
|
11711
11712
|
}), (W, T) => {
|
|
11712
|
-
const S = B("j-icon"), F = B("j-button"), J = B("el-dropdown-item"), ue = B("el-dropdown-menu"),
|
|
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");
|
|
11713
11714
|
return Tn((_(), O("div", {
|
|
11714
11715
|
class: We([
|
|
11715
11716
|
"j-block",
|
|
@@ -11756,7 +11757,7 @@ var ap = { class: "j-table-footer" }, op = {
|
|
|
11756
11757
|
color: ne.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
11757
11758
|
}, null, 8, ["icon", "color"])) : G("", !0),
|
|
11758
11759
|
z("div", Ky, we(ne.label), 1),
|
|
11759
|
-
C(ne.data).length ? (_(), O("div", Gy, [(_(!0), O(be, null, Ae(C(ne.data), (Ce, ze) => (_(), I(
|
|
11760
|
+
C(ne.data).length ? (_(), O("div", Gy, [(_(!0), O(be, null, Ae(C(ne.data), (Ce, ze) => (_(), I(D, {
|
|
11760
11761
|
key: ze,
|
|
11761
11762
|
trigger: "click",
|
|
11762
11763
|
onVisibleChange: (Oe) => U(Oe, ne.data)
|
|
@@ -12016,12 +12017,12 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12016
12017
|
const ae = q[Q];
|
|
12017
12018
|
he && (Q = he + "." + Q), ae != null && typeof ae == "object" && !ul(ae) && ue(ae, Q), y[Q] = ae;
|
|
12018
12019
|
});
|
|
12019
|
-
},
|
|
12020
|
+
}, D = (q, he) => {
|
|
12020
12021
|
let Q = q.id;
|
|
12021
12022
|
return Q || (q.config?.table && q.config?.field ? Q = `${q.config.table}.${q.config.field}` : q.config?.table ? Q = q.config?.table : q.config?.field && (Q = q.config?.field), he && F(he) && (Q = `${he}.${Q}`)), Q || Bl("j");
|
|
12022
12023
|
}, ee = (q, he, Q, ae = "") => {
|
|
12023
12024
|
q.forEach((ce) => {
|
|
12024
|
-
ce.id =
|
|
12025
|
+
ce.id = D(ce, ae);
|
|
12025
12026
|
const Te = {
|
|
12026
12027
|
id: ce.id,
|
|
12027
12028
|
slot: ce.slot,
|
|
@@ -12177,7 +12178,7 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12177
12178
|
const ce = $e(q);
|
|
12178
12179
|
ce && (ce.config.parentTableId ? y[ce.config.parentTableId][he][q] = Q : y[q] = Q);
|
|
12179
12180
|
}
|
|
12180
|
-
},
|
|
12181
|
+
}, zt = ({ id: q, i: he }) => {
|
|
12181
12182
|
const Q = $e(q);
|
|
12182
12183
|
if (Q) {
|
|
12183
12184
|
if (Q.config.parentTableId) {
|
|
@@ -12197,8 +12198,8 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12197
12198
|
return y[Q.id || ""];
|
|
12198
12199
|
}
|
|
12199
12200
|
if (y[q]) return y[q];
|
|
12200
|
-
},
|
|
12201
|
-
const Q =
|
|
12201
|
+
}, Vt = async ({ id: q, i: he }) => {
|
|
12202
|
+
const Q = zt({
|
|
12202
12203
|
id: q,
|
|
12203
12204
|
i: he
|
|
12204
12205
|
}), ae = $e(q);
|
|
@@ -12230,7 +12231,7 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12230
12231
|
});
|
|
12231
12232
|
}
|
|
12232
12233
|
return Q;
|
|
12233
|
-
}, it = async (q, he) => p?.loadViewDataList ? await p?.loadViewDataList(q, he, !1) : [], aa = (q) => (q.set = Ye, q.get =
|
|
12234
|
+
}, it = async (q, he) => p?.loadViewDataList ? await p?.loadViewDataList(q, he, !1) : [], aa = (q) => (q.set = Ye, q.get = zt, q.setFormData = ne, q.getFormData = ze, q.getLabel = Vt, q.getViewData = it, q.getDateNow = (he) => fc(/* @__PURE__ */ new Date(), he || "YYYY-MM-DD HH:mm:ss"), q.httpGet = r || (() => {
|
|
12234
12235
|
console.log("当前状态不支持");
|
|
12235
12236
|
}), q.httpPost = s || (() => {
|
|
12236
12237
|
console.log("当前状态不支持");
|
|
@@ -12277,15 +12278,15 @@ var rm = /* @__PURE__ */ fe({
|
|
|
12277
12278
|
span: x,
|
|
12278
12279
|
labelWidth: m,
|
|
12279
12280
|
labelPosition: w,
|
|
12280
|
-
getValue:
|
|
12281
|
+
getValue: zt,
|
|
12281
12282
|
formChange: T
|
|
12282
12283
|
}), vc({ contextType: "form" }), t({
|
|
12283
12284
|
init: ge,
|
|
12284
12285
|
reset: ke,
|
|
12285
12286
|
validate: oe,
|
|
12286
12287
|
setValue: Ye,
|
|
12287
|
-
getValue:
|
|
12288
|
-
getLabel:
|
|
12288
|
+
getValue: zt,
|
|
12289
|
+
getLabel: Vt,
|
|
12289
12290
|
setFormData: ne,
|
|
12290
12291
|
getFormData: ze,
|
|
12291
12292
|
setCompConfig: en
|
|
@@ -13626,12 +13627,12 @@ function Mc(e, t, n) {
|
|
|
13626
13627
|
A && Fn.unbind(C, E, A.$delegate);
|
|
13627
13628
|
}
|
|
13628
13629
|
function p(C) {
|
|
13629
|
-
|
|
13630
|
+
le(s, function(E, M) {
|
|
13630
13631
|
d(C, M, E);
|
|
13631
13632
|
});
|
|
13632
13633
|
}
|
|
13633
13634
|
function g(C) {
|
|
13634
|
-
|
|
13635
|
+
le(s, function(E, M) {
|
|
13635
13636
|
h(C, M, E);
|
|
13636
13637
|
});
|
|
13637
13638
|
}
|
|
@@ -13679,7 +13680,7 @@ function Mc(e, t, n) {
|
|
|
13679
13680
|
Ue(C, E);
|
|
13680
13681
|
}
|
|
13681
13682
|
this.removeHits = function(C) {
|
|
13682
|
-
|
|
13683
|
+
le(ll(".djs-hit", C), Zt);
|
|
13683
13684
|
}, this.createDefaultHit = function(C, E) {
|
|
13684
13685
|
var M = C.waypoints, A = C.isFrame, U;
|
|
13685
13686
|
return M ? this.createWaypointsHit(E, M) : (U = A ? "stroke" : "all", this.createBoxHit(E, U, {
|
|
@@ -13747,7 +13748,7 @@ Ba.prototype.select = function(e, t) {
|
|
|
13747
13748
|
var o = this._canvas, i = o.getRootElement();
|
|
13748
13749
|
e = e.filter(function(l) {
|
|
13749
13750
|
return i === o.findRoot(l);
|
|
13750
|
-
}), t ?
|
|
13751
|
+
}), t ? le(e, function(l) {
|
|
13751
13752
|
n.indexOf(l) === -1 && n.push(l);
|
|
13752
13753
|
}) : this._selectedElements = n = e.slice(), this._eventBus.fire("selection.changed", {
|
|
13753
13754
|
oldSelection: a,
|
|
@@ -13775,9 +13776,9 @@ function Ac(e, t) {
|
|
|
13775
13776
|
n(c, Dr);
|
|
13776
13777
|
}
|
|
13777
13778
|
var r = o.oldSelection, s = o.newSelection;
|
|
13778
|
-
|
|
13779
|
+
le(r, function(c) {
|
|
13779
13780
|
s.indexOf(c) === -1 && i(c);
|
|
13780
|
-
}),
|
|
13781
|
+
}), le(s, function(c) {
|
|
13781
13782
|
r.indexOf(c) === -1 && l(c);
|
|
13782
13783
|
});
|
|
13783
13784
|
});
|
|
@@ -14104,7 +14105,7 @@ function Nr(e, t, n) {
|
|
|
14104
14105
|
return a && e.push(t), a;
|
|
14105
14106
|
}
|
|
14106
14107
|
function Wl(e, t, n) {
|
|
14107
|
-
n = n || 0, ot(e) || (e = [e]),
|
|
14108
|
+
n = n || 0, ot(e) || (e = [e]), le(e, function(a, o) {
|
|
14108
14109
|
var i = t(a, o, n);
|
|
14109
14110
|
ot(i) && i.length && Wl(i, t, n + 1);
|
|
14110
14111
|
});
|
|
@@ -14132,7 +14133,7 @@ function Sb(e, t, n) {
|
|
|
14132
14133
|
function c(u) {
|
|
14133
14134
|
if (i[u.id] = u, u.waypoints) l[u.id] = o[u.id] = u;
|
|
14134
14135
|
else
|
|
14135
|
-
return a[u.id] = u,
|
|
14136
|
+
return a[u.id] = u, le(u.incoming, s), le(u.outgoing, s), u.children;
|
|
14136
14137
|
}
|
|
14137
14138
|
return Wl(e, c), {
|
|
14138
14139
|
allShapes: a,
|
|
@@ -14145,7 +14146,7 @@ function Sb(e, t, n) {
|
|
|
14145
14146
|
function Cn(e, t) {
|
|
14146
14147
|
t = !!t, ot(e) || (e = [e]);
|
|
14147
14148
|
var n, a, o, i;
|
|
14148
|
-
return
|
|
14149
|
+
return le(e, function(l) {
|
|
14149
14150
|
var r = l;
|
|
14150
14151
|
l.waypoints && !t && (r = Cn(l.waypoints, !0));
|
|
14151
14152
|
var s = r.x, c = r.y, u = r.height || 0, f = r.width || 0;
|
|
@@ -14159,7 +14160,7 @@ function Cn(e, t) {
|
|
|
14159
14160
|
}
|
|
14160
14161
|
function kb(e, t) {
|
|
14161
14162
|
var n = {};
|
|
14162
|
-
return
|
|
14163
|
+
return le(e, function(a) {
|
|
14163
14164
|
var o = a;
|
|
14164
14165
|
o.waypoints && (o = Cn(o)), !Tt(t.y) && o.x > t.x && (n[a.id] = a), !Tt(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Tt(t.width) && Tt(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Tt(t.width) || !Tt(t.height)) && (n[a.id] = a);
|
|
14165
14166
|
}), n;
|
|
@@ -14286,13 +14287,13 @@ function zc(e, t, n, a, o) {
|
|
|
14286
14287
|
elements: c,
|
|
14287
14288
|
hints: {},
|
|
14288
14289
|
shape: f
|
|
14289
|
-
}, u || {}),
|
|
14290
|
+
}, u || {}), le(c, function(h) {
|
|
14290
14291
|
Tt(h.x) || (h.x = 0), Tt(h.y) || (h.y = 0);
|
|
14291
14292
|
});
|
|
14292
14293
|
var d = Cn(an(c, function(h) {
|
|
14293
14294
|
return !h.hidden;
|
|
14294
14295
|
}));
|
|
14295
|
-
|
|
14296
|
+
le(c, function(h) {
|
|
14296
14297
|
Ut(h) && (h.waypoints = _o(h.waypoints, function(p) {
|
|
14297
14298
|
return {
|
|
14298
14299
|
x: p.x - d.x - d.width / 2,
|
|
@@ -14743,8 +14744,8 @@ function Vc(e, t, n, a, o, i, l, r, s, c) {
|
|
|
14743
14744
|
]);
|
|
14744
14745
|
}
|
|
14745
14746
|
E = C - k;
|
|
14746
|
-
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,
|
|
14747
|
-
if (ee[0] = 2 *
|
|
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
|
+
if (ee[0] = 2 * D[0] - ee[0], ee[1] = 2 * D[1] - ee[1], c) return [
|
|
14748
14749
|
ee,
|
|
14749
14750
|
ge,
|
|
14750
14751
|
Se
|
|
@@ -15324,20 +15325,20 @@ function Aa(e, t) {
|
|
|
15324
15325
|
}
|
|
15325
15326
|
}
|
|
15326
15327
|
var fw = 1e3;
|
|
15327
|
-
function
|
|
15328
|
+
function Ft(e) {
|
|
15328
15329
|
this._eventBus = e;
|
|
15329
15330
|
}
|
|
15330
|
-
|
|
15331
|
+
Ft.$inject = ["eventBus"];
|
|
15331
15332
|
function hw(e, t) {
|
|
15332
15333
|
return function(n) {
|
|
15333
15334
|
return e.call(t || null, n.context, n.command, n);
|
|
15334
15335
|
};
|
|
15335
15336
|
}
|
|
15336
|
-
|
|
15337
|
+
Ft.prototype.on = function(e, t, n, a, o, i) {
|
|
15337
15338
|
if ((xn(t) || Tt(t)) && (i = o, o = a, a = n, n = t, t = null), xn(n) && (i = o, o = a, a = n, n = fw), on(o) && (i = o, o = !1), !xn(a)) throw new Error("handlerFn must be a function");
|
|
15338
15339
|
ot(e) || (e = [e]);
|
|
15339
15340
|
var l = this._eventBus;
|
|
15340
|
-
|
|
15341
|
+
le(e, function(r) {
|
|
15341
15342
|
var s = [
|
|
15342
15343
|
"commandStack",
|
|
15343
15344
|
r,
|
|
@@ -15348,15 +15349,15 @@ Vt.prototype.on = function(e, t, n, a, o, i) {
|
|
|
15348
15349
|
l.on(s, n, o ? hw(a, i) : a, i);
|
|
15349
15350
|
});
|
|
15350
15351
|
};
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15352
|
+
Ft.prototype.canExecute = Pn("canExecute");
|
|
15353
|
+
Ft.prototype.preExecute = Pn("preExecute");
|
|
15354
|
+
Ft.prototype.preExecuted = Pn("preExecuted");
|
|
15355
|
+
Ft.prototype.execute = Pn("execute");
|
|
15356
|
+
Ft.prototype.executed = Pn("executed");
|
|
15357
|
+
Ft.prototype.postExecute = Pn("postExecute");
|
|
15358
|
+
Ft.prototype.postExecuted = Pn("postExecuted");
|
|
15359
|
+
Ft.prototype.revert = Pn("revert");
|
|
15360
|
+
Ft.prototype.reverted = Pn("reverted");
|
|
15360
15361
|
function Pn(e) {
|
|
15361
15362
|
return function(n, a, o, i, l) {
|
|
15362
15363
|
(xn(n) || Tt(n)) && (l = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, l);
|
|
@@ -15364,24 +15365,24 @@ function Pn(e) {
|
|
|
15364
15365
|
}
|
|
15365
15366
|
var pw = 250, cs = 1400;
|
|
15366
15367
|
function Xl(e, t, n) {
|
|
15367
|
-
|
|
15368
|
+
Ft.call(this, t);
|
|
15368
15369
|
var a = e.get("movePreview", !1);
|
|
15369
15370
|
t.on("shape.move.start", cs, function(o) {
|
|
15370
15371
|
var i = o.context, l = i.shapes, r = i.validatedShapes;
|
|
15371
15372
|
i.shapes = us(l), i.validatedShapes = us(r);
|
|
15372
15373
|
}), a && t.on("shape.move.start", pw, function(o) {
|
|
15373
15374
|
var i = o.context, l = i.shapes, r = [];
|
|
15374
|
-
|
|
15375
|
-
|
|
15375
|
+
le(l, function(s) {
|
|
15376
|
+
le(s.labels, function(c) {
|
|
15376
15377
|
!c.hidden && i.shapes.indexOf(c) === -1 && r.push(c), s.labelTarget && r.push(s);
|
|
15377
15378
|
});
|
|
15378
|
-
}),
|
|
15379
|
+
}), le(r, function(s) {
|
|
15379
15380
|
a.makeDraggable(i, s, !0);
|
|
15380
15381
|
});
|
|
15381
15382
|
}), this.preExecuted("elements.move", cs, function(o) {
|
|
15382
15383
|
var i = o.context.closure, l = i.enclosedElements, r = [];
|
|
15383
|
-
|
|
15384
|
-
|
|
15384
|
+
le(l, function(s) {
|
|
15385
|
+
le(s.labels, function(c) {
|
|
15385
15386
|
l[c.id] || r.push(c);
|
|
15386
15387
|
});
|
|
15387
15388
|
}), i.addAll(r);
|
|
@@ -15398,7 +15399,7 @@ function Xl(e, t, n) {
|
|
|
15398
15399
|
r && (Gn(r.labels, l, s), l.labelTarget = r);
|
|
15399
15400
|
});
|
|
15400
15401
|
}
|
|
15401
|
-
ya(Xl,
|
|
15402
|
+
ya(Xl, Ft);
|
|
15402
15403
|
Xl.$inject = [
|
|
15403
15404
|
"injector",
|
|
15404
15405
|
"eventBus",
|
|
@@ -15639,7 +15640,7 @@ function ji(e, t) {
|
|
|
15639
15640
|
ji.$inject = ["modeling", "canvas"];
|
|
15640
15641
|
ji.prototype.preExecute = function(e) {
|
|
15641
15642
|
var t = this._modeling, n = e.elements, a = e.alignment;
|
|
15642
|
-
|
|
15643
|
+
le(n, function(o) {
|
|
15643
15644
|
var i = {
|
|
15644
15645
|
x: 0,
|
|
15645
15646
|
y: 0
|
|
@@ -15689,13 +15690,13 @@ function Zl(e) {
|
|
|
15689
15690
|
Zl.$inject = ["modeling"];
|
|
15690
15691
|
Zl.prototype.preExecute = function(e) {
|
|
15691
15692
|
var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, l = this._modeling;
|
|
15692
|
-
|
|
15693
|
+
le(t, function(u) {
|
|
15693
15694
|
Tt(u.x) || (u.x = 0), Tt(u.y) || (u.y = 0);
|
|
15694
15695
|
});
|
|
15695
15696
|
var r = Cn(an(t, function(u) {
|
|
15696
15697
|
return !u.hidden;
|
|
15697
15698
|
}));
|
|
15698
|
-
|
|
15699
|
+
le(t, function(u) {
|
|
15699
15700
|
Ut(u) && (u.waypoints = _o(u.waypoints, function(f) {
|
|
15700
15701
|
return {
|
|
15701
15702
|
x: Zo(f.x - r.x - r.width / 2 + o.x),
|
|
@@ -15707,7 +15708,7 @@ Zl.prototype.preExecute = function(e) {
|
|
|
15707
15708
|
});
|
|
15708
15709
|
});
|
|
15709
15710
|
var s = xb(t), c = {};
|
|
15710
|
-
|
|
15711
|
+
le(t, function(u) {
|
|
15711
15712
|
if (Ut(u)) {
|
|
15712
15713
|
c[u.id] = Tt(a) ? l.createConnection(c[u.source.id], c[u.target.id], a, u, u.parent || n, i) : l.createConnection(c[u.source.id], c[u.target.id], u, u.parent || n, i);
|
|
15713
15714
|
return;
|
|
@@ -15789,7 +15790,7 @@ function Ql(e, t) {
|
|
|
15789
15790
|
Ql.$inject = ["modeling", "elementRegistry"];
|
|
15790
15791
|
Ql.prototype.postExecute = function(e) {
|
|
15791
15792
|
var t = this._modeling, n = this._elementRegistry, a = e.elements;
|
|
15792
|
-
|
|
15793
|
+
le(a, function(o) {
|
|
15793
15794
|
n.get(o.id) && (o.waypoints ? t.removeConnection(o) : t.removeShape(o));
|
|
15794
15795
|
});
|
|
15795
15796
|
};
|
|
@@ -15842,13 +15843,13 @@ Hi.prototype.preExecute = function(e) {
|
|
|
15842
15843
|
x[a] = v - l(b), x[a] && (x[hs[a]] = 0, t.moveElements([b], x, b.parent));
|
|
15843
15844
|
}
|
|
15844
15845
|
var u = n[0], f = r(n), d = n[f], h, p, g = 0;
|
|
15845
|
-
|
|
15846
|
+
le(n, function(v, b) {
|
|
15846
15847
|
var x, m, w;
|
|
15847
15848
|
if (v.elements.length < 2) {
|
|
15848
15849
|
b && b !== n.length - 1 && (i(v, v.elements[0]), g += s(v.range));
|
|
15849
15850
|
return;
|
|
15850
15851
|
}
|
|
15851
|
-
x = mo(v.elements, a), m = x[0], b === f && (m = x[r(x)]), w = l(m), v.range = null,
|
|
15852
|
+
x = mo(v.elements, a), m = x[0], b === f && (m = x[r(x)]), w = l(m), v.range = null, le(x, function(R) {
|
|
15852
15853
|
if (c(w, R), v.range === null) {
|
|
15853
15854
|
v.range = {
|
|
15854
15855
|
min: R[a],
|
|
@@ -15858,9 +15859,9 @@ Hi.prototype.preExecute = function(e) {
|
|
|
15858
15859
|
}
|
|
15859
15860
|
i(v, R);
|
|
15860
15861
|
}), b && b !== n.length - 1 && (g += s(v.range));
|
|
15861
|
-
}), p = Math.abs(d.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) &&
|
|
15862
|
+
}), p = Math.abs(d.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) && le(n, function(v, b) {
|
|
15862
15863
|
var x = {}, m;
|
|
15863
|
-
v === u || v === d || (m = n[b - 1], v.range.max = 0,
|
|
15864
|
+
v === u || v === d || (m = n[b - 1], v.range.max = 0, le(v.elements, function(w, R) {
|
|
15864
15865
|
x[hs[a]] = 0, x[a] = m.range.max - w[a] + h, v.range.min !== w[a] && (x[a] += w[a] - v.range.min), x[a] && t.moveElements([w], x, w.parent), v.range.max = Math.max(w[a] + w[o], R ? v.range.max : 0);
|
|
15865
15866
|
}));
|
|
15866
15867
|
});
|
|
@@ -15883,13 +15884,13 @@ function er() {
|
|
|
15883
15884
|
}
|
|
15884
15885
|
er.prototype.execute = function(e) {
|
|
15885
15886
|
var t = e.connection, n = e.delta, a = e.newParent || t.parent, o = e.newParentIndex, i = t.parent;
|
|
15886
|
-
return e.oldParent = i, e.oldParentIndex = Ai(i.children, t), Gn(a.children, t, o), t.parent = a,
|
|
15887
|
+
return e.oldParent = i, e.oldParentIndex = Ai(i.children, t), Gn(a.children, t, o), t.parent = a, le(t.waypoints, function(l) {
|
|
15887
15888
|
l.x += n.x, l.y += n.y, l.original && (l.original.x += n.x, l.original.y += n.y);
|
|
15888
15889
|
}), t;
|
|
15889
15890
|
};
|
|
15890
15891
|
er.prototype.revert = function(e) {
|
|
15891
15892
|
var t = e.connection, n = t.parent, a = e.oldParent, o = e.oldParentIndex, i = e.delta;
|
|
15892
|
-
return Ai(n.children, t), Gn(a.children, t, o), t.parent = a,
|
|
15893
|
+
return Ai(n.children, t), Gn(a.children, t, o), t.parent = a, le(t.waypoints, function(l) {
|
|
15893
15894
|
l.x -= i.x, l.y -= i.y, l.original && (l.original.x -= i.x, l.original.y -= i.y);
|
|
15894
15895
|
}), t;
|
|
15895
15896
|
};
|
|
@@ -15961,12 +15962,12 @@ jo.prototype.moveRecursive = function(e, t, n) {
|
|
|
15961
15962
|
};
|
|
15962
15963
|
jo.prototype.moveClosure = function(e, t, n, a, o) {
|
|
15963
15964
|
var i = this._modeling, l = e.allShapes, r = e.allConnections, s = e.enclosedConnections, c = e.topLevel, u = !1;
|
|
15964
|
-
o && o.parent === n && (u = !0),
|
|
15965
|
+
o && o.parent === n && (u = !0), le(l, function(f) {
|
|
15965
15966
|
i.moveShape(f, t, c[f.id] && !u && n, {
|
|
15966
15967
|
recurse: !1,
|
|
15967
15968
|
layout: !1
|
|
15968
15969
|
});
|
|
15969
|
-
}),
|
|
15970
|
+
}), le(r, function(f) {
|
|
15970
15971
|
var d = !!l[f.source.id], h = !!l[f.target.id];
|
|
15971
15972
|
s[f.id] && d && h ? i.moveConnection(f, t, c[f.id] && !u && n) : i.layoutConnection(f, {
|
|
15972
15973
|
connectionStart: d && ar(f, f.source, t),
|
|
@@ -16007,9 +16008,9 @@ ba.prototype.execute = function(e) {
|
|
|
16007
16008
|
};
|
|
16008
16009
|
ba.prototype.postExecute = function(e) {
|
|
16009
16010
|
var t = e.shape, n = e.delta, a = e.hints, o = this._modeling;
|
|
16010
|
-
a.layout !== !1 && (
|
|
16011
|
+
a.layout !== !1 && (le(t.incoming, function(i) {
|
|
16011
16012
|
o.layoutConnection(i, { connectionEnd: or(i, t, n) });
|
|
16012
|
-
}),
|
|
16013
|
+
}), le(t.outgoing, function(i) {
|
|
16013
16014
|
o.layoutConnection(i, { connectionStart: ar(i, t, n) });
|
|
16014
16015
|
})), a.recurse !== !1 && this.moveChildren(e);
|
|
16015
16016
|
};
|
|
@@ -16077,10 +16078,10 @@ On.prototype.preExecute = function(e) {
|
|
|
16077
16078
|
y: 0
|
|
16078
16079
|
}, r, l));
|
|
16079
16080
|
var d = o.incoming.slice(), h = o.outgoing.slice();
|
|
16080
|
-
|
|
16081
|
+
le(d, function(p) {
|
|
16081
16082
|
var g = p.source;
|
|
16082
16083
|
s(g, r, p) && t.reconnectEnd(p, r, nr(p, r, u), l);
|
|
16083
|
-
}),
|
|
16084
|
+
}), le(h, function(p) {
|
|
16084
16085
|
var g = p.target;
|
|
16085
16086
|
s(r, g, p) && t.reconnectStart(p, r, tr(p, r, u), l);
|
|
16086
16087
|
});
|
|
@@ -16125,9 +16126,9 @@ Oo.prototype.execute = function(e) {
|
|
|
16125
16126
|
};
|
|
16126
16127
|
Oo.prototype.postExecute = function(e) {
|
|
16127
16128
|
var t = this._modeling, n = e.shape, a = e.oldBounds;
|
|
16128
|
-
(e.hints || {}).layout !== !1 && (
|
|
16129
|
+
(e.hints || {}).layout !== !1 && (le(n.incoming, function(o) {
|
|
16129
16130
|
t.layoutConnection(o, { connectionEnd: nr(o, n, a) });
|
|
16130
|
-
}),
|
|
16131
|
+
}), le(n.outgoing, function(o) {
|
|
16131
16132
|
t.layoutConnection(o, { connectionStart: tr(o, n, a) });
|
|
16132
16133
|
}));
|
|
16133
16134
|
};
|
|
@@ -16142,9 +16143,9 @@ Oo.prototype.revert = function(e) {
|
|
|
16142
16143
|
};
|
|
16143
16144
|
function Aw(e, t) {
|
|
16144
16145
|
var n = [];
|
|
16145
|
-
return
|
|
16146
|
+
return le(e.concat(t), function(a) {
|
|
16146
16147
|
var o = a.incoming, i = a.outgoing;
|
|
16147
|
-
|
|
16148
|
+
le(o.concat(i), function(l) {
|
|
16148
16149
|
var r = l.source, s = l.target;
|
|
16149
16150
|
(Qa(e, r) || Qa(e, s) || Qa(t, r) || Qa(t, s)) && (Qa(n, l) || n.push(l));
|
|
16150
16151
|
});
|
|
@@ -16194,7 +16195,7 @@ function qn(e) {
|
|
|
16194
16195
|
qn.$inject = ["modeling"];
|
|
16195
16196
|
qn.prototype.preExecute = function(e) {
|
|
16196
16197
|
var t = e.delta, n = e.direction, a = e.movingShapes, o = e.resizingShapes, i = e.start, l = {};
|
|
16197
|
-
this.moveShapes(a, t),
|
|
16198
|
+
this.moveShapes(a, t), le(o, function(r) {
|
|
16198
16199
|
l[r.id] = Ow(r);
|
|
16199
16200
|
}), this.resizeShapes(o, t, n), this.updateConnectionWaypoints(Aw(a, o), t, n, i, a, o, l);
|
|
16200
16201
|
};
|
|
@@ -16204,7 +16205,7 @@ qn.prototype.revert = function() {
|
|
|
16204
16205
|
};
|
|
16205
16206
|
qn.prototype.moveShapes = function(e, t) {
|
|
16206
16207
|
var n = this;
|
|
16207
|
-
|
|
16208
|
+
le(e, function(a) {
|
|
16208
16209
|
n._modeling.moveShape(a, t, null, {
|
|
16209
16210
|
autoResize: !1,
|
|
16210
16211
|
layout: !1,
|
|
@@ -16214,7 +16215,7 @@ qn.prototype.moveShapes = function(e, t) {
|
|
|
16214
16215
|
};
|
|
16215
16216
|
qn.prototype.resizeShapes = function(e, t, n) {
|
|
16216
16217
|
var a = this;
|
|
16217
|
-
|
|
16218
|
+
le(e, function(o) {
|
|
16218
16219
|
var i = jw(o, n, t);
|
|
16219
16220
|
a._modeling.resizeShape(o, i, null, {
|
|
16220
16221
|
attachSupport: !1,
|
|
@@ -16225,7 +16226,7 @@ qn.prototype.resizeShapes = function(e, t, n) {
|
|
|
16225
16226
|
};
|
|
16226
16227
|
qn.prototype.updateConnectionWaypoints = function(e, t, n, a, o, i, l) {
|
|
16227
16228
|
var r = this, s = o.concat(i);
|
|
16228
|
-
|
|
16229
|
+
le(e, function(c) {
|
|
16229
16230
|
var u = c.source, f = c.target, d = Pw(c), h = su(n), p = {};
|
|
16230
16231
|
$n(s, u) && $n(s, f) ? (d = _o(d, function(g) {
|
|
16231
16232
|
return vs(g, a, n) && (g[h] = g[h] + t[h]), g.original && vs(g.original, a, n) && (g.original[h] = g.original[h] + t[h]), g;
|
|
@@ -16284,19 +16285,19 @@ $i.prototype.revert = function(e) {
|
|
|
16284
16285
|
};
|
|
16285
16286
|
function cu(e) {
|
|
16286
16287
|
var t = {};
|
|
16287
|
-
return
|
|
16288
|
+
return le(e, function(n) {
|
|
16288
16289
|
t[n.id] = n.hidden, n.children && (t = Le({}, t, cu(n.children)));
|
|
16289
16290
|
}), t;
|
|
16290
16291
|
}
|
|
16291
16292
|
function uu(e, t) {
|
|
16292
16293
|
var n = [];
|
|
16293
|
-
return
|
|
16294
|
+
return le(e, function(a) {
|
|
16294
16295
|
a.hidden = t, n = n.concat(a), a.children && (n = n.concat(uu(a.children, a.collapsed || t)));
|
|
16295
16296
|
}), n;
|
|
16296
16297
|
}
|
|
16297
16298
|
function du(e, t) {
|
|
16298
16299
|
var n = [];
|
|
16299
|
-
return
|
|
16300
|
+
return le(e, function(a) {
|
|
16300
16301
|
a.hidden = t[a.id], n = n.concat(a), a.children && (n = n.concat(du(a.children, t)));
|
|
16301
16302
|
}), n;
|
|
16302
16303
|
}
|
|
@@ -16369,7 +16370,7 @@ Qe.prototype.getHandlers = function() {
|
|
|
16369
16370
|
};
|
|
16370
16371
|
};
|
|
16371
16372
|
Qe.prototype.registerHandlers = function(e) {
|
|
16372
|
-
|
|
16373
|
+
le(this.getHandlers(), function(t, n) {
|
|
16373
16374
|
e.registerHandler(n, t);
|
|
16374
16375
|
});
|
|
16375
16376
|
};
|
|
@@ -16708,7 +16709,7 @@ Ho.prototype.updateLabel = function(e, t, n, a) {
|
|
|
16708
16709
|
});
|
|
16709
16710
|
};
|
|
16710
16711
|
function cr(e, t) {
|
|
16711
|
-
|
|
16712
|
+
Ft.call(this, e);
|
|
16712
16713
|
function n(a) {
|
|
16713
16714
|
const { context: o } = a, i = o.hints || {};
|
|
16714
16715
|
let l;
|
|
@@ -16716,7 +16717,7 @@ function cr(e, t) {
|
|
|
16716
16717
|
}
|
|
16717
16718
|
this.executed(["connection.layout", "connection.create"], n);
|
|
16718
16719
|
}
|
|
16719
|
-
pa(cr,
|
|
16720
|
+
pa(cr, Ft);
|
|
16720
16721
|
cr.$inject = ["eventBus", "connectionDocking"];
|
|
16721
16722
|
function yu() {
|
|
16722
16723
|
}
|
|
@@ -17275,15 +17276,15 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17275
17276
|
strokeWidth: 2,
|
|
17276
17277
|
fill: r
|
|
17277
17278
|
}), ue.fill === "none" && delete ue.fillOpacity;
|
|
17278
|
-
const
|
|
17279
|
+
const D = S / 2, ee = F / 2, ge = Fe("circle");
|
|
17279
17280
|
return je(ge, {
|
|
17280
|
-
cx:
|
|
17281
|
+
cx: D,
|
|
17281
17282
|
cy: ee,
|
|
17282
17283
|
r: Math.round((S + F) / 4 - J)
|
|
17283
17284
|
}), je(ge, ue), Ue(T, ge), ge;
|
|
17284
17285
|
}
|
|
17285
|
-
function b(T, S, F, J, ue,
|
|
17286
|
-
ys(ue) && (
|
|
17286
|
+
function b(T, S, F, J, ue, D) {
|
|
17287
|
+
ys(ue) && (D = ue, ue = 0), ue = ue || 0, D = u(D, {
|
|
17287
17288
|
stroke: s,
|
|
17288
17289
|
strokeWidth: 2,
|
|
17289
17290
|
fill: r
|
|
@@ -17296,7 +17297,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17296
17297
|
height: F - ue * 2,
|
|
17297
17298
|
rx: J,
|
|
17298
17299
|
ry: J
|
|
17299
|
-
}), je(ee,
|
|
17300
|
+
}), je(ee, D), Ue(T, ee), ee;
|
|
17300
17301
|
}
|
|
17301
17302
|
function x(T, S, F) {
|
|
17302
17303
|
F = u(F, ["no-fill"], {
|
|
@@ -17307,14 +17308,14 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17307
17308
|
return je(J, { d: S }), je(J, F), Ue(T, J), J;
|
|
17308
17309
|
}
|
|
17309
17310
|
function m(T, S, F, J) {
|
|
17310
|
-
const ue = S / 2,
|
|
17311
|
+
const ue = S / 2, D = F / 2, ee = [
|
|
17311
17312
|
{
|
|
17312
17313
|
x: ue,
|
|
17313
17314
|
y: 0
|
|
17314
17315
|
},
|
|
17315
17316
|
{
|
|
17316
17317
|
x: S,
|
|
17317
|
-
y:
|
|
17318
|
+
y: D
|
|
17318
17319
|
},
|
|
17319
17320
|
{
|
|
17320
17321
|
x: ue,
|
|
@@ -17322,7 +17323,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17322
17323
|
},
|
|
17323
17324
|
{
|
|
17324
17325
|
x: 0,
|
|
17325
|
-
y:
|
|
17326
|
+
y: D
|
|
17326
17327
|
}
|
|
17327
17328
|
].map((Se) => Se.x + "," + Se.y).join(" ");
|
|
17328
17329
|
J = u(J, {
|
|
@@ -17377,8 +17378,8 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17377
17378
|
compensation: -27,
|
|
17378
17379
|
loop: 0,
|
|
17379
17380
|
adhoc: 10
|
|
17380
|
-
}, Hw(F, (
|
|
17381
|
-
f(
|
|
17381
|
+
}, Hw(F, (D) => {
|
|
17382
|
+
f(D)(T, S, ue);
|
|
17382
17383
|
});
|
|
17383
17384
|
}
|
|
17384
17385
|
function E(T) {
|
|
@@ -17388,7 +17389,7 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17388
17389
|
const { ref: F = {
|
|
17389
17390
|
x: 0,
|
|
17390
17391
|
y: 0
|
|
17391
|
-
}, scale: J = 1, element: ue, parentGfx:
|
|
17392
|
+
}, scale: J = 1, element: ue, parentGfx: D = a._svg } = S, ee = Fe("marker", {
|
|
17392
17393
|
id: T,
|
|
17393
17394
|
viewBox: "0 0 20 20",
|
|
17394
17395
|
refX: F.x,
|
|
@@ -17398,8 +17399,8 @@ function xa(e, t, n, a, o, i, l) {
|
|
|
17398
17399
|
orient: "auto"
|
|
17399
17400
|
});
|
|
17400
17401
|
Ue(ee, ue);
|
|
17401
|
-
let ge = Wt(":scope > defs",
|
|
17402
|
-
ge || (ge = Fe("defs"), Ue(
|
|
17402
|
+
let ge = Wt(":scope > defs", D);
|
|
17403
|
+
ge || (ge = Fe("defs"), Ue(D, ge)), Ue(ge, ee);
|
|
17403
17404
|
}
|
|
17404
17405
|
function A(T, S, F, J) {
|
|
17405
17406
|
const ue = S + "-" + E(F) + "-" + E(J) + "-" + qc();
|
|
@@ -17822,7 +17823,7 @@ Fi.prototype.layoutText = function(e, t) {
|
|
|
17822
17823
|
}, 0), p = i.top;
|
|
17823
17824
|
o.vertical === "middle" && (p += (n.height - d) / 2), p -= (r || c[0].height) / 4;
|
|
17824
17825
|
var g = Fe("text");
|
|
17825
|
-
return je(g, a),
|
|
17826
|
+
return je(g, a), le(c, function(v) {
|
|
17826
17827
|
var b;
|
|
17827
17828
|
switch (p += r || v.height, o.horizontal) {
|
|
17828
17829
|
case "left":
|
|
@@ -18292,7 +18293,7 @@ Da.prototype._alignmentPosition = function(e, t) {
|
|
|
18292
18293
|
else if (this._isType(e, ["right", "bottom"]))
|
|
18293
18294
|
u = Qi(t), i[e] = u[a] + u[o];
|
|
18294
18295
|
else if (this._isType(e, ["center", "middle"])) {
|
|
18295
|
-
if (
|
|
18296
|
+
if (le(t, function(d) {
|
|
18296
18297
|
var h = d[a] + Math.round(d[o] / 2);
|
|
18297
18298
|
l[h] ? l[h].elements.push(d) : l[h] = {
|
|
18298
18299
|
elements: [d],
|
|
@@ -18541,12 +18542,12 @@ function Pu(e, t, n, a, o) {
|
|
|
18541
18542
|
y = R[E - 1], k = R[E], Vn(y, k) && (C = ju(m, y, k), je(C, { "data-segment-idx": E }), s(C, "mousemove", w));
|
|
18542
18543
|
}
|
|
18543
18544
|
function h(m) {
|
|
18544
|
-
|
|
18545
|
+
le(ll("." + Mu, m), function(w) {
|
|
18545
18546
|
Zt(w);
|
|
18546
18547
|
});
|
|
18547
18548
|
}
|
|
18548
18549
|
function p(m) {
|
|
18549
|
-
|
|
18550
|
+
le(ll("." + Au, m), function(w) {
|
|
18550
18551
|
Zt(w);
|
|
18551
18552
|
});
|
|
18552
18553
|
}
|
|
@@ -18914,7 +18915,7 @@ function Lu(e) {
|
|
|
18914
18915
|
return f < 2 && g.unshift(n(s.source, i)), h > c.length - 3 && g.unshift(n(s.target, i)), l.snapPoints = r = {
|
|
18915
18916
|
horizontal: [],
|
|
18916
18917
|
vertical: []
|
|
18917
|
-
},
|
|
18918
|
+
}, le(g, function(v) {
|
|
18918
18919
|
v && (v = v.original || v, p === "y" && r.horizontal.push(v.y), p === "x" && r.vertical.push(v.x));
|
|
18919
18920
|
}), r;
|
|
18920
18921
|
}
|
|
@@ -18938,7 +18939,7 @@ function Lu(e) {
|
|
|
18938
18939
|
return i.snapPoints = l = {
|
|
18939
18940
|
horizontal: [],
|
|
18940
18941
|
vertical: []
|
|
18941
|
-
},
|
|
18942
|
+
}, le(c, function(u) {
|
|
18942
18943
|
u && (u = u.original || u, l.horizontal.push(u.y), l.vertical.push(u.x));
|
|
18943
18944
|
}), l;
|
|
18944
18945
|
}
|
|
@@ -19078,7 +19079,7 @@ It.prototype.remove = function(e) {
|
|
|
19078
19079
|
var t = this.get(e) || [];
|
|
19079
19080
|
ot(t) || (t = [t]);
|
|
19080
19081
|
var n = this;
|
|
19081
|
-
|
|
19082
|
+
le(t, function(a) {
|
|
19082
19083
|
var o = n._getOverlayContainer(a.element, !0);
|
|
19083
19084
|
if (a && (rl(a.html), rl(a.htmlContainer), delete a.htmlContainer, delete a.element, delete n._overlays[a.id]), o) {
|
|
19084
19085
|
var i = o.overlays.indexOf(a);
|
|
@@ -19161,7 +19162,7 @@ It.prototype._updateOverlayScale = function(e, t) {
|
|
|
19161
19162
|
};
|
|
19162
19163
|
It.prototype._updateOverlaysVisibilty = function(e) {
|
|
19163
19164
|
var t = this;
|
|
19164
|
-
|
|
19165
|
+
le(this._overlays, function(n) {
|
|
19165
19166
|
t._updateOverlayVisibilty(n, e);
|
|
19166
19167
|
});
|
|
19167
19168
|
};
|
|
@@ -19176,7 +19177,7 @@ It.prototype._init = function() {
|
|
|
19176
19177
|
n(a.viewbox);
|
|
19177
19178
|
}), e.on(["shape.remove", "connection.remove"], function(a) {
|
|
19178
19179
|
var o = a.element;
|
|
19179
|
-
|
|
19180
|
+
le(t.get({ element: o }), function(r) {
|
|
19180
19181
|
t.remove(r.id);
|
|
19181
19182
|
});
|
|
19182
19183
|
var i = t._getOverlayContainer(o);
|
|
@@ -19187,7 +19188,7 @@ It.prototype._init = function() {
|
|
|
19187
19188
|
}
|
|
19188
19189
|
}), e.on("element.changed", u0, function(a) {
|
|
19189
19190
|
var o = a.element, i = t._getOverlayContainer(o, !0);
|
|
19190
|
-
i && (
|
|
19191
|
+
i && (le(i.overlays, function(l) {
|
|
19191
19192
|
t._updateOverlay(l);
|
|
19192
19193
|
}), t._updateOverlayContainer(i));
|
|
19193
19194
|
}), e.on("element.marker.update", function(a) {
|
|
@@ -19320,10 +19321,10 @@ Rt.prototype.registerProvider = function(e, t) {
|
|
|
19320
19321
|
};
|
|
19321
19322
|
Rt.prototype.getEntries = function(e) {
|
|
19322
19323
|
var t = this._getProviders(), n = ot(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
|
|
19323
|
-
return
|
|
19324
|
+
return le(t, function(o) {
|
|
19324
19325
|
if (xn(o[n])) {
|
|
19325
19326
|
var i = o[n](e);
|
|
19326
|
-
xn(i) ? a = i(a) :
|
|
19327
|
+
xn(i) ? a = i(a) : le(i, function(l, r) {
|
|
19327
19328
|
a[r] = l;
|
|
19328
19329
|
});
|
|
19329
19330
|
}
|
|
@@ -19372,7 +19373,7 @@ Rt.prototype._getProviders = function() {
|
|
|
19372
19373
|
};
|
|
19373
19374
|
Rt.prototype._updateAndOpen = function(e) {
|
|
19374
19375
|
var t = this.getEntries(e), n = this._createHtml(e), a;
|
|
19375
|
-
|
|
19376
|
+
le(t, function(o, i) {
|
|
19376
19377
|
var l = o.group || "default", r = qt(o.html || '<div class="entry" draggable="true"></div>'), s;
|
|
19377
19378
|
pn(r, "data-action", i), s = Wt("[data-group=" + hr(l) + "]", n), s || (s = qt('<div class="group"></div>'), pn(s, "data-group", l), n.appendChild(s)), s.appendChild(r), o.className && b0(r, o.className), o.title && pn(r, "title", o.title), o.imageUrl && (a = qt("<img>"), pn(a, "src", o.imageUrl), a.style.width = "100%", a.style.height = "100%", r.appendChild(a));
|
|
19378
19379
|
}), Kt(n).add("open"), this._current = {
|
|
@@ -19528,7 +19529,7 @@ _a.prototype.bindEvents = function(e, t) {
|
|
|
19528
19529
|
return;
|
|
19529
19530
|
}
|
|
19530
19531
|
this.setActive(e);
|
|
19531
|
-
}, this),
|
|
19532
|
+
}, this), le(t, function(o) {
|
|
19532
19533
|
a.push(o + ".ended"), a.push(o + ".canceled");
|
|
19533
19534
|
}), n.on(a, C0, function(o) {
|
|
19534
19535
|
this._active && (S0(o) || this.setActive(null));
|
|
@@ -19858,7 +19859,7 @@ function Sa(e, t) {
|
|
|
19858
19859
|
}
|
|
19859
19860
|
Sa.prototype.updateShapeOutline = function(e, t) {
|
|
19860
19861
|
var n = !1, a = this._getProviders();
|
|
19861
|
-
a.length &&
|
|
19862
|
+
a.length && le(a, function(o) {
|
|
19862
19863
|
n = n || o.updateOutline(t, e);
|
|
19863
19864
|
}), n || je(e, {
|
|
19864
19865
|
x: -this.offset,
|
|
@@ -19890,7 +19891,7 @@ Sa.prototype._getProviders = function() {
|
|
|
19890
19891
|
};
|
|
19891
19892
|
Sa.prototype.getOutline = function(e) {
|
|
19892
19893
|
var t;
|
|
19893
|
-
return
|
|
19894
|
+
return le(this._getProviders(), function(n) {
|
|
19894
19895
|
xn(n.getOutline) && (t = t || n.getOutline(e));
|
|
19895
19896
|
}), t;
|
|
19896
19897
|
};
|
|
@@ -20049,7 +20050,7 @@ function Wu(e, t, n, a) {
|
|
|
20049
20050
|
}
|
|
20050
20051
|
d.forEach(function(p) {
|
|
20051
20052
|
a.addDragger(p, c.dragGroup);
|
|
20052
|
-
}), f ? f = ef([f, i(u)]) : f = i(u),
|
|
20053
|
+
}), f ? f = ef([f, i(u)]) : f = i(u), le(f, function(p) {
|
|
20053
20054
|
t.addMarker(p, al);
|
|
20054
20055
|
}), c.allDraggedElements = f, c.differentParents = z0(u);
|
|
20055
20056
|
}), e.on("shape.move.move", Ws, function(s) {
|
|
@@ -20060,7 +20061,7 @@ function Wu(e, t, n, a) {
|
|
|
20060
20061
|
c && l(c, null);
|
|
20061
20062
|
}), e.on("shape.move.cleanup", function(s) {
|
|
20062
20063
|
var c = s.context, u = c.allDraggedElements, f = c.dragGroup;
|
|
20063
|
-
|
|
20064
|
+
le(u, function(d) {
|
|
20064
20065
|
t.removeMarker(d, al);
|
|
20065
20066
|
}), f && Zt(f);
|
|
20066
20067
|
}), this.makeDraggable = r;
|
|
@@ -20147,7 +20148,7 @@ St.prototype._toggleState = function(e) {
|
|
|
20147
20148
|
};
|
|
20148
20149
|
St.prototype._update = function() {
|
|
20149
20150
|
var e = Wt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
|
|
20150
|
-
oc(e),
|
|
20151
|
+
oc(e), le(t, function(n, a) {
|
|
20151
20152
|
var o = n.group || "default", i = Wt("[data-group=" + hr(o) + "]", e);
|
|
20152
20153
|
i || (i = qt('<div class="group"></div>'), pn(i, "data-group", o), e.appendChild(i));
|
|
20153
20154
|
var l = qt(n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'));
|
|
@@ -20196,7 +20197,7 @@ St.prototype.isActiveTool = function(e) {
|
|
|
20196
20197
|
};
|
|
20197
20198
|
St.prototype.updateToolHighlight = function(e) {
|
|
20198
20199
|
var t, n;
|
|
20199
|
-
this._toolsContainer || (t = Wt(".djs-palette-entries", this._container), this._toolsContainer = Wt("[data-group=tools]", t)), n = this._toolsContainer,
|
|
20200
|
+
this._toolsContainer || (t = Wt(".djs-palette-entries", this._container), this._toolsContainer = Wt("[data-group=tools]", t)), n = this._toolsContainer, le(n.children, function(a) {
|
|
20200
20201
|
var o = a.getAttribute("data-action");
|
|
20201
20202
|
if (o) {
|
|
20202
20203
|
var i = Kt(a);
|
|
@@ -20219,7 +20220,7 @@ function N0(e, t) {
|
|
|
20219
20220
|
}
|
|
20220
20221
|
function W0(e, t) {
|
|
20221
20222
|
var n = t.getPaletteEntries();
|
|
20222
|
-
return xn(n) ? n(e) : (
|
|
20223
|
+
return xn(n) ? n(e) : (le(n, function(a, o) {
|
|
20223
20224
|
e[o] = a;
|
|
20224
20225
|
}), e);
|
|
20225
20226
|
}
|
|
@@ -20429,7 +20430,7 @@ function ea(e, t, n, a) {
|
|
|
20429
20430
|
var o = this;
|
|
20430
20431
|
e.on("selection.changed", function(i) {
|
|
20431
20432
|
var l = i.newSelection;
|
|
20432
|
-
o.removeResizers(), l.length === 1 &&
|
|
20433
|
+
o.removeResizers(), l.length === 1 && le(l, jl(o.addResizer, o));
|
|
20433
20434
|
}), e.on("shape.changed", function(i) {
|
|
20434
20435
|
var l = i.element;
|
|
20435
20436
|
n.isSelected(l) && (o.removeResizers(), o.addResizer(l));
|
|
@@ -20466,7 +20467,7 @@ ea.prototype.createResizer = function(e, t) {
|
|
|
20466
20467
|
};
|
|
20467
20468
|
ea.prototype.addResizer = function(e) {
|
|
20468
20469
|
var t = this;
|
|
20469
|
-
Ut(e) || !this._resize.canResize({ shape: e }) ||
|
|
20470
|
+
Ut(e) || !this._resize.canResize({ shape: e }) || le(a_, function(n) {
|
|
20470
20471
|
t.createResizer(e, n);
|
|
20471
20472
|
});
|
|
20472
20473
|
};
|
|
@@ -20669,8 +20670,8 @@ Ni.prototype.snap = function(e, t, n, a) {
|
|
|
20669
20670
|
};
|
|
20670
20671
|
Ni.prototype.initDefaults = function(e) {
|
|
20671
20672
|
var t = this;
|
|
20672
|
-
|
|
20673
|
-
|
|
20673
|
+
le(e || {}, function(n, a) {
|
|
20674
|
+
le(n, function(o) {
|
|
20674
20675
|
t.add(a, o);
|
|
20675
20676
|
});
|
|
20676
20677
|
});
|
|
@@ -20727,14 +20728,14 @@ kn.prototype.initSnap = function(e) {
|
|
|
20727
20728
|
})), o;
|
|
20728
20729
|
};
|
|
20729
20730
|
kn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
20730
|
-
return
|
|
20731
|
+
return le(this.getSnapTargets(t, n), function(a) {
|
|
20731
20732
|
if (Ha(a)) {
|
|
20732
20733
|
Ha(t) && e.add("mid", ja(a));
|
|
20733
20734
|
return;
|
|
20734
20735
|
}
|
|
20735
20736
|
if (Ut(a)) {
|
|
20736
20737
|
if (a.waypoints.length < 3) return;
|
|
20737
|
-
|
|
20738
|
+
le(a.waypoints.slice(1, -1), function(o) {
|
|
20738
20739
|
e.add("mid", o);
|
|
20739
20740
|
});
|
|
20740
20741
|
return;
|
|
@@ -20789,7 +20790,7 @@ Lo.prototype.initSnap = function(e) {
|
|
|
20789
20790
|
}), o;
|
|
20790
20791
|
};
|
|
20791
20792
|
Lo.prototype.addSnapTargetPoints = function(e, t, n, a) {
|
|
20792
|
-
return
|
|
20793
|
+
return le(this.getSnapTargets(t, n), function(o) {
|
|
20793
20794
|
e.add("corner", n0(o)), e.add("corner", t0(o));
|
|
20794
20795
|
}), e.add("corner", Xu(t, a)), e;
|
|
20795
20796
|
};
|
|
@@ -20828,19 +20829,19 @@ na.prototype.snap = function(e, t) {
|
|
|
20828
20829
|
x: wi(e, "x"),
|
|
20829
20830
|
y: wi(e, "y")
|
|
20830
20831
|
};
|
|
20831
|
-
|
|
20832
|
+
le(a, function(i) {
|
|
20832
20833
|
var l = n.getSnapOrigin(i), r = {
|
|
20833
20834
|
x: e.x + l.x,
|
|
20834
20835
|
y: e.y + l.y
|
|
20835
20836
|
};
|
|
20836
|
-
if (
|
|
20837
|
+
if (le(["x", "y"], function(s) {
|
|
20837
20838
|
var c;
|
|
20838
20839
|
o[s] || (c = t.snap(r, i, s, g_), c !== void 0 && (o[s] = {
|
|
20839
20840
|
value: c,
|
|
20840
20841
|
originValue: c - l[s]
|
|
20841
20842
|
}));
|
|
20842
20843
|
}), o.x && o.y) return !1;
|
|
20843
|
-
}), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value),
|
|
20844
|
+
}), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value), le(["x", "y"], function(i) {
|
|
20844
20845
|
var l = o[i];
|
|
20845
20846
|
on(l) && En(e, i, l.originValue);
|
|
20846
20847
|
});
|
|
@@ -20871,7 +20872,7 @@ na.prototype.getSnapLine = function(e) {
|
|
|
20871
20872
|
return this._snapLines || this._createSnapLines(), this._snapLines[e];
|
|
20872
20873
|
};
|
|
20873
20874
|
na.prototype.hide = function() {
|
|
20874
|
-
|
|
20875
|
+
le(this._snapLines, function(e) {
|
|
20875
20876
|
e.update();
|
|
20876
20877
|
});
|
|
20877
20878
|
};
|
|
@@ -20890,10 +20891,10 @@ var y_ = {
|
|
|
20890
20891
|
createMoveSnapping: ["type", Wa]
|
|
20891
20892
|
};
|
|
20892
20893
|
function Ua(e) {
|
|
20893
|
-
|
|
20894
|
+
Ft.call(this, e), this.init();
|
|
20894
20895
|
}
|
|
20895
20896
|
Ua.$inject = ["eventBus"];
|
|
20896
|
-
ya(Ua,
|
|
20897
|
+
ya(Ua, Ft);
|
|
20897
20898
|
Ua.prototype.addRule = function(e, t, n) {
|
|
20898
20899
|
var a = this;
|
|
20899
20900
|
typeof e == "string" && (e = [e]), e.forEach(function(o) {
|
|
@@ -21635,7 +21636,7 @@ export {
|
|
|
21635
21636
|
If as EncryptionFactory,
|
|
21636
21637
|
pc as EventBus,
|
|
21637
21638
|
DC as HashingFactory,
|
|
21638
|
-
|
|
21639
|
+
Lt as INJECT_KEYS,
|
|
21639
21640
|
jh as JAutoComplete,
|
|
21640
21641
|
Cg as JBarcode,
|
|
21641
21642
|
dl as JButton,
|