dtable-statistic 5.0.29-alpha.3 → 5.0.30

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.
@@ -54,15 +54,13 @@ class StatList extends _react.Component {
54
54
  });
55
55
  };
56
56
  this.showNewTableDialog = (chartIndexExport2Table, statisticalResult) => {
57
- console.log(chartIndexExport2Table, statisticalResult);
58
57
  this.statisticalResult4Export = statisticalResult;
59
58
  this.setState({
60
59
  chartIndexExport2Table
61
60
  });
62
61
  };
63
62
  this.exportChart2Table = (tableName, chart) => {
64
- var _chart$config;
65
- if ((chart === null || chart === void 0 ? void 0 : (_chart$config = chart.config) === null || _chart$config === void 0 ? void 0 : _chart$config.type) !== _seaChart.CHART_TYPE.TABLE) {
63
+ if (chart.type !== _seaChart.CHART_TYPE.TABLE) {
66
64
  this.statisticalResult4Export = null;
67
65
  _toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
68
66
  this.closeNewTableDialog();
@@ -100,20 +98,16 @@ class StatList extends _react.Component {
100
98
  });
101
99
  };
102
100
  this.updateChart2Table = (selectedTableId, chartUpdate2Table) => {
103
- var _chartUpdate2Table$co;
104
- console.log('updateChart2Table', selectedTableId, chartUpdate2Table);
105
101
  const {
106
102
  getTableById
107
103
  } = this.props;
108
- if ((chartUpdate2Table === null || chartUpdate2Table === void 0 ? void 0 : (_chartUpdate2Table$co = chartUpdate2Table.config) === null || _chartUpdate2Table$co === void 0 ? void 0 : _chartUpdate2Table$co.type) !== _seaChart.CHART_TYPE.TABLE) {
104
+ if (chartUpdate2Table.type !== _seaChart.CHART_TYPE.TABLE) {
109
105
  this.statisticalResult4Update = null;
110
106
  _toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
111
107
  this.closeSelectTableDialog();
112
108
  return;
113
109
  }
114
110
  const updateTable = getTableById(selectedTableId);
115
- console.log('this.statisticalResult4Update', this.statisticalResult4Update);
116
- console.log('updateTable', updateTable);
117
111
  this.closeSelectTableDialog();
118
112
  if (!this.statisticalResult4Update || !updateTable) {
119
113
  return;
@@ -127,7 +121,6 @@ class StatList extends _react.Component {
127
121
  updateTable,
128
122
  statisticalResult: this.statisticalResult4Update
129
123
  });
130
- console.log('newRows, updatedRows, rowIds, oldRows', newRows, updatedRows, rowIds, oldRows);
131
124
  if (window.app && window.app.onUpdateStatisticToTable) {
132
125
  window.app.onUpdateStatisticToTable({
133
126
  tableId: selectedTableId,
@@ -245,7 +238,7 @@ class StatList extends _react.Component {
245
238
  onEnlargeToggle: this.closeEnlargedChart
246
239
  }), chartExport2Table && /*#__PURE__*/_react.default.createElement(_newTableDialog.default, {
247
240
  getTables: this.props.getTables,
248
- tableName: chartExport2Table.config.name || '',
241
+ tableName: chartExport2Table.name,
249
242
  onNewTableConfirm: tableName => this.exportChart2Table(tableName, chartExport2Table),
250
243
  onNewTableCancel: this.closeNewTableDialog
251
244
  }), chartUpdate2Table && /*#__PURE__*/_react.default.createElement(_tableSelectDialog.default, {
@@ -881,19 +881,17 @@ const updateStatisticToTable = _ref9 => {
881
881
  // two dimension table
882
882
  if (columnGroupbyColumn) {
883
883
  if (Array.isArray(pivot_summary_multiple_columns) && pivot_summary_multiple_columns.length > 0) {
884
- console.log(111);
885
884
  return updateTwoDimensionWithSummaryColumnsToTable({
886
885
  updateTable,
887
886
  statisticalResult
888
887
  });
889
888
  }
890
- console.log(222);
891
889
  return updateTwoDimensionToTable({
892
890
  updateTable,
893
891
  statisticalResult
894
892
  });
895
893
  }
896
- console.log(333);
894
+
897
895
  // one dimension table
898
896
  return updatedOneDimensionToTable({
899
897
  updateTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.29-alpha.3",
3
+ "version": "5.0.30",
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.76"
21
+ "sea-chart": "~0.0.78"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "dtable-ui-component": "~5.0.*",