sea-chart 0.0.25 → 0.0.27
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.
|
@@ -2,8 +2,8 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { Input } from 'reactstrap';
|
|
4
4
|
import ReactColor from 'react-color';
|
|
5
|
-
import intl from '../../../intl';
|
|
6
5
|
import DTableSelect from "dtable-ui-component/lib/DTableSelect";
|
|
6
|
+
import intl from '../../../intl';
|
|
7
7
|
import ColorRulesPopover from '../../../components/color-popover/color-rules-popover';
|
|
8
8
|
import { getValidColorRules } from '../../../utils/color-utils';
|
|
9
9
|
import { CHART_TYPE, TYPE_COLOR_USING, TYPE_DISPLAY_COLOR_USING } from '../../../constants';
|
|
@@ -33,6 +33,7 @@ class ColorUseTypeSelector extends Component {
|
|
|
33
33
|
return {
|
|
34
34
|
position: 'absolute',
|
|
35
35
|
left: '20px',
|
|
36
|
+
bottom: '2.375rem',
|
|
36
37
|
zIndex: '2'
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -282,7 +283,7 @@ class ColorUseTypeSelector extends Component {
|
|
|
282
283
|
className: "specific-color-input",
|
|
283
284
|
value: specificColor,
|
|
284
285
|
onChange: event => this.modifySpecificColor(event.target.value)
|
|
285
|
-
})
|
|
286
|
+
}), this.state.isShowColorSelector && /*#__PURE__*/React.createElement("div", {
|
|
286
287
|
style: this.getPopoverStyle()
|
|
287
288
|
}, /*#__PURE__*/React.createElement("div", {
|
|
288
289
|
className: "position-fixed",
|
|
@@ -292,7 +293,7 @@ class ColorUseTypeSelector extends Component {
|
|
|
292
293
|
disableAlpha: true,
|
|
293
294
|
color: specificColor,
|
|
294
295
|
onChange: this.modifyHex
|
|
295
|
-
})));
|
|
296
|
+
})))));
|
|
296
297
|
};
|
|
297
298
|
this.renderColorRulesEditor = () => {
|
|
298
299
|
const {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import context from '../../context';
|
|
1
2
|
import BaseUtils from './base-utils';
|
|
2
3
|
import SQLStatisticsUtils from './sql-statistics-utils';
|
|
3
4
|
import OriginalDataUtils from './original-data-utils';
|
|
4
|
-
import context from '../../context';
|
|
5
5
|
class ChartUtils {}
|
|
6
6
|
ChartUtils.calculateChart = (chart, value, callback) => {
|
|
7
|
+
if (!BaseUtils.isValidExistChart(value.tables, chart)) {
|
|
8
|
+
const tip_message = 'Please_complete_the_chart_configuration_first';
|
|
9
|
+
return callback && callback('', tip_message, null);
|
|
10
|
+
}
|
|
7
11
|
context.queryChartResult({
|
|
8
12
|
chart,
|
|
9
13
|
tables: value.tables,
|