lowcoder-comps 0.0.18 → 0.0.19
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 +27 -0
- package/index.html +26 -0
- package/index.tsx +19 -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 +443 -0
- package/src/comps/calendarComp/calendarConstants.tsx +898 -0
- package/src/comps/chartComp/chartComp.tsx +356 -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 +288 -0
- package/src/comps/chartComp/chartPropertyView.tsx +218 -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 +150 -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 +145 -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/0d763a87.js +0 -798
- package/1813144f.js +0 -940
- package/2039ece8.js +0 -91
- package/256b619e.js +0 -92
- package/2ff2c7a6.js +0 -6
- package/372dc2a7.js +0 -365
- package/3b12eb0e.js +0 -2103
- package/3c0b160f.js +0 -236
- package/401f73a2.js +0 -1602
- package/4137766d.js +0 -86
- package/4728777d.js +0 -447
- package/4881ced8.js +0 -943
- package/50cdd04e.js +0 -823
- package/5a46ac81.js +0 -1118
- package/6737b605.js +0 -985
- package/6a3117df.js +0 -159
- package/6add348f.js +0 -2456
- package/7aa956be.js +0 -326
- package/80fe4e54.js +0 -24
- package/847d7b9d.js +0 -7
- package/8c3bb161.js +0 -18619
- package/8edfc14c.js +0 -1246
- package/a96f93b1.js +0 -1032
- package/b680d6c7.js +0 -70
- package/babb4d5d.js +0 -832
- package/bfa09fb0.js +0 -607
- package/c1008714.js +0 -275
- package/ca536ab8.js +0 -117238
- package/cb157d73.js +0 -849
- package/ce50b2ed.js +0 -2679
- package/d4fa84c2.js +0 -212
- package/d7fee54a.js +0 -451
- package/e1a22e9d.js +0 -34
- package/e1cbc8ec.js +0 -46688
- package/f9637058.js +0 -16
- package/fbeabd79.js +0 -793
- package/fc3693cc.js +0 -2827
- package/index.js +0 -5
package/b680d6c7.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { n as a } from "./ca536ab8.js";
|
|
2
|
-
const l = function(e, t) {
|
|
3
|
-
const r = e.append("rect");
|
|
4
|
-
if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), r.attr("rx", t.rx), r.attr("ry", t.ry), t.attrs !== "undefined" && t.attrs !== null)
|
|
5
|
-
for (let n in t.attrs)
|
|
6
|
-
r.attr(n, t.attrs[n]);
|
|
7
|
-
return t.class !== "undefined" && r.attr("class", t.class), r;
|
|
8
|
-
}, c = function(e, t) {
|
|
9
|
-
l(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
|
-
}).lower();
|
|
18
|
-
}, x = function(e, t) {
|
|
19
|
-
const r = t.text.replace(/<br\s*\/?>/gi, " "), n = e.append("text");
|
|
20
|
-
n.attr("x", t.x), n.attr("y", t.y), n.attr("class", "legend"), n.style("text-anchor", t.anchor), t.class !== void 0 && n.attr("class", t.class);
|
|
21
|
-
const s = n.append("tspan");
|
|
22
|
-
return s.attr("x", t.x + t.textMargin * 2), s.text(r), n;
|
|
23
|
-
}, d = function(e, t, r, n) {
|
|
24
|
-
const s = e.append("image");
|
|
25
|
-
s.attr("x", t), s.attr("y", r);
|
|
26
|
-
var i = a(n);
|
|
27
|
-
s.attr("xlink:href", i);
|
|
28
|
-
}, f = function(e, t, r, n) {
|
|
29
|
-
const s = e.append("use");
|
|
30
|
-
s.attr("x", t), s.attr("y", r);
|
|
31
|
-
const i = a(n);
|
|
32
|
-
s.attr("xlink:href", "#" + i);
|
|
33
|
-
}, h = function() {
|
|
34
|
-
return {
|
|
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
|
-
};
|
|
45
|
-
}, g = function() {
|
|
46
|
-
return {
|
|
47
|
-
x: 0,
|
|
48
|
-
y: 0,
|
|
49
|
-
width: 100,
|
|
50
|
-
height: 100,
|
|
51
|
-
fill: void 0,
|
|
52
|
-
anchor: void 0,
|
|
53
|
-
"text-anchor": "start",
|
|
54
|
-
style: "#666",
|
|
55
|
-
textMargin: 0,
|
|
56
|
-
rx: 0,
|
|
57
|
-
ry: 0,
|
|
58
|
-
tspan: !0,
|
|
59
|
-
valign: void 0
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
c as a,
|
|
64
|
-
f as b,
|
|
65
|
-
d as c,
|
|
66
|
-
l as d,
|
|
67
|
-
g as e,
|
|
68
|
-
x as f,
|
|
69
|
-
h as g
|
|
70
|
-
};
|