@chamn/engine 0.0.17 → 0.0.18
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/index.d.ts +4 -0
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +141 -137
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -332,7 +332,7 @@ function ob() {
|
|
|
332
332
|
}
|
|
333
333
|
return "";
|
|
334
334
|
}
|
|
335
|
-
var
|
|
335
|
+
var St = Object.prototype.hasOwnProperty, dn = {}, fn = m.ReactDebugCurrentFrame;
|
|
336
336
|
function Pe(_) {
|
|
337
337
|
if (_) {
|
|
338
338
|
var k = _._owner, $ = Ie(_.type, _._source, k ? k.type : null);
|
|
@@ -342,7 +342,7 @@ function ob() {
|
|
|
342
342
|
}
|
|
343
343
|
function be(_, k, $, Q, he) {
|
|
344
344
|
{
|
|
345
|
-
var xe = Function.call.bind(
|
|
345
|
+
var xe = Function.call.bind(St);
|
|
346
346
|
for (var de in _)
|
|
347
347
|
if (xe(_, de)) {
|
|
348
348
|
var ce = void 0;
|
|
@@ -391,7 +391,7 @@ function ob() {
|
|
|
391
391
|
}, Rn, ho, Tt;
|
|
392
392
|
Tt = {};
|
|
393
393
|
function va(_) {
|
|
394
|
-
if (
|
|
394
|
+
if (St.call(_, "ref")) {
|
|
395
395
|
var k = Object.getOwnPropertyDescriptor(_, "ref").get;
|
|
396
396
|
if (k && k.isReactWarning)
|
|
397
397
|
return !1;
|
|
@@ -399,7 +399,7 @@ function ob() {
|
|
|
399
399
|
return _.ref !== void 0;
|
|
400
400
|
}
|
|
401
401
|
function Xi(_) {
|
|
402
|
-
if (
|
|
402
|
+
if (St.call(_, "key")) {
|
|
403
403
|
var k = Object.getOwnPropertyDescriptor(_, "key").get;
|
|
404
404
|
if (k && k.isReactWarning)
|
|
405
405
|
return !1;
|
|
@@ -468,7 +468,7 @@ function ob() {
|
|
|
468
468
|
var xe, de = {}, ce = null, lt = null;
|
|
469
469
|
$ !== void 0 && (ga($), ce = "" + $), Xi(k) && (ga(k.key), ce = "" + k.key), va(k) && (lt = k.ref, Ji(k, he));
|
|
470
470
|
for (xe in k)
|
|
471
|
-
|
|
471
|
+
St.call(k, xe) && !Nn.hasOwnProperty(xe) && (de[xe] = k[xe]);
|
|
472
472
|
if (_ && _.defaultProps) {
|
|
473
473
|
var Be = _.defaultProps;
|
|
474
474
|
for (xe in Be)
|
|
@@ -1493,9 +1493,9 @@ function Wb(e) {
|
|
|
1493
1493
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1494
1494
|
}
|
|
1495
1495
|
function Au(e) {
|
|
1496
|
-
return
|
|
1496
|
+
return Ot(e) / 255;
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function Ot(e) {
|
|
1499
1499
|
return parseInt(e, 16);
|
|
1500
1500
|
}
|
|
1501
1501
|
function Gb(e) {
|
|
@@ -1689,33 +1689,33 @@ function Yb(e) {
|
|
|
1689
1689
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
1690
1690
|
var n = Bt.rgb.exec(e);
|
|
1691
1691
|
return n ? { r: n[1], g: n[2], b: n[3] } : (n = Bt.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = Bt.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = Bt.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = Bt.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = Bt.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = Bt.hex8.exec(e), n ? {
|
|
1692
|
-
r:
|
|
1693
|
-
g:
|
|
1694
|
-
b:
|
|
1692
|
+
r: Ot(n[1]),
|
|
1693
|
+
g: Ot(n[2]),
|
|
1694
|
+
b: Ot(n[3]),
|
|
1695
1695
|
a: Au(n[4]),
|
|
1696
1696
|
format: t ? "name" : "hex8"
|
|
1697
1697
|
} : (n = Bt.hex6.exec(e), n ? {
|
|
1698
|
-
r:
|
|
1699
|
-
g:
|
|
1700
|
-
b:
|
|
1698
|
+
r: Ot(n[1]),
|
|
1699
|
+
g: Ot(n[2]),
|
|
1700
|
+
b: Ot(n[3]),
|
|
1701
1701
|
format: t ? "name" : "hex"
|
|
1702
1702
|
} : (n = Bt.hex4.exec(e), n ? {
|
|
1703
|
-
r:
|
|
1704
|
-
g:
|
|
1705
|
-
b:
|
|
1703
|
+
r: Ot(n[1] + n[1]),
|
|
1704
|
+
g: Ot(n[2] + n[2]),
|
|
1705
|
+
b: Ot(n[3] + n[3]),
|
|
1706
1706
|
a: Au(n[4] + n[4]),
|
|
1707
1707
|
format: t ? "name" : "hex8"
|
|
1708
1708
|
} : (n = Bt.hex3.exec(e), n ? {
|
|
1709
|
-
r:
|
|
1710
|
-
g:
|
|
1711
|
-
b:
|
|
1709
|
+
r: Ot(n[1] + n[1]),
|
|
1710
|
+
g: Ot(n[2] + n[2]),
|
|
1711
|
+
b: Ot(n[3] + n[3]),
|
|
1712
1712
|
format: t ? "name" : "hex"
|
|
1713
1713
|
} : !1)))))))));
|
|
1714
1714
|
}
|
|
1715
1715
|
function gn(e) {
|
|
1716
1716
|
return !!Bt.CSS_UNIT.exec(String(e));
|
|
1717
1717
|
}
|
|
1718
|
-
var
|
|
1718
|
+
var _t = (
|
|
1719
1719
|
/** @class */
|
|
1720
1720
|
function() {
|
|
1721
1721
|
function e(t, n) {
|
|
@@ -2493,7 +2493,7 @@ function Dh(e) {
|
|
|
2493
2493
|
e[t] && (r && (r += " "), r += t);
|
|
2494
2494
|
return r;
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function mt() {
|
|
2497
2497
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
2498
2498
|
(e = arguments[n++]) && (t = Dh(e)) && (r && (r += " "), r += t);
|
|
2499
2499
|
return r;
|
|
@@ -2708,7 +2708,7 @@ class n1 extends Z.Component {
|
|
|
2708
2708
|
className: Me.pluginIconBar,
|
|
2709
2709
|
children: s.map((w) => /* @__PURE__ */ b("div", {
|
|
2710
2710
|
onClick: () => y(w),
|
|
2711
|
-
className:
|
|
2711
|
+
className: mt([Me.pluginIconItem, (h == null ? void 0 : h.name) === w.name && Me.active]),
|
|
2712
2712
|
children: w.icon
|
|
2713
2713
|
}, w.name))
|
|
2714
2714
|
}), n && /* @__PURE__ */ te(Pu, {
|
|
@@ -2727,7 +2727,7 @@ class n1 extends Z.Component {
|
|
|
2727
2727
|
className: Me.pluginNameText,
|
|
2728
2728
|
children: (h == null ? void 0 : h.title) || (h == null ? void 0 : h.name)
|
|
2729
2729
|
}), /* @__PURE__ */ b(nn, {
|
|
2730
|
-
className:
|
|
2730
|
+
className: mt([Me.fixedBtn]),
|
|
2731
2731
|
type: "text",
|
|
2732
2732
|
size: "small",
|
|
2733
2733
|
onClick: () => {
|
|
@@ -2736,7 +2736,7 @@ class n1 extends Z.Component {
|
|
|
2736
2736
|
});
|
|
2737
2737
|
},
|
|
2738
2738
|
children: /* @__PURE__ */ b(Y0, {
|
|
2739
|
-
className:
|
|
2739
|
+
className: mt([o && Me.active])
|
|
2740
2740
|
})
|
|
2741
2741
|
}), /* @__PURE__ */ b(nn, {
|
|
2742
2742
|
className: Me.closeBtn,
|
|
@@ -2768,7 +2768,7 @@ class n1 extends Z.Component {
|
|
|
2768
2768
|
className: Me.arrowCursor,
|
|
2769
2769
|
onClick: m,
|
|
2770
2770
|
children: /* @__PURE__ */ b(A0, {
|
|
2771
|
-
className:
|
|
2771
|
+
className: mt([!i && Me.active])
|
|
2772
2772
|
})
|
|
2773
2773
|
}), /* @__PURE__ */ b("div", {
|
|
2774
2774
|
style: {
|
|
@@ -5732,7 +5732,7 @@ function KS(e) {
|
|
|
5732
5732
|
var qS = eg(Object.getPrototypeOf, Object);
|
|
5733
5733
|
const wc = qS;
|
|
5734
5734
|
var YS = "[object Object]", XS = Function.prototype, JS = Object.prototype, ng = XS.toString, QS = JS.hasOwnProperty, ZS = ng.call(Object);
|
|
5735
|
-
function
|
|
5735
|
+
function xt(e) {
|
|
5736
5736
|
if (!rn(e) || lr(e) != YS)
|
|
5737
5737
|
return !1;
|
|
5738
5738
|
var t = wc(e);
|
|
@@ -6259,7 +6259,7 @@ function T_(e, t, n, r, o, a, i) {
|
|
|
6259
6259
|
var u = a ? a(s, l, n + "", e, t, i) : void 0, d = u === void 0;
|
|
6260
6260
|
if (d) {
|
|
6261
6261
|
var f = ze(l), p = !f && Fo(l), h = !f && !p && vc(l);
|
|
6262
|
-
u = l, f || p || h ? ze(s) ? u = s : ol(s) ? u = Gh(s) : p ? (d = !1, u = og(l, !0)) : h ? (d = !1, u = lg(l, !0)) : u = [] :
|
|
6262
|
+
u = l, f || p || h ? ze(s) ? u = s : ol(s) ? u = Gh(s) : p ? (d = !1, u = og(l, !0)) : h ? (d = !1, u = lg(l, !0)) : u = [] : xt(l) || zo(l) ? (u = s, zo(s) ? u = R_(s) : (!Gt(s) || uc(s)) && (u = cg(l))) : d = !1;
|
|
6263
6263
|
}
|
|
6264
6264
|
d && (i.set(l, u), o(u, l, r, a, i), i.delete(l)), rl(e, n, u);
|
|
6265
6265
|
}
|
|
@@ -6313,7 +6313,7 @@ function D_(e, t) {
|
|
|
6313
6313
|
return t = Jr(t, e), e = P_(e, t), e == null || delete e[Qr(bg(t))];
|
|
6314
6314
|
}
|
|
6315
6315
|
function I_(e) {
|
|
6316
|
-
return
|
|
6316
|
+
return xt(e) ? void 0 : e;
|
|
6317
6317
|
}
|
|
6318
6318
|
var $_ = 1, L_ = 2, B_ = 4, z_ = KS(function(e, t) {
|
|
6319
6319
|
var n = {};
|
|
@@ -6668,7 +6668,7 @@ function il(e) {
|
|
|
6668
6668
|
function _g() {
|
|
6669
6669
|
return Bn("func", (e) => typeof e == "function" || "Expected a function, but received: " + Et(e));
|
|
6670
6670
|
}
|
|
6671
|
-
function
|
|
6671
|
+
function yt(e) {
|
|
6672
6672
|
const t = Et(e), n = typeof e;
|
|
6673
6673
|
return new ln({
|
|
6674
6674
|
type: "literal",
|
|
@@ -6790,21 +6790,21 @@ const kc = ye({
|
|
|
6790
6790
|
cssPaths: W(Ae(z()))
|
|
6791
6791
|
}), i2 = Ae(kc), s2 = ["CBlock", "CContainer", "CImage", "CCanvas", "CVideo", "CAudio", "CText", "CNativeTag"];
|
|
6792
6792
|
var Mt = /* @__PURE__ */ ((e) => (e.SLOT = "SLOT", e.FUNCTION = "FUNCTION", e.EXPRESSION = "EXPRESSION", e))(Mt || {}), Pc = /* @__PURE__ */ ((e) => (e.DESIGN = "design", e.SAVE = "save", e))(Pc || {}), sl = /* @__PURE__ */ ((e) => (e.FUNC = "FUNC", e.COMP = "COMP", e))(sl || {});
|
|
6793
|
-
const l2 = () => Bn("normalObj", (e) => !
|
|
6794
|
-
type:
|
|
6793
|
+
const l2 = () => Bn("normalObj", (e) => !xt(e) || [Mt.SLOT, Mt.EXPRESSION, Mt.FUNCTION].includes(e == null ? void 0 : e.type) ? !1 : (Zr(e, ko(z(), jc)), !0)), jc = ft([z(), Eg(), Qn(), ye({
|
|
6794
|
+
type: yt(Mt.SLOT),
|
|
6795
6795
|
renderType: il([sl.FUNC, sl.COMP]),
|
|
6796
6796
|
// if renderType is Func, params will be useful
|
|
6797
6797
|
params: W(Ae(z())),
|
|
6798
6798
|
// here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
|
|
6799
6799
|
value: Ir(() => ft([$r, Ae($r)]))
|
|
6800
6800
|
}), ye({
|
|
6801
|
-
type:
|
|
6801
|
+
type: yt(Mt.EXPRESSION),
|
|
6802
6802
|
value: z()
|
|
6803
6803
|
}), ye({
|
|
6804
|
-
type:
|
|
6804
|
+
type: yt(Mt.FUNCTION),
|
|
6805
6805
|
value: z()
|
|
6806
6806
|
}), l2(), Ae(Ir(() => jc))]), Ud = ye({
|
|
6807
|
-
type:
|
|
6807
|
+
type: yt(Mt.EXPRESSION),
|
|
6808
6808
|
value: z()
|
|
6809
6809
|
}), $r = ye({
|
|
6810
6810
|
id: W(z()),
|
|
@@ -6835,7 +6835,7 @@ const l2 = () => Bn("normalObj", (e) => !bt(e) || [Mt.SLOT, Mt.EXPRESSION, Mt.FU
|
|
|
6835
6835
|
label: z(),
|
|
6836
6836
|
tip: W(z())
|
|
6837
6837
|
})]), c2 = ye({
|
|
6838
|
-
type:
|
|
6838
|
+
type: yt(
|
|
6839
6839
|
"shape"
|
|
6840
6840
|
/* SHAPE */
|
|
6841
6841
|
),
|
|
@@ -6845,21 +6845,21 @@ const l2 = () => Bn("normalObj", (e) => !bt(e) || [Mt.SLOT, Mt.EXPRESSION, Mt.FU
|
|
|
6845
6845
|
valueType: Ir(() => ji)
|
|
6846
6846
|
}))
|
|
6847
6847
|
}), u2 = ye({
|
|
6848
|
-
type:
|
|
6848
|
+
type: yt(
|
|
6849
6849
|
"enums"
|
|
6850
6850
|
/* ENUMS */
|
|
6851
6851
|
),
|
|
6852
6852
|
value: Ae(z())
|
|
6853
6853
|
});
|
|
6854
6854
|
ye({
|
|
6855
|
-
type:
|
|
6855
|
+
type: yt(
|
|
6856
6856
|
"array"
|
|
6857
6857
|
/* ARRAY */
|
|
6858
6858
|
),
|
|
6859
6859
|
value: Ir(() => ji)
|
|
6860
6860
|
});
|
|
6861
6861
|
const d2 = ye({
|
|
6862
|
-
type:
|
|
6862
|
+
type: yt(
|
|
6863
6863
|
"array"
|
|
6864
6864
|
/* ARRAY */
|
|
6865
6865
|
),
|
|
@@ -6936,14 +6936,14 @@ const p2 = ye({
|
|
|
6936
6936
|
snippets: Ae(p2),
|
|
6937
6937
|
props: Ae(ft([fs, ye({
|
|
6938
6938
|
title: W(ci),
|
|
6939
|
-
type:
|
|
6939
|
+
type: yt(
|
|
6940
6940
|
"single"
|
|
6941
6941
|
/* SINGLE */
|
|
6942
6942
|
),
|
|
6943
6943
|
content: fs
|
|
6944
6944
|
}), ye({
|
|
6945
6945
|
title: W(ci),
|
|
6946
|
-
type:
|
|
6946
|
+
type: yt(
|
|
6947
6947
|
"group"
|
|
6948
6948
|
/* GROUP */
|
|
6949
6949
|
),
|
|
@@ -7014,10 +7014,10 @@ const p2 = ye({
|
|
|
7014
7014
|
};
|
|
7015
7015
|
var eo = /* @__PURE__ */ ((e) => (e.ROOT_CONTAINER = "RootContainer", e))(eo || {});
|
|
7016
7016
|
const v2 = ye({
|
|
7017
|
-
type:
|
|
7017
|
+
type: yt(Mt.FUNCTION),
|
|
7018
7018
|
value: z()
|
|
7019
7019
|
}), m2 = Tc(Og($r, ["componentName"]), ye({
|
|
7020
|
-
componentName:
|
|
7020
|
+
componentName: yt(
|
|
7021
7021
|
"RootContainer"
|
|
7022
7022
|
/* ROOT_CONTAINER */
|
|
7023
7023
|
)
|
|
@@ -7052,7 +7052,7 @@ const oa = y2(), b2 = (e, t) => {
|
|
|
7052
7052
|
return t && (o = t.materialsMode || new ar([])), r && (ze(r) ? n.value = r.map((a) => new ke(a, {
|
|
7053
7053
|
parent: t,
|
|
7054
7054
|
materials: o
|
|
7055
|
-
})) :
|
|
7055
|
+
})) : xt(r) && n.value.push(new ke(r, {
|
|
7056
7056
|
parent: t,
|
|
7057
7057
|
materials: o
|
|
7058
7058
|
}))), n;
|
|
@@ -7070,7 +7070,7 @@ class Lr {
|
|
|
7070
7070
|
const n = this.data, r = (o) => {
|
|
7071
7071
|
if (o instanceof ke)
|
|
7072
7072
|
return o.export(t);
|
|
7073
|
-
if (
|
|
7073
|
+
if (xt(o)) {
|
|
7074
7074
|
const a = {};
|
|
7075
7075
|
return Object.keys(o || {}).forEach((i) => {
|
|
7076
7076
|
a[i] = r(o[i]);
|
|
@@ -7093,14 +7093,14 @@ const Rg = (e) => {
|
|
|
7093
7093
|
parent: t,
|
|
7094
7094
|
materials: n
|
|
7095
7095
|
}) : e;
|
|
7096
|
-
if (
|
|
7096
|
+
if (xt(e)) {
|
|
7097
7097
|
const r = {};
|
|
7098
7098
|
return Object.keys(e).forEach((o) => {
|
|
7099
7099
|
r[o] = ul(e[o], t, n);
|
|
7100
7100
|
}), r;
|
|
7101
7101
|
} else
|
|
7102
7102
|
return Array.isArray(e) ? e.map((r) => cl(r, t, n)) : e;
|
|
7103
|
-
}, ul = (e, t, n) =>
|
|
7103
|
+
}, ul = (e, t, n) => xt(e) ? cl(e, t, n) : ze(e) ? e.map((r) => cl(r, t, n)) : e;
|
|
7104
7104
|
class Dn {
|
|
7105
7105
|
constructor(t, n, r) {
|
|
7106
7106
|
re(this, "nodeType", "PROP"), re(this, "rawData"), re(this, "parent"), re(this, "emitter", oa), re(this, "data"), re(this, "name"), re(this, "materialsMode");
|
|
@@ -7144,7 +7144,7 @@ class Dn {
|
|
|
7144
7144
|
return o.export(t);
|
|
7145
7145
|
if (ze(o))
|
|
7146
7146
|
return o.map((a) => r(a));
|
|
7147
|
-
if (
|
|
7147
|
+
if (xt(o)) {
|
|
7148
7148
|
const a = {};
|
|
7149
7149
|
return Object.keys(o || {}).forEach((i) => {
|
|
7150
7150
|
a[i] = r(o[i]);
|
|
@@ -7191,7 +7191,7 @@ const x2 = (e) => {
|
|
|
7191
7191
|
}), e.children && (Array.isArray(e.children) ? r.children = e.children.map((a) => {
|
|
7192
7192
|
if (a instanceof ke)
|
|
7193
7193
|
return a;
|
|
7194
|
-
if (
|
|
7194
|
+
if (xt(a)) {
|
|
7195
7195
|
const i = a;
|
|
7196
7196
|
return new ke(i, {
|
|
7197
7197
|
parent: t,
|
|
@@ -7316,10 +7316,10 @@ const Gd = (e, t, n) => {
|
|
|
7316
7316
|
})
|
|
7317
7317
|
};
|
|
7318
7318
|
let o = [];
|
|
7319
|
-
ze(e.children) ? o = e.children.map((i) => i instanceof ke ? i :
|
|
7319
|
+
ze(e.children) ? o = e.children.map((i) => i instanceof ke ? i : xt(i) ? new ke(i, {
|
|
7320
7320
|
parent: t,
|
|
7321
7321
|
materials: n
|
|
7322
|
-
}) : i) : e.children instanceof ke ? o.push(e.children) : e.children &&
|
|
7322
|
+
}) : i) : e.children instanceof ke ? o.push(e.children) : e.children && xt(e.children) && o.push(new ke(e.children, {
|
|
7323
7323
|
parent: t,
|
|
7324
7324
|
materials: n
|
|
7325
7325
|
}));
|
|
@@ -7432,7 +7432,7 @@ class Go {
|
|
|
7432
7432
|
});
|
|
7433
7433
|
}
|
|
7434
7434
|
}
|
|
7435
|
-
const Gn = (e) => (e == null ? void 0 : e.type) === Mt.EXPRESSION, w2 = (e) => (e == null ? void 0 : e.type) === Mt.FUNCTION, Cn = () => Math.random().toString(32).slice(3, 9), S2 = (e) => (e == null ? void 0 : e.nodeType) === "NODE", ps = (e) => (e == null ? void 0 : e.nodeType) === "PROP", C2 = (e) => (e == null ? void 0 : e.nodeType) === "SLOT", Ac = (e) => U_(e, (t) =>
|
|
7435
|
+
const Gn = (e) => (e == null ? void 0 : e.type) === Mt.EXPRESSION, w2 = (e) => (e == null ? void 0 : e.type) === Mt.FUNCTION, Cn = () => Math.random().toString(32).slice(3, 9), S2 = (e) => (e == null ? void 0 : e.nodeType) === "NODE", ps = (e) => (e == null ? void 0 : e.nodeType) === "PROP", C2 = (e) => (e == null ? void 0 : e.nodeType) === "SLOT", Ac = (e) => U_(e, (t) => xt(t) ? !Object.keys(t).length : ze(t) ? !t.length : !t);
|
|
7436
7436
|
function O2(e, t) {
|
|
7437
7437
|
const n = [e];
|
|
7438
7438
|
for (; n.length; ) {
|
|
@@ -7448,7 +7448,7 @@ function O2(e, t) {
|
|
|
7448
7448
|
a(s.value);
|
|
7449
7449
|
return;
|
|
7450
7450
|
}
|
|
7451
|
-
if (
|
|
7451
|
+
if (xt(s)) {
|
|
7452
7452
|
const l = s;
|
|
7453
7453
|
Object.keys(l).forEach((c) => {
|
|
7454
7454
|
a(l[c]);
|
|
@@ -7582,10 +7582,10 @@ const T2 = ye({
|
|
|
7582
7582
|
version: z(),
|
|
7583
7583
|
name: z(),
|
|
7584
7584
|
css: W(z()),
|
|
7585
|
-
renderType: W(ft([
|
|
7585
|
+
renderType: W(ft([yt(
|
|
7586
7586
|
"COMPONENT"
|
|
7587
7587
|
/* COMPONENT */
|
|
7588
|
-
),
|
|
7588
|
+
), yt(
|
|
7589
7589
|
"PAGE"
|
|
7590
7590
|
/* PAGE */
|
|
7591
7591
|
)])),
|
|
@@ -7658,7 +7658,7 @@ class ui {
|
|
|
7658
7658
|
return n.value.children.unshift(t), t.parent = n, n.updateValue(), !0;
|
|
7659
7659
|
if (r === "CHILD_END")
|
|
7660
7660
|
return n.value.children.push(t), t.parent = n, n.updateValue(), !0;
|
|
7661
|
-
if (
|
|
7661
|
+
if (xt(r)) {
|
|
7662
7662
|
const a = r;
|
|
7663
7663
|
if (a.type === "CHILD") {
|
|
7664
7664
|
const i = a.pos, s = a.index || 0;
|
|
@@ -9541,7 +9541,7 @@ const MT = async ({
|
|
|
9541
9541
|
src: e.icon,
|
|
9542
9542
|
draggable: !1
|
|
9543
9543
|
}) : e.icon, [e.icon]), r = /* @__PURE__ */ b("div", {
|
|
9544
|
-
className:
|
|
9544
|
+
className: mt([So.square, e.containerClassName]),
|
|
9545
9545
|
children: /* @__PURE__ */ te("div", {
|
|
9546
9546
|
...t,
|
|
9547
9547
|
className: So.componentItem,
|
|
@@ -10498,7 +10498,7 @@ const zv = {
|
|
|
10498
10498
|
return /* @__PURE__ */ te("div", {
|
|
10499
10499
|
className: xn.layoutSelectBox,
|
|
10500
10500
|
children: [/* @__PURE__ */ b("div", {
|
|
10501
|
-
className:
|
|
10501
|
+
className: mt([xn.hoverBox, r && xn.hoverBoxActive]),
|
|
10502
10502
|
children: e.map((a) => /* @__PURE__ */ b("div", {
|
|
10503
10503
|
className: xn.hoverItem,
|
|
10504
10504
|
onClick: () => n(a.key),
|
|
@@ -11679,7 +11679,7 @@ const Gv = Z.createContext({
|
|
|
11679
11679
|
const L = /* @__PURE__ */ te("div", {
|
|
11680
11680
|
className: ut.nodeBox,
|
|
11681
11681
|
children: [/* @__PURE__ */ te("div", {
|
|
11682
|
-
className:
|
|
11682
|
+
className: mt([ut.nodeContent, O && E && ut.selected]),
|
|
11683
11683
|
style: {
|
|
11684
11684
|
marginLeft: `${-C}px`,
|
|
11685
11685
|
paddingLeft: `${C + 8}px`
|
|
@@ -11697,7 +11697,7 @@ const Gv = Z.createContext({
|
|
|
11697
11697
|
className: ut.arrowSpan,
|
|
11698
11698
|
onClickCapture: x,
|
|
11699
11699
|
children: /* @__PURE__ */ b(Q0, {
|
|
11700
|
-
className:
|
|
11700
|
+
className: mt([ut.nodeArrow, m && ut.expanded])
|
|
11701
11701
|
})
|
|
11702
11702
|
}) : null, /* @__PURE__ */ te("div", {
|
|
11703
11703
|
className: ut.nodeRenderView,
|
|
@@ -11755,7 +11755,7 @@ const Gv = Z.createContext({
|
|
|
11755
11755
|
})]
|
|
11756
11756
|
})]
|
|
11757
11757
|
}), /* @__PURE__ */ b("div", {
|
|
11758
|
-
className:
|
|
11758
|
+
className: mt([ut.nodeChildren, O && ut.selected]),
|
|
11759
11759
|
style: {
|
|
11760
11760
|
paddingLeft: `${S}px`,
|
|
11761
11761
|
height: m ? "auto" : "0"
|
|
@@ -12516,7 +12516,7 @@ function Xv(e) {
|
|
|
12516
12516
|
}
|
|
12517
12517
|
});
|
|
12518
12518
|
}
|
|
12519
|
-
function
|
|
12519
|
+
function bt(e) {
|
|
12520
12520
|
const t = e.map((n) => n.type).join(" | ");
|
|
12521
12521
|
return new un({
|
|
12522
12522
|
type: "union",
|
|
@@ -12558,7 +12558,7 @@ const Jv = Re({
|
|
|
12558
12558
|
});
|
|
12559
12559
|
Ge(Jv);
|
|
12560
12560
|
var Mn = /* @__PURE__ */ ((e) => (e.SLOT = "SLOT", e.FUNCTION = "FUNCTION", e.EXPRESSION = "EXPRESSION", e))(Mn || {}), El = /* @__PURE__ */ ((e) => (e.FUNC = "FUNC", e.COMP = "COMP", e))(El || {});
|
|
12561
|
-
const kD = () => zn("normalObj", (e) => !zi(e) || [Mn.SLOT, Mn.EXPRESSION, Mn.FUNCTION].includes(e == null ? void 0 : e.type) ? !1 : (so(e, Mo(K(), Jc)), !0)), Jc =
|
|
12561
|
+
const kD = () => zn("normalObj", (e) => !zi(e) || [Mn.SLOT, Mn.EXPRESSION, Mn.FUNCTION].includes(e == null ? void 0 : e.type) ? !1 : (so(e, Mo(K(), Jc)), !0)), Jc = bt([
|
|
12562
12562
|
K(),
|
|
12563
12563
|
Yv(),
|
|
12564
12564
|
Zn(),
|
|
@@ -12568,7 +12568,7 @@ const kD = () => zn("normalObj", (e) => !zi(e) || [Mn.SLOT, Mn.EXPRESSION, Mn.FU
|
|
|
12568
12568
|
// if renderType is Func, params will be useful
|
|
12569
12569
|
params: q(Ge(K())),
|
|
12570
12570
|
// here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
|
|
12571
|
-
value: Hr(() =>
|
|
12571
|
+
value: Hr(() => bt([pi, Ge(pi)]))
|
|
12572
12572
|
}),
|
|
12573
12573
|
Re({
|
|
12574
12574
|
type: tn(Mn.EXPRESSION),
|
|
@@ -12592,18 +12592,18 @@ const kD = () => zn("normalObj", (e) => !zi(e) || [Mn.SLOT, Mn.EXPRESSION, Mn.FU
|
|
|
12592
12592
|
props: q(Mo(K(), Jc)),
|
|
12593
12593
|
nodeName: q(K()),
|
|
12594
12594
|
state: q(Mo(K(), qe())),
|
|
12595
|
-
children: Hr(() => q(Ge(
|
|
12595
|
+
children: Hr(() => q(Ge(bt([K(), pi])))),
|
|
12596
12596
|
configure: q(qe()),
|
|
12597
12597
|
css: q(qe()),
|
|
12598
12598
|
style: q(qe()),
|
|
12599
12599
|
classNames: q(Ge(qe())),
|
|
12600
12600
|
refId: q(K()),
|
|
12601
12601
|
extra: q(Mo(qe(), qe())),
|
|
12602
|
-
condition: q(
|
|
12602
|
+
condition: q(bt([Zn(), Hf])),
|
|
12603
12603
|
loop: q(
|
|
12604
12604
|
Re({
|
|
12605
12605
|
open: Zn(),
|
|
12606
|
-
data:
|
|
12606
|
+
data: bt([Ge(qe()), Hf]),
|
|
12607
12607
|
args: q(Ge(K())),
|
|
12608
12608
|
forName: q(K()),
|
|
12609
12609
|
forIndex: q(K()),
|
|
@@ -12612,7 +12612,7 @@ const kD = () => zn("normalObj", (e) => !zi(e) || [Mn.SLOT, Mn.EXPRESSION, Mn.FU
|
|
|
12612
12612
|
})
|
|
12613
12613
|
),
|
|
12614
12614
|
methods: q(Ge(qe()))
|
|
12615
|
-
}), PD = (e) => zi(e) ? e.label : e, hi =
|
|
12615
|
+
}), PD = (e) => zi(e) ? e.label : e, hi = bt([
|
|
12616
12616
|
K(),
|
|
12617
12617
|
Re({
|
|
12618
12618
|
label: K(),
|
|
@@ -12650,7 +12650,7 @@ const AD = Re({
|
|
|
12650
12650
|
/* ARRAY */
|
|
12651
12651
|
),
|
|
12652
12652
|
value: Hr(() => Ge(Fi))
|
|
12653
|
-
}), Fi =
|
|
12653
|
+
}), Fi = bt([
|
|
12654
12654
|
_l([
|
|
12655
12655
|
"array",
|
|
12656
12656
|
"boolean",
|
|
@@ -12668,7 +12668,7 @@ const AD = Re({
|
|
|
12668
12668
|
jD,
|
|
12669
12669
|
MD,
|
|
12670
12670
|
AD
|
|
12671
|
-
]), DD =
|
|
12671
|
+
]), DD = bt([
|
|
12672
12672
|
K(),
|
|
12673
12673
|
Re({
|
|
12674
12674
|
componentName: K(),
|
|
@@ -12688,8 +12688,8 @@ const AD = Re({
|
|
|
12688
12688
|
setters: q(Ge(DD)),
|
|
12689
12689
|
condition: q(qv())
|
|
12690
12690
|
});
|
|
12691
|
-
|
|
12692
|
-
|
|
12691
|
+
bt([K(), qv()]);
|
|
12692
|
+
bt([
|
|
12693
12693
|
K(),
|
|
12694
12694
|
Re({
|
|
12695
12695
|
name: K(),
|
|
@@ -12706,7 +12706,7 @@ yt([
|
|
|
12706
12706
|
const ID = Re({
|
|
12707
12707
|
id: q(K()),
|
|
12708
12708
|
title: K(),
|
|
12709
|
-
snapshot:
|
|
12709
|
+
snapshot: bt([K(), qe()]),
|
|
12710
12710
|
snapshotText: q(K()),
|
|
12711
12711
|
description: q(K()),
|
|
12712
12712
|
// 组件分类,用于搜索
|
|
@@ -12733,7 +12733,7 @@ Re({
|
|
|
12733
12733
|
npm: q(Jv),
|
|
12734
12734
|
snippets: Ge(ID),
|
|
12735
12735
|
props: Ge(
|
|
12736
|
-
|
|
12736
|
+
bt([
|
|
12737
12737
|
ws,
|
|
12738
12738
|
Re({
|
|
12739
12739
|
title: q(hi),
|
|
@@ -12756,7 +12756,7 @@ Re({
|
|
|
12756
12756
|
fixedProps: q(qe()),
|
|
12757
12757
|
// 可以拖入组件
|
|
12758
12758
|
isContainer: q(
|
|
12759
|
-
|
|
12759
|
+
bt([
|
|
12760
12760
|
Zn(),
|
|
12761
12761
|
Re({
|
|
12762
12762
|
placeholder: K(),
|
|
@@ -12765,7 +12765,7 @@ Re({
|
|
|
12765
12765
|
})
|
|
12766
12766
|
])
|
|
12767
12767
|
),
|
|
12768
|
-
supportDispatchNativeEvent: q(
|
|
12768
|
+
supportDispatchNativeEvent: q(bt([Zn(), Ge(K())])),
|
|
12769
12769
|
// 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
|
|
12770
12770
|
isLayout: q(Zn()),
|
|
12771
12771
|
rootSelector: q(K()),
|
|
@@ -12883,21 +12883,21 @@ function lo(e) {
|
|
|
12883
12883
|
function Zc(e) {
|
|
12884
12884
|
return "nodeType" in e;
|
|
12885
12885
|
}
|
|
12886
|
-
function
|
|
12886
|
+
function wt(e) {
|
|
12887
12887
|
var t, n;
|
|
12888
12888
|
return e ? lo(e) ? e : Zc(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
12889
12889
|
}
|
|
12890
12890
|
function eu(e) {
|
|
12891
12891
|
const {
|
|
12892
12892
|
Document: t
|
|
12893
|
-
} =
|
|
12893
|
+
} = wt(e);
|
|
12894
12894
|
return e instanceof t;
|
|
12895
12895
|
}
|
|
12896
12896
|
function sa(e) {
|
|
12897
|
-
return lo(e) ? !1 : e instanceof
|
|
12897
|
+
return lo(e) ? !1 : e instanceof wt(e).HTMLElement;
|
|
12898
12898
|
}
|
|
12899
12899
|
function BD(e) {
|
|
12900
|
-
return e instanceof
|
|
12900
|
+
return e instanceof wt(e).SVGElement;
|
|
12901
12901
|
}
|
|
12902
12902
|
function co(e) {
|
|
12903
12903
|
return e ? lo(e) ? e.document : Zc(e) ? eu(e) ? e : sa(e) ? e.ownerDocument : document : document : document;
|
|
@@ -12989,7 +12989,7 @@ function nu(e) {
|
|
|
12989
12989
|
return !1;
|
|
12990
12990
|
const {
|
|
12991
12991
|
KeyboardEvent: t
|
|
12992
|
-
} =
|
|
12992
|
+
} = wt(e.target);
|
|
12993
12993
|
return t && e instanceof t;
|
|
12994
12994
|
}
|
|
12995
12995
|
function VD(e) {
|
|
@@ -12997,7 +12997,7 @@ function VD(e) {
|
|
|
12997
12997
|
return !1;
|
|
12998
12998
|
const {
|
|
12999
12999
|
TouchEvent: t
|
|
13000
|
-
} =
|
|
13000
|
+
} = wt(e.target);
|
|
13001
13001
|
return t && e instanceof t;
|
|
13002
13002
|
}
|
|
13003
13003
|
function Rl(e) {
|
|
@@ -13466,7 +13466,7 @@ function uo(e, t) {
|
|
|
13466
13466
|
if (t.ignoreTransform) {
|
|
13467
13467
|
const {
|
|
13468
13468
|
getComputedStyle: c
|
|
13469
|
-
} =
|
|
13469
|
+
} = wt(e), {
|
|
13470
13470
|
transform: u,
|
|
13471
13471
|
transformOrigin: d
|
|
13472
13472
|
} = c(e);
|
|
@@ -13506,10 +13506,10 @@ function p8(e) {
|
|
|
13506
13506
|
};
|
|
13507
13507
|
}
|
|
13508
13508
|
function h8(e, t) {
|
|
13509
|
-
return t === void 0 && (t =
|
|
13509
|
+
return t === void 0 && (t = wt(e).getComputedStyle(e)), t.position === "fixed";
|
|
13510
13510
|
}
|
|
13511
13511
|
function g8(e, t) {
|
|
13512
|
-
t === void 0 && (t =
|
|
13512
|
+
t === void 0 && (t = wt(e).getComputedStyle(e));
|
|
13513
13513
|
const n = /(auto|scroll|overlay)/;
|
|
13514
13514
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
13515
13515
|
const a = t[o];
|
|
@@ -13527,7 +13527,7 @@ function Hi(e, t) {
|
|
|
13527
13527
|
return n;
|
|
13528
13528
|
const {
|
|
13529
13529
|
getComputedStyle: a
|
|
13530
|
-
} =
|
|
13530
|
+
} = wt(o), i = a(o);
|
|
13531
13531
|
return o !== e && g8(o, i) && n.push(o), h8(o, i) ? n : r(o.parentNode);
|
|
13532
13532
|
}
|
|
13533
13533
|
return e ? r(e) : n;
|
|
@@ -13705,7 +13705,7 @@ class Ao {
|
|
|
13705
13705
|
function C8(e) {
|
|
13706
13706
|
const {
|
|
13707
13707
|
EventTarget: t
|
|
13708
|
-
} =
|
|
13708
|
+
} = wt(e);
|
|
13709
13709
|
return e instanceof t ? e : co(e);
|
|
13710
13710
|
}
|
|
13711
13711
|
function Os(e, t) {
|
|
@@ -13765,7 +13765,7 @@ class ou {
|
|
|
13765
13765
|
target: n
|
|
13766
13766
|
}
|
|
13767
13767
|
} = t;
|
|
13768
|
-
this.props = t, this.listeners = new Ao(co(n)), this.windowListeners = new Ao(
|
|
13768
|
+
this.props = t, this.listeners = new Ao(co(n)), this.windowListeners = new Ao(wt(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
13769
13769
|
}
|
|
13770
13770
|
attach() {
|
|
13771
13771
|
this.handleStart(), this.windowListeners.add(jt.Resize, this.handleCancel), this.windowListeners.add(jt.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(jt.Keydown, this.handleKeyDown));
|
|
@@ -13921,7 +13921,7 @@ class au {
|
|
|
13921
13921
|
} = t, {
|
|
13922
13922
|
target: i
|
|
13923
13923
|
} = a;
|
|
13924
|
-
this.props = t, this.events = n, this.document = co(i), this.documentListeners = new Ao(this.document), this.listeners = new Ao(r), this.windowListeners = new Ao(
|
|
13924
|
+
this.props = t, this.events = n, this.document = co(i), this.documentListeners = new Ao(this.document), this.listeners = new Ao(r), this.windowListeners = new Ao(wt(i)), this.initialCoordinates = (o = Rl(a)) != null ? o : qt, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
13925
13925
|
}
|
|
13926
13926
|
attach() {
|
|
13927
13927
|
const {
|
|
@@ -14507,7 +14507,7 @@ function fm(e) {
|
|
|
14507
14507
|
const Es = [];
|
|
14508
14508
|
function U8(e, t) {
|
|
14509
14509
|
t === void 0 && (t = uo);
|
|
14510
|
-
const [n] = e, r = fm(n ?
|
|
14510
|
+
const [n] = e, r = fm(n ? wt(n) : null), [o, a] = Jl(s, Es), i = Ui({
|
|
14511
14511
|
callback: a
|
|
14512
14512
|
});
|
|
14513
14513
|
return e.length > 0 && o === Es && a(), Kt(() => {
|
|
@@ -14920,7 +14920,7 @@ const tp = /* @__PURE__ */ Iy(function(t) {
|
|
|
14920
14920
|
scrollAdjustedTranslate: null
|
|
14921
14921
|
}), Xe = R.getNodeFor((n = I.current.over) == null ? void 0 : n.id), Le = G8({
|
|
14922
14922
|
measure: G.dragOverlay.measure
|
|
14923
|
-
}), Ie = (r = Le.nodeRef.current) != null ? r : ue,
|
|
14923
|
+
}), Ie = (r = Le.nodeRef.current) != null ? r : ue, St = S ? (o = Le.rect) != null ? o : ne : null, dn = !!(Le.nodeRef.current && Le.rect), fn = B8(dn ? null : ne), Pe = fm(Ie ? wt(Ie) : null), be = z8(S ? Xe ?? ue : null), je = U8(be), Ke = e6(p, {
|
|
14924
14924
|
transform: {
|
|
14925
14925
|
x: N.x - fn.x,
|
|
14926
14926
|
y: N.y - fn.y,
|
|
@@ -14931,13 +14931,13 @@ const tp = /* @__PURE__ */ Iy(function(t) {
|
|
|
14931
14931
|
active: D,
|
|
14932
14932
|
activeNodeRect: ne,
|
|
14933
14933
|
containerNodeRect: De,
|
|
14934
|
-
draggingNodeRect:
|
|
14934
|
+
draggingNodeRect: St,
|
|
14935
14935
|
over: I.current.over,
|
|
14936
14936
|
overlayNodeRect: Le.rect,
|
|
14937
14937
|
scrollableAncestors: be,
|
|
14938
14938
|
scrollableAncestorRects: je,
|
|
14939
14939
|
windowRect: Pe
|
|
14940
|
-
}), Yt = et ? jr(et, N) : null, pa = F8(be), ha = ep(pa), ga = ep(pa, [ne]), Rt = jr(Ke, ha), Nn =
|
|
14940
|
+
}), Yt = et ? jr(et, N) : null, pa = F8(be), ha = ep(pa), ga = ep(pa, [ne]), Rt = jr(Ke, ha), Nn = St ? c8(St, Ke) : null, Rn = D && Nn ? d({
|
|
14941
14941
|
active: D,
|
|
14942
14942
|
collisionRect: Nn,
|
|
14943
14943
|
droppableRects: ee,
|
|
@@ -15136,16 +15136,16 @@ const tp = /* @__PURE__ */ Iy(function(t) {
|
|
|
15136
15136
|
droppableRects: ee,
|
|
15137
15137
|
draggableNodes: E,
|
|
15138
15138
|
draggingNode: Ie,
|
|
15139
|
-
draggingNodeRect:
|
|
15139
|
+
draggingNodeRect: St,
|
|
15140
15140
|
droppableContainers: R,
|
|
15141
15141
|
over: Tt,
|
|
15142
15142
|
scrollableAncestors: be,
|
|
15143
15143
|
scrollAdjustedTranslate: Rt
|
|
15144
15144
|
}, P.current = {
|
|
15145
|
-
initial:
|
|
15145
|
+
initial: St,
|
|
15146
15146
|
translated: Nn
|
|
15147
15147
|
};
|
|
15148
|
-
}, [D, ue, Rn, Nn, E, Ie,
|
|
15148
|
+
}, [D, ue, Rn, Nn, E, Ie, St, ee, R, Tt, be, Rt]), k8({
|
|
15149
15149
|
...$e,
|
|
15150
15150
|
delta: N,
|
|
15151
15151
|
draggingRect: Nn,
|
|
@@ -17568,7 +17568,7 @@ const DI = "_inputAuto_gk0d2_2", II = "_active_gk0d2_6", up = {
|
|
|
17568
17568
|
onBlur: () => {
|
|
17569
17569
|
u(!1);
|
|
17570
17570
|
},
|
|
17571
|
-
className:
|
|
17571
|
+
className: mt([up.inputAuto, c && up.active]),
|
|
17572
17572
|
placeholder: "value",
|
|
17573
17573
|
options: p
|
|
17574
17574
|
})
|
|
@@ -19073,7 +19073,7 @@ const LI = {
|
|
|
19073
19073
|
style: {
|
|
19074
19074
|
width: `${g}px`
|
|
19075
19075
|
},
|
|
19076
|
-
className:
|
|
19076
|
+
className: mt([mn.inputBox]),
|
|
19077
19077
|
onFocus: () => {
|
|
19078
19078
|
O({
|
|
19079
19079
|
key: !0,
|
|
@@ -20324,7 +20324,7 @@ const DL = {
|
|
|
20324
20324
|
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
20325
20325
|
}, AL),
|
|
20326
20326
|
timePickerLocale: Object.assign({}, ry)
|
|
20327
|
-
}, Cp = IL,
|
|
20327
|
+
}, Cp = IL, Ct = "${label} is not a valid ${type}", $L = {
|
|
20328
20328
|
locale: "en",
|
|
20329
20329
|
Pagination: ML,
|
|
20330
20330
|
DatePicker: Cp,
|
|
@@ -20413,19 +20413,19 @@ const DL = {
|
|
|
20413
20413
|
invalid: "${label} is an invalid date"
|
|
20414
20414
|
},
|
|
20415
20415
|
types: {
|
|
20416
|
-
string:
|
|
20417
|
-
method:
|
|
20418
|
-
array:
|
|
20419
|
-
object:
|
|
20420
|
-
number:
|
|
20421
|
-
date:
|
|
20422
|
-
boolean:
|
|
20423
|
-
integer:
|
|
20424
|
-
float:
|
|
20425
|
-
regexp:
|
|
20426
|
-
email:
|
|
20427
|
-
url:
|
|
20428
|
-
hex:
|
|
20416
|
+
string: Ct,
|
|
20417
|
+
method: Ct,
|
|
20418
|
+
array: Ct,
|
|
20419
|
+
object: Ct,
|
|
20420
|
+
number: Ct,
|
|
20421
|
+
date: Ct,
|
|
20422
|
+
boolean: Ct,
|
|
20423
|
+
integer: Ct,
|
|
20424
|
+
float: Ct,
|
|
20425
|
+
regexp: Ct,
|
|
20426
|
+
email: Ct,
|
|
20427
|
+
url: Ct,
|
|
20428
|
+
hex: Ct
|
|
20429
20429
|
},
|
|
20430
20430
|
string: {
|
|
20431
20431
|
len: "${label} must be ${len} characters",
|
|
@@ -20747,7 +20747,7 @@ function JL(e, t) {
|
|
|
20747
20747
|
colorInfoTextHover: g[8],
|
|
20748
20748
|
colorInfoText: g[9],
|
|
20749
20749
|
colorInfoTextActive: g[10],
|
|
20750
|
-
colorBgMask: new
|
|
20750
|
+
colorBgMask: new _t("#000").setAlpha(0.45).toRgbString(),
|
|
20751
20751
|
colorWhite: "#fff"
|
|
20752
20752
|
});
|
|
20753
20753
|
}
|
|
@@ -20777,7 +20777,7 @@ function e3(e) {
|
|
|
20777
20777
|
lineWidthBold: o + 1
|
|
20778
20778
|
}, ZL(r));
|
|
20779
20779
|
}
|
|
20780
|
-
const vn = (e, t) => new
|
|
20780
|
+
const vn = (e, t) => new _t(e).setAlpha(t).toRgbString(), _o = (e, t) => new _t(e).darken(t).toHexString(), t3 = (e) => {
|
|
20781
20781
|
const t = Gr(e);
|
|
20782
20782
|
return {
|
|
20783
20783
|
1: t[0],
|
|
@@ -20869,25 +20869,25 @@ function Va(e, t) {
|
|
|
20869
20869
|
g: r,
|
|
20870
20870
|
b: o,
|
|
20871
20871
|
a
|
|
20872
|
-
} = new
|
|
20872
|
+
} = new _t(e).toRgb();
|
|
20873
20873
|
if (a < 1)
|
|
20874
20874
|
return e;
|
|
20875
20875
|
const {
|
|
20876
20876
|
r: i,
|
|
20877
20877
|
g: s,
|
|
20878
20878
|
b: l
|
|
20879
|
-
} = new
|
|
20879
|
+
} = new _t(t).toRgb();
|
|
20880
20880
|
for (let c = 0.01; c <= 1; c += 0.01) {
|
|
20881
20881
|
const u = Math.round((n - i * (1 - c)) / c), d = Math.round((r - s * (1 - c)) / c), f = Math.round((o - l * (1 - c)) / c);
|
|
20882
20882
|
if (Ls(u) && Ls(d) && Ls(f))
|
|
20883
|
-
return new
|
|
20883
|
+
return new _t({
|
|
20884
20884
|
r: u,
|
|
20885
20885
|
g: d,
|
|
20886
20886
|
b: f,
|
|
20887
20887
|
a: Math.round(c * 100) / 100
|
|
20888
20888
|
}).toRgbString();
|
|
20889
20889
|
}
|
|
20890
|
-
return new
|
|
20890
|
+
return new _t({
|
|
20891
20891
|
r: n,
|
|
20892
20892
|
g: r,
|
|
20893
20893
|
b: o,
|
|
@@ -21023,9 +21023,9 @@ function l3(e) {
|
|
|
21023
21023
|
screenXXLMin: u,
|
|
21024
21024
|
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
21025
21025
|
boxShadowCard: `
|
|
21026
|
-
0 1px 2px -2px ${new
|
|
21027
|
-
0 3px 6px 0 ${new
|
|
21028
|
-
0 5px 12px 4px ${new
|
|
21026
|
+
0 1px 2px -2px ${new _t("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
21027
|
+
0 3px 6px 0 ${new _t("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
21028
|
+
0 5px 12px 4px ${new _t("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
21029
21029
|
`,
|
|
21030
21030
|
boxShadowDrawerRight: `
|
|
21031
21031
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -21272,16 +21272,16 @@ function x3(e, t) {
|
|
|
21272
21272
|
let l = i.clone();
|
|
21273
21273
|
return l = (s == null ? void 0 : s(l)) || l, l.toRgbString();
|
|
21274
21274
|
}, o = (i, s) => {
|
|
21275
|
-
const l = new
|
|
21275
|
+
const l = new _t(i), c = Gr(l.toRgbString());
|
|
21276
21276
|
n[`${s}-color`] = r(l), n[`${s}-color-disabled`] = c[1], n[`${s}-color-hover`] = c[4], n[`${s}-color-active`] = c[6], n[`${s}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), n[`${s}-color-deprecated-bg`] = c[0], n[`${s}-color-deprecated-border`] = c[2];
|
|
21277
21277
|
};
|
|
21278
21278
|
if (t.primaryColor) {
|
|
21279
21279
|
o(t.primaryColor, "primary");
|
|
21280
|
-
const i = new
|
|
21280
|
+
const i = new _t(t.primaryColor), s = Gr(i.toRgbString());
|
|
21281
21281
|
s.forEach((c, u) => {
|
|
21282
21282
|
n[`primary-${u + 1}`] = c;
|
|
21283
21283
|
}), n["primary-color-deprecated-l-35"] = r(i, (c) => c.lighten(35)), n["primary-color-deprecated-l-20"] = r(i, (c) => c.lighten(20)), n["primary-color-deprecated-t-20"] = r(i, (c) => c.tint(20)), n["primary-color-deprecated-t-50"] = r(i, (c) => c.tint(50)), n["primary-color-deprecated-f-12"] = r(i, (c) => c.setAlpha(c.getAlpha() * 0.12));
|
|
21284
|
-
const l = new
|
|
21284
|
+
const l = new _t(s[0]);
|
|
21285
21285
|
n["primary-color-active-deprecated-f-30"] = r(l, (c) => c.setAlpha(c.getAlpha() * 0.3)), n["primary-color-active-deprecated-d-02"] = r(l, (c) => c.darken(2));
|
|
21286
21286
|
}
|
|
21287
21287
|
return t.successColor && o(t.successColor, "success"), t.warningColor && o(t.warningColor, "warning"), t.errorColor && o(t.errorColor, "error"), t.infoColor && o(t.infoColor, "info"), `
|
|
@@ -21757,8 +21757,8 @@ function Y3(e, t, n, r) {
|
|
|
21757
21757
|
deadline: !0
|
|
21758
21758
|
});
|
|
21759
21759
|
}, u))), Ie === my && pe(), K3;
|
|
21760
|
-
}), Xe = Ce(I, 2), Le = Xe[0], Ie = Xe[1],
|
|
21761
|
-
oe.current =
|
|
21760
|
+
}), Xe = Ce(I, 2), Le = Xe[0], Ie = Xe[1], St = Ry(Ie);
|
|
21761
|
+
oe.current = St, Cy(function() {
|
|
21762
21762
|
P(t);
|
|
21763
21763
|
var Pe = B.current;
|
|
21764
21764
|
B.current = !0;
|
|
@@ -22386,7 +22386,7 @@ const b4 = (e) => {
|
|
|
22386
22386
|
style: {
|
|
22387
22387
|
width: `${E}px`
|
|
22388
22388
|
},
|
|
22389
|
-
className:
|
|
22389
|
+
className: mt([l && Er.inputAuto, l && P.key && Er.active]),
|
|
22390
22390
|
onFocus: () => {
|
|
22391
22391
|
D({
|
|
22392
22392
|
key: !0,
|
|
@@ -22435,7 +22435,7 @@ const b4 = (e) => {
|
|
|
22435
22435
|
value: !1
|
|
22436
22436
|
}), C();
|
|
22437
22437
|
},
|
|
22438
|
-
className:
|
|
22438
|
+
className: mt([Er.inputAuto, P.value && Er.active]),
|
|
22439
22439
|
placeholder: "value",
|
|
22440
22440
|
onSearch: O,
|
|
22441
22441
|
options: p,
|
|
@@ -23499,7 +23499,7 @@ class U4 extends Z.Component {
|
|
|
23499
23499
|
});
|
|
23500
23500
|
}
|
|
23501
23501
|
async componentDidMount() {
|
|
23502
|
-
var a, i, s, l;
|
|
23502
|
+
var a, i, s, l, c, u;
|
|
23503
23503
|
window.__C_ENGINE__ = this;
|
|
23504
23504
|
const n = this.props.plugins, r = new ex({
|
|
23505
23505
|
engine: this,
|
|
@@ -23509,17 +23509,20 @@ class U4 extends Z.Component {
|
|
|
23509
23509
|
i18n: Vh,
|
|
23510
23510
|
assets: this.props.assetPackagesList || []
|
|
23511
23511
|
});
|
|
23512
|
-
this.pluginManager = r, r.customPlugin("Designer", (
|
|
23512
|
+
this.pluginManager = r, r.customPlugin("Designer", (d) => (d.ctx.config.beforeInitRender = MT, d.ctx.config.customRender = AT(this.props.components || {}), d.ctx.config.components = this.props.components, d)), (i = (a = this.props).beforePluginRun) == null || i.call(a, {
|
|
23513
23513
|
pluginManager: this.pluginManager
|
|
23514
23514
|
});
|
|
23515
|
-
const o = n.map((
|
|
23516
|
-
|
|
23517
|
-
|
|
23515
|
+
const o = n.map((d) => this.pluginManager.add(d));
|
|
23516
|
+
(l = (s = this.props).onMount) == null || l.call(s, {
|
|
23517
|
+
pluginManager: this.pluginManager,
|
|
23518
|
+
engine: this
|
|
23519
|
+
}), await Promise.all(o), this.pageModel.emitter.on("onReloadPage", () => {
|
|
23520
|
+
var f;
|
|
23518
23521
|
if (!this.currentSelectNode)
|
|
23519
23522
|
return;
|
|
23520
|
-
const
|
|
23521
|
-
|
|
23522
|
-
}), (
|
|
23523
|
+
const d = this.pageModel.getNode((f = this.currentSelectNode) == null ? void 0 : f.id);
|
|
23524
|
+
d && this.updateCurrentSelectNode(d);
|
|
23525
|
+
}), (u = (c = this.props).onReady) == null || u.call(c, {
|
|
23523
23526
|
pluginManager: this.pluginManager,
|
|
23524
23527
|
engine: this
|
|
23525
23528
|
});
|
|
@@ -23533,7 +23536,8 @@ class U4 extends Z.Component {
|
|
|
23533
23536
|
}
|
|
23534
23537
|
render() {
|
|
23535
23538
|
return /* @__PURE__ */ b("div", {
|
|
23536
|
-
className: o1.engineContainer,
|
|
23539
|
+
className: mt([o1.engineContainer, this.props.className]),
|
|
23540
|
+
style: this.props.style,
|
|
23537
23541
|
children: /* @__PURE__ */ b(n1, {
|
|
23538
23542
|
ref: this.workbenchRef,
|
|
23539
23543
|
emitter: this.emitter
|
|
@@ -23541,7 +23545,7 @@ class U4 extends Z.Component {
|
|
|
23541
23545
|
});
|
|
23542
23546
|
}
|
|
23543
23547
|
}
|
|
23544
|
-
A(U4, "version", "0.0.
|
|
23548
|
+
A(U4, "version", "0.0.18");
|
|
23545
23549
|
export {
|
|
23546
23550
|
U4 as Engine,
|
|
23547
23551
|
Z4 as InnerComponentMeta,
|