sea-chart 2.0.38 → 2.0.39
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 +15 -8
- package/dist/components/cell-factory/FormatterConfig.js +62 -55
- package/dist/components/cell-factory/SimpleCellFormatter.js +12 -5
- package/dist/components/cell-factory/SingleSelectOption.js +18 -11
- package/dist/components/cell-factory/cell-editor-factory.js +12 -5
- package/dist/components/cell-factory/cell-formatter-factory.js +11 -4
- package/dist/components/cell-factory/link-content.js +38 -30
- package/dist/components/chart-color-selector/color-selector.js +18 -11
- package/dist/components/collaborator/index.js +14 -7
- package/dist/components/color-picker/index.js +19 -12
- package/dist/components/color-popover/color-rules/color-rule.js +34 -26
- package/dist/components/color-popover/color-rules/index.js +15 -7
- package/dist/components/color-popover/color-rules/rule-filters/filter.js +34 -27
- package/dist/components/color-popover/color-rules/rule-filters/index.js +25 -17
- package/dist/components/color-popover/color-rules/rule-filters/number-input.js +17 -9
- package/dist/components/color-popover/color-rules-popover.js +38 -30
- package/dist/components/color-popover/color-selector-popover.js +20 -12
- package/dist/components/color-setting/color-group-selector.js +21 -13
- package/dist/components/common-add-tool/index.js +15 -8
- package/dist/components/data-process-setter/data-setting-header.js +14 -7
- package/dist/components/data-process-setter/hide-column-setter.js +20 -13
- package/dist/components/data-process-setter/index.js +27 -4
- package/dist/components/data-process-setter/sort-setter.js +26 -18
- package/dist/components/draggable/Draggable.js +13 -7
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +48 -40
- package/dist/components/drill-down-settings/drill-down-fields-settings/index.js +18 -10
- package/dist/components/drill-down-settings/index.js +18 -11
- package/dist/components/dtable-popover/index.js +20 -13
- package/dist/components/dtable-search-input/index.js +21 -13
- package/dist/components/font-settings/index.js +22 -14
- package/dist/components/goal-line-setting/goal-setting-item.js +14 -6
- package/dist/components/goal-line-setting/index.js +19 -12
- package/dist/components/highlighter/highlighter.js +14 -7
- package/dist/components/icon/index.js +12 -5
- package/dist/components/index.js +48 -7
- package/dist/components/loading/index.js +13 -6
- package/dist/components/number-input/index.js +11 -4
- package/dist/components/pixel-editor/index.js +23 -15
- package/dist/components/popover/hide-column-popover/hide-column-popover-widgets/hide-column-item.js +15 -8
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +34 -26
- package/dist/components/popover/sort-popover/sort-popover-widgets/sort-utils.js +18 -9
- package/dist/components/popover/sort-popover/sort-popover.js +65 -55
- package/dist/components/resize-handle/ResizeHandle.js +13 -6
- package/dist/components/row-card/row-card-header-cell.js +24 -17
- package/dist/components/row-card/row-card-header.js +22 -15
- package/dist/components/row-card/row-card-item.js +43 -35
- package/dist/components/row-card/row-card.js +25 -17
- package/dist/components/statistic-record-dialog/index.js +64 -56
- package/dist/components/tooltip/index.js +21 -14
- package/dist/components/types-dialog/index.js +70 -62
- package/dist/components/types-dialog/use-force-update.js +10 -4
- package/dist/constants/color-rules.js +14 -8
- package/dist/constants/common-constants.js +14 -8
- package/dist/constants/error.js +8 -2
- package/dist/constants/geolocation.js +15 -9
- package/dist/constants/index.js +271 -142
- package/dist/constants/key-codes.js +2 -0
- package/dist/constants/model.js +9 -3
- package/dist/constants/regions.js +8 -3
- package/dist/constants/style.js +12 -6
- package/dist/constants/table.js +7 -1
- package/dist/constants/type-image.js +39 -33
- package/dist/constants/type.js +9 -3
- package/dist/context.js +20 -13
- package/dist/editor/index.js +15 -8
- package/dist/index.js +104 -13
- package/dist/intl.js +17 -10
- package/dist/locale/index.js +23 -16
- package/dist/locale/lang/de.js +7 -1
- package/dist/locale/lang/en.js +7 -1
- package/dist/locale/lang/es.js +7 -1
- package/dist/locale/lang/fr.js +7 -1
- package/dist/locale/lang/pt.js +7 -1
- package/dist/locale/lang/ru.js +7 -1
- package/dist/locale/lang/zh_CN.js +7 -1
- package/dist/model/area-group.js +19 -12
- package/dist/model/area.js +19 -12
- package/dist/model/bar-custom.js +18 -11
- package/dist/model/bar-group.js +19 -12
- package/dist/model/bar-stack.js +17 -10
- package/dist/model/bar.js +18 -11
- package/dist/model/base-model.js +11 -4
- package/dist/model/basic-number-card.js +20 -13
- package/dist/model/chart.js +13 -7
- package/dist/model/combination.js +22 -15
- package/dist/model/compare-bar.js +21 -14
- package/dist/model/completeness-group.js +18 -11
- package/dist/model/completeness.js +17 -10
- package/dist/model/dashboard.js +14 -7
- package/dist/model/funnel.js +21 -14
- package/dist/model/generic-model.js +143 -135
- package/dist/model/heat-map.js +16 -9
- package/dist/model/horizontal-bar.js +18 -11
- package/dist/model/horizontal-group-bar.js +17 -10
- package/dist/model/index.js +93 -69
- package/dist/model/line-group.js +20 -13
- package/dist/model/line.js +19 -12
- package/dist/model/map-bubble.js +19 -12
- package/dist/model/map.js +19 -12
- package/dist/model/mirror.js +20 -13
- package/dist/model/pie.js +19 -12
- package/dist/model/ring.js +19 -12
- package/dist/model/scatter.js +17 -10
- package/dist/model/stacked-horizontal-bar.js +18 -11
- package/dist/model/table-element.js +12 -5
- package/dist/model/table.js +14 -7
- package/dist/model/tree-map.js +14 -7
- package/dist/model/trend.js +18 -11
- package/dist/model/user.js +7 -1
- package/dist/model/world-map-bubble.js +19 -12
- package/dist/model/world-map.js +19 -12
- package/dist/services/map-json.js +17 -11
- package/dist/settings/advance-bar-settings/data-settings.js +44 -36
- package/dist/settings/advance-bar-settings/index.js +20 -3
- package/dist/settings/advance-bar-settings/style-settings.js +71 -63
- package/dist/settings/bar-settings/data-settings.js +47 -39
- package/dist/settings/bar-settings/index.js +20 -3
- package/dist/settings/bar-settings/style-settings.js +57 -49
- package/dist/settings/basic-number-card/data-settings.js +57 -49
- package/dist/settings/basic-number-card/index.js +20 -3
- package/dist/settings/basic-number-card/style-settings.js +27 -19
- package/dist/settings/combination-settings/data-settings.js +63 -55
- package/dist/settings/combination-settings/index.js +20 -3
- package/dist/settings/combination-settings/style-settings.js +73 -65
- package/dist/settings/completeness-settings/callbacks/callbacks.js +27 -16
- package/dist/settings/completeness-settings/data-settings/completion-settings.js +28 -21
- package/dist/settings/completeness-settings/data-settings/data-settings.js +32 -25
- package/dist/settings/completeness-settings/index.js +20 -3
- package/dist/settings/completeness-settings/style-settings.js +26 -19
- package/dist/settings/dashboard-settings/data-settings.js +51 -43
- package/dist/settings/dashboard-settings/index.js +13 -2
- package/dist/settings/data-settings.js +79 -72
- package/dist/settings/funnel-settings/components/dnd-item/dnd-item.js +19 -12
- package/dist/settings/funnel-settings/components/dnd-list.js +23 -15
- package/dist/settings/funnel-settings/components/funnel-label-setting.js +40 -32
- package/dist/settings/funnel-settings/components/funnel-layer-setting.js +28 -20
- package/dist/settings/funnel-settings/data-settings.js +31 -23
- package/dist/settings/funnel-settings/index.js +20 -3
- package/dist/settings/funnel-settings/style-settings.js +19 -11
- package/dist/settings/heat-map-settings/data-settings.js +26 -18
- package/dist/settings/heat-map-settings/index.js +20 -3
- package/dist/settings/heat-map-settings/style-settings.js +26 -18
- package/dist/settings/horizontal-bar-settings/data-settings.js +19 -12
- package/dist/settings/horizontal-bar-settings/index.js +20 -3
- package/dist/settings/horizontal-bar-settings/style-settings.js +19 -12
- package/dist/settings/index.js +70 -52
- package/dist/settings/map-settings/components/location-field-selector.js +17 -10
- package/dist/settings/map-settings/components/map-level-selector.js +18 -11
- package/dist/settings/map-settings/components/map-province-city-selector.js +26 -19
- package/dist/settings/map-settings/index.js +20 -3
- package/dist/settings/map-settings/map-data-settings.js +30 -23
- package/dist/settings/map-settings/map-style-settings.js +35 -27
- package/dist/settings/mirror-settings/data-settings.js +34 -26
- package/dist/settings/mirror-settings/index.js +13 -2
- package/dist/settings/pie-settings/data-settings.js +41 -33
- package/dist/settings/pie-settings/index.js +20 -3
- package/dist/settings/pie-settings/style-settings.js +55 -47
- package/dist/settings/scatter/data-settings.js +34 -27
- package/dist/settings/scatter/index.js +12 -3
- package/dist/settings/stacks-settings/index.js +27 -19
- package/dist/settings/stacks-settings/stack-item-settings.js +27 -19
- package/dist/settings/style-settings.js +73 -65
- package/dist/settings/table-element-settings/components/data-filter.js +38 -30
- package/dist/settings/table-element-settings/data-settings.js +29 -21
- package/dist/settings/table-element-settings/index.js +13 -2
- package/dist/settings/table-settings/data-settings.js +120 -112
- package/dist/settings/table-settings/index.js +13 -2
- package/dist/settings/time-comparison-settings/data-settings.js +51 -43
- package/dist/settings/time-comparison-settings/index.js +20 -3
- package/dist/settings/time-comparison-settings/style-settings.js +50 -42
- package/dist/settings/trend-settings/data-settings.js +32 -24
- package/dist/settings/trend-settings/index.js +20 -3
- package/dist/settings/trend-settings/style-setting.js +27 -19
- package/dist/settings/widgets/basic-summary/index.js +63 -55
- package/dist/settings/widgets/chart-type/index.js +26 -18
- package/dist/settings/widgets/color-settings/index.js +80 -72
- package/dist/settings/widgets/common-data-settings.js +29 -21
- package/dist/settings/widgets/data-filter/index.js +43 -35
- package/dist/settings/widgets/data-sort.js +24 -16
- package/dist/settings/widgets/date-summary-item.js +34 -26
- package/dist/settings/widgets/display-values-settings/index.js +22 -14
- package/dist/settings/widgets/divider/index.js +16 -8
- package/dist/settings/widgets/font-settings/font-color-settings.js +19 -11
- package/dist/settings/widgets/font-settings/font-size-settings.js +22 -14
- package/dist/settings/widgets/font-settings/font-weight-settings.js +25 -17
- package/dist/settings/widgets/font-settings/index.js +27 -4
- package/dist/settings/widgets/group-by.js +59 -51
- package/dist/settings/widgets/min-max-setting.js +18 -10
- package/dist/settings/widgets/mininum-slice-percent.js +18 -10
- package/dist/settings/widgets/numeric-summary-item.js +33 -25
- package/dist/settings/widgets/select-line-type/index.js +17 -10
- package/dist/settings/widgets/select-table/index.js +16 -9
- package/dist/settings/widgets/select-view/index.js +28 -20
- package/dist/settings/widgets/stack.js +22 -14
- package/dist/settings/widgets/summary-method-setting.js +25 -17
- package/dist/settings/widgets/summary-settings.js +82 -74
- package/dist/settings/widgets/switch/index.js +16 -9
- package/dist/settings/widgets/text-horizontal-settings.js +23 -15
- package/dist/settings/widgets/time-picker.js +37 -29
- package/dist/settings/widgets/title-settings/index.js +37 -29
- package/dist/settings/widgets/title-settings/title-text.js +12 -5
- package/dist/settings/widgets/x-axios.js +1 -0
- package/dist/settings/widgets/y-axis-group-settings.js +72 -64
- package/dist/utils/cell-format-utils.js +27 -17
- package/dist/utils/cell-value-utils.js +11 -4
- package/dist/utils/chart-utils/base-utils.js +332 -324
- package/dist/utils/chart-utils/index.js +41 -28
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +84 -77
- package/dist/utils/chart-utils/original-data-utils/card-calculator.js +20 -13
- package/dist/utils/chart-utils/original-data-utils/combination-calculator.js +52 -45
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +28 -21
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +40 -33
- package/dist/utils/chart-utils/original-data-utils/dashboard-calculator.js +23 -16
- package/dist/utils/chart-utils/original-data-utils/index.js +57 -50
- package/dist/utils/chart-utils/original-data-utils/mirror-calculator.js +26 -19
- package/dist/utils/chart-utils/original-data-utils/pivot-table-calculator.js +96 -90
- package/dist/utils/chart-utils/original-data-utils/scatter-calculator.js +26 -19
- package/dist/utils/chart-utils/original-data-utils/trend-calculator.js +38 -31
- package/dist/utils/chart-utils/sql-statistics-utils.js +237 -229
- package/dist/utils/chart.js +17 -9
- package/dist/utils/collaborator-manager.js +9 -3
- package/dist/utils/collaborator-utils.js +31 -19
- package/dist/utils/collaborator.js +15 -6
- package/dist/utils/color-utils.js +29 -18
- package/dist/utils/column-utils.js +104 -77
- package/dist/utils/common-utils.js +53 -28
- package/dist/utils/concurrency-manager.js +7 -1
- package/dist/utils/contexts.js +12 -5
- package/dist/utils/date-translate.js +20 -12
- package/dist/utils/digital-sign-utils.js +14 -7
- package/dist/utils/event-bus.js +7 -1
- package/dist/utils/hotkey.js +11 -5
- package/dist/utils/index.js +221 -54
- package/dist/utils/key-generator.js +9 -2
- package/dist/utils/map.js +31 -22
- package/dist/utils/object-utils.js +8 -2
- package/dist/utils/options-utils.js +18 -10
- package/dist/utils/row-record-utils.js +178 -166
- package/dist/utils/row-utils.js +38 -27
- package/dist/utils/search.js +32 -24
- package/dist/utils/sql/chart-data-sql.js +112 -106
- package/dist/utils/sql/column-2-sql-column.js +168 -158
- package/dist/utils/sql/index.js +27 -3
- package/dist/utils/trend-utils.js +47 -39
- package/dist/view/index.js +96 -90
- package/dist/view/title/index.js +24 -16
- package/dist/view/wrapper/area-group.js +53 -45
- package/dist/view/wrapper/area.js +51 -43
- package/dist/view/wrapper/bar-compare.js +46 -38
- package/dist/view/wrapper/bar-custom-stack.js +47 -39
- package/dist/view/wrapper/bar-group.js +53 -45
- package/dist/view/wrapper/bar-stack.js +56 -48
- package/dist/view/wrapper/bar.js +48 -40
- package/dist/view/wrapper/basic-number-card.js +34 -26
- package/dist/view/wrapper/chart-component.js +131 -123
- package/dist/view/wrapper/combination.js +63 -55
- package/dist/view/wrapper/completeness-group.js +48 -40
- package/dist/view/wrapper/completeness.js +44 -36
- package/dist/view/wrapper/dashboard.js +44 -39
- package/dist/view/wrapper/funnel.js +43 -40
- package/dist/view/wrapper/heat-map.js +70 -62
- package/dist/view/wrapper/horizontal-bar-group.js +60 -52
- package/dist/view/wrapper/horizontal-bar-stack.js +55 -47
- package/dist/view/wrapper/horizontal-bar.js +49 -41
- package/dist/view/wrapper/index.js +115 -107
- package/dist/view/wrapper/line-group.js +51 -43
- package/dist/view/wrapper/line.js +50 -42
- package/dist/view/wrapper/map-bubble.js +48 -40
- package/dist/view/wrapper/map-world-bubble.js +47 -39
- package/dist/view/wrapper/map-world.js +49 -41
- package/dist/view/wrapper/map.js +50 -42
- package/dist/view/wrapper/mirror.js +49 -41
- package/dist/view/wrapper/pie.js +52 -44
- package/dist/view/wrapper/ring.js +57 -49
- package/dist/view/wrapper/scatter.js +50 -42
- package/dist/view/wrapper/table/index.js +22 -14
- package/dist/view/wrapper/table/one-dimension-table-no-numeric-columns.js +57 -49
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +61 -53
- package/dist/view/wrapper/table/pivot-table-display-name.js +90 -82
- package/dist/view/wrapper/table/two-dimension-table.js +93 -85
- package/dist/view/wrapper/table-element/components/dataset-utils.js +36 -23
- package/dist/view/wrapper/table-element/components/formatter.js +99 -90
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +32 -23
- package/dist/view/wrapper/table-element/components/formatters/formula-formatter.js +16 -9
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +97 -90
- package/dist/view/wrapper/table-element/components/formula-formatter.js +16 -9
- package/dist/view/wrapper/table-element/components/link-formatter.js +97 -90
- package/dist/view/wrapper/table-element/components/record.js +20 -13
- package/dist/view/wrapper/table-element/components/records-body.js +17 -9
- package/dist/view/wrapper/table-element/components/records-header/index.js +15 -7
- package/dist/view/wrapper/table-element/components/records-header/records-header-cell.js +16 -8
- package/dist/view/wrapper/table-element/components/records.js +33 -25
- package/dist/view/wrapper/table-element/components/resize-column-handle/resize-column-handle.js +12 -5
- package/dist/view/wrapper/table-element/components/utils.js +16 -6
- package/dist/view/wrapper/table-element/components/value-display-utils.js +11 -4
- package/dist/view/wrapper/table-element/components/vertical-scrollbar/index.js +13 -6
- package/dist/view/wrapper/table-element/index.js +26 -18
- package/dist/view/wrapper/treemap.js +46 -38
- package/dist/view/wrapper/trend.js +66 -58
- package/package.json +1 -1
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _dtableUtils = require("dtable-utils");
|
|
11
|
+
var _rowUtils = require("../../../../utils/row-utils");
|
|
12
|
+
var _recordsHeader = _interopRequireDefault(require("./records-header"));
|
|
13
|
+
var _recordsBody = _interopRequireDefault(require("./records-body"));
|
|
14
|
+
var _datasetUtils = require("./dataset-utils");
|
|
15
|
+
var _verticalScrollbar = _interopRequireDefault(require("./vertical-scrollbar"));
|
|
16
|
+
class Records extends _react.Component {
|
|
9
17
|
constructor(props) {
|
|
10
18
|
super(props);
|
|
11
19
|
this.resizeColumnWidthToFitContainer = () => {
|
|
@@ -13,7 +21,7 @@ class Records extends Component {
|
|
|
13
21
|
chart
|
|
14
22
|
} = this.props;
|
|
15
23
|
const displayColumns = this.calcuteDisplayColumns(this.props.shownColumns);
|
|
16
|
-
const container = document.querySelector(
|
|
24
|
+
const container = document.querySelector("#sea-chart-cavans-container-".concat(chart.id));
|
|
17
25
|
let resultTotalwidth = displayColumns.reduce((cur, nextItem) => {
|
|
18
26
|
return cur + nextItem.width;
|
|
19
27
|
}, 0);
|
|
@@ -44,15 +52,15 @@ class Records extends Component {
|
|
|
44
52
|
const {
|
|
45
53
|
chart
|
|
46
54
|
} = this.props;
|
|
47
|
-
const columnsWidthDataStr = localStorage.getItem(
|
|
55
|
+
const columnsWidthDataStr = localStorage.getItem("statistic_".concat(chart.id, "_columns_width"));
|
|
48
56
|
const columnsWidthData = columnsWidthDataStr ? JSON.parse(columnsWidthDataStr) : [];
|
|
49
|
-
const columns = shownColumns.filter(column => !DATASET_NOT_SUPPORT_COLUMN_TYPES.includes(column.type)).map(column => {
|
|
57
|
+
const columns = shownColumns.filter(column => !_datasetUtils.DATASET_NOT_SUPPORT_COLUMN_TYPES.includes(column.type)).map(column => {
|
|
50
58
|
const {
|
|
51
59
|
type
|
|
52
60
|
} = column;
|
|
53
61
|
const columnWidthData = columnsWidthData.find(item => item.key === column.key);
|
|
54
62
|
const previousWidth = typeof (columnWidthData === null || columnWidthData === void 0 ? void 0 : columnWidthData.width) === 'number' && columnWidthData.width;
|
|
55
|
-
if (type === CellType.LINK) {
|
|
63
|
+
if (type === _dtableUtils.CellType.LINK) {
|
|
56
64
|
const {
|
|
57
65
|
data
|
|
58
66
|
} = column;
|
|
@@ -63,12 +71,12 @@ class Records extends Component {
|
|
|
63
71
|
} = data;
|
|
64
72
|
const display_column = {
|
|
65
73
|
key: display_column_key || '0000',
|
|
66
|
-
type: array_type || CellType.TEXT,
|
|
74
|
+
type: array_type || _dtableUtils.CellType.TEXT,
|
|
67
75
|
data: array_data || null
|
|
68
76
|
};
|
|
69
77
|
return {
|
|
70
78
|
...column,
|
|
71
|
-
width: previousWidth || getCellRecordWidth(column),
|
|
79
|
+
width: previousWidth || (0, _datasetUtils.getCellRecordWidth)(column),
|
|
72
80
|
data: {
|
|
73
81
|
...data,
|
|
74
82
|
display_column
|
|
@@ -77,7 +85,7 @@ class Records extends Component {
|
|
|
77
85
|
}
|
|
78
86
|
return {
|
|
79
87
|
...column,
|
|
80
|
-
width: previousWidth || getCellRecordWidth(column)
|
|
88
|
+
width: previousWidth || (0, _datasetUtils.getCellRecordWidth)(column)
|
|
81
89
|
};
|
|
82
90
|
});
|
|
83
91
|
const newColumnsWidthData = columns.map(column => {
|
|
@@ -87,14 +95,14 @@ class Records extends Component {
|
|
|
87
95
|
};
|
|
88
96
|
});
|
|
89
97
|
// clear old data if there are new columns and not matched with the old data
|
|
90
|
-
localStorage.setItem(
|
|
98
|
+
localStorage.setItem("statistic_".concat(chart.id, "_columns_width"), JSON.stringify(newColumnsWidthData));
|
|
91
99
|
return columns;
|
|
92
100
|
};
|
|
93
101
|
this.resizeColumnWidth = (column, width) => {
|
|
94
102
|
const {
|
|
95
103
|
displayColumns
|
|
96
104
|
} = this.state;
|
|
97
|
-
const newDisplayColumns = resizeColumn(column.key, Math.max(width, 50), displayColumns);
|
|
105
|
+
const newDisplayColumns = (0, _rowUtils.resizeColumn)(column.key, Math.max(width, 50), displayColumns);
|
|
98
106
|
this.setState({
|
|
99
107
|
headerDisplayColumns: newDisplayColumns
|
|
100
108
|
});
|
|
@@ -112,7 +120,7 @@ class Records extends Component {
|
|
|
112
120
|
const {
|
|
113
121
|
chart
|
|
114
122
|
} = this.props;
|
|
115
|
-
localStorage.setItem(
|
|
123
|
+
localStorage.setItem("statistic_".concat(chart.id, "_columns_width"), JSON.stringify(columnsWidthData));
|
|
116
124
|
};
|
|
117
125
|
this.setVerticalScrollbarTop = scrollTop => {
|
|
118
126
|
if (this.verticalScrollbar) {
|
|
@@ -154,25 +162,25 @@ class Records extends Component {
|
|
|
154
162
|
const totalWidth = displayColumns.reduce((cur, nextItem) => {
|
|
155
163
|
return cur + nextItem.width;
|
|
156
164
|
}, 0);
|
|
157
|
-
return /*#__PURE__*/
|
|
165
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
158
166
|
className: "table-element-container",
|
|
159
167
|
ref: ref => this.resultContainerRef = ref
|
|
160
|
-
}, /*#__PURE__*/
|
|
168
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
161
169
|
id: "sea-chart-table-element-result-container",
|
|
162
170
|
className: "table-element-result-container",
|
|
163
171
|
ref: ref => this.resultRef = ref
|
|
164
|
-
}, /*#__PURE__*/
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
165
173
|
id: "sea-chart-table-element-result-content",
|
|
166
174
|
className: "table-element-result-content",
|
|
167
175
|
style: {
|
|
168
176
|
width: totalWidth
|
|
169
177
|
}
|
|
170
|
-
}, /*#__PURE__*/
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_recordsHeader.default, {
|
|
171
179
|
columns: headerDisplayColumns,
|
|
172
180
|
resizeColumnWidth: this.resizeColumnWidth,
|
|
173
181
|
resizeColumnWidthEnd: this.resizeColumnWidthEnd,
|
|
174
182
|
globalTheme: this.props.globalTheme
|
|
175
|
-
}), /*#__PURE__*/
|
|
183
|
+
}), /*#__PURE__*/_react.default.createElement(_recordsBody.default, {
|
|
176
184
|
ref: ref => this.recordsBody = ref,
|
|
177
185
|
records: records,
|
|
178
186
|
columns: displayColumns,
|
|
@@ -181,11 +189,11 @@ class Records extends Component {
|
|
|
181
189
|
setVerticalScrollbarTop: this.setVerticalScrollbarTop,
|
|
182
190
|
globalTheme: this.props.globalTheme,
|
|
183
191
|
setHorizontalScroll: this.setHorizontalScroll
|
|
184
|
-
}))), /*#__PURE__*/
|
|
192
|
+
}))), /*#__PURE__*/_react.default.createElement(_verticalScrollbar.default, {
|
|
185
193
|
contentHeight: 33 * records.length,
|
|
186
194
|
ref: ref => this.verticalScrollbar = ref,
|
|
187
195
|
onScrollbarScroll: this.onVerticalScrollbarScroll
|
|
188
196
|
})));
|
|
189
197
|
}
|
|
190
198
|
}
|
|
191
|
-
|
|
199
|
+
var _default = exports.default = Records;
|
package/dist/view/wrapper/table-element/components/resize-column-handle/resize-column-handle.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
require("./index.css");
|
|
10
|
+
class ResizeColumnHandle extends _react.Component {
|
|
4
11
|
constructor() {
|
|
5
12
|
super(...arguments);
|
|
6
13
|
this.cleanUp = () => {
|
|
@@ -38,7 +45,7 @@ class ResizeColumnHandle extends Component {
|
|
|
38
45
|
this.cleanUp();
|
|
39
46
|
}
|
|
40
47
|
render() {
|
|
41
|
-
return /*#__PURE__*/
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
42
49
|
className: "sea-chart-record-HeaderCell__draggable",
|
|
43
50
|
onClick: e => e.stopPropagation(),
|
|
44
51
|
onDrag: this.props.onDrag,
|
|
@@ -47,4 +54,4 @@ class ResizeColumnHandle extends Component {
|
|
|
47
54
|
});
|
|
48
55
|
}
|
|
49
56
|
}
|
|
50
|
-
|
|
57
|
+
var _default = exports.default = ResizeColumnHandle;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.openUrlLink = exports.isValidUrl = exports.getValidUrl = exports.getTrimmedString = void 0;
|
|
7
|
+
const getTrimmedString = value => {
|
|
2
8
|
return typeof value === 'string' ? value.trim() : '';
|
|
3
9
|
};
|
|
4
|
-
|
|
10
|
+
exports.getTrimmedString = getTrimmedString;
|
|
11
|
+
const isValidUrl = url => {
|
|
5
12
|
const reg = /^(([-a-zA-Z0-9+.]+):\/\/)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/;
|
|
6
13
|
return reg.test(url);
|
|
7
14
|
};
|
|
8
|
-
|
|
15
|
+
exports.isValidUrl = isValidUrl;
|
|
16
|
+
const getValidUrl = value => {
|
|
9
17
|
const url = getTrimmedString(value);
|
|
10
|
-
return isValidUrl(url) ? url :
|
|
18
|
+
return isValidUrl(url) ? url : "http://".concat(url);
|
|
11
19
|
};
|
|
12
|
-
|
|
20
|
+
exports.getValidUrl = getValidUrl;
|
|
21
|
+
const openUrlLink = url => {
|
|
13
22
|
let a = document.createElement('a');
|
|
14
23
|
document.body.appendChild(a);
|
|
15
24
|
a.href = url;
|
|
@@ -17,4 +26,5 @@ export const openUrlLink = url => {
|
|
|
17
26
|
a.rel = 'noopener noreferrer';
|
|
18
27
|
a.click();
|
|
19
28
|
document.body.removeChild(a);
|
|
20
|
-
};
|
|
29
|
+
};
|
|
30
|
+
exports.openUrlLink = openUrlLink;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getCellDisplayValue = void 0;
|
|
7
|
+
var _dtableUtils = require("dtable-utils");
|
|
8
|
+
const getCellDisplayValue = (record, column, collaborators) => {
|
|
3
9
|
const {
|
|
4
10
|
type,
|
|
5
11
|
data,
|
|
6
12
|
key
|
|
7
13
|
} = column;
|
|
8
|
-
return getCellValueDisplayString(record, type, key, {
|
|
14
|
+
return (0, _dtableUtils.getCellValueDisplayString)(record, type, key, {
|
|
9
15
|
data,
|
|
10
16
|
collaborators,
|
|
11
17
|
geolocationHyphen: ' '
|
|
12
18
|
});
|
|
13
|
-
};
|
|
19
|
+
};
|
|
20
|
+
exports.getCellDisplayValue = getCellDisplayValue;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
require("./index.css");
|
|
10
|
+
class VerticalScrollbar extends _react.default.Component {
|
|
4
11
|
constructor() {
|
|
5
12
|
super(...arguments);
|
|
6
13
|
this.isSelfScroll = true;
|
|
@@ -21,11 +28,11 @@ class VerticalScrollbar extends React.Component {
|
|
|
21
28
|
const {
|
|
22
29
|
contentHeight
|
|
23
30
|
} = this.props;
|
|
24
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
32
|
className: "vertical-scrollbar",
|
|
26
33
|
ref: ref => this.container = ref,
|
|
27
34
|
onScroll: this.onScroll
|
|
28
|
-
}, /*#__PURE__*/
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
29
36
|
className: "vertical-scrollbar-inner",
|
|
30
37
|
style: {
|
|
31
38
|
height: contentHeight
|
|
@@ -33,4 +40,4 @@ class VerticalScrollbar extends React.Component {
|
|
|
33
40
|
}));
|
|
34
41
|
}
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
var _default = exports.default = VerticalScrollbar;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _dtableUtils = require("dtable-utils");
|
|
10
|
+
var _lodashEs = require("lodash-es");
|
|
11
|
+
var _context = _interopRequireDefault(require("../../../context"));
|
|
12
|
+
var _records = _interopRequireDefault(require("./components/records"));
|
|
13
|
+
require("./css/index.css");
|
|
14
|
+
class TableElement extends _react.default.Component {
|
|
8
15
|
constructor(props) {
|
|
9
16
|
super(props);
|
|
10
17
|
this.getInitState = (config, tables) => {
|
|
@@ -12,7 +19,7 @@ export default class TableElement extends React.Component {
|
|
|
12
19
|
table_id,
|
|
13
20
|
shown_column_keys
|
|
14
21
|
} = config;
|
|
15
|
-
const selectedTable = getTableById(tables, table_id);
|
|
22
|
+
const selectedTable = (0, _dtableUtils.getTableById)(tables, table_id);
|
|
16
23
|
// if shown_column_keys was not set, use all columns
|
|
17
24
|
if (!shown_column_keys) shown_column_keys = selectedTable.columns.map(column => column.key);
|
|
18
25
|
const shownColumns = selectedTable.columns.filter(column => shown_column_keys.includes(column.key));
|
|
@@ -22,7 +29,7 @@ export default class TableElement extends React.Component {
|
|
|
22
29
|
};
|
|
23
30
|
};
|
|
24
31
|
this.queryUsers = emails => {
|
|
25
|
-
const currentEmails =
|
|
32
|
+
const currentEmails = _context.default.getCollaboratorsFromCache().map(user => user.email);
|
|
26
33
|
let queryEmails = emails.filter(email => {
|
|
27
34
|
return !currentEmails.includes(email);
|
|
28
35
|
});
|
|
@@ -33,18 +40,18 @@ export default class TableElement extends React.Component {
|
|
|
33
40
|
}
|
|
34
41
|
this.isQuerying = true;
|
|
35
42
|
setTimeout(() => {
|
|
36
|
-
|
|
43
|
+
_context.default.queryUsers(queryEmails, this.updateRelatedUser);
|
|
37
44
|
}, 500);
|
|
38
45
|
};
|
|
39
46
|
this.updateRelatedUser = emailUserMap => {
|
|
40
47
|
this.isQuerying = false;
|
|
41
|
-
const currentEmails =
|
|
48
|
+
const currentEmails = _context.default.getCollaboratorsFromCache().map(user => user.email);
|
|
42
49
|
for (let email in emailUserMap) {
|
|
43
50
|
if (!currentEmails.includes(email)) {
|
|
44
|
-
|
|
51
|
+
_context.default.updateCollaboratorsCache(email, emailUserMap[email]);
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
|
-
const newUsers =
|
|
54
|
+
const newUsers = _context.default.getCollaboratorsFromCache();
|
|
48
55
|
this.relatedUserEmailMap = {};
|
|
49
56
|
newUsers.forEach(u => {
|
|
50
57
|
this.relatedUserEmailMap[u.email] = true;
|
|
@@ -61,7 +68,7 @@ export default class TableElement extends React.Component {
|
|
|
61
68
|
config: _config
|
|
62
69
|
} = chart;
|
|
63
70
|
const initState = this.getInitState(_config, _tables);
|
|
64
|
-
initState.relatedUserList =
|
|
71
|
+
initState.relatedUserList = _context.default.getCollaboratorsFromCache();
|
|
65
72
|
this.state = initState;
|
|
66
73
|
this.relatedUserEmailMap = {};
|
|
67
74
|
initState.relatedUserList.forEach(u => {
|
|
@@ -84,7 +91,7 @@ export default class TableElement extends React.Component {
|
|
|
84
91
|
const {
|
|
85
92
|
config: oldConfig
|
|
86
93
|
} = oldChart;
|
|
87
|
-
if (!isEqual(config, oldConfig)) {
|
|
94
|
+
if (!(0, _lodashEs.isEqual)(config, oldConfig)) {
|
|
88
95
|
const state = this.getInitState(config, nextProps.tables, result);
|
|
89
96
|
this.setState(state);
|
|
90
97
|
}
|
|
@@ -101,10 +108,10 @@ export default class TableElement extends React.Component {
|
|
|
101
108
|
selectedTable
|
|
102
109
|
} = this.state;
|
|
103
110
|
const records = Array.isArray(result) ? result : [];
|
|
104
|
-
return /*#__PURE__*/
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
105
112
|
className: "table-element-result",
|
|
106
113
|
ref: ref => this.wrapperRef = ref
|
|
107
|
-
}, /*#__PURE__*/
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement(_records.default, {
|
|
108
115
|
chart: chart,
|
|
109
116
|
selectedTable: selectedTable,
|
|
110
117
|
shownColumns: shownColumns,
|
|
@@ -114,4 +121,5 @@ export default class TableElement extends React.Component {
|
|
|
114
121
|
globalTheme: globalTheme
|
|
115
122
|
}));
|
|
116
123
|
}
|
|
117
|
-
}
|
|
124
|
+
}
|
|
125
|
+
exports.default = TableElement;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _lodashEs = require("lodash-es");
|
|
12
|
+
var d3 = _interopRequireWildcard(require("d3"));
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _constants = require("../../constants");
|
|
15
|
+
var _utils = require("../../utils");
|
|
16
|
+
var _intl = _interopRequireDefault(require("../../intl"));
|
|
17
|
+
var _tooltip = _interopRequireDefault(require("../../components/tooltip"));
|
|
18
|
+
var _chartComponent = _interopRequireDefault(require("./chart-component"));
|
|
19
|
+
class Treemap extends _chartComponent.default {
|
|
12
20
|
constructor(props) {
|
|
13
21
|
super(props);
|
|
14
22
|
this.handleResize = () => {
|
|
@@ -32,10 +40,10 @@ class Treemap extends ChartComponent {
|
|
|
32
40
|
let {
|
|
33
41
|
result: data
|
|
34
42
|
} = this.props;
|
|
35
|
-
data = BaseUtils.formatEmptyName(data, '',
|
|
43
|
+
data = _utils.BaseUtils.formatEmptyName(data, '', _intl.default.get('Empty'));
|
|
36
44
|
if (!Array.isArray(data)) return;
|
|
37
45
|
this.draw(data);
|
|
38
|
-
isFunction(customRender) && customRender(this.chart);
|
|
46
|
+
(0, _utils.isFunction)(customRender) && customRender(this.chart);
|
|
39
47
|
};
|
|
40
48
|
this.showTooltip = (event, _ref) => {
|
|
41
49
|
let {
|
|
@@ -56,8 +64,8 @@ class Treemap extends ChartComponent {
|
|
|
56
64
|
title: data.name,
|
|
57
65
|
items: [{
|
|
58
66
|
color: '',
|
|
59
|
-
name:
|
|
60
|
-
value: BaseUtils.getSummaryValueDisplayString(summaryColumn, Number(data.value), y_axis_summary_method)
|
|
67
|
+
name: _intl.default.get('Amount'),
|
|
68
|
+
value: _utils.BaseUtils.getSummaryValueDisplayString(summaryColumn, Number(data.value), y_axis_summary_method)
|
|
61
69
|
}]
|
|
62
70
|
};
|
|
63
71
|
this.setState({
|
|
@@ -93,10 +101,10 @@ class Treemap extends ChartComponent {
|
|
|
93
101
|
tables,
|
|
94
102
|
chartColorTheme
|
|
95
103
|
} = this.props;
|
|
96
|
-
const colorsTheme = BaseUtils.getCurrentTheme(chartColorTheme);
|
|
104
|
+
const colorsTheme = _utils.BaseUtils.getCurrentTheme(chartColorTheme);
|
|
97
105
|
const {
|
|
98
106
|
data: newData
|
|
99
|
-
} = BaseUtils.formatPieChartData(data, chart, tables, colorsTheme);
|
|
107
|
+
} = _utils.BaseUtils.formatPieChartData(data, chart, tables, colorsTheme);
|
|
100
108
|
if (!Array.isArray(newData)) return;
|
|
101
109
|
const {
|
|
102
110
|
width: chartWidth,
|
|
@@ -105,8 +113,8 @@ class Treemap extends ChartComponent {
|
|
|
105
113
|
} = this.chartBoundingClientRect;
|
|
106
114
|
const fullData = this.getFullData(newData);
|
|
107
115
|
const root = d3.treemap().size([chartWidth - insertPadding * 2, chartHeight - insertPadding * 2]).padding(1)(d3.hierarchy(fullData).sum(d => d.value)).sort((a, b) => a.value - b.value);
|
|
108
|
-
const contentWrapper = this.chart.append('g').attr('class', 'content-wrapper').attr('transform',
|
|
109
|
-
contentWrapper.selectAll().data(root.leaves()).join('g').attr('transform', d =>
|
|
116
|
+
const contentWrapper = this.chart.append('g').attr('class', 'content-wrapper').attr('transform', "translate(".concat(insertPadding, ",").concat(insertPadding, ")"));
|
|
117
|
+
contentWrapper.selectAll().data(root.leaves()).join('g').attr('transform', d => "translate(".concat(d.x0, ",").concat(d.y0, ")")).append('rect').attr('opacity', 1).attr('fill', d => {
|
|
110
118
|
const {
|
|
111
119
|
data
|
|
112
120
|
} = d;
|
|
@@ -142,9 +150,9 @@ class Treemap extends ChartComponent {
|
|
|
142
150
|
name: 'root',
|
|
143
151
|
children: data.map(item => {
|
|
144
152
|
let name = item.name;
|
|
145
|
-
item.name = name || name === 0 ? name :
|
|
153
|
+
item.name = name || name === 0 ? name : _intl.default.get(_constants.EMPTY_NAME);
|
|
146
154
|
if (name === '_Others') {
|
|
147
|
-
item.name =
|
|
155
|
+
item.name = _intl.default.get('Others');
|
|
148
156
|
}
|
|
149
157
|
return item;
|
|
150
158
|
})
|
|
@@ -160,12 +168,12 @@ class Treemap extends ChartComponent {
|
|
|
160
168
|
componentDidMount() {
|
|
161
169
|
this.createChart();
|
|
162
170
|
this.drawChart();
|
|
163
|
-
this.debouncedHandleResize = debounce(this.handleResize, 300);
|
|
171
|
+
this.debouncedHandleResize = (0, _lodashEs.debounce)(this.handleResize, 300);
|
|
164
172
|
window.addEventListener('resize', this.debouncedHandleResize);
|
|
165
173
|
}
|
|
166
174
|
componentDidUpdate(prevProps) {
|
|
167
175
|
super.componentDidUpdate(prevProps);
|
|
168
|
-
if (BaseUtils.shouldChartComponentUpdate(prevProps, this.props)) {
|
|
176
|
+
if (_utils.BaseUtils.shouldChartComponentUpdate(prevProps, this.props)) {
|
|
169
177
|
this.destroyChart();
|
|
170
178
|
this.createChart();
|
|
171
179
|
this.drawChart();
|
|
@@ -183,13 +191,13 @@ class Treemap extends ChartComponent {
|
|
|
183
191
|
tooltipData,
|
|
184
192
|
toolTipPosition
|
|
185
193
|
} = this.state;
|
|
186
|
-
return /*#__PURE__*/
|
|
194
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
187
195
|
ref: ref => this.container = ref,
|
|
188
|
-
className:
|
|
196
|
+
className: (0, _classnames.default)('sea-chart-container', {
|
|
189
197
|
'show-x-axis-label': this.isShowXAxisLabel(chart),
|
|
190
198
|
'show-y-axis-label': this.isShowYAxisLabel(chart)
|
|
191
199
|
})
|
|
192
|
-
}, /*#__PURE__*/
|
|
200
|
+
}, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
193
201
|
tooltipData: tooltipData,
|
|
194
202
|
toolTipPosition: toolTipPosition,
|
|
195
203
|
chart: this.chart
|
|
@@ -197,16 +205,16 @@ class Treemap extends ChartComponent {
|
|
|
197
205
|
}
|
|
198
206
|
}
|
|
199
207
|
Treemap.propTypes = {
|
|
200
|
-
canvasStyle:
|
|
201
|
-
chart:
|
|
202
|
-
groupbyColumn:
|
|
203
|
-
columnGroupbyColumn:
|
|
204
|
-
summaryColumn:
|
|
205
|
-
result:
|
|
206
|
-
tables:
|
|
207
|
-
globalTheme:
|
|
208
|
-
chartColorTheme:
|
|
209
|
-
toggleRecords:
|
|
210
|
-
customRender:
|
|
208
|
+
canvasStyle: _propTypes.default.object,
|
|
209
|
+
chart: _propTypes.default.object,
|
|
210
|
+
groupbyColumn: _propTypes.default.object,
|
|
211
|
+
columnGroupbyColumn: _propTypes.default.object,
|
|
212
|
+
summaryColumn: _propTypes.default.object,
|
|
213
|
+
result: _propTypes.default.array,
|
|
214
|
+
tables: _propTypes.default.array,
|
|
215
|
+
globalTheme: _propTypes.default.string,
|
|
216
|
+
chartColorTheme: _propTypes.default.string,
|
|
217
|
+
toggleRecords: _propTypes.default.func,
|
|
218
|
+
customRender: _propTypes.default.func
|
|
211
219
|
};
|
|
212
|
-
|
|
220
|
+
var _default = exports.default = Treemap;
|