dtable-statistic 5.0.30 → 5.0.32
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/es/stat-list/index.js
CHANGED
|
@@ -60,7 +60,8 @@ class StatList extends _react.Component {
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
this.exportChart2Table = (tableName, chart) => {
|
|
63
|
-
|
|
63
|
+
var _chart$config;
|
|
64
|
+
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) {
|
|
64
65
|
this.statisticalResult4Export = null;
|
|
65
66
|
_toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
|
|
66
67
|
this.closeNewTableDialog();
|
|
@@ -98,10 +99,11 @@ class StatList extends _react.Component {
|
|
|
98
99
|
});
|
|
99
100
|
};
|
|
100
101
|
this.updateChart2Table = (selectedTableId, chartUpdate2Table) => {
|
|
102
|
+
var _chartUpdate2Table$co;
|
|
101
103
|
const {
|
|
102
104
|
getTableById
|
|
103
105
|
} = this.props;
|
|
104
|
-
if (chartUpdate2Table.type !== _seaChart.CHART_TYPE.TABLE) {
|
|
106
|
+
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) {
|
|
105
107
|
this.statisticalResult4Update = null;
|
|
106
108
|
_toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
|
|
107
109
|
this.closeSelectTableDialog();
|
|
@@ -238,7 +240,7 @@ class StatList extends _react.Component {
|
|
|
238
240
|
onEnlargeToggle: this.closeEnlargedChart
|
|
239
241
|
}), chartExport2Table && /*#__PURE__*/_react.default.createElement(_newTableDialog.default, {
|
|
240
242
|
getTables: this.props.getTables,
|
|
241
|
-
tableName: chartExport2Table.name,
|
|
243
|
+
tableName: chartExport2Table.config.name || '',
|
|
242
244
|
onNewTableConfirm: tableName => this.exportChart2Table(tableName, chartExport2Table),
|
|
243
245
|
onNewTableCancel: this.closeNewTableDialog
|
|
244
246
|
}), chartUpdate2Table && /*#__PURE__*/_react.default.createElement(_tableSelectDialog.default, {
|
|
@@ -335,7 +335,7 @@ const exportTwoDimensionToTable = _ref2 => {
|
|
|
335
335
|
if (_isDateSummaryColumn) {
|
|
336
336
|
cellValue = cellValue ? (0, _dayjs.default)(cellValue).format(dateFormat) : '';
|
|
337
337
|
}
|
|
338
|
-
newRow[columnMap[key]] = cellValue;
|
|
338
|
+
newRow[columnMap[key]] = Array.isArray(cellValue) ? cellValue[0][1] : cellValue;
|
|
339
339
|
});
|
|
340
340
|
rows.push(newRow);
|
|
341
341
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-statistic",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.32",
|
|
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.
|
|
21
|
+
"sea-chart": "~0.0.80"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"dtable-ui-component": "~5.0.*",
|