dtable-statistic 5.0.7 → 5.0.8-alpha.1
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.
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.statistic-list .statistic-chart-preview-container .sea-chart-formatter-tip {
|
|
163
|
-
width:
|
|
164
|
-
height:
|
|
163
|
+
width: calc(100% - 30px);
|
|
164
|
+
height: calc(100% - 20px);
|
|
165
165
|
margin: 0 auto;
|
|
166
166
|
}
|
|
167
167
|
|
|
@@ -169,7 +169,13 @@
|
|
|
169
169
|
table-layout: fixed;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.statistic-list .statistic-chart-preview-container .sea-chart-pivot-table td
|
|
172
|
+
.statistic-list .statistic-chart-preview-container .sea-chart-pivot-table td {
|
|
173
|
+
padding: 5px;
|
|
174
|
+
min-width: 32px;
|
|
175
|
+
width: auto
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.statistic-list .statistic-chart-preview-container .sea-chart-pivot-table th {
|
|
173
179
|
padding: 5px;
|
|
174
180
|
min-width: 32px;
|
|
175
181
|
width: auto
|
|
@@ -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
|
|
@@ -80,12 +82,15 @@ class ChartEditDialog extends _react.Component {
|
|
|
80
82
|
chart: chart,
|
|
81
83
|
config: window.dtable,
|
|
82
84
|
api: api,
|
|
85
|
+
dtableStoreValue: this.value,
|
|
83
86
|
tables: this.value.tables,
|
|
84
87
|
collaborators: this.value.collaborators,
|
|
85
88
|
dataSources: "view",
|
|
86
89
|
theme: theme,
|
|
87
90
|
chartColorTheme: colorThemeName,
|
|
88
91
|
isCalculateByView: true,
|
|
92
|
+
integratedEventTypes: _constants.CommonEventTypes,
|
|
93
|
+
integratedEventBus: eventBus,
|
|
89
94
|
onChange: this.onSettingChange
|
|
90
95
|
})))));
|
|
91
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,7 +46,8 @@ 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;
|
|
50
52
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
51
53
|
className: "statistic-chart-container"
|
|
@@ -53,12 +55,15 @@ class StatView extends _react.default.Component {
|
|
|
53
55
|
chart: statItem,
|
|
54
56
|
api: api,
|
|
55
57
|
config: window.dtable,
|
|
58
|
+
dtableStoreValue: value,
|
|
56
59
|
tables: value.tables,
|
|
57
60
|
collaborators: value.collaborators,
|
|
58
61
|
hideTitle: true,
|
|
59
62
|
globalTheme: theme,
|
|
60
63
|
chartColorTheme: colorThemeName,
|
|
61
64
|
isCalculateByView: true,
|
|
65
|
+
integratedEventTypes: _constants.CommonEventTypes,
|
|
66
|
+
integratedEventBus: eventBus,
|
|
62
67
|
onViewRef: this.getViewRef
|
|
63
68
|
}));
|
|
64
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-statistic",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8-alpha.1",
|
|
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": "
|
|
21
|
+
"sea-chart": "0.0.54-alpha.6"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"dtable-ui-component": "~5.0.*",
|