sea-chart 1.1.56 → 1.1.58
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/components/types-dialog/index.js +1 -1
- package/dist/view/wrapper/table-element/components/records-body.js +5 -1
- package/dist/view/wrapper/table-element/components/records-header/index.js +6 -1
- package/dist/view/wrapper/table-element/components/records.js +4 -2
- package/dist/view/wrapper/table-element/index.js +4 -2
- package/package.json +1 -1
|
@@ -105,7 +105,7 @@ const TypesDialog = _ref => {
|
|
|
105
105
|
}, item.children.map(chartType => {
|
|
106
106
|
if (notSupportStatisticTypes.includes(chartType)) return null;
|
|
107
107
|
// Table_element only supported on external apps
|
|
108
|
-
if (chartType === CHART_TYPE.TABLE_ELEMENT && dataSources === 'view') return null;
|
|
108
|
+
if (chartType === CHART_TYPE.TABLE_ELEMENT && (dataSources === 'view' || !dataSources)) return null;
|
|
109
109
|
return /*#__PURE__*/React.createElement("div", {
|
|
110
110
|
key: chartType,
|
|
111
111
|
onClick: event => onTypeChange(event, chartType, index),
|
|
@@ -81,7 +81,8 @@ class RecordsBody extends Component {
|
|
|
81
81
|
const {
|
|
82
82
|
records,
|
|
83
83
|
collaborators,
|
|
84
|
-
columns
|
|
84
|
+
columns,
|
|
85
|
+
globalTheme
|
|
85
86
|
} = this.props;
|
|
86
87
|
const {
|
|
87
88
|
startRenderIndex,
|
|
@@ -93,6 +94,9 @@ class RecordsBody extends Component {
|
|
|
93
94
|
const belowHeight = (recordsCount - endRenderIndex) * ROW_HEIGHT;
|
|
94
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
95
96
|
className: "table-element-result-table-content",
|
|
97
|
+
style: {
|
|
98
|
+
color: globalTheme === 'light' ? '#212529' : '#ffffff'
|
|
99
|
+
},
|
|
96
100
|
onScroll: this.onScroll,
|
|
97
101
|
ref: ref => this.tableElementResultContentRef = ref
|
|
98
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
+
import { GlobalThemeContext } from '../../../../../utils/contexts';
|
|
2
3
|
import RecordsHeaderCell from './records-header-cell';
|
|
3
4
|
class RecordsHeader extends Component {
|
|
4
5
|
constructor() {
|
|
@@ -22,10 +23,14 @@ class RecordsHeader extends Component {
|
|
|
22
23
|
const {
|
|
23
24
|
columns,
|
|
24
25
|
resizeColumnWidth,
|
|
25
|
-
resizeColumnWidthEnd
|
|
26
|
+
resizeColumnWidthEnd,
|
|
27
|
+
globalTheme
|
|
26
28
|
} = this.props;
|
|
27
29
|
return /*#__PURE__*/React.createElement("div", {
|
|
28
30
|
className: "static-table-element-result-content",
|
|
31
|
+
style: {
|
|
32
|
+
color: globalTheme === 'light' ? '#666666' : '#ffffff'
|
|
33
|
+
},
|
|
29
34
|
onMouseEnter: this.onMouseEnter,
|
|
30
35
|
onMouseLeave: this.onMouseLeave
|
|
31
36
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -166,14 +166,16 @@ class Records extends Component {
|
|
|
166
166
|
}, /*#__PURE__*/React.createElement(RecordsHeader, {
|
|
167
167
|
columns: headerDisplayColumns,
|
|
168
168
|
resizeColumnWidth: this.resizeColumnWidth,
|
|
169
|
-
resizeColumnWidthEnd: this.resizeColumnWidthEnd
|
|
169
|
+
resizeColumnWidthEnd: this.resizeColumnWidthEnd,
|
|
170
|
+
globalTheme: this.props.globalTheme
|
|
170
171
|
}), /*#__PURE__*/React.createElement(RecordsBody, {
|
|
171
172
|
ref: ref => this.recordsBody = ref,
|
|
172
173
|
records: records,
|
|
173
174
|
columns: displayColumns,
|
|
174
175
|
collaborators: collaborators,
|
|
175
176
|
queryUsers: this.props.queryUsers,
|
|
176
|
-
setVerticalScrollbarTop: this.setVerticalScrollbarTop
|
|
177
|
+
setVerticalScrollbarTop: this.setVerticalScrollbarTop,
|
|
178
|
+
globalTheme: this.props.globalTheme
|
|
177
179
|
}))), /*#__PURE__*/React.createElement(VerticalScrollbar, {
|
|
178
180
|
contentHeight: 33 * records.length,
|
|
179
181
|
ref: ref => this.verticalScrollbar = ref,
|
|
@@ -97,7 +97,8 @@ export default class TableElement extends React.Component {
|
|
|
97
97
|
render() {
|
|
98
98
|
const {
|
|
99
99
|
chart,
|
|
100
|
-
result
|
|
100
|
+
result,
|
|
101
|
+
globalTheme
|
|
101
102
|
} = this.props;
|
|
102
103
|
const {
|
|
103
104
|
relatedUserList,
|
|
@@ -113,7 +114,8 @@ export default class TableElement extends React.Component {
|
|
|
113
114
|
shownColumns: shownColumns,
|
|
114
115
|
records: result,
|
|
115
116
|
collaborators: relatedUserList,
|
|
116
|
-
queryUsers: this.queryUsers
|
|
117
|
+
queryUsers: this.queryUsers,
|
|
118
|
+
globalTheme: globalTheme
|
|
117
119
|
}));
|
|
118
120
|
}
|
|
119
121
|
}
|