dtable-statistic 5.0.8-alpha.0 → 5.0.8-alpha.2
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.
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
11
|
var _seaChart = require("sea-chart");
|
|
12
12
|
var _reactstrap = require("reactstrap");
|
|
13
|
+
var _constants = require("../../constants");
|
|
13
14
|
class ChartEditDialog extends _react.Component {
|
|
14
15
|
constructor(props) {
|
|
15
16
|
super(props);
|
|
@@ -54,7 +55,8 @@ class ChartEditDialog extends _react.Component {
|
|
|
54
55
|
const {
|
|
55
56
|
api,
|
|
56
57
|
colorThemeName,
|
|
57
|
-
theme
|
|
58
|
+
theme,
|
|
59
|
+
eventBus
|
|
58
60
|
} = this.props;
|
|
59
61
|
const {
|
|
60
62
|
chart
|
|
@@ -87,6 +89,8 @@ class ChartEditDialog extends _react.Component {
|
|
|
87
89
|
theme: theme,
|
|
88
90
|
chartColorTheme: colorThemeName,
|
|
89
91
|
isCalculateByView: true,
|
|
92
|
+
integratedEventTypes: _constants.CommonEventTypes,
|
|
93
|
+
integratedEventBus: eventBus,
|
|
90
94
|
onChange: this.onSettingChange
|
|
91
95
|
})))));
|
|
92
96
|
}
|
package/es/desktop-dashboard.js
CHANGED
|
@@ -75,6 +75,7 @@ class ChartPreview extends _react.Component {
|
|
|
75
75
|
colorThemeName,
|
|
76
76
|
api,
|
|
77
77
|
value,
|
|
78
|
+
eventBus,
|
|
78
79
|
getTableById,
|
|
79
80
|
toggleStatisticRecordsDialog
|
|
80
81
|
} = this.props;
|
|
@@ -85,6 +86,7 @@ class ChartPreview extends _react.Component {
|
|
|
85
86
|
statItem: statItem,
|
|
86
87
|
api: api,
|
|
87
88
|
value: value,
|
|
89
|
+
eventBus: eventBus,
|
|
88
90
|
getTableById: getTableById,
|
|
89
91
|
toggleStatisticRecordsDialog: toggleStatisticRecordsDialog
|
|
90
92
|
});
|
package/es/stat-list/index.js
CHANGED
|
@@ -168,7 +168,8 @@ class StatList extends _react.Component {
|
|
|
168
168
|
theme,
|
|
169
169
|
colorThemeName,
|
|
170
170
|
statItems,
|
|
171
|
-
api
|
|
171
|
+
api,
|
|
172
|
+
eventBus
|
|
172
173
|
} = this.props;
|
|
173
174
|
const {
|
|
174
175
|
layout,
|
|
@@ -206,6 +207,7 @@ class StatList extends _react.Component {
|
|
|
206
207
|
colorThemeName: colorThemeName,
|
|
207
208
|
statItem: item,
|
|
208
209
|
api: api,
|
|
210
|
+
eventBus: eventBus,
|
|
209
211
|
value: this.value,
|
|
210
212
|
getOtherStatistics: this.props.getOtherStatistics,
|
|
211
213
|
getTableById: this.props.getTableById,
|
package/es/stat-view/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _seaChart = require("sea-chart");
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
|
+
var _constants = require("../constants");
|
|
11
12
|
class StatView extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -45,8 +46,11 @@ class StatView extends _react.default.Component {
|
|
|
45
46
|
api,
|
|
46
47
|
value,
|
|
47
48
|
theme,
|
|
48
|
-
colorThemeName
|
|
49
|
+
colorThemeName,
|
|
50
|
+
eventBus
|
|
49
51
|
} = this.props;
|
|
52
|
+
console.log('CommonEventTypes', _constants.CommonEventTypes);
|
|
53
|
+
console.log('eventBus', eventBus);
|
|
50
54
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
51
55
|
className: "statistic-chart-container"
|
|
52
56
|
}, /*#__PURE__*/_react.default.createElement(_seaChart.View, {
|
|
@@ -60,6 +64,8 @@ class StatView extends _react.default.Component {
|
|
|
60
64
|
globalTheme: theme,
|
|
61
65
|
chartColorTheme: colorThemeName,
|
|
62
66
|
isCalculateByView: true,
|
|
67
|
+
integratedEventTypes: _constants.CommonEventTypes,
|
|
68
|
+
integratedEventBus: eventBus,
|
|
63
69
|
onViewRef: this.getViewRef
|
|
64
70
|
}));
|
|
65
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-statistic",
|
|
3
|
-
"version": "5.0.8-alpha.
|
|
3
|
+
"version": "5.0.8-alpha.2",
|
|
4
4
|
"description": "statistics",
|
|
5
5
|
"main": "dist/dtable-statistic.js",
|
|
6
6
|
"author": "seafile",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"react-grid-layout": "^1.2.5",
|
|
19
19
|
"react-intl-universal": "^2.4.8",
|
|
20
20
|
"reactstrap": "8.9.0",
|
|
21
|
-
"sea-chart": "0.0.54-alpha.
|
|
21
|
+
"sea-chart": "0.0.54-alpha.6"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"dtable-ui-component": "~5.0.*",
|