dtable-statistic 4.4.24-alpha.9 → 5.0.0
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/color-picker.css +53 -0
- package/es/assets/css/color-rules-popover.css +144 -0
- package/es/assets/css/dashboard.css +0 -1
- package/es/assets/css/dialog.css +0 -30
- package/es/assets/css/slider.css +77 -0
- package/es/assets/css/statistic-chart.module.css +11 -0
- package/es/assets/css/statistic-custom-title.module.css +3 -0
- package/es/assets/css/statistic-custom.module.css +4 -0
- package/es/assets/css/statistic-numeric-column-item.module.css +43 -0
- package/es/assets/css/statistic-time-picker.module.css +21 -0
- package/es/calculator/base-calculator.js +80 -0
- package/es/calculator/basic-chart-calculator.js +349 -0
- package/es/calculator/combination-calculator.js +246 -0
- package/es/calculator/compare-bar-calculator.js +197 -0
- package/es/calculator/completeness-calculator.js +215 -0
- package/es/calculator/copy-value.js +53 -0
- package/es/calculator/dashboard-calculator.js +70 -0
- package/es/calculator/heat-map-calculator.js +148 -0
- package/es/calculator/horizontal-bar-calculator.js +67 -0
- package/es/calculator/index.js +81 -0
- package/es/calculator/map-calculator.js +103 -0
- package/es/calculator/mirror-calculator.js +146 -0
- package/es/calculator/number-card-calculator.js +60 -0
- package/es/calculator/pivot-table-calculator.js +821 -0
- package/es/calculator/scatter-calculator.js +75 -0
- package/es/calculator/thread-manager.js +57 -0
- package/es/calculator/trend-calculator.js +113 -0
- package/es/calculator/workers/basic-chart-calculator-worker.js +495 -0
- package/es/calculator/workers/calculator.worker.js +44 -0
- package/es/calculator/workers/card-calculator-worker.js +40 -0
- package/es/calculator/workers/combination-calculator-worker.js +276 -0
- package/es/calculator/workers/compare-bar-chart-calculator-worker.js +150 -0
- package/es/calculator/workers/completeness-calculator-worker.js +208 -0
- package/es/calculator/workers/dashboard-calculator-worker.js +68 -0
- package/es/calculator/workers/mirror-calculator-worker.js +152 -0
- package/es/calculator/workers/pivot-table-calculator-worker.js +718 -0
- package/es/calculator/workers/scatter-calculator-worker.js +80 -0
- package/es/calculator/workers/trend-calculator-worker.js +108 -0
- package/es/calculator/world-map-calculator.js +124 -0
- package/es/components/dialog/chart-addition-edit-dialog.js +90 -0
- package/es/components/dialog/chart-addition-widgets/chart-selector.js +259 -0
- package/es/components/dialog/chart-addition-widgets/statistic-chart-selector.module.css +83 -0
- package/es/components/dialog/enlarged-chart-dialog.js +13 -8
- package/es/components/dialog/statistic-record-dialog/index.js +34 -25
- package/es/components/dialog/statistic-types-dialog/index.css +14 -0
- package/es/components/dialog/statistic-types-dialog/index.js +62 -0
- package/es/components/dropdown-menu/statistic-dropdown-menu.js +2 -2
- package/es/components/popover/color-rules/color-rule.js +183 -0
- package/es/components/popover/color-rules/index.js +87 -0
- package/es/components/popover/color-rules/rule-filters/filter.js +221 -0
- package/es/components/popover/color-rules/rule-filters/index.css +210 -0
- package/es/components/popover/color-rules/rule-filters/index.js +97 -0
- package/es/components/popover/color-rules/rule-filters/number-input.js +78 -0
- package/es/components/popover/color-rules-popover.js +218 -0
- package/es/components/popover/color-selector-popover.js +83 -0
- package/es/constants/index.js +2 -1
- package/es/custom-g2.js +644 -0
- package/es/dashboard.js +31 -9
- package/es/desktop-dashboard.js +32 -51
- package/es/mobile-dashboard.js +16 -8
- package/es/model/bar-group.js +58 -0
- package/es/model/bar.js +47 -0
- package/es/model/base-model.js +18 -0
- package/es/model/basic-number-card.js +25 -0
- package/es/model/combination.js +48 -0
- package/es/model/compare-bar.js +56 -0
- package/es/model/completeness-group.js +31 -0
- package/es/model/completeness.js +25 -0
- package/es/model/custom-bar.js +25 -0
- package/es/model/dashboard.js +20 -0
- package/es/model/generic-model.js +222 -0
- package/es/model/heat-map.js +33 -0
- package/es/model/horizontal-bar-group.js +55 -0
- package/es/model/horizontal-bar.js +47 -0
- package/es/model/index.js +187 -0
- package/es/model/map.js +38 -0
- package/es/model/mirror.js +33 -0
- package/es/model/pie.js +38 -0
- package/es/model/ring.js +40 -0
- package/es/model/scatter.js +22 -0
- package/es/model/table.js +32 -0
- package/es/model/trend.js +32 -0
- package/es/model/world-map.js +34 -0
- package/es/service/chart-service.js +15 -8
- package/es/service/dashboard-service.js +29 -25
- package/es/stat-editor/chart-name-editor.js +68 -0
- package/es/stat-editor/index.js +75 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/basic-number-card-settings.js +153 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/combination-settings.js +422 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/dashboard-chart-settings.js +203 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/geo-granularity-settings.js +23 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/heat-map-settings.js +104 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/index.js +334 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/map-settings.js +119 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/mirror-settings.js +132 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/combination-style-setting.js +240 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/heat-map-settings.js +89 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/style-setting/map-setting.js +138 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/summary-settings.js +331 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/trend-chart-settings.js +143 -0
- package/es/stat-editor/stat-settings/advance-chart-settings/world-map-settings.js +109 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/advance-bar-chart-settings.js +153 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/bar-settings.js +144 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/completeness-chart-settings.js +214 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/custom-bar-settings.js +121 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/groupby-settings.js +172 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-axis-group-settings.js +366 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-bar-settings.js +142 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/horizontal-group-chart-settings.js +150 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/index.js +473 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/pie-settings.js +182 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/pivot-table-settings.js +564 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/scatter-settings.js +112 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/stack-item-settings.js +87 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/stacks-settings.js +187 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/bar-chart-style-setting.js +300 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/completeness-style.js +113 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/horizontal-bar-chart-style.js +289 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/label-font-size-editor.js +58 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/pie-chart-style-settings.js +359 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/style-setting/time-compare-style.js +48 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-method-setting.js +121 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/summary-settings.js +143 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/time-comparison-settings.js +269 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/timer-picker.js +104 -0
- package/es/stat-editor/stat-settings/basic-chart-settings/y-axis-group-settings.js +366 -0
- package/es/stat-editor/stat-settings/color-setting/color-group-selector.js +55 -0
- package/es/stat-editor/stat-settings/color-setting/color-picker.js +130 -0
- package/es/stat-editor/stat-settings/color-setting/color-use-type-selector.js +374 -0
- package/es/stat-editor/stat-settings/map/map-level.js +72 -0
- package/es/stat-editor/stat-settings/map/map-province-city.js +151 -0
- package/es/stat-editor/stat-settings/public-setting/axis-label-position-setting.js +108 -0
- package/es/stat-editor/stat-settings/public-setting/base-settings.js +154 -0
- package/es/stat-editor/stat-settings/public-setting/calender.js +125 -0
- package/es/stat-editor/stat-settings/public-setting/column-settings.js +24 -0
- package/es/stat-editor/stat-settings/public-setting/custom-title-setting.js +62 -0
- package/es/stat-editor/stat-settings/public-setting/data-sort-setting.js +61 -0
- package/es/stat-editor/stat-settings/public-setting/ind-toggle-setting.js +35 -0
- package/es/stat-editor/stat-settings/public-setting/min-max-setting.js +60 -0
- package/es/stat-editor/stat-settings/public-setting/numeric-summary-item.js +123 -0
- package/es/stat-editor/stat-settings/public-setting/toggle-setting.js +33 -0
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.css +29 -0
- package/es/stat-editor/stat-settings/public-setting/type-settings/index.js +82 -0
- package/es/stat-list/chart-preview.js +20 -19
- package/es/stat-list/index.js +21 -15
- package/es/stat-view/area-chart.js +551 -0
- package/es/stat-view/bar-chart.js +582 -0
- package/es/stat-view/base-chart.js +132 -0
- package/es/stat-view/basic-number-card.js +201 -0
- package/es/stat-view/combination-chart.js +546 -0
- package/es/stat-view/compare-chart.js +483 -0
- package/es/stat-view/completeness-chart.js +390 -0
- package/es/stat-view/custom-bar.js +418 -0
- package/es/stat-view/dashboard-chart.js +266 -0
- package/es/stat-view/heat-map.js +463 -0
- package/es/stat-view/horizontal-bar-chart.js +562 -0
- package/es/stat-view/index.js +156 -47
- package/es/stat-view/line-chart.js +518 -0
- package/es/stat-view/map.js +448 -0
- package/es/stat-view/mirror.js +275 -0
- package/es/stat-view/pie-chart.js +290 -0
- package/es/stat-view/pivot-table/index.js +196 -0
- package/es/stat-view/pivot-table/one-dimension-table-no-numeric-columns.js +156 -0
- package/es/stat-view/pivot-table/one-dimension-table-with-numeric-columns.js +176 -0
- package/es/stat-view/pivot-table/pivot-table-display-name.js +215 -0
- package/es/stat-view/pivot-table/statistic-pivot-table.module.css +132 -0
- package/es/stat-view/pivot-table/two-dimension-table.js +384 -0
- package/es/stat-view/ring-chart.js +392 -0
- package/es/stat-view/scatter-chart.js +306 -0
- package/es/stat-view/treemap-chart.js +253 -0
- package/es/stat-view/trend-chart.js +249 -0
- package/es/stat-view/world-map.js +431 -0
- package/es/tabs/tab.js +2 -2
- package/es/utils/basic-chart-utils.js +29 -0
- package/es/utils/cell-format.js +115 -0
- package/es/utils/collaborator.js +50 -0
- package/es/utils/color-utils.js +134 -0
- package/es/utils/column-utils.js +110 -0
- package/es/utils/column.js +20 -0
- package/es/utils/common-utils.js +352 -2
- package/es/utils/date-format.js +71 -0
- package/es/utils/export-table-utils.js +69 -0
- package/es/utils/index.js +89 -12
- package/es/utils/map.js +114 -0
- package/es/utils/model.js +19 -0
- package/es/utils/row-utils.js +134 -0
- package/es/utils/search.js +73 -0
- package/es/utils/sql-utils.js +359 -0
- package/es/utils/stat-utils.js +351 -0
- package/es/utils/trend-utils.js +135 -0
- package/package.json +8 -6
- package/es/components/dialog/chart-edit-dialog.js +0 -93
- package/es/components/dtable-popover.js +0 -97
- package/es/components/dtable-search-input.js +0 -135
- package/es/components/index.js +0 -41
- package/es/components/loading.js +0 -15
- package/es/components/modal-portal.js +0 -26
- package/es/model/conver-statItem.js +0 -124
|
@@ -0,0 +1,119 @@
|
|
|
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;
|
|
@@ -0,0 +1,132 @@
|
|
|
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;
|
|
@@ -0,0 +1,240 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
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;
|