sea-chart 0.0.95-alpha.1 → 0.0.95-alpha.2
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/context.js
CHANGED
|
@@ -141,6 +141,8 @@ class Context {
|
|
|
141
141
|
this.api = api;
|
|
142
142
|
this.settings = config || {};
|
|
143
143
|
this.hasInit = true;
|
|
144
|
+
console.log('collaborators', JSON.parse(JSON.stringify(collaborators)));
|
|
145
|
+
console.log('collaboratorManager', collaboratorManager);
|
|
144
146
|
this.collaborators = collaborators || [];
|
|
145
147
|
this.departments = departments || [];
|
|
146
148
|
this.collaboratorManager = collaboratorManager ? collaboratorManager : new CollaboratorManager(collaborators);
|
|
@@ -20,6 +20,7 @@ class PivotTableDisplayName extends React.Component {
|
|
|
20
20
|
};
|
|
21
21
|
this.updateCreator = email => {
|
|
22
22
|
let creator = getKnownCollaboratorByEmail(email);
|
|
23
|
+
console.log('11creator', creator);
|
|
23
24
|
if (creator) {
|
|
24
25
|
this.setState({
|
|
25
26
|
creator
|
|
@@ -38,8 +39,10 @@ class PivotTableDisplayName extends React.Component {
|
|
|
38
39
|
email: email,
|
|
39
40
|
name: email
|
|
40
41
|
};
|
|
42
|
+
console.log('!creator', context);
|
|
41
43
|
context.updateCollaboratorsCache(email, valueTemplate);
|
|
42
44
|
context.queryUsers([email], emailUserMap => {
|
|
45
|
+
console.log('!creator11', email, emailUserMap);
|
|
43
46
|
creator = emailUserMap && emailUserMap[email] || generateDefaultUser(email);
|
|
44
47
|
const loadedCreator = {
|
|
45
48
|
...creator,
|
|
@@ -116,6 +119,9 @@ class PivotTableDisplayName extends React.Component {
|
|
|
116
119
|
if (type === CellType.LINK_FORMULA && [CellType.COLLABORATOR].includes(data === null || data === void 0 ? void 0 : data.array_type)) {
|
|
117
120
|
type = CellType.COLLABORATOR;
|
|
118
121
|
}
|
|
122
|
+
if (type === CellType.LINK_FORMULA && [CellType.CREATOR].includes(data === null || data === void 0 ? void 0 : data.array_type)) {
|
|
123
|
+
type = CellType.CREATOR;
|
|
124
|
+
}
|
|
119
125
|
let displayName;
|
|
120
126
|
switch (type) {
|
|
121
127
|
case CellType.SINGLE_SELECT:
|
|
@@ -212,6 +218,11 @@ class PivotTableDisplayName extends React.Component {
|
|
|
212
218
|
case CellType.CREATOR:
|
|
213
219
|
case CellType.LAST_MODIFIER:
|
|
214
220
|
{
|
|
221
|
+
const {
|
|
222
|
+
rowData
|
|
223
|
+
} = this.props;
|
|
224
|
+
console.log('rowData', rowData);
|
|
225
|
+
console.log('value', value);
|
|
215
226
|
let {
|
|
216
227
|
creator
|
|
217
228
|
} = this.state;
|
|
@@ -59,6 +59,7 @@ class TwoDimensionTable extends PureComponent {
|
|
|
59
59
|
} = selectedCell || {};
|
|
60
60
|
const isSelectedTotalCellBottom = selectRowIdx === 0 && selectedCellIdx === (Array.isArray(pivot_columns) ? pivot_columns.length : 0);
|
|
61
61
|
const isCollaborator = columnGroupbyColumn.type === CellType.COLLABORATOR;
|
|
62
|
+
console.log('pivot_columns', pivot_columns);
|
|
62
63
|
return /*#__PURE__*/React.createElement("thead", {
|
|
63
64
|
className: "seatable-table-header-sm"
|
|
64
65
|
}, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|