sea-chart 1.1.117 → 1.1.118
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.
|
@@ -7,6 +7,7 @@ function Record(_ref) {
|
|
|
7
7
|
record,
|
|
8
8
|
index,
|
|
9
9
|
collaborators,
|
|
10
|
+
departments,
|
|
10
11
|
queryUsers
|
|
11
12
|
} = _ref;
|
|
12
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -44,6 +45,7 @@ function Record(_ref) {
|
|
|
44
45
|
}
|
|
45
46
|
}, /*#__PURE__*/React.createElement(Formatter, {
|
|
46
47
|
collaborators: collaborators,
|
|
48
|
+
departments: departments,
|
|
47
49
|
cellValue: value,
|
|
48
50
|
column: column,
|
|
49
51
|
row: record,
|
|
@@ -86,7 +86,8 @@ class RecordsBody extends Component {
|
|
|
86
86
|
records,
|
|
87
87
|
collaborators,
|
|
88
88
|
columns,
|
|
89
|
-
globalTheme
|
|
89
|
+
globalTheme,
|
|
90
|
+
departments
|
|
90
91
|
} = this.props;
|
|
91
92
|
const {
|
|
92
93
|
startRenderIndex,
|
|
@@ -117,6 +118,7 @@ class RecordsBody extends Component {
|
|
|
117
118
|
record: record,
|
|
118
119
|
index: index,
|
|
119
120
|
collaborators: collaborators,
|
|
121
|
+
departments: departments,
|
|
120
122
|
isLastRecord: records.length - 1 === index,
|
|
121
123
|
queryUsers: this.props.queryUsers
|
|
122
124
|
});
|
|
@@ -145,7 +145,8 @@ class Records extends Component {
|
|
|
145
145
|
render() {
|
|
146
146
|
const {
|
|
147
147
|
records,
|
|
148
|
-
collaborators
|
|
148
|
+
collaborators,
|
|
149
|
+
departments
|
|
149
150
|
} = this.props;
|
|
150
151
|
const {
|
|
151
152
|
displayColumns,
|
|
@@ -177,6 +178,7 @@ class Records extends Component {
|
|
|
177
178
|
records: records,
|
|
178
179
|
columns: displayColumns,
|
|
179
180
|
collaborators: collaborators,
|
|
181
|
+
departments: departments,
|
|
180
182
|
queryUsers: this.props.queryUsers,
|
|
181
183
|
setVerticalScrollbarTop: this.setVerticalScrollbarTop,
|
|
182
184
|
globalTheme: this.props.globalTheme,
|
|
@@ -62,6 +62,7 @@ export default class TableElement extends React.Component {
|
|
|
62
62
|
} = chart;
|
|
63
63
|
const initState = this.getInitState(_config, _tables);
|
|
64
64
|
initState.relatedUserList = context.getCollaboratorsFromCache();
|
|
65
|
+
initState.departments = context.getDepartments();
|
|
65
66
|
this.state = initState;
|
|
66
67
|
this.relatedUserEmailMap = {};
|
|
67
68
|
initState.relatedUserList.forEach(u => {
|
|
@@ -98,7 +99,8 @@ export default class TableElement extends React.Component {
|
|
|
98
99
|
const {
|
|
99
100
|
relatedUserList,
|
|
100
101
|
shownColumns,
|
|
101
|
-
selectedTable
|
|
102
|
+
selectedTable,
|
|
103
|
+
departments
|
|
102
104
|
} = this.state;
|
|
103
105
|
const records = Array.isArray(result) ? result : [];
|
|
104
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -110,6 +112,7 @@ export default class TableElement extends React.Component {
|
|
|
110
112
|
shownColumns: shownColumns,
|
|
111
113
|
records: records,
|
|
112
114
|
collaborators: relatedUserList,
|
|
115
|
+
departments: departments,
|
|
113
116
|
queryUsers: this.queryUsers,
|
|
114
117
|
globalTheme: globalTheme
|
|
115
118
|
}));
|