File tree 14 files changed +88
-5
lines changed
comps/chartComp/reactEcharts
lowcoder-design/src/icons
14 files changed +88
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lowcoder-comps" ,
3
- "version" : " 0.0.13 " ,
3
+ "version" : " 0.0.15 " ,
4
4
"type" : " module" ,
5
5
"license" : " MIT" ,
6
6
"dependencies" : {
15
15
"@types/react-dom" : " 17" ,
16
16
"big.js" : " ^6.2.1" ,
17
17
"echarts-extension-gmap" : " ^1.6.0" ,
18
+ "echarts-wordcloud" : " ^2.1.0" ,
18
19
"lowcoder-cli" : " workspace:^" ,
19
20
"lowcoder-sdk" : " workspace:^" ,
20
21
"mermaid" : " ^10.2.4" ,
29
30
"name" : " Chart" ,
30
31
"icon" : " ./icons/icon-chart.svg" ,
31
32
"layoutInfo" : {
32
- "w" : 11 ,
33
- "h" : 35
33
+ "w" : 15 ,
34
+ "h" : 40
34
35
}
35
36
},
36
37
"imageEditor" : {
37
38
"name" : " Image Editor" ,
38
39
"icon" : " ./icons/icon-chart.svg" ,
39
40
"layoutInfo" : {
40
41
"w" : 15 ,
41
- "h" : 60
42
+ "h" : 40
42
43
}
43
44
},
44
45
"calendar" : {
48
49
"w" : 15 ,
49
50
"h" : 60
50
51
}
52
+ },
53
+ "mermaid" : {
54
+ "name" : " Mermaid" ,
55
+ "icon" : " ./icons/mermaidchart.svg" ,
56
+ "layoutInfo" : {
57
+ "w" : 15 ,
58
+ "h" : 40
59
+ }
51
60
}
52
61
}
53
62
},
Original file line number Diff line number Diff line change 1
1
import * as echarts from "echarts" ;
2
+ import "echarts-wordcloud" ;
2
3
import { EChartsReactProps , EChartsInstance , EChartsOptionWithMap } from "./types" ;
3
4
import EChartsReactCore from "./core" ;
4
5
Original file line number Diff line number Diff line change 1
1
import { ChartCompWithDefault } from "./comps/chartComp/chartComp" ;
2
2
import { ImageEditorComp } from "./comps/imageEditorComp/index" ;
3
3
import { CalendarComp } from "./comps/calendarComp/calendarComp" ;
4
+ import { MermaidComp } from "comps/mermaidComp" ;
4
5
5
6
export default {
6
7
chart : ChartCompWithDefault ,
7
8
imageEditor : ImageEditorComp ,
8
9
calendar : CalendarComp ,
10
+ mermaid : MermaidComp ,
9
11
} ;
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ export { ReactComponent as GraphqlIcon } from "./icon-query-Graphql.svg";
224
224
export { ReactComponent as SnowflakeIcon } from "./icon-query-snowflake.svg" ;
225
225
export { ReactComponent as MariaDBIcon } from "./icon-query-MariaDB.svg" ;
226
226
export { ReactComponent as imageEditorIcon } from "./icon-insert-imageEditor.svg" ;
227
+ export { ReactComponent as MermaidIcon } from "./icon-mermaid.svg" ;
227
228
export { ReactComponent as HomeSettingsIcon } from "./icon-home-settings.svg" ;
228
229
export { ReactComponent as HomeSettingsActiveIcon } from "./icon-home-settings-active.svg" ;
229
230
export { ReactComponent as HelpGithubIcon } from "./icon-help-github.svg" ;
Original file line number Diff line number Diff line change 49
49
"copy-to-clipboard" : " ^3.3.3" ,
50
50
"core-js" : " ^3.25.2" ,
51
51
"echarts" : " ^5.4.2" ,
52
+ "echarts-wordcloud" : " ^2.1.0" ,
52
53
"eslint4b-prebuilt-2" : " ^7.32.0" ,
53
54
"file-saver" : " ^2.0.5" ,
54
55
"github-markdown-css" : " ^5.1.0" ,
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ import {
100
100
MentionIcon ,
101
101
AutoCompleteCompIcon ,
102
102
ResponsiveLayoutCompIcon ,
103
+ MermaidIcon ,
103
104
} from "lowcoder-design" ;
104
105
105
106
import { defaultFormData , FormComp } from "./comps/formComp/formComp" ;
@@ -841,6 +842,19 @@ const uiCompMap: Registry = {
841
842
h : 60 ,
842
843
} ,
843
844
} ,
845
+ mermaid : {
846
+ name : trans ( "uiComp.mermaidCompName" ) ,
847
+ enName : "Mermaid Charts" ,
848
+ comp : remoteComp ( { ...builtInRemoteComps , compName : "mermaid" } ) ,
849
+ description : trans ( "uiComp.mermaidCompDesc" ) ,
850
+ categories : [ "dataDisplay" ] ,
851
+ icon : MermaidIcon ,
852
+ keywords : trans ( "uiComp.mermaidCompKeywords" ) ,
853
+ layoutInfo : {
854
+ w : 15 ,
855
+ h : 60 ,
856
+ } ,
857
+ } ,
844
858
scanner : {
845
859
name : trans ( "uiComp.scannerCompName" ) ,
846
860
enName : "Scanner" ,
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ export type UICompType =
89
89
| "progress"
90
90
| "progressCircle"
91
91
| "chart"
92
+ | "mermaid" //Added By Falk Wolsky
92
93
| "fileViewer"
93
94
| "divider"
94
95
| "qrCode"
Original file line number Diff line number Diff line change @@ -870,6 +870,9 @@ export const en = {
870
870
imageEditorCompName : "Image Editor" ,
871
871
imageEditorCompDesc : "Image Editor component" ,
872
872
imageEditorCompKeywords : "" ,
873
+ mermaidCompName : "Mermaid Charts" ,
874
+ mermaidCompDesc : "Render Mermaid Charts based on text" ,
875
+ mermaidCompKeywords : "" ,
873
876
calendarCompName : "Calendar" ,
874
877
calendarCompDesc : "Calendar component" ,
875
878
calendarCompKeywords : "" ,
Original file line number Diff line number Diff line change @@ -820,6 +820,9 @@ uiComp: {
820
820
imageEditorCompName : "图片编辑器" ,
821
821
imageEditorCompDesc : "图片编辑器组件" ,
822
822
imageEditorCompKeywords : "" ,
823
+ mermaidCompName : "美人鱼图表" ,
824
+ mermaidCompDesc : "根据文本渲染美人鱼图表" ,
825
+ mermaidCompKeywords : "" ,
823
826
calendarCompName : "日历" ,
824
827
calendarCompDesc : "日历组件" ,
825
828
calendarCompKeywords : "" ,
Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ export const CompStateIcon: {
85
85
jsonSchemaForm : < LeftJsonEditor /> ,
86
86
container : < LeftContainer /> ,
87
87
meeting : < LeftMeeting /> ,
88
+ mermaid : < LeftChart /> ,
88
89
videocomponent : < LeftMeeting /> ,
89
- controlButton : < LeftMeeting /> ,
90
+ controlButton : < LeftButton /> ,
90
91
tabbedContainer : < LeftContainer /> ,
91
92
modal : < LeftModal /> ,
92
93
listView : < LeftListView /> ,
Original file line number Diff line number Diff line change @@ -7776,6 +7776,15 @@ __metadata:
7776
7776
languageName: node
7777
7777
linkType: hard
7778
7778
7779
+ "echarts-wordcloud@npm:^2.1.0":
7780
+ version: 2.1.0
7781
+ resolution: "echarts-wordcloud@npm:2.1.0"
7782
+ peerDependencies:
7783
+ echarts: ^5.0.1
7784
+ checksum: d6e8996bb1267fbaa3fde23a121918a662a46ddd9ccd00ba0829aa4bd95b1a7b5cab64e3f4fe7241d605caaba7ad7b8e68eeaa9e1ad4adbf43cc0551deb14e33
7785
+ languageName: node
7786
+ linkType: hard
7787
+
7779
7788
"echarts@npm:^5.4.2":
7780
7789
version: 5.4.2
7781
7790
resolution: "echarts@npm:5.4.2"
@@ -11818,6 +11827,7 @@ __metadata:
11818
11827
"@types/react-dom": 17
11819
11828
big.js: ^6.2.1
11820
11829
echarts-extension-gmap: ^1.6.0
11830
+ echarts-wordcloud: ^2.1.0
11821
11831
jest: 29.3.0
11822
11832
lowcoder-cli: "workspace:^"
11823
11833
lowcoder-sdk: "workspace:^"
@@ -11990,6 +12000,7 @@ __metadata:
11990
12000
core-js: ^3.25.2
11991
12001
dotenv: ^16.0.3
11992
12002
echarts: ^5.4.2
12003
+ echarts-wordcloud: ^2.1.0
11993
12004
eslint: ^8.0.0
11994
12005
eslint-config-react-app: ^7.0.1
11995
12006
eslint-plugin-only-ascii: ^0.0.0
You can’t perform that action at this time.
0 commit comments