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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _dtableUtils = require("dtable-utils");
|
|
12
|
+
var _utils = require("../../../utils");
|
|
13
|
+
var _intl = _interopRequireDefault(require("../../../intl"));
|
|
14
|
+
var _constants = require("../../../constants");
|
|
15
|
+
var _pivotTableDisplayName = _interopRequireDefault(require("./pivot-table-display-name"));
|
|
16
|
+
class OneDimensionTableNoNumericColumns extends _react.PureComponent {
|
|
9
17
|
constructor() {
|
|
10
18
|
super(...arguments);
|
|
11
19
|
this.renderHeader = () => {
|
|
@@ -22,27 +30,27 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
22
30
|
const {
|
|
23
31
|
name: groupName
|
|
24
32
|
} = groupbyColumn;
|
|
25
|
-
const isCount = summary_type === CHART_SUMMARY_TYPE.COUNT;
|
|
33
|
+
const isCount = summary_type === _constants.CHART_SUMMARY_TYPE.COUNT;
|
|
26
34
|
this.isCount = isCount;
|
|
27
|
-
const columnName = isCount ?
|
|
35
|
+
const columnName = isCount ? _intl.default.get('Amount') : this.getColumnName();
|
|
28
36
|
const {
|
|
29
37
|
rowIdx: selectRowIdx,
|
|
30
38
|
cellIdx: selectedCellIdx
|
|
31
39
|
} = selectedCell || {};
|
|
32
40
|
const isSelectedTotalCellBottom = selectRowIdx === 0 && selectedCellIdx === 0;
|
|
33
|
-
return /*#__PURE__*/
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement("thead", {
|
|
34
42
|
className: "seatable-table-header-sm"
|
|
35
|
-
}, /*#__PURE__*/
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", {
|
|
36
44
|
className: "pivot-table-header"
|
|
37
|
-
}, groupName), /*#__PURE__*/
|
|
38
|
-
className:
|
|
45
|
+
}, groupName), /*#__PURE__*/_react.default.createElement("th", {
|
|
46
|
+
className: (0, _classnames.default)('pivot-table-header', {
|
|
39
47
|
'selected-pivot-cell-top': isSelectedTotalCellBottom
|
|
40
48
|
})
|
|
41
|
-
}, /*#__PURE__*/
|
|
42
|
-
className:
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, columnName)), display_total && /*#__PURE__*/_react.default.createElement("th", {
|
|
50
|
+
className: (0, _classnames.default)('pivot-table-header', {
|
|
43
51
|
'selected-pivot-cell-top': isSelectedTotalCellBottom
|
|
44
52
|
})
|
|
45
|
-
}, /*#__PURE__*/
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, _intl.default.get('Total')))));
|
|
46
54
|
};
|
|
47
55
|
this.getColumnName = () => {
|
|
48
56
|
const {
|
|
@@ -57,7 +65,7 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
57
65
|
table_id
|
|
58
66
|
} = chart.config;
|
|
59
67
|
if (Array.isArray(pivot_columns) && pivot_columns.length !== 0) {
|
|
60
|
-
const table = getTableById(tables, table_id);
|
|
68
|
+
const table = (0, _dtableUtils.getTableById)(tables, table_id);
|
|
61
69
|
const column = table === null || table === void 0 ? void 0 : table.columns.find(item => item.key === pivot_columns[0].key);
|
|
62
70
|
return (column === null || column === void 0 ? void 0 : column.name) || '';
|
|
63
71
|
}
|
|
@@ -119,10 +127,10 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
119
127
|
let pivotColumnCells = [];
|
|
120
128
|
const isSelectRowTotalCellRight = selectRowIdx === pivotRowsLen && selectedCellIdx === 0;
|
|
121
129
|
const isSelectTotal = selectRowIdx === pivotRowsLen && selectedCellIdx === 0;
|
|
122
|
-
const total = ObjectUtils.hasOwnProperty(pivot_columns_total, 'total') ? pivot_columns_total['total'] : 0;
|
|
123
|
-
const summaryDisplayValue = BaseUtils.getSummaryValueDisplayString(summaryColumn, total);
|
|
124
|
-
const isValidSummaryDisplayValue = BaseUtils.isValidValue(summaryDisplayValue, display_empty);
|
|
125
|
-
return /*#__PURE__*/
|
|
130
|
+
const total = _utils.ObjectUtils.hasOwnProperty(pivot_columns_total, 'total') ? pivot_columns_total['total'] : 0;
|
|
131
|
+
const summaryDisplayValue = _utils.BaseUtils.getSummaryValueDisplayString(summaryColumn, total);
|
|
132
|
+
const isValidSummaryDisplayValue = _utils.BaseUtils.isValidValue(summaryDisplayValue, display_empty);
|
|
133
|
+
return /*#__PURE__*/_react.default.createElement("tbody", null, pivotRowsLen > 0 && pivot_rows.map((rowItem, rowIdx) => {
|
|
126
134
|
const {
|
|
127
135
|
name,
|
|
128
136
|
total
|
|
@@ -132,21 +140,21 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
132
140
|
let isSelectedTotalCellTop = selectRowIdx - 1 === rowIdx && selectedCellIdx === 0;
|
|
133
141
|
let isSelectedTotalCellLeft = selectRowIdx === rowIdx && selectedCellIdx === 0;
|
|
134
142
|
pivotColumnCells[rowIdx] = rowItem;
|
|
135
|
-
const totalDisplayValue = BaseUtils.getSummaryValueDisplayString(summaryColumn, total.total);
|
|
136
|
-
const isValidTotalDisplayValue = BaseUtils.isValidValue(totalDisplayValue, display_empty);
|
|
137
|
-
return /*#__PURE__*/
|
|
143
|
+
const totalDisplayValue = _utils.BaseUtils.getSummaryValueDisplayString(summaryColumn, total.total);
|
|
144
|
+
const isValidTotalDisplayValue = _utils.BaseUtils.isValidValue(totalDisplayValue, display_empty);
|
|
145
|
+
return /*#__PURE__*/_react.default.createElement("tr", {
|
|
138
146
|
key: 'table-row-' + rowIdx
|
|
139
|
-
}, /*#__PURE__*/
|
|
140
|
-
className:
|
|
147
|
+
}, /*#__PURE__*/_react.default.createElement("td", {
|
|
148
|
+
className: (0, _classnames.default)('pivot-row-name', {
|
|
141
149
|
'selected-pivot-cell-left': isSelectedRowNameRight
|
|
142
150
|
})
|
|
143
|
-
}, /*#__PURE__*/
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(_pivotTableDisplayName.default, {
|
|
144
152
|
value: name,
|
|
145
153
|
column: groupbyColumn,
|
|
146
154
|
rowData: rowItem,
|
|
147
155
|
globalTheme: globalTheme
|
|
148
|
-
})), /*#__PURE__*/
|
|
149
|
-
className:
|
|
156
|
+
})), /*#__PURE__*/_react.default.createElement("td", {
|
|
157
|
+
className: (0, _classnames.default)('pivot-cell', {
|
|
150
158
|
'pivot-empty-cell': !isValidTotalDisplayValue,
|
|
151
159
|
'selected-pivot-cell': isSelectedTotalCell,
|
|
152
160
|
'selected-pivot-cell-top': isSelectedTotalCellTop,
|
|
@@ -161,12 +169,12 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
161
169
|
cellIdx: 0,
|
|
162
170
|
isRow: true
|
|
163
171
|
})
|
|
164
|
-
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/
|
|
165
|
-
className:
|
|
172
|
+
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/_react.default.createElement("i", null), /*#__PURE__*/_react.default.createElement("span", {
|
|
173
|
+
className: (0, _classnames.default)({
|
|
166
174
|
'selected-pivot-cell-border': isSelectedTotalCell
|
|
167
175
|
})
|
|
168
|
-
})), display_total && /*#__PURE__*/
|
|
169
|
-
className:
|
|
176
|
+
})), display_total && /*#__PURE__*/_react.default.createElement("td", {
|
|
177
|
+
className: (0, _classnames.default)('pivot-cell', {
|
|
170
178
|
'pivot-empty-cell': !isValidTotalDisplayValue,
|
|
171
179
|
'selected-pivot-cell': isSelectedTotalCell,
|
|
172
180
|
'selected-pivot-cell-top': isSelectedTotalCellTop,
|
|
@@ -181,17 +189,17 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
181
189
|
isRow: true
|
|
182
190
|
}),
|
|
183
191
|
total: totalDisplayValue
|
|
184
|
-
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/
|
|
185
|
-
className:
|
|
192
|
+
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/_react.default.createElement("i", null), /*#__PURE__*/_react.default.createElement("span", {
|
|
193
|
+
className: (0, _classnames.default)({
|
|
186
194
|
'selected-pivot-cell-border': isSelectedTotalCell
|
|
187
195
|
})
|
|
188
196
|
})));
|
|
189
|
-
}), display_total && /*#__PURE__*/
|
|
190
|
-
className:
|
|
197
|
+
}), display_total && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
|
|
198
|
+
className: (0, _classnames.default)('pivot-column-total', {
|
|
191
199
|
'selected-pivot-cell-left': isSelectRowTotalCellRight
|
|
192
200
|
})
|
|
193
|
-
}, /*#__PURE__*/
|
|
194
|
-
className:
|
|
201
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, _intl.default.get('Total'))), /*#__PURE__*/_react.default.createElement("td", {
|
|
202
|
+
className: (0, _classnames.default)('pivot-cell pivot-table-total', {
|
|
195
203
|
'pivot-empty-cell': !isValidSummaryDisplayValue,
|
|
196
204
|
'selected-pivot-cell': isSelectTotal
|
|
197
205
|
}),
|
|
@@ -200,12 +208,12 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
200
208
|
cellIdx: 0
|
|
201
209
|
}),
|
|
202
210
|
title: isValidSummaryDisplayValue ? summaryDisplayValue : ''
|
|
203
|
-
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/
|
|
204
|
-
className:
|
|
211
|
+
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/_react.default.createElement("i", null), /*#__PURE__*/_react.default.createElement("span", {
|
|
212
|
+
className: (0, _classnames.default)({
|
|
205
213
|
'selected-pivot-cell-border': isSelectTotal
|
|
206
214
|
})
|
|
207
|
-
})), /*#__PURE__*/
|
|
208
|
-
className:
|
|
215
|
+
})), /*#__PURE__*/_react.default.createElement("td", {
|
|
216
|
+
className: (0, _classnames.default)('pivot-cell pivot-table-total', {
|
|
209
217
|
'pivot-empty-cell': !isValidSummaryDisplayValue,
|
|
210
218
|
'selected-pivot-cell': isSelectTotal
|
|
211
219
|
}),
|
|
@@ -214,8 +222,8 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
214
222
|
cellIdx: 0
|
|
215
223
|
}),
|
|
216
224
|
title: isValidSummaryDisplayValue ? summaryDisplayValue : ''
|
|
217
|
-
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/
|
|
218
|
-
className:
|
|
225
|
+
}, isValidSummaryDisplayValue ? summaryDisplayValue : /*#__PURE__*/_react.default.createElement("i", null), /*#__PURE__*/_react.default.createElement("span", {
|
|
226
|
+
className: (0, _classnames.default)({
|
|
219
227
|
'selected-pivot-cell-border': isSelectTotal
|
|
220
228
|
})
|
|
221
229
|
}))));
|
|
@@ -227,12 +235,12 @@ class OneDimensionTableNoNumericColumns extends PureComponent {
|
|
|
227
235
|
globalTheme
|
|
228
236
|
} = this.props;
|
|
229
237
|
if (!groupbyColumn) return '';
|
|
230
|
-
return /*#__PURE__*/
|
|
238
|
+
return /*#__PURE__*/_react.default.createElement("table", {
|
|
231
239
|
className: "sea-chart-pivot-table",
|
|
232
240
|
style: {
|
|
233
|
-
color: CHART_THEME_COLOR[globalTheme].pivotTextColor
|
|
241
|
+
color: _constants.CHART_THEME_COLOR[globalTheme].pivotTextColor
|
|
234
242
|
}
|
|
235
243
|
}, this.renderHeader(), this.renderRows());
|
|
236
244
|
}
|
|
237
245
|
}
|
|
238
|
-
|
|
246
|
+
var _default = exports.default = OneDimensionTableNoNumericColumns;
|
|
@@ -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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _dtableUtils = require("dtable-utils");
|
|
12
|
+
var _utils = require("../../../utils");
|
|
13
|
+
var _intl = _interopRequireDefault(require("../../../intl"));
|
|
14
|
+
var _constants = require("../../../constants");
|
|
15
|
+
var _pivotTableDisplayName = _interopRequireDefault(require("./pivot-table-display-name"));
|
|
16
|
+
class OneDimensionTableWithNumericColumns extends _react.PureComponent {
|
|
9
17
|
constructor(_props) {
|
|
10
18
|
super(_props);
|
|
11
19
|
this.init = props => {
|
|
@@ -24,7 +32,7 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
24
32
|
}
|
|
25
33
|
};
|
|
26
34
|
this.getRowTotal = (rowTotal, value) => {
|
|
27
|
-
if (value && isNumber(value)) {
|
|
35
|
+
if (value && (0, _dtableUtils.isNumber)(value)) {
|
|
28
36
|
return rowTotal + value;
|
|
29
37
|
}
|
|
30
38
|
return rowTotal;
|
|
@@ -55,9 +63,9 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
55
63
|
cellIdx: selectedCellIdx
|
|
56
64
|
} = selectedCell || {};
|
|
57
65
|
const isSelectedTotalHeaderBottom = selectRowIdx === 0 && selectedCellIdx === (pivot_columns === null || pivot_columns === void 0 ? void 0 : pivot_columns.length);
|
|
58
|
-
return /*#__PURE__*/
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement("thead", {
|
|
59
67
|
className: "seatable-table-header-sm"
|
|
60
|
-
}, /*#__PURE__*/
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", {
|
|
61
69
|
className: "pivot-table-header"
|
|
62
70
|
}, !rowGroupName && groupName), Array.isArray(pivot_columns) && pivot_columns.map((item, index) => {
|
|
63
71
|
const {
|
|
@@ -65,17 +73,17 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
65
73
|
} = item;
|
|
66
74
|
const column = chartTableColumns.find(column => column.key === key);
|
|
67
75
|
const isSelectedHeaderBottom = selectRowIdx === 0 && selectedCellIdx === index;
|
|
68
|
-
return /*#__PURE__*/
|
|
69
|
-
className:
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement("th", {
|
|
77
|
+
className: (0, _classnames.default)('pivot-table-header', {
|
|
70
78
|
'selected-pivot-cell-top': isSelectedHeaderBottom
|
|
71
79
|
}),
|
|
72
|
-
key:
|
|
73
|
-
}, /*#__PURE__*/
|
|
74
|
-
}), display_total && /*#__PURE__*/
|
|
75
|
-
className:
|
|
80
|
+
key: "pivot-column-".concat(index)
|
|
81
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, column.name));
|
|
82
|
+
}), display_total && /*#__PURE__*/_react.default.createElement("th", {
|
|
83
|
+
className: (0, _classnames.default)('pivot-table-header', {
|
|
76
84
|
'selected-pivot-cell-top': isSelectedTotalHeaderBottom
|
|
77
85
|
})
|
|
78
|
-
}, /*#__PURE__*/
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, _intl.default.get('Total')))));
|
|
79
87
|
};
|
|
80
88
|
this.toggleRecords = (cell, selectedCell) => {
|
|
81
89
|
if (window.isMobile) return;
|
|
@@ -127,7 +135,7 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
127
135
|
const isSelectRowTotalCellRight = selectRowIdx === pivotRowsLen && selectedCellIdx === 0;
|
|
128
136
|
let lastRowTotal = 0;
|
|
129
137
|
let lastRows = [];
|
|
130
|
-
return /*#__PURE__*/
|
|
138
|
+
return /*#__PURE__*/_react.default.createElement("tbody", null, pivotRowsLen > 0 && pivot_rows.map((rowItem, rowIdx) => {
|
|
131
139
|
const {
|
|
132
140
|
name,
|
|
133
141
|
total,
|
|
@@ -142,13 +150,13 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
142
150
|
if (!Array.isArray(pivot_columns)) {
|
|
143
151
|
pivotColumnCells[rowIdx] = rowItem.rows || [];
|
|
144
152
|
}
|
|
145
|
-
return /*#__PURE__*/
|
|
153
|
+
return /*#__PURE__*/_react.default.createElement("tr", {
|
|
146
154
|
key: 'table-row' + rowIdx
|
|
147
|
-
}, /*#__PURE__*/
|
|
148
|
-
className:
|
|
155
|
+
}, /*#__PURE__*/_react.default.createElement("td", {
|
|
156
|
+
className: (0, _classnames.default)('pivot-row-name', {
|
|
149
157
|
'selected-pivot-cell-left': isSelectedRowNameRight
|
|
150
158
|
})
|
|
151
|
-
}, /*#__PURE__*/
|
|
159
|
+
}, /*#__PURE__*/_react.default.createElement(_pivotTableDisplayName.default, {
|
|
152
160
|
value: name,
|
|
153
161
|
column: groupbyColumn,
|
|
154
162
|
rowData: rowItem,
|
|
@@ -162,8 +170,8 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
162
170
|
} = columnMap;
|
|
163
171
|
const column = chartTableColumns.find(item => item.key === key);
|
|
164
172
|
rowTotal = this.getRowTotal(rowTotal, total[key]);
|
|
165
|
-
const displayValue = BaseUtils.getSummaryValueDisplayString(column, total[key], this.summaryColumnsMethodMap[key]);
|
|
166
|
-
const isValidDisplayValue = BaseUtils.isValidValue(displayValue, display_empty);
|
|
173
|
+
const displayValue = _utils.BaseUtils.getSummaryValueDisplayString(column, total[key], this.summaryColumnsMethodMap[key]);
|
|
174
|
+
const isValidDisplayValue = _utils.BaseUtils.isValidValue(displayValue, display_empty);
|
|
167
175
|
if (Array.isArray(rows) && rows.length > 0) {
|
|
168
176
|
if (pivotColumnCells[cellIdx]) {
|
|
169
177
|
pivotColumnCells[cellIdx].push(...rows);
|
|
@@ -171,71 +179,71 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
171
179
|
pivotColumnCells[cellIdx] = [...rows];
|
|
172
180
|
}
|
|
173
181
|
}
|
|
174
|
-
return /*#__PURE__*/
|
|
175
|
-
className:
|
|
182
|
+
return /*#__PURE__*/_react.default.createElement("td", {
|
|
183
|
+
className: (0, _classnames.default)('pivot-cell', {
|
|
176
184
|
'pivot-empty-cell': !isValidDisplayValue,
|
|
177
185
|
'selected-pivot-cell': isSelectedCell,
|
|
178
186
|
'selected-pivot-cell-top': isSelectedCellTop,
|
|
179
187
|
'selected-pivot-cell-left': isSelectedCellLeft
|
|
180
188
|
}),
|
|
181
|
-
key:
|
|
189
|
+
key: "table-cell-".concat(cellIdx)
|
|
182
190
|
// onClick={() => this.toggleRecords({ rows, name: rowItem?.name, total: total[key] }, { rowIdx, cellIdx })}
|
|
183
191
|
,
|
|
184
192
|
title: isValidDisplayValue ? displayValue : ''
|
|
185
|
-
}, isValidDisplayValue ? displayValue : /*#__PURE__*/
|
|
186
|
-
className:
|
|
193
|
+
}, isValidDisplayValue ? displayValue : /*#__PURE__*/_react.default.createElement("i", null), /*#__PURE__*/_react.default.createElement("span", {
|
|
194
|
+
className: (0, _classnames.default)({
|
|
187
195
|
'selected-pivot-cell-border': isSelectedCell
|
|
188
196
|
})
|
|
189
197
|
}));
|
|
190
|
-
}), display_total && /*#__PURE__*/
|
|
191
|
-
className:
|
|
198
|
+
}), display_total && /*#__PURE__*/_react.default.createElement("td", {
|
|
199
|
+
className: (0, _classnames.default)('pivot-cell', {
|
|
192
200
|
'selected-pivot-cell': isSelectedTotalCell,
|
|
193
201
|
'selected-pivot-cell-top': isSelectedTotalCellTop,
|
|
194
202
|
'selected-pivot-cell-left': isSelectedTotalCellLeft
|
|
195
203
|
})
|
|
196
204
|
// onClick={() => this.toggleRecords({ rows, name: rowItem?.name, total: rowTotal }, { rowIdx })}
|
|
197
205
|
,
|
|
198
|
-
title: rowTotal ? formatRowTotal(rowTotal) : 0
|
|
199
|
-
}, rowTotal ? formatRowTotal(rowTotal) : /*#__PURE__*/
|
|
200
|
-
className:
|
|
206
|
+
title: rowTotal ? (0, _utils.formatRowTotal)(rowTotal) : 0
|
|
207
|
+
}, rowTotal ? (0, _utils.formatRowTotal)(rowTotal) : /*#__PURE__*/_react.default.createElement("i", null, "0"), /*#__PURE__*/_react.default.createElement("span", {
|
|
208
|
+
className: (0, _classnames.default)({
|
|
201
209
|
'selected-pivot-cell-border': isSelectedTotalCell
|
|
202
210
|
})
|
|
203
211
|
})));
|
|
204
|
-
}), display_total && /*#__PURE__*/
|
|
205
|
-
className:
|
|
212
|
+
}), display_total && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
|
|
213
|
+
className: (0, _classnames.default)('pivot-column-total', {
|
|
206
214
|
'selected-pivot-cell-left': isSelectRowTotalCellRight
|
|
207
215
|
})
|
|
208
|
-
}, /*#__PURE__*/
|
|
216
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, _intl.default.get('Total'))), Array.isArray(pivot_columns) && pivot_columns.map((c, index) => {
|
|
209
217
|
const pivotColumnTotal = pivot_columns_total[c.key];
|
|
210
218
|
const column = chartTableColumns.find(column => column.key === c.key);
|
|
211
|
-
const totalDisplayValue = BaseUtils.getSummaryValueDisplayString(column, pivotColumnTotal, this.summaryColumnsMethodMap[c.key]);
|
|
212
|
-
const isValidTotalDisplayValue = BaseUtils.isValidValue(totalDisplayValue, display_empty);
|
|
219
|
+
const totalDisplayValue = _utils.BaseUtils.getSummaryValueDisplayString(column, pivotColumnTotal, this.summaryColumnsMethodMap[c.key]);
|
|
220
|
+
const isValidTotalDisplayValue = _utils.BaseUtils.isValidValue(totalDisplayValue, display_empty);
|
|
213
221
|
const isSelectRowTotalCell = selectRowIdx === pivot_rows.length && selectedCellIdx === index;
|
|
214
222
|
const isSelectRowTotalCellLeft = selectRowIdx === pivot_rows.length && selectedCellIdx - 1 === index;
|
|
215
223
|
lastRowTotal = this.getRowTotal(lastRowTotal, pivotColumnTotal);
|
|
216
|
-
return /*#__PURE__*/
|
|
217
|
-
className:
|
|
224
|
+
return /*#__PURE__*/_react.default.createElement("td", {
|
|
225
|
+
className: (0, _classnames.default)('pivot-cell', {
|
|
218
226
|
'pivot-empty-cell': !isValidTotalDisplayValue,
|
|
219
227
|
'selected-pivot-cell': isSelectRowTotalCell,
|
|
220
228
|
'selected-pivot-cell-left': isSelectRowTotalCellLeft
|
|
221
229
|
}),
|
|
222
|
-
key:
|
|
230
|
+
key: "total-cell-".concat(index)
|
|
223
231
|
// onClick={() => this.toggleRecords({ rows: pivotColumnCell, total: pivot_columns_total[c.key] }, { rowIdx: pivot_rows.length, cellIdx: index })}
|
|
224
232
|
,
|
|
225
233
|
title: totalDisplayValue
|
|
226
|
-
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/
|
|
227
|
-
className:
|
|
234
|
+
}, isValidTotalDisplayValue ? totalDisplayValue : /*#__PURE__*/_react.default.createElement("i", null), /*#__PURE__*/_react.default.createElement("span", {
|
|
235
|
+
className: (0, _classnames.default)({
|
|
228
236
|
'selected-pivot-cell-border': isSelectRowTotalCell
|
|
229
237
|
})
|
|
230
238
|
}));
|
|
231
|
-
}), /*#__PURE__*/
|
|
232
|
-
className:
|
|
233
|
-
'pivot-empty-cell': !BaseUtils.isValidValue(lastRowTotal, display_empty)
|
|
239
|
+
}), /*#__PURE__*/_react.default.createElement("td", {
|
|
240
|
+
className: (0, _classnames.default)('pivot-cell', {
|
|
241
|
+
'pivot-empty-cell': !_utils.BaseUtils.isValidValue(lastRowTotal, display_empty)
|
|
234
242
|
})
|
|
235
243
|
// onClick={() => this.toggleRecords({ rows: lastRows, total: lastRowTotal }, { rowIdx: pivot_rows.length, cellIdx: pivot_columns?.length })}
|
|
236
244
|
,
|
|
237
|
-
title: formatRowTotal(lastRowTotal)
|
|
238
|
-
}, BaseUtils.isValidValue(lastRowTotal, display_empty) ? formatRowTotal(lastRowTotal) : /*#__PURE__*/
|
|
245
|
+
title: (0, _utils.formatRowTotal)(lastRowTotal)
|
|
246
|
+
}, _utils.BaseUtils.isValidValue(lastRowTotal, display_empty) ? (0, _utils.formatRowTotal)(lastRowTotal) : /*#__PURE__*/_react.default.createElement("i", null))));
|
|
239
247
|
};
|
|
240
248
|
this.init(_props);
|
|
241
249
|
}
|
|
@@ -245,12 +253,12 @@ class OneDimensionTableWithNumericColumns extends PureComponent {
|
|
|
245
253
|
globalTheme
|
|
246
254
|
} = this.props;
|
|
247
255
|
if (!groupbyColumn) return '';
|
|
248
|
-
return /*#__PURE__*/
|
|
256
|
+
return /*#__PURE__*/_react.default.createElement("table", {
|
|
249
257
|
className: "sea-chart-pivot-table",
|
|
250
258
|
style: {
|
|
251
|
-
color: CHART_THEME_COLOR[globalTheme].pivotTextColor
|
|
259
|
+
color: _constants.CHART_THEME_COLOR[globalTheme].pivotTextColor
|
|
252
260
|
}
|
|
253
261
|
}, this.renderHeader(), this.renderRows());
|
|
254
262
|
}
|
|
255
263
|
}
|
|
256
|
-
|
|
264
|
+
var _default = exports.default = OneDimensionTableWithNumericColumns;
|