@a2simcode/ui 0.0.91 → 0.0.92
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 +101 -98
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/examples/table-panel/tree-parent-key.vue +1 -0
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as xe, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as
|
|
1
|
+
import { Fragment as xe, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as En, createTextVNode as qt, createVNode as X, defineComponent as le, getCurrentInstance as Ys, guardReactiveProps as _l, h as Qu, inject as ed, mergeModels as ho, mergeProps as $e, nextTick as kt, normalizeClass as ze, normalizeProps as mi, normalizeStyle as we, onBeforeUnmount as vo, onMounted as xt, onUnmounted as mo, openBlock as _, provide as td, reactive as Ma, ref as P, render as oi, renderList as je, renderSlot as Ue, resolveComponent as I, resolveDirective as yi, resolveDynamicComponent as Aa, shallowRef as bi, toDisplayString as me, unref as K, useModel as po, useSlots as nd, useTemplateRef as la, vShow as lo, watch as at, watchEffect as Ks, withCtx as N, withDirectives as Sn, withKeys as Zi, withModifiers as Pt } from "vue";
|
|
2
2
|
import { Icon as gr, getIcon as ia } from "@iconify/vue";
|
|
3
3
|
import Gs from "dayjs";
|
|
4
4
|
import ad from "crypto-js/aes";
|
|
@@ -234,16 +234,16 @@ function sf(e) {
|
|
|
234
234
|
};
|
|
235
235
|
return typeof Element < "u" && e instanceof Element ? "element" : n[t.call(e)];
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function vn(e) {
|
|
238
238
|
const t = sf(e);
|
|
239
239
|
let n;
|
|
240
240
|
if (t === "array") n = [];
|
|
241
241
|
else if (t === "object") n = {};
|
|
242
242
|
else return e;
|
|
243
243
|
if (t === "array") for (let a = 0, o = e.length; a < o; a++)
|
|
244
|
-
e[a] = (e[a] === 0, e[a]), e[a] && delete e[a].$parent, n.push(
|
|
244
|
+
e[a] = (e[a] === 0, e[a]), e[a] && delete e[a].$parent, n.push(vn(e[a]));
|
|
245
245
|
else t === "object" && Object.keys(e).forEach((a) => {
|
|
246
|
-
e && delete e.$parent, n[a] =
|
|
246
|
+
e && delete e.$parent, n[a] = vn(e[a]);
|
|
247
247
|
});
|
|
248
248
|
return n;
|
|
249
249
|
}
|
|
@@ -411,10 +411,13 @@ function hf(e, t, n, a, o, i) {
|
|
|
411
411
|
if (e.length === 0 || !t && !e[0]._id) return e;
|
|
412
412
|
const l = t || "_id";
|
|
413
413
|
n = n || "_pid";
|
|
414
|
-
|
|
414
|
+
const r = [];
|
|
415
|
+
let s = {};
|
|
415
416
|
if (a ? e.forEach((c) => {
|
|
416
|
-
s[c[a]] || (s[c[a]] = !0, r.push(
|
|
417
|
-
}) :
|
|
417
|
+
s[c[a]] || (s[c[a]] = !0, r.push(vn(c)));
|
|
418
|
+
}) : e.forEach((c) => {
|
|
419
|
+
r.push(vn(c));
|
|
420
|
+
}), s = {}, l === n) {
|
|
418
421
|
const c = [];
|
|
419
422
|
return r.forEach((u) => {
|
|
420
423
|
(!i || i.indexOf(u[l]) === -1) && (a && (u.value = u[a]), o && (u.label = u[o]), c.push(u));
|
|
@@ -930,7 +933,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
930
933
|
setup(e) {
|
|
931
934
|
const t = e, n = j(() => {
|
|
932
935
|
if (!Array.isArray(t.list) && Object.keys(t.list).length > 0) return t.list;
|
|
933
|
-
const i = {}, l =
|
|
936
|
+
const i = {}, l = vn(t.list), r = l.length;
|
|
934
937
|
for (let s = 0; s < r; s++) {
|
|
935
938
|
const c = l[s];
|
|
936
939
|
c.groupId = c.groupId || Al(), i[c.groupId] = i[c.groupId] || [], i[c.groupId].push(c);
|
|
@@ -1137,7 +1140,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
1137
1140
|
onBlur: s,
|
|
1138
1141
|
onClear: c,
|
|
1139
1142
|
onChange: u
|
|
1140
|
-
}),
|
|
1143
|
+
}), En({ _: 2 }, [
|
|
1141
1144
|
e.prefixIcon ? {
|
|
1142
1145
|
name: "prefix",
|
|
1143
1146
|
fn: N(() => [X(h, { icon: e.prefixIcon }, null, 8, ["icon"])]),
|
|
@@ -1585,7 +1588,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
1585
1588
|
"collapse-tags-tooltip": e.collapseTagsTooltip,
|
|
1586
1589
|
placeholder: e.placeholder,
|
|
1587
1590
|
onChange: u
|
|
1588
|
-
}),
|
|
1591
|
+
}), En({
|
|
1589
1592
|
default: N(() => [e.isGroup ? (_(!0), O(xe, { key: 0 }, je(c.value, (b) => (_(), H(g, {
|
|
1590
1593
|
key: b.label,
|
|
1591
1594
|
label: b.label
|
|
@@ -2008,7 +2011,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
2008
2011
|
onChange: r,
|
|
2009
2012
|
onBlur: s,
|
|
2010
2013
|
onFocus: c
|
|
2011
|
-
},
|
|
2014
|
+
}, En({
|
|
2012
2015
|
"decrease-icon": N(() => [e.decreaseIcon ? (_(), H(p, {
|
|
2013
2016
|
key: 0,
|
|
2014
2017
|
icon: e.decreaseIcon
|
|
@@ -2179,7 +2182,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
2179
2182
|
onChange: u,
|
|
2180
2183
|
onFocus: d,
|
|
2181
2184
|
onBlur: f
|
|
2182
|
-
},
|
|
2185
|
+
}, En({
|
|
2183
2186
|
default: N(({ item: w }) => [Ue(g.$slots, "default", { item: w }, () => [V("div", null, me(w[e.valueKey] || ""), 1)])]),
|
|
2184
2187
|
_: 2
|
|
2185
2188
|
}, [
|
|
@@ -4423,14 +4426,14 @@ var $h = class {
|
|
|
4423
4426
|
modelValue: v.value,
|
|
4424
4427
|
"onUpdate:modelValue": F[0] || (F[0] = (M) => v.value = M),
|
|
4425
4428
|
onChange: m
|
|
4426
|
-
}),
|
|
4429
|
+
}), En({ _: 2 }, [je(k.value, (M, C) => ({
|
|
4427
4430
|
name: C,
|
|
4428
4431
|
fn: N(() => [(_(!0), O(xe, null, je(M, (L) => (_(), H($, $e({ key: L.id }, { ref_for: !0 }, L), null, 16))), 128))])
|
|
4429
4432
|
}))]), 1040, ["modelValue"])) : x.value.display != !1 ? (_(), H(Aa(y.value), $e({
|
|
4430
4433
|
key: 1,
|
|
4431
4434
|
ref_key: "compRef",
|
|
4432
4435
|
ref: E
|
|
4433
|
-
}, x.value, { onChange: m }),
|
|
4436
|
+
}, x.value, { onChange: m }), En({ _: 2 }, [je(k.value, (M, C) => ({
|
|
4434
4437
|
name: C,
|
|
4435
4438
|
fn: N(() => [x.value.needRow ? (_(), H(D, {
|
|
4436
4439
|
key: 0,
|
|
@@ -4854,7 +4857,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4854
4857
|
const { dataValue: z, rect: G, table: J, col: Z, row: Q } = B, pe = J.getBodyField(Z, Q), Be = ht(J.options?.columns || [], pe)?._compConfig || {}, ye = Number(Be.min) || 0, Te = Number(Be.max) || 100, Le = Number(z) || 0, Ne = Te - ye, Ce = Ne === 0 ? 0 : Math.max(0, Math.min(100, (Le - ye) / Ne * 100)), ue = 4, We = 8, De = 8, Me = (G.height - ue) / 2, it = String(Le), Ae = an(it) || 0, Ze = We, mt = Me, ke = G.width - We * 2 - Ae - De, Tt = ke * Ce / 100, ut = [], At = (Ot, $t, ea) => {
|
|
4855
4858
|
const Pe = Math.min(ea, $t / 2, Ot / 2);
|
|
4856
4859
|
return `M ${Pe} 0 L ${Ot - Pe} 0 Q ${Ot} 0 ${Ot} ${Pe} L ${Ot} ${$t - Pe} Q ${Ot} ${$t} ${Ot - Pe} ${$t} L ${Pe} ${$t} Q 0 ${$t} 0 ${$t - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
|
|
4857
|
-
},
|
|
4860
|
+
}, _n = (Ot, $t, ea) => {
|
|
4858
4861
|
const Pe = Math.min(ea, $t / 2, Ot / 2);
|
|
4859
4862
|
return Ot <= Pe * 2 ? At(Ot, $t, ea) : `M ${Pe} 0 L ${Ot} 0 L ${Ot} ${$t} L ${Pe} ${$t} Q 0 ${$t} 0 ${$t - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
|
|
4860
4863
|
}, Qn = At(ke, ue, ue / 2);
|
|
@@ -4866,7 +4869,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4866
4869
|
width: ke,
|
|
4867
4870
|
height: ue
|
|
4868
4871
|
}), Tt > 0) {
|
|
4869
|
-
const Ot =
|
|
4872
|
+
const Ot = _n(Tt, ue, ue / 2);
|
|
4870
4873
|
ut.push({
|
|
4871
4874
|
type: "icon",
|
|
4872
4875
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Tt}" height="${ue}" viewBox="0 0 ${Tt} ${ue}"><path d="${Ot}" fill="#165dff"/></svg>`,
|
|
@@ -4951,7 +4954,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4951
4954
|
height: ue
|
|
4952
4955
|
}), { tagWidth: xa };
|
|
4953
4956
|
}, At = [];
|
|
4954
|
-
let
|
|
4957
|
+
let _n = [], Qn = 0;
|
|
4955
4958
|
for (let Pe = 0; Pe < Ne.length; Pe++) {
|
|
4956
4959
|
const Mt = Ne[Pe], cn = Mt.label, Dt = Tt(cn), jn = {
|
|
4957
4960
|
label: cn,
|
|
@@ -4959,13 +4962,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4959
4962
|
text: Mt.textColor || ge(Mt.color || "#f2f3f5"),
|
|
4960
4963
|
width: Dt
|
|
4961
4964
|
};
|
|
4962
|
-
|
|
4963
|
-
items:
|
|
4965
|
+
_n.length > 0 && Qn + Me + Dt > Ze ? (At.push({
|
|
4966
|
+
items: _n,
|
|
4964
4967
|
lineWidth: Qn
|
|
4965
|
-
}),
|
|
4968
|
+
}), _n = [jn], Qn = Dt) : (_n.push(jn), Qn += _n.length > 1 ? Me + Dt : Dt);
|
|
4966
4969
|
}
|
|
4967
|
-
|
|
4968
|
-
items:
|
|
4970
|
+
_n.length > 0 && At.push({
|
|
4971
|
+
items: _n,
|
|
4969
4972
|
lineWidth: Qn
|
|
4970
4973
|
});
|
|
4971
4974
|
const zi = G.height;
|
|
@@ -5451,7 +5454,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5451
5454
|
clearColWidthCache: !1,
|
|
5452
5455
|
clearRowHeightCache: !1
|
|
5453
5456
|
}), o.heightMode === "auto" && (f.value = g.getAllRowsHeight()), B ? x.value = 0 : (x.value = z.length, z.length > 0 && Rt(z));
|
|
5454
|
-
},
|
|
5457
|
+
}, wn = j(() => o.editConfig.isAddBtn), xn = j(() => o.editConfig.addBtnText || "添加"), tn = j(() => o.editConfig.isRemoveBtn), rt = j(() => o.editConfig.readonly), Xt = j(() => o.isMultiple || tn.value), Ga = () => {
|
|
5455
5458
|
const B = o.modelValue || [];
|
|
5456
5459
|
return B.forEach((z) => {
|
|
5457
5460
|
z._i || (z._i = Dn());
|
|
@@ -5472,7 +5475,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5472
5475
|
const B = {};
|
|
5473
5476
|
B._i = Dn(), Io.value.forEach((z) => {
|
|
5474
5477
|
const G = z.config?.valueRowKey || z.id || "";
|
|
5475
|
-
G && (B[G] =
|
|
5478
|
+
G && (B[G] = vn(z.config?.defaultValue));
|
|
5476
5479
|
}), g && (g.addRecord(B), o.heightMode === "auto" && ot(), g.scrollToCell({
|
|
5477
5480
|
col: 0,
|
|
5478
5481
|
row: g.records.length
|
|
@@ -5553,12 +5556,12 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5553
5556
|
ref: p,
|
|
5554
5557
|
class: ze("j-block")
|
|
5555
5558
|
}, null, 512)], 4),
|
|
5556
|
-
V("div", Kh, [e.isPage || !rt.value && (
|
|
5559
|
+
V("div", Kh, [e.isPage || !rt.value && (wn.value || tn.value) ? (_(), O("div", Gh, [
|
|
5557
5560
|
X(J, null, {
|
|
5558
|
-
default: N(() => [
|
|
5561
|
+
default: N(() => [wn.value ? (_(), H(G, {
|
|
5559
5562
|
key: 0,
|
|
5560
5563
|
type: "link",
|
|
5561
|
-
label:
|
|
5564
|
+
label: xn.value,
|
|
5562
5565
|
icon: "mdi:add",
|
|
5563
5566
|
onClick: zt
|
|
5564
5567
|
}, null, 8, ["label"])) : U("", !0), tn.value ? (_(), H(G, {
|
|
@@ -6081,7 +6084,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6081
6084
|
"destroy-on-close": e.destroyOnClose,
|
|
6082
6085
|
onClosed: w
|
|
6083
6086
|
}, {
|
|
6084
|
-
default: N(() => [
|
|
6087
|
+
default: N(() => [Sn((_(), O("div", {
|
|
6085
6088
|
class: "j-block j-dialog-full-window",
|
|
6086
6089
|
"element-loading-text": K(l)(c.value)
|
|
6087
6090
|
}, [V("div", sp, [
|
|
@@ -6346,7 +6349,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6346
6349
|
"close-on-click-modal": !0,
|
|
6347
6350
|
onClosed: f
|
|
6348
6351
|
}, {
|
|
6349
|
-
default: N(() => [
|
|
6352
|
+
default: N(() => [Sn((_(), O("div", {
|
|
6350
6353
|
class: ze(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
6351
6354
|
"element-loading-text": r.value
|
|
6352
6355
|
}, [
|
|
@@ -6996,7 +6999,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6996
6999
|
default: N(() => [qt(me(K(Vo)(c.size)), 1)]),
|
|
6997
7000
|
_: 2
|
|
6998
7001
|
}, 1024)])]),
|
|
6999
|
-
|
|
7002
|
+
Sn(V("div", Wp, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
|
|
7000
7003
|
key: 0,
|
|
7001
7004
|
icon: "mdi:eye",
|
|
7002
7005
|
type: "link",
|
|
@@ -7030,7 +7033,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7030
7033
|
style: { width: "100%" },
|
|
7031
7034
|
alt: ""
|
|
7032
7035
|
}, null, 8, Up)) : U("", !0),
|
|
7033
|
-
|
|
7036
|
+
Sn(V("div", Yp, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
|
|
7034
7037
|
key: 0,
|
|
7035
7038
|
type: "link",
|
|
7036
7039
|
icon: "mdi:eye",
|
|
@@ -7079,7 +7082,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7079
7082
|
icon: "check-circle",
|
|
7080
7083
|
size: 24
|
|
7081
7084
|
})) : U("", !0),
|
|
7082
|
-
e.readonly ? U("", !0) :
|
|
7085
|
+
e.readonly ? U("", !0) : Sn((_(), H(o, {
|
|
7083
7086
|
key: 2,
|
|
7084
7087
|
class: "j-upload-item-error",
|
|
7085
7088
|
icon: "delete",
|
|
@@ -7485,7 +7488,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7485
7488
|
style: { "max-width": "1024px" },
|
|
7486
7489
|
src: _e.value,
|
|
7487
7490
|
alt: ""
|
|
7488
|
-
}, null, 8, eg)])) : _e.value != "" ?
|
|
7491
|
+
}, null, 8, eg)])) : _e.value != "" ? Sn((_(), O("div", tg, [V("iframe", {
|
|
7489
7492
|
ref: "iframe",
|
|
7490
7493
|
src: _e.value,
|
|
7491
7494
|
style: {
|
|
@@ -8286,7 +8289,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
8286
8289
|
default: N(() => [X(p, {
|
|
8287
8290
|
"right-move": !1,
|
|
8288
8291
|
right: 560
|
|
8289
|
-
},
|
|
8292
|
+
}, En({
|
|
8290
8293
|
default: N(() => [X(h, {
|
|
8291
8294
|
value: i.value,
|
|
8292
8295
|
"onUpdate:value": f[0] || (f[0] = (v) => i.value = v),
|
|
@@ -10123,11 +10126,11 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10123
10126
|
const ot = vt.get(ce.id);
|
|
10124
10127
|
if (ot) {
|
|
10125
10128
|
if (ce.display) {
|
|
10126
|
-
let
|
|
10127
|
-
ot.children && ot.children.length > 0 && (
|
|
10129
|
+
let wn = ot;
|
|
10130
|
+
ot.children && ot.children.length > 0 && (wn = {
|
|
10128
10131
|
...ot,
|
|
10129
10132
|
children: k(ot.children, ce.children)
|
|
10130
|
-
}), Rt.push(
|
|
10133
|
+
}), Rt.push(wn);
|
|
10131
10134
|
}
|
|
10132
10135
|
vt.delete(ce.id);
|
|
10133
10136
|
}
|
|
@@ -10157,7 +10160,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10157
10160
|
}, ht = () => {
|
|
10158
10161
|
p.value = [], r.value && (r.value.setSelection?.([]), g.value && (g.value = !1, r.value.setRecords(s)));
|
|
10159
10162
|
}, nt = () => {
|
|
10160
|
-
g.value = !g.value, g.value ? r.value?.setRecords(p.value) : r.value?.setRecords(s), r.value?.setSelection?.(p.value);
|
|
10163
|
+
g.value = !g.value, g.value ? r.value?.setRecords(p.value) : (console.log(s, "tableData"), r.value?.setRecords(s)), r.value?.setSelection?.(p.value);
|
|
10161
10164
|
}, Pn = j(() => {
|
|
10162
10165
|
if (p.value.length > 0 && i.isMultiple) {
|
|
10163
10166
|
const he = [
|
|
@@ -10222,7 +10225,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10222
10225
|
sn !== null && (Ut += z === sn ? -1 : 8), Ut += ce(Yt), sn = z;
|
|
10223
10226
|
}), Ut;
|
|
10224
10227
|
})(he) <= vt) return he;
|
|
10225
|
-
const
|
|
10228
|
+
const wn = {
|
|
10226
10229
|
id: "__table_panel_more__",
|
|
10227
10230
|
label: "",
|
|
10228
10231
|
config: {
|
|
@@ -10230,13 +10233,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10230
10233
|
notLabel: !0
|
|
10231
10234
|
},
|
|
10232
10235
|
children: []
|
|
10233
|
-
},
|
|
10236
|
+
}, xn = 28, tn = [];
|
|
10234
10237
|
let rt = 0, Xt = null;
|
|
10235
10238
|
for (let zt = 0; zt < he.length; zt++) {
|
|
10236
10239
|
const Ut = he[zt], sn = Rt(Ut, zt);
|
|
10237
10240
|
let Yt = rt;
|
|
10238
10241
|
Xt !== null && (Yt += sn === Xt ? -1 : 8), Yt += ce(Ut);
|
|
10239
|
-
const B = he.length - (zt + 1) > 0 ? (Yt > 0 ? 8 : 0) +
|
|
10242
|
+
const B = he.length - (zt + 1) > 0 ? (Yt > 0 ? 8 : 0) + xn : 0;
|
|
10240
10243
|
if (Yt + B <= vt)
|
|
10241
10244
|
tn.push(Ut), rt = Yt, Xt = sn;
|
|
10242
10245
|
else break;
|
|
@@ -10244,7 +10247,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10244
10247
|
const Ga = he.slice(tn.length);
|
|
10245
10248
|
if (Ga.length === 0) return he;
|
|
10246
10249
|
const Io = {
|
|
10247
|
-
...
|
|
10250
|
+
...wn,
|
|
10248
10251
|
children: Ga
|
|
10249
10252
|
};
|
|
10250
10253
|
return tn.length === 0 ? [Io] : [...tn, Io];
|
|
@@ -10325,7 +10328,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10325
10328
|
},
|
|
10326
10329
|
getInstance: Ka
|
|
10327
10330
|
}), (he, se) => {
|
|
10328
|
-
const vt = I("j-buttons"), Rt = I("j-icon"), ce = I("el-popover"), ot = I("el-tooltip"),
|
|
10331
|
+
const vt = I("j-buttons"), Rt = I("j-icon"), ce = I("el-popover"), ot = I("el-tooltip"), wn = I("el-input"), xn = I("j-button"), tn = I("j-table");
|
|
10329
10332
|
return _(), O("div", { class: ze(["j-table-panel-wrapper", {
|
|
10330
10333
|
fullscreen: Ke.value,
|
|
10331
10334
|
"no-padding": e.noPadding || Ke.value
|
|
@@ -10334,7 +10337,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10334
10337
|
ref: Jt,
|
|
10335
10338
|
class: "j-table-panel-top-left"
|
|
10336
10339
|
}, [X(vt, { list: ee.value }, null, 8, ["list"])], 512), V("div", Qv, [
|
|
10337
|
-
T.value && !w.value ? (_(), O("div", em, [X(
|
|
10340
|
+
T.value && !w.value ? (_(), O("div", em, [X(wn, {
|
|
10338
10341
|
modelValue: S.value,
|
|
10339
10342
|
"onUpdate:modelValue": se[2] || (se[2] = (rt) => S.value = rt),
|
|
10340
10343
|
modelModifiers: { trim: !0 },
|
|
@@ -10392,7 +10395,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10392
10395
|
persistent: !1,
|
|
10393
10396
|
onHide: Ee
|
|
10394
10397
|
}, {
|
|
10395
|
-
reference: N(() => [X(
|
|
10398
|
+
reference: N(() => [X(xn, {
|
|
10396
10399
|
icon: "mdi:filter-outline",
|
|
10397
10400
|
label: "筛选",
|
|
10398
10401
|
type: "text",
|
|
@@ -10431,7 +10434,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10431
10434
|
trigger: "click",
|
|
10432
10435
|
onShow: ae
|
|
10433
10436
|
}, {
|
|
10434
|
-
reference: N(() => [X(
|
|
10437
|
+
reference: N(() => [X(xn, {
|
|
10435
10438
|
class: ze({ active: dt.value.length > 0 }),
|
|
10436
10439
|
type: "text",
|
|
10437
10440
|
icon: "mdi:sort"
|
|
@@ -10461,7 +10464,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10461
10464
|
trigger: "click",
|
|
10462
10465
|
onShow: ge
|
|
10463
10466
|
}, {
|
|
10464
|
-
reference: N(() => [X(
|
|
10467
|
+
reference: N(() => [X(xn, {
|
|
10465
10468
|
class: ze({ active: te.value }),
|
|
10466
10469
|
type: "text",
|
|
10467
10470
|
icon: "mdi:table-headers-eye"
|
|
@@ -10482,7 +10485,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10482
10485
|
placement: "bottom",
|
|
10483
10486
|
content: K(a)("刷新")
|
|
10484
10487
|
}, {
|
|
10485
|
-
default: N(() => [X(
|
|
10488
|
+
default: N(() => [X(xn, {
|
|
10486
10489
|
type: "text",
|
|
10487
10490
|
icon: "mdi:refresh",
|
|
10488
10491
|
onClick: ba
|
|
@@ -10494,14 +10497,14 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10494
10497
|
placement: "bottom",
|
|
10495
10498
|
content: Ke.value ? K(a)("退出全屏") : K(a)("全屏")
|
|
10496
10499
|
}, {
|
|
10497
|
-
default: N(() => [X(
|
|
10500
|
+
default: N(() => [X(xn, {
|
|
10498
10501
|
type: "text",
|
|
10499
10502
|
icon: Ke.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
10500
10503
|
onClick: It
|
|
10501
10504
|
}, null, 8, ["icon"])]),
|
|
10502
10505
|
_: 1
|
|
10503
10506
|
}, 8, ["content"])) : U("", !0)
|
|
10504
|
-
])]), V("div", tm, [
|
|
10507
|
+
])]), V("div", tm, [Sn(V("div", nm, [V("div", am, [X(Rt, {
|
|
10505
10508
|
icon: "mdi:loading",
|
|
10506
10509
|
class: "loading-spin",
|
|
10507
10510
|
size: 24
|
|
@@ -10790,7 +10793,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10790
10793
|
}, E = (D, M, C, L) => {
|
|
10791
10794
|
o("node-drop", D, M, C, L);
|
|
10792
10795
|
}, S = (D) => {
|
|
10793
|
-
const M =
|
|
10796
|
+
const M = vn(a.treeButtons);
|
|
10794
10797
|
return D && a.filterButton ? a.filterButton({
|
|
10795
10798
|
buttons: M,
|
|
10796
10799
|
node: D
|
|
@@ -10819,7 +10822,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10819
10822
|
getCheck: x
|
|
10820
10823
|
}), (D, M) => {
|
|
10821
10824
|
const C = I("j-icon"), L = I("j-button"), W = I("el-dropdown-item"), ie = I("el-dropdown-menu"), fe = I("el-dropdown"), _e = I("el-tree"), Ve = I("el-empty"), dt = yi("loading");
|
|
10822
|
-
return
|
|
10825
|
+
return Sn((_(), O("div", {
|
|
10823
10826
|
class: ze([
|
|
10824
10827
|
"j-block",
|
|
10825
10828
|
"j-tree",
|
|
@@ -11140,7 +11143,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11140
11143
|
}, Ve = async (Y, re) => {
|
|
11141
11144
|
v.value = !1;
|
|
11142
11145
|
const q = !!re;
|
|
11143
|
-
S.splice(0, S.length), R = {}, F = {}, $ = [], W = re, so(m), so(T), A.value = {}, q && ie(re, ""), _e(Y, S, q), D =
|
|
11146
|
+
S.splice(0, S.length), R = {}, F = {}, $ = [], W = re, so(m), so(T), A.value = {}, q && ie(re, ""), _e(Y, S, q), D = vn(m), kt(() => {
|
|
11144
11147
|
v.value = !0, kt(() => {
|
|
11145
11148
|
rn(a.config?.codeInit, {});
|
|
11146
11149
|
});
|
|
@@ -11668,7 +11671,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11668
11671
|
const x = { _i: Dn() };
|
|
11669
11672
|
a.columns.forEach((k) => {
|
|
11670
11673
|
const m = k.config?.valueRowKey || k.id || "";
|
|
11671
|
-
m && (x[m] =
|
|
11674
|
+
m && (x[m] = vn(k.config?.defaultValue));
|
|
11672
11675
|
}), g.value.push(x), o("change", {
|
|
11673
11676
|
id: a.id,
|
|
11674
11677
|
value: x,
|
|
@@ -11891,7 +11894,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11891
11894
|
clearable: !e.readonly && e.clearable,
|
|
11892
11895
|
onClick: u,
|
|
11893
11896
|
onClear: d
|
|
11894
|
-
},
|
|
11897
|
+
}, En({ _: 2 }, [e.readonly ? void 0 : {
|
|
11895
11898
|
name: "append",
|
|
11896
11899
|
fn: N(() => [X(K(ol), {
|
|
11897
11900
|
icon: e.icon,
|
|
@@ -12149,7 +12152,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
12149
12152
|
loading: e.loading,
|
|
12150
12153
|
disabled: e.disabled || e.readonly,
|
|
12151
12154
|
onChange: i
|
|
12152
|
-
}),
|
|
12155
|
+
}), En({ _: 2 }, [
|
|
12153
12156
|
l.$slots["active-action"] ? {
|
|
12154
12157
|
name: "active-action",
|
|
12155
12158
|
fn: N(() => [Ue(l.$slots, "active-action")]),
|
|
@@ -13227,12 +13230,12 @@ function Yy(e, t, n) {
|
|
|
13227
13230
|
enclosedElements: i
|
|
13228
13231
|
};
|
|
13229
13232
|
}
|
|
13230
|
-
function
|
|
13233
|
+
function mn(e, t) {
|
|
13231
13234
|
t = !!t, tt(e) || (e = [e]);
|
|
13232
13235
|
var n, a, o, i;
|
|
13233
13236
|
return ne(e, function(l) {
|
|
13234
13237
|
var r = l;
|
|
13235
|
-
l.waypoints && !t && (r =
|
|
13238
|
+
l.waypoints && !t && (r = mn(l.waypoints, !0));
|
|
13236
13239
|
var s = r.x, c = r.y, u = r.height || 0, d = r.width || 0;
|
|
13237
13240
|
(s < n || n === void 0) && (n = s), (c < a || a === void 0) && (a = c), (s + d > o || o === void 0) && (o = s + d), (c + u > i || i === void 0) && (i = c + u);
|
|
13238
13241
|
}), {
|
|
@@ -13246,7 +13249,7 @@ function Ky(e, t) {
|
|
|
13246
13249
|
var n = {};
|
|
13247
13250
|
return ne(e, function(a) {
|
|
13248
13251
|
var o = a;
|
|
13249
|
-
o.waypoints && (o =
|
|
13252
|
+
o.waypoints && (o = mn(o)), !Et(t.y) && o.x > t.x && (n[a.id] = a), !Et(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Et(t.width) && Et(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Et(t.width) || !Et(t.height)) && (n[a.id] = a);
|
|
13250
13253
|
}), n;
|
|
13251
13254
|
}
|
|
13252
13255
|
function Gy(e) {
|
|
@@ -13374,7 +13377,7 @@ function Pc(e, t, n, a, o) {
|
|
|
13374
13377
|
}, u || {}), ne(c, function(h) {
|
|
13375
13378
|
Et(h.x) || (h.x = 0), Et(h.y) || (h.y = 0);
|
|
13376
13379
|
});
|
|
13377
|
-
var f =
|
|
13380
|
+
var f = mn(Zt(c, function(h) {
|
|
13378
13381
|
return !h.hidden;
|
|
13379
13382
|
}));
|
|
13380
13383
|
ne(c, function(h) {
|
|
@@ -14174,7 +14177,7 @@ var Ab = Math.sign || function(e) {
|
|
|
14174
14177
|
min: 0.2,
|
|
14175
14178
|
max: 4
|
|
14176
14179
|
}, Vc = 10, Pb = 0.1, jb = 0.75;
|
|
14177
|
-
function
|
|
14180
|
+
function yn(e, t, n) {
|
|
14178
14181
|
e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = El(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || jb;
|
|
14179
14182
|
var a = this;
|
|
14180
14183
|
t.on("canvas.mouseover", function() {
|
|
@@ -14183,22 +14186,22 @@ function mn(e, t, n) {
|
|
|
14183
14186
|
a._init(!1);
|
|
14184
14187
|
});
|
|
14185
14188
|
}
|
|
14186
|
-
|
|
14189
|
+
yn.$inject = [
|
|
14187
14190
|
"config.zoomScroll",
|
|
14188
14191
|
"eventBus",
|
|
14189
14192
|
"canvas"
|
|
14190
14193
|
];
|
|
14191
|
-
|
|
14194
|
+
yn.prototype.scroll = function(t) {
|
|
14192
14195
|
this._canvas.scroll(t);
|
|
14193
14196
|
};
|
|
14194
|
-
|
|
14197
|
+
yn.prototype.reset = function() {
|
|
14195
14198
|
this._canvas.zoom("fit-viewport");
|
|
14196
14199
|
};
|
|
14197
|
-
|
|
14200
|
+
yn.prototype.zoom = function(t, n) {
|
|
14198
14201
|
var a = Fc(Fl, Vc * 2);
|
|
14199
14202
|
this._totalDelta += t, Math.abs(this._totalDelta) > Pb && (this._zoom(t, n, a), this._totalDelta = 0);
|
|
14200
14203
|
};
|
|
14201
|
-
|
|
14204
|
+
yn.prototype._handleWheel = function(t) {
|
|
14202
14205
|
if (this._enabled) {
|
|
14203
14206
|
var n = this._container;
|
|
14204
14207
|
t.preventDefault();
|
|
@@ -14219,26 +14222,26 @@ mn.prototype._handleWheel = function(t) {
|
|
|
14219
14222
|
}, this.scroll(l);
|
|
14220
14223
|
}
|
|
14221
14224
|
};
|
|
14222
|
-
|
|
14225
|
+
yn.prototype.stepZoom = function(t, n) {
|
|
14223
14226
|
var a = Fc(Fl, Vc);
|
|
14224
14227
|
this._zoom(t, n, a);
|
|
14225
14228
|
};
|
|
14226
|
-
|
|
14229
|
+
yn.prototype._zoom = function(e, t, n) {
|
|
14227
14230
|
var a = this._canvas, o = e > 0 ? 1 : -1, i = pl(a.zoom()), l = Math.round(i / n) * n;
|
|
14228
14231
|
l += n * o;
|
|
14229
14232
|
var r = Math.pow(10, l);
|
|
14230
14233
|
a.zoom(Mb(Fl, r), t);
|
|
14231
14234
|
};
|
|
14232
|
-
|
|
14235
|
+
yn.prototype.toggle = function(t) {
|
|
14233
14236
|
var n = this._container, a = this._handleWheel, o = this._enabled;
|
|
14234
14237
|
return typeof t > "u" && (t = !o), o !== t && Qe[t ? "bind" : "unbind"](n, "wheel", a, !1), this._enabled = t, t;
|
|
14235
14238
|
};
|
|
14236
|
-
|
|
14239
|
+
yn.prototype._init = function(e) {
|
|
14237
14240
|
this.toggle(e);
|
|
14238
14241
|
};
|
|
14239
14242
|
var Nc = {
|
|
14240
14243
|
__init__: ["zoomScroll"],
|
|
14241
|
-
zoomScroll: ["type",
|
|
14244
|
+
zoomScroll: ["type", yn]
|
|
14242
14245
|
};
|
|
14243
14246
|
function ft(e, t) {
|
|
14244
14247
|
this._handlerMap = {}, this._stack = [], this._stackIdx = -1, this._currentExecution = {
|
|
@@ -14777,7 +14780,7 @@ Ul.prototype.preExecute = function(e) {
|
|
|
14777
14780
|
ne(t, function(u) {
|
|
14778
14781
|
Et(u.x) || (u.x = 0), Et(u.y) || (u.y = 0);
|
|
14779
14782
|
});
|
|
14780
|
-
var r =
|
|
14783
|
+
var r = mn(Zt(t, function(u) {
|
|
14781
14784
|
return !u.hidden;
|
|
14782
14785
|
}));
|
|
14783
14786
|
ne(t, function(u) {
|
|
@@ -17958,7 +17961,7 @@ function hi(e, t) {
|
|
|
17958
17961
|
var n = e.snapped;
|
|
17959
17962
|
return n ? typeof t == "string" ? n[t] : n.x && n.y : !1;
|
|
17960
17963
|
}
|
|
17961
|
-
function
|
|
17964
|
+
function Cn(e, t, n) {
|
|
17962
17965
|
if (typeof t != "string") throw new Error("axis must be in [x, y]");
|
|
17963
17966
|
if (typeof n != "number" && n !== !1) throw new Error("value must be Number or false");
|
|
17964
17967
|
var a, o = e[t], i = e.snapped = e.snapped || {};
|
|
@@ -18013,7 +18016,7 @@ function Au(e) {
|
|
|
18013
18016
|
dy: i.dy - f,
|
|
18014
18017
|
x: c,
|
|
18015
18018
|
y: u
|
|
18016
|
-
}), (d || l.vertical.indexOf(r) !== -1) &&
|
|
18019
|
+
}), (d || l.vertical.indexOf(r) !== -1) && Cn(i, "x", c), (f || l.horizontal.indexOf(s) !== -1) && Cn(i, "y", u);
|
|
18017
18020
|
}
|
|
18018
18021
|
});
|
|
18019
18022
|
function o(i) {
|
|
@@ -18033,7 +18036,7 @@ function Au(e) {
|
|
|
18033
18036
|
"connect.end"
|
|
18034
18037
|
], 1500, function(i) {
|
|
18035
18038
|
var l = i.context.hover, r = l && n(l, i);
|
|
18036
|
-
!Vt(l) || !r || !r.x || !r.y || (
|
|
18039
|
+
!Vt(l) || !r || !r.x || !r.y || (Cn(i, "x", r.x), Cn(i, "y", r.y));
|
|
18037
18040
|
}), e.on(["bendpoint.move.move", "bendpoint.move.end"], 1500, function(i) {
|
|
18038
18041
|
var l = i.context, r = o(l), s = l.hover, c = s && n(s, i), u = i.x, d = i.y, f, h;
|
|
18039
18042
|
if (r) {
|
|
@@ -18044,7 +18047,7 @@ function Au(e) {
|
|
|
18044
18047
|
dy: i.dy - g,
|
|
18045
18048
|
x: i.x - p,
|
|
18046
18049
|
y: i.y - g
|
|
18047
|
-
}), (p || r.vertical.indexOf(u) !== -1) &&
|
|
18050
|
+
}), (p || r.vertical.indexOf(u) !== -1) && Cn(i, "x", f), (g || r.horizontal.indexOf(d) !== -1) && Cn(i, "y", h);
|
|
18048
18051
|
}
|
|
18049
18052
|
});
|
|
18050
18053
|
}
|
|
@@ -18186,7 +18189,7 @@ Ht.prototype.clear = function() {
|
|
|
18186
18189
|
Ht.prototype._updateOverlayContainer = function(e) {
|
|
18187
18190
|
var t = e.element, n = e.html, a = t.x, o = t.y;
|
|
18188
18191
|
if (t.waypoints) {
|
|
18189
|
-
var i =
|
|
18192
|
+
var i = mn(t);
|
|
18190
18193
|
a = i.x, o = i.y;
|
|
18191
18194
|
}
|
|
18192
18195
|
Pu(n, a, o), ln(e.html, "data-container-id", t.id);
|
|
@@ -18195,11 +18198,11 @@ Ht.prototype._updateOverlay = function(e) {
|
|
|
18195
18198
|
var t = e.position, n = e.htmlContainer, a = e.element, o = t.left, i = t.top;
|
|
18196
18199
|
if (t.right !== void 0) {
|
|
18197
18200
|
var l;
|
|
18198
|
-
a.waypoints ? l =
|
|
18201
|
+
a.waypoints ? l = mn(a).width : l = a.width, o = t.right * -1 + l;
|
|
18199
18202
|
}
|
|
18200
18203
|
if (t.bottom !== void 0) {
|
|
18201
18204
|
var r;
|
|
18202
|
-
a.waypoints ? r =
|
|
18205
|
+
a.waypoints ? r = mn(a).height : r = a.height, i = t.bottom * -1 + r;
|
|
18203
18206
|
}
|
|
18204
18207
|
Pu(n, o || 0, i || 0), this._updateOverlayVisibilty(e, this._canvas.viewbox());
|
|
18205
18208
|
};
|
|
@@ -18953,7 +18956,7 @@ ya.prototype.updateShapeOutline = function(e, t) {
|
|
|
18953
18956
|
});
|
|
18954
18957
|
};
|
|
18955
18958
|
ya.prototype.updateConnectionOutline = function(e, t) {
|
|
18956
|
-
var n =
|
|
18959
|
+
var n = mn(t);
|
|
18957
18960
|
be(e, {
|
|
18958
18961
|
x: n.x - this.offset,
|
|
18959
18962
|
y: n.y - this.offset,
|
|
@@ -19000,7 +19003,7 @@ fr.prototype._updateMultiSelectionOutline = function(e) {
|
|
|
19000
19003
|
Tl(t);
|
|
19001
19004
|
var n = e.length > 1;
|
|
19002
19005
|
if (st(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
|
|
19003
|
-
var a = Qx(
|
|
19006
|
+
var a = Qx(mn(e)), o = He("rect");
|
|
19004
19007
|
be(o, Re({ rx: 3 }, a)), st(o).add("djs-selection-outline"), Fe(t, o);
|
|
19005
19008
|
}
|
|
19006
19009
|
};
|
|
@@ -19391,7 +19394,7 @@ function w0(e) {
|
|
|
19391
19394
|
}
|
|
19392
19395
|
function x0(e, t) {
|
|
19393
19396
|
var n;
|
|
19394
|
-
if (e.length === void 0 ? n = Zt(e.children, w0) : n = e, n.length) return b0(
|
|
19397
|
+
if (e.length === void 0 ? n = Zt(e.children, w0) : n = e, n.length) return b0(mn(n), t);
|
|
19395
19398
|
}
|
|
19396
19399
|
var Ns = 10;
|
|
19397
19400
|
function jo(e, t, n, a) {
|
|
@@ -19761,7 +19764,7 @@ Ii.prototype.initDefaults = function(e) {
|
|
|
19761
19764
|
});
|
|
19762
19765
|
};
|
|
19763
19766
|
var A0 = 1250;
|
|
19764
|
-
function
|
|
19767
|
+
function bn(e, t, n) {
|
|
19765
19768
|
var a = this;
|
|
19766
19769
|
this._elementRegistry = e, t.on(["create.start", "shape.move.start"], function(o) {
|
|
19767
19770
|
a.initSnap(o);
|
|
@@ -19780,12 +19783,12 @@ function yn(e, t, n) {
|
|
|
19780
19783
|
n.hide();
|
|
19781
19784
|
});
|
|
19782
19785
|
}
|
|
19783
|
-
|
|
19786
|
+
bn.$inject = [
|
|
19784
19787
|
"elementRegistry",
|
|
19785
19788
|
"eventBus",
|
|
19786
19789
|
"snapping"
|
|
19787
19790
|
];
|
|
19788
|
-
|
|
19791
|
+
bn.prototype.initSnap = function(e) {
|
|
19789
19792
|
var t = this._elementRegistry, n = e.context, a = n.shape, o = n.snapContext;
|
|
19790
19793
|
o || (o = n.snapContext = new qn());
|
|
19791
19794
|
var i;
|
|
@@ -19811,7 +19814,7 @@ yn.prototype.initSnap = function(e) {
|
|
|
19811
19814
|
y: r.y - e.y
|
|
19812
19815
|
})), o;
|
|
19813
19816
|
};
|
|
19814
|
-
|
|
19817
|
+
bn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
19815
19818
|
return ne(this.getSnapTargets(t, n), function(a) {
|
|
19816
19819
|
if (ja(a)) {
|
|
19817
19820
|
ja(t) && e.add("mid", Ta(a));
|
|
@@ -19827,7 +19830,7 @@ yn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
19827
19830
|
e.add("mid", Ta(a));
|
|
19828
19831
|
}), !Et(t.x) || !Et(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Ta(t)), e;
|
|
19829
19832
|
};
|
|
19830
|
-
|
|
19833
|
+
bn.prototype.getSnapTargets = function(e, t) {
|
|
19831
19834
|
return Mu(t).filter(function(n) {
|
|
19832
19835
|
return !P0(n);
|
|
19833
19836
|
});
|
|
@@ -19836,18 +19839,18 @@ function P0(e) {
|
|
|
19836
19839
|
return !!e.hidden;
|
|
19837
19840
|
}
|
|
19838
19841
|
function Va(e) {
|
|
19839
|
-
e.invoke(
|
|
19842
|
+
e.invoke(bn, this);
|
|
19840
19843
|
}
|
|
19841
|
-
sa(Va,
|
|
19844
|
+
sa(Va, bn);
|
|
19842
19845
|
Va.$inject = ["injector"];
|
|
19843
19846
|
Va.prototype.initSnap = function(e) {
|
|
19844
|
-
return
|
|
19847
|
+
return bn.prototype.initSnap.call(this, e);
|
|
19845
19848
|
};
|
|
19846
19849
|
Va.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
19847
|
-
return
|
|
19850
|
+
return bn.prototype.addSnapTargetPoints.call(this, e, t, n);
|
|
19848
19851
|
};
|
|
19849
19852
|
Va.prototype.getSnapTargets = function(e, t) {
|
|
19850
|
-
return
|
|
19853
|
+
return bn.prototype.getSnapTargets.call(this, e, t);
|
|
19851
19854
|
};
|
|
19852
19855
|
var j0 = 1250;
|
|
19853
19856
|
function Oo(e, t) {
|
|
@@ -19858,7 +19861,7 @@ function Oo(e, t) {
|
|
|
19858
19861
|
var o = a.context, i = o.shape, l = i.parent, r = o.direction, s = o.snapContext;
|
|
19859
19862
|
if (!(a.originalEvent && Rc(a.originalEvent)) && !hi(a)) {
|
|
19860
19863
|
var c = s.pointsForTarget(l);
|
|
19861
|
-
c.initialized || (c = n.addSnapTargetPoints(c, i, l, r), c.initialized = !0), B0(r) &&
|
|
19864
|
+
c.initialized || (c = n.addSnapTargetPoints(c, i, l, r), c.initialized = !0), B0(r) && Cn(a, "x", a.x), I0(r) && Cn(a, "y", a.y), t.snap(a, c);
|
|
19862
19865
|
}
|
|
19863
19866
|
}), e.on(["resize.cleanup"], function() {
|
|
19864
19867
|
t.hide();
|
|
@@ -19927,7 +19930,7 @@ Zn.prototype.snap = function(e, t) {
|
|
|
19927
19930
|
}), o.x && o.y) return !1;
|
|
19928
19931
|
}), this.showSnapLine("vertical", o.x && o.x.value), this.showSnapLine("horizontal", o.y && o.y.value), ne(["x", "y"], function(i) {
|
|
19929
19932
|
var l = o[i];
|
|
19930
|
-
Qt(l) &&
|
|
19933
|
+
Qt(l) && Cn(e, i, l.originValue);
|
|
19931
19934
|
});
|
|
19932
19935
|
};
|
|
19933
19936
|
Zn.prototype._createLine = function(e) {
|
|
@@ -19966,7 +19969,7 @@ var $0 = {
|
|
|
19966
19969
|
"resizeSnapping",
|
|
19967
19970
|
"snapping"
|
|
19968
19971
|
],
|
|
19969
|
-
createMoveSnapping: ["type",
|
|
19972
|
+
createMoveSnapping: ["type", bn],
|
|
19970
19973
|
resizeSnapping: ["type", Oo],
|
|
19971
19974
|
snapping: ["type", Zn]
|
|
19972
19975
|
}, D0 = {
|
|
@@ -20529,7 +20532,7 @@ var r_ = {
|
|
|
20529
20532
|
const m = { _i: Dn() };
|
|
20530
20533
|
a.columns.forEach((E) => {
|
|
20531
20534
|
const S = E.config?.valueRowKey || E.id || "";
|
|
20532
|
-
S && (m[S] =
|
|
20535
|
+
S && (m[S] = vn(E.config?.defaultValue));
|
|
20533
20536
|
}), h.value.push(m), o("change", {
|
|
20534
20537
|
id: a.id,
|
|
20535
20538
|
value: m,
|
|
@@ -20611,7 +20614,7 @@ var r_ = {
|
|
|
20611
20614
|
span: M.config?.span || e.span || 24,
|
|
20612
20615
|
style: we({ "margin-bottom": (M.getInputType ? M.getInputType($) : M.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
20613
20616
|
}, {
|
|
20614
|
-
default: N(() => [
|
|
20617
|
+
default: N(() => [Sn(X(T, {
|
|
20615
20618
|
"label-width": x(M.config?.labelWidth),
|
|
20616
20619
|
label: K(i)(M.config?.label || ""),
|
|
20617
20620
|
extra: M.config?.labelExtra,
|
|
@@ -20780,7 +20783,7 @@ export {
|
|
|
20780
20783
|
Dn as buildUUID,
|
|
20781
20784
|
so as clearJson,
|
|
20782
20785
|
il as clone,
|
|
20783
|
-
|
|
20786
|
+
vn as deepClone,
|
|
20784
20787
|
pC as default,
|
|
20785
20788
|
dC as eventBus,
|
|
20786
20789
|
Do as formatToDate,
|