@voplus/morpho-document 5.0.17 → 5.0.19
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/es/components/AddDocDropdown/index.less +61 -61
- package/es/components/AddFormView/index.less +42 -42
- package/es/components/AdvanceSearch/index.less +21 -21
- package/es/components/DescriptionDocumentList/index.less +14 -14
- package/es/components/DocumentCard/index.less +116 -116
- package/es/components/DocumentCardList/index.less +9 -9
- package/es/components/DocumentHeader/index.less +157 -157
- package/es/components/DocumentItem/index.less +88 -88
- package/es/components/DocumentList/index.less +100 -100
- package/es/components/DocumentListView/index.less +10 -10
- package/es/components/DocumentNotificationDialog/index.less +26 -26
- package/es/components/DocumentPanelHeader/index.less +12 -12
- package/es/components/DocumentProperties/index.less +15 -15
- package/es/components/DocumentPropertiesView/index.less +9 -9
- package/es/components/DocumentSelectDialog/index.less +54 -54
- package/es/components/DocumentSortableTree/index.less +22 -22
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +335 -335
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +4 -4
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.less +64 -64
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.less +18 -18
- package/es/components/DocumentTabs/index.less +12 -12
- package/es/components/DocumentTree/index.less +4 -4
- package/es/components/FileViewer/index.less +93 -93
- package/es/components/FlexDialog/index.less +27 -27
- package/es/components/Icon/index.less +24 -24
- package/es/components/Links/index.less +140 -140
- package/es/components/NewDocumentForm/index.less +63 -63
- package/es/components/NodeQuickView/QuickSubTab/index.less +25 -25
- package/es/components/NodeQuickView/index.less +74 -74
- package/es/components/PublishModal/index.less +22 -22
- package/es/components/QuickAccessPanel/index.less +20 -20
- package/es/components/QuickAccessSearch/ObjectItem/index.less +21 -21
- package/es/components/QuickAccessSearch/index.less +23 -23
- package/es/components/QuickViewDialog/QuickSubTab/index.less +23 -23
- package/es/components/QuickViewDialog/index.less +82 -82
- package/es/components/SendForm/index.less +48 -48
- package/es/components/TagView/index.less +106 -106
- package/es/components/TextQuickViewDialog/index.less +7 -7
- package/es/components/VersionsModal/index.less +31 -31
- package/es/components/ViewFrame/ViewFrameHeader/index.less +16 -16
- package/es/components/ViewFrame/index.less +12 -12
- package/es/components/WordFieldViewer/index.less +5 -5
- package/es/components/WordFields/index.less +9 -9
- package/es/components/WordFillView/index.less +13 -13
- package/es/components/styles/ScrollBar.less +30 -30
- package/es/components/styles/common.less +187 -187
- package/es/components/styles/index.less +13 -13
- package/es/controls/ChildDocumentSelect/index.less +23 -23
- package/es/controls/DataIconBar/index.less +17 -17
- package/es/controls/DescriptionEditor/index.less +59 -59
- package/es/controls/DocumentLabel/index.less +12 -12
- package/es/controls/DocumentMenu/items/CopyReference.js +11 -11
- package/es/controls/DocumentReference/index.less +13 -13
- package/es/controls/FolderEdit/index.less +39 -39
- package/es/controls/MentionState/index.less +8 -8
- package/es/controls/PDFViewer/Toolbar/buttons/Zoom/index.less +16 -16
- package/es/controls/PDFViewer/Toolbar/index.less +36 -36
- package/es/controls/PDFViewer/index.d.ts +2 -1
- package/es/controls/PDFViewer/index.js +2 -1
- package/es/controls/PDFViewer/index.js.map +1 -1
- package/es/controls/PDFViewer/index.less +20 -20
- package/es/controls/PropertiesSection/index.less +24 -24
- package/es/controls/ReferenceList/index.less +52 -52
- package/es/controls/RelatedDocument/index.less +11 -11
- package/es/controls/TimeLog/index.less +91 -91
- package/es/controls/ToolBar/index.less +76 -76
- package/es/controls/data-icons/DescriptionDataIcon/index.less +13 -13
- package/es/controls/data-icons/DocumentDataIcon/index.less +11 -11
- package/es/controls/data-icons/DocumentPathDataIcon/index.less +17 -17
- package/es/controls/data-icons/FlagIcon/index.less +42 -42
- package/es/modules/document-register/components/DocumentRegisterItem/index.less +45 -45
- package/es/modules/document-register/components/DocumentRegisterList/index.less +15 -15
- package/es/modules/document-register/components/DocumentRegisterPropertiesView/index.less +14 -14
- package/es/modules/document-register/components/DocumentRegisterQuickViewDialog/index.less +14 -14
- package/es/modules/document-register/controls/DocumentRegisterStatusLabel/index.less +35 -35
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.less +21 -21
- package/es/modules/graph/components/GraphViewer/index.less +5 -5
- package/es/modules/graph/pages/GraphDefaultView/index.less +17 -17
- package/es/modules/page/components/PageItem/index.less +36 -36
- package/es/modules/page/components/PageItemHeader/index.less +34 -34
- package/es/modules/page/components/PageItems/index.less +79 -79
- package/es/modules/page/components/PlusDropDown/index.less +11 -11
- package/es/modules/page/views/PageDefaultView/index.less +75 -75
- package/es/modules/page/views/PagePrintView/index.less +44 -44
- package/es/obsolete/Links/index.less +112 -112
- package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.less +39 -39
- package/es/pages/EmailTemplate/EmailTemplateForm/index.less +26 -26
- package/es/pages/EmailTemplate/EmailTemplateItem/index.js +4 -4
- package/es/pages/EmailTemplate/EmailTemplateItem/index.less +18 -18
- package/es/pages/EmailTemplate/EmailTemplateItems/index.less +68 -68
- package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.less +13 -13
- package/es/pages/Library/LibraryDefaultView/index.less +165 -165
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.less +57 -57
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.less +36 -36
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.less +42 -42
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.less +70 -70
- package/es/pages/Signature/Envelope/EnvelopeReport/index.less +49 -49
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.less +64 -64
- package/es/pages/Signature/Envelope/components/EnvelopeQuickView/index.less +53 -53
- package/es/pages/Signature/Envelope/components/PropertiesView/index.less +47 -47
- package/es/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.less +20 -20
- package/es/pages/Signature/Envelope/controls/SignaturePercentageDataIcon/index.less +14 -14
- package/es/pages/Signature/Letter/LetterContentView/index.less +86 -86
- package/es/pages/Signature/Letter/LetterItem/index.less +31 -31
- package/es/pages/Signature/Letter/LetterList/index.less +72 -72
- package/es/pages/Signature/Letter/LetterViewer/index.less +76 -76
- package/es/pages/Signature/SignatureRecipient/index.less +18 -18
- package/es/pages/Signature/SignatureTable/index.less +51 -51
- package/es/pages/TreeViewPage/index.less +31 -31
- package/es/pages/VSubmit/VSubmitDefaultView/index.less +17 -17
- package/es/pages/VSubmit/VSubmitSubmitterView/index.less +34 -34
- package/es/pages/VSubmit/components/DocumentIcon/index.less +43 -43
- package/es/pages/VSubmit/components/DocumentIconList/index.less +85 -85
- package/es/pages/VSubmit/components/EmailRecipients/index.less +56 -56
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.less +16 -16
- package/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem/index.less +17 -17
- package/es/pages/VSubmit/components/SubmitSections/index.less +61 -61
- package/es/pages/WordFillPage/index.less +12 -12
- package/es/style/index.less +13 -13
- package/es/style/print.less +18 -18
- package/es/views/DocumentTabbedView/index.less +24 -24
- package/package.json +66 -67
- package/readme.md +9 -9
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.description-editor {
|
|
3
|
-
padding: 0.75rem 0;
|
|
4
|
-
.description-editor-header {
|
|
5
|
-
padding: 0 1.25rem;
|
|
6
|
-
}
|
|
7
|
-
.editor-toolbar {
|
|
8
|
-
padding: 0.2rem 0.65rem;
|
|
9
|
-
}
|
|
10
|
-
.description-readonly-proseMirror {
|
|
11
|
-
.ProseMirror-container {
|
|
12
|
-
// max-height: 7rem;
|
|
13
|
-
transition: height 0.3s ease-in;
|
|
14
|
-
.ProseMirror {
|
|
15
|
-
padding: 0 1.25rem;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
&.description-collapse-proseMirror {
|
|
19
|
-
.ProseMirror-container {
|
|
20
|
-
max-height: 7rem;
|
|
21
|
-
}
|
|
22
|
-
&.collapseAll {
|
|
23
|
-
.ProseMirror-container {
|
|
24
|
-
max-height: 0 !important;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
&.description-expand-proseMirror .ProseMirror-container {
|
|
29
|
-
max-height: 100%;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.description-editor-proseMirror {
|
|
34
|
-
height: 20rem !important;
|
|
35
|
-
padding: 0 1.25rem;
|
|
36
|
-
.ProseMirror {
|
|
37
|
-
padding: 1rem 1.25rem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.more-description-btn {
|
|
41
|
-
width: 44px;
|
|
42
|
-
line-height: 14px;
|
|
43
|
-
margin: auto;
|
|
44
|
-
color: #555;
|
|
45
|
-
text-align: center;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
.svg-inline--fa {
|
|
48
|
-
font-size: 13px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.description-editor-footer {
|
|
52
|
-
padding: 0.75rem 1.25rem 0 1.25rem;
|
|
53
|
-
text-align: right;
|
|
54
|
-
.ant-btn {
|
|
55
|
-
margin-left: 10px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.description-editor {
|
|
3
|
+
padding: 0.75rem 0;
|
|
4
|
+
.description-editor-header {
|
|
5
|
+
padding: 0 1.25rem;
|
|
6
|
+
}
|
|
7
|
+
.editor-toolbar {
|
|
8
|
+
padding: 0.2rem 0.65rem;
|
|
9
|
+
}
|
|
10
|
+
.description-readonly-proseMirror {
|
|
11
|
+
.ProseMirror-container {
|
|
12
|
+
// max-height: 7rem;
|
|
13
|
+
transition: height 0.3s ease-in;
|
|
14
|
+
.ProseMirror {
|
|
15
|
+
padding: 0 1.25rem;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&.description-collapse-proseMirror {
|
|
19
|
+
.ProseMirror-container {
|
|
20
|
+
max-height: 7rem;
|
|
21
|
+
}
|
|
22
|
+
&.collapseAll {
|
|
23
|
+
.ProseMirror-container {
|
|
24
|
+
max-height: 0 !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.description-expand-proseMirror .ProseMirror-container {
|
|
29
|
+
max-height: 100%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.description-editor-proseMirror {
|
|
34
|
+
height: 20rem !important;
|
|
35
|
+
padding: 0 1.25rem;
|
|
36
|
+
.ProseMirror {
|
|
37
|
+
padding: 1rem 1.25rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.more-description-btn {
|
|
41
|
+
width: 44px;
|
|
42
|
+
line-height: 14px;
|
|
43
|
+
margin: auto;
|
|
44
|
+
color: #555;
|
|
45
|
+
text-align: center;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
.svg-inline--fa {
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.description-editor-footer {
|
|
52
|
+
padding: 0.75rem 1.25rem 0 1.25rem;
|
|
53
|
+
text-align: right;
|
|
54
|
+
.ant-btn {
|
|
55
|
+
margin-left: 10px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.document-label-control {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
color: #42526e;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
line-height: 1.714;
|
|
6
|
-
font-size: 1em;
|
|
7
|
-
font-weight: normal;
|
|
8
|
-
word-break: break-word;
|
|
9
|
-
background: rgba(9, 30, 66, 0.08);
|
|
10
|
-
border-radius: 20px;
|
|
11
|
-
padding: 0px 6px 2px 6px;
|
|
12
|
-
}
|
|
1
|
+
.document-label-control {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
color: #42526e;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
line-height: 1.714;
|
|
6
|
+
font-size: 1em;
|
|
7
|
+
font-weight: normal;
|
|
8
|
+
word-break: break-word;
|
|
9
|
+
background: rgba(9, 30, 66, 0.08);
|
|
10
|
+
border-radius: 20px;
|
|
11
|
+
padding: 0px 6px 2px 6px;
|
|
12
|
+
}
|
|
@@ -14,17 +14,17 @@ const CopyReference = (props) => {
|
|
|
14
14
|
function onClick() {
|
|
15
15
|
if (action)
|
|
16
16
|
return action();
|
|
17
|
-
const content = `
|
|
18
|
-
<p>
|
|
19
|
-
<span
|
|
20
|
-
data-file-id="${document.id}"
|
|
21
|
-
data-file-name="${document.name}"
|
|
22
|
-
class="prosemirror-mention-node"
|
|
23
|
-
contenteditable="false"
|
|
24
|
-
>
|
|
25
|
-
&${document.name}
|
|
26
|
-
</span>
|
|
27
|
-
</p>
|
|
17
|
+
const content = `
|
|
18
|
+
<p>
|
|
19
|
+
<span
|
|
20
|
+
data-file-id="${document.id}"
|
|
21
|
+
data-file-name="${document.name}"
|
|
22
|
+
class="prosemirror-mention-node"
|
|
23
|
+
contenteditable="false"
|
|
24
|
+
>
|
|
25
|
+
&${document.name}
|
|
26
|
+
</span>
|
|
27
|
+
</p>
|
|
28
28
|
`;
|
|
29
29
|
const type = "text/html";
|
|
30
30
|
const blob = new Blob([content], { type });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
.prosemirror-mention-node {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
color: @reference-color;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
line-height: unit((24/18), em);
|
|
8
|
-
word-break: break-word;
|
|
9
|
-
background: @reference-bg-color;
|
|
10
|
-
border-radius: @border-radius;
|
|
11
|
-
padding: unit((8/18), em);
|
|
12
|
-
margin-right: unit((8/18), em);
|
|
13
|
-
}
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.prosemirror-mention-node {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
color: @reference-color;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
line-height: unit((24/18), em);
|
|
8
|
+
word-break: break-word;
|
|
9
|
+
background: @reference-bg-color;
|
|
10
|
+
border-radius: @border-radius;
|
|
11
|
+
padding: unit((8/18), em);
|
|
12
|
+
margin-right: unit((8/18), em);
|
|
13
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
:global {
|
|
4
|
-
.content-container {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
|
|
9
|
-
> .buttons {
|
|
10
|
-
:hover {
|
|
11
|
-
color: @primary-color;
|
|
12
|
-
font-size: 1.05rem;
|
|
13
|
-
|
|
14
|
-
svg {
|
|
15
|
-
filter: drop-shadow(2px 2px 2px @primary-color);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
font-size: 1rem;
|
|
21
|
-
|
|
22
|
-
svg {
|
|
23
|
-
margin-left: 5px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:not(:hover) {
|
|
28
|
-
.edit-icon {
|
|
29
|
-
display: none;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.edit-icon {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
font-size: 1rem;
|
|
36
|
-
color: lightgray;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.content-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
|
|
9
|
+
> .buttons {
|
|
10
|
+
:hover {
|
|
11
|
+
color: @primary-color;
|
|
12
|
+
font-size: 1.05rem;
|
|
13
|
+
|
|
14
|
+
svg {
|
|
15
|
+
filter: drop-shadow(2px 2px 2px @primary-color);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
font-size: 1rem;
|
|
21
|
+
|
|
22
|
+
svg {
|
|
23
|
+
margin-left: 5px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:not(:hover) {
|
|
28
|
+
.edit-icon {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.edit-icon {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
color: lightgray;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.contact-item {
|
|
2
|
-
:global {
|
|
3
|
-
padding: 0 0 8px;
|
|
4
|
-
svg {
|
|
5
|
-
margin-right: 8px;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
.contact-item {
|
|
2
|
+
:global {
|
|
3
|
+
padding: 0 0 8px;
|
|
4
|
+
svg {
|
|
5
|
+
margin-right: 8px;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.zoom-select {
|
|
2
|
-
color: #000000a6;
|
|
3
|
-
:global {
|
|
4
|
-
.ant-select-arrow {
|
|
5
|
-
font-size: 12px;
|
|
6
|
-
color: #000000a6;
|
|
7
|
-
> span {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
}
|
|
11
|
-
.icon-down {
|
|
12
|
-
margin-top: -4px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
.zoom-select {
|
|
2
|
+
color: #000000a6;
|
|
3
|
+
:global {
|
|
4
|
+
.ant-select-arrow {
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
color: #000000a6;
|
|
7
|
+
> span {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
.icon-down {
|
|
12
|
+
margin-top: -4px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
:global {
|
|
4
|
-
.pdf-viewer-toolbar {
|
|
5
|
-
border: 1px @border-style-base @border-color-split;
|
|
6
|
-
//border-bottom: none;
|
|
7
|
-
padding: 0.65rem;
|
|
8
|
-
background-color: white;
|
|
9
|
-
z-index: 1;
|
|
10
|
-
color: lightgray;
|
|
11
|
-
&.sticky {
|
|
12
|
-
position: sticky;
|
|
13
|
-
top: -1px;
|
|
14
|
-
left: 0;
|
|
15
|
-
&.sticky-active {
|
|
16
|
-
box-shadow: 0 8px 6px -6px lightgray;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.toolbar-button {
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
padding: 3px 5px;
|
|
23
|
-
|
|
24
|
-
svg:hover,
|
|
25
|
-
svg.active {
|
|
26
|
-
color: #40a9ff;
|
|
27
|
-
}
|
|
28
|
-
svg.disable {
|
|
29
|
-
color: #cecece;
|
|
30
|
-
}
|
|
31
|
-
span.active {
|
|
32
|
-
color: #40a9ff;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.pdf-viewer-toolbar {
|
|
5
|
+
border: 1px @border-style-base @border-color-split;
|
|
6
|
+
//border-bottom: none;
|
|
7
|
+
padding: 0.65rem;
|
|
8
|
+
background-color: white;
|
|
9
|
+
z-index: 1;
|
|
10
|
+
color: lightgray;
|
|
11
|
+
&.sticky {
|
|
12
|
+
position: sticky;
|
|
13
|
+
top: -1px;
|
|
14
|
+
left: 0;
|
|
15
|
+
&.sticky-active {
|
|
16
|
+
box-shadow: 0 8px 6px -6px lightgray;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.toolbar-button {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
padding: 3px 5px;
|
|
23
|
+
|
|
24
|
+
svg:hover,
|
|
25
|
+
svg.active {
|
|
26
|
+
color: #40a9ff;
|
|
27
|
+
}
|
|
28
|
+
svg.disable {
|
|
29
|
+
color: #cecece;
|
|
30
|
+
}
|
|
31
|
+
span.active {
|
|
32
|
+
color: #40a9ff;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
|
-
import "react-pdf/dist/
|
|
2
|
+
import "react-pdf/dist/esm/Page/AnnotationLayer.css";
|
|
3
|
+
import "react-pdf/dist/esm/Page/TextLayer.css";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { PDFViewerProps } from "./props";
|
|
5
6
|
declare const PDFViewer: (props: PDFViewerProps) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
|
-
import "react-pdf/dist/
|
|
2
|
+
import "react-pdf/dist/esm/Page/AnnotationLayer.css"; // this css is needed to avoid text layer misalignment issue 1 Sep 2022
|
|
3
|
+
import "react-pdf/dist/esm/Page/TextLayer.css";
|
|
3
4
|
import { Document, Page, pdfjs } from "react-pdf";
|
|
4
5
|
import { PDFViewerContext, PDFViewerState } from "./state";
|
|
5
6
|
import React, { useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/PDFViewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,6CAA6C,CAAC,CAAC,uEAAuE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/PDFViewer/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.pdf-viewer {
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
.panable > .dragable {
|
|
7
|
-
//cursor: auto;
|
|
8
|
-
user-select: unset;
|
|
9
|
-
}
|
|
10
|
-
.react-pdf__Page__textContent {
|
|
11
|
-
span {
|
|
12
|
-
cursor: text;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.react-pdf__Page__canvas {
|
|
17
|
-
margin-left: auto;
|
|
18
|
-
margin-right: auto;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.pdf-viewer {
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
.panable > .dragable {
|
|
7
|
+
//cursor: auto;
|
|
8
|
+
user-select: unset;
|
|
9
|
+
}
|
|
10
|
+
.react-pdf__Page__textContent {
|
|
11
|
+
span {
|
|
12
|
+
cursor: text;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.react-pdf__Page__canvas {
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
margin-right: auto;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
.properties-section {
|
|
2
|
-
:global {
|
|
3
|
-
.properties-section-header {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
padding-right: 7px;
|
|
8
|
-
|
|
9
|
-
.properties-section-title {
|
|
10
|
-
font-size: 1.22222222em;
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.properties-section-icon {
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.prperties-content {
|
|
20
|
-
&.show {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
.properties-section {
|
|
2
|
+
:global {
|
|
3
|
+
.properties-section-header {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
padding-right: 7px;
|
|
8
|
+
|
|
9
|
+
.properties-section-title {
|
|
10
|
+
font-size: 1.22222222em;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.properties-section-icon {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.prperties-content {
|
|
20
|
+
&.show {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
:global {
|
|
4
|
-
.reference-list {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
> .buttons {
|
|
10
|
-
:hover {
|
|
11
|
-
color: @primary-color;
|
|
12
|
-
font-size: 1.05rem;
|
|
13
|
-
|
|
14
|
-
svg {
|
|
15
|
-
filter: drop-shadow(2px 2px 2px @primary-color);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
font-size: 1rem;
|
|
21
|
-
|
|
22
|
-
svg {
|
|
23
|
-
margin-left: 5px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:not(:hover) {
|
|
28
|
-
.edit-icon {
|
|
29
|
-
display: none;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.edit-icon {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
font-size: 1rem;
|
|
36
|
-
color: lightgray;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.prosemirror-mention-node {
|
|
42
|
-
display: inline-block;
|
|
43
|
-
color: @reference-color;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
line-height: unit((24/18), em);
|
|
46
|
-
word-break: break-word;
|
|
47
|
-
background: @reference-bg-color;
|
|
48
|
-
border-radius: @border-radius;
|
|
49
|
-
padding: unit((8/18), em);
|
|
50
|
-
margin-right: unit((8/18), em);
|
|
51
|
-
margin-bottom: unit((8/18), em);
|
|
52
|
-
}
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.reference-list {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
> .buttons {
|
|
10
|
+
:hover {
|
|
11
|
+
color: @primary-color;
|
|
12
|
+
font-size: 1.05rem;
|
|
13
|
+
|
|
14
|
+
svg {
|
|
15
|
+
filter: drop-shadow(2px 2px 2px @primary-color);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
font-size: 1rem;
|
|
21
|
+
|
|
22
|
+
svg {
|
|
23
|
+
margin-left: 5px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:not(:hover) {
|
|
28
|
+
.edit-icon {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.edit-icon {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
color: lightgray;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.prosemirror-mention-node {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
color: @reference-color;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
line-height: unit((24/18), em);
|
|
46
|
+
word-break: break-word;
|
|
47
|
+
background: @reference-bg-color;
|
|
48
|
+
border-radius: @border-radius;
|
|
49
|
+
padding: unit((8/18), em);
|
|
50
|
+
margin-right: unit((8/18), em);
|
|
51
|
+
margin-bottom: unit((8/18), em);
|
|
52
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.realted-document {
|
|
2
|
-
padding: 20px 20px;
|
|
3
|
-
margin: -20px 0;
|
|
4
|
-
background: #F5F9FC;
|
|
5
|
-
|
|
6
|
-
:global {
|
|
7
|
-
.list-view-header {
|
|
8
|
-
background-color: #fff;
|
|
9
|
-
border-bottom: 1px solid #e6e6e6 !important;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
.realted-document {
|
|
2
|
+
padding: 20px 20px;
|
|
3
|
+
margin: -20px 0;
|
|
4
|
+
background: #F5F9FC;
|
|
5
|
+
|
|
6
|
+
:global {
|
|
7
|
+
.list-view-header {
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border-bottom: 1px solid #e6e6e6 !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
}
|