@voplus/morpho-document 1.0.0-dev326 → 1.0.0-dev328
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/Links/index.less +111 -111
- package/es/controls/data-icons/DocumentDataIcon/index.d.ts +1 -0
- package/es/controls/data-icons/DocumentDataIcon/index.js +6 -3
- package/es/controls/data-icons/DocumentDataIcon/index.js.map +1 -1
- package/es/controls/data-icons/DocumentDataIcon/index.less +22 -0
- package/es/pages/Signature/data/EnvelopeContext.d.ts +1 -1
- package/es/pages/Signature/data/EnvelopeContext.js +1 -1
- package/es/pages/Signature/data/EnvelopeContext.js.map +1 -1
- package/es/pages/Signature/data/envelope/EnvelopeStore.js +2 -2
- package/es/pages/Signature/data/envelope/EnvelopeStore.js.map +1 -1
- package/es/services/SignActivityLogRenderer.d.ts +3 -0
- package/es/services/SignActivityLogRenderer.js +21 -0
- package/es/services/SignActivityLogRenderer.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
.reference-view {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
height: 100%;
|
|
6
|
-
:global {
|
|
7
|
-
.reference-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
margin: 5px 20px 0 20px;
|
|
10
|
-
.multiple-remove {
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
color: #000;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
.ant-btn {
|
|
15
|
-
padding: 0 10px 0 0;
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
.multiple-remove-btn {
|
|
20
|
-
.ant-btn {
|
|
21
|
-
padding: 0 10px;
|
|
22
|
-
font-style: italic;
|
|
23
|
-
}
|
|
24
|
-
.del-btn {
|
|
25
|
-
color: #ff4d4f;
|
|
26
|
-
&:hover {
|
|
27
|
-
color: #ff7875;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.cancel-btn {
|
|
31
|
-
color: #666;
|
|
32
|
-
&:hover {
|
|
33
|
-
color: @primary-color;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.plus-icon {
|
|
38
|
-
display: inline-block;
|
|
39
|
-
padding: 4px;
|
|
40
|
-
margin-left: 10px;
|
|
41
|
-
font-size: 13px;
|
|
42
|
-
line-height: 1px;
|
|
43
|
-
background: #1abc9c;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.reference-view-page {
|
|
48
|
-
display: block;
|
|
49
|
-
}
|
|
50
|
-
.reference-item {
|
|
51
|
-
display: flex;
|
|
52
|
-
position: relative;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
align-items: center;
|
|
55
|
-
padding: 5px 20px;
|
|
56
|
-
&:hover {
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
.reference-item-content {
|
|
59
|
-
opacity: 0.4;
|
|
60
|
-
}
|
|
61
|
-
.reference-status-none {
|
|
62
|
-
display: none;
|
|
63
|
-
}
|
|
64
|
-
.hover-operate-icon {
|
|
65
|
-
display: block;
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.reference-item-content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
color: #000;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
.reference-content {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex: 1;
|
|
76
|
-
.type-icon {
|
|
77
|
-
font-size: 15px;
|
|
78
|
-
padding-right: 10px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.task-item-name.task-item-name_done {
|
|
82
|
-
color: #a8a8a8;
|
|
83
|
-
}
|
|
84
|
-
.task-control {
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
padding: 5px 0;
|
|
88
|
-
font-size: 13px;
|
|
89
|
-
color: #444;
|
|
90
|
-
font-weight: normal;
|
|
91
|
-
> span + span {
|
|
92
|
-
margin-left: 15px;
|
|
93
|
-
}
|
|
94
|
-
.svg-inline--fa {
|
|
95
|
-
margin-right: 5px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.hover-operate-icon {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.ant-empty {
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
.ant-empty-image {
|
|
107
|
-
height: 35px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
.reference-view {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
:global {
|
|
7
|
+
.reference-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
margin: 5px 20px 0 20px;
|
|
10
|
+
.multiple-remove {
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
color: #000;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
.ant-btn {
|
|
15
|
+
padding: 0 10px 0 0;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.multiple-remove-btn {
|
|
20
|
+
.ant-btn {
|
|
21
|
+
padding: 0 10px;
|
|
22
|
+
font-style: italic;
|
|
23
|
+
}
|
|
24
|
+
.del-btn {
|
|
25
|
+
color: #ff4d4f;
|
|
26
|
+
&:hover {
|
|
27
|
+
color: #ff7875;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.cancel-btn {
|
|
31
|
+
color: #666;
|
|
32
|
+
&:hover {
|
|
33
|
+
color: @primary-color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.plus-icon {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
padding: 4px;
|
|
40
|
+
margin-left: 10px;
|
|
41
|
+
font-size: 13px;
|
|
42
|
+
line-height: 1px;
|
|
43
|
+
background: #1abc9c;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.reference-view-page {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
.reference-item {
|
|
51
|
+
display: flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 5px 20px;
|
|
56
|
+
&:hover {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
.reference-item-content {
|
|
59
|
+
opacity: 0.4;
|
|
60
|
+
}
|
|
61
|
+
.reference-status-none {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
.hover-operate-icon {
|
|
65
|
+
display: block;
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.reference-item-content {
|
|
70
|
+
flex: 1;
|
|
71
|
+
color: #000;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
.reference-content {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex: 1;
|
|
76
|
+
.type-icon {
|
|
77
|
+
font-size: 15px;
|
|
78
|
+
padding-right: 10px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.task-item-name.task-item-name_done {
|
|
82
|
+
color: #a8a8a8;
|
|
83
|
+
}
|
|
84
|
+
.task-control {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 5px 0;
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
color: #444;
|
|
90
|
+
font-weight: normal;
|
|
91
|
+
> span + span {
|
|
92
|
+
margin-left: 15px;
|
|
93
|
+
}
|
|
94
|
+
.svg-inline--fa {
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.hover-operate-icon {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.ant-empty {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
.ant-empty-image {
|
|
107
|
+
height: 35px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import "./index.less";
|
|
1
2
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
3
|
+
import DocumentList from "../../../components/DocumentList";
|
|
2
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import { Popover } from "@voplus/antd";
|
|
3
6
|
import React from "react";
|
|
4
|
-
import { Tooltip } from "@voplus/antd";
|
|
5
7
|
import { faPaperclip } from "@fortawesome/pro-light-svg-icons";
|
|
6
8
|
import { useDataIconBarContext } from "../../../controls/DataIconBar/DataIconState";
|
|
7
9
|
import { useObserver } from "mobx-react-lite";
|
|
@@ -10,8 +12,9 @@ const DocumentDataIcon = (props) => {
|
|
|
10
12
|
const context = useDataIconBarContext();
|
|
11
13
|
// const state = context.getState("DocumentDataIcon", () => new State());
|
|
12
14
|
const document = useDocument(id, { includes });
|
|
13
|
-
return useObserver(() => (React.createElement(
|
|
14
|
-
|
|
15
|
+
return useObserver(() => (React.createElement(Popover, { placement: "bottom", title: "Documents", overlayClassName: "documents-data-icon_popover", content: React.createElement("div", { className: "documents-container" },
|
|
16
|
+
React.createElement(DocumentList, { id: id, header: false, disabled: true, type: "drive" })) },
|
|
17
|
+
React.createElement("span", { className: "data-icon" },
|
|
15
18
|
React.createElement(FAIcon, { icon: faPaperclip }),
|
|
16
19
|
(document.documents || 0) > (document.taskNumbers || 0)
|
|
17
20
|
? (document.documents || 0) - (document.taskNumbers || 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/data-icons/DocumentDataIcon/index.tsx"],"names":[],"mappings":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AAS,EAAC,WAAW;YAC1B,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;YAC5B,CAAC,QAAQ,CAAC,SAAU,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,IAAI,CAAC,CAAC;gBACxD,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAU,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,IAAI,CAAC,CAAC;gBAC1D,CAAC,CAAC,CAAC,CACE,CACE,CACV,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.documents-data-icon_popover {
|
|
3
|
+
.ant-popover-inner-content {
|
|
4
|
+
padding: 0;
|
|
5
|
+
.documents-container {
|
|
6
|
+
width: 300px;
|
|
7
|
+
height: 30vh;
|
|
8
|
+
.item-frame {
|
|
9
|
+
> div {
|
|
10
|
+
margin: 0 10px;
|
|
11
|
+
}
|
|
12
|
+
.file-name {
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
}
|
|
15
|
+
.document-content-control{
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -19,7 +19,7 @@ export declare class EnvelopeContextState {
|
|
|
19
19
|
union(list: ILetter[]): void;
|
|
20
20
|
remove(id: string): void;
|
|
21
21
|
reload(): Promise<void>;
|
|
22
|
-
resetData(letters: ILetter[]):
|
|
22
|
+
resetData(letters: ILetter[]): void;
|
|
23
23
|
get letters(): readonly ILetter[];
|
|
24
24
|
/** loading of reload envelope to update letters and file */
|
|
25
25
|
loading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvelopeContext.js","sourceRoot":"","sources":["../../../../src/pages/Signature/data/EnvelopeContext.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MA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AAC,MAAM;;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE;YAAE,OAAO;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,MAAM,CAAC,GAAG,aAAM,IAAI,CAAC,KAAK,0CAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAC,CAAC;QAC5D,IAAI,CAAC;YAAE,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC;IAGM,SAAS,CAAC,OAAkB;QAClC,IAAI,CAAC,KAAK,GAAG,OAAO,IAAI,EAAE,CAAC;IAC5B,CAAC;IAES,IAAI,OAAO;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;CAWD;AAnEA;IADC,UAAU;oDAC6C;AAK5C;IAAX,UAAU;mDAA+B;AAe1C;IAFC,MAAM;iDASN;AAID;IAFC,MAAM;kDAQN;AAID;IAFC,MAAM;kDAQN;AAGD;IADC,MAAM;qDAGN;AAES;IAAT,QAAQ;mDAER;AAGW;IAAX,UAAU;qDAAwB;AAEvB;IAAX,UAAU;yDAA4B;AAE3B;IAAX,UAAU;6DAAgC;AAG/B;IAAX,UAAU;2DAA8B;AAG1C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAuB,IAAW,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -17,13 +17,13 @@ export class EnvelopeStore extends DocumentTypeStore {
|
|
|
17
17
|
}
|
|
18
18
|
/** invite */
|
|
19
19
|
async invite(id, options) {
|
|
20
|
-
this.action(async () => {
|
|
20
|
+
await this.action(async () => {
|
|
21
21
|
await this.endpoint.post(`/api/envelope/${id}/invite`);
|
|
22
22
|
}, options);
|
|
23
23
|
}
|
|
24
24
|
/** remind */
|
|
25
25
|
async remind(id, options) {
|
|
26
|
-
this.action(async () => {
|
|
26
|
+
await this.action(async () => {
|
|
27
27
|
await this.endpoint.post(`/api/envelope/${id}/remind-all`);
|
|
28
28
|
}, options);
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvelopeStore.js","sourceRoot":"","sources":["../../../../../src/pages/Signature/data/envelope/EnvelopeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAGN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAsB,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAKnE,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,OAAO,aAAc,SAAQ,iBAOlC;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC;QAJ7C,wBAAwB;QACR,SAAI,GAAW,SAAS,CAAC;IAIzC,CAAC;IAED,6BAA6B;IACtB,KAAK,CAAC,SAAS,CACrB,EAAU,EACV,QAAgB,EAChB,WAAmB,EACnB,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,iBAAiB,EAAE,IAAI,QAAQ,IAAI,WAAW,EAAE,EAChD,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CACvC,CAAC;YACF,OAAO,CAAC,CAAC;QACV,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IAED,aAAa;IACN,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAA2B;QAC1D,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"EnvelopeStore.js","sourceR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C5B,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC5D,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IAED,gCAAgC;IACzB,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,QAAgB;QACjD,gBAAgB;QAChB,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,IAAI,QAAQ,uBAAuB,CAAC,CAAC;QAC1F,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACjB,CAAC;IACD,MAAM;IACC,KAAK,CAAC,MAAM,CAClB,EAAU,EACV,QAAgB,EAChB,MAAc,EACd,OAA8C;QAE9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAC9B,iBAAiB,EAAE,IAAI,QAAQ,IAAI,MAAM,SAAS,EAClD,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CACvC,CAAC;QACH,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;CACD;AAED,uBAAuB;AACvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,QAAQ,CACd,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CACtE,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ActivityRenderer } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService/ActivityRenderer";
|
|
2
|
+
import { IActivityLog } from "@voplus/morpho-document-core";
|
|
2
3
|
import { IDocumentIconService } from "@voplus/morpho-document-core/es/services/DocumentIconService";
|
|
4
|
+
import { LogRenderOptions } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService";
|
|
3
5
|
import React from "react";
|
|
4
6
|
export declare const ActivityActionType: {
|
|
5
7
|
Sent: string;
|
|
@@ -12,5 +14,6 @@ declare class SignActivityLogRenderer extends ActivityRenderer {
|
|
|
12
14
|
icon: React.ReactNode;
|
|
13
15
|
color: string;
|
|
14
16
|
};
|
|
17
|
+
protected Log(item: IActivityLog, options?: LogRenderOptions): JSX.Element;
|
|
15
18
|
}
|
|
16
19
|
export default SignActivityLogRenderer;
|
|
@@ -2,6 +2,7 @@ import { faEnvelope, faSignature } from "@fortawesome/pro-light-svg-icons";
|
|
|
2
2
|
import { ActivityRenderer } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService/ActivityRenderer";
|
|
3
3
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import React from "react";
|
|
5
|
+
import moment from "moment";
|
|
5
6
|
export const ActivityActionType = {
|
|
6
7
|
Sent: "Sent",
|
|
7
8
|
Signed: "Signed",
|
|
@@ -23,6 +24,26 @@ class SignActivityLogRenderer extends ActivityRenderer {
|
|
|
23
24
|
}
|
|
24
25
|
return super.getActionIconInfo(action);
|
|
25
26
|
}
|
|
27
|
+
Log(item, options) {
|
|
28
|
+
var _a;
|
|
29
|
+
switch (item.action) {
|
|
30
|
+
case ActivityActionType.Sent:
|
|
31
|
+
return (React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement("div", null,
|
|
33
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
34
|
+
React.createElement("span", { className: "action" }, "Invited "),
|
|
35
|
+
"others"),
|
|
36
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
37
|
+
case ActivityActionType.Signed:
|
|
38
|
+
return (React.createElement(React.Fragment, null,
|
|
39
|
+
React.createElement("div", null,
|
|
40
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
41
|
+
React.createElement("span", { className: "action" }, "Signed "),
|
|
42
|
+
React.createElement("span", null, (_a = item.propertyObjects) === null || _a === void 0 ? void 0 : _a[0].name)),
|
|
43
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
44
|
+
}
|
|
45
|
+
return super.Log(item, options);
|
|
46
|
+
}
|
|
26
47
|
}
|
|
27
48
|
export default SignActivityLogRenderer;
|
|
28
49
|
//# sourceMappingURL=SignActivityLogRenderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignActivityLogRenderer.js","sourceRoot":"","sources":["../../src/services/SignActivityLogRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oFAAoF,CAAC;AACtH,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"SignActivityLogRenderer.js","sourceRoot":"","sources":["../../src/services/SignActivityLogRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oFAAoF,CAAC;AACtH,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAI3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,uBAAwB,SAAQ,gBAAgB;IACrD,YAA6B,KAA2B;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;QADe,UAAK,GAAL,KAAK,CAAsB;I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C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAQ;wBAC/E,8BAAM,SAAS,EAAC,QAAQ,cAAe;wBACvC,wCAAO,IAAI,CAAC,eAAe,0CAAG,CAAC,EAAE,IAAI,CAAQ,CACxC;oBAGN,2BAAG,SAAS,EAAC,WAAW,IACtB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CACjE,CACY,CACjB,CAAC;SACH;QACD,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;CACD;AAED,eAAe,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-document",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-dev328",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/react-signature-canvas": "^1.0.1",
|
|
52
52
|
"@types/react-sortable-tree": "^0.3.12",
|
|
53
53
|
"@types/react-test-renderer": "^16.9.2",
|
|
54
|
-
"@types/resize-observer-browser": "^0.1.
|
|
54
|
+
"@types/resize-observer-browser": "^0.1.5",
|
|
55
55
|
"@types/string": "0.0.30",
|
|
56
56
|
"@voplus/antd": "^4.6.1-vo1.0.2",
|
|
57
57
|
"@voplus/morpho-client-test": "^1.0.0-dev020",
|