@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
package/dist/BQJMiMnd.js
DELETED
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import { q as m, 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 A, 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 ra, eM as na, eL as oa, fQ as te, fR as sa, fS as J, Z as b, fT as re, fU as ia, fV as g, fW as ne, fX as oe, fY as se, fZ as ie, f_ as de, f$ as ce, g0 as le, g1 as pe, g2 as fe, g3 as he, g4 as ge, g5 as we, g6 as me, 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 ve, gg as Ce, gh as ke, gi as Te, gj as Se, gk as je, gl as q, gm as Pe, gn as Le, go as Oe, gp as Ae, gq as Be, 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 da, gA as ca, gB as la, gC as pa, gD as fa, gE as ha, gF as ga, gG as wa, gH as ma, 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 va, gR as Y, gS as Ca, gT as ka, gU as Ta, gV as Sa, gW as ja, gX as Pa, gY as La, gZ as Oa, g_ as Aa, g$ as Ba, 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 rt, ho as nt, hp as ot, hq as st, hr as it, hs as dt, ht as ct, hu as lt, hv as pt, hw as ft } from "./BZci3S_W.js";
|
|
2
|
-
const a = m.memo(({ Icon: t }) => e(t, {})), ht = { basicChart: g, barChart: g, lineChart: g, pieChart: g, scatterChart: g, funnelChart: ge, gaugeChart: he, sankeyChart: fe, candleStickChart: pe, radarChart: le, heatmapChart: ce, graphChart: de, treeChart: ie, treemapChart: se, sunburstChart: oe, themeriverChart: ne }, gt = { input: De, textArea: qe, numberInput: we, password: Ve, select: Ke, multiSelect: _e, radio: Ne, checkbox: Me, switch: Ee, slider: Be, rangeSlider: Ae, date: Oe, dateRange: Le, time: Pe, timeRange: q }, wt = { container: Te, grid: ke, columnLayout: Ce, responsiveLayout: ve, splitLayout: xe, pageLayout: be, tabbedContainer: Fe, collapsibleContainer: $e, form: Re }, mt = { image: ye, video: Ie, audio: ue, iframe: me, file: je, fileViewer: Se }, ut = { ...Object.entries(ht).reduce((t, [n, r]) => ({ ...t, [n]: e(a, { Icon: r }) }), {}), ...Object.entries(gt).reduce((t, [n, r]) => ({ ...t, [n]: e(a, { Icon: r }) }), {}), ...Object.entries(wt).reduce((t, [n, r]) => ({ ...t, [n]: e(a, { Icon: r }) }), {}), ...Object.entries(mt).reduce((t, [n, r]) => ({ ...t, [n]: e(a, { Icon: r }) }), {}), autocomplete: e(a, { Icon: dt }), button: e(a, { Icon: it }), calendar: e(a, { Icon: st }), carousel: e(a, { Icon: ot }), cascader: e(a, { Icon: nt }), comment: e(a, { Icon: rt }), 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: Ba }), scanner: e(a, { Icon: Aa }), segmentedControl: e(a, { Icon: Oa }), sharingcomponent: e(a, { Icon: La }), signature: e(a, { Icon: Pa }), step: e(a, { Icon: ja }), table: e(a, { Icon: Sa }), text: e(a, { Icon: Ta }), timeline: e(a, { Icon: ka }), toggleButton: e(a, { Icon: Ca }), tour: e(a, { Icon: Y }), tree: e(a, { Icon: va }), 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: ma }), pivotTable: e(a, { Icon: wa }), 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: ca }), timer: e(a, { Icon: q }), shape: e(a, { Icon: da }), input: e(a, { Icon: De }), textArea: e(a, { Icon: qe }), chart: e(a, { Icon: g }), 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: Be }), rangeSlider: e(a, { Icon: Ae }), date: e(a, { Icon: Oe }), dateRange: e(a, { Icon: Le }), time: e(a, { Icon: Pe }), 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: Ce }), responsiveLayout: e(a, { Icon: ve }), 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: me }), numberInput: e(a, { Icon: we }), barChart: e(a, { Icon: g }), lineChart: e(a, { Icon: g }), pieChart: e(a, { Icon: g }), scatterChart: e(a, { Icon: g }), 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: ce }), graphChart: e(a, { Icon: de }), treeChart: e(a, { Icon: ie }), treemapChart: e(a, { Icon: se }), sunburstChart: e(a, { Icon: oe }), themeriverChart: e(a, { Icon: ne }), basicChart: e(a, { Icon: g }) }, 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, n = 2) {
|
|
171
|
-
const r = /* @__PURE__ */ new Set();
|
|
172
|
-
return JSON.stringify(t, (s, o) => {
|
|
173
|
-
if (typeof o == "object" && o !== null) {
|
|
174
|
-
if (r.has(o))
|
|
175
|
-
return "[Circular]";
|
|
176
|
-
r.add(o);
|
|
177
|
-
}
|
|
178
|
-
return o;
|
|
179
|
-
}, n);
|
|
180
|
-
}
|
|
181
|
-
function _(t, n, r, s) {
|
|
182
|
-
const o = typeof t == "function" ? "Function" : He(t), p = {}, C = s === !0 ? V(o) > 42 ? o.slice(0, 42) + "..." : o : V(o) > 20 ? o.slice(0, 20) + "..." : o;
|
|
183
|
-
if (p[n] = r, Array.isArray(t)) {
|
|
184
|
-
const P = {};
|
|
185
|
-
return t.forEach((L, B) => {
|
|
186
|
-
P[B] = L;
|
|
187
|
-
}), e(K, { name: n, desc: p, data: P, isArray: !0, modal: s }, n);
|
|
188
|
-
}
|
|
189
|
-
return j.isPlainObject(t) ? e(K, { name: n, desc: p, data: t, modal: s }, n) : I($t, { style: { marginLeft: "20px", borderBottom: "1px solid #f0f0f0", height: "32px", display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [I(D, { title: r, placement: "right", children: [e(ea, { label: n }), " "] }), I("div", { style: { display: "flex", wordBreak: "break-all", textAlign: "right" }, children: [e("span", { style: { marginRight: "10px" }, children: C }), V(o) > 0 && e(H, { text: t, style: { color: "#ccc", marginRight: "0px", marginTop: "4px" } })] })] }, n);
|
|
190
|
-
}
|
|
191
|
-
function Ft(t) {
|
|
192
|
-
let n = [], r = [];
|
|
193
|
-
return t.forEach((s, o) => {
|
|
194
|
-
o < 15 && n.push(s), o >= t.length - 5 && o < t.length && r.push(s);
|
|
195
|
-
}), { preArr: n, afterArr: r };
|
|
196
|
-
}
|
|
197
|
-
function bt(t) {
|
|
198
|
-
const n = Object.keys(t.data), r = Ft;
|
|
199
|
-
return e("div", { children: n.length < 30 ? n.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: [r(n).preArr.map((s) => {
|
|
203
|
-
var o;
|
|
204
|
-
return _(t.data[s], s, (o = t.desc) == null ? void 0 : o[s], t.modal);
|
|
205
|
-
}), e(ct, { num: n.length - 6 }), r(n).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 n;
|
|
218
|
-
const { data: r = {} } = t, s = Object.keys(r).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: (n = t.desc) == null ? void 0 : n[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(r).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(r).length })}` })] }) }), Object.keys(r).length > 0 && e(H, { text: He(r), style: { color: "#aaa", marginRight: "8px" } })] }), data: bt({ data: r, 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 - ${re} - 40px);
|
|
235
|
-
}
|
|
236
|
-
`, ee = b.div`
|
|
237
|
-
height: calc(100vh - ${re});
|
|
238
|
-
`, Ct = (t) => {
|
|
239
|
-
const { uiComp: n } = t, r = m.useContext(Ze), [s, o] = m.useState([]), [p, C] = m.useState([]), P = (i, h, E) => {
|
|
240
|
-
const { items: x, children: k } = i;
|
|
241
|
-
if (Object.keys(x).length) {
|
|
242
|
-
for (const d in x) {
|
|
243
|
-
const c = { title: x[d].children.name.getView(), type: x[d].children.compType.getView(), key: d, children: [] };
|
|
244
|
-
if (E) {
|
|
245
|
-
const y = lt(h, E);
|
|
246
|
-
y == null || y.children.push(c);
|
|
247
|
-
} else
|
|
248
|
-
h.push(c);
|
|
249
|
-
}
|
|
250
|
-
h = j.sortBy(h, [(d) => d.title]);
|
|
251
|
-
}
|
|
252
|
-
if (Object.keys(k).length)
|
|
253
|
-
for (const d in k)
|
|
254
|
-
P(k[d], h, d);
|
|
255
|
-
return h;
|
|
256
|
-
}, L = m.useCallback((i) => {
|
|
257
|
-
r.setSelectedCompNames(/* @__PURE__ */ new Set([i]), "leftPanel");
|
|
258
|
-
}, [r]), B = m.useCallback((i, h) => {
|
|
259
|
-
r.setSelectedBottomRes(h, i);
|
|
260
|
-
}, [r]), X = (i) => {
|
|
261
|
-
const h = j.sortBy(r.uiCompInfoList(), [(d) => d.name]), E = i === "components" ? r.getUIComp().getTree() : r.getHooksComp().getUITree(), x = P(E, []);
|
|
262
|
-
let k = [];
|
|
263
|
-
if (r.selectedCompNames.size === 1) {
|
|
264
|
-
const d = Object.keys(r.selectedComps())[0], c = aa(x, d);
|
|
265
|
-
if (c && c.length) {
|
|
266
|
-
let y = !1;
|
|
267
|
-
c.forEach((f) => {
|
|
268
|
-
s.includes(f) || (y = !0);
|
|
269
|
-
}), y && o(j.union(s, c));
|
|
270
|
-
}
|
|
271
|
-
k.push(d);
|
|
272
|
-
}
|
|
273
|
-
return e(It, { treeData: x, checkable: !1, selectable: !1, icon: (d) => d.type && e("div", { style: { margin: "16px 4px 0 -4px" }, children: ut[d.type] || e(te, {}) }), switcherIcon: (d) => d.expanded ? e(na, {}) : e(oa, {}), expandedKeys: s, onExpand: (d) => o(d), onClick: (d, c) => ((y, f, v) => {
|
|
274
|
-
var w, T, S;
|
|
275
|
-
if (f.key.includes("-"))
|
|
276
|
-
return;
|
|
277
|
-
L(f.title + "");
|
|
278
|
-
const l = v.find(($) => $.name === f.title);
|
|
279
|
-
if (!((w = f.children) != null && w.length) && l && ((T = Object.keys(l.data)) != null && T.length) && f.selected) {
|
|
280
|
-
const $ = p.findIndex((R) => R.key === f.key);
|
|
281
|
-
let F = [], O = ((S = y.currentTarget) == null ? void 0 : S.offsetLeft) + 20;
|
|
282
|
-
F = $ > -1 ? p.map((R) => R.key === f.key ? { key: R.key, show: !R.show, clientX: O } : R) : [...p, { key: f.key + "", show: !0, clientX: O }], C(F);
|
|
283
|
-
}
|
|
284
|
-
})(d, c, h), selectedKeys: k, titleRender: (d) => ((c, y) => {
|
|
285
|
-
var f;
|
|
286
|
-
const v = p.find((l) => l.key === c.key), w = y.find((l) => l.name === c.title);
|
|
287
|
-
return I(yt, { children: [I("span", { children: [I("span", { children: [c.title, " "] }), w && w.data && !!((f = Object.keys(w.data)) != null && f.length) && e(D, v != null && v.show ? { placement: "right", title: u("leftPanel.collapseTip", { component: c.title }), children: e("div", { title: "", className: "show-data", onClick: (l) => {
|
|
288
|
-
l.stopPropagation();
|
|
289
|
-
const $ = p.map((F) => F.key === c.key ? { key: F.key, show: !1, clientX: void 0 } : F);
|
|
290
|
-
C($);
|
|
291
|
-
} }) } : { placement: "right", title: u("leftPanel.expandTip", { component: c.title }), children: e("div", { title: "", className: "no-data", onClick: (l) => {
|
|
292
|
-
var $;
|
|
293
|
-
l.stopPropagation();
|
|
294
|
-
const F = p.findIndex((M) => M.key === c.key);
|
|
295
|
-
let O = [];
|
|
296
|
-
const R = { key: c.key, show: !0, clientX: ($ = l.currentTarget.parentElement) == null ? void 0 : $.offsetLeft };
|
|
297
|
-
O = F > -1 ? p.map((M) => M.key === c.key ? R : M) : [...p, R], C(O);
|
|
298
|
-
}, children: e(ta, {}) }) })] }), (v == null ? void 0 : v.show) && w && e(ra, { title: w.name, open: v.show, onOk: () => C([]), 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: (l) => l.stopPropagation(), children: (T = w.data, S = w.dataDesc, e("div", { children: Object.keys(T).map((l) => _(T[l], l, S == null ? void 0 : S[l], !0)) })) }) })] }, c.key);
|
|
299
|
-
var T, S;
|
|
300
|
-
})(d, h) });
|
|
301
|
-
}, Xe = m.useMemo(() => {
|
|
302
|
-
if (!U(r.getAppType()))
|
|
303
|
-
return X("components");
|
|
304
|
-
}, [r, L, s, p]), ze = m.useMemo(() => {
|
|
305
|
-
if (!U(r.getAppType()))
|
|
306
|
-
return X("modals");
|
|
307
|
-
}, [r, L, s, p]), Ge = m.useMemo(() => r.bottomResComInfoList().map((i) => e(K, { name: i.name, desc: i.dataDesc, data: i.data, isSelected: r.selectedBottomResName === i.name, onClick: () => B(i.type, i.name) }, i.name)), [r, B]), Ue = m.useMemo(() => j.sortBy(r.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)), [r]), z = n.getModuleLayoutComp(), G = e(W, { children: I("div", { style: { paddingBottom: 80 }, children: [e(A, { name: u("leftPanel.components"), width: 288, noMargin: !0, children: e("span", { className: Qe, children: Xe }) }), e(A, { name: u("leftPanel.modals"), width: 288, noMargin: !0, children: e("span", { children: ze }) }), e(A, { name: u("leftPanel.queries"), width: 288, noMargin: !0, children: e("span", { children: Ge }) }), e(A, { 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(A, { 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
|
-
Ct as LeftContent,
|
|
315
|
-
_ as default
|
|
316
|
-
};
|