@lowdefy/blocks-echarts 4.0.0-alpha.6 → 4.0.0-alpha.9
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 +3 -2
- package/dist/blocks/EChart/EChart.js +14 -22
- package/dist/blocks.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -45,15 +45,16 @@ pages:
|
|
|
45
45
|
type: line
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
<!-- TODO
|
|
48
49
|
## Other Lowdefy Blocks Packages
|
|
49
50
|
|
|
50
51
|
- [@lowdefy/blocks-template](https://github.com/lowdefy/blocks-template): Lowdefy template for creating blocks.
|
|
51
52
|
- [@lowdefy/blocks-basic](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksBasic): Official Lowdefy blocks some basic Html elements.
|
|
52
53
|
- [@lowdefy/blocks-antd](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksAntd): Official Lowdefy blocks for [Antd design](https://ant.design/).
|
|
53
|
-
- [@lowdefy/blocks-color-selectors](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/
|
|
54
|
+
- [@lowdefy/blocks-color-selectors](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksColorSelectors): Official Lowdefy blocks for [react-colorful](https://casesandberg.github.io/react-colorful/).
|
|
54
55
|
- [@lowdefy/blocks-markdown](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksMarkdown): Official Lowdefy blocks to render Markdown.
|
|
55
56
|
- [@lowdefy/blocks-amcharts](https://github.com/lowdefy/blocks-amcharts): Lowdefy blocks to render [AmCharts v4](https://www.amcharts.com/).
|
|
56
|
-
- [@lowdefy/blocks-aggrid](https://github.com/lowdefy/blocks-aggrid): Lowdefy blocks to render [Ag-Grid](https://www.ag-grid.com/) tables.
|
|
57
|
+
- [@lowdefy/blocks-aggrid](https://github.com/lowdefy/blocks-aggrid): Lowdefy blocks to render [Ag-Grid](https://www.ag-grid.com/) tables. -->
|
|
57
58
|
|
|
58
59
|
## More Lowdefy resources
|
|
59
60
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
/*
|
|
3
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
4
3
|
|
|
5
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
5
|
you may not use this file except in compliance with the License.
|
|
@@ -25,24 +24,23 @@ let EChart = class EChart extends React.Component {
|
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
26
|
render() {
|
|
28
|
-
return(/*#__PURE__*/
|
|
27
|
+
return(/*#__PURE__*/ React.createElement("div", {
|
|
29
28
|
style: {
|
|
30
29
|
height: this.props.properties.height || 300,
|
|
31
30
|
width: this.props.properties.width || '100%'
|
|
31
|
+
}
|
|
32
|
+
}, /*#__PURE__*/ React.createElement(ReactECharts, {
|
|
33
|
+
lazyUpdate: true,
|
|
34
|
+
notMerge: true,
|
|
35
|
+
onEvents: this.onEvents || {},
|
|
36
|
+
option: this.props.properties.option || {},
|
|
37
|
+
opts: {
|
|
38
|
+
height: this.props.properties.height || 300,
|
|
39
|
+
...this.props.properties.init || {}
|
|
32
40
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
onEvents: this.onEvents || {},
|
|
37
|
-
option: this.props.properties.option || {},
|
|
38
|
-
opts: {
|
|
39
|
-
height: this.props.properties.height || 300,
|
|
40
|
-
...this.props.properties.init || {}
|
|
41
|
-
},
|
|
42
|
-
style: this.props.properties.style || {},
|
|
43
|
-
theme: this.props.properties.theme && `custom_theme_${this.props.blockId}`
|
|
44
|
-
})
|
|
45
|
-
}));
|
|
41
|
+
style: this.props.properties.style || {},
|
|
42
|
+
theme: this.props.properties.theme && `custom_theme_${this.props.blockId}`
|
|
43
|
+
})));
|
|
46
44
|
}
|
|
47
45
|
constructor(props){
|
|
48
46
|
super(props);
|
|
@@ -131,12 +129,6 @@ let EChart = class EChart extends React.Component {
|
|
|
131
129
|
EChart.defaultProps = blockDefaultProps;
|
|
132
130
|
EChart.meta = {
|
|
133
131
|
category: 'display',
|
|
134
|
-
loading: {
|
|
135
|
-
type: 'Skeleton',
|
|
136
|
-
properties: {
|
|
137
|
-
height: 300
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
132
|
icons: [],
|
|
141
133
|
styles: []
|
|
142
134
|
};
|
package/dist/blocks.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-echarts",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "ECharts Blocks for Lowdefy.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"lowdefy",
|
|
9
9
|
"lowdefy blocks",
|
|
10
10
|
"echarts",
|
|
11
|
-
"charts"
|
|
11
|
+
"charts",
|
|
12
|
+
"lowdefy plugin"
|
|
12
13
|
],
|
|
13
14
|
"bugs": {
|
|
14
15
|
"url": "https://github.com/lowdefy/lowdefy/issues"
|
|
@@ -50,29 +51,28 @@
|
|
|
50
51
|
"test": "jest --coverage"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@lowdefy/block-utils": "4.0.0-alpha.
|
|
54
|
-
"echarts": "5.
|
|
55
|
-
"echarts-for-react": "3.0.
|
|
56
|
-
"react": "
|
|
57
|
-
"react-dom": "
|
|
54
|
+
"@lowdefy/block-utils": "4.0.0-alpha.9",
|
|
55
|
+
"echarts": "5.3.0",
|
|
56
|
+
"echarts-for-react": "3.0.2",
|
|
57
|
+
"react": "17.0.2",
|
|
58
|
+
"react-dom": "17.0.2"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@lowdefy/block-dev": "4.0.0-alpha.6",
|
|
61
|
+
"@emotion/jest": "11.7.1",
|
|
62
|
+
"@lowdefy/block-dev": "4.0.0-alpha.9",
|
|
63
63
|
"@swc/cli": "0.1.55",
|
|
64
|
-
"@swc/core": "1.2.
|
|
64
|
+
"@swc/core": "1.2.135",
|
|
65
65
|
"@swc/jest": "0.2.17",
|
|
66
|
-
"@testing-library/dom": "8.
|
|
66
|
+
"@testing-library/dom": "8.11.3",
|
|
67
67
|
"@testing-library/react": "13.0.0-alpha.4",
|
|
68
68
|
"@testing-library/user-event": "14.0.0-alpha.14",
|
|
69
69
|
"copyfiles": "2.4.1",
|
|
70
|
-
"jest": "27.
|
|
70
|
+
"jest": "27.5.1",
|
|
71
71
|
"jest-serializer-html": "7.1.0",
|
|
72
|
-
"jest-transform-yaml": "0.
|
|
72
|
+
"jest-transform-yaml": "1.0.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "98b544eca231bdcfca6c3a8601a891835d5ce571"
|
|
78
78
|
}
|