dtable-statistic 4.3.3 → 4.3.4
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/api/dtable-db-api.js +3 -10
- package/es/calculator/base-calculator.js +12 -20
- package/es/calculator/basic-chart-calculator.js +65 -72
- package/es/calculator/combination-calculator.js +57 -64
- package/es/calculator/compare-bar-calculator.js +26 -33
- package/es/calculator/completeness-calculator.js +30 -37
- package/es/calculator/copy-value.js +1 -7
- package/es/calculator/dashboard-calculator.js +13 -20
- package/es/calculator/heat-map-calculator.js +18 -25
- package/es/calculator/horizontal-bar-calculator.js +8 -15
- package/es/calculator/index.js +35 -42
- package/es/calculator/map-calculator.js +22 -29
- package/es/calculator/mirror-calculator.js +20 -27
- package/es/calculator/number-card-calculator.js +10 -17
- package/es/calculator/pivot-table-calculator.js +58 -65
- package/es/calculator/scatter-calculator.js +14 -21
- package/es/calculator/thread-manager.js +1 -7
- package/es/calculator/trend-calculator.js +22 -29
- package/es/calculator/workers/basic-chart-calculator-worker.js +76 -83
- package/es/calculator/workers/calculator.worker.js +30 -33
- package/es/calculator/workers/card-calculator-worker.js +13 -19
- package/es/calculator/workers/combination-calculator-worker.js +46 -53
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +22 -29
- package/es/calculator/workers/completeness-calculator-worker.js +34 -41
- package/es/calculator/workers/dashboard-calculator-worker.js +18 -24
- package/es/calculator/workers/mirror-calculator-worker.js +22 -29
- package/es/calculator/workers/pivot-table-calculator-worker.js +77 -84
- package/es/calculator/workers/scatter-calculator-worker.js +20 -27
- package/es/calculator/workers/trend-calculator-worker.js +27 -34
- package/es/calculator/world-map-calculator.js +17 -24
- package/es/components/common-add-tool.js +5 -12
- package/es/components/dialog/chart-addition-edit-dialog.js +12 -20
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +101 -108
- package/es/components/dialog/color-theme-dialog.js +15 -22
- package/es/components/dialog/delete-confirmation-dialog.js +11 -18
- package/es/components/dialog/enlarged-chart-dialog.js +20 -28
- package/es/components/dialog/new-table-dialog.js +16 -23
- package/es/components/dialog/new-view-dialog.js +14 -21
- package/es/components/dialog/rename-view-dialog.js +14 -22
- package/es/components/dialog/statistic-record-dialog/index.js +37 -45
- package/es/components/dialog/statistic-types-dialog/index.js +14 -22
- package/es/components/dialog/table-select-dialog.js +15 -23
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +41 -49
- package/es/components/dtable-popover.js +12 -19
- package/es/components/dtable-search-input.js +13 -21
- package/es/components/dtable-select.js +15 -21
- package/es/components/icon.js +4 -11
- package/es/components/index.js +11 -76
- package/es/components/loading.js +3 -10
- package/es/components/modal-portal.js +5 -12
- package/es/components/popover/color-rules/color-rule.js +25 -33
- package/es/components/popover/color-rules/index.js +6 -14
- package/es/components/popover/color-rules/rule-filters/filter.js +27 -34
- package/es/components/popover/color-rules/rule-filters/index.js +17 -25
- package/es/components/popover/color-rules/rule-filters/number-input.js +9 -17
- package/es/components/popover/color-rules-popover.js +24 -32
- package/es/components/popover/color-selector-popover.js +10 -17
- package/es/components/seatable-radio/index.js +9 -16
- package/es/components/select/index.js +2 -9
- package/es/components/select/option-group.js +19 -27
- package/es/components/select/option.js +6 -14
- package/es/components/select/select.js +17 -25
- package/es/components/toast/alert.js +24 -31
- package/es/components/toast/index.js +3 -10
- package/es/components/toast/toast.js +12 -20
- package/es/components/toast/toastManager.js +9 -17
- package/es/components/toast/toaster.js +6 -14
- package/es/constants/color-rules.js +6 -12
- package/es/constants/dtable-select-style.js +4 -9
- package/es/constants/event-types.js +4 -10
- package/es/constants/index.js +67 -96
- package/es/constants/key-codes.js +0 -2
- package/es/constants/map.js +2 -8
- package/es/constants/model.js +20 -26
- package/es/constants/regions.js +3 -8
- package/es/constants/zIndexes.js +1 -7
- package/es/custom-g2.js +208 -236
- package/es/dashboard.js +50 -58
- package/es/desktop-dashboard.js +47 -55
- package/es/index.js +3 -6
- package/es/locale/index.js +10 -13
- package/es/locale/lang/de.js +1 -7
- package/es/locale/lang/en.js +1 -7
- package/es/locale/lang/fr.js +1 -7
- package/es/locale/lang/zh_CN.js +1 -7
- package/es/mobile-dashboard.js +38 -46
- package/es/model/bar-group.js +11 -19
- package/es/model/bar.js +10 -18
- package/es/model/base-model.js +2 -9
- package/es/model/basic-number-card.js +8 -16
- package/es/model/collaborators.js +2 -9
- package/es/model/combination.js +12 -20
- package/es/model/compare-bar.js +16 -24
- package/es/model/completeness-group.js +8 -16
- package/es/model/completeness.js +5 -13
- package/es/model/custom-bar.js +6 -14
- package/es/model/dashboard.js +6 -14
- package/es/model/generic-model.js +133 -141
- package/es/model/heat-map.js +11 -19
- package/es/model/horizontal-bar-group.js +10 -18
- package/es/model/horizontal-bar.js +10 -18
- package/es/model/index.js +53 -185
- package/es/model/map.js +15 -23
- package/es/model/mirror.js +13 -21
- package/es/model/pie.js +10 -18
- package/es/model/ring.js +11 -19
- package/es/model/scatter.js +6 -14
- package/es/model/statistic-dashboard.js +2 -9
- package/es/model/table.js +10 -18
- package/es/model/trend.js +12 -20
- package/es/model/world-map.js +13 -21
- package/es/service/chart-service.js +7 -14
- package/es/service/dashboard-service.js +34 -41
- package/es/service/map-json.js +8 -14
- package/es/stat-editor/chart-name-editor.js +8 -15
- package/es/stat-editor/index.js +16 -24
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +21 -29
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +49 -57
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +23 -31
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +4 -11
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +19 -27
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +43 -51
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +23 -31
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +23 -31
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +37 -45
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +19 -27
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +26 -34
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +47 -55
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +22 -30
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +18 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +27 -35
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +24 -32
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +33 -41
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +22 -30
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +27 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +46 -54
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +23 -31
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +26 -34
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +77 -85
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +21 -29
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +73 -81
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +16 -24
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +19 -27
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +18 -26
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +49 -57
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +17 -25
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +47 -55
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +11 -19
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +45 -53
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +9 -17
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +20 -28
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +30 -38
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +50 -58
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +17 -25
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +47 -55
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +11 -19
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +12 -19
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +62 -70
- package/es/stat-editor/stat-settings/map/map-level.js +13 -20
- package/es/stat-editor/stat-settings/map/map-province-city.js +20 -27
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +11 -19
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +20 -28
- package/es/stat-editor/stat-settings/public-setting/calender.js +22 -29
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +6 -13
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +9 -16
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +13 -21
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +8 -15
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +11 -19
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +27 -35
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +8 -15
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.js +18 -26
- package/es/stat-list/chart-preview.js +20 -28
- package/es/stat-list/index.js +27 -35
- package/es/stat-view/area-chart.js +43 -50
- package/es/stat-view/bar-chart.js +47 -54
- package/es/stat-view/base-chart.js +24 -32
- package/es/stat-view/basic-number-card.js +19 -26
- package/es/stat-view/combination-chart.js +49 -56
- package/es/stat-view/compare-chart.js +39 -46
- package/es/stat-view/completeness-chart.js +28 -35
- package/es/stat-view/custom-bar.js +31 -38
- package/es/stat-view/dashboard-chart.js +15 -22
- package/es/stat-view/heat-map.js +43 -50
- package/es/stat-view/horizontal-bar-chart.js +51 -58
- package/es/stat-view/index.js +73 -80
- package/es/stat-view/line-chart.js +39 -46
- package/es/stat-view/map.js +33 -40
- package/es/stat-view/mirror.js +21 -28
- package/es/stat-view/pie-chart.js +29 -36
- package/es/stat-view/pivot-table/index.js +32 -39
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +31 -39
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +29 -37
- package/es/stat-view/pivot-table/pivot-table-display-name.js +46 -54
- package/es/stat-view/pivot-table/two-dimension-table.js +62 -70
- package/es/stat-view/ring-chart.js +38 -45
- package/es/stat-view/scatter-chart.js +30 -37
- package/es/stat-view/treemap-chart.js +37 -44
- package/es/stat-view/trend-chart.js +32 -39
- package/es/stat-view/world-map.js +33 -40
- package/es/tabs/index.js +32 -40
- package/es/tabs/tab.js +26 -34
- package/es/utils/basic-chart-utils.js +2 -9
- package/es/utils/cell-format.js +14 -22
- package/es/utils/cell-value.js +7 -14
- package/es/utils/collaborator.js +4 -13
- package/es/utils/color-utils.js +18 -29
- package/es/utils/column-utils.js +18 -29
- package/es/utils/column.js +4 -11
- package/es/utils/common-utils.js +41 -65
- package/es/utils/date-format.js +2 -8
- package/es/utils/export-table-utils.js +82 -91
- package/es/utils/index.js +11 -100
- package/es/utils/map.js +26 -36
- package/es/utils/model.js +6 -14
- package/es/utils/object.js +6 -15
- package/es/utils/pivot-table.js +16 -23
- package/es/utils/row-utils.js +23 -33
- package/es/utils/search.js +21 -29
- package/es/utils/sql-utils.js +65 -75
- package/es/utils/stat-utils.js +60 -66
- package/es/utils/trend-utils.js +32 -40
- package/package.json +1 -1
package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _reactstrap = require("reactstrap");
|
|
12
|
-
var _colorGroupSelector = _interopRequireDefault(require("../../color-setting/color-group-selector"));
|
|
13
|
-
var _constants = require("../../../../constants");
|
|
14
|
-
class HeatMapStyleSettings extends _react.Component {
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import { Label, Input, InputGroup, InputGroupAddon } from 'reactstrap';
|
|
4
|
+
import ColorGroupSelector from '../../color-setting/color-group-selector';
|
|
5
|
+
import { DEFAULT_GRID_DISTANCE, DEFAULT_GRID_SIZE } from '../../../../constants';
|
|
6
|
+
class HeatMapStyleSettings extends Component {
|
|
15
7
|
constructor() {
|
|
16
8
|
super(...arguments);
|
|
17
9
|
this.renderColorSetting = () => {
|
|
@@ -19,7 +11,7 @@ class HeatMapStyleSettings extends _react.Component {
|
|
|
19
11
|
onChangeColor,
|
|
20
12
|
statItem
|
|
21
13
|
} = this.props;
|
|
22
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/React.createElement(ColorGroupSelector, {
|
|
23
15
|
currentColor: statItem.data_color,
|
|
24
16
|
onChangeColor: onChangeColor
|
|
25
17
|
});
|
|
@@ -55,35 +47,35 @@ class HeatMapStyleSettings extends _react.Component {
|
|
|
55
47
|
grid_size,
|
|
56
48
|
grid_distance
|
|
57
49
|
} = statItem;
|
|
58
|
-
return /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.renderColorSetting(), /*#__PURE__*/React.createElement("div", {
|
|
59
51
|
className: "statistic-chart-parameter-divider"
|
|
60
|
-
}), /*#__PURE__*/
|
|
52
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
61
53
|
className: "statistic-chart-parameter-item"
|
|
62
|
-
}, /*#__PURE__*/
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
63
55
|
for: "grid-size"
|
|
64
|
-
},
|
|
56
|
+
}, intl.get('Grid_size')), /*#__PURE__*/React.createElement(InputGroup, null, /*#__PURE__*/React.createElement(Input, {
|
|
65
57
|
type: "text",
|
|
66
58
|
id: "grid-size",
|
|
67
59
|
name: "grid_size",
|
|
68
|
-
defaultValue: grid_size ||
|
|
60
|
+
defaultValue: grid_size || DEFAULT_GRID_SIZE,
|
|
69
61
|
onBlur: this.onSubmit,
|
|
70
62
|
onKeyDown: this.onKeyDown
|
|
71
|
-
}), /*#__PURE__*/
|
|
63
|
+
}), /*#__PURE__*/React.createElement(InputGroupAddon, {
|
|
72
64
|
addonType: "append"
|
|
73
|
-
}, "px"))), /*#__PURE__*/
|
|
65
|
+
}, "px"))), /*#__PURE__*/React.createElement("div", {
|
|
74
66
|
className: "statistic-chart-parameter-item"
|
|
75
|
-
}, /*#__PURE__*/
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
76
68
|
for: "grid-distance"
|
|
77
|
-
},
|
|
69
|
+
}, intl.get('Grid_distance')), /*#__PURE__*/React.createElement(InputGroup, null, /*#__PURE__*/React.createElement(Input, {
|
|
78
70
|
type: "text",
|
|
79
71
|
id: "grid-distance",
|
|
80
72
|
name: "grid_distance",
|
|
81
|
-
defaultValue: grid_distance ||
|
|
73
|
+
defaultValue: grid_distance || DEFAULT_GRID_DISTANCE,
|
|
82
74
|
onBlur: this.onSubmit,
|
|
83
75
|
onKeyDown: this.onKeyDown
|
|
84
|
-
}), /*#__PURE__*/
|
|
76
|
+
}), /*#__PURE__*/React.createElement(InputGroupAddon, {
|
|
85
77
|
addonType: "append"
|
|
86
78
|
}, "px"))));
|
|
87
79
|
}
|
|
88
80
|
}
|
|
89
|
-
|
|
81
|
+
export default HeatMapStyleSettings;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _rcSlider = _interopRequireDefault(require("rc-slider"));
|
|
11
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
12
|
-
var _colorGroupSelector = _interopRequireDefault(require("../../color-setting/color-group-selector"));
|
|
13
|
-
var _components = require("../../../../components");
|
|
14
|
-
var _constants = require("../../../../constants");
|
|
15
|
-
require("../../../../assets/css/slider.css");
|
|
16
|
-
class MapStyleSetting extends _react.Component {
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import RcSlider from 'rc-slider';
|
|
3
|
+
import intl from 'react-intl-universal';
|
|
4
|
+
import ColorGroupSelector from '../../color-setting/color-group-selector';
|
|
5
|
+
import { DTableSelect } from '../../../../components';
|
|
6
|
+
import { LABEL_COLORS } from '../../../../constants';
|
|
7
|
+
import '../../../../assets/css/slider.css';
|
|
8
|
+
class MapStyleSetting extends Component {
|
|
17
9
|
constructor(props) {
|
|
18
10
|
super(props);
|
|
19
11
|
this.onSliderChange = value => {
|
|
@@ -42,24 +34,24 @@ class MapStyleSetting extends _react.Component {
|
|
|
42
34
|
return this.legendDirectionOptions[1];
|
|
43
35
|
};
|
|
44
36
|
this.renderLabelColor = () => {
|
|
45
|
-
return /*#__PURE__*/
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
38
|
className: "statistic-chart-parameter-item"
|
|
47
|
-
}, /*#__PURE__*/
|
|
39
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Bubble_color')), /*#__PURE__*/React.createElement("div", {
|
|
48
40
|
className: "row gutters-xs ml-0"
|
|
49
|
-
},
|
|
50
|
-
return /*#__PURE__*/
|
|
41
|
+
}, LABEL_COLORS.map((item, index) => {
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
51
43
|
key: "map-bubble-color-".concat(index),
|
|
52
44
|
className: "col-auto pl-0"
|
|
53
|
-
}, /*#__PURE__*/
|
|
45
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
54
46
|
className: "colorinput"
|
|
55
|
-
}, /*#__PURE__*/
|
|
47
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
56
48
|
className: "colorinput-color statistic-colorinput",
|
|
57
49
|
onClick: this.updateBubbleColor.bind(this, item),
|
|
58
50
|
style: {
|
|
59
51
|
backgroundColor: item,
|
|
60
52
|
borderColor: item
|
|
61
53
|
}
|
|
62
|
-
}, item === (this.props.statItem.bubble_color ||
|
|
54
|
+
}, item === (this.props.statItem.bubble_color || LABEL_COLORS[0]) && /*#__PURE__*/React.createElement("i", {
|
|
63
55
|
className: "dtable-font dtable-icon-check-mark statistic-check-mark"
|
|
64
56
|
}))));
|
|
65
57
|
})));
|
|
@@ -80,7 +72,7 @@ class MapStyleSetting extends _react.Component {
|
|
|
80
72
|
const {
|
|
81
73
|
type
|
|
82
74
|
} = statItem;
|
|
83
|
-
return !type.includes('bubble') ? /*#__PURE__*/
|
|
75
|
+
return !type.includes('bubble') ? /*#__PURE__*/React.createElement(ColorGroupSelector, {
|
|
84
76
|
currentColor: statItem.data_color,
|
|
85
77
|
onChangeColor: onChangeColor
|
|
86
78
|
}) : this.renderLabelColor();
|
|
@@ -94,18 +86,18 @@ class MapStyleSetting extends _react.Component {
|
|
|
94
86
|
}));
|
|
95
87
|
};
|
|
96
88
|
this.renderLegendDirection = () => {
|
|
97
|
-
return /*#__PURE__*/
|
|
89
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
98
90
|
className: "statistic-chart-parameter-item"
|
|
99
|
-
}, /*#__PURE__*/
|
|
91
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Legend_direction')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
100
92
|
value: this.getSelectedDirectionOption(),
|
|
101
93
|
options: this.legendDirectionOptions,
|
|
102
94
|
onChange: this.onDirectionChange
|
|
103
95
|
}));
|
|
104
96
|
};
|
|
105
97
|
this.renderLegendSize = () => {
|
|
106
|
-
return /*#__PURE__*/
|
|
98
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
107
99
|
className: "statistic-chart-parameter-item"
|
|
108
|
-
}, /*#__PURE__*/
|
|
100
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Legend_size')), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(RcSlider, {
|
|
109
101
|
value: this.state.legendSize,
|
|
110
102
|
step: 0.5,
|
|
111
103
|
min: 1,
|
|
@@ -116,23 +108,23 @@ class MapStyleSetting extends _react.Component {
|
|
|
116
108
|
};
|
|
117
109
|
this.legendDirectionOptions = [{
|
|
118
110
|
value: 'vertical',
|
|
119
|
-
label: /*#__PURE__*/
|
|
111
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
120
112
|
className: "select-option-name"
|
|
121
|
-
},
|
|
113
|
+
}, intl.get('Vertical'))
|
|
122
114
|
}, {
|
|
123
115
|
value: 'horizontal',
|
|
124
|
-
label: /*#__PURE__*/
|
|
116
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
125
117
|
className: "select-option-name"
|
|
126
|
-
},
|
|
118
|
+
}, intl.get('Horizontal'))
|
|
127
119
|
}];
|
|
128
120
|
this.state = {
|
|
129
121
|
legendSize: props.statItem.legend_size || 1
|
|
130
122
|
};
|
|
131
123
|
}
|
|
132
124
|
render() {
|
|
133
|
-
return /*#__PURE__*/
|
|
125
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.renderColorSetting(), /*#__PURE__*/React.createElement("div", {
|
|
134
126
|
className: "statistic-chart-parameter-divider"
|
|
135
127
|
}), this.renderLegendDirection(), this.renderLegendSize());
|
|
136
128
|
}
|
|
137
129
|
}
|
|
138
|
-
|
|
130
|
+
export default MapStyleSetting;
|
|
@@ -1,37 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _components = require("../../../components");
|
|
12
|
-
var _numericSummaryItem = _interopRequireDefault(require("../public-setting/numeric-summary-item"));
|
|
13
|
-
var _constants = require("../../../constants");
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import { DTableSelect } from '../../../components';
|
|
4
|
+
import NumericSummaryItem from '../public-setting/numeric-summary-item';
|
|
5
|
+
import { STATISTICS_COUNT_SHOW, STAT_TYPE, SUMMARY_METHOD, SUMMARY_TYPE } from '../../../constants';
|
|
14
6
|
const GROUP_TYPES = {
|
|
15
7
|
COUNT: 'count',
|
|
16
8
|
SINGLE_NUMERIC_COLUMN: 'single_numeric_column',
|
|
17
9
|
MULTIPLE_NUMERIC_COLUMN: 'multiple_numeric_column'
|
|
18
10
|
};
|
|
19
|
-
class SummarySettings extends
|
|
11
|
+
class SummarySettings extends Component {
|
|
20
12
|
constructor(props) {
|
|
21
13
|
super(props);
|
|
22
14
|
this.getSummaryTypeOptions = () => {
|
|
23
15
|
const summaryTypes = [{
|
|
24
16
|
value: GROUP_TYPES.COUNT,
|
|
25
|
-
label: /*#__PURE__*/
|
|
17
|
+
label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
26
18
|
className: 'select-module select-module-name'
|
|
27
|
-
},
|
|
19
|
+
}, intl.get(STATISTICS_COUNT_SHOW['count'])), /*#__PURE__*/React.createElement("div", {
|
|
28
20
|
className: "summary-type-explanation"
|
|
29
21
|
}, this.summaryExplanation['count']))
|
|
30
22
|
}, {
|
|
31
23
|
value: GROUP_TYPES.SINGLE_NUMERIC_COLUMN,
|
|
32
|
-
label: /*#__PURE__*/
|
|
24
|
+
label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
33
25
|
className: 'select-module select-module-name'
|
|
34
|
-
},
|
|
26
|
+
}, intl.get(STATISTICS_COUNT_SHOW['advanced'])), /*#__PURE__*/React.createElement("div", {
|
|
35
27
|
className: "summary-type-explanation"
|
|
36
28
|
}, this.summaryExplanation['advanced']))
|
|
37
29
|
}];
|
|
@@ -40,11 +32,11 @@ class SummarySettings extends _react.Component {
|
|
|
40
32
|
if (this.props.useMultipleSummaryColumns) {
|
|
41
33
|
summaryTypes.push({
|
|
42
34
|
value: GROUP_TYPES.MULTIPLE_NUMERIC_COLUMN,
|
|
43
|
-
label: /*#__PURE__*/
|
|
35
|
+
label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
44
36
|
className: 'select-module select-module-name'
|
|
45
|
-
},
|
|
37
|
+
}, intl.get('Summarize_multiple_fields')), /*#__PURE__*/React.createElement("div", {
|
|
46
38
|
className: "summary-type-explanation"
|
|
47
|
-
},
|
|
39
|
+
}, intl.get('Compute_the_sum_maximum_or_minimum_value_of_records_in_each_group_by_multiple_fields')))
|
|
48
40
|
});
|
|
49
41
|
}
|
|
50
42
|
return summaryTypes;
|
|
@@ -59,38 +51,38 @@ class SummarySettings extends _react.Component {
|
|
|
59
51
|
variable = '位置字段';
|
|
60
52
|
}
|
|
61
53
|
if (chartType === 'world_map') {
|
|
62
|
-
variable =
|
|
54
|
+
variable = intl.get('Location_field');
|
|
63
55
|
}
|
|
64
56
|
if (chartType === 'heat_map') {
|
|
65
|
-
variable =
|
|
57
|
+
variable = intl.get('Time_field');
|
|
66
58
|
}
|
|
67
59
|
if (chartType === 'mirror') {
|
|
68
|
-
variable =
|
|
60
|
+
variable = intl.get('Statistic_field');
|
|
69
61
|
}
|
|
70
62
|
if (chartType === 'combination_chart') {
|
|
71
|
-
variable =
|
|
63
|
+
variable = intl.get('X-axis');
|
|
72
64
|
}
|
|
73
65
|
if (chartType === 'trend_chart') {
|
|
74
66
|
return {
|
|
75
|
-
count:
|
|
76
|
-
advanced:
|
|
67
|
+
count: intl.get('Calculate_the_number_of_records_in_two_time_periods'),
|
|
68
|
+
advanced: intl.get('Use_a_field_to_calculate_the_sum_maximum_or_minimum_value_of_records_in_two_time_periods')
|
|
77
69
|
};
|
|
78
70
|
}
|
|
79
71
|
return {
|
|
80
|
-
count:
|
|
72
|
+
count: intl.get('Count_by_var', {
|
|
81
73
|
var: variable
|
|
82
74
|
}),
|
|
83
|
-
advanced:
|
|
75
|
+
advanced: intl.get('Compute_sum_max_min_by_var', {
|
|
84
76
|
var: variable
|
|
85
77
|
})
|
|
86
78
|
};
|
|
87
79
|
};
|
|
88
80
|
this.getSummaryMethodsOptions = () => {
|
|
89
|
-
return
|
|
81
|
+
return SUMMARY_METHOD.map(method => {
|
|
90
82
|
return {
|
|
91
|
-
label: /*#__PURE__*/
|
|
83
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
92
84
|
className: "select-option-name"
|
|
93
|
-
},
|
|
85
|
+
}, intl.get(STATISTICS_COUNT_SHOW[method])),
|
|
94
86
|
value: method
|
|
95
87
|
};
|
|
96
88
|
});
|
|
@@ -103,9 +95,9 @@ class SummarySettings extends _react.Component {
|
|
|
103
95
|
label
|
|
104
96
|
} = this.props;
|
|
105
97
|
const selectedSummaryType = this.getSelectedSummaryType();
|
|
106
|
-
return /*#__PURE__*/
|
|
98
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
107
99
|
className: "statistic-chart-parameter-item"
|
|
108
|
-
}, /*#__PURE__*/
|
|
100
|
+
}, /*#__PURE__*/React.createElement("label", null, label), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
109
101
|
classNamePrefix: 'statistic-chart-summary-types',
|
|
110
102
|
value: selectedSummaryType,
|
|
111
103
|
onChange: this.onChangeSummaryType,
|
|
@@ -118,10 +110,10 @@ class SummarySettings extends _react.Component {
|
|
|
118
110
|
statItem,
|
|
119
111
|
useMultipleSummaryColumns
|
|
120
112
|
} = this.props;
|
|
121
|
-
if (summaryType ===
|
|
113
|
+
if (summaryType === SUMMARY_TYPE.COUNT) {
|
|
122
114
|
return this.summaryTypeOptions[0];
|
|
123
115
|
}
|
|
124
|
-
if (statItem.type ===
|
|
116
|
+
if (statItem.type === STAT_TYPE.COMBINATION_CHART && statItem.y_axis_left_group_by_multiple_numeric_column && useMultipleSummaryColumns) {
|
|
125
117
|
return this.summaryTypeOptions[2];
|
|
126
118
|
}
|
|
127
119
|
return this.summaryTypeOptions[1];
|
|
@@ -142,23 +134,23 @@ class SummarySettings extends _react.Component {
|
|
|
142
134
|
summaryColumn
|
|
143
135
|
} = this.props;
|
|
144
136
|
const selectedColumnOption = this.numericColumnsOptions.find(o => o.value.key === summaryColumn) || null;
|
|
145
|
-
return /*#__PURE__*/
|
|
137
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
146
138
|
className: "statistic-chart-parameter-item"
|
|
147
|
-
}, /*#__PURE__*/
|
|
139
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Numeric_column')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
148
140
|
value: selectedColumnOption,
|
|
149
141
|
onChange: this.onSelectSummaryColumn,
|
|
150
142
|
options: this.numericColumnsOptions,
|
|
151
|
-
placeholder:
|
|
143
|
+
placeholder: intl.get('Select_a_column'),
|
|
152
144
|
noOptionsMessage: () => {
|
|
153
|
-
return /*#__PURE__*/
|
|
145
|
+
return /*#__PURE__*/React.createElement("span", null, intl.get('No_options'));
|
|
154
146
|
}
|
|
155
147
|
}));
|
|
156
148
|
};
|
|
157
149
|
this.renderSummaryMethod = () => {
|
|
158
150
|
let selectedMethodOption = this.getSelectedMethodOption(this.props.summaryMethod, this.summaryMethodsOptions);
|
|
159
|
-
return /*#__PURE__*/
|
|
151
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
160
152
|
className: "statistic-chart-parameter-item"
|
|
161
|
-
}, /*#__PURE__*/
|
|
153
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
162
154
|
value: selectedMethodOption,
|
|
163
155
|
onChange: this.onSelectSummaryMethod,
|
|
164
156
|
options: this.summaryMethodsOptions
|
|
@@ -177,11 +169,11 @@ class SummarySettings extends _react.Component {
|
|
|
177
169
|
type
|
|
178
170
|
} = statItem;
|
|
179
171
|
let column_key, summary_method;
|
|
180
|
-
if (type ===
|
|
172
|
+
if (type === STAT_TYPE.COMBINATION_CHART) {
|
|
181
173
|
column_key = statItem.y_axis_left_summary_column;
|
|
182
174
|
summary_method = statItem.y_axis_left_summary_method;
|
|
183
175
|
}
|
|
184
|
-
return /*#__PURE__*/
|
|
176
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(NumericSummaryItem, {
|
|
185
177
|
statItem: statItem,
|
|
186
178
|
key: "number-column-".concat(0),
|
|
187
179
|
numericColumnsOptions: this.numericColumnsOptions,
|
|
@@ -193,14 +185,14 @@ class SummarySettings extends _react.Component {
|
|
|
193
185
|
},
|
|
194
186
|
onChangeColumnOption: (index, option) => onSelectSummaryColumn(option.value.key),
|
|
195
187
|
onChangeSummaryMethod: (index, option) => onSelectSummaryMethod(option.value)
|
|
196
|
-
}), this.renderGroupbyNumericColumns(), Array.isArray(this.numericColumnsOptions) && this.numericColumnsOptions.length > 0 && /*#__PURE__*/
|
|
188
|
+
}), this.renderGroupbyNumericColumns(), Array.isArray(this.numericColumnsOptions) && this.numericColumnsOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
197
189
|
className: "statistics-add-number-column",
|
|
198
190
|
onClick: this.onAddNumericColumn
|
|
199
|
-
}, /*#__PURE__*/
|
|
191
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
200
192
|
className: "number-column-item dtable-font dtable-icon-add-table"
|
|
201
|
-
}), /*#__PURE__*/
|
|
193
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
202
194
|
className: "number-column-item add-number-column-description"
|
|
203
|
-
},
|
|
195
|
+
}, intl.get('Add_new_numeric_column'))));
|
|
204
196
|
};
|
|
205
197
|
this.onDeleteNumericColumnItem = index => {
|
|
206
198
|
let {
|
|
@@ -225,12 +217,12 @@ class SummarySettings extends _react.Component {
|
|
|
225
217
|
y_axis_left_group_by_numeric_columns = [...y_axis_left_group_by_numeric_columns];
|
|
226
218
|
y_axis_left_group_by_numeric_columns.push({
|
|
227
219
|
column_key: newNumericColumnKey,
|
|
228
|
-
summary_method:
|
|
220
|
+
summary_method: SUMMARY_METHOD[0]
|
|
229
221
|
});
|
|
230
222
|
} else {
|
|
231
223
|
y_axis_left_group_by_numeric_columns = [{
|
|
232
224
|
column_key: newNumericColumnKey,
|
|
233
|
-
summary_method:
|
|
225
|
+
summary_method: SUMMARY_METHOD[0]
|
|
234
226
|
}];
|
|
235
227
|
}
|
|
236
228
|
this.props.updateStatItem(Object.assign({}, this.props.statItem, {
|
|
@@ -276,7 +268,7 @@ class SummarySettings extends _react.Component {
|
|
|
276
268
|
} = statItem;
|
|
277
269
|
if (!y_axis_left_group_by_numeric_columns || !Array.isArray(y_axis_left_group_by_numeric_columns)) return null;
|
|
278
270
|
return y_axis_left_group_by_numeric_columns.map((item, index) => {
|
|
279
|
-
return /*#__PURE__*/
|
|
271
|
+
return /*#__PURE__*/React.createElement(NumericSummaryItem, {
|
|
280
272
|
statItem: statItem,
|
|
281
273
|
key: "number-column-".concat(index),
|
|
282
274
|
numericColumnsOptions: this.numericColumnsOptions,
|
|
@@ -295,8 +287,8 @@ class SummarySettings extends _react.Component {
|
|
|
295
287
|
summaryType,
|
|
296
288
|
useMultipleSummaryColumns
|
|
297
289
|
} = this.props;
|
|
298
|
-
if (statItem.type ===
|
|
299
|
-
if (useMultipleSummaryColumns && summaryType ===
|
|
290
|
+
if (statItem.type === STAT_TYPE.COMBINATION_CHART) {
|
|
291
|
+
if (useMultipleSummaryColumns && summaryType === SUMMARY_TYPE.ADVANCED && statItem.y_axis_left_group_by_multiple_numeric_column) {
|
|
300
292
|
return true;
|
|
301
293
|
}
|
|
302
294
|
}
|
|
@@ -325,7 +317,7 @@ class SummarySettings extends _react.Component {
|
|
|
325
317
|
summaryType
|
|
326
318
|
} = this.props;
|
|
327
319
|
const _useMultipleSummaryColumns = this.useMultipleSummaryColumns();
|
|
328
|
-
return /*#__PURE__*/
|
|
320
|
+
return /*#__PURE__*/React.createElement(Fragment, null, this.renderSummaryTypes(), !_useMultipleSummaryColumns && summaryType === SUMMARY_TYPE.ADVANCED && /*#__PURE__*/React.createElement(Fragment, null, this.renderNumericColumn(), this.renderSummaryMethod()), _useMultipleSummaryColumns && this.renderNumericSummaryItem());
|
|
329
321
|
}
|
|
330
322
|
}
|
|
331
|
-
|
|
323
|
+
export default SummarySettings;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactIntlUniversal = _interopRequireDefault(require("react-intl-universal"));
|
|
11
|
-
var _components = require("../../../components");
|
|
12
|
-
var _columnSettings = _interopRequireDefault(require("../public-setting/column-settings"));
|
|
13
|
-
var _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
14
|
-
var _summarySettings = _interopRequireDefault(require("./summary-settings"));
|
|
15
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
1
|
+
import React, { Component, Fragment } from 'react';
|
|
2
|
+
import intl from 'react-intl-universal';
|
|
3
|
+
import { DTableSelect } from '../../../components';
|
|
4
|
+
import ColumnSettings from '../public-setting/column-settings';
|
|
5
|
+
import BaseSettings from '../public-setting/base-settings';
|
|
6
|
+
import SummarySettings from './summary-settings';
|
|
7
|
+
import { isStatisticDateColumn } from '../../../utils/column-utils';
|
|
16
8
|
const COMPARE_GRANULARITY = ['day', 'week', 'quarter', 'month', 'year', 'days_7', 'days_30'];
|
|
17
9
|
const COMPARED_LIST = {
|
|
18
10
|
[COMPARE_GRANULARITY[0]]: 'Yesterday_vs_the_day_before_yesterday',
|
|
@@ -23,16 +15,16 @@ const COMPARED_LIST = {
|
|
|
23
15
|
[COMPARE_GRANULARITY[5]]: 'Last_7_days_vs_previous_7_days',
|
|
24
16
|
[COMPARE_GRANULARITY[6]]: 'Last_30_days_vs_previous_30_days'
|
|
25
17
|
};
|
|
26
|
-
class TrendSettings extends
|
|
18
|
+
class TrendSettings extends Component {
|
|
27
19
|
constructor(props) {
|
|
28
20
|
super(props);
|
|
29
21
|
this.getGranularityOptions = options => {
|
|
30
22
|
return options.map(g => {
|
|
31
23
|
return {
|
|
32
24
|
value: g,
|
|
33
|
-
label: /*#__PURE__*/
|
|
25
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
34
26
|
className: 'select-module select-module-name'
|
|
35
|
-
},
|
|
27
|
+
}, intl.get(COMPARED_LIST[g]))
|
|
36
28
|
};
|
|
37
29
|
});
|
|
38
30
|
};
|
|
@@ -66,9 +58,9 @@ class TrendSettings extends _react.Component {
|
|
|
66
58
|
date_granularity
|
|
67
59
|
} = statItem;
|
|
68
60
|
const selectedGeolocationGranularity = this.dateGranularityOptions.find(option => option.value === date_granularity);
|
|
69
|
-
return /*#__PURE__*/
|
|
61
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
70
62
|
className: "statistic-chart-parameter-item"
|
|
71
|
-
}, /*#__PURE__*/
|
|
63
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Comparison_mode')), /*#__PURE__*/React.createElement(DTableSelect, {
|
|
72
64
|
value: selectedGeolocationGranularity,
|
|
73
65
|
onChange: this.onSelectGroupbyGeolocationGranularity,
|
|
74
66
|
options: this.dateGranularityOptions
|
|
@@ -78,7 +70,7 @@ class TrendSettings extends _react.Component {
|
|
|
78
70
|
columns,
|
|
79
71
|
getColumnsOptions
|
|
80
72
|
} = props;
|
|
81
|
-
const dateColumns = columns.filter(column =>
|
|
73
|
+
const dateColumns = columns.filter(column => isStatisticDateColumn(column));
|
|
82
74
|
this.dateColumnsOptions = getColumnsOptions(dateColumns);
|
|
83
75
|
this.dateGranularityOptions = this.getGranularityOptions(COMPARE_GRANULARITY);
|
|
84
76
|
}
|
|
@@ -88,7 +80,7 @@ class TrendSettings extends _react.Component {
|
|
|
88
80
|
columns,
|
|
89
81
|
getColumnsOptions
|
|
90
82
|
} = nextProps;
|
|
91
|
-
const dateColumns = columns.filter(column =>
|
|
83
|
+
const dateColumns = columns.filter(column => isStatisticDateColumn(column));
|
|
92
84
|
this.dateColumnsOptions = getColumnsOptions(dateColumns);
|
|
93
85
|
}
|
|
94
86
|
}
|
|
@@ -106,7 +98,7 @@ class TrendSettings extends _react.Component {
|
|
|
106
98
|
if (settingType === 'style') {
|
|
107
99
|
return null;
|
|
108
100
|
}
|
|
109
|
-
return /*#__PURE__*/
|
|
101
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseSettings, {
|
|
110
102
|
statItem: statItem,
|
|
111
103
|
selectedTableId: statItem.table_id,
|
|
112
104
|
selectedViewId: statItem.view_id,
|
|
@@ -115,18 +107,18 @@ class TrendSettings extends _react.Component {
|
|
|
115
107
|
getTableById: this.props.getTableById,
|
|
116
108
|
getConvertedChart: this.props.getConvertedChart,
|
|
117
109
|
updateStatItem: this.props.updateStatItem
|
|
118
|
-
}), /*#__PURE__*/
|
|
110
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
119
111
|
className: "statistic-chart-parameter-divider"
|
|
120
|
-
}), /*#__PURE__*/
|
|
112
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
121
113
|
className: "statistic-chart-parameter-item"
|
|
122
|
-
}, /*#__PURE__*/
|
|
114
|
+
}, /*#__PURE__*/React.createElement("label", null, intl.get('Time_field')), /*#__PURE__*/React.createElement(ColumnSettings, {
|
|
123
115
|
columnsOptions: this.dateColumnsOptions,
|
|
124
116
|
selectedColumnOption: selectedDateColumnOption,
|
|
125
117
|
onChangeSelectedColumn: this.onSelectDateColumn
|
|
126
|
-
})), this.renderDateGranularity(), /*#__PURE__*/
|
|
118
|
+
})), this.renderDateGranularity(), /*#__PURE__*/React.createElement("div", {
|
|
127
119
|
className: "statistic-chart-parameter-divider"
|
|
128
|
-
}), /*#__PURE__*/
|
|
129
|
-
label:
|
|
120
|
+
}), /*#__PURE__*/React.createElement(SummarySettings, {
|
|
121
|
+
label: intl.get('Summary_method'),
|
|
130
122
|
statItem: statItem,
|
|
131
123
|
selectedTableId: selectedTableId,
|
|
132
124
|
numericColumns: numericColumns,
|
|
@@ -140,4 +132,4 @@ class TrendSettings extends _react.Component {
|
|
|
140
132
|
}));
|
|
141
133
|
}
|
|
142
134
|
}
|
|
143
|
-
|
|
135
|
+
export default TrendSettings;
|