sea-chart 0.0.49 → 0.0.50

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.
Files changed (34) hide show
  1. package/dist/components/color-popover/color-rules/rule-filters/filter.js +4 -4
  2. package/dist/components/color-setting/color-group-selector.js +2 -2
  3. package/dist/settings/advance-bar-settings/style-settings.js +5 -5
  4. package/dist/settings/bar-settings/style-settings.js +3 -3
  5. package/dist/settings/basic-number-card/data-settings.js +4 -4
  6. package/dist/settings/combination-settings/style-settings.js +4 -4
  7. package/dist/settings/completeness-settings/data-settings/completion-settings.js +3 -3
  8. package/dist/settings/dashboard-settings/data-settings.js +4 -4
  9. package/dist/settings/map-settings/components/location-field-selector.js +2 -2
  10. package/dist/settings/map-settings/components/map-level-selector.js +2 -2
  11. package/dist/settings/map-settings/components/map-province-city-selector.js +3 -3
  12. package/dist/settings/map-settings/map-style-settings.js +2 -2
  13. package/dist/settings/pie-settings/style-settings.js +3 -3
  14. package/dist/settings/table-settings/data-settings.js +5 -5
  15. package/dist/settings/time-comparison-settings/style-settings.js +3 -3
  16. package/dist/settings/trend-settings/data-settings.js +2 -2
  17. package/dist/settings/widgets/basic-summary/index.js +4 -4
  18. package/dist/settings/widgets/color-settings/index.js +2 -2
  19. package/dist/settings/widgets/data-filter/index.js +2 -2
  20. package/dist/settings/widgets/data-sort.js +2 -2
  21. package/dist/settings/widgets/date-summary-item.js +3 -3
  22. package/dist/settings/widgets/display-values-settings/index.js +2 -2
  23. package/dist/settings/widgets/font-settings/font-weight-settings.js +2 -2
  24. package/dist/settings/widgets/group-by.js +4 -4
  25. package/dist/settings/widgets/numeric-summary-item.js +3 -3
  26. package/dist/settings/widgets/select-line-type/index.js +2 -2
  27. package/dist/settings/widgets/select-table/index.js +2 -2
  28. package/dist/settings/widgets/select-view/index.js +2 -2
  29. package/dist/settings/widgets/summary-method-setting.js +3 -3
  30. package/dist/settings/widgets/summary-settings.js +4 -4
  31. package/dist/settings/widgets/switch/index.js +2 -2
  32. package/dist/settings/widgets/y-axis-group-settings.js +2 -2
  33. package/dist/view/wrapper/map.js +2 -2
  34. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
+ import _DTableCustomizeSelect from "dtable-ui-component/lib/DTableCustomizeSelect";
1
2
  import React from 'react';
2
3
  import intl from '../../../../intl';
3
- import DTableCustomizeSelect from "dtable-ui-component/lib/DTableCustomizeSelect";
4
4
  import NumberInput from './number-input';
5
5
  import { COLOR_RULE_FILTER_TYPE_MAP, EMPTY_PREDICATE } from '../../../../constants/color-rules';
6
6
  const INPUT_CMP_TYPE_MAP = {
@@ -117,7 +117,7 @@ class Filter extends React.Component {
117
117
  case 1:
118
118
  {
119
119
  const selectedConjunction = conjunctionOptions.find(option => option.value === filterConjunction);
120
- return /*#__PURE__*/React.createElement(DTableCustomizeSelect, {
120
+ return /*#__PURE__*/React.createElement(_DTableCustomizeSelect, {
121
121
  value: selectedConjunction,
122
122
  options: conjunctionOptions,
123
123
  onSelectOption: this.onSelectConjunction
@@ -196,13 +196,13 @@ class Filter extends React.Component {
196
196
  className: "filter-container"
197
197
  }, /*#__PURE__*/React.createElement("div", {
198
198
  className: "filter-column"
199
- }, /*#__PURE__*/React.createElement(DTableCustomizeSelect, {
199
+ }, /*#__PURE__*/React.createElement(_DTableCustomizeSelect, {
200
200
  value: selectedFilterType,
201
201
  options: filterTypeOptions,
202
202
  onSelectOption: this.onSelectFilterBy
203
203
  })), /*#__PURE__*/React.createElement("div", {
204
204
  className: "filter-predicate ml-2"
205
- }, /*#__PURE__*/React.createElement(DTableCustomizeSelect, {
205
+ }, /*#__PURE__*/React.createElement(_DTableCustomizeSelect, {
206
206
  value: selectedPredicate,
207
207
  options: this.predicateOptions,
208
208
  onSelectOption: this.onSelectPredicate
@@ -1,4 +1,4 @@
1
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
2
2
  import React, { Component } from 'react';
3
3
  import { FormGroup } from 'reactstrap';
4
4
  import { COLOR_OPTIONS } from '../../constants/color-rules';
@@ -37,7 +37,7 @@ class ColorGroupSelector extends Component {
37
37
  const currentOption = this.colorOptions.filter(item => item.value === currentColor)[0] || this.colorOptions[0];
38
38
  return /*#__PURE__*/React.createElement(FormGroup, {
39
39
  className: "statistic-chart-parameter-item"
40
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Color')), /*#__PURE__*/React.createElement(DTableSelect, {
40
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Color')), /*#__PURE__*/React.createElement(_DTableSelect, {
41
41
  menuPortalTarget: "#sea-chart-settings-content",
42
42
  classNamePrefix: 'chart-color',
43
43
  value: currentOption,
@@ -1,7 +1,7 @@
1
+ import _DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
2
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
3
  import React, { useCallback, useMemo, useState } from 'react';
2
4
  import { Label, FormGroup, Input } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
- import DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
5
5
  import Switch from '../widgets/switch';
6
6
  import Divider from '../widgets/divider';
7
7
  import MinMaxSetting from '../widgets/min-max-setting';
@@ -163,7 +163,7 @@ const StyleSettings = _ref => {
163
163
  checked: x_axis_show_label || false,
164
164
  placeholder: intl.get('Display_title'),
165
165
  onChange: event => onAxisLabelShowChange(event, 'x_axis_show_label')
166
- }), x_axis_show_label && /*#__PURE__*/React.createElement(DTableSelect, {
166
+ }), x_axis_show_label && /*#__PURE__*/React.createElement(_DTableSelect, {
167
167
  menuPortalTarget: "#sea-chart-settings-content",
168
168
  value: xAxisLabelPosition,
169
169
  options: xAxisLabelOptions,
@@ -189,7 +189,7 @@ const StyleSettings = _ref => {
189
189
  onKeyDown: onKeyDown
190
190
  })), y_axis_show_label && /*#__PURE__*/React.createElement("div", {
191
191
  className: "sea-chart-parameter-container"
192
- }, /*#__PURE__*/React.createElement(DTableSelect, {
192
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
193
193
  menuPortalTarget: "#sea-chart-settings-content",
194
194
  value: yAxisLabelPosition,
195
195
  classNamePrefix: "chart-y-axis-label-position",
@@ -211,7 +211,7 @@ const StyleSettings = _ref => {
211
211
  fontSizeKey: "label_font_size",
212
212
  fontSize: label_font_size,
213
213
  onChange: onDisplayValueChange
214
- }), SUPPORT_STACK_VALUE_CHART_TYPES.includes(type) && /*#__PURE__*/React.createElement(DTableSwitch, {
214
+ }), SUPPORT_STACK_VALUE_CHART_TYPES.includes(type) && /*#__PURE__*/React.createElement(_DTableSwitch, {
215
215
  switchClassName: "display-value-settings",
216
216
  checked: display_each_block_data,
217
217
  disabled: false,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useMemo, useCallback } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import Switch from '../widgets/switch';
5
5
  import Divider from '../widgets/divider';
6
6
  import MinMaxSetting from '../widgets/min-max-setting';
@@ -146,7 +146,7 @@ const StyleSettings = _ref => {
146
146
  checked: x_axis_show_label || false,
147
147
  placeholder: intl.get('Display_title'),
148
148
  onChange: event => onAxisLabelShowChange(event, 'x_axis_show_label')
149
- }), x_axis_show_label && /*#__PURE__*/React.createElement(DTableSelect, {
149
+ }), x_axis_show_label && /*#__PURE__*/React.createElement(_DTableSelect, {
150
150
  menuPortalTarget: "#sea-chart-settings-content",
151
151
  value: xAxisLabelPosition,
152
152
  options: xAxisLabelOptions,
@@ -160,7 +160,7 @@ const StyleSettings = _ref => {
160
160
  onChange: event => onAxisLabelShowChange(event, 'y_axis_show_label')
161
161
  }), y_axis_show_label && /*#__PURE__*/React.createElement("div", {
162
162
  className: "sea-chart-parameter-container"
163
- }, /*#__PURE__*/React.createElement(DTableSelect, {
163
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
164
164
  menuPortalTarget: "#sea-chart-settings-content",
165
165
  value: yAxisLabelPosition,
166
166
  classNamePrefix: "chart-y-axis-label-position",
@@ -1,7 +1,7 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useCallback, useMemo } from 'react';
2
3
  import { FormGroup } from 'reactstrap';
3
4
  import { COLUMNS_ICON_CONFIG, getTableById } from 'dtable-utils';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
5
  import CommonDataSettings from '../widgets/common-data-settings';
6
6
  import { BaseUtils } from '../../utils';
7
7
  import { CHART_SUMMARY_SHOW, CHART_SUMMARY_CALCULATION_METHOD, CHART_SUPPORT_COLUMNS, CHART_Y_GROUP_TYPE, BASIC_NUMBER_CARD_CALCULATION_METHOD } from '../../constants';
@@ -150,7 +150,7 @@ const DataSettings = _ref => {
150
150
  onChange: onChange
151
151
  }), /*#__PURE__*/React.createElement(FormGroup, {
152
152
  className: "sea-chart-parameter-item"
153
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
153
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
154
154
  menuPortalTarget: "#sea-chart-settings-content",
155
155
  classNamePrefix: "chart-summary-types",
156
156
  value: selectedSummaryTypeOption,
@@ -159,7 +159,7 @@ const DataSettings = _ref => {
159
159
  onChange: onSummaryTypeChange
160
160
  })), isSummarizeAField && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
161
161
  className: "sea-chart-parameter-item"
162
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(DTableSelect, {
162
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
163
163
  menuPortalTarget: "#sea-chart-settings-content",
164
164
  value: selectedColumnOption,
165
165
  options: numericColumnOptions,
@@ -168,7 +168,7 @@ const DataSettings = _ref => {
168
168
  className: "sea-chart-parameter-item"
169
169
  }, /*#__PURE__*/React.createElement("div", {
170
170
  className: "dtable-plugin-stat-parameter-item"
171
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
171
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
172
172
  menuPortalTarget: "#sea-chart-settings-content",
173
173
  value: selectedMethodOption,
174
174
  onChange: onSelectSummaryMethod,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useCallback, useMemo } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import Switch from '../widgets/switch';
5
5
  import Divider from '../widgets/divider';
6
6
  import MinMaxSetting from '../widgets/min-max-setting';
@@ -113,7 +113,7 @@ const StyleSettings = _ref => {
113
113
  checked: x_axis_show_label || false,
114
114
  placeholder: intl.get('Display_title'),
115
115
  onChange: event => onAxisLabelShowChange(event, 'x_axis_show_label')
116
- }), x_axis_show_label && /*#__PURE__*/React.createElement(DTableSelect, {
116
+ }), x_axis_show_label && /*#__PURE__*/React.createElement(_DTableSelect, {
117
117
  menuPortalTarget: "#sea-chart-settings-content",
118
118
  value: xAxisLabelPosition,
119
119
  options: xAxisLabelOptions,
@@ -127,7 +127,7 @@ const StyleSettings = _ref => {
127
127
  onChange: event => onAxisLabelShowChange(event, 'show_y_axis_left_label')
128
128
  }), show_y_axis_left_label && /*#__PURE__*/React.createElement("div", {
129
129
  className: "sea-chart-parameter-container"
130
- }, /*#__PURE__*/React.createElement(DTableSelect, {
130
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
131
131
  menuPortalTarget: "#sea-chart-settings-content",
132
132
  value: yLeftAxisLabelPosition,
133
133
  classNamePrefix: "chart-y-axis-label-position",
@@ -152,7 +152,7 @@ const StyleSettings = _ref => {
152
152
  onChange: event => onAxisLabelShowChange(event, 'show_y_axis_right_label')
153
153
  }), show_y_axis_right_label && /*#__PURE__*/React.createElement("div", {
154
154
  className: "sea-chart-parameter-container"
155
- }, /*#__PURE__*/React.createElement(DTableSelect, {
155
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
156
156
  menuPortalTarget: "#sea-chart-settings-content",
157
157
  value: yRightAxisLabelPosition,
158
158
  classNamePrefix: "chart-y-axis-label-position",
@@ -1,5 +1,5 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React from 'react';
2
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
3
3
  import { FormGroup, Label } from 'reactstrap';
4
4
  import { getTableById } from 'dtable-utils';
5
5
  import intl from '../../../intl';
@@ -34,7 +34,7 @@ export default function CompletionSettings(_ref) {
34
34
  }
35
35
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
36
36
  className: "sea-chart-parameter-item"
37
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Completed_field')), /*#__PURE__*/React.createElement(DTableSelect, {
37
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Completed_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
38
38
  menuPortalTarget: "#sea-chart-settings-content",
39
39
  classNamePrefix: "chart-summary-types",
40
40
  placeholder: intl.get('Select_field'),
@@ -46,7 +46,7 @@ export default function CompletionSettings(_ref) {
46
46
  options: options
47
47
  })), /*#__PURE__*/React.createElement(FormGroup, {
48
48
  className: "sea-chart-parameter-item"
49
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Target_field')), /*#__PURE__*/React.createElement(DTableSelect, {
49
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Target_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
50
50
  menuPortalTarget: "#sea-chart-settings-content",
51
51
  classNamePrefix: "chart-summary-types",
52
52
  placeholder: intl.get('Select_field'),
@@ -1,7 +1,7 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Fragment, useCallback, useMemo } from 'react';
2
3
  import { FormGroup } from 'reactstrap';
3
4
  import { COLUMNS_ICON_CONFIG, getTableById } from 'dtable-utils';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
5
  import CommonDataSettings from '../widgets/common-data-settings';
6
6
  import { BaseUtils } from '../../utils';
7
7
  import { CHART_SUMMARY_SHOW, CHART_SUMMARY_CALCULATION_METHOD, CHART_SUPPORT_COLUMNS, BASIC_NUMBER_CARD_CALCULATION_METHOD } from '../../constants';
@@ -137,7 +137,7 @@ const DataSettings = _ref => {
137
137
  const selectedMethodOption = getSelectedMethodOption(summary_method, summaryMethodsOptions);
138
138
  return /*#__PURE__*/React.createElement("div", {
139
139
  className: "dtable-plugin-stat-parameter-item"
140
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
140
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
141
141
  menuPortalTarget: "#sea-chart-settings-content",
142
142
  value: selectedMethodOption,
143
143
  onChange: onSelectSummaryMethod,
@@ -157,7 +157,7 @@ const DataSettings = _ref => {
157
157
  onChange: onChange
158
158
  }), /*#__PURE__*/React.createElement(FormGroup, {
159
159
  className: "sea-chart-parameter-item"
160
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Current_value_field')), /*#__PURE__*/React.createElement(DTableSelect, {
160
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Current_value_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
161
161
  menuPortalTarget: "#sea-chart-settings-content",
162
162
  value: selectedTargetValueColumnOption,
163
163
  options: numericColumnOptions,
@@ -169,7 +169,7 @@ const DataSettings = _ref => {
169
169
  targetColumn: 'target_value_column'
170
170
  })), /*#__PURE__*/React.createElement(FormGroup, {
171
171
  className: "sea-chart-parameter-item"
172
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Total_value_field')), /*#__PURE__*/React.createElement(DTableSelect, {
172
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Total_value_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
173
173
  menuPortalTarget: "#sea-chart-settings-content",
174
174
  value: selectedTotalValueColumnOption,
175
175
  options: numericColumnOptions,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React from 'react';
2
3
  import { FormGroup, Label } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import intl from '../../../intl';
5
5
  import { getColumnOptions } from '../../../utils/column-utils';
6
6
  export default function LocationFieldSelector(_ref) {
@@ -20,7 +20,7 @@ export default function LocationFieldSelector(_ref) {
20
20
  geo_column_key: option.value.key
21
21
  });
22
22
  }
23
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, null, intl.get('Loaction_field')), /*#__PURE__*/React.createElement(DTableSelect, {
23
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, null, intl.get('Loaction_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
24
24
  menuPortalTarget: "#sea-chart-settings-content",
25
25
  placeholder: intl.get('Select_field'),
26
26
  noOptionsMessage: () => {
@@ -1,5 +1,5 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React from 'react';
2
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
3
3
  import { FormGroup } from 'reactstrap';
4
4
  import { fixGeoGranularity } from '../../../utils';
5
5
  import { MAP_LEVELS } from '../../../constants/geolocation';
@@ -36,7 +36,7 @@ export default function MapLevelSelector(_ref) {
36
36
  };
37
37
  return /*#__PURE__*/React.createElement(FormGroup, {
38
38
  className: "statistic-chart-parameter-item"
39
- }, /*#__PURE__*/React.createElement("label", null, "\u5730\u56FE\u7EA7\u522B"), /*#__PURE__*/React.createElement(DTableSelect, {
39
+ }, /*#__PURE__*/React.createElement("label", null, "\u5730\u56FE\u7EA7\u522B"), /*#__PURE__*/React.createElement(_DTableSelect, {
40
40
  menuPortalTarget: "#sea-chart-settings-content",
41
41
  value: getSelectedMapLevelOption(),
42
42
  options: mapLevelOptions,
@@ -1,5 +1,5 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Fragment } from 'react';
2
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
3
3
  import { FormGroup } from 'reactstrap';
4
4
  import { MAP_LEVEL } from '../../../constants';
5
5
  import { regions } from '../../../constants';
@@ -88,7 +88,7 @@ export default function MapProvinceCitySelector(_ref) {
88
88
  const citiesOptions = getProvinceCitiesOptions(province);
89
89
  return /*#__PURE__*/React.createElement("div", {
90
90
  className: "statistic-chart-parameter-item"
91
- }, /*#__PURE__*/React.createElement(DTableSelect, {
91
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
92
92
  menuPortalTarget: "#sea-chart-settings-content",
93
93
  value: getSelectedCity(citiesOptions),
94
94
  options: citiesOptions,
@@ -102,7 +102,7 @@ export default function MapProvinceCitySelector(_ref) {
102
102
  const isCity = mapLevel === MAP_LEVEL.CITY;
103
103
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
104
104
  className: "statistic-chart-parameter-item"
105
- }, /*#__PURE__*/React.createElement("label", null, isCity ? '城市' : '省份'), /*#__PURE__*/React.createElement(DTableSelect, {
105
+ }, /*#__PURE__*/React.createElement("label", null, isCity ? '城市' : '省份'), /*#__PURE__*/React.createElement(_DTableSelect, {
106
106
  menuPortalTarget: "#sea-chart-settings-content",
107
107
  value: getSelectedProvinceOption(),
108
108
  options: provinceOptions,
@@ -1,7 +1,7 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useState } from 'react';
2
3
  import RcSlider from 'rc-slider';
3
4
  import { FormGroup } from 'reactstrap';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
5
  import intl from '../../intl';
6
6
  import ColorGroupSelector from '../../components/color-setting/color-group-selector';
7
7
  import { LABEL_COLORS } from '../../constants/geolocation';
@@ -82,7 +82,7 @@ export default function MapStyleSetting(_ref) {
82
82
  }))));
83
83
  }))), /*#__PURE__*/React.createElement(Divider, {
84
84
  className: "mt-4"
85
- }), /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement("label", null, intl.get('Legend_direction')), /*#__PURE__*/React.createElement(DTableSelect, {
85
+ }), /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement("label", null, intl.get('Legend_direction')), /*#__PURE__*/React.createElement(_DTableSelect, {
86
86
  menuPortalTarget: "#sea-chart-settings-content",
87
87
  value: legendDirectionOptionsMap[legend_direction],
88
88
  options: legendDirectionOptions,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useCallback, useMemo } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import Switch from '../widgets/switch';
5
5
  import Divider from '../widgets/divider';
6
6
  import MiniNumSlicePercent from '../widgets/mininum-slice-percent';
@@ -118,14 +118,14 @@ const StyleSettings = _ref => {
118
118
  onChange: onDisplayLabelChange
119
119
  })), display_label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
120
120
  className: "sea-chart-parameter-item"
121
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Label_position')), /*#__PURE__*/React.createElement(DTableSelect, {
121
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Label_position')), /*#__PURE__*/React.createElement(_DTableSelect, {
122
122
  menuPortalTarget: "#sea-chart-settings-content",
123
123
  value: selectedLabelOption,
124
124
  onChange: onLabelPositionChange,
125
125
  options: labelPositionOptions
126
126
  })), /*#__PURE__*/React.createElement(FormGroup, {
127
127
  className: "sea-chart-parameter-item"
128
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Label_format')), /*#__PURE__*/React.createElement(DTableSelect, {
128
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Label_format')), /*#__PURE__*/React.createElement(_DTableSelect, {
129
129
  menuPortalTarget: "#sea-chart-settings-content",
130
130
  value: selectedLabelFormat,
131
131
  onChange: onLabelFormatChange,
@@ -1,8 +1,8 @@
1
+ import _DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
2
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
3
  import React, { useCallback, useMemo } from 'react';
2
4
  import { FormGroup, Label } from 'reactstrap';
3
5
  import { CellType, COLUMNS_ICON_CONFIG, DATE_COLUMN_OPTIONS, getTableById, getTableColumnByKey } from 'dtable-utils';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
- import DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
6
6
  import CommonDataSettings from '../widgets/common-data-settings';
7
7
  import Divider from '../widgets/divider';
8
8
  import GroupBy from '../widgets/group-by';
@@ -543,7 +543,7 @@ const DataSettings = _ref => {
543
543
  className: "mt-4"
544
544
  }), /*#__PURE__*/React.createElement(FormGroup, {
545
545
  className: "sea-chart-parameter-item"
546
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_type')), /*#__PURE__*/React.createElement(DTableSelect, {
546
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_type')), /*#__PURE__*/React.createElement(_DTableSelect, {
547
547
  menuPortalTarget: "#sea-chart-settings-content",
548
548
  classNamePrefix: "chart-summary-types",
549
549
  value: getSelectedGroupType(),
@@ -551,7 +551,7 @@ const DataSettings = _ref => {
551
551
  options: groupTypeOptions
552
552
  })), renderAdvancedStatistic(), /*#__PURE__*/React.createElement(FormGroup, {
553
553
  className: "sea-chart-parameter-item"
554
- }, /*#__PURE__*/React.createElement(DTableSwitch, {
554
+ }, /*#__PURE__*/React.createElement(_DTableSwitch, {
555
555
  switchClassName: "display-value-settings",
556
556
  checked: display_total,
557
557
  disabled: false,
@@ -565,7 +565,7 @@ const DataSettings = _ref => {
565
565
  className: "mt-4"
566
566
  }), /*#__PURE__*/React.createElement(FormGroup, {
567
567
  className: "sea-chart-parameter-item"
568
- }, /*#__PURE__*/React.createElement(DTableSwitch, {
568
+ }, /*#__PURE__*/React.createElement(_DTableSwitch, {
569
569
  switchClassName: "display-value-settings",
570
570
  checked: display_empty || false,
571
571
  disabled: false,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useCallback, useMemo } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import Switch from '../widgets/switch';
5
5
  import Divider from '../widgets/divider';
6
6
  import MinMaxSetting from '../widgets/min-max-setting';
@@ -145,7 +145,7 @@ const StyleSettings = _ref => {
145
145
  checked: x_axis_show_label || false,
146
146
  placeholder: intl.get('Display_title'),
147
147
  onChange: event => onAxisLabelShowChange(event, 'x_axis_show_label')
148
- }), x_axis_show_label && /*#__PURE__*/React.createElement(DTableSelect, {
148
+ }), x_axis_show_label && /*#__PURE__*/React.createElement(_DTableSelect, {
149
149
  menuPortalTarget: "#sea-chart-settings-content",
150
150
  value: xAxisLabelPosition,
151
151
  options: xAxisLabelOptions,
@@ -159,7 +159,7 @@ const StyleSettings = _ref => {
159
159
  onChange: event => onAxisLabelShowChange(event, 'y_axis_show_label')
160
160
  }), y_axis_show_label && /*#__PURE__*/React.createElement("div", {
161
161
  className: "sea-chart-parameter-container"
162
- }, /*#__PURE__*/React.createElement(DTableSelect, {
162
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
163
163
  menuPortalTarget: "#sea-chart-settings-content",
164
164
  value: yAxisLabelPosition,
165
165
  classNamePrefix: "chart-y-axis-label-position",
@@ -1,7 +1,7 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useCallback } from 'react';
2
3
  import { CellType } from 'dtable-utils';
3
4
  import { Label, FormGroup } from 'reactstrap';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
5
  import intl from '../../intl';
6
6
  import CommonDataSettings from '../widgets/common-data-settings';
7
7
  import Divider from '../widgets/divider';
@@ -90,7 +90,7 @@ const DataSettings = _ref => {
90
90
  onlySupportDate: true,
91
91
  isRenderGroupBy: false,
92
92
  onGroupByChange: onXAxisColumnChange
93
- }), /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, null, intl.get('Comparison_mode')), /*#__PURE__*/React.createElement(DTableSelect, {
93
+ }), /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, null, intl.get('Comparison_mode')), /*#__PURE__*/React.createElement(_DTableSelect, {
94
94
  menuPortalTarget: '#wrapper',
95
95
  value: selectedGeolocationGranularity,
96
96
  options: getOptions(),
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useCallback, useMemo } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import { COLUMNS_ICON_CONFIG, CellType, getTableById } from 'dtable-utils';
5
5
  import { BaseUtils } from '../../../utils';
6
6
  import intl from '../../../intl';
@@ -129,7 +129,7 @@ const BasicSummary = _ref => {
129
129
  const selectedColumnOption = numericColumnOptions.find(option => option.value === column_key);
130
130
  return /*#__PURE__*/React.createElement(FormGroup, {
131
131
  className: "sea-chart-parameter-item"
132
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(DTableSelect, {
132
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
133
133
  menuPortalTarget: "#sea-chart-settings-content",
134
134
  value: selectedColumnOption,
135
135
  onChange: onSummaryColumnChange,
@@ -145,7 +145,7 @@ const BasicSummary = _ref => {
145
145
  const selectedMethodOption = summaryMethodOptions.find(option => option.value === summaryMethod);
146
146
  return /*#__PURE__*/React.createElement(FormGroup, {
147
147
  className: "sea-chart-parameter-item"
148
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
148
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
149
149
  menuPortalTarget: "#sea-chart-settings-content",
150
150
  value: selectedMethodOption,
151
151
  onChange: onSummaryMethodChange,
@@ -164,7 +164,7 @@ const BasicSummary = _ref => {
164
164
  const selectedSummaryTypeOption = summaryTypeOptions.find(item => item.value === summaryType) || summaryTypeOptions[0];
165
165
  return /*#__PURE__*/React.createElement(React.Fragment, null, showSummaryTypes && /*#__PURE__*/React.createElement(FormGroup, {
166
166
  className: "sea-chart-parameter-item"
167
- }, /*#__PURE__*/React.createElement(Label, null, label), /*#__PURE__*/React.createElement(DTableSelect, {
167
+ }, /*#__PURE__*/React.createElement(Label, null, label), /*#__PURE__*/React.createElement(_DTableSelect, {
168
168
  menuPortalTarget: "#sea-chart-settings-content",
169
169
  classNamePrefix: "chart-summary-types",
170
170
  value: selectedSummaryTypeOption,
@@ -1,8 +1,8 @@
1
+ import _DTableCustomizeSelect from "dtable-ui-component/lib/DTableCustomizeSelect";
1
2
  import React, { Component } from 'react';
2
3
  import classnames from 'classnames';
3
4
  import { Input, FormGroup, Label } from 'reactstrap';
4
5
  import ReactColor from 'react-color';
5
- import DTableCustomizeSelect from "dtable-ui-component/lib/DTableCustomizeSelect";
6
6
  import intl from '../../../intl';
7
7
  import ColorRulesPopover from '../../../components/color-popover/color-rules-popover';
8
8
  import { getValidColorRules } from '../../../utils/color-utils';
@@ -348,7 +348,7 @@ class ColorUseTypeSelector extends Component {
348
348
  const selectedColorOption = this.colorOptions.find(colorOption => colorOption.value === color_option) || this.colorOptions[0];
349
349
  return /*#__PURE__*/React.createElement(FormGroup, {
350
350
  className: "sea-chart-color-type-selector"
351
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Color')), /*#__PURE__*/React.createElement(DTableCustomizeSelect, {
351
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Color')), /*#__PURE__*/React.createElement(_DTableCustomizeSelect, {
352
352
  value: selectedColorOption,
353
353
  options: this.colorOptions,
354
354
  onSelectOption: this.onSelectColorOption
@@ -1,7 +1,7 @@
1
+ import _DTableFiltersPopover from "dtable-ui-component/lib/DTableFiltersPopover";
1
2
  import React, { useCallback, useMemo, useState } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
4
  import { getTableById } from 'dtable-utils';
4
- import DTableFiltersPopover from "dtable-ui-component/lib/DTableFiltersPopover";
5
5
  import { eventStopPropagation, generatorKey } from '../../../utils';
6
6
  import intl from '../../../intl';
7
7
  import context from '../../../context';
@@ -71,7 +71,7 @@ const DataFilter = _ref => {
71
71
  onClick: toggleFilterPopover
72
72
  }, /*#__PURE__*/React.createElement("i", {
73
73
  className: "dtable-font dtable-icon-filter"
74
- }), /*#__PURE__*/React.createElement("span", null, filterMessage)), isFilterSetterShow && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DTableFiltersPopover, {
74
+ }), /*#__PURE__*/React.createElement("span", null, filterMessage)), isFilterSetterShow && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_DTableFiltersPopover, {
75
75
  isNeedSubmit: true,
76
76
  target: id,
77
77
  filters: filters,
@@ -1,6 +1,6 @@
1
+ import _DTableRadio from "dtable-ui-component/lib/DTableRadio";
1
2
  import React, { useCallback } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableRadio from "dtable-ui-component/lib/DTableRadio";
4
4
  import { eventStopPropagation } from '../../utils';
5
5
  import { CHART_DATA_SORT_TYPE, CHART_DATA_SORT_TYPES, CHART_DATA_SORT_TYPE_SHOW } from '../../constants';
6
6
  import intl from '../../intl';
@@ -34,7 +34,7 @@ const DataSort = _ref => {
34
34
  return /*#__PURE__*/React.createElement("div", {
35
35
  key: 'chart-group-item-' + index,
36
36
  className: "chart-group-item"
37
- }, /*#__PURE__*/React.createElement(DTableRadio, {
37
+ }, /*#__PURE__*/React.createElement(_DTableRadio, {
38
38
  className: "sea-chart-dtable-radio",
39
39
  isChecked: isChecked,
40
40
  onCheckedChange: event => onChangeSortType(event, sortType),
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Component } from 'react';
2
3
  import { FormGroup, Label } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import { getTableById } from 'dtable-utils';
5
5
  import { CHART_TYPE, CHART_DATE_SUMMARY_CALCULATION_METHOD, CHART_SUMMARY_SHOW, CHART_DATE_COLUMN_LIST } from '../../constants';
6
6
  import intl from '../../intl';
@@ -94,7 +94,7 @@ class DateSummaryItem extends Component {
94
94
  className: "".concat(isExpand ? 'expanded-numeric-summary-content' : 'collapsed-numeric-summary-content')
95
95
  }, /*#__PURE__*/React.createElement(FormGroup, {
96
96
  className: "sea-chart-parameter-item numeric-column"
97
- }, /*#__PURE__*/React.createElement(DTableSelect, {
97
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
98
98
  menuPortalTarget: "#sea-chart-settings-content",
99
99
  value: selectedColumnOption,
100
100
  placeholder: intl.get('Select_a_column'),
@@ -102,7 +102,7 @@ class DateSummaryItem extends Component {
102
102
  options: this.dateColumnOptions
103
103
  })), /*#__PURE__*/React.createElement(FormGroup, {
104
104
  className: "sea-chart-parameter-item summary-method"
105
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
105
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
106
106
  menuPortalTarget: "#sea-chart-settings-content",
107
107
  value: selectedSummaryMethodOption,
108
108
  onChange: option => this.props.onSummaryMethodChange(option, index),
@@ -1,5 +1,5 @@
1
+ import _DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
1
2
  import React, { useCallback } from 'react';
2
- import DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
3
3
  import { FormGroup } from 'reactstrap';
4
4
  import { FontSizeSettings } from '../font-settings';
5
5
  import intl from '../../../intl';
@@ -26,7 +26,7 @@ const DisplayValuesSettings = _ref => {
26
26
  }, [fontSizeKey, onChange]);
27
27
  return /*#__PURE__*/React.createElement(FormGroup, {
28
28
  className: "sea-chart-parameter-item"
29
- }, /*#__PURE__*/React.createElement(DTableSwitch, {
29
+ }, /*#__PURE__*/React.createElement(_DTableSwitch, {
30
30
  switchClassName: "display-value-settings",
31
31
  checked: isShowValue,
32
32
  disabled: false,
@@ -1,7 +1,7 @@
1
+ import _DTableCustomizeSelect from "dtable-ui-component/lib/DTableCustomizeSelect";
1
2
  import React, { useEffect, useMemo, useRef, useState } from 'react';
2
3
  import classnames from 'classnames';
3
4
  import { FormGroup, Label } from 'reactstrap';
4
- import DTableCustomizeSelect from "dtable-ui-component/lib/DTableCustomizeSelect";
5
5
  import { generatorCommonOptions } from '../../../utils';
6
6
  import intl from '../../../intl';
7
7
  const FontWeightSettings = props => {
@@ -34,7 +34,7 @@ const FontWeightSettings = props => {
34
34
  };
35
35
  return /*#__PURE__*/React.createElement(FormGroup, {
36
36
  className: classnames('setting-item sea-chart-font-weight-setting')
37
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Font_weight')), /*#__PURE__*/React.createElement(DTableCustomizeSelect, {
37
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Font_weight')), /*#__PURE__*/React.createElement(_DTableCustomizeSelect, {
38
38
  className: "sea-chart-font-weight",
39
39
  value: selectedFontWeightOption,
40
40
  options: fontWeightOptions,
@@ -1,7 +1,7 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Component } from 'react';
2
3
  import classnames from 'classnames';
3
4
  import { Label, FormGroup } from 'reactstrap';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
5
  import { CellType, COLUMNS_ICON_CONFIG, DATE_COLUMN_OPTIONS, getTableById, getTableColumnByKey } from 'dtable-utils';
6
6
  import { CHART_SUPPORT_COLUMNS, DATE_GRANULATES, GEOLOCATION_GRANULATES, CHART_SUMMARY_SHOW, GEOLOCATION_FORMAT_MAP, CHART_TYPE, TIME_COLUMN_LIST, COMPLETENESS_GROUPBY_SUPPORTED_COLUMN_TYPE, NUMBERIC_COLUMN_TYPE, MIRROR_COLUMN_LIST } from '../../constants';
7
7
  import intl from '../../intl';
@@ -124,7 +124,7 @@ class GroupBy extends Component {
124
124
  const options = this.columnOptions.find(option => option.value.key === selectedColumnKey);
125
125
  selectedOption = options ? options : null;
126
126
  }
127
- return /*#__PURE__*/React.createElement(DTableSelect, {
127
+ return /*#__PURE__*/React.createElement(_DTableSelect, {
128
128
  menuPortalTarget: "#sea-chart-settings-content",
129
129
  value: selectedOption,
130
130
  classNamePrefix: "select-column",
@@ -143,7 +143,7 @@ class GroupBy extends Component {
143
143
  const selectedOption = this.dateGranulatesOptions.find(option => option.value === selectedDateGranularity);
144
144
  return /*#__PURE__*/React.createElement("div", {
145
145
  className: "mt-4 sea-chart-parameter-item"
146
- }, /*#__PURE__*/React.createElement(DTableSelect, {
146
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
147
147
  menuPortalTarget: "#sea-chart-settings-content",
148
148
  value: selectedOption,
149
149
  options: this.dateGranulatesOptions,
@@ -157,7 +157,7 @@ class GroupBy extends Component {
157
157
  const selectedOption = this.geolocationGranulatesOptions.find(option => option.value === selectedGeolocationGranularity);
158
158
  return /*#__PURE__*/React.createElement("div", {
159
159
  className: "mt-4 sea-chart-parameter-item"
160
- }, /*#__PURE__*/React.createElement(DTableSelect, {
160
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
161
161
  menuPortalTarget: "#sea-chart-settings-content",
162
162
  value: selectedOption,
163
163
  options: this.geolocationGranulatesOptions,
@@ -1,5 +1,5 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Component } from 'react';
2
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
3
3
  import { FormGroup, Label } from 'reactstrap';
4
4
  import shallowEqual from 'shallowequal';
5
5
  import { CHART_SUMMARY_CALCULATION_METHOD, CHART_SUMMARY_SHOW, CHART_DATE_SUMMARY_CALCULATION_METHOD } from '../../constants';
@@ -128,7 +128,7 @@ class NumericSummaryItem extends Component {
128
128
  className: "pl-4 ".concat(isExpand ? 'expanded-numeric-summary-content' : 'collapsed-numeric-summary-content d-none')
129
129
  }, /*#__PURE__*/React.createElement(FormGroup, {
130
130
  className: "sea-chart-parameter-item numeric-column"
131
- }, /*#__PURE__*/React.createElement(DTableSelect, {
131
+ }, /*#__PURE__*/React.createElement(_DTableSelect, {
132
132
  menuPortalTarget: "#sea-chart-settings-content",
133
133
  value: selectedColumnOption,
134
134
  placeholder: intl.get('Select_a_column'),
@@ -139,7 +139,7 @@ class NumericSummaryItem extends Component {
139
139
  }
140
140
  })), /*#__PURE__*/React.createElement(FormGroup, {
141
141
  className: "sea-chart-parameter-item summary-method"
142
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
142
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
143
143
  menuPortalTarget: "#sea-chart-settings-content",
144
144
  value: selectedSummaryMethodOption,
145
145
  onChange: option => this.props.onSummaryMethodChange(option, index),
@@ -1,6 +1,6 @@
1
+ import _DTableRadio from "dtable-ui-component/lib/DTableRadio";
1
2
  import React from 'react';
2
3
  import { FormGroup, Label } from 'reactstrap';
3
- import DTableRadio from "dtable-ui-component/lib/DTableRadio";
4
4
  import { CHART_LINE_TYPES } from '../../../constants';
5
5
  import intl from '../../../intl';
6
6
  function SelectLineType(_ref) {
@@ -16,7 +16,7 @@ function SelectLineType(_ref) {
16
16
  };
17
17
  return /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, null, intl.get('Line_type')), CHART_LINE_TYPES.map((lineType, index) => {
18
18
  const isChecked = lineType === selectedLineType;
19
- return /*#__PURE__*/React.createElement(DTableRadio, {
19
+ return /*#__PURE__*/React.createElement(_DTableRadio, {
20
20
  key: index,
21
21
  isChecked: isChecked,
22
22
  onCheckedChange: () => onChangeLineType(lineType),
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import intl from '../../../intl';
5
5
  class SelectTable extends React.Component {
6
6
  constructor(props) {
@@ -10,7 +10,7 @@ class SelectTable extends React.Component {
10
10
  selectedTableId
11
11
  } = this.props;
12
12
  const selectedOption = selectedTableId ? this.tableOptions.find(option => option.value === selectedTableId) : null;
13
- return /*#__PURE__*/React.createElement(DTableSelect, {
13
+ return /*#__PURE__*/React.createElement(_DTableSelect, {
14
14
  menuPortalTarget: "#sea-chart-settings-content",
15
15
  value: selectedOption,
16
16
  options: this.tableOptions,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { useMemo } from 'react';
2
3
  import { Label, FormGroup } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import { getTableById, getNonPrivateViews } from 'dtable-utils';
5
5
  import classnames from 'classnames';
6
6
  import intl from '../../../intl';
@@ -37,7 +37,7 @@ const SelectView = _ref => {
37
37
  const selectedOption = selectedViewId ? viewOptions.find(option => option.value === selectedViewId) : null;
38
38
  return /*#__PURE__*/React.createElement(FormGroup, {
39
39
  className: "sea-chart-setting-item table-setting"
40
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('View')), /*#__PURE__*/React.createElement(DTableSelect, {
40
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('View')), /*#__PURE__*/React.createElement(_DTableSelect, {
41
41
  menuPortalTarget: "#sea-chart-settings-content",
42
42
  value: selectedOption,
43
43
  options: viewOptions,
@@ -1,5 +1,5 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Component } from 'react';
2
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
3
3
  import { FormGroup, Label } from 'reactstrap';
4
4
  import shallowEqual from 'shallowequal';
5
5
  import { CHART_TYPE, CHART_SUMMARY_CALCULATION_METHOD, CHART_SUMMARY_SHOW, CHART_DATE_SUMMARY_CALCULATION_METHOD } from '../../constants';
@@ -45,7 +45,7 @@ class SummaryMethodSettings extends Component {
45
45
  const selectedSummaryMethodOption = this.summaryMethodOptions.find(option => option.value === summary_method);
46
46
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
47
47
  className: "chart-parameter-item"
48
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(DTableSelect, {
48
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
49
49
  menuPortalTarget: "#sea-chart-settings-content",
50
50
  value: selectedColumnOption,
51
51
  placeholder: intl.get('Select_a_column'),
@@ -53,7 +53,7 @@ class SummaryMethodSettings extends Component {
53
53
  options: numericColumnOptions
54
54
  })), /*#__PURE__*/React.createElement(FormGroup, {
55
55
  className: "chart-parameter-item"
56
- }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
56
+ }, /*#__PURE__*/React.createElement(Label, null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
57
57
  menuPortalTarget: "#sea-chart-settings-content",
58
58
  value: selectedSummaryMethodOption,
59
59
  onChange: this.props.onSummaryMethodChange,
@@ -1,7 +1,7 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Component, Fragment } from 'react';
2
3
  import { COLUMNS_ICON_CONFIG, getTableById } from 'dtable-utils';
3
4
  import { FormGroup, Label } from 'reactstrap';
4
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
5
5
  import { BaseUtils } from '../../utils';
6
6
  import { CHART_SUMMARY_SHOW, CHART_SUMMARY_CALCULATION_METHOD, CHART_SUMMARY_TYPE, CHART_Y_GROUP_TYPE, CHART_TYPE, CHART_SUPPORT_COLUMNS, CHART_DATE_SUMMARY_CALCULATION_METHOD } from '../../constants';
7
7
  import intl from '../../intl';
@@ -147,7 +147,7 @@ class SummarySettings extends Component {
147
147
  const selectedSummaryType = this.getSelectedSummaryType();
148
148
  return /*#__PURE__*/React.createElement(FormGroup, {
149
149
  className: "sea-chart-parameter-item"
150
- }, /*#__PURE__*/React.createElement(Label, null, label), /*#__PURE__*/React.createElement(DTableSelect, {
150
+ }, /*#__PURE__*/React.createElement(Label, null, label), /*#__PURE__*/React.createElement(_DTableSelect, {
151
151
  menuPortalTarget: "#sea-chart-settings-content",
152
152
  classNamePrefix: "chart-summary-types",
153
153
  value: selectedSummaryType,
@@ -187,7 +187,7 @@ class SummarySettings extends Component {
187
187
  let selectedColumnOption = this.numericColumnsOptions.find(o => o.value.key === summaryColumn);
188
188
  return /*#__PURE__*/React.createElement(FormGroup, {
189
189
  className: "sea-chart-parameter-item"
190
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(DTableSelect, {
190
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_field')), /*#__PURE__*/React.createElement(_DTableSelect, {
191
191
  menuPortalTarget: "#sea-chart-settings-content",
192
192
  value: selectedColumnOption,
193
193
  onChange: this.onSelectSummaryColumn,
@@ -202,7 +202,7 @@ class SummarySettings extends Component {
202
202
  let selectedMethodOption = this.getSelectedMethodOption(this.props.summaryMethod, this.summaryMethodsOptions);
203
203
  return /*#__PURE__*/React.createElement(FormGroup, {
204
204
  className: "sea-chart-parameter-item"
205
- }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(DTableSelect, {
205
+ }, /*#__PURE__*/React.createElement("label", null, intl.get('Summary_method')), /*#__PURE__*/React.createElement(_DTableSelect, {
206
206
  menuPortalTarget: "#sea-chart-settings-content",
207
207
  value: selectedMethodOption,
208
208
  onChange: this.onSelectSummaryMethod,
@@ -1,5 +1,5 @@
1
+ import _DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
1
2
  import React from 'react';
2
- import DTableSwitch from "dtable-ui-component/lib/DTableSwitch";
3
3
  import classnames from 'classnames';
4
4
  import './index.css';
5
5
  const Switch = _ref => {
@@ -12,7 +12,7 @@ const Switch = _ref => {
12
12
  } = _ref;
13
13
  return /*#__PURE__*/React.createElement("div", {
14
14
  className: classnames('sea-chart-parameter-container', className)
15
- }, /*#__PURE__*/React.createElement(DTableSwitch, {
15
+ }, /*#__PURE__*/React.createElement(_DTableSwitch, {
16
16
  key: "custom-switch-checkbox-".concat(checked),
17
17
  checked: checked,
18
18
  disabled: disabled,
@@ -1,6 +1,6 @@
1
+ import _DTableSelect from "dtable-ui-component/lib/DTableSelect";
1
2
  import React, { Component } from 'react';
2
3
  import { FormGroup, Label } from 'reactstrap';
3
- import DTableSelect from "dtable-ui-component/lib/DTableSelect";
4
4
  import { COLUMNS_ICON_CONFIG, getTableById } from 'dtable-utils';
5
5
  import { CHART_Y_GROUP_TYPE, CHART_SUMMARY_SHOW, CHART_SUMMARY_CALCULATION_METHOD, CHART_SUMMARY_TYPE, DATE_GRANULATES, GEOLOCATION_GRANULATES, CHART_DATE_SUMMARY_CALCULATION_METHOD, CHART_SUPPORT_COLUMNS, CHART_TYPE } from '../../constants';
6
6
  import { BaseUtils } from '../../utils';
@@ -405,7 +405,7 @@ class YAxisGroupSettings extends Component {
405
405
  } = chart.config;
406
406
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
407
407
  className: "sea-chart-parameter-item"
408
- }, /*#__PURE__*/React.createElement(Label, null, label), /*#__PURE__*/React.createElement(DTableSelect, {
408
+ }, /*#__PURE__*/React.createElement(Label, null, label), /*#__PURE__*/React.createElement(_DTableSelect, {
409
409
  menuPortalTarget: "#sea-chart-settings-content",
410
410
  classNamePrefix: "chart-summary-types",
411
411
  value: selectedTypeOption,
@@ -1,8 +1,8 @@
1
+ import _Loading from "dtable-ui-component/lib/Loading";
1
2
  import classnames from 'classnames';
2
3
  import React, { useCallback, useEffect, useRef, useState } from 'react';
3
4
  import { getTableById, getTableColumnByKey, getNumberDisplayString } from 'dtable-utils';
4
5
  import { DataSet } from '@antv/data-set';
5
- import Loading from "dtable-ui-component/lib/Loading";
6
6
  import { CHART_SUMMARY_TYPE, DEFAULT_NUMBER_FORMAT_OBJECT, MAP_LEVEL } from '../../constants';
7
7
  import { Chart } from '../../utils/custom-g2';
8
8
  import fetchMapJson from '../../services/map-json';
@@ -315,7 +315,7 @@ export default function Map(props) {
315
315
  }, [statisticData, mapData, type, renderCommonChart, renderBubbleChart]);
316
316
  return /*#__PURE__*/React.createElement(React.Fragment, null, isLoading && /*#__PURE__*/React.createElement("div", {
317
317
  className: 'statistic-chart-loading-container'
318
- }, /*#__PURE__*/React.createElement(Loading, null)), /*#__PURE__*/React.createElement("div", {
318
+ }, /*#__PURE__*/React.createElement(_Loading, null)), /*#__PURE__*/React.createElement("div", {
319
319
  className: classnames('sea-chart-container '),
320
320
  ref: chartContainerRef
321
321
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
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.34",
25
+ "dtable-ui-component": "~5.0.2",
26
26
  "dtable-utils": "~4.4.*",
27
27
  "prop-types": "15.8.1",
28
28
  "react": "^17.0.0",