dtable-statistic 4.4.23 → 4.4.24-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.
- package/es/assets/css/dashboard.css +1 -0
- package/es/assets/css/dialog.css +30 -0
- package/es/components/dialog/chart-edit-dialog.js +92 -0
- package/es/components/dialog/enlarged-chart-dialog.js +8 -13
- package/es/components/dialog/statistic-record-dialog/index.js +22 -30
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +2 -2
- package/es/components/index.js +1 -15
- package/es/constants/index.js +1 -2
- package/es/dashboard.js +5 -31
- package/es/desktop-dashboard.js +51 -32
- package/es/mobile-dashboard.js +8 -16
- package/es/model/conver-statItem.js +124 -0
- package/es/service/chart-service.js +8 -15
- package/es/service/dashboard-service.js +25 -29
- package/es/stat-list/chart-preview.js +19 -20
- package/es/stat-list/index.js +13 -19
- package/es/stat-view/index.js +46 -156
- package/es/utils/common-utils.js +2 -352
- package/es/utils/export-table-utils.js +0 -69
- package/es/utils/index.js +0 -89
- package/package.json +5 -7
- package/es/assets/css/color-picker.css +0 -53
- package/es/assets/css/color-rules-popover.css +0 -144
- package/es/assets/css/slider.css +0 -77
- package/es/assets/css/statistic-chart.module.css +0 -11
- package/es/assets/css/statistic-custom-title.module.css +0 -3
- package/es/assets/css/statistic-custom.module.css +0 -4
- package/es/assets/css/statistic-numeric-column-item.module.css +0 -43
- package/es/assets/css/statistic-time-picker.module.css +0 -21
- package/es/calculator/base-calculator.js +0 -80
- package/es/calculator/basic-chart-calculator.js +0 -349
- package/es/calculator/combination-calculator.js +0 -246
- package/es/calculator/compare-bar-calculator.js +0 -197
- package/es/calculator/completeness-calculator.js +0 -215
- package/es/calculator/copy-value.js +0 -53
- package/es/calculator/dashboard-calculator.js +0 -70
- package/es/calculator/heat-map-calculator.js +0 -148
- package/es/calculator/horizontal-bar-calculator.js +0 -67
- package/es/calculator/index.js +0 -81
- package/es/calculator/map-calculator.js +0 -103
- package/es/calculator/mirror-calculator.js +0 -146
- package/es/calculator/number-card-calculator.js +0 -60
- package/es/calculator/pivot-table-calculator.js +0 -821
- package/es/calculator/scatter-calculator.js +0 -75
- package/es/calculator/thread-manager.js +0 -57
- package/es/calculator/trend-calculator.js +0 -113
- package/es/calculator/workers/basic-chart-calculator-worker.js +0 -495
- package/es/calculator/workers/calculator.worker.js +0 -44
- package/es/calculator/workers/card-calculator-worker.js +0 -40
- package/es/calculator/workers/combination-calculator-worker.js +0 -276
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +0 -150
- package/es/calculator/workers/completeness-calculator-worker.js +0 -208
- package/es/calculator/workers/dashboard-calculator-worker.js +0 -68
- package/es/calculator/workers/mirror-calculator-worker.js +0 -152
- package/es/calculator/workers/pivot-table-calculator-worker.js +0 -718
- package/es/calculator/workers/scatter-calculator-worker.js +0 -80
- package/es/calculator/workers/trend-calculator-worker.js +0 -108
- package/es/calculator/world-map-calculator.js +0 -124
- package/es/components/common-add-tool.js +0 -28
- package/es/components/dialog/chart-addition-edit-dialog.js +0 -90
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +0 -259
- package/es/components/dialog/chart-addition-widgets/statistic-chart-selector.module.css +0 -83
- package/es/components/dialog/statistic-types-dialog/index.css +0 -14
- package/es/components/dialog/statistic-types-dialog/index.js +0 -62
- package/es/components/popover/color-rules/color-rule.js +0 -183
- package/es/components/popover/color-rules/index.js +0 -87
- package/es/components/popover/color-rules/rule-filters/filter.js +0 -221
- package/es/components/popover/color-rules/rule-filters/index.css +0 -210
- package/es/components/popover/color-rules/rule-filters/index.js +0 -97
- package/es/components/popover/color-rules/rule-filters/number-input.js +0 -78
- package/es/components/popover/color-rules-popover.js +0 -217
- package/es/components/popover/color-selector-popover.js +0 -82
- package/es/components/seatable-radio/index.css +0 -51
- package/es/components/seatable-radio/index.js +0 -35
- package/es/custom-g2.js +0 -644
- package/es/model/bar-group.js +0 -58
- package/es/model/bar.js +0 -47
- package/es/model/base-model.js +0 -18
- package/es/model/basic-number-card.js +0 -25
- package/es/model/combination.js +0 -48
- package/es/model/compare-bar.js +0 -56
- package/es/model/completeness-group.js +0 -31
- package/es/model/completeness.js +0 -25
- package/es/model/custom-bar.js +0 -25
- package/es/model/dashboard.js +0 -20
- package/es/model/generic-model.js +0 -222
- package/es/model/heat-map.js +0 -33
- package/es/model/horizontal-bar-group.js +0 -55
- package/es/model/horizontal-bar.js +0 -47
- package/es/model/index.js +0 -187
- package/es/model/map.js +0 -38
- package/es/model/mirror.js +0 -33
- package/es/model/pie.js +0 -38
- package/es/model/ring.js +0 -40
- package/es/model/scatter.js +0 -22
- package/es/model/table.js +0 -32
- package/es/model/trend.js +0 -32
- package/es/model/world-map.js +0 -34
- package/es/stat-editor/chart-name-editor.js +0 -68
- package/es/stat-editor/index.js +0 -75
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +0 -153
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +0 -422
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +0 -203
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +0 -23
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +0 -104
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +0 -334
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +0 -119
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +0 -132
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +0 -240
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +0 -89
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +0 -138
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +0 -331
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +0 -143
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +0 -109
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +0 -153
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +0 -144
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +0 -214
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +0 -121
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +0 -172
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +0 -366
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +0 -142
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +0 -150
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +0 -473
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +0 -182
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +0 -564
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +0 -112
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +0 -87
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +0 -187
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +0 -300
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +0 -113
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +0 -289
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +0 -58
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +0 -359
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +0 -48
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +0 -121
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +0 -143
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +0 -269
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +0 -104
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +0 -366
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +0 -55
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +0 -130
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +0 -374
- package/es/stat-editor/stat-settings/map/map-level.js +0 -72
- package/es/stat-editor/stat-settings/map/map-province-city.js +0 -151
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +0 -108
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +0 -154
- package/es/stat-editor/stat-settings/public-setting/calender.js +0 -125
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +0 -24
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +0 -62
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +0 -61
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +0 -35
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +0 -60
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +0 -123
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +0 -33
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.css +0 -29
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.js +0 -82
- package/es/stat-view/area-chart.js +0 -551
- package/es/stat-view/bar-chart.js +0 -582
- package/es/stat-view/base-chart.js +0 -132
- package/es/stat-view/basic-number-card.js +0 -201
- package/es/stat-view/combination-chart.js +0 -546
- package/es/stat-view/compare-chart.js +0 -483
- package/es/stat-view/completeness-chart.js +0 -390
- package/es/stat-view/custom-bar.js +0 -418
- package/es/stat-view/dashboard-chart.js +0 -266
- package/es/stat-view/heat-map.js +0 -463
- package/es/stat-view/horizontal-bar-chart.js +0 -562
- package/es/stat-view/line-chart.js +0 -518
- package/es/stat-view/map.js +0 -448
- package/es/stat-view/mirror.js +0 -275
- package/es/stat-view/pie-chart.js +0 -290
- package/es/stat-view/pivot-table/index.js +0 -196
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +0 -156
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +0 -176
- package/es/stat-view/pivot-table/pivot-table-display-name.js +0 -215
- package/es/stat-view/pivot-table/statistic-pivot-table.module.css +0 -132
- package/es/stat-view/pivot-table/two-dimension-table.js +0 -384
- package/es/stat-view/ring-chart.js +0 -392
- package/es/stat-view/scatter-chart.js +0 -306
- package/es/stat-view/treemap-chart.js +0 -253
- package/es/stat-view/trend-chart.js +0 -249
- package/es/stat-view/world-map.js +0 -431
- package/es/utils/basic-chart-utils.js +0 -29
- package/es/utils/cell-format.js +0 -115
- package/es/utils/collaborator.js +0 -50
- package/es/utils/color-utils.js +0 -134
- package/es/utils/column-utils.js +0 -110
- package/es/utils/column.js +0 -20
- package/es/utils/date-format.js +0 -71
- package/es/utils/map.js +0 -114
- package/es/utils/model.js +0 -19
- package/es/utils/row-utils.js +0 -134
- package/es/utils/search.js +0 -73
- package/es/utils/sql-utils.js +0 -359
- package/es/utils/stat-utils.js +0 -351
- package/es/utils/trend-utils.js +0 -135
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
11
|
-
var _columnSettings = _interopRequireDefault(require("../public-setting/column-settings"));
|
|
12
|
-
var _summarySettings = _interopRequireDefault(require("./summary-settings"));
|
|
13
|
-
var _mapSetting = _interopRequireDefault(require("./style-setting/map-setting"));
|
|
14
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
15
|
-
var _constants = require("../../../constants");
|
|
16
|
-
var _mapLevel = _interopRequireDefault(require("../map/map-level"));
|
|
17
|
-
var _mapProvinceCity = _interopRequireDefault(require("../map/map-province-city"));
|
|
18
|
-
class MapSettings extends _react.Component {
|
|
19
|
-
constructor(props) {
|
|
20
|
-
super(props);
|
|
21
|
-
this.getColumns = columns => {
|
|
22
|
-
if (!Array.isArray(columns) || columns.length === 0) return [];
|
|
23
|
-
return columns.filter(column => (0, _columnUtils.isMapColumn)(column));
|
|
24
|
-
};
|
|
25
|
-
this.getSelectedGeoColumnOption = () => {
|
|
26
|
-
return this.geoColumnsOptions.find(option => option.value.key === this.props.statItem.geo_column);
|
|
27
|
-
};
|
|
28
|
-
this.onSelectGeoColumn = option => {
|
|
29
|
-
const {
|
|
30
|
-
geo_column
|
|
31
|
-
} = this.props.statItem;
|
|
32
|
-
const new_geo_column = option.value.key;
|
|
33
|
-
if (new_geo_column === geo_column) return;
|
|
34
|
-
this.props.updateStatItem(Object.assign({}, this.props.statItem, {
|
|
35
|
-
geo_column: new_geo_column,
|
|
36
|
-
geolocation_granularity: _constants.GEOLOCATION_GRANULARITY.PROVINCE
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
const {
|
|
40
|
-
columns: _columns,
|
|
41
|
-
getColumnsOptions
|
|
42
|
-
} = props;
|
|
43
|
-
const geoColumns = this.getColumns(_columns);
|
|
44
|
-
this.geoColumnsOptions = getColumnsOptions(geoColumns);
|
|
45
|
-
}
|
|
46
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
47
|
-
if (nextProps.selectedTableId !== this.props.selectedTableId) {
|
|
48
|
-
const {
|
|
49
|
-
columns,
|
|
50
|
-
getColumnsOptions
|
|
51
|
-
} = nextProps;
|
|
52
|
-
const geoColumns = this.getColumns(columns);
|
|
53
|
-
this.geoColumnsOptions = getColumnsOptions(geoColumns);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
const {
|
|
58
|
-
getTables,
|
|
59
|
-
getViews,
|
|
60
|
-
settingType,
|
|
61
|
-
selectedTableId,
|
|
62
|
-
statItem,
|
|
63
|
-
getColumnsOptions,
|
|
64
|
-
numericColumns
|
|
65
|
-
} = this.props;
|
|
66
|
-
const {
|
|
67
|
-
view_id: selectedViewId
|
|
68
|
-
} = statItem;
|
|
69
|
-
const selectedGeoColumnOption = this.getSelectedGeoColumnOption();
|
|
70
|
-
if (settingType === 'style') {
|
|
71
|
-
return /*#__PURE__*/_react.default.createElement(_mapSetting.default, {
|
|
72
|
-
statItem: statItem,
|
|
73
|
-
onChangeColor: this.props.onChangeColor,
|
|
74
|
-
updateStatItem: this.props.updateStatItem
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_baseSettings.default, {
|
|
78
|
-
statItem: statItem,
|
|
79
|
-
selectedTableId: selectedTableId,
|
|
80
|
-
selectedViewId: selectedViewId,
|
|
81
|
-
getTables: getTables,
|
|
82
|
-
getViews: getViews,
|
|
83
|
-
getTableById: this.props.getTableById,
|
|
84
|
-
getConvertedChart: this.props.getConvertedChart,
|
|
85
|
-
updateStatItem: this.props.updateStatItem
|
|
86
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
className: "statistic-chart-parameter-divider"
|
|
88
|
-
}), /*#__PURE__*/_react.default.createElement(_mapLevel.default, {
|
|
89
|
-
statItem: statItem,
|
|
90
|
-
updateStatItem: this.props.updateStatItem
|
|
91
|
-
}), /*#__PURE__*/_react.default.createElement(_mapProvinceCity.default, {
|
|
92
|
-
statItem: statItem,
|
|
93
|
-
updateStatItem: this.props.updateStatItem
|
|
94
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
-
className: "statistic-chart-parameter-divider"
|
|
96
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
-
className: "statistic-chart-parameter-item"
|
|
98
|
-
}, /*#__PURE__*/_react.default.createElement("label", null, "\u4F4D\u7F6E\u5B57\u6BB5"), /*#__PURE__*/_react.default.createElement(_columnSettings.default, {
|
|
99
|
-
columnsOptions: this.geoColumnsOptions,
|
|
100
|
-
selectedColumnOption: selectedGeoColumnOption,
|
|
101
|
-
onChangeSelectedColumn: this.onSelectGeoColumn
|
|
102
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
-
className: "statistic-chart-parameter-divider"
|
|
104
|
-
}), /*#__PURE__*/_react.default.createElement(_summarySettings.default, {
|
|
105
|
-
label: '归总方法',
|
|
106
|
-
statItem: statItem,
|
|
107
|
-
selectedTableId: selectedTableId,
|
|
108
|
-
numericColumns: numericColumns,
|
|
109
|
-
summaryType: statItem.summary_type,
|
|
110
|
-
summaryMethod: statItem.summary_method,
|
|
111
|
-
summaryColumn: statItem.summary_column,
|
|
112
|
-
getColumnsOptions: getColumnsOptions,
|
|
113
|
-
onChangeSummaryType: this.props.onChangeSummaryType,
|
|
114
|
-
onSelectSummaryColumn: this.props.onSelectSummaryColumn,
|
|
115
|
-
onSelectSummaryMethod: this.props.onSelectSummaryMethod
|
|
116
|
-
}));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
var _default = exports.default = MapSettings;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
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 _baseSettings = _interopRequireDefault(require("../public-setting/base-settings"));
|
|
12
|
-
var _columnSettings = _interopRequireDefault(require("../public-setting/column-settings"));
|
|
13
|
-
var _summarySettings = _interopRequireDefault(require("./summary-settings"));
|
|
14
|
-
var _toggleSetting = _interopRequireDefault(require("../public-setting/toggle-setting"));
|
|
15
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
16
|
-
class MirrorSettings extends _react.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
this.getSelectedStatColumnOption = () => {
|
|
20
|
-
return this.statColumnsOptions.find(option => option.value.key === this.props.statItem.column);
|
|
21
|
-
};
|
|
22
|
-
this.getSelectedGroupColumnOption = () => {
|
|
23
|
-
return this.groupColumnsOptions.find(option => option.value.key === this.props.statItem.group_column);
|
|
24
|
-
};
|
|
25
|
-
this.onSelectStatColumn = option => {
|
|
26
|
-
const {
|
|
27
|
-
column
|
|
28
|
-
} = this.props.statItem;
|
|
29
|
-
const new_column = option.value.key;
|
|
30
|
-
if (new_column === column) return;
|
|
31
|
-
this.props.updateStatItem(Object.assign({}, this.props.statItem, {
|
|
32
|
-
column: new_column
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
this.onSelectGroupColumn = option => {
|
|
36
|
-
const {
|
|
37
|
-
group_column
|
|
38
|
-
} = this.props.statItem;
|
|
39
|
-
const new_column = option.value.key;
|
|
40
|
-
if (new_column === group_column) return;
|
|
41
|
-
this.props.updateStatItem(Object.assign({}, this.props.statItem, {
|
|
42
|
-
group_column: new_column
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
this.handleToggleChange = event => {
|
|
46
|
-
this.props.updateStatItem(Object.assign({}, this.props.statItem, {
|
|
47
|
-
is_transpose: event.target.checked
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
const {
|
|
51
|
-
columns,
|
|
52
|
-
getColumnsOptions
|
|
53
|
-
} = props;
|
|
54
|
-
const statColumns = columns.filter(column => (0, _columnUtils.isMirrorColumn)(column));
|
|
55
|
-
const groupColumns = columns.filter(column => column.type === 'single-select');
|
|
56
|
-
this.statColumnsOptions = getColumnsOptions(statColumns);
|
|
57
|
-
this.groupColumnsOptions = getColumnsOptions(groupColumns);
|
|
58
|
-
}
|
|
59
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
60
|
-
if (nextProps.selectedTableId !== this.props.selectedTableId) {
|
|
61
|
-
const {
|
|
62
|
-
columns,
|
|
63
|
-
getColumnsOptions
|
|
64
|
-
} = nextProps;
|
|
65
|
-
const statColumns = columns.filter(column => (0, _columnUtils.isMirrorColumn)(column));
|
|
66
|
-
this.statColumnsOptions = getColumnsOptions(statColumns);
|
|
67
|
-
const groupColumns = columns.filter(column => column.type === 'single-select');
|
|
68
|
-
this.groupColumnsOptions = getColumnsOptions(groupColumns);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
render() {
|
|
72
|
-
const {
|
|
73
|
-
getTables,
|
|
74
|
-
getViews,
|
|
75
|
-
settingType,
|
|
76
|
-
selectedTableId,
|
|
77
|
-
statItem,
|
|
78
|
-
getColumnsOptions,
|
|
79
|
-
numericColumns
|
|
80
|
-
} = this.props;
|
|
81
|
-
const selectedColumnOption = this.getSelectedStatColumnOption();
|
|
82
|
-
const selectedGroupColumnOption = this.getSelectedGroupColumnOption();
|
|
83
|
-
if (settingType === 'style') {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_baseSettings.default, {
|
|
87
|
-
statItem: statItem,
|
|
88
|
-
selectedTableId: statItem.table_id,
|
|
89
|
-
selectedViewId: statItem.view_id,
|
|
90
|
-
getTables: getTables,
|
|
91
|
-
getViews: getViews,
|
|
92
|
-
getTableById: this.props.getTableById,
|
|
93
|
-
getConvertedChart: this.props.getConvertedChart,
|
|
94
|
-
updateStatItem: this.props.updateStatItem
|
|
95
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
96
|
-
className: "statistic-chart-parameter-divider"
|
|
97
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
-
className: "statistic-chart-parameter-item"
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement("label", null, _reactIntlUniversal.default.get('Statistic_field')), /*#__PURE__*/_react.default.createElement(_columnSettings.default, {
|
|
100
|
-
columnsOptions: this.statColumnsOptions,
|
|
101
|
-
selectedColumnOption: selectedColumnOption,
|
|
102
|
-
onChangeSelectedColumn: this.onSelectStatColumn
|
|
103
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
104
|
-
className: "statistic-chart-parameter-item"
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_toggleSetting.default, {
|
|
106
|
-
label: _reactIntlUniversal.default.get('Transpose'),
|
|
107
|
-
isChecked: statItem.is_transpose,
|
|
108
|
-
handleToggleChange: this.handleToggleChange
|
|
109
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
110
|
-
className: "statistic-chart-parameter-item"
|
|
111
|
-
}, /*#__PURE__*/_react.default.createElement("label", null, _reactIntlUniversal.default.get('Column_grouping_field')), /*#__PURE__*/_react.default.createElement(_columnSettings.default, {
|
|
112
|
-
columnsOptions: this.groupColumnsOptions,
|
|
113
|
-
selectedColumnOption: selectedGroupColumnOption,
|
|
114
|
-
onChangeSelectedColumn: this.onSelectGroupColumn
|
|
115
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
116
|
-
className: "statistic-chart-parameter-divider"
|
|
117
|
-
}), /*#__PURE__*/_react.default.createElement(_summarySettings.default, {
|
|
118
|
-
label: _reactIntlUniversal.default.get('Summary_method'),
|
|
119
|
-
statItem: statItem,
|
|
120
|
-
selectedTableId: selectedTableId,
|
|
121
|
-
numericColumns: numericColumns,
|
|
122
|
-
summaryType: statItem.summary_type,
|
|
123
|
-
summaryMethod: statItem.summary_method,
|
|
124
|
-
summaryColumn: statItem.summary_column,
|
|
125
|
-
getColumnsOptions: getColumnsOptions,
|
|
126
|
-
onChangeSummaryType: this.props.onChangeSummaryType,
|
|
127
|
-
onSelectSummaryColumn: this.props.onSelectSummaryColumn,
|
|
128
|
-
onSelectSummaryMethod: this.props.onSelectSummaryMethod
|
|
129
|
-
}));
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
var _default = exports.default = MirrorSettings;
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
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 _toggleSetting = _interopRequireDefault(require("../../public-setting/toggle-setting"));
|
|
12
|
-
var _axisLabelPositionSetting = _interopRequireDefault(require("../../public-setting/axis-label-position-setting"));
|
|
13
|
-
var _indToggleSetting = _interopRequireDefault(require("../../public-setting/ind-toggle-setting"));
|
|
14
|
-
var _minMaxSetting = _interopRequireDefault(require("../../public-setting/min-max-setting"));
|
|
15
|
-
var _labelFontSizeEditor = _interopRequireDefault(require("../../basic-chart-settings/style-setting/label-font-size-editor"));
|
|
16
|
-
var _constants = require("../../../../constants");
|
|
17
|
-
class CombinationChartStyle extends _react.Component {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.renderShowAxisLabel = (type, position) => {
|
|
21
|
-
const {
|
|
22
|
-
statItem
|
|
23
|
-
} = this.props;
|
|
24
|
-
let {
|
|
25
|
-
show_x_axis_label
|
|
26
|
-
} = statItem || {};
|
|
27
|
-
if (type === 'x') {
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_toggleSetting.default, {
|
|
29
|
-
isChecked: show_x_axis_label || false,
|
|
30
|
-
handleToggleChange: this.onToggleXAxisLabel,
|
|
31
|
-
label: _reactIntlUniversal.default.get('Display_title')
|
|
32
|
-
});
|
|
33
|
-
} else {
|
|
34
|
-
const isChecked = this.props.statItem["show_y_axis_".concat(position, "_label")] || false;
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_toggleSetting.default, {
|
|
36
|
-
isChecked: isChecked,
|
|
37
|
-
handleToggleChange: () => this.onToggleYAxisLabel(position),
|
|
38
|
-
label: _reactIntlUniversal.default.get('Display_title')
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
this.onToggleXAxisLabel = () => {
|
|
43
|
-
let {
|
|
44
|
-
statItem,
|
|
45
|
-
eventBus
|
|
46
|
-
} = this.props;
|
|
47
|
-
let {
|
|
48
|
-
show_x_axis_label
|
|
49
|
-
} = statItem || {};
|
|
50
|
-
let updated = {
|
|
51
|
-
show_x_axis_label: !show_x_axis_label,
|
|
52
|
-
x_axis_label_position: !show_x_axis_label ? 'center' : null
|
|
53
|
-
};
|
|
54
|
-
const newStatItem = Object.assign({}, statItem, updated);
|
|
55
|
-
eventBus.dispatch(_constants.LABEL_CONFIG_CHANGED, newStatItem);
|
|
56
|
-
this.props.updateStatItem(newStatItem);
|
|
57
|
-
};
|
|
58
|
-
this.onToggleYAxisLabel = position => {
|
|
59
|
-
let {
|
|
60
|
-
statItem,
|
|
61
|
-
eventBus
|
|
62
|
-
} = this.props;
|
|
63
|
-
let updated = {
|
|
64
|
-
["show_y_axis_".concat(position, "_label")]: !statItem["show_y_axis_".concat(position, "_label")],
|
|
65
|
-
["y_axis_".concat(position, "_label_position")]: !statItem["show_y_axis_".concat(position, "_label")] ? 'center' : null
|
|
66
|
-
};
|
|
67
|
-
const newStatItem = Object.assign({}, statItem, updated);
|
|
68
|
-
eventBus.dispatch(_constants.LABEL_CONFIG_CHANGED, newStatItem);
|
|
69
|
-
this.props.updateStatItem(newStatItem);
|
|
70
|
-
};
|
|
71
|
-
this.onSelectAxisLabelPosition = (type, option, position) => {
|
|
72
|
-
let updated;
|
|
73
|
-
if (type === 'x') {
|
|
74
|
-
updated = {
|
|
75
|
-
x_axis_label_position: option.value
|
|
76
|
-
};
|
|
77
|
-
} else {
|
|
78
|
-
updated = {
|
|
79
|
-
["y_axis_".concat(position, "_label_position")]: option.value
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
const {
|
|
83
|
-
statItem,
|
|
84
|
-
eventBus
|
|
85
|
-
} = this.props;
|
|
86
|
-
const newStatItem = Object.assign({}, statItem, updated);
|
|
87
|
-
eventBus.dispatch(_constants.LABEL_CONFIG_CHANGED, newStatItem);
|
|
88
|
-
this.props.updateStatItem(newStatItem);
|
|
89
|
-
};
|
|
90
|
-
this.onToggleYAxisAutoRange = key => {
|
|
91
|
-
const {
|
|
92
|
-
statItem
|
|
93
|
-
} = this.props;
|
|
94
|
-
const updated = {
|
|
95
|
-
[key]: statItem[key] === undefined || statItem[key] === null ? false : !statItem[key]
|
|
96
|
-
};
|
|
97
|
-
this.props.updateStatItem(Object.assign({}, statItem, updated));
|
|
98
|
-
};
|
|
99
|
-
this.onYAxisMinChange = (key, min) => {
|
|
100
|
-
const newMin = parseInt(min);
|
|
101
|
-
if (!Number.isNaN(newMin)) {
|
|
102
|
-
const {
|
|
103
|
-
statItem
|
|
104
|
-
} = this.props;
|
|
105
|
-
const updated = {
|
|
106
|
-
[key]: newMin
|
|
107
|
-
};
|
|
108
|
-
this.props.updateStatItem(Object.assign({}, statItem, updated));
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
this.onYAxisMaxChange = (key, max) => {
|
|
112
|
-
const newMax = parseInt(max);
|
|
113
|
-
if (!Number.isNaN(newMax)) {
|
|
114
|
-
const {
|
|
115
|
-
statItem
|
|
116
|
-
} = this.props;
|
|
117
|
-
const updated = {
|
|
118
|
-
[key]: newMax
|
|
119
|
-
};
|
|
120
|
-
this.props.updateStatItem(Object.assign({}, statItem, updated));
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
this.onToggleDisplayData = () => {
|
|
124
|
-
const {
|
|
125
|
-
statItem
|
|
126
|
-
} = this.props;
|
|
127
|
-
const {
|
|
128
|
-
display_data
|
|
129
|
-
} = statItem || {};
|
|
130
|
-
const updated = {
|
|
131
|
-
display_data: !display_data
|
|
132
|
-
};
|
|
133
|
-
this.props.updateStatItem(Object.assign({}, statItem, updated));
|
|
134
|
-
};
|
|
135
|
-
this.onChangeLabelFontSize = label_font_size => {
|
|
136
|
-
const {
|
|
137
|
-
statItem
|
|
138
|
-
} = this.props;
|
|
139
|
-
this.props.updateStatItem(Object.assign({}, statItem, {
|
|
140
|
-
label_font_size
|
|
141
|
-
}));
|
|
142
|
-
};
|
|
143
|
-
this.renderLeftAutoRange = () => {
|
|
144
|
-
const {
|
|
145
|
-
statItem
|
|
146
|
-
} = this.props;
|
|
147
|
-
const {
|
|
148
|
-
y_axis_auto_range_left,
|
|
149
|
-
y_axis_min_left,
|
|
150
|
-
y_axis_max_left
|
|
151
|
-
} = statItem;
|
|
152
|
-
const checked = y_axis_auto_range_left === undefined || y_axis_auto_range_left === null ? true : y_axis_auto_range_left;
|
|
153
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
-
className: "mt-1"
|
|
155
|
-
}, /*#__PURE__*/_react.default.createElement(_toggleSetting.default, {
|
|
156
|
-
isChecked: checked,
|
|
157
|
-
handleToggleChange: () => {
|
|
158
|
-
this.onToggleYAxisAutoRange('y_axis_auto_range_left');
|
|
159
|
-
},
|
|
160
|
-
label: _reactIntlUniversal.default.get('Auto_range')
|
|
161
|
-
}), !checked && /*#__PURE__*/_react.default.createElement(_minMaxSetting.default, {
|
|
162
|
-
min: y_axis_min_left,
|
|
163
|
-
max: y_axis_max_left,
|
|
164
|
-
onMinChange: this.onYAxisMinChange.bind(this, 'y_axis_min_left'),
|
|
165
|
-
onMaxChange: this.onYAxisMaxChange.bind(this, 'y_axis_max_left')
|
|
166
|
-
}));
|
|
167
|
-
};
|
|
168
|
-
this.renderRightAutoRange = () => {
|
|
169
|
-
const {
|
|
170
|
-
statItem
|
|
171
|
-
} = this.props;
|
|
172
|
-
const {
|
|
173
|
-
y_axis_auto_range_right,
|
|
174
|
-
y_axis_min_right,
|
|
175
|
-
y_axis_max_right
|
|
176
|
-
} = statItem;
|
|
177
|
-
const checked = y_axis_auto_range_right === undefined || y_axis_auto_range_right === null ? true : y_axis_auto_range_right;
|
|
178
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
179
|
-
className: "mt-1"
|
|
180
|
-
}, /*#__PURE__*/_react.default.createElement(_toggleSetting.default, {
|
|
181
|
-
isChecked: checked,
|
|
182
|
-
handleToggleChange: () => {
|
|
183
|
-
this.onToggleYAxisAutoRange('y_axis_auto_range_right');
|
|
184
|
-
},
|
|
185
|
-
label: _reactIntlUniversal.default.get('Auto_range')
|
|
186
|
-
}), !checked && /*#__PURE__*/_react.default.createElement(_minMaxSetting.default, {
|
|
187
|
-
min: y_axis_min_right,
|
|
188
|
-
max: y_axis_max_right,
|
|
189
|
-
onMinChange: this.onYAxisMinChange.bind(this, 'y_axis_min_right'),
|
|
190
|
-
onMaxChange: this.onYAxisMaxChange.bind(this, 'y_axis_max_right')
|
|
191
|
-
}));
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
render() {
|
|
195
|
-
const {
|
|
196
|
-
statItem
|
|
197
|
-
} = this.props;
|
|
198
|
-
const {
|
|
199
|
-
show_x_axis_label,
|
|
200
|
-
show_y_axis_left_label,
|
|
201
|
-
show_y_axis_right_label,
|
|
202
|
-
display_data = false,
|
|
203
|
-
label_font_size = 12
|
|
204
|
-
} = statItem;
|
|
205
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
206
|
-
className: "statistic-chart-parameter-item"
|
|
207
|
-
}, /*#__PURE__*/_react.default.createElement("label", null, _reactIntlUniversal.default.get('X-axis')), this.renderShowAxisLabel('x'), show_x_axis_label && /*#__PURE__*/_react.default.createElement(_axisLabelPositionSetting.default, {
|
|
208
|
-
statItem: statItem,
|
|
209
|
-
axisType: 'x',
|
|
210
|
-
onSelectAxisLabelPosition: this.onSelectAxisLabelPosition
|
|
211
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
-
className: "statistic-chart-parameter-divider"
|
|
213
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
214
|
-
className: "statistic-chart-parameter-item"
|
|
215
|
-
}, /*#__PURE__*/_react.default.createElement("label", null, _reactIntlUniversal.default.get('Y-axis(primary)')), this.renderShowAxisLabel('y', 'left'), show_y_axis_left_label && /*#__PURE__*/_react.default.createElement(_axisLabelPositionSetting.default, {
|
|
216
|
-
statItem: statItem,
|
|
217
|
-
axisType: 'y_left',
|
|
218
|
-
onSelectAxisLabelPosition: (type, option) => this.onSelectAxisLabelPosition(type, option, 'left')
|
|
219
|
-
}), this.renderLeftAutoRange()), /*#__PURE__*/_react.default.createElement("div", {
|
|
220
|
-
className: "statistic-chart-parameter-item"
|
|
221
|
-
}, /*#__PURE__*/_react.default.createElement("label", null, _reactIntlUniversal.default.get('Y-axis(secondary)')), this.renderShowAxisLabel('y', 'right'), show_y_axis_right_label && /*#__PURE__*/_react.default.createElement(_axisLabelPositionSetting.default, {
|
|
222
|
-
statItem: statItem,
|
|
223
|
-
axisType: 'y_right',
|
|
224
|
-
onSelectAxisLabelPosition: (type, option) => this.onSelectAxisLabelPosition(type, option, 'right')
|
|
225
|
-
}), this.renderRightAutoRange()), /*#__PURE__*/_react.default.createElement("div", {
|
|
226
|
-
className: "statistic-chart-parameter-divider"
|
|
227
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
228
|
-
className: "statistic-chart-parameter-item"
|
|
229
|
-
}, /*#__PURE__*/_react.default.createElement(_indToggleSetting.default, {
|
|
230
|
-
isChecked: display_data,
|
|
231
|
-
handleToggleChange: this.onToggleDisplayData,
|
|
232
|
-
label: _reactIntlUniversal.default.get('Display_data')
|
|
233
|
-
}), display_data && /*#__PURE__*/_react.default.createElement(_labelFontSizeEditor.default, {
|
|
234
|
-
className: "mt-3",
|
|
235
|
-
fontSize: label_font_size,
|
|
236
|
-
onChangeFontSize: this.onChangeLabelFontSize
|
|
237
|
-
})));
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
var _default = exports.default = CombinationChartStyle;
|
package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
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 _reactstrap = require("reactstrap");
|
|
12
|
-
var _colorGroupSelector = _interopRequireDefault(require("../../color-setting/color-group-selector"));
|
|
13
|
-
var _constants = require("../../../../constants");
|
|
14
|
-
class HeatMapStyleSettings extends _react.Component {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.renderColorSetting = () => {
|
|
18
|
-
const {
|
|
19
|
-
onChangeColor,
|
|
20
|
-
statItem
|
|
21
|
-
} = this.props;
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_colorGroupSelector.default, {
|
|
23
|
-
currentColor: statItem.data_color,
|
|
24
|
-
onChangeColor: onChangeColor
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
this.onSubmit = evt => {
|
|
28
|
-
const {
|
|
29
|
-
statItem
|
|
30
|
-
} = this.props;
|
|
31
|
-
const key = evt.target.name;
|
|
32
|
-
const value = evt.target.value.trim().replace(/[^0-9]/g, '');
|
|
33
|
-
const newValue = value ? Number(value) : null;
|
|
34
|
-
if (newValue === statItem[key]) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (newValue) {
|
|
38
|
-
this.props.updateStatItem(Object.assign({}, statItem, {
|
|
39
|
-
[key]: newValue
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
this.onKeyDown = e => {
|
|
44
|
-
if (e.key === 'Enter') {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
e.target.blur();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
const {
|
|
52
|
-
statItem
|
|
53
|
-
} = this.props;
|
|
54
|
-
const {
|
|
55
|
-
grid_size,
|
|
56
|
-
grid_distance
|
|
57
|
-
} = statItem;
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, this.renderColorSetting(), /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
-
className: "statistic-chart-parameter-divider"
|
|
60
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
61
|
-
className: "statistic-chart-parameter-item"
|
|
62
|
-
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, {
|
|
63
|
-
for: "grid-size"
|
|
64
|
-
}, _reactIntlUniversal.default.get('Grid_size')), /*#__PURE__*/_react.default.createElement(_reactstrap.InputGroup, null, /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
65
|
-
type: "text",
|
|
66
|
-
id: "grid-size",
|
|
67
|
-
name: "grid_size",
|
|
68
|
-
defaultValue: grid_size || _constants.DEFAULT_GRID_SIZE,
|
|
69
|
-
onBlur: this.onSubmit,
|
|
70
|
-
onKeyDown: this.onKeyDown
|
|
71
|
-
}), /*#__PURE__*/_react.default.createElement(_reactstrap.InputGroupAddon, {
|
|
72
|
-
addonType: "append"
|
|
73
|
-
}, "px"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
-
className: "statistic-chart-parameter-item"
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, {
|
|
76
|
-
for: "grid-distance"
|
|
77
|
-
}, _reactIntlUniversal.default.get('Grid_distance')), /*#__PURE__*/_react.default.createElement(_reactstrap.InputGroup, null, /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
78
|
-
type: "text",
|
|
79
|
-
id: "grid-distance",
|
|
80
|
-
name: "grid_distance",
|
|
81
|
-
defaultValue: grid_distance || _constants.DEFAULT_GRID_DISTANCE,
|
|
82
|
-
onBlur: this.onSubmit,
|
|
83
|
-
onKeyDown: this.onKeyDown
|
|
84
|
-
}), /*#__PURE__*/_react.default.createElement(_reactstrap.InputGroupAddon, {
|
|
85
|
-
addonType: "append"
|
|
86
|
-
}, "px"))));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
var _default = exports.default = HeatMapStyleSettings;
|