sea-chart 2.0.37 → 2.0.38
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/dist/api/index.js +20 -69
- package/dist/assets/css/sea-chart-d3-tooltip.css +0 -1
- package/dist/components/cell-factory/FormatterConfig.js +55 -62
- package/dist/components/cell-factory/SimpleCellFormatter.js +5 -12
- package/dist/components/cell-factory/SingleSelectOption.js +11 -18
- package/dist/components/cell-factory/cell-editor-factory.js +5 -12
- package/dist/components/cell-factory/cell-formatter-factory.js +4 -11
- package/dist/components/cell-factory/link-content.js +30 -38
- package/dist/components/chart-color-selector/color-selector.js +11 -18
- package/dist/components/collaborator/index.js +7 -14
- package/dist/components/color-picker/index.js +12 -19
- package/dist/components/color-popover/color-rules/color-rule.js +26 -34
- package/dist/components/color-popover/color-rules/index.js +7 -15
- package/dist/components/color-popover/color-rules/rule-filters/filter.js +27 -34
- package/dist/components/color-popover/color-rules/rule-filters/index.js +17 -25
- package/dist/components/color-popover/color-rules/rule-filters/number-input.js +9 -17
- package/dist/components/color-popover/color-rules-popover.js +31 -37
- package/dist/components/color-popover/color-selector-popover.js +12 -20
- package/dist/components/color-setting/color-group-selector.js +13 -21
- package/dist/components/common-add-tool/index.js +8 -15
- package/dist/components/data-process-setter/data-setting-header.js +7 -14
- package/dist/components/data-process-setter/hide-column-setter.js +13 -20
- package/dist/components/data-process-setter/index.js +4 -27
- package/dist/components/data-process-setter/sort-setter.js +18 -26
- package/dist/components/draggable/Draggable.js +7 -13
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +41 -48
- package/dist/components/drill-down-settings/drill-down-fields-settings/index.js +10 -18
- package/dist/components/drill-down-settings/index.js +11 -18
- package/dist/components/dtable-popover/index.js +13 -20
- package/dist/components/dtable-search-input/index.js +13 -21
- package/dist/components/font-settings/index.js +14 -22
- package/dist/components/goal-line-setting/goal-setting-item.js +6 -14
- package/dist/components/goal-line-setting/index.js +12 -19
- package/dist/components/highlighter/highlighter.js +7 -14
- package/dist/components/icon/index.js +12 -23
- package/dist/components/index.js +7 -48
- package/dist/components/loading/index.js +6 -13
- package/dist/components/number-input/index.js +11 -24
- package/dist/components/pixel-editor/index.js +15 -23
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +13 -16
- package/dist/components/popover/hide-column-popover/hide-column-popover.css +5 -1
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +28 -38
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +9 -18
- package/dist/components/popover/sort-popover/sort-popover.js +58 -69
- package/dist/components/resize-handle/ResizeHandle.js +6 -13
- package/dist/components/row-card/row-card-header-cell.js +17 -24
- package/dist/components/row-card/row-card-header.js +15 -22
- package/dist/components/row-card/row-card-item.js +35 -43
- package/dist/components/row-card/row-card.js +17 -25
- package/dist/components/statistic-record-dialog/index.js +61 -68
- package/dist/components/tooltip/index.js +39 -28
- package/dist/components/types-dialog/index.js +62 -70
- package/dist/components/types-dialog/use-force-update.js +4 -10
- package/dist/constants/color-rules.js +8 -14
- package/dist/constants/common-constants.js +8 -14
- package/dist/constants/error.js +2 -8
- package/dist/constants/geolocation.js +9 -15
- package/dist/constants/index.js +142 -271
- package/dist/constants/key-codes.js +0 -2
- package/dist/constants/model.js +3 -9
- package/dist/constants/regions.js +3 -8
- package/dist/constants/style.js +6 -12
- package/dist/constants/table.js +1 -7
- package/dist/constants/type-image.js +33 -39
- package/dist/constants/type.js +3 -9
- package/dist/context.js +13 -20
- package/dist/editor/index.js +13 -16
- package/dist/index.js +13 -104
- package/dist/intl.js +10 -17
- package/dist/locale/index.js +16 -23
- package/dist/locale/lang/de.js +2 -7
- package/dist/locale/lang/en.js +2 -7
- package/dist/locale/lang/es.js +2 -7
- package/dist/locale/lang/fr.js +2 -7
- package/dist/locale/lang/pt.js +2 -7
- package/dist/locale/lang/ru.js +2 -7
- package/dist/locale/lang/zh_CN.js +2 -7
- package/dist/model/area-group.js +12 -19
- package/dist/model/area.js +12 -19
- package/dist/model/bar-custom.js +11 -18
- package/dist/model/bar-group.js +12 -19
- package/dist/model/bar-stack.js +10 -17
- package/dist/model/bar.js +11 -18
- package/dist/model/base-model.js +4 -11
- package/dist/model/basic-number-card.js +13 -20
- package/dist/model/chart.js +7 -13
- package/dist/model/combination.js +15 -22
- package/dist/model/compare-bar.js +14 -21
- package/dist/model/completeness-group.js +11 -18
- package/dist/model/completeness.js +10 -17
- package/dist/model/dashboard.js +7 -14
- package/dist/model/funnel.js +14 -21
- package/dist/model/generic-model.js +135 -143
- package/dist/model/heat-map.js +9 -16
- package/dist/model/horizontal-bar.js +11 -18
- package/dist/model/horizontal-group-bar.js +10 -17
- package/dist/model/index.js +69 -93
- package/dist/model/line-group.js +13 -20
- package/dist/model/line.js +12 -19
- package/dist/model/map-bubble.js +14 -17
- package/dist/model/map.js +12 -19
- package/dist/model/mirror.js +13 -20
- package/dist/model/pie.js +12 -19
- package/dist/model/ring.js +12 -19
- package/dist/model/scatter.js +10 -17
- package/dist/model/stacked-horizontal-bar.js +11 -18
- package/dist/model/table-element.js +5 -12
- package/dist/model/table.js +7 -14
- package/dist/model/tree-map.js +7 -14
- package/dist/model/trend.js +11 -18
- package/dist/model/user.js +1 -7
- package/dist/model/world-map-bubble.js +12 -19
- package/dist/model/world-map.js +12 -19
- package/dist/services/map-json.js +14 -17
- package/dist/settings/advance-bar-settings/data-settings.js +36 -44
- package/dist/settings/advance-bar-settings/index.js +3 -20
- package/dist/settings/advance-bar-settings/style-settings.js +66 -73
- package/dist/settings/bar-settings/data-settings.js +39 -47
- package/dist/settings/bar-settings/index.js +3 -20
- package/dist/settings/bar-settings/style-settings.js +51 -59
- package/dist/settings/basic-number-card/data-settings.js +50 -57
- package/dist/settings/basic-number-card/index.js +3 -20
- package/dist/settings/basic-number-card/style-settings.js +19 -27
- package/dist/settings/combination-settings/data-settings.js +55 -64
- package/dist/settings/combination-settings/index.js +3 -20
- package/dist/settings/combination-settings/style-settings.js +67 -75
- package/dist/settings/completeness-settings/callbacks/callbacks.js +16 -27
- package/dist/settings/completeness-settings/data-settings/completion-settings.js +21 -28
- package/dist/settings/completeness-settings/data-settings/data-settings.js +25 -32
- package/dist/settings/completeness-settings/index.js +3 -20
- package/dist/settings/completeness-settings/style-settings.js +19 -26
- package/dist/settings/dashboard-settings/data-settings.js +44 -51
- package/dist/settings/dashboard-settings/index.js +2 -13
- package/dist/settings/data-settings.js +72 -79
- package/dist/settings/funnel-settings/components/dnd-item/dnd-item.js +12 -19
- package/dist/settings/funnel-settings/components/dnd-list.js +15 -23
- package/dist/settings/funnel-settings/components/funnel-label-setting.js +32 -40
- package/dist/settings/funnel-settings/components/funnel-layer-setting.js +22 -30
- package/dist/settings/funnel-settings/data-settings.js +23 -31
- package/dist/settings/funnel-settings/index.js +3 -20
- package/dist/settings/funnel-settings/style-settings.js +11 -19
- package/dist/settings/heat-map-settings/data-settings.js +18 -26
- package/dist/settings/heat-map-settings/index.js +3 -20
- package/dist/settings/heat-map-settings/style-settings.js +18 -26
- package/dist/settings/horizontal-bar-settings/data-settings.js +12 -19
- package/dist/settings/horizontal-bar-settings/index.js +3 -20
- package/dist/settings/horizontal-bar-settings/style-settings.js +12 -19
- package/dist/settings/index.js +57 -70
- package/dist/settings/map-settings/components/location-field-selector.js +10 -17
- package/dist/settings/map-settings/components/map-level-selector.js +11 -18
- package/dist/settings/map-settings/components/map-province-city-selector.js +19 -26
- package/dist/settings/map-settings/index.js +3 -20
- package/dist/settings/map-settings/map-data-settings.js +23 -30
- package/dist/settings/map-settings/map-style-settings.js +27 -35
- package/dist/settings/mirror-settings/data-settings.js +26 -34
- package/dist/settings/mirror-settings/index.js +2 -13
- package/dist/settings/pie-settings/data-settings.js +33 -41
- package/dist/settings/pie-settings/index.js +3 -20
- package/dist/settings/pie-settings/style-settings.js +47 -55
- package/dist/settings/scatter/data-settings.js +27 -34
- package/dist/settings/scatter/index.js +3 -12
- package/dist/settings/stacks-settings/index.js +19 -27
- package/dist/settings/stacks-settings/stack-item-settings.js +19 -27
- package/dist/settings/style-settings.js +65 -73
- package/dist/settings/table-element-settings/components/data-filter.js +49 -58
- package/dist/settings/table-element-settings/data-settings.js +21 -29
- package/dist/settings/table-element-settings/index.css +1 -31
- package/dist/settings/table-element-settings/index.js +2 -13
- package/dist/settings/table-settings/data-settings.js +113 -120
- package/dist/settings/table-settings/index.js +2 -13
- package/dist/settings/time-comparison-settings/data-settings.js +43 -51
- package/dist/settings/time-comparison-settings/index.js +3 -20
- package/dist/settings/time-comparison-settings/style-settings.js +44 -52
- package/dist/settings/trend-settings/data-settings.js +24 -32
- package/dist/settings/trend-settings/index.js +3 -20
- package/dist/settings/trend-settings/style-setting.js +19 -27
- package/dist/settings/widgets/basic-summary/index.js +59 -66
- package/dist/settings/widgets/chart-type/index.js +18 -26
- package/dist/settings/widgets/color-settings/index.js +72 -80
- package/dist/settings/widgets/common-data-settings.js +27 -34
- package/dist/settings/widgets/data-filter/index.js +59 -59
- package/dist/settings/widgets/data-sort.js +16 -24
- package/dist/settings/widgets/date-summary-item.js +26 -34
- package/dist/settings/widgets/display-values-settings/index.js +14 -22
- package/dist/settings/widgets/divider/index.js +8 -16
- package/dist/settings/widgets/font-settings/font-color-settings.js +11 -19
- package/dist/settings/widgets/font-settings/font-size-settings.js +14 -22
- package/dist/settings/widgets/font-settings/font-weight-settings.js +17 -25
- package/dist/settings/widgets/font-settings/index.js +4 -27
- package/dist/settings/widgets/group-by.js +52 -59
- package/dist/settings/widgets/min-max-setting.js +10 -18
- package/dist/settings/widgets/mininum-slice-percent.js +10 -18
- package/dist/settings/widgets/numeric-summary-item.js +25 -33
- package/dist/settings/widgets/select-line-type/index.js +10 -17
- package/dist/settings/widgets/select-table/index.js +9 -16
- package/dist/settings/widgets/select-view/index.js +20 -28
- package/dist/settings/widgets/stack.js +14 -22
- package/dist/settings/widgets/summary-method-setting.js +17 -25
- package/dist/settings/widgets/summary-settings.js +75 -82
- package/dist/settings/widgets/switch/index.js +9 -16
- package/dist/settings/widgets/text-horizontal-settings.js +15 -23
- package/dist/settings/widgets/time-picker.js +29 -37
- package/dist/settings/widgets/title-settings/index.js +29 -37
- package/dist/settings/widgets/title-settings/title-text.js +5 -12
- package/dist/settings/widgets/x-axios.js +0 -1
- package/dist/settings/widgets/y-axis-group-settings.js +65 -72
- package/dist/utils/cell-format-utils.js +25 -33
- package/dist/utils/cell-value-utils.js +4 -11
- package/dist/utils/chart-utils/base-utils.js +467 -367
- package/dist/utils/chart-utils/index.js +29 -40
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +78 -85
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +20 -21
- package/dist/utils/chart-utils/original-data-utils/combination-calculator.js +45 -52
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +21 -28
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +33 -40
- package/dist/utils/chart-utils/original-data-utils/dashboard-calculator.js +28 -26
- package/dist/utils/chart-utils/original-data-utils/index.js +50 -57
- package/dist/utils/chart-utils/original-data-utils/mirror-calculator.js +19 -26
- package/dist/utils/chart-utils/original-data-utils/pivot-table-calculator.js +94 -97
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +19 -25
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +50 -36
- package/dist/utils/chart-utils/sql-statistics-utils.js +385 -388
- package/dist/utils/chart.js +9 -17
- package/dist/utils/collaborator-manager.js +3 -9
- package/dist/utils/collaborator-utils.js +19 -31
- package/dist/utils/collaborator.js +6 -15
- package/dist/utils/color-utils.js +18 -29
- package/dist/utils/column-utils.js +88 -102
- package/dist/utils/common-utils.js +28 -53
- package/dist/utils/concurrency-manager.js +1 -7
- package/dist/utils/contexts.js +7 -11
- package/dist/utils/date-translate.js +12 -20
- package/dist/utils/digital-sign-utils.js +7 -14
- package/dist/utils/event-bus.js +1 -7
- package/dist/utils/hotkey.js +5 -11
- package/dist/utils/index.js +73 -219
- package/dist/utils/key-generator.js +2 -9
- package/dist/utils/map.js +22 -31
- package/dist/utils/object-utils.js +2 -8
- package/dist/utils/options-utils.js +10 -18
- package/dist/utils/row-record-utils.js +251 -183
- package/dist/utils/row-utils.js +27 -38
- package/dist/utils/search.js +24 -32
- package/dist/utils/sql/chart-data-sql.js +106 -112
- package/dist/utils/sql/column-2-sql-column.js +162 -172
- package/dist/utils/sql/index.js +3 -27
- package/dist/utils/trend-utils.js +50 -45
- package/dist/view/index.css +2 -8
- package/dist/view/index.js +102 -103
- package/dist/view/title/index.js +16 -24
- package/dist/view/wrapper/area-group.js +57 -57
- package/dist/view/wrapper/area.js +43 -51
- package/dist/view/wrapper/bar-compare.js +56 -48
- package/dist/view/wrapper/bar-custom-stack.js +73 -55
- package/dist/view/wrapper/bar-group.js +94 -73
- package/dist/view/wrapper/bar-stack.js +49 -57
- package/dist/view/wrapper/bar.js +40 -48
- package/dist/view/wrapper/basic-number-card.js +50 -34
- package/dist/view/wrapper/chart-component.js +164 -569
- package/dist/view/wrapper/combination.js +55 -63
- package/dist/view/wrapper/completeness-group.js +140 -93
- package/dist/view/wrapper/completeness.js +36 -44
- package/dist/view/wrapper/dashboard.js +104 -59
- package/dist/view/wrapper/funnel.js +40 -43
- package/dist/view/wrapper/heat-map.js +62 -70
- package/dist/view/wrapper/horizontal-bar-group.js +70 -58
- package/dist/view/wrapper/horizontal-bar-stack.js +48 -56
- package/dist/view/wrapper/horizontal-bar.js +41 -49
- package/dist/view/wrapper/index.js +107 -115
- package/dist/view/wrapper/line-group.js +49 -52
- package/dist/view/wrapper/line.js +42 -50
- package/dist/view/wrapper/map-bubble.js +40 -48
- package/dist/view/wrapper/map-world-bubble.js +40 -47
- package/dist/view/wrapper/map-world.js +42 -49
- package/dist/view/wrapper/map.js +42 -50
- package/dist/view/wrapper/mirror.js +41 -49
- package/dist/view/wrapper/pie.js +45 -53
- package/dist/view/wrapper/ring.js +50 -58
- package/dist/view/wrapper/scatter.js +50 -56
- package/dist/view/wrapper/table/index.js +14 -22
- package/dist/view/wrapper/table/one-dimension-table-no-numeric-columns.js +49 -57
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +53 -61
- package/dist/view/wrapper/table/pivot-table-display-name.js +82 -90
- package/dist/view/wrapper/table/two-dimension-table.js +85 -92
- package/dist/view/wrapper/table-element/components/dataset-utils.js +23 -36
- package/dist/view/wrapper/table-element/components/formatter.js +90 -99
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +23 -32
- package/dist/view/wrapper/table-element/components/formatters/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +90 -97
- package/dist/view/wrapper/table-element/components/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/link-formatter.js +90 -97
- package/dist/view/wrapper/table-element/components/record.js +13 -20
- package/dist/view/wrapper/table-element/components/records-body.js +9 -17
- package/dist/view/wrapper/table-element/components/records-header/index.js +7 -16
- package/dist/view/wrapper/table-element/components/records-header/records-header-cell.js +8 -16
- package/dist/view/wrapper/table-element/components/records.js +25 -33
- package/dist/view/wrapper/table-element/components/resize-column-handle/resize-column-handle.js +8 -13
- package/dist/view/wrapper/table-element/components/utils.js +6 -16
- package/dist/view/wrapper/table-element/components/value-display-utils.js +4 -11
- package/dist/view/wrapper/table-element/components/vertical-scrollbar/index.js +6 -13
- package/dist/view/wrapper/table-element/index.js +30 -43
- package/dist/view/wrapper/treemap.js +38 -46
- package/dist/view/wrapper/trend.js +80 -65
- package/package.json +15 -12
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.default = LocationFieldSelector;
|
|
8
|
-
var _DTableSelect2 = _interopRequireDefault(require("dtable-ui-component/lib/DTableSelect"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
|
-
var _intl = _interopRequireDefault(require("../../../intl"));
|
|
12
|
-
var _columnUtils = require("../../../utils/column-utils");
|
|
13
|
-
function LocationFieldSelector(_ref) {
|
|
1
|
+
import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FormGroup, Label } from 'reactstrap';
|
|
4
|
+
import intl from '../../../intl';
|
|
5
|
+
import { getColumnOptions } from '../../../utils/column-utils';
|
|
6
|
+
export default function LocationFieldSelector(_ref) {
|
|
14
7
|
let {
|
|
15
8
|
locationColumns,
|
|
16
9
|
onChange,
|
|
@@ -19,7 +12,7 @@ function LocationFieldSelector(_ref) {
|
|
|
19
12
|
const currentGeoColumnKey = chart.config.geo_column_key;
|
|
20
13
|
|
|
21
14
|
// get options
|
|
22
|
-
const options =
|
|
15
|
+
const options = getColumnOptions(locationColumns);
|
|
23
16
|
const selectedOption = options.find(option => option.value.key === currentGeoColumnKey);
|
|
24
17
|
function handleGeoChange(option) {
|
|
25
18
|
if (option.value.key === currentGeoColumnKey) return;
|
|
@@ -27,11 +20,11 @@ function LocationFieldSelector(_ref) {
|
|
|
27
20
|
geo_column_key: option.value.key
|
|
28
21
|
});
|
|
29
22
|
}
|
|
30
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, null, intl.get('Loaction_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
|
|
31
24
|
menuPortalTarget: "#sea-chart-settings-content",
|
|
32
|
-
placeholder:
|
|
25
|
+
placeholder: intl.get('Select_field'),
|
|
33
26
|
noOptionsMessage: () => {
|
|
34
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/React.createElement("span", null, intl.get('No_column'));
|
|
35
28
|
},
|
|
36
29
|
value: selectedOption,
|
|
37
30
|
onChange: handleGeoChange,
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.default = MapLevelSelector;
|
|
8
|
-
var _DTableSelect2 = _interopRequireDefault(require("dtable-ui-component/lib/DTableSelect"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
|
-
var _utils = require("../../../utils");
|
|
12
|
-
var _geolocation = require("../../../constants/geolocation");
|
|
13
|
-
function MapLevelSelector(_ref) {
|
|
1
|
+
import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FormGroup } from 'reactstrap';
|
|
4
|
+
import { fixGeoGranularity } from '../../../utils';
|
|
5
|
+
import { MAP_LEVELS } from '../../../constants/geolocation';
|
|
6
|
+
export default function MapLevelSelector(_ref) {
|
|
14
7
|
let {
|
|
15
8
|
onChange,
|
|
16
9
|
mapLevel,
|
|
17
10
|
mapLocation
|
|
18
11
|
} = _ref;
|
|
19
|
-
const mapLevelOptions =
|
|
12
|
+
const mapLevelOptions = MAP_LEVELS.map(mapLevel => {
|
|
20
13
|
return {
|
|
21
|
-
label: /*#__PURE__*/
|
|
14
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
22
15
|
className: "select-option-name"
|
|
23
16
|
}, mapLevel.name),
|
|
24
17
|
value: mapLevel.key
|
|
@@ -34,16 +27,16 @@ function MapLevelSelector(_ref) {
|
|
|
34
27
|
if (newLevel === mapLevel) return;
|
|
35
28
|
const updated = {
|
|
36
29
|
map_level: newLevel,
|
|
37
|
-
geolocation_granularity:
|
|
30
|
+
geolocation_granularity: fixGeoGranularity({
|
|
38
31
|
mapLevel: newLevel,
|
|
39
32
|
mapLocation: mapLocation
|
|
40
33
|
})
|
|
41
34
|
};
|
|
42
35
|
onChange(updated);
|
|
43
36
|
};
|
|
44
|
-
return /*#__PURE__*/
|
|
37
|
+
return /*#__PURE__*/React.createElement(FormGroup, {
|
|
45
38
|
className: "statistic-chart-parameter-item"
|
|
46
|
-
}, /*#__PURE__*/
|
|
39
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5730\u56FE\u7EA7\u522B"), /*#__PURE__*/React.createElement(_DTableSelect, {
|
|
47
40
|
menuPortalTarget: "#sea-chart-settings-content",
|
|
48
41
|
value: getSelectedMapLevelOption(),
|
|
49
42
|
options: mapLevelOptions,
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.default = MapProvinceCitySelector;
|
|
9
|
-
var _DTableSelect2 = _interopRequireDefault(require("dtable-ui-component/lib/DTableSelect"));
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _reactstrap = require("reactstrap");
|
|
12
|
-
var _constants = require("../../../constants");
|
|
13
|
-
var _utils = require("../../../utils");
|
|
14
|
-
function MapProvinceCitySelector(_ref) {
|
|
1
|
+
import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
|
|
2
|
+
import React, { Fragment } from 'react';
|
|
3
|
+
import { FormGroup } from 'reactstrap';
|
|
4
|
+
import { MAP_LEVEL } from '../../../constants';
|
|
5
|
+
import { regions } from '../../../constants';
|
|
6
|
+
import { fixGeoGranularity } from '../../../utils';
|
|
7
|
+
export default function MapProvinceCitySelector(_ref) {
|
|
15
8
|
let {
|
|
16
9
|
mapLevel,
|
|
17
10
|
mapLocation,
|
|
18
11
|
onChange
|
|
19
12
|
} = _ref;
|
|
20
|
-
const provinceOptions =
|
|
13
|
+
const provinceOptions = regions.map(provinceWithCities => {
|
|
21
14
|
const {
|
|
22
15
|
name
|
|
23
16
|
} = provinceWithCities;
|
|
24
17
|
return {
|
|
25
|
-
label: /*#__PURE__*/
|
|
18
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
26
19
|
className: "select-option-name"
|
|
27
20
|
}, name),
|
|
28
21
|
value: name
|
|
@@ -30,14 +23,14 @@ function MapProvinceCitySelector(_ref) {
|
|
|
30
23
|
});
|
|
31
24
|
const provinceCitiesOptionsMap = {};
|
|
32
25
|
const createProvinceCitiesOptions = province => {
|
|
33
|
-
const provinceWithCities =
|
|
26
|
+
const provinceWithCities = regions.find(provinceWithCities => provinceWithCities.name === province);
|
|
34
27
|
if (!provinceWithCities || provinceWithCities.cities.length === 0) return [];
|
|
35
28
|
return provinceWithCities.cities.map(city => {
|
|
36
29
|
const {
|
|
37
30
|
name
|
|
38
31
|
} = city;
|
|
39
32
|
return {
|
|
40
|
-
label: /*#__PURE__*/
|
|
33
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
41
34
|
className: "select-option-name"
|
|
42
35
|
}, name),
|
|
43
36
|
value: name
|
|
@@ -69,7 +62,7 @@ function MapProvinceCitySelector(_ref) {
|
|
|
69
62
|
if (mapLocation && newMapLocation.province === mapLocation.province) return;
|
|
70
63
|
const updated = {
|
|
71
64
|
map_location: newMapLocation,
|
|
72
|
-
geolocation_granularity:
|
|
65
|
+
geolocation_granularity: fixGeoGranularity({
|
|
73
66
|
mapLevel: mapLevel,
|
|
74
67
|
mapLocation: newMapLocation
|
|
75
68
|
})
|
|
@@ -83,7 +76,7 @@ function MapProvinceCitySelector(_ref) {
|
|
|
83
76
|
if (mapLocation && newMapLocation.city === mapLocation.city) return;
|
|
84
77
|
const updated = {
|
|
85
78
|
map_location: newMapLocation,
|
|
86
|
-
geolocation_granularity:
|
|
79
|
+
geolocation_granularity: fixGeoGranularity({
|
|
87
80
|
mapLevel: mapLevel,
|
|
88
81
|
mapLocation: newMapLocation
|
|
89
82
|
})
|
|
@@ -93,9 +86,9 @@ function MapProvinceCitySelector(_ref) {
|
|
|
93
86
|
const renderCitySelector = () => {
|
|
94
87
|
const province = mapLocation && mapLocation.province;
|
|
95
88
|
const citiesOptions = getProvinceCitiesOptions(province);
|
|
96
|
-
return /*#__PURE__*/
|
|
89
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
97
90
|
className: "statistic-chart-parameter-item"
|
|
98
|
-
}, /*#__PURE__*/
|
|
91
|
+
}, /*#__PURE__*/React.createElement(_DTableSelect, {
|
|
99
92
|
menuPortalTarget: "#sea-chart-settings-content",
|
|
100
93
|
value: getSelectedCity(citiesOptions),
|
|
101
94
|
options: citiesOptions,
|
|
@@ -103,13 +96,13 @@ function MapProvinceCitySelector(_ref) {
|
|
|
103
96
|
placeholder: "\u8BF7\u9009\u62E9\u57CE\u5E02"
|
|
104
97
|
}));
|
|
105
98
|
};
|
|
106
|
-
if (mapLevel !==
|
|
99
|
+
if (mapLevel !== MAP_LEVEL.PROVINCE && mapLevel !== MAP_LEVEL.CITY) {
|
|
107
100
|
return null;
|
|
108
101
|
}
|
|
109
|
-
const isCity = mapLevel ===
|
|
110
|
-
return /*#__PURE__*/
|
|
102
|
+
const isCity = mapLevel === MAP_LEVEL.CITY;
|
|
103
|
+
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
|
|
111
104
|
className: "statistic-chart-parameter-item"
|
|
112
|
-
}, /*#__PURE__*/
|
|
105
|
+
}, /*#__PURE__*/React.createElement("label", null, isCity ? '城市' : '省份'), /*#__PURE__*/React.createElement(_DTableSelect, {
|
|
113
106
|
menuPortalTarget: "#sea-chart-settings-content",
|
|
114
107
|
value: getSelectedProvinceOption(),
|
|
115
108
|
options: provinceOptions,
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "MapDataSettings", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _mapDataSettings.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "MapStyleSettings", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _mapStyleSettings.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _mapDataSettings = _interopRequireDefault(require("./map-data-settings"));
|
|
20
|
-
var _mapStyleSettings = _interopRequireDefault(require("./map-style-settings"));
|
|
1
|
+
import MapDataSettings from './map-data-settings';
|
|
2
|
+
import MapStyleSettings from './map-style-settings';
|
|
3
|
+
export { MapDataSettings, MapStyleSettings };
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _commonDataSettings = _interopRequireDefault(require("../widgets/common-data-settings"));
|
|
13
|
-
var _yAxisGroupSettings = _interopRequireDefault(require("../widgets/y-axis-group-settings"));
|
|
14
|
-
var _columnUtils = require("../../utils/column-utils");
|
|
15
|
-
var _constants = require("../../constants");
|
|
16
|
-
var _mapLevelSelector = _interopRequireDefault(require("./components/map-level-selector"));
|
|
17
|
-
var _mapProvinceCitySelector = _interopRequireDefault(require("./components/map-province-city-selector"));
|
|
18
|
-
var _locationFieldSelector = _interopRequireDefault(require("./components/location-field-selector"));
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getTableById } from 'dtable-utils';
|
|
3
|
+
import intl from '../../intl';
|
|
4
|
+
import Divider from '../widgets/divider';
|
|
5
|
+
import CommonDataSettings from '../widgets/common-data-settings';
|
|
6
|
+
import YAxisGroupSettings from '../widgets/y-axis-group-settings';
|
|
7
|
+
import { isMapColumn, isWorldMapColumn } from '../../utils/column-utils';
|
|
8
|
+
import { MAP_LEVEL, CHART_TYPE } from '../../constants';
|
|
9
|
+
import MapLevelSelector from './components/map-level-selector';
|
|
10
|
+
import MapProvinceCitySelector from './components/map-province-city-selector';
|
|
11
|
+
import LocationFieldSelector from './components/location-field-selector';
|
|
19
12
|
const KeyMap = {
|
|
20
13
|
y_axis_summary_method: 'summary_method',
|
|
21
14
|
y_axis_summary_column_key: 'summary_column_key',
|
|
@@ -35,9 +28,9 @@ const MapDataSettings = _ref => {
|
|
|
35
28
|
map_level,
|
|
36
29
|
map_location
|
|
37
30
|
} = chart.config;
|
|
38
|
-
const isCountryLevel = map_level ===
|
|
39
|
-
const selectedTable =
|
|
40
|
-
const locationColumns = (selectedTable === null || selectedTable === void 0 ? void 0 : selectedTable.columns.filter(column => [
|
|
31
|
+
const isCountryLevel = map_level === MAP_LEVEL.COUNTRY;
|
|
32
|
+
const selectedTable = getTableById(tables, table_id);
|
|
33
|
+
const locationColumns = (selectedTable === null || selectedTable === void 0 ? void 0 : selectedTable.columns.filter(column => [CHART_TYPE.WORLD_MAP, CHART_TYPE.WORLD_MAP_BUBBLE].includes(type) ? isWorldMapColumn(column) : isMapColumn(column, map_level))) || [];
|
|
41
34
|
function handleYAxisGroupSettingsChange(value) {
|
|
42
35
|
const update = {};
|
|
43
36
|
Object.keys(value).forEach(key => {
|
|
@@ -52,33 +45,33 @@ const MapDataSettings = _ref => {
|
|
|
52
45
|
...value
|
|
53
46
|
});
|
|
54
47
|
}
|
|
55
|
-
return /*#__PURE__*/
|
|
48
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CommonDataSettings, {
|
|
56
49
|
chart: chart,
|
|
57
50
|
dataSources: dataSources,
|
|
58
51
|
tables: tables,
|
|
59
52
|
onChange: onChange
|
|
60
|
-
}), isShowMapLevel && /*#__PURE__*/
|
|
53
|
+
}), isShowMapLevel && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MapLevelSelector, {
|
|
61
54
|
onChange: onChange,
|
|
62
55
|
mapLevel: map_level,
|
|
63
56
|
mapLocation: map_location
|
|
64
|
-
}), !isCountryLevel && /*#__PURE__*/
|
|
57
|
+
}), !isCountryLevel && /*#__PURE__*/React.createElement(MapProvinceCitySelector, {
|
|
65
58
|
mapLevel: map_level,
|
|
66
59
|
mapLocation: map_location,
|
|
67
60
|
onChange: onChange
|
|
68
|
-
}), /*#__PURE__*/
|
|
61
|
+
}), /*#__PURE__*/React.createElement(Divider, {
|
|
69
62
|
className: "mt-4"
|
|
70
|
-
})), /*#__PURE__*/
|
|
63
|
+
})), /*#__PURE__*/React.createElement(LocationFieldSelector, {
|
|
71
64
|
locationColumns: locationColumns,
|
|
72
65
|
onChange: onChange,
|
|
73
66
|
chart: chart
|
|
74
|
-
}), /*#__PURE__*/
|
|
67
|
+
}), /*#__PURE__*/React.createElement(Divider, {
|
|
75
68
|
className: "mt-4"
|
|
76
|
-
}), /*#__PURE__*/
|
|
69
|
+
}), /*#__PURE__*/React.createElement(YAxisGroupSettings, {
|
|
77
70
|
className: "selected-y-axis",
|
|
78
|
-
label:
|
|
71
|
+
label: intl.get('Summary_method'),
|
|
79
72
|
chart: chart,
|
|
80
73
|
tables: tables,
|
|
81
74
|
onChange: handleYAxisGroupSettingsChange
|
|
82
75
|
}));
|
|
83
76
|
};
|
|
84
|
-
|
|
77
|
+
export default MapDataSettings;
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _reactstrap = require("reactstrap");
|
|
13
|
-
var _intl = _interopRequireDefault(require("../../intl"));
|
|
14
|
-
var _colorGroupSelector = _interopRequireDefault(require("../../components/color-setting/color-group-selector"));
|
|
15
|
-
var _geolocation = require("../../constants/geolocation");
|
|
16
|
-
var _divider = _interopRequireDefault(require("../widgets/divider"));
|
|
17
|
-
require("rc-slider/assets/index.css");
|
|
18
|
-
require("../../assets/css/slider.css");
|
|
19
|
-
function MapStyleSetting(_ref) {
|
|
1
|
+
import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import RcSlider from 'rc-slider';
|
|
4
|
+
import { FormGroup } from 'reactstrap';
|
|
5
|
+
import intl from '../../intl';
|
|
6
|
+
import ColorGroupSelector from '../../components/color-setting/color-group-selector';
|
|
7
|
+
import { LABEL_COLORS } from '../../constants/geolocation';
|
|
8
|
+
import Divider from '../widgets/divider';
|
|
9
|
+
import 'rc-slider/assets/index.css';
|
|
10
|
+
import '../../assets/css/slider.css';
|
|
11
|
+
export default function MapStyleSetting(_ref) {
|
|
20
12
|
let {
|
|
21
13
|
chart,
|
|
22
14
|
onChange
|
|
@@ -28,7 +20,7 @@ function MapStyleSetting(_ref) {
|
|
|
28
20
|
legend_size: initialLegendSize = 1,
|
|
29
21
|
type
|
|
30
22
|
} = chart.config;
|
|
31
|
-
const [legendSize, setLegendSize] =
|
|
23
|
+
const [legendSize, setLegendSize] = useState(initialLegendSize);
|
|
32
24
|
const onSliderChange = value => {
|
|
33
25
|
setLegendSize(value);
|
|
34
26
|
};
|
|
@@ -54,48 +46,48 @@ function MapStyleSetting(_ref) {
|
|
|
54
46
|
}
|
|
55
47
|
const legendDirectionOptions = [{
|
|
56
48
|
value: 'vertical',
|
|
57
|
-
label: /*#__PURE__*/
|
|
49
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
58
50
|
className: "select-option-name"
|
|
59
|
-
},
|
|
51
|
+
}, intl.get('Vertical'))
|
|
60
52
|
}, {
|
|
61
53
|
value: 'horizontal',
|
|
62
|
-
label: /*#__PURE__*/
|
|
54
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
63
55
|
className: "select-option-name"
|
|
64
|
-
},
|
|
56
|
+
}, intl.get('Horizontal'))
|
|
65
57
|
}];
|
|
66
58
|
const legendDirectionOptionsMap = legendDirectionOptions.reduce((acc, cur) => {
|
|
67
59
|
acc[cur.value] = cur;
|
|
68
60
|
return acc;
|
|
69
61
|
}, {});
|
|
70
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !type.includes('bubble') ? /*#__PURE__*/React.createElement(ColorGroupSelector, {
|
|
71
63
|
currentColor: data_color,
|
|
72
64
|
onChangeColor: onChangeColor
|
|
73
|
-
}) : /*#__PURE__*/
|
|
65
|
+
}) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", null, intl.get('Bubble_color')), /*#__PURE__*/React.createElement("div", {
|
|
74
66
|
className: "ml-0 row gutters-xs"
|
|
75
|
-
},
|
|
76
|
-
return /*#__PURE__*/
|
|
77
|
-
key:
|
|
67
|
+
}, LABEL_COLORS.map((item, index) => {
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
key: `map-bubble-color-${index}`,
|
|
78
70
|
className: "col-auto pl-0"
|
|
79
|
-
}, /*#__PURE__*/
|
|
71
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
80
72
|
className: "colorinput"
|
|
81
|
-
}, /*#__PURE__*/
|
|
73
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
82
74
|
className: "colorinput-color statistic-colorinput",
|
|
83
75
|
onClick: updateBubbleColor.bind(this, item),
|
|
84
76
|
style: {
|
|
85
77
|
backgroundColor: item,
|
|
86
78
|
borderColor: item
|
|
87
79
|
}
|
|
88
|
-
}, item === (bubble_color ||
|
|
80
|
+
}, item === (bubble_color || LABEL_COLORS[0]) && /*#__PURE__*/React.createElement("i", {
|
|
89
81
|
className: "dtable-font dtable-icon-check-mark statistic-check-mark"
|
|
90
82
|
}))));
|
|
91
|
-
}))), /*#__PURE__*/
|
|
83
|
+
}))), /*#__PURE__*/React.createElement(Divider, {
|
|
92
84
|
className: "mt-4"
|
|
93
|
-
}), /*#__PURE__*/
|
|
85
|
+
}), /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement("label", null, intl.get('Legend_direction')), /*#__PURE__*/React.createElement(_DTableSelect, {
|
|
94
86
|
menuPortalTarget: "#sea-chart-settings-content",
|
|
95
87
|
value: legendDirectionOptionsMap[legend_direction],
|
|
96
88
|
options: legendDirectionOptions,
|
|
97
89
|
onChange: onDirectionChange
|
|
98
|
-
})), /*#__PURE__*/
|
|
90
|
+
})), /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement("label", null, intl.get('Legend_size')), /*#__PURE__*/React.createElement(RcSlider, {
|
|
99
91
|
value: legendSize,
|
|
100
92
|
step: 0.5,
|
|
101
93
|
min: 1,
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _dtableUtils = require("dtable-utils");
|
|
12
|
-
var _intl = _interopRequireDefault(require("../../intl"));
|
|
13
|
-
var _commonDataSettings = _interopRequireDefault(require("../widgets/common-data-settings"));
|
|
14
|
-
var _divider = _interopRequireDefault(require("../widgets/divider"));
|
|
15
|
-
var _groupBy = _interopRequireDefault(require("../widgets/group-by"));
|
|
16
|
-
var _basicSummary = _interopRequireDefault(require("../widgets/basic-summary"));
|
|
17
|
-
var _constants = require("../../constants");
|
|
1
|
+
import _DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
|
|
2
|
+
import React, { useCallback } from 'react';
|
|
3
|
+
import { CellType } from 'dtable-utils';
|
|
4
|
+
import intl from '../../intl';
|
|
5
|
+
import CommonDataSettings from '../widgets/common-data-settings';
|
|
6
|
+
import Divider from '../widgets/divider';
|
|
7
|
+
import GroupBy from '../widgets/group-by';
|
|
8
|
+
import BasicSummary from '../widgets/basic-summary';
|
|
9
|
+
import { CHART_SUMMARY_TYPES } from '../../constants';
|
|
18
10
|
const DataSettings = _ref => {
|
|
19
11
|
let {
|
|
20
12
|
chart,
|
|
@@ -22,7 +14,7 @@ const DataSettings = _ref => {
|
|
|
22
14
|
tables,
|
|
23
15
|
onChange
|
|
24
16
|
} = _ref;
|
|
25
|
-
const onXAxisColumnChange =
|
|
17
|
+
const onXAxisColumnChange = useCallback(column => {
|
|
26
18
|
const {
|
|
27
19
|
config
|
|
28
20
|
} = chart;
|
|
@@ -39,7 +31,7 @@ const DataSettings = _ref => {
|
|
|
39
31
|
};
|
|
40
32
|
onChange && onChange(update);
|
|
41
33
|
}, [chart, onChange]);
|
|
42
|
-
const onYAxisColumnChange =
|
|
34
|
+
const onYAxisColumnChange = useCallback(column => {
|
|
43
35
|
const {
|
|
44
36
|
config
|
|
45
37
|
} = chart;
|
|
@@ -56,7 +48,7 @@ const DataSettings = _ref => {
|
|
|
56
48
|
};
|
|
57
49
|
onChange && onChange(update);
|
|
58
50
|
}, [chart, onChange]);
|
|
59
|
-
const onTranspose =
|
|
51
|
+
const onTranspose = useCallback(event => {
|
|
60
52
|
const {
|
|
61
53
|
config
|
|
62
54
|
} = chart;
|
|
@@ -76,49 +68,49 @@ const DataSettings = _ref => {
|
|
|
76
68
|
is_transpose,
|
|
77
69
|
group_column_key
|
|
78
70
|
} = config;
|
|
79
|
-
return /*#__PURE__*/
|
|
71
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CommonDataSettings, {
|
|
80
72
|
dataSources: dataSources,
|
|
81
73
|
chart: chart,
|
|
82
74
|
tables: tables,
|
|
83
75
|
onChange: onChange
|
|
84
|
-
}), /*#__PURE__*/
|
|
76
|
+
}), /*#__PURE__*/React.createElement(GroupBy, {
|
|
85
77
|
chart: chart,
|
|
86
78
|
tables: tables,
|
|
87
79
|
className: "selected-x-axis",
|
|
88
|
-
label:
|
|
80
|
+
label: intl.get('Statistic_field'),
|
|
89
81
|
selectedTableId: table_id,
|
|
90
82
|
selectedColumnKey: column_key,
|
|
91
83
|
isMirror: true,
|
|
92
84
|
onGroupByChange: onXAxisColumnChange
|
|
93
|
-
}), /*#__PURE__*/
|
|
85
|
+
}), /*#__PURE__*/React.createElement(_DTableSwitch, {
|
|
94
86
|
checked: is_transpose,
|
|
95
|
-
placeholder:
|
|
87
|
+
placeholder: intl.get('Transpose'),
|
|
96
88
|
onChange: onTranspose
|
|
97
|
-
}), /*#__PURE__*/
|
|
89
|
+
}), /*#__PURE__*/React.createElement(Divider, {
|
|
98
90
|
className: "mt-4"
|
|
99
|
-
}), /*#__PURE__*/
|
|
91
|
+
}), /*#__PURE__*/React.createElement(GroupBy, {
|
|
100
92
|
chart: chart,
|
|
101
93
|
tables: tables,
|
|
102
94
|
className: "selected-x-axis",
|
|
103
|
-
label:
|
|
95
|
+
label: intl.get('Column_grouping_field'),
|
|
104
96
|
selectedTableId: table_id,
|
|
105
97
|
selectedColumnKey: group_column_key,
|
|
106
98
|
onlySupportSingleSelect: true,
|
|
107
99
|
onGroupByChange: onYAxisColumnChange
|
|
108
|
-
}), /*#__PURE__*/
|
|
100
|
+
}), /*#__PURE__*/React.createElement(Divider, {
|
|
109
101
|
className: "mt-4"
|
|
110
|
-
}), /*#__PURE__*/
|
|
102
|
+
}), /*#__PURE__*/React.createElement(BasicSummary, {
|
|
111
103
|
className: "selected-y-axis",
|
|
112
|
-
label:
|
|
104
|
+
label: intl.get('Summary_method'),
|
|
113
105
|
summaryTypeKey: 'summary_type',
|
|
114
106
|
summaryMethodKey: 'summary_method',
|
|
115
107
|
summaryColumnKey: 'summary_column_key',
|
|
116
108
|
chart: chart,
|
|
117
109
|
selectedTableId: table_id,
|
|
118
110
|
tables: tables,
|
|
119
|
-
supportColumnTypes: [
|
|
120
|
-
summaryTypeOptions:
|
|
111
|
+
supportColumnTypes: [CellType.NUMBER],
|
|
112
|
+
summaryTypeOptions: CHART_SUMMARY_TYPES,
|
|
121
113
|
onChange: onChange
|
|
122
114
|
}));
|
|
123
115
|
};
|
|
124
|
-
|
|
116
|
+
export default DataSettings;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "MirrorDataSettings", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _dataSettings.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _dataSettings = _interopRequireDefault(require("./data-settings"));
|
|
1
|
+
import MirrorDataSettings from './data-settings';
|
|
2
|
+
export { MirrorDataSettings };
|