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,19 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 _CollapsibleSettingLayout2 = _interopRequireDefault(require("dtable-ui-component/lib/CollapsibleSettingLayout"));
|
|
10
|
+
var _DTableRadioGroup2 = _interopRequireDefault(require("dtable-ui-component/lib/DTableRadioGroup"));
|
|
11
|
+
var _DTableSwitch2 = _interopRequireDefault(require("dtable-ui-component/lib/DTableSwitch"));
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _reactstrap = require("reactstrap");
|
|
14
|
+
var _dtableUtils = require("dtable-utils");
|
|
15
|
+
var _divider = _interopRequireDefault(require("../widgets/divider"));
|
|
16
|
+
var _minMaxSetting = _interopRequireDefault(require("../widgets/min-max-setting"));
|
|
17
|
+
var _displayValuesSettings = _interopRequireDefault(require("../widgets/display-values-settings"));
|
|
18
|
+
var _constants = require("../../constants");
|
|
19
|
+
var _intl = _interopRequireDefault(require("../../intl"));
|
|
20
|
+
var _selectLineType = _interopRequireDefault(require("../widgets/select-line-type"));
|
|
21
|
+
var _colorSelector = _interopRequireDefault(require("../../components/chart-color-selector/color-selector"));
|
|
22
|
+
var _colorRules = require("../../constants/color-rules");
|
|
23
|
+
var _utils = require("../../utils");
|
|
24
|
+
var _goalLineSetting = _interopRequireDefault(require("../../components/goal-line-setting"));
|
|
17
25
|
const StyleSettings = _ref => {
|
|
18
26
|
let {
|
|
19
27
|
chart,
|
|
@@ -52,23 +60,23 @@ const StyleSettings = _ref => {
|
|
|
52
60
|
} = style_config || {};
|
|
53
61
|
const table = tables.find(table => table._id === table_id);
|
|
54
62
|
const columns = (table === null || table === void 0 ? void 0 : table.columns) || [];
|
|
55
|
-
const column = getColumnByKey(column_groupby_column_key, columns);
|
|
56
|
-
const isGroupBySingleSelectColumn = (column === null || column === void 0 ? void 0 : column.type) === CellType.SINGLE_SELECT;
|
|
57
|
-
const defaultColorTheme = SUPPORT_SINGLE_SELECT_THEMES_OPTIONS.DEFAULT;
|
|
58
|
-
const [currYaxisTitle, setCurrYaxisTitle] = useState(title_name || '');
|
|
59
|
-
const xAxisLabelOptions = useMemo(() => {
|
|
63
|
+
const column = (0, _utils.getColumnByKey)(column_groupby_column_key, columns);
|
|
64
|
+
const isGroupBySingleSelectColumn = (column === null || column === void 0 ? void 0 : column.type) === _dtableUtils.CellType.SINGLE_SELECT;
|
|
65
|
+
const defaultColorTheme = _colorRules.SUPPORT_SINGLE_SELECT_THEMES_OPTIONS.DEFAULT;
|
|
66
|
+
const [currYaxisTitle, setCurrYaxisTitle] = (0, _react.useState)(title_name || '');
|
|
67
|
+
const xAxisLabelOptions = (0, _react.useMemo)(() => {
|
|
60
68
|
if (xLabel === 'Vertical_axis') {
|
|
61
|
-
return Y_LABEL_POSITIONS;
|
|
69
|
+
return _constants.Y_LABEL_POSITIONS;
|
|
62
70
|
}
|
|
63
|
-
return X_LABEL_POSITIONS;
|
|
71
|
+
return _constants.X_LABEL_POSITIONS;
|
|
64
72
|
}, [xLabel]);
|
|
65
|
-
const yAxisLabelOptions = useMemo(() => {
|
|
73
|
+
const yAxisLabelOptions = (0, _react.useMemo)(() => {
|
|
66
74
|
if (yLabel === 'Horizontal_axis') {
|
|
67
|
-
return X_LABEL_POSITIONS;
|
|
75
|
+
return _constants.X_LABEL_POSITIONS;
|
|
68
76
|
}
|
|
69
|
-
return Y_LABEL_POSITIONS;
|
|
77
|
+
return _constants.Y_LABEL_POSITIONS;
|
|
70
78
|
}, [yLabel]);
|
|
71
|
-
const onAxisLabelShowChange = useCallback(labelKey => {
|
|
79
|
+
const onAxisLabelShowChange = (0, _react.useCallback)(labelKey => {
|
|
72
80
|
const {
|
|
73
81
|
config
|
|
74
82
|
} = chart;
|
|
@@ -77,7 +85,7 @@ const StyleSettings = _ref => {
|
|
|
77
85
|
[labelKey]: !value
|
|
78
86
|
});
|
|
79
87
|
}, [chart, onChange]);
|
|
80
|
-
const onAxisLabelPositionChange = useCallback((position, positionKey) => {
|
|
88
|
+
const onAxisLabelPositionChange = (0, _react.useCallback)((position, positionKey) => {
|
|
81
89
|
const {
|
|
82
90
|
config
|
|
83
91
|
} = chart;
|
|
@@ -87,7 +95,7 @@ const StyleSettings = _ref => {
|
|
|
87
95
|
[positionKey]: position
|
|
88
96
|
});
|
|
89
97
|
}, [chart, onChange]);
|
|
90
|
-
const onYAxisAutoRangeChange = useCallback(() => {
|
|
98
|
+
const onYAxisAutoRangeChange = (0, _react.useCallback)(() => {
|
|
91
99
|
const {
|
|
92
100
|
config
|
|
93
101
|
} = chart;
|
|
@@ -98,7 +106,7 @@ const StyleSettings = _ref => {
|
|
|
98
106
|
y_axis_auto_range: !y_axis_auto_range
|
|
99
107
|
});
|
|
100
108
|
}, [chart, onChange]);
|
|
101
|
-
const onYAxisMinChange = useCallback(min => {
|
|
109
|
+
const onYAxisMinChange = (0, _react.useCallback)(min => {
|
|
102
110
|
const newMin = parseFloat(min);
|
|
103
111
|
if (Number.isNaN(newMin)) return;
|
|
104
112
|
const {
|
|
@@ -112,7 +120,7 @@ const StyleSettings = _ref => {
|
|
|
112
120
|
y_axis_min: newMin
|
|
113
121
|
});
|
|
114
122
|
}, [chart, onChange]);
|
|
115
|
-
const onYAxisMaxChange = useCallback(max => {
|
|
123
|
+
const onYAxisMaxChange = (0, _react.useCallback)(max => {
|
|
116
124
|
const newMax = parseFloat(max);
|
|
117
125
|
if (Number.isNaN(newMax)) return;
|
|
118
126
|
const {
|
|
@@ -126,10 +134,10 @@ const StyleSettings = _ref => {
|
|
|
126
134
|
y_axis_max: newMax
|
|
127
135
|
});
|
|
128
136
|
}, [chart, onChange]);
|
|
129
|
-
const onDisplayValueChange = useCallback(update => {
|
|
137
|
+
const onDisplayValueChange = (0, _react.useCallback)(update => {
|
|
130
138
|
onChange(update);
|
|
131
139
|
}, [onChange]);
|
|
132
|
-
const onDisplayBlockChange = useCallback(value => {
|
|
140
|
+
const onDisplayBlockChange = (0, _react.useCallback)(value => {
|
|
133
141
|
const {
|
|
134
142
|
config
|
|
135
143
|
} = chart;
|
|
@@ -141,13 +149,13 @@ const StyleSettings = _ref => {
|
|
|
141
149
|
};
|
|
142
150
|
onChange(update);
|
|
143
151
|
}, [chart, onChange]);
|
|
144
|
-
const onChartColorChange = useCallback(value => {
|
|
152
|
+
const onChartColorChange = (0, _react.useCallback)(value => {
|
|
145
153
|
const update = {
|
|
146
154
|
'color_theme': value
|
|
147
155
|
};
|
|
148
156
|
onChange(update);
|
|
149
157
|
}, [onChange]);
|
|
150
|
-
const onKeyDown = useCallback(event => {
|
|
158
|
+
const onKeyDown = (0, _react.useCallback)(event => {
|
|
151
159
|
if (event.key === 'Enter') {
|
|
152
160
|
event.preventDefault();
|
|
153
161
|
event.target.blur();
|
|
@@ -155,45 +163,45 @@ const StyleSettings = _ref => {
|
|
|
155
163
|
}, []);
|
|
156
164
|
const xAxisLabelPosition = x_axis_label_position || xAxisLabelOptions[0];
|
|
157
165
|
const yAxisLabelPosition = y_axis_label_position || yAxisLabelOptions[0];
|
|
158
|
-
const isLineChart = [CHART_TYPE.LINE, CHART_TYPE.LINE_GROUP, CHART_TYPE.AREA, CHART_TYPE.AREA_GROUP].includes(type);
|
|
166
|
+
const isLineChart = [_constants.CHART_TYPE.LINE, _constants.CHART_TYPE.LINE_GROUP, _constants.CHART_TYPE.AREA, _constants.CHART_TYPE.AREA_GROUP].includes(type);
|
|
159
167
|
const getLabelOptionsDisplay = options => {
|
|
160
168
|
return options.reduce((optionDisplayMap, position) => {
|
|
161
169
|
return {
|
|
162
170
|
...optionDisplayMap,
|
|
163
|
-
[position]:
|
|
171
|
+
[position]: _intl.default.get(_constants.LABEL_POSITION_TYPE_SHOW[position])
|
|
164
172
|
};
|
|
165
173
|
}, {});
|
|
166
174
|
};
|
|
167
|
-
return /*#__PURE__*/
|
|
175
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isLineChart && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_selectLineType.default, {
|
|
168
176
|
selectedLineType: line_type,
|
|
169
177
|
onChange: onChange
|
|
170
|
-
}), /*#__PURE__*/
|
|
171
|
-
title:
|
|
172
|
-
children: /*#__PURE__*/
|
|
178
|
+
}), /*#__PURE__*/_react.default.createElement(_divider.default, null)), /*#__PURE__*/_react.default.createElement(_CollapsibleSettingLayout2.default, {
|
|
179
|
+
title: _intl.default.get(xLabel),
|
|
180
|
+
children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_DTableSwitch2.default, {
|
|
173
181
|
key: "x_axis_show_label",
|
|
174
182
|
checked: x_axis_show_label || false,
|
|
175
|
-
placeholder:
|
|
183
|
+
placeholder: _intl.default.get('Display_title'),
|
|
176
184
|
onChange: () => onAxisLabelShowChange('x_axis_show_label')
|
|
177
|
-
}), x_axis_show_label && /*#__PURE__*/
|
|
185
|
+
}), x_axis_show_label && /*#__PURE__*/_react.default.createElement(_reactstrap.Row, {
|
|
178
186
|
className: "mt-3 ml-0 mr-0 settings-text-horizontal-align sea-chart-select-group"
|
|
179
|
-
}, /*#__PURE__*/
|
|
187
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, null, _intl.default.get('Alignment')), /*#__PURE__*/_react.default.createElement(_DTableRadioGroup2.default, {
|
|
180
188
|
activeOption: xAxisLabelPosition,
|
|
181
189
|
options: xAxisLabelOptions,
|
|
182
190
|
optionsDisplay: getLabelOptionsDisplay(xAxisLabelOptions),
|
|
183
191
|
onSelectChanged: position => onAxisLabelPositionChange(position, 'x_axis_label_position')
|
|
184
192
|
})))
|
|
185
|
-
}), /*#__PURE__*/
|
|
186
|
-
title:
|
|
187
|
-
children: /*#__PURE__*/
|
|
193
|
+
}), /*#__PURE__*/_react.default.createElement(_divider.default, null), /*#__PURE__*/_react.default.createElement(_CollapsibleSettingLayout2.default, {
|
|
194
|
+
title: _intl.default.get(yLabel),
|
|
195
|
+
children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_DTableSwitch2.default, {
|
|
188
196
|
key: "y_axis_show_label",
|
|
189
197
|
checked: y_axis_show_label || false,
|
|
190
|
-
placeholder:
|
|
198
|
+
placeholder: _intl.default.get('Display_title'),
|
|
191
199
|
onChange: () => onAxisLabelShowChange('y_axis_show_label')
|
|
192
|
-
}), y_axis_show_label && [CHART_TYPE.BAR_STACK].includes(type) && /*#__PURE__*/
|
|
200
|
+
}), y_axis_show_label && [_constants.CHART_TYPE.BAR_STACK].includes(type) && /*#__PURE__*/_react.default.createElement("div", {
|
|
193
201
|
className: "mt-3"
|
|
194
|
-
}, /*#__PURE__*/
|
|
202
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, {
|
|
195
203
|
for: "y-axis-custom-title-input"
|
|
196
|
-
},
|
|
204
|
+
}, _intl.default.get('Custom_title')), /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
197
205
|
id: "y-axis-custom-title-input",
|
|
198
206
|
type: "text",
|
|
199
207
|
value: currYaxisTitle,
|
|
@@ -204,47 +212,47 @@ const StyleSettings = _ref => {
|
|
|
204
212
|
},
|
|
205
213
|
onChange: event => setCurrYaxisTitle(event.target.value),
|
|
206
214
|
onKeyDown: onKeyDown
|
|
207
|
-
})), y_axis_show_label && /*#__PURE__*/
|
|
215
|
+
})), y_axis_show_label && /*#__PURE__*/_react.default.createElement(_reactstrap.Row, {
|
|
208
216
|
className: "mt-3 ml-0 mr-0 settings-text-horizontal-align sea-chart-select-group"
|
|
209
|
-
}, /*#__PURE__*/
|
|
217
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, null, _intl.default.get('Alignment')), /*#__PURE__*/_react.default.createElement(_DTableRadioGroup2.default, {
|
|
210
218
|
activeOption: yAxisLabelPosition,
|
|
211
219
|
options: yAxisLabelOptions,
|
|
212
220
|
optionsDisplay: getLabelOptionsDisplay(yAxisLabelOptions),
|
|
213
221
|
onSelectChanged: position => onAxisLabelPositionChange(position, 'y_axis_label_position')
|
|
214
|
-
})), ![CHART_TYPE.BAR_CUSTOM].includes(type) && /*#__PURE__*/
|
|
222
|
+
})), ![_constants.CHART_TYPE.BAR_CUSTOM].includes(type) && /*#__PURE__*/_react.default.createElement(_DTableSwitch2.default, {
|
|
215
223
|
key: "y_axis_auto_range",
|
|
216
224
|
switchClassName: "mt-3",
|
|
217
225
|
checked: y_axis_auto_range,
|
|
218
|
-
placeholder:
|
|
226
|
+
placeholder: _intl.default.get('Auto_range'),
|
|
219
227
|
onChange: onYAxisAutoRangeChange
|
|
220
|
-
}), !y_axis_auto_range && /*#__PURE__*/
|
|
228
|
+
}), !y_axis_auto_range && /*#__PURE__*/_react.default.createElement("div", {
|
|
221
229
|
className: "mt-3"
|
|
222
|
-
}, /*#__PURE__*/
|
|
230
|
+
}, /*#__PURE__*/_react.default.createElement(_minMaxSetting.default, {
|
|
223
231
|
min: y_axis_min,
|
|
224
232
|
max: y_axis_max,
|
|
225
233
|
onMinChange: onYAxisMinChange,
|
|
226
234
|
onMaxChange: onYAxisMaxChange
|
|
227
235
|
})))
|
|
228
|
-
}), isGroupBySingleSelectColumn && /*#__PURE__*/
|
|
236
|
+
}), isGroupBySingleSelectColumn && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_divider.default, null), /*#__PURE__*/_react.default.createElement(_colorSelector.default, {
|
|
229
237
|
colorTheme: color_theme || defaultColorTheme,
|
|
230
238
|
onChange: onChartColorChange
|
|
231
|
-
})), /*#__PURE__*/
|
|
239
|
+
})), /*#__PURE__*/_react.default.createElement(_divider.default, null), _constants.SUPPORT_GOAL_LINE_CHART_TYPES.includes(type) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_goalLineSetting.default, {
|
|
232
240
|
displayGoalLine: display_goal_line,
|
|
233
241
|
goalLabel: goal_label,
|
|
234
242
|
goalValue: goal_value,
|
|
235
243
|
onChange: onStyleChange
|
|
236
|
-
}), /*#__PURE__*/
|
|
244
|
+
}), /*#__PURE__*/_react.default.createElement(_divider.default, null)), ![_constants.CHART_TYPE.BAR_CUSTOM].includes(type) && /*#__PURE__*/_react.default.createElement(_displayValuesSettings.default, {
|
|
237
245
|
isShowValueKey: "y_axis_show_value",
|
|
238
246
|
isShowValue: y_axis_show_value,
|
|
239
247
|
fontSizeKey: "label_font_size",
|
|
240
248
|
fontSize: label_font_size,
|
|
241
249
|
onChange: onDisplayValueChange
|
|
242
|
-
}), SUPPORT_STACK_VALUE_CHART_TYPES.includes(type) && /*#__PURE__*/
|
|
250
|
+
}), _constants.SUPPORT_STACK_VALUE_CHART_TYPES.includes(type) && /*#__PURE__*/_react.default.createElement(_DTableSwitch2.default, {
|
|
243
251
|
switchClassName: "display-value-settings",
|
|
244
252
|
checked: display_each_block_data,
|
|
245
253
|
disabled: false,
|
|
246
|
-
placeholder:
|
|
254
|
+
placeholder: _intl.default.get('Display_value_of_each_block'),
|
|
247
255
|
onChange: onDisplayBlockChange
|
|
248
256
|
}));
|
|
249
257
|
};
|
|
250
|
-
|
|
258
|
+
var _default = exports.default = StyleSettings;
|
|
@@ -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 _DTableSwitch2 = _interopRequireDefault(require("dtable-ui-component/lib/DTableSwitch"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _dtableUtils = require("dtable-utils");
|
|
12
|
+
var _intl = _interopRequireDefault(require("../../intl"));
|
|
13
|
+
var _commonDataSettings = _interopRequireDefault(require("../widgets/common-data-settings"));
|
|
14
|
+
var _divider = _interopRequireDefault(require("../widgets/divider"));
|
|
15
|
+
var _groupBy = _interopRequireDefault(require("../widgets/group-by"));
|
|
16
|
+
var _basicSummary = _interopRequireDefault(require("../widgets/basic-summary"));
|
|
17
|
+
var _dataSort = _interopRequireDefault(require("../widgets/data-sort"));
|
|
18
|
+
var _columnUtils = require("../../utils/column-utils");
|
|
19
|
+
var _constants = require("../../constants");
|
|
12
20
|
const DataSettings = _ref => {
|
|
13
21
|
let {
|
|
14
22
|
chart,
|
|
@@ -18,7 +26,7 @@ const DataSettings = _ref => {
|
|
|
18
26
|
yLabel = 'Y_axis',
|
|
19
27
|
onChange
|
|
20
28
|
} = _ref;
|
|
21
|
-
const onXAxisColumnChange = useCallback(column => {
|
|
29
|
+
const onXAxisColumnChange = (0, _react.useCallback)(column => {
|
|
22
30
|
const {
|
|
23
31
|
config
|
|
24
32
|
} = chart;
|
|
@@ -38,18 +46,18 @@ const DataSettings = _ref => {
|
|
|
38
46
|
update['x_axis_date_granularity'] = null;
|
|
39
47
|
update['x_axis_geolocation_granularity'] = null;
|
|
40
48
|
} else {
|
|
41
|
-
if (DATE_COLUMN_OPTIONS.includes(type) || isDateFormulaColumn(column)) {
|
|
42
|
-
update['x_axis_date_granularity'] = CHART_SUMMARY_TYPE.MONTH;
|
|
49
|
+
if (_dtableUtils.DATE_COLUMN_OPTIONS.includes(type) || (0, _columnUtils.isDateFormulaColumn)(column)) {
|
|
50
|
+
update['x_axis_date_granularity'] = _constants.CHART_SUMMARY_TYPE.MONTH;
|
|
43
51
|
update['x_axis_geolocation_granularity'] = null;
|
|
44
|
-
} else if (type === CellType.GEOLOCATION) {
|
|
52
|
+
} else if (type === _dtableUtils.CellType.GEOLOCATION) {
|
|
45
53
|
const {
|
|
46
54
|
geo_format
|
|
47
55
|
} = column.data || {};
|
|
48
|
-
if (geo_format === GEOLOCATION_FORMAT_MAP.PROVINCE) {
|
|
49
|
-
update['x_axis_geolocation_granularity'] = GEOLOCATION_FORMAT_MAP.PROVINCE;
|
|
50
|
-
} else if (geo_format === GEOLOCATION_FORMAT_MAP.PROVINCE_CITY) {
|
|
51
|
-
update['x_axis_geolocation_granularity'] = GEOLOCATION_FORMAT_CITY;
|
|
52
|
-
} else if (geo_format === GEOLOCATION_FORMAT_MAP.GEOLOCATION || !geo_format) {
|
|
56
|
+
if (geo_format === _constants.GEOLOCATION_FORMAT_MAP.PROVINCE) {
|
|
57
|
+
update['x_axis_geolocation_granularity'] = _constants.GEOLOCATION_FORMAT_MAP.PROVINCE;
|
|
58
|
+
} else if (geo_format === _constants.GEOLOCATION_FORMAT_MAP.PROVINCE_CITY) {
|
|
59
|
+
update['x_axis_geolocation_granularity'] = _constants.GEOLOCATION_FORMAT_CITY;
|
|
60
|
+
} else if (geo_format === _constants.GEOLOCATION_FORMAT_MAP.GEOLOCATION || !geo_format) {
|
|
53
61
|
update['x_axis_geolocation_granularity'] = 'district';
|
|
54
62
|
} else {
|
|
55
63
|
update['x_axis_geolocation_granularity'] = null;
|
|
@@ -59,7 +67,7 @@ const DataSettings = _ref => {
|
|
|
59
67
|
}
|
|
60
68
|
onChange && onChange(update);
|
|
61
69
|
}, [chart, onChange]);
|
|
62
|
-
const onGroupbyDateGranularityChange = useCallback(option => {
|
|
70
|
+
const onGroupbyDateGranularityChange = (0, _react.useCallback)(option => {
|
|
63
71
|
const {
|
|
64
72
|
config
|
|
65
73
|
} = chart;
|
|
@@ -72,7 +80,7 @@ const DataSettings = _ref => {
|
|
|
72
80
|
x_axis_date_granularity: value
|
|
73
81
|
});
|
|
74
82
|
}, [chart, onChange]);
|
|
75
|
-
const onGroupbyGeolocationGranularityChange = useCallback(option => {
|
|
83
|
+
const onGroupbyGeolocationGranularityChange = (0, _react.useCallback)(option => {
|
|
76
84
|
const {
|
|
77
85
|
config
|
|
78
86
|
} = chart;
|
|
@@ -85,7 +93,7 @@ const DataSettings = _ref => {
|
|
|
85
93
|
x_axis_geolocation_granularity: value
|
|
86
94
|
});
|
|
87
95
|
}, [chart, onChange]);
|
|
88
|
-
const onIncludeEmptyChange = useCallback(event => {
|
|
96
|
+
const onIncludeEmptyChange = (0, _react.useCallback)(event => {
|
|
89
97
|
const {
|
|
90
98
|
config
|
|
91
99
|
} = chart;
|
|
@@ -96,14 +104,14 @@ const DataSettings = _ref => {
|
|
|
96
104
|
x_axis_include_empty_cells: !x_axis_include_empty_cells
|
|
97
105
|
});
|
|
98
106
|
}, [chart, onChange]);
|
|
99
|
-
const renderDataSort = useCallback(() => {
|
|
107
|
+
const renderDataSort = (0, _react.useCallback)(() => {
|
|
100
108
|
const {
|
|
101
109
|
config
|
|
102
110
|
} = chart;
|
|
103
|
-
if (!SUPPORT_DATA_SORT_CHART_TYPES.includes(config.type)) return null;
|
|
104
|
-
return /*#__PURE__*/
|
|
111
|
+
if (!_constants.SUPPORT_DATA_SORT_CHART_TYPES.includes(config.type)) return null;
|
|
112
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
105
113
|
className: "mt-4"
|
|
106
|
-
}), /*#__PURE__*/
|
|
114
|
+
}), /*#__PURE__*/_react.default.createElement(_dataSort.default, {
|
|
107
115
|
chart: chart,
|
|
108
116
|
onChange: onChange
|
|
109
117
|
}));
|
|
@@ -119,15 +127,15 @@ const DataSettings = _ref => {
|
|
|
119
127
|
x_axis_geolocation_granularity,
|
|
120
128
|
x_axis_include_empty_cells
|
|
121
129
|
} = config;
|
|
122
|
-
return /*#__PURE__*/
|
|
130
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_commonDataSettings.default, {
|
|
123
131
|
dataSources: dataSources,
|
|
124
132
|
chart: chart,
|
|
125
133
|
tables: tables,
|
|
126
134
|
onChange: onChange
|
|
127
|
-
}), /*#__PURE__*/
|
|
135
|
+
}), /*#__PURE__*/_react.default.createElement(_groupBy.default, {
|
|
128
136
|
tables: tables,
|
|
129
137
|
className: "selected-x-axis",
|
|
130
|
-
label:
|
|
138
|
+
label: _intl.default.get(xLabel),
|
|
131
139
|
selectedTableId: table_id,
|
|
132
140
|
selectedColumnKey: x_axis_column_key,
|
|
133
141
|
selectedDateGranularity: x_axis_date_granularity,
|
|
@@ -135,25 +143,25 @@ const DataSettings = _ref => {
|
|
|
135
143
|
onGroupByChange: onXAxisColumnChange,
|
|
136
144
|
onGroupbyDateGranularityChange: onGroupbyDateGranularityChange,
|
|
137
145
|
onGroupbyGeolocationGranularityChange: onGroupbyGeolocationGranularityChange
|
|
138
|
-
}), /*#__PURE__*/
|
|
146
|
+
}), /*#__PURE__*/_react.default.createElement(_DTableSwitch2.default, {
|
|
139
147
|
checked: x_axis_include_empty_cells,
|
|
140
|
-
placeholder:
|
|
148
|
+
placeholder: _intl.default.get('Include_empty'),
|
|
141
149
|
onChange: onIncludeEmptyChange
|
|
142
|
-
}), /*#__PURE__*/
|
|
150
|
+
}), /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
143
151
|
className: "mt-4"
|
|
144
|
-
}), /*#__PURE__*/
|
|
152
|
+
}), /*#__PURE__*/_react.default.createElement(_basicSummary.default, {
|
|
145
153
|
className: "selected-y-axis",
|
|
146
|
-
label:
|
|
147
|
-
showSummaryTypes: type === CHART_TYPE.BAR_CUSTOM ? false : true,
|
|
154
|
+
label: _intl.default.get(yLabel),
|
|
155
|
+
showSummaryTypes: type === _constants.CHART_TYPE.BAR_CUSTOM ? false : true,
|
|
148
156
|
summaryTypeKey: 'y_axis_summary_type',
|
|
149
157
|
summaryMethodKey: 'y_axis_summary_method',
|
|
150
158
|
summaryColumnKey: 'y_axis_summary_column_key',
|
|
151
159
|
chart: chart,
|
|
152
160
|
selectedTableId: table_id,
|
|
153
161
|
tables: tables,
|
|
154
|
-
supportColumnTypes: [CellType.NUMBER],
|
|
155
|
-
summaryTypeOptions: CHART_SUMMARY_TYPES,
|
|
162
|
+
supportColumnTypes: [_dtableUtils.CellType.NUMBER],
|
|
163
|
+
summaryTypeOptions: _constants.CHART_SUMMARY_TYPES,
|
|
156
164
|
onChange: onChange
|
|
157
165
|
}), renderDataSort());
|
|
158
166
|
};
|
|
159
|
-
|
|
167
|
+
var _default = exports.default = DataSettings;
|
|
@@ -1,3 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "BarDataSettings", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _dataSettings.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "BarStyleSettings", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _styleSettings.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _dataSettings = _interopRequireDefault(require("./data-settings"));
|
|
20
|
+
var _styleSettings = _interopRequireDefault(require("./style-settings"));
|