sea-chart 0.0.84-alpha.3 → 0.0.84-alpha.4
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.
|
@@ -506,6 +506,7 @@ const DataSettings = _ref => {
|
|
|
506
506
|
tables: tables,
|
|
507
507
|
className: "selected-x-axis",
|
|
508
508
|
label: intl.get('Row_grouping_field'),
|
|
509
|
+
isRenderNoUsed: false,
|
|
509
510
|
selectedTableId: table_id,
|
|
510
511
|
selectedColumnKey: groupby_column_key,
|
|
511
512
|
selectedDateGranularity: groupby_date_granularity,
|
|
@@ -524,6 +525,7 @@ const DataSettings = _ref => {
|
|
|
524
525
|
tables: tables,
|
|
525
526
|
className: "selected-x-axis",
|
|
526
527
|
label: intl.get('Column_grouping_field'),
|
|
528
|
+
isRenderNoUsed: true,
|
|
527
529
|
selectedTableId: table_id,
|
|
528
530
|
selectedColumnKey: column_groupby_column_key,
|
|
529
531
|
selectedDateGranularity: column_groupby_date_granularity,
|
|
@@ -84,8 +84,8 @@ class GroupBy extends Component {
|
|
|
84
84
|
};
|
|
85
85
|
this.getColumnOptions = columns => {
|
|
86
86
|
const {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
type,
|
|
88
|
+
isRenderNoUsed
|
|
89
89
|
} = this.props;
|
|
90
90
|
let newColumns = columns.map(column => {
|
|
91
91
|
return {
|
|
@@ -104,6 +104,17 @@ class GroupBy extends Component {
|
|
|
104
104
|
} else if (type === CHART_TYPE.SCATTER) {
|
|
105
105
|
newColumns = newColumns.filter(column => NUMBERIC_COLUMN_TYPE.includes(column.value.type));
|
|
106
106
|
}
|
|
107
|
+
if (isRenderNoUsed) {
|
|
108
|
+
newColumns.unshift({
|
|
109
|
+
value: {
|
|
110
|
+
key: '',
|
|
111
|
+
type: 'text'
|
|
112
|
+
},
|
|
113
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
114
|
+
className: 'select-module select-module-name ml-0'
|
|
115
|
+
}, intl.get('Not_used'))
|
|
116
|
+
});
|
|
117
|
+
}
|
|
107
118
|
return newColumns;
|
|
108
119
|
};
|
|
109
120
|
this.renderSelector = () => {
|