File tree 13 files changed +77
-5
lines changed
comps/chartComp/reactEcharts
lowcoder-design/src/icons
13 files changed +77
-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 @@ -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 @@ -11827,6 +11827,7 @@ __metadata:
11827
11827
"@types/react-dom": 17
11828
11828
big.js: ^6.2.1
11829
11829
echarts-extension-gmap: ^1.6.0
11830
+ echarts-wordcloud: ^2.1.0
11830
11831
jest: 29.3.0
11831
11832
lowcoder-cli: "workspace:^"
11832
11833
lowcoder-sdk: "workspace:^"
You can’t perform that action at this time.
0 commit comments