@seafile/sdoc-editor 2.0.18-alph-0.1.1 → 2.0.18-alph-2.0.0
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/basic-sdk/comment/components/comment-participants-editor/index.js +1 -0
- package/dist/basic-sdk/extension/plugins/seatable-row/dialog/add-seatable-row-dialog/helpers.js +5 -2
- package/dist/basic-sdk/extension/plugins/seatable-row/dialog/add-seatable-row-dialog/index.js +1 -1
- package/dist/basic-sdk/extension/plugins/seatable-tables/formatter/collaborator-wrapper.js +3 -0
- package/package.json +1 -1
package/dist/basic-sdk/extension/plugins/seatable-row/dialog/add-seatable-row-dialog/helpers.js
CHANGED
|
@@ -30,8 +30,12 @@ const getRowName = (columns, row, formula_rows) => {
|
|
|
30
30
|
formulaRows = view.formula_rows || {};
|
|
31
31
|
}
|
|
32
32
|
const tables = window.app.state.value.tables;
|
|
33
|
-
const
|
|
33
|
+
const {
|
|
34
|
+
departments = []
|
|
35
|
+
} = window.seafile || window.seafileConfig;
|
|
34
36
|
const collaborators = window.app.state.collaboratorsWithAppUsers;
|
|
37
|
+
// const { collaboratorManager } = window.seafile || window.seafileConfig;
|
|
38
|
+
|
|
35
39
|
return (0, _dtableUtils.getCellValueDisplayString)(row, type, key, {
|
|
36
40
|
formulaRows,
|
|
37
41
|
data,
|
|
@@ -417,7 +421,6 @@ const getRowRecord = function (currentTableId, row, columns, unShowColumnKeyList
|
|
|
417
421
|
if (UNSHOW_COLUMN_TYPE.includes(column.type)) return false;
|
|
418
422
|
return true;
|
|
419
423
|
}).map(column => {
|
|
420
|
-
console.log(1, column);
|
|
421
424
|
const searchValue = matchedResult && matchedResult[column.key];
|
|
422
425
|
return getFormattedCell(column, row, {
|
|
423
426
|
tableId: currentTableId,
|
|
@@ -20,6 +20,7 @@ function withCollaborators(Component) {
|
|
|
20
20
|
const {
|
|
21
21
|
value
|
|
22
22
|
} = this.props;
|
|
23
|
+
console.log(4444, value);
|
|
23
24
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
24
25
|
return null;
|
|
25
26
|
}
|
|
@@ -64,6 +65,7 @@ function withCollaborators(Component) {
|
|
|
64
65
|
collaboratorManager
|
|
65
66
|
} = window.seafile || window.seafileConfig;
|
|
66
67
|
const cellValue = this.getFormattedCellValue();
|
|
68
|
+
console.log(55, cellValue);
|
|
67
69
|
if (!cellValue) {
|
|
68
70
|
this.setState({
|
|
69
71
|
isLoading: false,
|
|
@@ -72,6 +74,7 @@ function withCollaborators(Component) {
|
|
|
72
74
|
return;
|
|
73
75
|
}
|
|
74
76
|
const emailUserMap = await collaboratorManager.getEmailUserMap(cellValue);
|
|
77
|
+
console.log(6, emailUserMap);
|
|
75
78
|
if (emailUserMap) {
|
|
76
79
|
const collaborators = cellValue.map(email => emailUserMap[email]);
|
|
77
80
|
this.setState({
|