lowcoder-comps 0.0.29 → 0.0.31
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/README.md +120 -0
- package/index.html +26 -0
- package/index.tsx +21 -0
- package/jest.config.js +6 -0
- package/package.json +3 -4
- package/src/__test__/allComp.test.tsx +61 -0
- package/src/app-env.d.ts +3 -0
- package/src/comps/calendarComp/calendarComp.tsx +633 -0
- package/src/comps/calendarComp/calendarConstants.tsx +1048 -0
- package/src/comps/calendarComp/errorBoundary.tsx +30 -0
- package/src/comps/chartComp/chartComp.tsx +442 -0
- package/src/comps/chartComp/chartConfigs/barChartConfig.tsx +51 -0
- package/src/comps/chartComp/chartConfigs/cartesianAxisConfig.tsx +307 -0
- package/src/comps/chartComp/chartConfigs/chartUrls.tsx +9 -0
- package/src/comps/chartComp/chartConfigs/legendConfig.tsx +55 -0
- package/src/comps/chartComp/chartConfigs/lineChartConfig.tsx +96 -0
- package/src/comps/chartComp/chartConfigs/pieChartConfig.tsx +83 -0
- package/src/comps/chartComp/chartConfigs/scatterChartConfig.tsx +62 -0
- package/src/comps/chartComp/chartConstants.tsx +299 -0
- package/src/comps/chartComp/chartPropertyView.tsx +235 -0
- package/src/comps/chartComp/chartUtils.ts +291 -0
- package/src/comps/chartComp/reactEcharts/core.tsx +194 -0
- package/src/comps/chartComp/reactEcharts/index.ts +21 -0
- package/src/comps/chartComp/reactEcharts/types.ts +76 -0
- package/src/comps/chartComp/seriesComp.tsx +119 -0
- package/src/comps/imageEditorComp/imageEditorClass.tsx +52 -0
- package/src/comps/imageEditorComp/imageEditorConstants.tsx +109 -0
- package/src/comps/imageEditorComp/index.tsx +184 -0
- package/src/comps/mermaidComp/index.tsx +44 -0
- package/src/comps/mermaidComp/mermaid.tsx +29 -0
- package/src/global.ts +1 -0
- package/src/i18n/comps/index.tsx +29 -0
- package/src/i18n/comps/locales/en.ts +163 -0
- package/src/i18n/comps/locales/enObj.tsx +198 -0
- package/src/i18n/comps/locales/index.ts +7 -0
- package/src/i18n/comps/locales/types.tsx +10 -0
- package/src/i18n/comps/locales/zh.ts +156 -0
- package/src/i18n/comps/locales/zhObj.tsx +4 -0
- package/src/index.ts +11 -0
- package/tsconfig.json +22 -0
- package/vite.config.js +10 -0
- package/2085da13.js +0 -960
- package/250691b5.js +0 -5
- package/256b619e.js +0 -92
- package/274f545c.js +0 -881
- package/289305a1.js +0 -208
- package/2eae45c2.js +0 -34
- package/2ff2c7a6.js +0 -6
- package/2ff7471d.js +0 -9
- package/335b22a2.js +0 -220
- package/38c826fe.js +0 -1127
- package/44011c1d.js +0 -818
- package/4fc06812.js +0 -64
- package/56a787cf.js +0 -915
- package/590941ff.js +0 -86
- package/6341867f.js +0 -804
- package/657fd065.js +0 -8
- package/78a5e50d.js +0 -1579
- package/820c3641.js +0 -25
- package/88b4e75a.js +0 -2967
- package/8d999722.js +0 -1102
- package/92e85b65.js +0 -65
- package/989caea2.js +0 -505
- package/99b984d1.js +0 -237
- package/9e5f02d6.js +0 -19104
- package/a40faea7.js +0 -11624
- package/abac9104.js +0 -1536
- package/af2f19b3.js +0 -819
- package/af5ee3de.js +0 -268
- package/b24707c2.js +0 -48428
- package/b68f8b69.js +0 -1276
- package/ba68ba65.js +0 -391
- package/bafb8599.js +0 -319
- package/bba60c35.js +0 -2501
- package/bd7c2a8e.js +0 -1089
- package/c71dadea.js +0 -455
- package/d05c1762.js +0 -933
- package/d073ab24.js +0 -134353
- package/d838cd10.js +0 -769
- package/dc36a6eb.js +0 -796
- package/ed143450.js +0 -1284
- package/ee8ec8f2.js +0 -2284
- package/f6755210.js +0 -1269
- package/f9637058.js +0 -16
- package/fba4c8e4.js +0 -447
- package/index.js +0 -5
package/4fc06812.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ap as o, m as i } from "./d073ab24.js";
|
|
2
|
-
const l = (s, t) => {
|
|
3
|
-
const e = s.append("rect");
|
|
4
|
-
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx !== void 0 && e.attr("rx", t.rx), t.ry !== void 0 && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
|
-
for (const r in t.attrs)
|
|
6
|
-
e.attr(r, t.attrs[r]);
|
|
7
|
-
return t.class !== void 0 && e.attr("class", t.class), e;
|
|
8
|
-
}, x = (s, t) => {
|
|
9
|
-
const e = {
|
|
10
|
-
x: t.startx,
|
|
11
|
-
y: t.starty,
|
|
12
|
-
width: t.stopx - t.startx,
|
|
13
|
-
height: t.stopy - t.starty,
|
|
14
|
-
fill: t.fill,
|
|
15
|
-
stroke: t.stroke,
|
|
16
|
-
class: "rect"
|
|
17
|
-
};
|
|
18
|
-
l(s, e).lower();
|
|
19
|
-
}, d = (s, t) => {
|
|
20
|
-
const e = t.text.replace(o, " "), r = s.append("text");
|
|
21
|
-
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
|
|
22
|
-
const n = r.append("tspan");
|
|
23
|
-
return n.attr("x", t.x + t.textMargin * 2), n.text(e), r;
|
|
24
|
-
}, h = (s, t, e, r) => {
|
|
25
|
-
const n = s.append("image");
|
|
26
|
-
n.attr("x", t), n.attr("y", e);
|
|
27
|
-
const a = i.sanitizeUrl(r);
|
|
28
|
-
n.attr("xlink:href", a);
|
|
29
|
-
}, y = (s, t, e, r) => {
|
|
30
|
-
const n = s.append("use");
|
|
31
|
-
n.attr("x", t), n.attr("y", e);
|
|
32
|
-
const a = i.sanitizeUrl(r);
|
|
33
|
-
n.attr("xlink:href", `#${a}`);
|
|
34
|
-
}, p = () => ({
|
|
35
|
-
x: 0,
|
|
36
|
-
y: 0,
|
|
37
|
-
width: 100,
|
|
38
|
-
height: 100,
|
|
39
|
-
fill: "#EDF2AE",
|
|
40
|
-
stroke: "#666",
|
|
41
|
-
anchor: "start",
|
|
42
|
-
rx: 0,
|
|
43
|
-
ry: 0
|
|
44
|
-
}), g = () => ({
|
|
45
|
-
x: 0,
|
|
46
|
-
y: 0,
|
|
47
|
-
width: 100,
|
|
48
|
-
height: 100,
|
|
49
|
-
"text-anchor": "start",
|
|
50
|
-
style: "#666",
|
|
51
|
-
textMargin: 0,
|
|
52
|
-
rx: 0,
|
|
53
|
-
ry: 0,
|
|
54
|
-
tspan: !0
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
x as a,
|
|
58
|
-
g as b,
|
|
59
|
-
y as c,
|
|
60
|
-
l as d,
|
|
61
|
-
h as e,
|
|
62
|
-
d as f,
|
|
63
|
-
p as g
|
|
64
|
-
};
|