sea-chart 2.0.43 → 2.0.45
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 +4 -11
- package/dist/components/cell-factory/FormatterConfig.js +55 -62
- package/dist/components/cell-factory/SimpleCellFormatter.js +4 -11
- 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 +27 -35
- 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 +11 -18
- package/dist/components/color-popover/color-rules/color-rule.js +25 -33
- package/dist/components/color-popover/color-rules/index.js +6 -14
- 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 +10 -18
- package/dist/components/color-popover/color-rules-popover.js +26 -34
- package/dist/components/color-popover/color-selector-popover.js +10 -18
- package/dist/components/color-setting/color-group-selector.js +12 -20
- package/dist/components/common-add-tool/index.js +6 -13
- package/dist/components/data-process-setter/data-setting-header.js +7 -14
- package/dist/components/data-process-setter/hide-column-setter.js +12 -19
- package/dist/components/data-process-setter/index.js +4 -27
- package/dist/components/data-process-setter/sort-setter.js +16 -24
- package/dist/components/draggable/Draggable.js +7 -13
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +42 -50
- 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 +4 -11
- 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 +25 -33
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +9 -18
- package/dist/components/popover/sort-popover/sort-popover.js +54 -64
- package/dist/components/resize-handle/ResizeHandle.js +6 -13
- package/dist/components/row-card/row-card-header-cell.js +15 -22
- package/dist/components/row-card/row-card-header.js +14 -21
- package/dist/components/row-card/row-card-item.js +33 -41
- package/dist/components/row-card/row-card.js +15 -23
- package/dist/components/statistic-record-dialog/index.js +56 -64
- package/dist/components/tooltip/index.js +21 -21
- package/dist/components/types-dialog/index.js +56 -64
- 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 +149 -273
- 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 +20 -24
- 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 +8 -11
- package/dist/model/basic-number-card.js +13 -20
- package/dist/model/chart.js +7 -13
- package/dist/model/combination.js +19 -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 +15 -18
- package/dist/model/horizontal-group-bar.js +14 -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 +15 -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 +7 -13
- 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 +83 -74
- 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 +69 -60
- 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 +18 -26
- 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 +94 -77
- 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 +26 -34
- 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 +64 -72
- 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 +111 -119
- 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 +62 -53
- 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 +17 -25
- package/dist/settings/widgets/axis-title-font-settings/index.js +39 -0
- 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 +24 -32
- 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 +23 -31
- 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 +72 -80
- package/dist/settings/widgets/switch/index.js +8 -15
- 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 +63 -71
- package/dist/utils/cell-format-utils.js +18 -28
- package/dist/utils/cell-value-utils.js +5 -12
- package/dist/utils/chart-utils/base-utils.js +362 -334
- package/dist/utils/chart-utils/index.js +28 -41
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +80 -86
- 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 +19 -26
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +32 -39
- 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 +21 -28
- package/dist/utils/chart-utils/original-data-utils/pivot-table-calculator.js +91 -97
- 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 +284 -246
- package/dist/utils/chart.js +9 -17
- package/dist/utils/collaborator-manager.js +3 -9
- package/dist/utils/collaborator-utils.js +18 -30
- package/dist/utils/collaborator.js +4 -13
- package/dist/utils/color-utils.js +18 -29
- package/dist/utils/column-utils.js +65 -92
- package/dist/utils/common-utils.js +27 -52
- package/dist/utils/concurrency-manager.js +1 -7
- package/dist/utils/contexts.js +5 -12
- package/dist/utils/date-translate.js +11 -19
- 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 +1 -7
- package/dist/utils/options-utils.js +8 -16
- package/dist/utils/row-record-utils.js +182 -178
- package/dist/utils/row-utils.js +27 -38
- package/dist/utils/search.js +24 -32
- package/dist/utils/sql/chart-data-sql.js +49 -55
- package/dist/utils/sql/column-2-sql-column.js +146 -154
- package/dist/utils/sql/index.js +3 -27
- package/dist/utils/trend-utils.js +39 -47
- package/dist/view/index.css +0 -17
- package/dist/view/index.js +89 -95
- package/dist/view/title/index.js +15 -23
- package/dist/view/wrapper/area-group.js +57 -74
- package/dist/view/wrapper/area.js +51 -72
- package/dist/view/wrapper/bar-compare.js +47 -58
- package/dist/view/wrapper/bar-custom-stack.js +53 -121
- package/dist/view/wrapper/bar-group.js +55 -96
- package/dist/view/wrapper/bar-stack.js +58 -92
- package/dist/view/wrapper/bar.js +45 -66
- package/dist/view/wrapper/basic-number-card.js +25 -26
- package/dist/view/wrapper/chart-component.js +600 -166
- package/dist/view/wrapper/combination.js +79 -87
- package/dist/view/wrapper/completeness-group.js +46 -98
- package/dist/view/wrapper/completeness.js +45 -97
- package/dist/view/wrapper/dashboard.js +33 -47
- package/dist/view/wrapper/funnel.js +65 -64
- package/dist/view/wrapper/heat-map.js +126 -104
- package/dist/view/wrapper/horizontal-bar-group.js +61 -78
- package/dist/view/wrapper/horizontal-bar-stack.js +60 -111
- package/dist/view/wrapper/horizontal-bar.js +45 -68
- package/dist/view/wrapper/index.js +110 -115
- package/dist/view/wrapper/line-group.js +52 -68
- package/dist/view/wrapper/line.js +47 -67
- package/dist/view/wrapper/map-bubble.js +46 -59
- package/dist/view/wrapper/map-world-bubble.js +45 -58
- package/dist/view/wrapper/map-world.js +47 -60
- package/dist/view/wrapper/map.js +48 -60
- package/dist/view/wrapper/mirror.js +45 -64
- package/dist/view/wrapper/pie.js +51 -59
- package/dist/view/wrapper/ring.js +57 -64
- package/dist/view/wrapper/scatter.js +53 -69
- package/dist/view/wrapper/table/index.js +13 -21
- 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 +50 -58
- package/dist/view/wrapper/table/pivot-table-display-name.js +83 -91
- package/dist/view/wrapper/table/two-dimension-table.js +76 -84
- package/dist/view/wrapper/table-element/components/dataset-utils.js +23 -36
- package/dist/view/wrapper/table-element/components/formatter.js +96 -105
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +22 -31
- package/dist/view/wrapper/table-element/components/formatters/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +73 -80
- package/dist/view/wrapper/table-element/components/formula-formatter.js +9 -16
- package/dist/view/wrapper/table-element/components/link-formatter.js +73 -80
- package/dist/view/wrapper/table-element/components/record.js +10 -17
- package/dist/view/wrapper/table-element/components/records-body.js +17 -19
- 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 +23 -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 +5 -15
- 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 +39 -57
- package/dist/view/wrapper/trend.js +41 -48
- package/package.json +1 -1
|
@@ -1,46 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var _mapWorldBubble = _interopRequireDefault(require("./map-world-bubble"));
|
|
37
|
-
var _heatMap = _interopRequireDefault(require("./heat-map"));
|
|
38
|
-
var _mirror = _interopRequireDefault(require("./mirror"));
|
|
39
|
-
var _dashboard = _interopRequireDefault(require("./dashboard"));
|
|
40
|
-
var _treemap = _interopRequireDefault(require("./treemap"));
|
|
41
|
-
var _funnel = _interopRequireDefault(require("./funnel"));
|
|
42
|
-
var _trend = _interopRequireDefault(require("./trend"));
|
|
43
|
-
var _tableElement = _interopRequireDefault(require("./table-element"));
|
|
1
|
+
import React, { useCallback, useState } from 'react';
|
|
2
|
+
import { CHART_TYPE } from '../../constants';
|
|
3
|
+
import { BaseUtils } from '../../utils';
|
|
4
|
+
import StatisticRecordDialog from '../../components/statistic-record-dialog';
|
|
5
|
+
import Table from './table';
|
|
6
|
+
import Bar from './bar';
|
|
7
|
+
import BarGroup from './bar-group';
|
|
8
|
+
import BarStack from './bar-stack';
|
|
9
|
+
import BarCompare from './bar-compare';
|
|
10
|
+
import BarCustomStack from './bar-custom-stack';
|
|
11
|
+
import HorizontalBar from './horizontal-bar';
|
|
12
|
+
import HorizontalBarGroup from './horizontal-bar-group';
|
|
13
|
+
import HorizontalBarStack from './horizontal-bar-stack';
|
|
14
|
+
import Completeness from './completeness';
|
|
15
|
+
import CompletenessGroup from './completeness-group';
|
|
16
|
+
import Line from './line';
|
|
17
|
+
import LineGroup from './line-group';
|
|
18
|
+
import Area from './area';
|
|
19
|
+
import AreaGroup from './area-group';
|
|
20
|
+
import Pie from './pie';
|
|
21
|
+
import Ring from './ring';
|
|
22
|
+
import Scatter from './scatter';
|
|
23
|
+
import BasicNumericCard from './basic-number-card';
|
|
24
|
+
import Combination from './combination';
|
|
25
|
+
import Map from './map';
|
|
26
|
+
import MapBubble from './map-bubble';
|
|
27
|
+
import WorldMap from './map-world';
|
|
28
|
+
import WorldMapBubble from './map-world-bubble';
|
|
29
|
+
import HeatMap from './heat-map';
|
|
30
|
+
import Mirror from './mirror';
|
|
31
|
+
import Dashboard from './dashboard';
|
|
32
|
+
import Treemap from './treemap';
|
|
33
|
+
import Funnel from './funnel';
|
|
34
|
+
import Trend from './trend';
|
|
35
|
+
import TableElement from './table-element';
|
|
44
36
|
const Wrapper = _ref => {
|
|
45
37
|
let {
|
|
46
38
|
dtableStoreValue,
|
|
@@ -57,10 +49,10 @@ const Wrapper = _ref => {
|
|
|
57
49
|
isBigScreenPlugin,
|
|
58
50
|
resizeSignal
|
|
59
51
|
} = _ref;
|
|
60
|
-
const [statisticRecords, setStatisticRecords] =
|
|
61
|
-
const [pivotTableColumnRow, setPivotTableColumnRow] =
|
|
62
|
-
const [isStatisticRecordsDialogShow, setIsStatisticRecordsDialogShow] =
|
|
63
|
-
const toggleStatisticRecordsDialog =
|
|
52
|
+
const [statisticRecords, setStatisticRecords] = useState({});
|
|
53
|
+
const [pivotTableColumnRow, setPivotTableColumnRow] = useState({});
|
|
54
|
+
const [isStatisticRecordsDialogShow, setIsStatisticRecordsDialogShow] = useState(false);
|
|
55
|
+
const toggleStatisticRecordsDialog = useCallback((statisticRecords, tableColumnRow) => {
|
|
64
56
|
setStatisticRecords(statisticRecords);
|
|
65
57
|
if (tableColumnRow) {
|
|
66
58
|
setPivotTableColumnRow({
|
|
@@ -71,6 +63,9 @@ const Wrapper = _ref => {
|
|
|
71
63
|
setIsStatisticRecordsDialogShow(!isStatisticRecordsDialogShow);
|
|
72
64
|
}, [isStatisticRecordsDialogShow]);
|
|
73
65
|
const renderChart = () => {
|
|
66
|
+
if (!data || !chart || !chart.config) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
74
69
|
const {
|
|
75
70
|
result,
|
|
76
71
|
groupbyColumn,
|
|
@@ -101,35 +96,35 @@ const Wrapper = _ref => {
|
|
|
101
96
|
isBigScreenPlugin
|
|
102
97
|
};
|
|
103
98
|
switch (type) {
|
|
104
|
-
case
|
|
99
|
+
case CHART_TYPE.TABLE_ELEMENT:
|
|
105
100
|
{
|
|
106
|
-
return /*#__PURE__*/
|
|
101
|
+
return /*#__PURE__*/React.createElement(TableElement, Object.assign({}, baseProps, {
|
|
107
102
|
canvasStyle: canvasStyle
|
|
108
103
|
}));
|
|
109
104
|
}
|
|
110
|
-
case
|
|
105
|
+
case CHART_TYPE.TABLE:
|
|
111
106
|
{
|
|
112
107
|
if (!result) return null;
|
|
113
|
-
return /*#__PURE__*/
|
|
108
|
+
return /*#__PURE__*/React.createElement(Table, Object.assign({}, baseProps, {
|
|
114
109
|
summaryColumns: summary_columns,
|
|
115
110
|
columnGroupbyColumn: columnGroupbyColumn,
|
|
116
111
|
summaryMethod: summary_method,
|
|
117
112
|
chartTableColumns: chartTableColumns
|
|
118
113
|
}));
|
|
119
114
|
}
|
|
120
|
-
case
|
|
115
|
+
case CHART_TYPE.BAR:
|
|
121
116
|
{
|
|
122
|
-
return /*#__PURE__*/
|
|
117
|
+
return /*#__PURE__*/React.createElement(Bar, Object.assign({}, baseProps, {
|
|
123
118
|
canvasStyle: canvasStyle
|
|
124
119
|
}));
|
|
125
120
|
}
|
|
126
|
-
case
|
|
121
|
+
case CHART_TYPE.BAR_GROUP:
|
|
127
122
|
{
|
|
128
|
-
return /*#__PURE__*/
|
|
123
|
+
return /*#__PURE__*/React.createElement(BarGroup, Object.assign({}, baseProps, {
|
|
129
124
|
canvasStyle: canvasStyle
|
|
130
125
|
}));
|
|
131
126
|
}
|
|
132
|
-
case
|
|
127
|
+
case CHART_TYPE.BAR_STACK:
|
|
133
128
|
{
|
|
134
129
|
const {
|
|
135
130
|
config
|
|
@@ -138,55 +133,55 @@ const Wrapper = _ref => {
|
|
|
138
133
|
column_groupby_multiple_numeric_column,
|
|
139
134
|
column_groupby_column_key
|
|
140
135
|
} = config;
|
|
141
|
-
const BarGroupComponent = column_groupby_column_key || column_groupby_multiple_numeric_column ?
|
|
142
|
-
return /*#__PURE__*/
|
|
136
|
+
const BarGroupComponent = column_groupby_column_key || column_groupby_multiple_numeric_column ? BarStack : Bar;
|
|
137
|
+
return /*#__PURE__*/React.createElement(BarGroupComponent, Object.assign({}, baseProps, {
|
|
143
138
|
canvasStyle: canvasStyle
|
|
144
139
|
}));
|
|
145
140
|
}
|
|
146
|
-
case
|
|
141
|
+
case CHART_TYPE.COMPARE_BAR:
|
|
147
142
|
{
|
|
148
|
-
return /*#__PURE__*/
|
|
143
|
+
return /*#__PURE__*/React.createElement(BarCompare, Object.assign({}, baseProps, {
|
|
149
144
|
canvasStyle: canvasStyle
|
|
150
145
|
}));
|
|
151
146
|
}
|
|
152
|
-
case
|
|
147
|
+
case CHART_TYPE.BAR_CUSTOM:
|
|
153
148
|
{
|
|
154
|
-
return /*#__PURE__*/
|
|
149
|
+
return /*#__PURE__*/React.createElement(BarCustomStack, Object.assign({}, baseProps, {
|
|
155
150
|
canvasStyle: canvasStyle
|
|
156
151
|
}));
|
|
157
152
|
}
|
|
158
|
-
case
|
|
153
|
+
case CHART_TYPE.HORIZONTAL_BAR:
|
|
159
154
|
{
|
|
160
|
-
return /*#__PURE__*/
|
|
155
|
+
return /*#__PURE__*/React.createElement(HorizontalBar, Object.assign({}, baseProps, {
|
|
161
156
|
canvasStyle: canvasStyle
|
|
162
157
|
}));
|
|
163
158
|
}
|
|
164
|
-
case
|
|
159
|
+
case CHART_TYPE.HORIZONTAL_GROUP_BAR:
|
|
165
160
|
{
|
|
166
161
|
const {
|
|
167
162
|
config,
|
|
168
163
|
id,
|
|
169
164
|
style_config
|
|
170
165
|
} = chart;
|
|
171
|
-
const newConfig =
|
|
166
|
+
const newConfig = BaseUtils.convertConfig(config);
|
|
172
167
|
const newChart = {
|
|
173
168
|
id,
|
|
174
169
|
config: newConfig,
|
|
175
170
|
style_config
|
|
176
171
|
};
|
|
177
|
-
return /*#__PURE__*/
|
|
172
|
+
return /*#__PURE__*/React.createElement(HorizontalBarGroup, Object.assign({}, baseProps, {
|
|
178
173
|
canvasStyle: canvasStyle,
|
|
179
174
|
chart: newChart
|
|
180
175
|
}));
|
|
181
176
|
}
|
|
182
|
-
case
|
|
177
|
+
case CHART_TYPE.STACKED_HORIZONTAL_BAR:
|
|
183
178
|
{
|
|
184
179
|
const {
|
|
185
180
|
config,
|
|
186
181
|
id,
|
|
187
182
|
style_config
|
|
188
183
|
} = chart;
|
|
189
|
-
const newConfig =
|
|
184
|
+
const newConfig = BaseUtils.convertConfig(config);
|
|
190
185
|
const newChart = {
|
|
191
186
|
id,
|
|
192
187
|
config: newConfig,
|
|
@@ -196,135 +191,135 @@ const Wrapper = _ref => {
|
|
|
196
191
|
column_groupby_column_key,
|
|
197
192
|
column_groupby_multiple_numeric_column
|
|
198
193
|
} = config;
|
|
199
|
-
const HorizontalComponent = column_groupby_column_key || column_groupby_multiple_numeric_column ?
|
|
200
|
-
return /*#__PURE__*/
|
|
194
|
+
const HorizontalComponent = column_groupby_column_key || column_groupby_multiple_numeric_column ? HorizontalBarStack : HorizontalBar;
|
|
195
|
+
return /*#__PURE__*/React.createElement(HorizontalComponent, Object.assign({}, baseProps, {
|
|
201
196
|
canvasStyle: canvasStyle,
|
|
202
197
|
chart: newChart
|
|
203
198
|
}));
|
|
204
199
|
}
|
|
205
|
-
case
|
|
200
|
+
case CHART_TYPE.COMPLETENESS:
|
|
206
201
|
{
|
|
207
|
-
return /*#__PURE__*/
|
|
202
|
+
return /*#__PURE__*/React.createElement(Completeness, Object.assign({}, baseProps, {
|
|
208
203
|
canvasStyle: canvasStyle
|
|
209
204
|
}));
|
|
210
205
|
}
|
|
211
|
-
case
|
|
206
|
+
case CHART_TYPE.COMPLETENESS_GROUP:
|
|
212
207
|
{
|
|
213
|
-
return /*#__PURE__*/
|
|
208
|
+
return /*#__PURE__*/React.createElement(CompletenessGroup, Object.assign({}, baseProps, {
|
|
214
209
|
canvasStyle: canvasStyle
|
|
215
210
|
}));
|
|
216
211
|
}
|
|
217
|
-
case
|
|
212
|
+
case CHART_TYPE.LINE:
|
|
218
213
|
{
|
|
219
|
-
return /*#__PURE__*/
|
|
214
|
+
return /*#__PURE__*/React.createElement(Line, Object.assign({}, baseProps, {
|
|
220
215
|
canvasStyle: canvasStyle
|
|
221
216
|
}));
|
|
222
217
|
}
|
|
223
|
-
case
|
|
218
|
+
case CHART_TYPE.LINE_GROUP:
|
|
224
219
|
{
|
|
225
|
-
return /*#__PURE__*/
|
|
220
|
+
return /*#__PURE__*/React.createElement(LineGroup, Object.assign({}, baseProps, {
|
|
226
221
|
canvasStyle: canvasStyle
|
|
227
222
|
}));
|
|
228
223
|
}
|
|
229
|
-
case
|
|
224
|
+
case CHART_TYPE.AREA:
|
|
230
225
|
{
|
|
231
|
-
return /*#__PURE__*/
|
|
226
|
+
return /*#__PURE__*/React.createElement(Area, Object.assign({}, baseProps, {
|
|
232
227
|
canvasStyle: canvasStyle
|
|
233
228
|
}));
|
|
234
229
|
}
|
|
235
|
-
case
|
|
230
|
+
case CHART_TYPE.AREA_GROUP:
|
|
236
231
|
{
|
|
237
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React.createElement(AreaGroup, Object.assign({}, baseProps, {
|
|
238
233
|
canvasStyle: canvasStyle
|
|
239
234
|
}));
|
|
240
235
|
}
|
|
241
|
-
case
|
|
236
|
+
case CHART_TYPE.PIE:
|
|
242
237
|
{
|
|
243
|
-
return /*#__PURE__*/
|
|
238
|
+
return /*#__PURE__*/React.createElement(Pie, Object.assign({}, baseProps, {
|
|
244
239
|
canvasStyle: canvasStyle
|
|
245
240
|
}));
|
|
246
241
|
}
|
|
247
|
-
case
|
|
242
|
+
case CHART_TYPE.RING:
|
|
248
243
|
{
|
|
249
|
-
return /*#__PURE__*/
|
|
244
|
+
return /*#__PURE__*/React.createElement(Ring, Object.assign({}, baseProps, {
|
|
250
245
|
canvasStyle: canvasStyle
|
|
251
246
|
}));
|
|
252
247
|
}
|
|
253
|
-
case
|
|
248
|
+
case CHART_TYPE.SCATTER:
|
|
254
249
|
{
|
|
255
|
-
return /*#__PURE__*/
|
|
250
|
+
return /*#__PURE__*/React.createElement(Scatter, Object.assign({}, baseProps, {
|
|
256
251
|
canvasStyle: canvasStyle
|
|
257
252
|
}));
|
|
258
253
|
}
|
|
259
|
-
case
|
|
254
|
+
case CHART_TYPE.COMBINATION:
|
|
260
255
|
{
|
|
261
|
-
return /*#__PURE__*/
|
|
256
|
+
return /*#__PURE__*/React.createElement(Combination, Object.assign({}, baseProps, {
|
|
262
257
|
canvasStyle: canvasStyle
|
|
263
258
|
}));
|
|
264
259
|
}
|
|
265
|
-
case
|
|
260
|
+
case CHART_TYPE.MAP:
|
|
266
261
|
{
|
|
267
|
-
return /*#__PURE__*/
|
|
262
|
+
return /*#__PURE__*/React.createElement(Map, Object.assign({}, baseProps, {
|
|
268
263
|
canvasStyle: canvasStyle
|
|
269
264
|
}));
|
|
270
265
|
}
|
|
271
|
-
case
|
|
266
|
+
case CHART_TYPE.MAP_BUBBLE:
|
|
272
267
|
{
|
|
273
|
-
return /*#__PURE__*/
|
|
268
|
+
return /*#__PURE__*/React.createElement(MapBubble, Object.assign({}, baseProps, {
|
|
274
269
|
canvasStyle: canvasStyle
|
|
275
270
|
}));
|
|
276
271
|
}
|
|
277
|
-
case
|
|
272
|
+
case CHART_TYPE.WORLD_MAP:
|
|
278
273
|
{
|
|
279
|
-
return /*#__PURE__*/
|
|
274
|
+
return /*#__PURE__*/React.createElement(WorldMap, Object.assign({}, baseProps, {
|
|
280
275
|
canvasStyle: canvasStyle
|
|
281
276
|
}));
|
|
282
277
|
}
|
|
283
|
-
case
|
|
278
|
+
case CHART_TYPE.WORLD_MAP_BUBBLE:
|
|
284
279
|
{
|
|
285
|
-
return /*#__PURE__*/
|
|
280
|
+
return /*#__PURE__*/React.createElement(WorldMapBubble, Object.assign({}, baseProps, {
|
|
286
281
|
canvasStyle: canvasStyle
|
|
287
282
|
}));
|
|
288
283
|
}
|
|
289
|
-
case
|
|
284
|
+
case CHART_TYPE.HEAT_MAP:
|
|
290
285
|
{
|
|
291
|
-
return /*#__PURE__*/
|
|
286
|
+
return /*#__PURE__*/React.createElement(HeatMap, Object.assign({}, baseProps, {
|
|
292
287
|
canvasStyle: canvasStyle
|
|
293
288
|
}));
|
|
294
289
|
}
|
|
295
|
-
case
|
|
290
|
+
case CHART_TYPE.MIRROR:
|
|
296
291
|
{
|
|
297
|
-
return /*#__PURE__*/
|
|
292
|
+
return /*#__PURE__*/React.createElement(Mirror, Object.assign({}, baseProps, {
|
|
298
293
|
canvasStyle: canvasStyle
|
|
299
294
|
}));
|
|
300
295
|
}
|
|
301
|
-
case
|
|
296
|
+
case CHART_TYPE.DASHBOARD:
|
|
302
297
|
{
|
|
303
|
-
return /*#__PURE__*/
|
|
298
|
+
return /*#__PURE__*/React.createElement(Dashboard, Object.assign({}, baseProps, {
|
|
304
299
|
canvasStyle: canvasStyle
|
|
305
300
|
}));
|
|
306
301
|
}
|
|
307
|
-
case
|
|
302
|
+
case CHART_TYPE.TREE_MAP:
|
|
308
303
|
{
|
|
309
|
-
return /*#__PURE__*/
|
|
304
|
+
return /*#__PURE__*/React.createElement(Treemap, Object.assign({}, baseProps, {
|
|
310
305
|
canvasStyle: canvasStyle
|
|
311
306
|
}));
|
|
312
307
|
}
|
|
313
|
-
case
|
|
308
|
+
case CHART_TYPE.FUNNEL:
|
|
314
309
|
{
|
|
315
|
-
return /*#__PURE__*/
|
|
310
|
+
return /*#__PURE__*/React.createElement(Funnel, Object.assign({}, baseProps, {
|
|
316
311
|
canvasStyle: canvasStyle
|
|
317
312
|
}));
|
|
318
313
|
}
|
|
319
|
-
case
|
|
314
|
+
case CHART_TYPE.BASIC_NUMBER_CARD:
|
|
320
315
|
{
|
|
321
|
-
return /*#__PURE__*/
|
|
316
|
+
return /*#__PURE__*/React.createElement(BasicNumericCard, Object.assign({}, baseProps, {
|
|
322
317
|
canvasStyle: canvasStyle
|
|
323
318
|
}));
|
|
324
319
|
}
|
|
325
|
-
case
|
|
320
|
+
case CHART_TYPE.TREND:
|
|
326
321
|
{
|
|
327
|
-
return /*#__PURE__*/
|
|
322
|
+
return /*#__PURE__*/React.createElement(Trend, Object.assign({}, baseProps, {
|
|
328
323
|
canvasStyle: canvasStyle
|
|
329
324
|
}));
|
|
330
325
|
}
|
|
@@ -343,7 +338,7 @@ const Wrapper = _ref => {
|
|
|
343
338
|
const drillDownStatus = drill_down_status !== undefined && drill_down_status !== null ? drill_down_status : true;
|
|
344
339
|
// in dtable-statistics always support drill down
|
|
345
340
|
const supportDrillDown = isCalculateByView ? true : drillDownStatus;
|
|
346
|
-
return /*#__PURE__*/
|
|
341
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderChart(), isStatisticRecordsDialogShow && supportDrillDown && /*#__PURE__*/React.createElement(StatisticRecordDialog, {
|
|
347
342
|
chartRecordsParams: {
|
|
348
343
|
statisticRecord: {
|
|
349
344
|
...statisticRecords
|
|
@@ -360,4 +355,4 @@ const Wrapper = _ref => {
|
|
|
360
355
|
toggleStatisticRecordsDialog: toggleStatisticRecordsDialog
|
|
361
356
|
}));
|
|
362
357
|
};
|
|
363
|
-
|
|
358
|
+
export default Wrapper;
|