@seafile/sdoc-editor 1.0.22 → 1.0.23
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/assets/css/sdoc-editor-plugins.css +1 -1
- package/dist/basic-sdk/extension/plugins/search-replace/popover/index.js +7 -2
- package/dist/basic-sdk/extension/plugins/seatable-column/constants/cell-types.js +2 -0
- package/dist/basic-sdk/extension/plugins/seatable-column/constants/column.js +6 -3
- package/dist/basic-sdk/extension/plugins/seatable-column/menu/column-list-menu.css +4 -0
- package/dist/basic-sdk/extension/plugins/seatable-tables/seatable-settings/index.js +5 -6
- package/dist/basic-sdk/views/revision-diff-viewer.js +3 -0
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
.sdoc-editor-container .article .sdoc-checkbox-container .sdoc-checkbox-input-wrapper {
|
|
41
41
|
display: flex;
|
|
42
|
-
align-items:
|
|
42
|
+
align-items: normal;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.sdoc-editor-container .article .sdoc-checkbox-container .sdoc-checkbox-input-wrapper .sdoc-checkbox-input {
|
|
@@ -7,7 +7,7 @@ import debounce from '../../../../utils/debounce';
|
|
|
7
7
|
import { handleReplaceKeyword, getHighlightInfos, drawHighlights } from '../helper';
|
|
8
8
|
import ReplaceAllConfirmModal from './replace-all-confirm-modal';
|
|
9
9
|
import EventBus from '../../../../utils/event-bus';
|
|
10
|
-
import { INTERNAL_EVENT } from '../../../../constants';
|
|
10
|
+
import { DOCUMENT_PLUGIN_EDITOR, INTERNAL_EVENT } from '../../../../constants';
|
|
11
11
|
import context from '../../../../../context';
|
|
12
12
|
import './index.css';
|
|
13
13
|
const SearchReplacePopover = _ref => {
|
|
@@ -41,10 +41,15 @@ const SearchReplacePopover = _ref => {
|
|
|
41
41
|
if (highlightInfos.length) return "".concat(currentSelectIndex + 1, " / ").concat(highlightInfos.length);
|
|
42
42
|
}, [currentSelectIndex, highlightInfos.length, searchContent.length, t]);
|
|
43
43
|
useEffect(() => {
|
|
44
|
+
let y = 95;
|
|
45
|
+
if (editor.editorType === DOCUMENT_PLUGIN_EDITOR) {
|
|
46
|
+
y = 201;
|
|
47
|
+
}
|
|
44
48
|
setPopoverPosition({
|
|
45
49
|
x: pageInnerSizeRef.current.x - 420,
|
|
46
|
-
y
|
|
50
|
+
y
|
|
47
51
|
});
|
|
52
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
53
|
}, []);
|
|
49
54
|
const isOwnReplacePermission = useMemo(() => {
|
|
50
55
|
if (readonly) return false;
|
|
@@ -23,6 +23,8 @@ export const EMAIL = 'email';
|
|
|
23
23
|
export const DURATION = 'duration';
|
|
24
24
|
export const BUTTON = 'button';
|
|
25
25
|
export const RATE = 'rate';
|
|
26
|
+
export const DIGITAL_SIGN = 'digital-sign';
|
|
27
|
+
export const DEPARTMENT_SINGLE_SELECT = 'department-single-select';
|
|
26
28
|
|
|
27
29
|
// formula | link-formula column calculate result type
|
|
28
30
|
export const BOOL = 'bool';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as CellType from './cell-types';
|
|
2
|
-
|
|
2
|
+
const COLUMNS_ICON_CONFIG = {
|
|
3
3
|
[CellType.DEFAULT]: 'dtable-font dtable-icon-single-line-text',
|
|
4
4
|
[CellType.TEXT]: 'dtable-font dtable-icon-single-line-text',
|
|
5
5
|
[CellType.NUMBER]: 'dtable-font dtable-icon-number',
|
|
@@ -24,5 +24,8 @@ export const COLUMNS_ICON_CONFIG = {
|
|
|
24
24
|
[CellType.EMAIL]: 'dtable-font dtable-icon-email',
|
|
25
25
|
[CellType.DURATION]: 'dtable-font dtable-icon-duration',
|
|
26
26
|
[CellType.BUTTON]: 'dtable-font dtable-icon-button',
|
|
27
|
-
[CellType.RATE]: 'dtable-font dtable-icon-rate'
|
|
28
|
-
|
|
27
|
+
[CellType.RATE]: 'dtable-font dtable-icon-rate',
|
|
28
|
+
[CellType.DIGITAL_SIGN]: 'dtable-font dtable-icon-handwritten-signature',
|
|
29
|
+
[CellType.DEPARTMENT_SINGLE_SELECT]: 'dtable-font dtable-icon-department-single-selection'
|
|
30
|
+
};
|
|
31
|
+
export { COLUMNS_ICON_CONFIG };
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
background-color: #fff;
|
|
5
5
|
min-width: 12rem;
|
|
6
6
|
width: 200px;
|
|
7
|
+
max-height: 500px;
|
|
8
|
+
overflow: auto;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.column-list-menu .column-list-menu-item-container {
|
|
@@ -20,6 +22,8 @@
|
|
|
20
22
|
.column-list-menu .column-list-menu-item-container .column-list-menu-item .control-icon {
|
|
21
23
|
margin-right: 10px;
|
|
22
24
|
flex-shrink: 0;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
color: #444;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
.column-list-menu .column-list-menu-item-container .column-list-menu-item .control-label {
|
|
@@ -33,7 +33,6 @@ export default function TableSettings(_ref) {
|
|
|
33
33
|
if (timer.current) {
|
|
34
34
|
clearTimeout(timer.current);
|
|
35
35
|
}
|
|
36
|
-
console.log(updateProperties);
|
|
37
36
|
timer.current = setTimeout(() => {
|
|
38
37
|
updateSeaTableTable(editor, updateProperties);
|
|
39
38
|
}, 300);
|
|
@@ -80,11 +79,11 @@ export default function TableSettings(_ref) {
|
|
|
80
79
|
alternate_color: value
|
|
81
80
|
});
|
|
82
81
|
}, [updatePageSettings]);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
|
|
83
|
+
// const onSelectModuleChange = useCallback((value) => {
|
|
84
|
+
// updatePageSettings({ select_column_display_option_color: value });
|
|
85
|
+
// }, [updatePageSettings]);
|
|
86
|
+
|
|
88
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
89
88
|
className: "document-seatable-settings-wrapper"
|
|
90
89
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import context from '../../context';
|
|
3
3
|
import { getDiff } from '../utils/diff';
|
|
4
|
+
import InsertElementDialog from '../extension/commons/insert-element-dialog';
|
|
4
5
|
import SDocViewer from './sdoc-viewer';
|
|
5
6
|
import Loading from '../../components/loading';
|
|
6
7
|
import { CollaboratorsProvider } from '../../hooks';
|
|
@@ -48,6 +49,8 @@ const RevisionDiffViewer = _ref => {
|
|
|
48
49
|
showToolbar: true,
|
|
49
50
|
showOutline: true,
|
|
50
51
|
showComment: true
|
|
52
|
+
}), /*#__PURE__*/React.createElement(InsertElementDialog, {
|
|
53
|
+
editor: editor
|
|
51
54
|
}));
|
|
52
55
|
};
|
|
53
56
|
export default RevisionDiffViewer;
|