@qnhat358/lowcoder-sdk 2.7.6-1 → 2.7.6-2
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/{D6t1lQ-Q.js → -rXUmCs3.js} +1 -1
- package/dist/{BtnK5ck6.js → 32EggSH_.js} +3 -3
- package/dist/{CIMGIwxZ.js → 4-BgnXGb.js} +1 -1
- package/dist/{DyrdRdbi.js → 619VMxzB.js} +1 -1
- package/dist/{DR6ZTkcF.js → 920oN2Xl.js} +1 -1
- package/dist/{DL-TFba3.js → B6OiMlja.js} +2 -2
- package/dist/{BcJy2qxV.js → BBop4XEx.js} +1 -1
- package/dist/{DZVuYVUA.js → BDA7e-SY.js} +1 -1
- package/dist/{BoDPosf9.js → BHEQ8epr.js} +2 -2
- package/dist/{_Uqkpoyu.js → BKqna_by.js} +1 -1
- package/dist/{D59gi1JM.js → BTIzfwsT.js} +1 -1
- package/dist/{BizzkOkY.js → BT_NryJW.js} +1 -1
- package/dist/{D4gL8Qo7.js → BUpAzEb9.js} +1 -1
- package/dist/{B2ZEho__.js → BVz8_kXd.js} +1 -1
- package/dist/{ESR3a5L8.js → BWKI3RiG.js} +2 -2
- package/dist/{AJkAVgQd.js → BWsn7XMa.js} +1 -1
- package/dist/{DXBUQ-dE.js → BYtu3B04.js} +1 -1
- package/dist/{M-SbHvHQ.js → B_MWetp1.js} +1 -1
- package/dist/{BLwxxcN_.js → BphJuC3W.js} +1 -1
- package/dist/{Ds7XXiEE.js → Bu-soIsl.js} +1 -1
- package/dist/{BZci3S_W.js → BvaHS6NJ.js} +40343 -40338
- package/dist/{DDlUTH-g.js → By9xD6By.js} +2 -2
- package/dist/{sC994B6g.js → C-VX2ly3.js} +1 -1
- package/dist/{C1iFFPN4.js → C-lrEui2.js} +1 -1
- package/dist/{CRCvBiSx.js → C0BMpids.js} +2 -2
- package/dist/{CcG6bcxb.js → C32_DDgK.js} +2 -2
- package/dist/{Ky9mS84B.js → C4G8g2ZF.js} +1 -1
- package/dist/{BXcI9Li7.js → C5YH7DcI.js} +5 -5
- package/dist/{xm5_4jzD.js → C5xODUmn.js} +1 -1
- package/dist/{24ky-F9s.js → C8B77eWd.js} +1 -1
- package/dist/{BlwZ1Be1.js → CB4mBr5L.js} +1 -1
- package/dist/{DZK2XFeY.js → CDqPmGbk.js} +1 -1
- package/dist/{BEZ4QKM5.js → CGSXupjC.js} +579 -579
- package/dist/{CmFj9YNs.js → CJhYV4iC.js} +1 -1
- package/dist/{D78qseZE.js → CL-pDSMP.js} +2 -2
- package/dist/{C1inogxg.js → CL6u-RL-.js} +4 -4
- package/dist/{mTLV87Dk.js → CSnm1iuB.js} +2 -2
- package/dist/{BLwIw-GU.js → CUIkdpjn.js} +1 -1
- package/dist/{Df731Jv0.js → CYD7Qqsh.js} +1 -1
- package/dist/{C-hX69NU.js → CYYxdeQu.js} +2 -2
- package/dist/{DV82VjM7.js → CkXYIT2o.js} +1 -1
- package/dist/{D2_O1ODY.js → CmzixHbr.js} +1 -1
- package/dist/{Dg4suV9v.js → CxITY5uj.js} +1 -1
- package/dist/{M1TvZTkN.js → CzGrBHmT.js} +2 -2
- package/dist/{BR6sWapm.js → D06xtm30.js} +3 -3
- package/dist/{Dux3GfjC.js → D2FAGVzy.js} +3 -3
- package/dist/{D4iFfL4a.js → D3KuHPxv.js} +2 -2
- package/dist/{BIBb4YyM.js → D3pVHX3V.js} +2 -2
- package/dist/{C3TIH5CQ.js → D56wrhwQ.js} +2 -2
- package/dist/{D1_MdZho.js → D9e7TGfc.js} +1 -1
- package/dist/{DGknYMnf.js → DB65qTCX.js} +1 -1
- package/dist/{B8_2oR6I.js → DCwlHrDB.js} +1 -1
- package/dist/{DLw-khe-.js → DEjAWsw2.js} +1 -1
- package/dist/{t36odpee.js → DK8nAmrJ.js} +1 -1
- package/dist/{BdRHG7zF.js → DKcIJFXY.js} +1 -1
- package/dist/{BSC1PsVy.js → DNCUsvdL.js} +2 -2
- package/dist/{s4e1rMUJ.js → DNzEqrKU.js} +1 -1
- package/dist/{BhrWY2aU.js → DOqiL-GN.js} +1 -1
- package/dist/{BAgkenow.js → DPYypGXK.js} +1 -1
- package/dist/{B8W3fqp0.js → DRgRYT7v.js} +2 -2
- package/dist/{rT3bqOLk.js → DUj9OgO9.js} +458 -458
- package/dist/{CnWF0JkF.js → DWmx_1FG.js} +2 -2
- package/dist/{BhPdajXb.js → DclMcB1o.js} +1 -1
- package/dist/{C1xf7lK5.js → Dd5kRuVj.js} +1 -1
- package/dist/{MGsZ1G-Q.js → DfR7SpXQ.js} +1 -1
- package/dist/{B1bM_TpQ.js → DhIK5VZl.js} +2 -2
- package/dist/{Cy3dhlxB.js → DhiC8lmK.js} +1 -1
- package/dist/{Dh12FXt1.js → Dwgnnq59.js} +1 -1
- package/dist/{DxKfX4Ls.js → GaDpCRxa.js} +2 -2
- package/dist/{Er0rrUt6.js → GqeTHCZT.js} +1 -1
- package/dist/{C3oaEsyp.js → Km9iTgHX.js} +1 -1
- package/dist/{BCSxhfwU.js → N_bPrWW5.js} +1 -1
- package/dist/{ChtcjfHd.js → O18udyM-.js} +1 -1
- package/dist/{BgvVy6yp.js → RDySE2JV.js} +1 -1
- package/dist/{DR7yTw7g.js → TgRYud_j.js} +1 -1
- package/dist/{CahVn5kl.js → U0xTLZ2q.js} +1 -1
- package/dist/{k0bWQDSD.js → U8gsCbR5.js} +1 -1
- package/dist/{BzZs4PcK.js → Wl3zXgKy.js} +1 -1
- package/dist/{Dfx4WbbY.js → YEcBwQmx.js} +1 -1
- package/dist/{C4Ju1Ela.js → ZSMCwxdR.js} +1 -1
- package/dist/Zk-QMAbd.js +316 -0
- package/dist/{DTIUgfD-.js → fcgWUQIZ.js} +1 -1
- package/dist/{CzZ4TzQ6.js → g9WtZ1oV.js} +1 -1
- package/dist/{DGTMhpqV.js → gxjSZGml.js} +1 -1
- package/dist/lowcoder-sdk.js +1 -1
- package/dist/{BRo2beuq.js → lsfPjJ4x.js} +1 -1
- package/dist/{BdrFSjIl.js → lwl4jU-m.js} +1 -1
- package/dist/{BAd1QNP4.js → x-S8GxFf.js} +2 -2
- package/dist/{CpvpK_nh.js → z-mKUgZc.js} +2 -2
- package/package.json +1 -1
- package/dist/BQJMiMnd.js +0 -316
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _, q as c, dG as $, dP as b, et as ee, es as te, fa as oe, F as r, P as e, ig as ne, fv as re, fd as ie, ih as T, ii as de, x as o, ij as se, ik as Ae, il as ae, im as ce, io as le, ip as fe, iq as ue, ir as he, _ as x, is as pe, it as ge, h$ as we, iu as De, iv as be, iw as ve, ix as W, Z as i, iy as Oe, iz as xe, dS as z, e6 as C, iA as Be, iB as je } from "./
|
|
2
|
-
import { r as ye } from "./
|
|
1
|
+
import { t as _, q as c, dG as $, dP as b, et as ee, es as te, fa as oe, F as r, P as e, ig as ne, fv as re, fd as ie, ih as T, ii as de, x as o, ij as se, ik as Ae, il as ae, im as ce, io as le, ip as fe, iq as ue, ir as he, _ as x, is as pe, it as ge, h$ as we, iu as De, iv as be, iw as ve, ix as W, Z as i, iy as Oe, iz as xe, dS as z, e6 as C, iA as Be, iB as je } from "./BvaHS6NJ.js";
|
|
2
|
+
import { r as ye } from "./fcgWUQIZ.js";
|
|
3
3
|
var Me = Object.defineProperty, Ne = (t, s, A) => s in t ? Me(t, s, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[s] = A, Qe = (t, s, A) => (Ne(t, s + "", A), A);
|
|
4
4
|
const Ge = i.div`
|
|
5
5
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as o, H as l, k as s, K as i, M as u, P as r, _ as c, O as w, U as g } from "./
|
|
1
|
+
import { G as o, H as l, k as s, K as i, M as u, P as r, _ as c, O as w, U as g } from "./BvaHS6NJ.js";
|
|
2
2
|
test("test string state control", () => {
|
|
3
3
|
const a = { s1: o("s1Value") }, t = { ...a, s2: o("s2Value") }, n = { s1: o("s1Value") };
|
|
4
4
|
let e = new l({ value: "3{{s1}}" });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as h, P as r, F as i, cZ as s, cV as x, Z as v, cW as w, cF as f, c_ as p, c$ as M, d0 as d, cY as T } from "./
|
|
1
|
+
import { x as h, P as r, F as i, cZ as s, cV as x, Z as v, cW as w, cF as f, c_ as p, c$ as M, d0 as d, cY as T } from "./BvaHS6NJ.js";
|
|
2
2
|
const $ = (e = 1) => [...d.range(0, 24, e).map((a) => {
|
|
3
3
|
const n = (a < 10 ? "0" : "") + a;
|
|
4
4
|
return { label: n, value: n };
|
|
@@ -9,7 +9,7 @@ const $ = (e = 1) => [...d.range(0, 24, e).map((a) => {
|
|
|
9
9
|
const n = (a < 10 ? "0" : "") + a;
|
|
10
10
|
return { label: n, value: n };
|
|
11
11
|
}), j = [{ label: "AM", value: "am" }, { label: "PM", value: "pm" }], u = async (e) => {
|
|
12
|
-
const a = (await import("./
|
|
12
|
+
const a = (await import("./BvaHS6NJ.js").then((l) => l.jK).then((l) => l.bb)).default, { disabledHours: n, disabledMinutes: y, disabledSeconds: C } = e.disabledTime();
|
|
13
13
|
a.prompt({ getContainer: () => document.querySelector(`#${T}`) || document.body, mouseWheel: !0, destroyOnClose: !0, closeOnMaskClick: !0, columns: (l) => {
|
|
14
14
|
const t = f(l.join(":"), p);
|
|
15
15
|
return [(e.use12Hours ? I : $)(e.hourStep).filter(({ label: m, value: o }) => !n().includes(Number(o) + (l[3] === "pm" ? 12 : 0))), b(e.minuteStep).filter(({ label: m, value: o }) => !y(t.hour()).includes(Number(o))), b(e.secondStep).filter(({ label: m, value: o }) => !C(t.hour(), t.minute()).includes(Number(o))), ...e.use12Hours ? [j] : []];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as d, P as n, q as o, w as h, x as m, y as v, z as C, D as f, F as g } from "./
|
|
1
|
+
import { p as d, P as n, q as o, w as h, x as m, y as v, z as C, D as f, F as g } from "./BvaHS6NJ.js";
|
|
2
2
|
var V = Object.defineProperty, _ = (t, e, r) => e in t ? V(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e, r) => (_(t, e + "", r), r);
|
|
3
3
|
const E = ({ params: t, comp: e, isCheck: r }) => {
|
|
4
4
|
const [a, s] = o.useState(), [u, p] = o.useState(e.value), c = o.useContext(h);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ah as s, ai as u, aj as n, ad as d, M as l, a9 as i, P as r, _ as m, N as c, k as o, af as a } from "./
|
|
1
|
+
import { ah as s, ai as u, aj as n, ad as d, M as l, a9 as i, P as r, _ as m, N as c, k as o, af as a } from "./BvaHS6NJ.js";
|
|
2
2
|
const p = s(function() {
|
|
3
3
|
const e = { numChild: d("num"), textChild: n("text"), booleanChild: u("status"), value: i(c, "0") };
|
|
4
4
|
return new l(e, (t) => t).setPropertyViewFn(() => r(m, {})).build();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as v, t as O } from "./
|
|
2
|
-
import { u as _, p as j } from "./
|
|
1
|
+
import { s as v, t as O } from "./BvaHS6NJ.js";
|
|
2
|
+
import { u as _, p as j } from "./D06xtm30.js";
|
|
3
3
|
function V(r, e) {
|
|
4
4
|
for (var t = 0; t < e.length; t++) {
|
|
5
5
|
const o = e[t];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as i, N as u, f as l, P as p, _ as v, cp as m, k as a, o as r, cq as h, a8 as w, cr as n } from "./
|
|
1
|
+
import { M as i, N as u, f as l, P as p, _ as v, cp as m, k as a, o as r, cq as h, a8 as w, cr as n } from "./BvaHS6NJ.js";
|
|
2
2
|
const c = new i({ v1: l, v2: u }, (e) => e).setPropertyViewFn(() => p(v, {})).build(), s = { value: { v1: "v1: {{a + 1}}", v2: "{{a + 2}}" } }, b = m(c, ["a"]);
|
|
3
3
|
describe("withParamsForMap", () => {
|
|
4
4
|
it("performance", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cE as o, G as e, cF as r, o as n, P as l } from "./
|
|
1
|
+
import { cE as o, G as e, cF as r, o as n, P as l } from "./BvaHS6NJ.js";
|
|
2
2
|
function m(t) {
|
|
3
3
|
return (s) => {
|
|
4
4
|
const a = o(), u = { ...s, globalExposing: { data: [{ name: "currentUser", value: a }, { name: "_", value: n, hideInLeftPanel: !0 }, { name: "dayjs", value: r, hideInLeftPanel: !0 }], nodes: { currentUser: e(a), _: e(n), dayjs: e(r) } } };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as h, N as r, f as l, P as g, _ as d, ak as v, k as s, al as i, am as a } from "./
|
|
1
|
+
import { M as h, N as r, f as l, P as g, _ as d, ak as v, k as s, al as i, am as a } from "./BvaHS6NJ.js";
|
|
2
2
|
const u = new h({ v1: l, v2: r }, (t) => t).setPropertyViewFn(() => g(d, {})).build(), w = { value: { v1: "v1: {{a + 1}}", v2: "{{a + 2}}" } }, m = v(u);
|
|
3
3
|
describe("withMultiContext", () => {
|
|
4
4
|
it("common", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as t, M as l, N as u, f as s, P as o, _ as n, k as r } from "./
|
|
1
|
+
import { a0 as t, M as l, N as u, f as s, P as o, _ as n, k as r } from "./BvaHS6NJ.js";
|
|
2
2
|
const c = t(new l({ value: s, defaultValue: u }, (e) => e).setPropertyViewFn(() => o(n, {})).build(), (e) => e.value ?? "", (e) => ({ defaultValue: "23", value: e }));
|
|
3
3
|
test("test change data type", () => {
|
|
4
4
|
let e = new c({ value: "ss" });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as l, dG as D, dP as y, dV as L, dW as _, dX as z, x as f, _ as T, P as e, dY as B, F as m, o as R, dZ as q, ds as F, Z as n, d_ as v, d$ as G, e0 as O, e1 as X } from "./
|
|
1
|
+
import { q as l, dG as D, dP as y, dV as L, dW as _, dX as z, x as f, _ as T, P as e, dY as B, F as m, o as R, dZ as q, ds as F, Z as n, d_ as v, d$ as G, e0 as O, e1 as X } from "./BvaHS6NJ.js";
|
|
2
2
|
const Z = n.div`
|
|
3
3
|
height: 23px;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as nt, U as rt, d1 as ot, d2 as st, a9 as it, de as ut, f as pe, d5 as at, q as K, P as lt, x as ne, _ as ct, d7 as he, d9 as me, d8 as ft, t as q, df as pt } from "./
|
|
1
|
+
import { O as nt, U as rt, d1 as ot, d2 as st, a9 as it, de as ut, f as pe, d5 as at, q as K, P as lt, x as ne, _ as ct, d7 as he, d9 as me, d8 as ft, t as q, df as pt } from "./BvaHS6NJ.js";
|
|
2
2
|
var ht = Object.freeze({ __proto__: null, get start() {
|
|
3
3
|
return At;
|
|
4
4
|
}, get ensureJQuerySupport() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as p, d1 as u, d2 as c, a9 as a, d3 as g, f as s, d4 as h, d5 as w, P as t, d6 as m, _ as o, q as i, w as d, x as C, d7 as b, d8 as y, d9 as I } from "./
|
|
1
|
+
import { O as p, d1 as u, d2 as c, a9 as a, d3 as g, f as s, d4 as h, d5 as w, P as t, d6 as m, _ as o, q as i, w as d, x as C, d7 as b, d8 as y, d9 as I } from "./BvaHS6NJ.js";
|
|
2
2
|
const V = new c({ moduleInputs: h({}), appId: s, baseUrl: a(s, "https://screenbuilder.smartcity-cloud.org/"), onEvent: g, autoHeight: a(w, "fixed") }, (e, x) => {
|
|
3
3
|
const { moduleInputs: r, appId: n, baseUrl: l } = e;
|
|
4
4
|
return n ? t(m, { appId: n, baseUrl: l, moduleInputs: r, onModuleEventTriggered: (E) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as m, k as a, G as p, T as g, ea as x, o as u, eb as w } from "./
|
|
1
|
+
import { C as m, k as a, G as p, T as g, ea as x, o as u, eb as w } from "./BvaHS6NJ.js";
|
|
2
2
|
test("test column", () => {
|
|
3
3
|
const t = { title: "name" };
|
|
4
4
|
let o = new m({ value: t });
|
package/dist/Zk-QMAbd.js
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { q as w, w as Ze, e$ as U, P as e, t as Je, o as j, fJ as Ye, dK as W, x as I, dD as O, F as u, fK as Qe, _ as ae, fL as Z, W as D, fM as ea, d$ as H, fN as aa, fO as ta, fP as na, eM as ra, eL as oa, fQ as te, fR as sa, fS as J, Z as b, fT as ne, fU as ia, fV as d, fW as re, fX as oe, fY as se, fZ as ie, f_ as ce, f$ as de, g0 as le, g1 as pe, g2 as fe, g3 as he, g4 as ge, g5 as me, g6 as we, g7 as ue, g8 as Ie, g9 as ye, ga as Re, gb as $e, gc as Fe, gd as be, ge as xe, gf as Ce, gg as ve, gh as ke, gi as Te, gj as Se, gk as je, gl as q, gm as Le, gn as Pe, go as Be, gp as Oe, gq as Ae, gr as Ee, gs as Me, gt as Ne, gu as _e, gv as Ke, gw as Ve, gx as qe, gy as De, gz as ca, gA as da, gB as la, gC as pa, gD as fa, gE as ha, gF as ga, gG as ma, gH as wa, gI as ua, gJ as Ia, gK as ya, gL as Ra, gM as $a, gN as Fa, gO as ba, gP as xa, gQ as Ca, gR as Y, gS as va, gT as ka, gU as Ta, gV as Sa, gW as ja, gX as La, gY as Pa, gZ as Ba, g_ as Oa, g$ as Aa, h0 as Ea, h1 as Ma, h2 as Na, h3 as _a, h4 as Ka, h5 as Q, h6 as Va, h7 as qa, h8 as Da, h9 as Ha, ha as Xa, hb as za, hc as Ga, hd as Ua, he as Wa, hf as Za, hg as Ja, hh as Ya, hi as Qa, hj as et, hk as at, hl as N, hm as tt, hn as nt, ho as rt, hp as ot, hq as st, hr as it, hs as ct, ht as dt, hu as lt, hv as pt, hw as ft } from "./BvaHS6NJ.js";
|
|
2
|
+
const a = w.memo(({ Icon: t }) => e(t, {})), ht = { basicChart: d, barChart: d, lineChart: d, pieChart: d, scatterChart: d, funnelChart: ge, gaugeChart: he, sankeyChart: fe, candleStickChart: pe, radarChart: le, heatmapChart: de, graphChart: ce, treeChart: ie, treemapChart: se, sunburstChart: oe, themeriverChart: re }, gt = { input: De, textArea: qe, numberInput: me, password: Ve, select: Ke, multiSelect: _e, radio: Ne, checkbox: Me, switch: Ee, slider: Ae, rangeSlider: Oe, date: Be, dateRange: Pe, time: Le, timeRange: q }, mt = { container: Te, grid: ke, columnLayout: ve, responsiveLayout: Ce, splitLayout: xe, pageLayout: be, tabbedContainer: Fe, collapsibleContainer: $e, form: Re }, wt = { image: ye, video: Ie, audio: ue, iframe: we, file: je, fileViewer: Se }, ut = { ...Object.entries(ht).reduce((t, [r, n]) => ({ ...t, [r]: e(a, { Icon: n }) }), {}), ...Object.entries(gt).reduce((t, [r, n]) => ({ ...t, [r]: e(a, { Icon: n }) }), {}), ...Object.entries(mt).reduce((t, [r, n]) => ({ ...t, [r]: e(a, { Icon: n }) }), {}), ...Object.entries(wt).reduce((t, [r, n]) => ({ ...t, [r]: e(a, { Icon: n }) }), {}), autocomplete: e(a, { Icon: ct }), button: e(a, { Icon: it }), calendar: e(a, { Icon: st }), carousel: e(a, { Icon: ot }), cascader: e(a, { Icon: rt }), comment: e(a, { Icon: nt }), controlButton: e(a, { Icon: tt }), custom: e(a, { Icon: N }), reactCustom: e(N, {}), dynamicModule: e(N, {}), microApp: e(N, {}), divider: e(a, { Icon: at }), drawer: e(a, { Icon: et }), dropdown: e(a, { Icon: Qa }), floatTextContainer: e(a, { Icon: Ya }), icon: e(a, { Icon: Ja }), imageEditor: e(a, { Icon: Za }), jsonEditor: e(a, { Icon: Wa }), jsonExplorer: e(a, { Icon: Ua }), jsonLottie: e(a, { Icon: Ga }), jsonSchemaForm: e(a, { Icon: za }), link: e(a, { Icon: Xa }), listView: e(a, { Icon: Ha }), meeting: e(a, { Icon: Da }), mention: e(a, { Icon: qa }), mermaid: e(a, { Icon: Va }), modal: e(a, { Icon: Y }), module: e(a, { Icon: Q }), moduleContainer: e(a, { Icon: Q }), navigation: e(a, { Icon: Ka }), npmPlugin: e(a, { Icon: te }), progress: e(a, { Icon: _a }), progressCircle: e(a, { Icon: Na }), qrCode: e(a, { Icon: Ma }), rating: e(a, { Icon: Ea }), richTextEditor: e(a, { Icon: Aa }), scanner: e(a, { Icon: Oa }), segmentedControl: e(a, { Icon: Ba }), sharingcomponent: e(a, { Icon: Pa }), signature: e(a, { Icon: La }), step: e(a, { Icon: ja }), table: e(a, { Icon: Sa }), text: e(a, { Icon: Ta }), timeline: e(a, { Icon: ka }), toggleButton: e(a, { Icon: va }), tour: e(a, { Icon: Y }), tree: e(a, { Icon: Ca }), treeSelect: e(a, { Icon: xa }), videocomponent: e(a, { Icon: ba }), hillchart: e(a, { Icon: Fa }), ganttChart: e(a, { Icon: $a }), kanban: e(a, { Icon: Ra }), openLayersGeoMap: e(a, { Icon: ya }), chartsGeoMap: e(a, { Icon: Ia }), bpmnEditor: e(a, { Icon: ua }), turnstileCaptcha: e(a, { Icon: wa }), pivotTable: e(a, { Icon: ma }), avatar: e(a, { Icon: ga }), avatarGroup: e(a, { Icon: ha }), colorPicker: e(a, { Icon: fa }), floatingButton: e(a, { Icon: pa }), transfer: e(a, { Icon: la }), card: e(a, { Icon: da }), timer: e(a, { Icon: q }), shape: e(a, { Icon: ca }), input: e(a, { Icon: De }), textArea: e(a, { Icon: qe }), chart: e(a, { Icon: d }), password: e(a, { Icon: Ve }), select: e(a, { Icon: Ke }), multiSelect: e(a, { Icon: _e }), radio: e(a, { Icon: Ne }), checkbox: e(a, { Icon: Me }), switch: e(a, { Icon: Ee }), slider: e(a, { Icon: Ae }), rangeSlider: e(a, { Icon: Oe }), date: e(a, { Icon: Be }), dateRange: e(a, { Icon: Pe }), time: e(a, { Icon: Le }), timeRange: e(a, { Icon: q }), file: e(a, { Icon: je }), fileViewer: e(a, { Icon: Se }), container: e(a, { Icon: Te }), grid: e(a, { Icon: ke }), columnLayout: e(a, { Icon: ve }), responsiveLayout: e(a, { Icon: Ce }), splitLayout: e(a, { Icon: xe }), pageLayout: e(a, { Icon: be }), tabbedContainer: e(a, { Icon: Fe }), collapsibleContainer: e(a, { Icon: $e }), form: e(a, { Icon: Re }), image: e(a, { Icon: ye }), video: e(a, { Icon: Ie }), audio: e(a, { Icon: ue }), iframe: e(a, { Icon: we }), numberInput: e(a, { Icon: me }), barChart: e(a, { Icon: d }), lineChart: e(a, { Icon: d }), pieChart: e(a, { Icon: d }), scatterChart: e(a, { Icon: d }), funnelChart: e(a, { Icon: ge }), gaugeChart: e(a, { Icon: he }), sankeyChart: e(a, { Icon: fe }), candleStickChart: e(a, { Icon: pe }), radarChart: e(a, { Icon: le }), heatmapChart: e(a, { Icon: de }), graphChart: e(a, { Icon: ce }), treeChart: e(a, { Icon: ie }), treemapChart: e(a, { Icon: se }), sunburstChart: e(a, { Icon: oe }), themeriverChart: e(a, { Icon: re }), basicChart: e(a, { Icon: d }), totalChart: e(a, { Icon: d }), percentageChart: e(a, { Icon: d }), tableChart: e(a, { Icon: d }), mapChart: e(a, { Icon: d }), mapComponent: e(a, { Icon: d }), mixedLineBarChart: e(a, { Icon: d }), twoLineChart: e(a, { Icon: d }), multiLineChart: e(a, { Icon: d }), tabComponent: e(a, { Icon: d }), cardComponent: e(a, { Icon: d }) }, It = b(pt)`
|
|
3
|
+
font-size: 13px;
|
|
4
|
+
color: #333;
|
|
5
|
+
.ant-tree-treenode {
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
.ant-tree-switcher {
|
|
9
|
+
width: 12px;
|
|
10
|
+
margin: 0 2px;
|
|
11
|
+
height: 26px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
&::before {
|
|
15
|
+
content: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.ant-tree-title {
|
|
19
|
+
padding-right: 6px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
.ant-tree-node-content-wrapper {
|
|
23
|
+
padding: 0;
|
|
24
|
+
display: flex;
|
|
25
|
+
min-height: 26px;
|
|
26
|
+
position: unset;
|
|
27
|
+
.ant-tree-iconEle {
|
|
28
|
+
width: 16px;
|
|
29
|
+
height: 16px;
|
|
30
|
+
margin: 0px 0px 0px 4px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
svg {
|
|
34
|
+
width: 16px;
|
|
35
|
+
height: 16px;
|
|
36
|
+
stroke: #000;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
.ant-tree-checkbox+span {
|
|
42
|
+
padding-left: 0;
|
|
43
|
+
}
|
|
44
|
+
.ant-tree-treenode {
|
|
45
|
+
padding: 0;
|
|
46
|
+
max-width: 288px;
|
|
47
|
+
&::before {
|
|
48
|
+
content: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.ant-tree-indent-unit {
|
|
52
|
+
width: 16px;
|
|
53
|
+
}
|
|
54
|
+
&.ant-tree.ant-tree-directory {
|
|
55
|
+
.ant-tree-treenode:hover::before,
|
|
56
|
+
.ant-tree-treenode-selected::before {
|
|
57
|
+
bottom: 0;
|
|
58
|
+
}
|
|
59
|
+
.ant-tree-treenode:hover {
|
|
60
|
+
&::before {
|
|
61
|
+
background-color: rgba(242, 247, 252, 0.5);
|
|
62
|
+
}
|
|
63
|
+
.ant-tree-title svg {
|
|
64
|
+
visibility: visible;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.ant-tree-treenode.ant-tree-treenode-selected::before {
|
|
68
|
+
background-color: #f2f7fc;
|
|
69
|
+
height: 26px;
|
|
70
|
+
}
|
|
71
|
+
.ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
72
|
+
color: #333;
|
|
73
|
+
}
|
|
74
|
+
.ant-tree-treenode-disabled {
|
|
75
|
+
.ant-tree-node-content-wrapper {
|
|
76
|
+
color: inherit;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`, yt = b.span`
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: space-between;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
> span {
|
|
87
|
+
span {
|
|
88
|
+
height: 26px;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
flex: 1;
|
|
93
|
+
width: 0;
|
|
94
|
+
}
|
|
95
|
+
width: 100%;
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
}
|
|
99
|
+
.no-data svg,
|
|
100
|
+
.show-data svg {
|
|
101
|
+
width: 40px;
|
|
102
|
+
padding: 0 14px;
|
|
103
|
+
height: 26px;
|
|
104
|
+
}
|
|
105
|
+
.show-data {
|
|
106
|
+
height: 26px;
|
|
107
|
+
}
|
|
108
|
+
.no-data {
|
|
109
|
+
visibility: hidden;
|
|
110
|
+
height: 26px;
|
|
111
|
+
&:hover {
|
|
112
|
+
g {
|
|
113
|
+
stroke: #222;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.show-data:hover svg{
|
|
118
|
+
path {
|
|
119
|
+
fill: #222;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`;
|
|
123
|
+
b.div`
|
|
124
|
+
width: 100%;
|
|
125
|
+
border: 1px solid #E1E3EB;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
background: #fff;
|
|
129
|
+
padding: 0px;
|
|
130
|
+
position: relative;
|
|
131
|
+
margin: 4px 0px 4px 0;
|
|
132
|
+
.simplebar-content > div {
|
|
133
|
+
> .ant-collapse > .ant-collapse-item {
|
|
134
|
+
> .ant-collapse-header {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
> .ant-collapse-content > .ant-collapse-content-box {
|
|
138
|
+
padding-left: 1px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
&:hover,
|
|
142
|
+
.ant-collapse-content-box > div > div:hover {
|
|
143
|
+
background-color: #fff;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.simplebar-track.simplebar-horizontal {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
.simplebar-content > div {
|
|
150
|
+
// padding: 0;
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
const Rt = b.div`
|
|
154
|
+
display: flex;
|
|
155
|
+
width: fit-content;
|
|
156
|
+
max-width: calc(100% - 8px);
|
|
157
|
+
`, $t = b.div`
|
|
158
|
+
padding: 8px;
|
|
159
|
+
display: flex;
|
|
160
|
+
justify-content: space-between;
|
|
161
|
+
align-items: center;
|
|
162
|
+
|
|
163
|
+
&:hover .copy-icon {
|
|
164
|
+
visibility: visible;
|
|
165
|
+
}
|
|
166
|
+
`;
|
|
167
|
+
function V(t) {
|
|
168
|
+
return typeof t == "number" ? (t + "").toString().length : typeof t == "string" || typeof t == "boolean" ? t.toString().length : 0;
|
|
169
|
+
}
|
|
170
|
+
function He(t, r = 2) {
|
|
171
|
+
const n = /* @__PURE__ */ new Set();
|
|
172
|
+
return JSON.stringify(t, (s, o) => {
|
|
173
|
+
if (typeof o == "object" && o !== null) {
|
|
174
|
+
if (n.has(o))
|
|
175
|
+
return "[Circular]";
|
|
176
|
+
n.add(o);
|
|
177
|
+
}
|
|
178
|
+
return o;
|
|
179
|
+
}, r);
|
|
180
|
+
}
|
|
181
|
+
function _(t, r, n, s) {
|
|
182
|
+
const o = typeof t == "function" ? "Function" : He(t), f = {}, v = s === !0 ? V(o) > 42 ? o.slice(0, 42) + "..." : o : V(o) > 20 ? o.slice(0, 20) + "..." : o;
|
|
183
|
+
if (f[r] = n, Array.isArray(t)) {
|
|
184
|
+
const L = {};
|
|
185
|
+
return t.forEach((P, A) => {
|
|
186
|
+
L[A] = P;
|
|
187
|
+
}), e(K, { name: r, desc: f, data: L, isArray: !0, modal: s }, r);
|
|
188
|
+
}
|
|
189
|
+
return j.isPlainObject(t) ? e(K, { name: r, desc: f, data: t, modal: s }, r) : I($t, { style: { marginLeft: "20px", borderBottom: "1px solid #f0f0f0", height: "32px", display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [I(D, { title: n, placement: "right", children: [e(ea, { label: r }), " "] }), I("div", { style: { display: "flex", wordBreak: "break-all", textAlign: "right" }, children: [e("span", { style: { marginRight: "10px" }, children: v }), V(o) > 0 && e(H, { text: t, style: { color: "#ccc", marginRight: "0px", marginTop: "4px" } })] })] }, r);
|
|
190
|
+
}
|
|
191
|
+
function Ft(t) {
|
|
192
|
+
let r = [], n = [];
|
|
193
|
+
return t.forEach((s, o) => {
|
|
194
|
+
o < 15 && r.push(s), o >= t.length - 5 && o < t.length && n.push(s);
|
|
195
|
+
}), { preArr: r, afterArr: n };
|
|
196
|
+
}
|
|
197
|
+
function bt(t) {
|
|
198
|
+
const r = Object.keys(t.data), n = Ft;
|
|
199
|
+
return e("div", { children: r.length < 30 ? r.map((s) => {
|
|
200
|
+
var o;
|
|
201
|
+
return _(t.data[s], s, (o = t.desc) == null ? void 0 : o[s], t.modal);
|
|
202
|
+
}) : I(ae, { children: [n(r).preArr.map((s) => {
|
|
203
|
+
var o;
|
|
204
|
+
return _(t.data[s], s, (o = t.desc) == null ? void 0 : o[s], t.modal);
|
|
205
|
+
}), e(dt, { num: r.length - 6 }), n(r).afterArr.map((s) => {
|
|
206
|
+
var o;
|
|
207
|
+
return _(t.data[s], s, (o = t.desc) == null ? void 0 : o[s], t.modal);
|
|
208
|
+
})] }) });
|
|
209
|
+
}
|
|
210
|
+
b(H)`
|
|
211
|
+
visibility: hidden;
|
|
212
|
+
margin-left: 8px;
|
|
213
|
+
color: #1890ff;
|
|
214
|
+
cursor: pointer;
|
|
215
|
+
`;
|
|
216
|
+
const K = Je.memo((t) => {
|
|
217
|
+
var r;
|
|
218
|
+
const { data: n = {} } = t, s = Object.keys(n).length === 1;
|
|
219
|
+
return e(sa, { isSelected: t.isSelected, isOpen: t.isOpen, config: [{ key: t.name, title: I("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [e(D, { title: (r = t.desc) == null ? void 0 : r[t.name], placement: "right", children: I(Rt, { onClick: () => t.onClick && t.onClick(t.name), children: [e(J, { style: { whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden" }, label: t.name, hasChild: Object.keys(n).length > 0 }), e(J, { style: { flexShrink: 0 }, color: "#8B8FA3", label: `${t.isArray ? "[]" : "{}"} ${u(t.isArray ? s ? "leftPanel.propTipArr" : "leftPanel.propTipsArr" : s ? "leftPanel.propTip" : "leftPanel.propTips", { num: Object.keys(n).length })}` })] }) }), Object.keys(n).length > 0 && e(H, { text: He(n), style: { color: "#aaa", marginRight: "8px" } })] }), data: bt({ data: n, desc: t.desc, modal: t.modal }) }] });
|
|
220
|
+
}), xt = b(ft)`
|
|
221
|
+
.ant-tabs-nav {
|
|
222
|
+
background-color: ${ia};
|
|
223
|
+
height: 40px;
|
|
224
|
+
padding: 0 16px;
|
|
225
|
+
margin: 0;
|
|
226
|
+
|
|
227
|
+
.ant-tabs-tab {
|
|
228
|
+
padding: 0;
|
|
229
|
+
font-weight: 500;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.ant-tabs-tabpane {
|
|
234
|
+
height: calc(100vh - ${ne} - 40px);
|
|
235
|
+
}
|
|
236
|
+
`, ee = b.div`
|
|
237
|
+
height: calc(100vh - ${ne});
|
|
238
|
+
`, vt = (t) => {
|
|
239
|
+
const { uiComp: r } = t, n = w.useContext(Ze), [s, o] = w.useState([]), [f, v] = w.useState([]), L = (i, g, E) => {
|
|
240
|
+
const { items: x, children: k } = i;
|
|
241
|
+
if (Object.keys(x).length) {
|
|
242
|
+
for (const c in x) {
|
|
243
|
+
const l = { title: x[c].children.name.getView(), type: x[c].children.compType.getView(), key: c, children: [] };
|
|
244
|
+
if (E) {
|
|
245
|
+
const y = lt(g, E);
|
|
246
|
+
y == null || y.children.push(l);
|
|
247
|
+
} else
|
|
248
|
+
g.push(l);
|
|
249
|
+
}
|
|
250
|
+
g = j.sortBy(g, [(c) => c.title]);
|
|
251
|
+
}
|
|
252
|
+
if (Object.keys(k).length)
|
|
253
|
+
for (const c in k)
|
|
254
|
+
L(k[c], g, c);
|
|
255
|
+
return g;
|
|
256
|
+
}, P = w.useCallback((i) => {
|
|
257
|
+
n.setSelectedCompNames(/* @__PURE__ */ new Set([i]), "leftPanel");
|
|
258
|
+
}, [n]), A = w.useCallback((i, g) => {
|
|
259
|
+
n.setSelectedBottomRes(g, i);
|
|
260
|
+
}, [n]), X = (i) => {
|
|
261
|
+
const g = j.sortBy(n.uiCompInfoList(), [(c) => c.name]), E = i === "components" ? n.getUIComp().getTree() : n.getHooksComp().getUITree(), x = L(E, []);
|
|
262
|
+
let k = [];
|
|
263
|
+
if (n.selectedCompNames.size === 1) {
|
|
264
|
+
const c = Object.keys(n.selectedComps())[0], l = aa(x, c);
|
|
265
|
+
if (l && l.length) {
|
|
266
|
+
let y = !1;
|
|
267
|
+
l.forEach((h) => {
|
|
268
|
+
s.includes(h) || (y = !0);
|
|
269
|
+
}), y && o(j.union(s, l));
|
|
270
|
+
}
|
|
271
|
+
k.push(c);
|
|
272
|
+
}
|
|
273
|
+
return e(It, { treeData: x, checkable: !1, selectable: !1, icon: (c) => c.type && e("div", { style: { margin: "16px 4px 0 -4px" }, children: ut[c.type] || e(te, {}) }), switcherIcon: (c) => c.expanded ? e(ra, {}) : e(oa, {}), expandedKeys: s, onExpand: (c) => o(c), onClick: (c, l) => ((y, h, C) => {
|
|
274
|
+
var m, T, S;
|
|
275
|
+
if (h.key.includes("-"))
|
|
276
|
+
return;
|
|
277
|
+
P(h.title + "");
|
|
278
|
+
const p = C.find(($) => $.name === h.title);
|
|
279
|
+
if (!((m = h.children) != null && m.length) && p && ((T = Object.keys(p.data)) != null && T.length) && h.selected) {
|
|
280
|
+
const $ = f.findIndex((R) => R.key === h.key);
|
|
281
|
+
let F = [], B = ((S = y.currentTarget) == null ? void 0 : S.offsetLeft) + 20;
|
|
282
|
+
F = $ > -1 ? f.map((R) => R.key === h.key ? { key: R.key, show: !R.show, clientX: B } : R) : [...f, { key: h.key + "", show: !0, clientX: B }], v(F);
|
|
283
|
+
}
|
|
284
|
+
})(c, l, g), selectedKeys: k, titleRender: (c) => ((l, y) => {
|
|
285
|
+
var h;
|
|
286
|
+
const C = f.find((p) => p.key === l.key), m = y.find((p) => p.name === l.title);
|
|
287
|
+
return I(yt, { children: [I("span", { children: [I("span", { children: [l.title, " "] }), m && m.data && !!((h = Object.keys(m.data)) != null && h.length) && e(D, C != null && C.show ? { placement: "right", title: u("leftPanel.collapseTip", { component: l.title }), children: e("div", { title: "", className: "show-data", onClick: (p) => {
|
|
288
|
+
p.stopPropagation();
|
|
289
|
+
const $ = f.map((F) => F.key === l.key ? { key: F.key, show: !1, clientX: void 0 } : F);
|
|
290
|
+
v($);
|
|
291
|
+
} }) } : { placement: "right", title: u("leftPanel.expandTip", { component: l.title }), children: e("div", { title: "", className: "no-data", onClick: (p) => {
|
|
292
|
+
var $;
|
|
293
|
+
p.stopPropagation();
|
|
294
|
+
const F = f.findIndex((M) => M.key === l.key);
|
|
295
|
+
let B = [];
|
|
296
|
+
const R = { key: l.key, show: !0, clientX: ($ = p.currentTarget.parentElement) == null ? void 0 : $.offsetLeft };
|
|
297
|
+
B = F > -1 ? f.map((M) => M.key === l.key ? R : M) : [...f, R], v(B);
|
|
298
|
+
}, children: e(ta, {}) }) })] }), (C == null ? void 0 : C.show) && m && e(na, { title: m.name, open: C.show, onOk: () => v([]), cancelButtonProps: { style: { display: "none" } }, closable: !1, destroyOnHidden: !0, maskClosable: !1, okText: u("modalComp.close"), children: e("div", { style: { whiteSpace: "nowrap", wordWrap: "normal", maxHeight: "calc(100vh - 400px)", overflow: "scroll" }, onClick: (p) => p.stopPropagation(), children: (T = m.data, S = m.dataDesc, e("div", { children: Object.keys(T).map((p) => _(T[p], p, S == null ? void 0 : S[p], !0)) })) }) })] }, l.key);
|
|
299
|
+
var T, S;
|
|
300
|
+
})(c, g) });
|
|
301
|
+
}, Xe = w.useMemo(() => {
|
|
302
|
+
if (!U(n.getAppType()))
|
|
303
|
+
return X("components");
|
|
304
|
+
}, [n, P, s, f]), ze = w.useMemo(() => {
|
|
305
|
+
if (!U(n.getAppType()))
|
|
306
|
+
return X("modals");
|
|
307
|
+
}, [n, P, s, f]), Ge = w.useMemo(() => n.bottomResComInfoList().map((i) => e(K, { name: i.name, desc: i.dataDesc, data: i.data, isSelected: n.selectedBottomResName === i.name, onClick: () => A(i.type, i.name) }, i.name)), [n, A]), Ue = w.useMemo(() => j.sortBy(n.hooksCompInfoList().filter((i) => Ye(i.type) === "hook"), [(i) => i.name]).map((i) => e(K, { name: i.name, desc: i.dataDesc, data: i.data, isSelected: !1, onClick: j.noop }, i.name)), [n]), z = r.getModuleLayoutComp(), G = e(W, { children: I("div", { style: { paddingBottom: 80 }, children: [e(O, { name: u("leftPanel.components"), width: 288, noMargin: !0, children: e("span", { className: Qe, children: Xe }) }), e(O, { name: u("leftPanel.modals"), width: 288, noMargin: !0, children: e("span", { children: ze }) }), e(O, { name: u("leftPanel.queries"), width: 288, noMargin: !0, children: e("span", { children: Ge }) }), e(O, { name: u("leftPanel.globals"), width: 288, noMargin: !0, children: e("span", { children: Ue }) })] }) });
|
|
308
|
+
if (!z)
|
|
309
|
+
return e(ee, { className: "cypress-left-content", children: G });
|
|
310
|
+
const We = [{ key: "state", label: e(Z, { text: u("leftPanel.stateTab") }), children: e(ae, { children: G }) }, { key: "module-setting", label: e(Z, { text: u("leftPanel.settingsTab") }), children: e(W, { children: e("div", { style: { paddingBottom: 80, paddingTop: 16 }, children: e(O, { width: 288, noMargin: !0, children: e("span", { children: z.getConfigView() }) }) }) }) }];
|
|
311
|
+
return e(ee, { className: "cypress-left-content", children: e(xt, { defaultActiveKey: "module-setting", items: We }) });
|
|
312
|
+
};
|
|
313
|
+
export {
|
|
314
|
+
vt as LeftContent,
|
|
315
|
+
_ as default
|
|
316
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, ic as u, id as l, F as t, ie as m } from "./
|
|
1
|
+
import { o as s, ic as u, id as l, F as t, ie as m } from "./BvaHS6NJ.js";
|
|
2
2
|
const i = [{ name: t("shortcut.global"), shortcuts: [{ name: t("shortcut.toggleShortcutList"), keys: [{ key: "?" }], target: "global", action: "toggleShortcutList" }] }, { name: t("shortcut.editor"), shortcuts: [{ name: t("shortcut.toggleLeftPanel"), keys: [{ mod: !0, key: "B" }], target: "global", action: "toggleLeftPanel" }, { name: t("shortcut.toggleBottomPanel"), keys: [{ mod: !0, key: "J" }], target: "global", action: "toggleBottomPanel" }, { name: t("shortcut.toggleRightPanel"), keys: [{ mod: !0, key: "U" }], target: "global", action: "toggleRightPanel" }, { name: t("shortcut.toggleAllPanels"), keys: [{ mod: !0, key: "." }], target: "global", action: "toggleAllPanels" }, { name: t("shortcut.preview"), keys: [{ mod: !0, shift: !0, key: "P" }], target: "global", action: "preview" }, { name: t("shortcut.undo"), keys: [{ mod: !0, key: "Z" }], target: "global", action: "undo" }, { name: t("shortcut.redo"), keys: [{ mod: !0, shift: !0, key: "Z" }], target: "global", action: "redo" }, { name: t("shortcut.showGrid"), keys: [{ mod: !0 }] }] }, { name: t("shortcut.component"), shortcuts: [{ name: t("shortcut.multiSelect"), keys: [{ mod: !0, click: !0 }] }, { name: t("shortcut.selectAll"), keys: [{ mod: !0, key: "A" }], target: "editor", action: "selectAllComps" }, { name: t("shortcut.copy"), keys: [{ mod: !0, key: "C" }], target: "editor", action: "copyComps" }, { name: t("shortcut.cut"), keys: [{ mod: !0, key: "X" }], target: "editor", action: "cutComps" }, { name: t("shortcut.paste"), keys: [{ mod: !0, key: "V" }], target: "editor", action: "pasteComps" }, { name: t("shortcut.move"), keys: [{ directionKey: !0 }] }, { name: t("shortcut.zoom"), keys: [{ mod: !0, directionKey: !0 }] }, { name: t("shortcut.delete"), keys: [{ key: "Delete" }, { key: "Backspace" }], target: "global", action: "deleteComps" }, { name: t("shortcut.deSelect"), keys: [{ key: "Escape" }], target: "editor", action: "deselectComps" }] }, { name: t("shortcut.queryEditor"), shortcuts: [{ name: t("shortcut.excuteQuery"), keys: [{ mod: !0, key: "Enter", notFilterInput: !0 }], target: "global", action: "executeQuery" }] }, { name: t("shortcut.editBox"), shortcuts: [{ name: t("shortcut.formatting"), keys: [{ mod: !0, key: "L" }] }, { name: t("shortcut.openInLeftPanel"), keys: [{ mod: !0, click: !0 }] }] }], g = s.mapValues(s.groupBy(i.flatMap((e) => e.shortcuts).filter((e) => e.target && e.action), (e) => e.target), (e) => Object.fromEntries(e.flatMap((r) => r.keys.map((o) => [m(o), [r.action, o]]))));
|
|
3
3
|
function k(e, r) {
|
|
4
4
|
const o = g[r], a = u(e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as e } from "./
|
|
1
|
+
import { s as e } from "./BvaHS6NJ.js";
|
|
2
2
|
const o = e(function() {
|
|
3
3
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
4
4
|
}), r = Object.freeze(Object.defineProperty({ __proto__: null, default: o }, Symbol.toStringTag, { value: "Module" }));
|
package/dist/lowcoder-sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./BvaHS6NJ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as li, t as Ie, q as Fi, eh as ke, P as As, ei as Le, ej as Ke, ek as oi, el as ai } from "./
|
|
1
|
+
import { s as li, t as Ie, q as Fi, eh as ke, P as As, ei as Le, ej as Ke, ek as oi, el as ai } from "./BvaHS6NJ.js";
|
|
2
2
|
var $i = Object.defineProperty, zi = (i, e, t) => e in i ? $i(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, v = (i, e, t) => (zi(i, typeof e != "symbol" ? e + "" : e, t), t), Me, Ut, jt, dt, ft, gt, pt, mt, bt, Ye, yt, Qe, E = ((i) => (i[i.TYPE = 3] = "TYPE", i[i.LEVEL = 12] = "LEVEL", i[i.ATTRIBUTE = 13] = "ATTRIBUTE", i[i.BLOT = 14] = "BLOT", i[i.INLINE = 7] = "INLINE", i[i.BLOCK = 11] = "BLOCK", i[i.BLOCK_BLOT = 10] = "BLOCK_BLOT", i[i.INLINE_BLOT = 6] = "INLINE_BLOT", i[i.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", i[i.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", i[i.ANY = 15] = "ANY", i))(E || {});
|
|
3
3
|
class be {
|
|
4
4
|
constructor(e, t, s = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as a, w as g, cQ as u, cR as C, P as t, cS as b, o as s, Z as l } from "./
|
|
1
|
+
import { q as a, w as g, cQ as u, cR as C, P as t, cS as b, o as s, Z as l } from "./BvaHS6NJ.js";
|
|
2
2
|
const f = l.div`
|
|
3
3
|
background-color: ${(e) => e.$bgColor};
|
|
4
4
|
max-width: ${(e) => e.$maxWidth}px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ge, q as g, P as o, F as r, eZ as xe, e_ as ve, e$ as ye, f0 as be, f1 as we, w as Ce, _, f2 as Te, f3 as Ie, ds as j, x as $, dY as $e, dK as ae, Z as w, f4 as z, u as Se, d0 as q, dD as ke, f5 as Ne, f6 as Q, f7 as R, f8 as De, f9 as Pe, dP as P, fa as Le, d_ as X, fb as te, dG as B, fc as Fe, es as ne, fd as E, fe as Ee, ef as O, ff as U, dL as re, fg as Ae, fh as Me, fi as Oe, et as _e, fj as Re, fk as H, dC as Be, eQ as ze, fl as je, fm as Ue, eB as ie, eL as Ve, eM as Ge, fn as He, dN as le, D as se, dA as qe, fo as Ke, fp as W, fq as We, fr as ee, fs as Ye, ft as Ze, fu as Je, fv as Qe, o as Xe, fw as de, fx as eo, fy as ce, fz as oo, fA as to, fB as ao, eC as no, eN as ro, eO as io, fC as lo, eK as pe, fD as so, fE as co, fF as po, fG as mo, e7 as uo, fH as ho, fI as fo, dB as go } from "./
|
|
2
|
-
import { y as xo } from "./
|
|
1
|
+
import { t as ge, q as g, P as o, F as r, eZ as xe, e_ as ve, e$ as ye, f0 as be, f1 as we, w as Ce, _, f2 as Te, f3 as Ie, ds as j, x as $, dY as $e, dK as ae, Z as w, f4 as z, u as Se, d0 as q, dD as ke, f5 as Ne, f6 as Q, f7 as R, f8 as De, f9 as Pe, dP as P, fa as Le, d_ as X, fb as te, dG as B, fc as Fe, es as ne, fd as E, fe as Ee, ef as O, ff as U, dL as re, fg as Ae, fh as Me, fi as Oe, et as _e, fj as Re, fk as H, dC as Be, eQ as ze, fl as je, fm as Ue, eB as ie, eL as Ve, eM as Ge, fn as He, dN as le, D as se, dA as qe, fo as Ke, fp as W, fq as We, fr as ee, fs as Ye, ft as Ze, fu as Je, fv as Qe, o as Xe, fw as de, fx as eo, fy as ce, fz as oo, fA as to, fB as ao, eC as no, eN as ro, eO as io, fC as lo, eK as pe, fD as so, fE as co, fF as po, fG as mo, e7 as uo, fH as ho, fI as fo, dB as go } from "./BvaHS6NJ.js";
|
|
2
|
+
import { y as xo } from "./DPYypGXK.js";
|
|
3
3
|
const vo = (e) => o(ae, { children: o("div", { style: { paddingBottom: "10px" }, children: e.children }) });
|
|
4
4
|
function yo(e) {
|
|
5
5
|
const { uiComp: t } = e, i = g.useContext(Ce), a = i.selectedCompNames, x = i.selectedComp(), m = t == null ? void 0 : t.getModuleLayoutComp();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as k, t as I } from "./
|
|
2
|
-
import { u as R, p as U } from "./
|
|
1
|
+
import { s as k, t as I } from "./BvaHS6NJ.js";
|
|
2
|
+
import { u as R, p as U } from "./D06xtm30.js";
|
|
3
3
|
function V(a, t) {
|
|
4
4
|
for (var e = 0; e < t.length; e++) {
|
|
5
5
|
const o = t[e];
|