dtable-statistic 5.0.8-alpha.3 → 5.0.8

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,7 +10,6 @@ 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");
14
13
  class ChartEditDialog extends _react.Component {
15
14
  constructor(props) {
16
15
  super(props);
@@ -55,8 +54,7 @@ class ChartEditDialog extends _react.Component {
55
54
  const {
56
55
  api,
57
56
  colorThemeName,
58
- theme,
59
- eventBus
57
+ theme
60
58
  } = this.props;
61
59
  const {
62
60
  chart
@@ -82,15 +80,12 @@ class ChartEditDialog extends _react.Component {
82
80
  chart: chart,
83
81
  config: window.dtable,
84
82
  api: api,
85
- dtableStoreValue: this.value,
86
83
  tables: this.value.tables,
87
84
  collaborators: this.value.collaborators,
88
85
  dataSources: "view",
89
86
  theme: theme,
90
87
  chartColorTheme: colorThemeName,
91
88
  isCalculateByView: true,
92
- integratedEventTypes: _constants.CommonEventTypes,
93
- integratedEventBus: eventBus,
94
89
  onChange: this.onSettingChange
95
90
  })))));
96
91
  }
@@ -281,7 +281,6 @@ class DesktopDashboard extends _react.Component {
281
281
  theme: theme,
282
282
  colorThemeName: colorThemeName,
283
283
  editingChart: editingChart,
284
- eventBus: eventBus,
285
284
  api: this.api,
286
285
  getValue: getValue,
287
286
  statistics: statistics,
@@ -75,7 +75,6 @@ class ChartPreview extends _react.Component {
75
75
  colorThemeName,
76
76
  api,
77
77
  value,
78
- eventBus,
79
78
  getTableById,
80
79
  toggleStatisticRecordsDialog
81
80
  } = this.props;
@@ -86,7 +85,6 @@ class ChartPreview extends _react.Component {
86
85
  statItem: statItem,
87
86
  api: api,
88
87
  value: value,
89
- eventBus: eventBus,
90
88
  getTableById: getTableById,
91
89
  toggleStatisticRecordsDialog: toggleStatisticRecordsDialog
92
90
  });
@@ -168,8 +168,7 @@ class StatList extends _react.Component {
168
168
  theme,
169
169
  colorThemeName,
170
170
  statItems,
171
- api,
172
- eventBus
171
+ api
173
172
  } = this.props;
174
173
  const {
175
174
  layout,
@@ -207,7 +206,6 @@ class StatList extends _react.Component {
207
206
  colorThemeName: colorThemeName,
208
207
  statItem: item,
209
208
  api: api,
210
- eventBus: eventBus,
211
209
  value: this.value,
212
210
  getOtherStatistics: this.props.getOtherStatistics,
213
211
  getTableById: this.props.getTableById,
@@ -8,7 +8,6 @@ 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");
12
11
  class StatView extends _react.default.Component {
13
12
  constructor(props) {
14
13
  super(props);
@@ -46,8 +45,7 @@ class StatView extends _react.default.Component {
46
45
  api,
47
46
  value,
48
47
  theme,
49
- colorThemeName,
50
- eventBus
48
+ colorThemeName
51
49
  } = this.props;
52
50
  return /*#__PURE__*/_react.default.createElement("div", {
53
51
  className: "statistic-chart-container"
@@ -55,15 +53,12 @@ class StatView extends _react.default.Component {
55
53
  chart: statItem,
56
54
  api: api,
57
55
  config: window.dtable,
58
- dtableStoreValue: value,
59
56
  tables: value.tables,
60
57
  collaborators: value.collaborators,
61
58
  hideTitle: true,
62
59
  globalTheme: theme,
63
60
  chartColorTheme: colorThemeName,
64
61
  isCalculateByView: true,
65
- integratedEventTypes: _constants.CommonEventTypes,
66
- integratedEventBus: eventBus,
67
62
  onViewRef: this.getViewRef
68
63
  }));
69
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.8-alpha.3",
3
+ "version": "5.0.8",
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.7"
21
+ "sea-chart": "^0.0.53"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "dtable-ui-component": "~5.0.*",