sea-chart 2.0.36 → 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 +8 -15
- 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 +30 -38
- 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 +40 -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 +5 -12
- package/dist/components/index.js +7 -48
- package/dist/components/loading/index.js +6 -13
- package/dist/components/number-input/index.js +4 -11
- package/dist/components/pixel-editor/index.js +15 -23
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +8 -15
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +26 -34
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +9 -18
- package/dist/components/popover/sort-popover/sort-popover.js +55 -65
- 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 +56 -64
- package/dist/components/tooltip/index.js +14 -21
- 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 +8 -15
- 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 +1 -7
- package/dist/locale/lang/en.js +1 -7
- package/dist/locale/lang/es.js +1 -7
- package/dist/locale/lang/fr.js +1 -7
- package/dist/locale/lang/pt.js +1 -7
- package/dist/locale/lang/ru.js +1 -7
- package/dist/locale/lang/zh_CN.js +1 -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 +12 -19
- 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 +11 -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 +63 -71
- 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 +49 -57
- package/dist/settings/basic-number-card/data-settings.js +49 -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 -63
- package/dist/settings/combination-settings/index.js +3 -20
- package/dist/settings/combination-settings/style-settings.js +65 -73
- 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 +43 -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 +20 -28
- 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 +52 -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 +30 -38
- package/dist/settings/table-element-settings/data-settings.js +21 -29
- package/dist/settings/table-element-settings/index.js +2 -13
- package/dist/settings/table-settings/data-settings.js +112 -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 +42 -50
- 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 +55 -63
- 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 +21 -29
- package/dist/settings/widgets/data-filter/index.js +35 -43
- 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 +51 -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 +74 -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 +64 -72
- package/dist/utils/cell-format-utils.js +17 -27
- package/dist/utils/cell-value-utils.js +4 -11
- package/dist/utils/chart-utils/base-utils.js +324 -332
- package/dist/utils/chart-utils/index.js +28 -41
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +77 -84
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +13 -20
- 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 +16 -23
- 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 +90 -96
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +19 -26
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +31 -38
- package/dist/utils/chart-utils/sql-statistics-utils.js +229 -237
- 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 +77 -104
- package/dist/utils/common-utils.js +28 -53
- package/dist/utils/concurrency-manager.js +1 -7
- package/dist/utils/contexts.js +5 -12
- 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 +54 -221
- 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 +166 -178
- 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 +158 -168
- package/dist/utils/sql/index.js +3 -27
- package/dist/utils/trend-utils.js +39 -47
- package/dist/view/index.js +90 -96
- package/dist/view/title/index.js +16 -24
- package/dist/view/wrapper/area-group.js +45 -53
- package/dist/view/wrapper/area.js +43 -51
- package/dist/view/wrapper/bar-compare.js +38 -46
- package/dist/view/wrapper/bar-custom-stack.js +39 -47
- package/dist/view/wrapper/bar-group.js +45 -53
- package/dist/view/wrapper/bar-stack.js +48 -56
- package/dist/view/wrapper/bar.js +40 -48
- package/dist/view/wrapper/basic-number-card.js +26 -34
- package/dist/view/wrapper/chart-component.js +123 -131
- package/dist/view/wrapper/combination.js +55 -63
- package/dist/view/wrapper/completeness-group.js +40 -48
- package/dist/view/wrapper/completeness.js +36 -44
- package/dist/view/wrapper/dashboard.js +39 -44
- 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 +52 -60
- package/dist/view/wrapper/horizontal-bar-stack.js +47 -55
- package/dist/view/wrapper/horizontal-bar.js +41 -49
- package/dist/view/wrapper/index.js +107 -115
- package/dist/view/wrapper/line-group.js +43 -51
- 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 +39 -47
- package/dist/view/wrapper/map-world.js +41 -49
- package/dist/view/wrapper/map.js +42 -50
- package/dist/view/wrapper/mirror.js +41 -49
- package/dist/view/wrapper/pie.js +44 -52
- package/dist/view/wrapper/ring.js +49 -57
- package/dist/view/wrapper/scatter.js +42 -50
- 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 -93
- 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 -15
- 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 +5 -12
- 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 +18 -26
- package/dist/view/wrapper/treemap.js +38 -46
- package/dist/view/wrapper/trend.js +58 -66
- package/package.json +5 -5
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _utils = require("../utils");
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
11
|
-
class StackedHorizontalGroupBar extends _baseModel.default {
|
|
1
|
+
import { isBoolean } from '../utils';
|
|
2
|
+
import { CHART_SUMMARY_TYPE, CHART_TYPE, LABEL_COLORS } from '../constants';
|
|
3
|
+
import BaseModel from './base-model';
|
|
4
|
+
class StackedHorizontalGroupBar extends BaseModel {
|
|
12
5
|
constructor(options) {
|
|
13
6
|
super({
|
|
14
7
|
...options,
|
|
15
|
-
type:
|
|
8
|
+
type: CHART_TYPE.STACKED_HORIZONTAL_BAR
|
|
16
9
|
});
|
|
17
10
|
|
|
18
11
|
// vertical axis data
|
|
@@ -22,17 +15,17 @@ class StackedHorizontalGroupBar extends _baseModel.default {
|
|
|
22
15
|
this.vertical_axis_include_empty = options.x_axis_include_empty_cells;
|
|
23
16
|
|
|
24
17
|
// vertical axis style
|
|
25
|
-
this.show_vertical_axis_label =
|
|
18
|
+
this.show_vertical_axis_label = isBoolean(options.x_axis_show_label) ? options.x_axis_show_label : false;
|
|
26
19
|
this.vertical_axis_label_position = options.x_axis_label_position;
|
|
27
20
|
|
|
28
21
|
// horizontal axis data
|
|
29
|
-
this.horizontal_axis_summary_type = options.y_axis_summary_type ||
|
|
22
|
+
this.horizontal_axis_summary_type = options.y_axis_summary_type || CHART_SUMMARY_TYPE.COUNT;
|
|
30
23
|
this.horizontal_axis_column_key = options.y_axis_summary_column_key;
|
|
31
|
-
this.horizontal_axis_summary_method = options.y_axis_summary_method ||
|
|
24
|
+
this.horizontal_axis_summary_method = options.y_axis_summary_method || CHART_SUMMARY_TYPE.SUM;
|
|
32
25
|
|
|
33
26
|
// horizontal axis style
|
|
34
|
-
this.horizontal_axis_label_color = options.y_axis_label_color ||
|
|
35
|
-
this.show_horizontal_axis_label =
|
|
27
|
+
this.horizontal_axis_label_color = options.y_axis_label_color || LABEL_COLORS[0];
|
|
28
|
+
this.show_horizontal_axis_label = isBoolean(options.y_axis_show_label) ? options.y_axis_show_label : false;
|
|
36
29
|
this.horizontal_axis_label_position = options.y_axis_label_position;
|
|
37
30
|
this.horizontal_axis_auto_range = options.y_axis_auto_range;
|
|
38
31
|
this.horizontal_axis_min = options.y_axis_min;
|
|
@@ -47,4 +40,4 @@ class StackedHorizontalGroupBar extends _baseModel.default {
|
|
|
47
40
|
this.label_font_size = options.label_font_size;
|
|
48
41
|
}
|
|
49
42
|
}
|
|
50
|
-
|
|
43
|
+
export default StackedHorizontalGroupBar;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _constants = require("../constants");
|
|
9
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
10
|
-
class TableElement extends _baseModel.default {
|
|
1
|
+
import { CHART_TYPE } from '../constants';
|
|
2
|
+
import BaseModel from './base-model';
|
|
3
|
+
class TableElement extends BaseModel {
|
|
11
4
|
constructor(options, tables) {
|
|
12
5
|
super({
|
|
13
6
|
...options,
|
|
14
|
-
type:
|
|
7
|
+
type: CHART_TYPE.TABLE_ELEMENT
|
|
15
8
|
});
|
|
16
9
|
let column_keys = [];
|
|
17
10
|
const table_id = options.table_id;
|
|
@@ -26,4 +19,4 @@ class TableElement extends _baseModel.default {
|
|
|
26
19
|
this.show_cell_coloring = false;
|
|
27
20
|
}
|
|
28
21
|
}
|
|
29
|
-
|
|
22
|
+
export default TableElement;
|
package/dist/model/table.js
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
class Table extends _baseModel.default {
|
|
1
|
+
import BaseModel from './base-model';
|
|
2
|
+
import { CHART_SUMMARY_TYPE, CHART_TYPE } from '../constants';
|
|
3
|
+
class Table extends BaseModel {
|
|
11
4
|
constructor(options) {
|
|
12
5
|
super({
|
|
13
6
|
...options,
|
|
14
|
-
type:
|
|
7
|
+
type: CHART_TYPE.TABLE
|
|
15
8
|
});
|
|
16
9
|
this.groupby_column_key = options.x_axis_column_key;
|
|
17
10
|
this.groupby_date_granularity = options.x_axis_date_granularity;
|
|
18
11
|
this.groupby_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
19
12
|
this.groupby_include_empty_cells = options.x_axis_include_empty_cells;
|
|
20
13
|
this.summary_column_key = options.y_axis_summary_column_key;
|
|
21
|
-
this.summary_method = options.y_axis_summary_method ||
|
|
22
|
-
this.summary_type = options.y_axis_summary_type ||
|
|
14
|
+
this.summary_method = options.y_axis_summary_method || CHART_SUMMARY_TYPE.SUM;
|
|
15
|
+
this.summary_type = options.y_axis_summary_type || CHART_SUMMARY_TYPE.COUNT;
|
|
23
16
|
this.column_groupby_multiple_numeric_column = options.column_groupby_multiple_numeric_column;
|
|
24
17
|
this.summary_columns = options.summary_columns;
|
|
25
18
|
this.column_groupby_column_key = options.column_groupby_column_key;
|
|
@@ -27,4 +20,4 @@ class Table extends _baseModel.default {
|
|
|
27
20
|
this.column_groupby_geolocation_granularity = options.column_groupby_geolocation_granularity;
|
|
28
21
|
}
|
|
29
22
|
}
|
|
30
|
-
|
|
23
|
+
export default Table;
|
package/dist/model/tree-map.js
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
class TreeMap extends _baseModel.default {
|
|
1
|
+
import BaseModel from './base-model';
|
|
2
|
+
import { CHART_SUMMARY_TYPE, CHART_TYPE } from '../constants';
|
|
3
|
+
class TreeMap extends BaseModel {
|
|
11
4
|
constructor(options) {
|
|
12
5
|
super({
|
|
13
6
|
...options,
|
|
14
|
-
type:
|
|
7
|
+
type: CHART_TYPE.TREE_MAP
|
|
15
8
|
});
|
|
16
9
|
this.groupby_column_key = options.x_axis_column_key;
|
|
17
10
|
this.groupby_date_granularity = options.x_axis_date_granularity;
|
|
18
11
|
this.groupby_geolocation_granularity = options.x_axis_geolocation_granularity;
|
|
19
12
|
this.groupby_include_empty_cells = options.x_axis_include_empty_cells;
|
|
20
|
-
this.summary_type = options.y_axis_summary_type ||
|
|
21
|
-
this.summary_method = options.y_axis_summary_method ||
|
|
13
|
+
this.summary_type = options.y_axis_summary_type || CHART_SUMMARY_TYPE.COUNT;
|
|
14
|
+
this.summary_method = options.y_axis_summary_method || CHART_SUMMARY_TYPE.SUM;
|
|
22
15
|
this.summary_column_key = options.y_axis_summary_column_key;
|
|
23
16
|
this.sort_type = options.sort_type;
|
|
24
17
|
this.minimum_slice_percent = options.minimum_slice_percent;
|
|
25
18
|
}
|
|
26
19
|
}
|
|
27
|
-
|
|
20
|
+
export default TreeMap;
|
package/dist/model/trend.js
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _dtableUtils = require("dtable-utils");
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
11
|
-
class Trend extends _baseModel.default {
|
|
1
|
+
import { getTableById, getTableColumnByKey, isDateColumn } from 'dtable-utils';
|
|
2
|
+
import { CHART_TYPE, HORIZONTAL_ALIGN } from '../constants';
|
|
3
|
+
import BaseModel from './base-model';
|
|
4
|
+
class Trend extends BaseModel {
|
|
12
5
|
constructor(options, tables) {
|
|
13
6
|
super({
|
|
14
7
|
...options,
|
|
15
|
-
type:
|
|
8
|
+
type: CHART_TYPE.TREND
|
|
16
9
|
});
|
|
17
10
|
this.date_column_key = options.x_axis_column_key;
|
|
18
11
|
this.date_granularity = options.x_axis_date_granularity;
|
|
19
12
|
if (this.date_column_key && this.table_id) {
|
|
20
|
-
const table =
|
|
21
|
-
const column =
|
|
22
|
-
if (!column || !
|
|
13
|
+
const table = getTableById(tables, this.table_id);
|
|
14
|
+
const column = getTableColumnByKey(table, this.date_column_key);
|
|
15
|
+
if (!column || !isDateColumn(column)) {
|
|
23
16
|
this.date_column_key = null;
|
|
24
17
|
this.date_granularity = null;
|
|
25
18
|
}
|
|
@@ -29,13 +22,13 @@ class Trend extends _baseModel.default {
|
|
|
29
22
|
this.summary_method = options.y_axis_summary_method;
|
|
30
23
|
this.num_font_size = options.num_font_size || 34;
|
|
31
24
|
this.num_font_color = options.num_font_color;
|
|
32
|
-
this.num_text_align = options.num_text_align ||
|
|
25
|
+
this.num_text_align = options.num_text_align || HORIZONTAL_ALIGN.LEFT;
|
|
33
26
|
this.num_font_weight = options.num_font_weight || 700;
|
|
34
27
|
this.label = options.label || '';
|
|
35
28
|
this.card_label_font_size = options.card_label_font_size || 14;
|
|
36
29
|
this.label_font_color = options.label_font_color;
|
|
37
|
-
this.label_text_align = options.label_text_align ||
|
|
30
|
+
this.label_text_align = options.label_text_align || HORIZONTAL_ALIGN.LEFT;
|
|
38
31
|
this.label_font_weight = options.label_font_weight || 400;
|
|
39
32
|
}
|
|
40
33
|
}
|
|
41
|
-
|
|
34
|
+
export default Trend;
|
package/dist/model/user.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
1
|
class User {
|
|
8
2
|
constructor(obj) {
|
|
9
3
|
this.loaded = obj.loaded || false;
|
|
@@ -18,4 +12,4 @@ class User {
|
|
|
18
12
|
this.loaded = loaded;
|
|
19
13
|
}
|
|
20
14
|
}
|
|
21
|
-
|
|
15
|
+
export default User;
|
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _dtableUtils = require("dtable-utils");
|
|
9
|
-
var _utils = require("../utils");
|
|
10
|
-
var _constants = require("../constants");
|
|
11
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
12
|
-
class WorldMapBubble extends _baseModel.default {
|
|
1
|
+
import { getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
2
|
+
import { isStatisticWorldMapColumn } from '../utils';
|
|
3
|
+
import { CHART_TYPE, CHART_SUMMARY_TYPE } from '../constants';
|
|
4
|
+
import BaseModel from './base-model';
|
|
5
|
+
class WorldMapBubble extends BaseModel {
|
|
13
6
|
constructor(options, tables) {
|
|
14
7
|
super({
|
|
15
8
|
...options,
|
|
16
|
-
type:
|
|
9
|
+
type: CHART_TYPE.WORLD_MAP_BUBBLE
|
|
17
10
|
});
|
|
18
11
|
this.geo_column_key = options.x_axis_column_key;
|
|
19
12
|
if (this.geo_column_key && this.table_id && tables) {
|
|
20
|
-
const table =
|
|
21
|
-
const column =
|
|
22
|
-
if (!
|
|
13
|
+
const table = getTableById(tables, this.table_id);
|
|
14
|
+
const column = getTableColumnByKey(table, this.geo_column_key);
|
|
15
|
+
if (!isStatisticWorldMapColumn(column)) {
|
|
23
16
|
this.geo_column_key = null;
|
|
24
17
|
}
|
|
25
18
|
}
|
|
26
19
|
this.summary_type = options.y_axis_summary_type;
|
|
27
20
|
this.summary_method = options.y_axis_summary_method;
|
|
28
|
-
if (this.summary_method ===
|
|
29
|
-
this.summary_method =
|
|
21
|
+
if (this.summary_method === CHART_SUMMARY_TYPE.ROW_COUNT) {
|
|
22
|
+
this.summary_method = CHART_SUMMARY_TYPE.MAX;
|
|
30
23
|
}
|
|
31
24
|
this.summary_column_key = options.y_axis_summary_column_key;
|
|
32
25
|
this.legend_direction = options.legend_direction;
|
|
@@ -34,4 +27,4 @@ class WorldMapBubble extends _baseModel.default {
|
|
|
34
27
|
this.bubble_color = options.bubble_color;
|
|
35
28
|
}
|
|
36
29
|
}
|
|
37
|
-
|
|
30
|
+
export default WorldMapBubble;
|
package/dist/model/world-map.js
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _dtableUtils = require("dtable-utils");
|
|
9
|
-
var _utils = require("../utils");
|
|
10
|
-
var _constants = require("../constants");
|
|
11
|
-
var _baseModel = _interopRequireDefault(require("./base-model"));
|
|
12
|
-
class WorldMap extends _baseModel.default {
|
|
1
|
+
import { getTableById, getTableColumnByKey } from 'dtable-utils';
|
|
2
|
+
import { isStatisticWorldMapColumn } from '../utils';
|
|
3
|
+
import { CHART_TYPE, CHART_SUMMARY_TYPE } from '../constants';
|
|
4
|
+
import BaseModel from './base-model';
|
|
5
|
+
class WorldMap extends BaseModel {
|
|
13
6
|
constructor(options, tables) {
|
|
14
7
|
super({
|
|
15
8
|
...options,
|
|
16
|
-
type:
|
|
9
|
+
type: CHART_TYPE.WORLD_MAP
|
|
17
10
|
});
|
|
18
11
|
this.geo_column_key = options.x_axis_column_key;
|
|
19
12
|
if (this.geo_column_key && this.table_id && tables) {
|
|
20
|
-
const table =
|
|
21
|
-
const column =
|
|
22
|
-
if (!
|
|
13
|
+
const table = getTableById(tables, this.table_id);
|
|
14
|
+
const column = getTableColumnByKey(table, this.geo_column_key);
|
|
15
|
+
if (!isStatisticWorldMapColumn(column)) {
|
|
23
16
|
this.geo_column_key = null;
|
|
24
17
|
}
|
|
25
18
|
}
|
|
26
19
|
this.summary_type = options.y_axis_summary_type || 'count';
|
|
27
20
|
this.summary_method = options.y_axis_summary_method;
|
|
28
|
-
if (this.summary_method ===
|
|
29
|
-
this.summary_method =
|
|
21
|
+
if (this.summary_method === CHART_SUMMARY_TYPE.ROW_COUNT) {
|
|
22
|
+
this.summary_method = CHART_SUMMARY_TYPE.MAX;
|
|
30
23
|
}
|
|
31
24
|
this.summary_column_key = options.y_axis_summary_column_key;
|
|
32
25
|
this.legend_direction = options.legend_direction;
|
|
@@ -34,4 +27,4 @@ class WorldMap extends _baseModel.default {
|
|
|
34
27
|
this.data_color = options.data_color;
|
|
35
28
|
}
|
|
36
29
|
}
|
|
37
|
-
|
|
30
|
+
export default WorldMap;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = fetchMapJson;
|
|
7
|
-
var _constants = require("../constants");
|
|
1
|
+
import { MAP_LEVEL, regions } from '../constants';
|
|
8
2
|
const urlMapJson = {};
|
|
9
3
|
function getMapJson(url) {
|
|
10
4
|
return urlMapJson[url];
|
|
@@ -14,7 +8,7 @@ function setMapJson(url, json) {
|
|
|
14
8
|
}
|
|
15
9
|
function getNameEnByMapLocation(mapLocation) {
|
|
16
10
|
const provinceName = mapLocation && mapLocation.province;
|
|
17
|
-
const province = provinceName &&
|
|
11
|
+
const province = provinceName && regions.find(province => province.name === provinceName);
|
|
18
12
|
if (!province) return null;
|
|
19
13
|
let nameEN = {
|
|
20
14
|
province_name_en: province.name_en
|
|
@@ -36,24 +30,24 @@ function getNameEnByMapLocation(mapLocation) {
|
|
|
36
30
|
*/
|
|
37
31
|
function getMapJsonQueryUrl(mapLevel, mapLocation) {
|
|
38
32
|
switch (mapLevel) {
|
|
39
|
-
case
|
|
33
|
+
case MAP_LEVEL.WORLD:
|
|
40
34
|
{
|
|
41
35
|
return 'world';
|
|
42
36
|
}
|
|
43
|
-
case
|
|
37
|
+
case MAP_LEVEL.COUNTRY:
|
|
44
38
|
{
|
|
45
39
|
return 'china';
|
|
46
40
|
}
|
|
47
|
-
case
|
|
41
|
+
case MAP_LEVEL.PROVINCE:
|
|
48
42
|
{
|
|
49
43
|
const nameEn = getNameEnByMapLocation(mapLocation);
|
|
50
44
|
const provinceNameEn = nameEn && nameEn.province_name_en;
|
|
51
45
|
if (!provinceNameEn) {
|
|
52
46
|
return null;
|
|
53
47
|
}
|
|
54
|
-
return
|
|
48
|
+
return `region-mapjson/${provinceNameEn}/${provinceNameEn}`;
|
|
55
49
|
}
|
|
56
|
-
case
|
|
50
|
+
case MAP_LEVEL.CITY:
|
|
57
51
|
{
|
|
58
52
|
const nameEn = getNameEnByMapLocation(mapLocation);
|
|
59
53
|
const provinceNameEn = nameEn && nameEn.province_name_en;
|
|
@@ -64,9 +58,9 @@ function getMapJsonQueryUrl(mapLevel, mapLocation) {
|
|
|
64
58
|
|
|
65
59
|
// e.g. 北京市/北京市
|
|
66
60
|
if (provinceNameEn === cityNameEn) {
|
|
67
|
-
return
|
|
61
|
+
return `region-mapjson/${provinceNameEn}/${provinceNameEn}`;
|
|
68
62
|
}
|
|
69
|
-
return
|
|
63
|
+
return `region-mapjson/${provinceNameEn}/${provinceNameEn}_${cityNameEn}`;
|
|
70
64
|
}
|
|
71
65
|
default:
|
|
72
66
|
{
|
|
@@ -83,7 +77,7 @@ function handleLoadedMapJson(url, mapJson) {
|
|
|
83
77
|
console.error('on handleLoadedMapJson: mapJson is invalid');
|
|
84
78
|
return null;
|
|
85
79
|
}
|
|
86
|
-
async function fetchMapJson(mapLevel, mapLocation, mediaUrl) {
|
|
80
|
+
export default async function fetchMapJson(mapLevel, mapLocation, mediaUrl) {
|
|
87
81
|
const url = getMapJsonQueryUrl(mapLevel, mapLocation);
|
|
88
82
|
if (!url) {
|
|
89
83
|
console.error('on fetchMapJson: url is null');
|
|
@@ -94,7 +88,7 @@ async function fetchMapJson(mapLevel, mapLocation, mediaUrl) {
|
|
|
94
88
|
}
|
|
95
89
|
let mapJson;
|
|
96
90
|
try {
|
|
97
|
-
const res = await fetch(
|
|
91
|
+
const res = await fetch(`${mediaUrl}dtable-statistic/geolocation/${url}.json`);
|
|
98
92
|
if (!res.ok) {
|
|
99
93
|
return null;
|
|
100
94
|
}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _commonDataSettings = _interopRequireDefault(require("../widgets/common-data-settings"));
|
|
13
|
-
var _divider = _interopRequireDefault(require("../widgets/divider"));
|
|
14
|
-
var _groupBy = _interopRequireDefault(require("../widgets/group-by"));
|
|
15
|
-
var _yAxisGroupSettings = _interopRequireDefault(require("../widgets/y-axis-group-settings"));
|
|
16
|
-
var _columnUtils = require("../../utils/column-utils");
|
|
17
|
-
var _constants = require("../../constants");
|
|
18
|
-
var _intl = _interopRequireDefault(require("../../intl"));
|
|
19
|
-
var _dataSort = _interopRequireDefault(require("../widgets/data-sort"));
|
|
1
|
+
import _DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
|
|
2
|
+
import React, { useCallback } from 'react';
|
|
3
|
+
import { CellType, DATE_COLUMN_OPTIONS } from 'dtable-utils';
|
|
4
|
+
import CommonDataSettings from '../widgets/common-data-settings';
|
|
5
|
+
import Divider from '../widgets/divider';
|
|
6
|
+
import GroupBy from '../widgets/group-by';
|
|
7
|
+
import YAxisGroupSettings from '../widgets/y-axis-group-settings';
|
|
8
|
+
import { isDateFormulaColumn } from '../../utils/column-utils';
|
|
9
|
+
import { CHART_SUMMARY_TYPE, GEOLOCATION_FORMAT_CITY, GEOLOCATION_FORMAT_MAP, SUPPORT_DATA_SORT_CHART_TYPES } from '../../constants';
|
|
10
|
+
import intl from '../../intl';
|
|
11
|
+
import DataSort from '../widgets/data-sort';
|
|
20
12
|
const DataSettings = _ref => {
|
|
21
13
|
let {
|
|
22
14
|
chart,
|
|
@@ -26,7 +18,7 @@ const DataSettings = _ref => {
|
|
|
26
18
|
xLabel = 'X_axis',
|
|
27
19
|
yLabel = 'Y_axis'
|
|
28
20
|
} = _ref;
|
|
29
|
-
const onXAxisColumnChange =
|
|
21
|
+
const onXAxisColumnChange = useCallback(column => {
|
|
30
22
|
const {
|
|
31
23
|
config
|
|
32
24
|
} = chart;
|
|
@@ -46,18 +38,18 @@ const DataSettings = _ref => {
|
|
|
46
38
|
update['x_axis_date_granularity'] = null;
|
|
47
39
|
update['x_axis_geolocation_granularity'] = null;
|
|
48
40
|
} else {
|
|
49
|
-
if (
|
|
50
|
-
update['x_axis_date_granularity'] =
|
|
41
|
+
if (DATE_COLUMN_OPTIONS.includes(type) || isDateFormulaColumn(column)) {
|
|
42
|
+
update['x_axis_date_granularity'] = CHART_SUMMARY_TYPE.MONTH;
|
|
51
43
|
update['x_axis_geolocation_granularity'] = null;
|
|
52
|
-
} else if (type ===
|
|
44
|
+
} else if (type === CellType.GEOLOCATION) {
|
|
53
45
|
const {
|
|
54
46
|
geo_format
|
|
55
47
|
} = column.data || {};
|
|
56
|
-
if (geo_format ===
|
|
57
|
-
update['x_axis_geolocation_granularity'] =
|
|
58
|
-
} else if (geo_format ===
|
|
59
|
-
update['x_axis_geolocation_granularity'] =
|
|
60
|
-
} else if (geo_format ===
|
|
48
|
+
if (geo_format === GEOLOCATION_FORMAT_MAP.PROVINCE) {
|
|
49
|
+
update['x_axis_geolocation_granularity'] = GEOLOCATION_FORMAT_MAP.PROVINCE;
|
|
50
|
+
} else if (geo_format === GEOLOCATION_FORMAT_MAP.PROVINCE_CITY) {
|
|
51
|
+
update['x_axis_geolocation_granularity'] = GEOLOCATION_FORMAT_CITY;
|
|
52
|
+
} else if (geo_format === GEOLOCATION_FORMAT_MAP.GEOLOCATION || !geo_format) {
|
|
61
53
|
update['x_axis_geolocation_granularity'] = 'district';
|
|
62
54
|
} else {
|
|
63
55
|
update['x_axis_geolocation_granularity'] = null;
|
|
@@ -67,7 +59,7 @@ const DataSettings = _ref => {
|
|
|
67
59
|
}
|
|
68
60
|
onChange && onChange(update);
|
|
69
61
|
}, [chart, onChange]);
|
|
70
|
-
const onGroupbyDateGranularityChange =
|
|
62
|
+
const onGroupbyDateGranularityChange = useCallback(option => {
|
|
71
63
|
const {
|
|
72
64
|
config
|
|
73
65
|
} = chart;
|
|
@@ -80,7 +72,7 @@ const DataSettings = _ref => {
|
|
|
80
72
|
x_axis_date_granularity: value
|
|
81
73
|
});
|
|
82
74
|
}, [chart, onChange]);
|
|
83
|
-
const onGroupbyGeolocationGranularityChange =
|
|
75
|
+
const onGroupbyGeolocationGranularityChange = useCallback(option => {
|
|
84
76
|
const {
|
|
85
77
|
config
|
|
86
78
|
} = chart;
|
|
@@ -93,7 +85,7 @@ const DataSettings = _ref => {
|
|
|
93
85
|
x_axis_geolocation_granularity: value
|
|
94
86
|
});
|
|
95
87
|
}, [chart, onChange]);
|
|
96
|
-
const onIncludeEmptyChange =
|
|
88
|
+
const onIncludeEmptyChange = useCallback(event => {
|
|
97
89
|
const {
|
|
98
90
|
config
|
|
99
91
|
} = chart;
|
|
@@ -104,14 +96,14 @@ const DataSettings = _ref => {
|
|
|
104
96
|
x_axis_include_empty_cells: !x_axis_include_empty_cells
|
|
105
97
|
});
|
|
106
98
|
}, [chart, onChange]);
|
|
107
|
-
const renderDataSort =
|
|
99
|
+
const renderDataSort = useCallback(() => {
|
|
108
100
|
const {
|
|
109
101
|
config
|
|
110
102
|
} = chart;
|
|
111
|
-
if (!
|
|
112
|
-
return /*#__PURE__*/
|
|
103
|
+
if (!SUPPORT_DATA_SORT_CHART_TYPES.includes(config.type)) return null;
|
|
104
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
113
105
|
className: "mt-4"
|
|
114
|
-
}), /*#__PURE__*/
|
|
106
|
+
}), /*#__PURE__*/React.createElement(DataSort, {
|
|
115
107
|
chart: chart,
|
|
116
108
|
onChange: onChange
|
|
117
109
|
}));
|
|
@@ -126,15 +118,15 @@ const DataSettings = _ref => {
|
|
|
126
118
|
x_axis_geolocation_granularity,
|
|
127
119
|
x_axis_include_empty_cells
|
|
128
120
|
} = config;
|
|
129
|
-
return /*#__PURE__*/
|
|
121
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CommonDataSettings, {
|
|
130
122
|
dataSources: dataSources,
|
|
131
123
|
chart: chart,
|
|
132
124
|
tables: tables,
|
|
133
125
|
onChange: onChange
|
|
134
|
-
}), /*#__PURE__*/
|
|
126
|
+
}), /*#__PURE__*/React.createElement(GroupBy, {
|
|
135
127
|
tables: tables,
|
|
136
128
|
className: "selected-x-axis",
|
|
137
|
-
label:
|
|
129
|
+
label: intl.get(xLabel),
|
|
138
130
|
selectedTableId: table_id,
|
|
139
131
|
selectedColumnKey: x_axis_column_key,
|
|
140
132
|
selectedDateGranularity: x_axis_date_granularity,
|
|
@@ -142,18 +134,18 @@ const DataSettings = _ref => {
|
|
|
142
134
|
onGroupByChange: onXAxisColumnChange,
|
|
143
135
|
onGroupbyDateGranularityChange: onGroupbyDateGranularityChange,
|
|
144
136
|
onGroupbyGeolocationGranularityChange: onGroupbyGeolocationGranularityChange
|
|
145
|
-
}), /*#__PURE__*/
|
|
137
|
+
}), /*#__PURE__*/React.createElement(_DTableSwitch, {
|
|
146
138
|
checked: x_axis_include_empty_cells,
|
|
147
|
-
placeholder:
|
|
139
|
+
placeholder: intl.get('Include_empty'),
|
|
148
140
|
onChange: onIncludeEmptyChange
|
|
149
|
-
}), /*#__PURE__*/
|
|
141
|
+
}), /*#__PURE__*/React.createElement(Divider, {
|
|
150
142
|
className: "mt-4"
|
|
151
|
-
}), /*#__PURE__*/
|
|
143
|
+
}), /*#__PURE__*/React.createElement(YAxisGroupSettings, {
|
|
152
144
|
className: "selected-y-axis",
|
|
153
|
-
label:
|
|
145
|
+
label: intl.get(yLabel),
|
|
154
146
|
chart: chart,
|
|
155
147
|
tables: tables,
|
|
156
148
|
onChange: onChange
|
|
157
149
|
}), renderDataSort());
|
|
158
150
|
};
|
|
159
|
-
|
|
151
|
+
export default DataSettings;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "AdvanceBarDataSettings", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _dataSettings.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "AdvanceBarStyleSettings", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _styleSettings.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _dataSettings = _interopRequireDefault(require("./data-settings"));
|
|
20
|
-
var _styleSettings = _interopRequireDefault(require("./style-settings"));
|
|
1
|
+
import AdvanceBarDataSettings from './data-settings';
|
|
2
|
+
import AdvanceBarStyleSettings from './style-settings';
|
|
3
|
+
export { AdvanceBarDataSettings, AdvanceBarStyleSettings };
|