dtable-statistic 5.3.40 → 5.3.41

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.
@@ -945,13 +945,15 @@ const updateStatisticToTable = _ref9 => {
945
945
  pivotResult
946
946
  } = statisticalResult;
947
947
  const {
948
- pivot_summary_multiple_columns
949
- } = pivotResult;
948
+ pivot_summary_multiple_columns,
949
+ summary_columns
950
+ } = pivotResult || {};
950
951
  if (!groupbyColumn) return {};
951
952
 
952
953
  // two dimension table
953
954
  if (columnGroupbyColumn) {
954
- if (Array.isArray(pivot_summary_multiple_columns) && pivot_summary_multiple_columns.length > 0) {
955
+ const hasSummaryColumns = Array.isArray(summary_columns) && summary_columns.length > 0 || Array.isArray(pivot_summary_multiple_columns) && pivot_summary_multiple_columns.length > 0;
956
+ if (hasSummaryColumns) {
955
957
  return updateTwoDimensionWithSummaryColumnsToTable({
956
958
  updateTable,
957
959
  statisticalResult
package/package.json CHANGED
@@ -1,24 +1,21 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.3.40",
3
+ "version": "5.3.41",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",
7
7
  "private": false,
8
8
  "dependencies": {
9
9
  "@antv/util": "^3.3.2",
10
- "@seafile/seafile-calendar": "0.0.24",
11
10
  "comlink": "^4.4.1",
12
11
  "dayjs": "1.10.7",
13
12
  "html2canvas": "^1.4.1",
14
- "rc-slider": "^9.7.4",
15
13
  "react": "^18.3.1",
16
- "react-color": "2.19.3",
17
14
  "react-dom": "^18.3.1",
18
15
  "react-grid-layout": "^1.2.5",
19
16
  "react-intl-universal": "^2.4.8",
20
17
  "reactstrap": "9.2.3",
21
- "sea-chart": "^1.1.114"
18
+ "sea-chart": "^1.1.123"
22
19
  },
23
20
  "peerDependencies": {
24
21
  "dtable-ui-component": "~6.0.*",
@@ -86,7 +83,6 @@
86
83
  "source-map-loader": "^3.0.0",
87
84
  "style-loader": "^3.3.1",
88
85
  "svgo-loader": "^3.0.1",
89
- "tailwindcss": "^3.0.2",
90
86
  "terser-webpack-plugin": "^5.2.5",
91
87
  "url-loader": "^4.1.1",
92
88
  "web-vitals": "^2.1.4",