sea-chart 0.0.32 → 0.0.33
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { getTableById } from 'dtable-utils';
|
|
2
3
|
import intl from '../../intl';
|
|
3
4
|
import Divider from '../widgets/divider';
|
|
4
5
|
import CommonDataSettings from '../widgets/common-data-settings';
|
|
@@ -28,8 +29,8 @@ const MapDataSettings = _ref => {
|
|
|
28
29
|
map_location
|
|
29
30
|
} = chart.config;
|
|
30
31
|
const isCountryLevel = map_level === MAP_LEVEL.COUNTRY;
|
|
31
|
-
const selectedTable = tables
|
|
32
|
-
const locationColumns = selectedTable.columns.filter(column => [CHART_TYPE.WORLD_MAP, CHART_TYPE.WORLD_MAP_BUBBLE].includes(type) ? isWorldMapColumn(column) : isMapColumn(column));
|
|
32
|
+
const selectedTable = getTableById(tables, table_id);
|
|
33
|
+
const locationColumns = (selectedTable === null || selectedTable === void 0 ? void 0 : selectedTable.columns.filter(column => [CHART_TYPE.WORLD_MAP, CHART_TYPE.WORLD_MAP_BUBBLE].includes(type) ? isWorldMapColumn(column) : isMapColumn(column))) || [];
|
|
33
34
|
function handleYAxisGroupSettingsChange(value) {
|
|
34
35
|
const update = {};
|
|
35
36
|
Object.keys(value).forEach(key => {
|
|
@@ -10,17 +10,7 @@ import { formatNumericValue, getFormattedValue, getSummaryResult } from '../colu
|
|
|
10
10
|
import { getCompareDate } from '../trend-utils';
|
|
11
11
|
import intl from '../../intl';
|
|
12
12
|
import BaseUtils from './base-utils';
|
|
13
|
-
class SQLStatisticsUtils {
|
|
14
|
-
constructor() {
|
|
15
|
-
this._get_completeness_name = (row, column) => {
|
|
16
|
-
let value = row[column.key];
|
|
17
|
-
if (Array.isArray(value)) {
|
|
18
|
-
value = value.join('、');
|
|
19
|
-
}
|
|
20
|
-
return value;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
}
|
|
13
|
+
class SQLStatisticsUtils {}
|
|
24
14
|
_class = SQLStatisticsUtils;
|
|
25
15
|
SQLStatisticsUtils.dataSources = 'sql_statistics';
|
|
26
16
|
SQLStatisticsUtils.getGroupLabelFromDB = (cellValue, column, tables) => {
|
|
@@ -1414,6 +1404,13 @@ SQLStatisticsUtils.sqlResult2JavaScript = (chart, sqlRows, chartSQLMap, columnMa
|
|
|
1414
1404
|
}
|
|
1415
1405
|
}
|
|
1416
1406
|
};
|
|
1407
|
+
SQLStatisticsUtils._get_completeness_name = (row, column) => {
|
|
1408
|
+
let value = row[column.key];
|
|
1409
|
+
if (Array.isArray(value)) {
|
|
1410
|
+
value = value.join('、');
|
|
1411
|
+
}
|
|
1412
|
+
return value;
|
|
1413
|
+
};
|
|
1417
1414
|
SQLStatisticsUtils.completenessSQlResult = (chart, sqlRows, chartSQLMap, tables) => {
|
|
1418
1415
|
const {
|
|
1419
1416
|
config: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sea-chart",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@antv/data-set": "0.11.8",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@antv/scale": "0.3.14",
|
|
24
24
|
"babel-plugin-on-demand-loading": "^0.0.9",
|
|
25
|
-
"dtable-ui-component": "~4.4.
|
|
25
|
+
"dtable-ui-component": "~4.4.33",
|
|
26
26
|
"dtable-utils": "~4.4.*",
|
|
27
27
|
"prop-types": "15.8.1",
|
|
28
28
|
"react": "^17.0.0",
|