@voplus/morpho-csp 1.3.7 → 1.3.8

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.
Files changed (81) hide show
  1. package/es/components/CorporateMentionList/index.d.ts +32 -0
  2. package/es/components/CorporateMentionList/index.js +30 -0
  3. package/es/components/CorporateMentionList/index.js.map +1 -0
  4. package/es/components/CorporateMentionList/index.less +51 -0
  5. package/es/components/DragTableRow/index.d.ts +1 -1
  6. package/es/components/TableDragRow/index.d.ts +1 -1
  7. package/es/data/clda-form/interfaces.d.ts +8 -0
  8. package/es/data/clda-form/types.d.ts +8 -0
  9. package/es/data/share-certificate/ShareCertificateStore.d.ts +14 -0
  10. package/es/data/share-certificate/ShareCertificateStore.js +35 -0
  11. package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
  12. package/es/data/share-certificate/interfaces.d.ts +4 -1
  13. package/es/data/share-certificate/metas.js +2 -2
  14. package/es/data/share-certificate/metas.js.map +1 -1
  15. package/es/data/share-certificate/types.d.ts +1 -1
  16. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +9 -4
  17. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
  18. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +6 -3
  19. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +2 -0
  20. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
  21. package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.d.ts +9 -0
  22. package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js +35 -0
  23. package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js.map +1 -0
  24. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +85 -54
  25. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
  26. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +19 -2
  27. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
  28. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +11 -4
  29. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
  30. package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +2 -2
  31. package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +6 -1
  32. package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -1
  33. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.d.ts +11 -5
  34. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +21 -2
  35. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
  36. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.less +41 -0
  37. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.d.ts +8 -0
  38. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js +32 -0
  39. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map +1 -0
  40. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.d.ts +8 -0
  41. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js +52 -0
  42. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js.map +1 -0
  43. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.d.ts +8 -0
  44. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js +52 -0
  45. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js.map +1 -0
  46. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.d.ts +8 -0
  47. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js +36 -0
  48. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js.map +1 -0
  49. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.d.ts +8 -0
  50. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js +18 -0
  51. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js.map +1 -0
  52. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.d.ts +8 -0
  53. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js +32 -0
  54. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map +1 -0
  55. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +6 -0
  56. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +6 -0
  57. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -1
  58. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js +6 -1
  59. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map +1 -1
  60. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +18 -28
  61. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.d.ts +5 -0
  62. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js +11 -0
  63. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js.map +1 -0
  64. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.d.ts +7 -0
  65. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.js +20 -0
  66. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.js.map +1 -0
  67. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +27 -24
  68. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -1
  69. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.d.ts +7 -0
  70. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.js +20 -0
  71. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.js.map +1 -0
  72. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +9 -9
  73. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
  74. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +17 -15
  75. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
  76. package/es/modules/self-registration/clda-form/components/SecretaryList/state.d.ts +4 -0
  77. package/es/modules/self-registration/clda-form/components/SecretaryList/state.js +10 -1
  78. package/es/modules/self-registration/clda-form/components/SecretaryList/state.js.map +1 -1
  79. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +7 -5
  80. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
  81. package/package.json +1 -1
@@ -0,0 +1,52 @@
1
+ import React, { useState } from "react";
2
+ import { Button } from "@voplus/antd";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { useDocumentMenuContext } from "@voplus/morpho-document-core";
7
+ import { useSigneeRefreshContext } from "../../../pages/ShareCertificateDefaultView/SigneeRefreshContext";
8
+ import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
9
+ import DeleteSignatureDialog from "../../../components/DeleteSignatureDialog";
10
+ const DeleteSignee1 = (props) => {
11
+ const { disabled, action } = props;
12
+ const signeeRefresh = useSigneeRefreshContext();
13
+ const context = useDocumentMenuContext();
14
+ const shareCertificate = useShareCertificate(context.id, {
15
+ reload: true,
16
+ includes: "qr,signatures",
17
+ });
18
+ const store = useShareCertificateStore();
19
+ const [visible, setVisible] = useState(false);
20
+ return observe(() => {
21
+ var _a, _b;
22
+ return (React.createElement(React.Fragment, null,
23
+ ((_a = shareCertificate.signee1) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
24
+ React.createElement(FAIcon, { icon: faTrashAlt }),
25
+ React.createElement("span", null,
26
+ "Delete ", (_b = shareCertificate.signee1) === null || _b === void 0 ? void 0 :
27
+ _b.name))) : null,
28
+ visible && (React.createElement(DeleteSignatureDialog, { signee: 1, shareCertificate: shareCertificate, onCancel: () => setVisible(false), onSubmit: (reason) => {
29
+ var _a;
30
+ return store
31
+ .revokeSignature(context.id, {
32
+ data: { SigneeId: (_a = shareCertificate.signee1) === null || _a === void 0 ? void 0 : _a.id, Reason: reason },
33
+ error: "message",
34
+ })
35
+ .then(() => {
36
+ setVisible(false);
37
+ onReload();
38
+ });
39
+ } }))));
40
+ });
41
+ function onReload() {
42
+ signeeRefresh.refresh = false;
43
+ setTimeout(() => {
44
+ signeeRefresh.refresh = true;
45
+ }, 100);
46
+ }
47
+ function onClick() {
48
+ setVisible(true);
49
+ }
50
+ };
51
+ export default DeleteSignee1;
52
+ //# sourceMappingURL=DeleteSignee1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteSignee1.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA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OAAO,CAAC,EAAE,EAAE;wBAC5B,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAA,gBAAgB,CAAC,OAAO,0CAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;wBAChE,KAAK,EAAE,SAAS;qBAChB,CAAC;yBACD,IAAI,CAAC,GAAG,EAAE;wBACV,UAAU,CAAC,KAAK,CAAC,CAAC;wBAClB,QAAQ,EAAE,CAAC;oBACZ,CAAC,CAAC,CAAA;iBAAA,GAEH,CACF,CACC,CACH,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;QAC9B,UAAU,CAAC,GAAG,EAAE;YACf,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;QAC9B,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,OAAO;QACf,UAAU,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const DeleteSignee2: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default DeleteSignee2;
@@ -0,0 +1,52 @@
1
+ import React, { useState } from "react";
2
+ import { Button } from "@voplus/antd";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { useDocumentMenuContext } from "@voplus/morpho-document-core";
7
+ import { useSigneeRefreshContext } from "../../../pages/ShareCertificateDefaultView/SigneeRefreshContext";
8
+ import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
9
+ import DeleteSignatureDialog from "../../../components/DeleteSignatureDialog";
10
+ const DeleteSignee2 = (props) => {
11
+ const { disabled, action } = props;
12
+ const context = useDocumentMenuContext();
13
+ const signeeRefresh = useSigneeRefreshContext();
14
+ const shareCertificate = useShareCertificate(context.id, {
15
+ reload: true,
16
+ includes: "qr,signatures",
17
+ });
18
+ const store = useShareCertificateStore();
19
+ const [visible, setVisible] = useState(false);
20
+ return observe(() => {
21
+ var _a, _b;
22
+ return (React.createElement(React.Fragment, null,
23
+ ((_a = shareCertificate.signee2) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
24
+ React.createElement(FAIcon, { icon: faTrashAlt }),
25
+ React.createElement("span", null,
26
+ "Delete ", (_b = shareCertificate.signee2) === null || _b === void 0 ? void 0 :
27
+ _b.name))) : null,
28
+ visible && (React.createElement(DeleteSignatureDialog, { signee: 2, shareCertificate: shareCertificate, onCancel: () => setVisible(false), onSubmit: (reason) => {
29
+ var _a;
30
+ return store
31
+ .revokeSignature(context.id, {
32
+ data: { SigneeId: (_a = shareCertificate.signee2) === null || _a === void 0 ? void 0 : _a.id, Reason: reason },
33
+ error: "message",
34
+ })
35
+ .then(() => {
36
+ setVisible(false);
37
+ onReload();
38
+ });
39
+ } }))));
40
+ });
41
+ function onReload() {
42
+ signeeRefresh.refresh = false;
43
+ setTimeout(() => {
44
+ signeeRefresh.refresh = true;
45
+ }, 100);
46
+ }
47
+ function onClick() {
48
+ setVisible(true);
49
+ }
50
+ };
51
+ export default DeleteSignee2;
52
+ //# sourceMappingURL=DeleteSignee2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteSignee2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,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ClC,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;oBACpB,OAAA,KAAK;yBACH,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;wBAC5B,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAA,gBAAgB,CAAC,OAAO,0CAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;wBAChE,KAAK,EAAE,SAAS;qBAChB,CAAC;yBACD,IAAI,CAAC,GAAG,EAAE;wBACV,UAAU,CAAC,KAAK,CAAC,CAAC;wBAClB,QAAQ,EAAE,CAAC;oBACZ,CAAC,CAAC,CAAA;iBAAA,GAEH,CACF,CACC,CACH,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;QAC9B,UAAU,CAAC,GAAG,EAAE;YACf,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;QAC9B,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,OAAO;QACf,UAAU,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const Issue: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default Issue;
@@ -0,0 +1,36 @@
1
+ import React, { useState } from "react";
2
+ import { Button, Modal } from "@voplus/antd";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import { faUpFromLine } from "@fortawesome/pro-light-svg-icons";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { useDocumentMenuContext } from "@voplus/morpho-document-core";
7
+ import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
8
+ const Issue = (props) => {
9
+ const { disabled, action } = props;
10
+ const context = useDocumentMenuContext();
11
+ const store = useShareCertificateStore();
12
+ const shareCertificate = useShareCertificate(context.id);
13
+ const [visible, setVisible] = useState(false);
14
+ const config = {
15
+ title: "Issue ?",
16
+ maskClosable: true,
17
+ onOk: () => store.issue(context.id, { error: "message" }),
18
+ };
19
+ return observe(() => menuVisible() ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => Modal.confirm(config) },
20
+ React.createElement(FAIcon, { icon: faUpFromLine }),
21
+ React.createElement("span", null, "Issue"))) : null);
22
+ function menuVisible() {
23
+ if (shareCertificate.signee1 && shareCertificate.signee2) {
24
+ shareCertificate.signature1 && shareCertificate.signature2 && setVisible(true);
25
+ }
26
+ else if (shareCertificate.signee1) {
27
+ shareCertificate.signature1 && setVisible(true);
28
+ }
29
+ else if (shareCertificate.signee2) {
30
+ shareCertificate.signature2 && setVisible(true);
31
+ }
32
+ return visible;
33
+ }
34
+ };
35
+ export default Issue;
36
+ //# sourceMappingURL=Issue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Issue.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAElD,MAAM,KAAK,GAAG,CAAC,KAKd,EAAE,EAAE;IACJ,MAAM,EAA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IAChB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const RefreshDetails: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default RefreshDetails;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { Button } from "@voplus/antd";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import { faArrowRotateRight } from "@fortawesome/pro-light-svg-icons";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { useDocumentMenuContext } from "@voplus/morpho-document-core";
7
+ import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
8
+ const RefreshDetails = (props) => {
9
+ const { disabled, action } = props;
10
+ const context = useDocumentMenuContext();
11
+ const store = useShareCertificateStore();
12
+ const shareCertificate = useShareCertificate(context.id);
13
+ return observe(() => shareCertificate.certificateStatus === "Draft" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => store.refreshDetails(context.id, { error: "message" }) },
14
+ React.createElement(FAIcon, { icon: faArrowRotateRight }),
15
+ React.createElement("span", null, "Refresh Details"))) : null);
16
+ };
17
+ export default RefreshDetails;
18
+ //# sourceMappingURL=RefreshDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshDetails.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAElD,MAAM,cAAc,GAAG,CAAC,KAKvB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IACzC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzD,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,gBAAgB,CAAC,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAChD,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAErE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;QACpC,oDAA4B,CACpB,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const UndoCancel: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default UndoCancel;
@@ -0,0 +1,32 @@
1
+ import React, { useState } from "react";
2
+ import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
3
+ import { useDocumentMenuContext } from "@voplus/morpho-document-core";
4
+ import { Button } from "@voplus/antd";
5
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
+ import { faTrashCanUndo } from "@fortawesome/pro-light-svg-icons";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import InputTextDialog from "@voplus/morpho-ui/es/components/InputTextDialog";
9
+ const UndoCancel = (props) => {
10
+ const { disabled, action } = props;
11
+ const context = useDocumentMenuContext();
12
+ const shareCertificate = useShareCertificate(context.id);
13
+ const store = useShareCertificateStore();
14
+ const [visible, setVisible] = useState(false);
15
+ return observe(() => (React.createElement(React.Fragment, null,
16
+ shareCertificate.certificateStatus === "Cancelled" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
17
+ React.createElement(FAIcon, { icon: faTrashCanUndo }),
18
+ React.createElement("span", null, "Undo Cancel"))) : null,
19
+ visible && (React.createElement(InputTextDialog, { modalProps: {
20
+ visible,
21
+ title: "Undo Cancel Dialog",
22
+ okText: "Submit",
23
+ onCancel: () => setVisible(false),
24
+ }, onSubmit: (text) => store
25
+ .undoCancel(context.id, { Reason: text, error: "message" })
26
+ .then(() => setVisible(false)) })))));
27
+ function onClick() {
28
+ setVisible(true);
29
+ }
30
+ };
31
+ export default UndoCancel;
32
+ //# sourceMappingURL=UndoCancel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoCancel.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AA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U,CAAC"}
@@ -1,2 +1,8 @@
1
1
  export { default as SendToSignee } from "./SendToSignee";
2
2
  export { default as SendToShareholder } from "./SendToShareholder";
3
+ export { default as Issue } from "./Issue";
4
+ export { default as Cancel } from "./Cancel";
5
+ export { default as UndoCancel } from "./UndoCancel";
6
+ export { default as DeleteSignee1 } from "./DeleteSignee1";
7
+ export { default as DeleteSignee2 } from "./DeleteSignee2";
8
+ export { default as RefreshDetails } from "./RefreshDetails";
@@ -1,3 +1,9 @@
1
1
  export { default as SendToSignee } from "./SendToSignee";
2
2
  export { default as SendToShareholder } from "./SendToShareholder";
3
+ export { default as Issue } from "./Issue";
4
+ export { default as Cancel } from "./Cancel";
5
+ export { default as UndoCancel } from "./UndoCancel";
6
+ export { default as DeleteSignee1 } from "./DeleteSignee1";
7
+ export { default as DeleteSignee2 } from "./DeleteSignee2";
8
+ export { default as RefreshDetails } from "./RefreshDetails";
3
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -4,7 +4,12 @@ import React from "react";
4
4
  import classnames from "classnames";
5
5
  import { observe } from "@voplus/morpho-ui";
6
6
  const ShareCertificateStatusLabel = (props) => {
7
- return observe(() => (React.createElement(DocumentStatusLabel, { className: classnames("share-certificate-status", props.className), editable: props.editable, list: [{ name: "Draft" }, { name: "Authorized" }, { name: "Cancelled" }], status: props.status, onChange: props.onChange })));
7
+ const list = [{ name: "Draft" }, { name: "Signing" }, { name: "Issued" }, { name: "Cancelled" }];
8
+ if ((props.status && list.findIndex((i) => i.name === props.status) === -1) || !props.status) {
9
+ list.push({ name: props.status || "" });
10
+ }
11
+ return observe(() => (React.createElement("div", { className: classnames({ "share-certificate-label": !props.status }, props.className) },
12
+ React.createElement(DocumentStatusLabel, { className: classnames("share-certificate-status", props.className), editable: props.editable, list: list, status: props.status, onChange: props.onChange }))));
8
13
  };
9
14
  export default ShareCertificateStatusLabel;
10
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,CAAC,KAKpC,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,0BAA0B,EAAE,KAAK,CAAC,SAAS,CAAC,EAClE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EACxE,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,CAAC,KAKpC,EAAE,EAAE;IACJ,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IACjG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QAC7F,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;KACxC;IAED,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,EAAE,yBAAyB,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC;QACxF,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,0BAA0B,EAAE,KAAK,CAAC,SAAS,CAAC,EAClE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,35 +1,25 @@
1
1
  @import "~@voplus/morpho-theme/styles/index.less";
2
2
 
3
3
  :global {
4
- .share-certificate-status {
5
- &.new,
6
- &.new:hover {
7
- background: @new-color;
8
- }
4
+ .share-certificate-status {
5
+ &.draft,
6
+ &.draft:hover {
7
+ background: #91d5ff;
8
+ }
9
9
 
10
- &.lost,
11
- &.lost:hover {
12
- background: @rejected-color;
13
- }
10
+ &.issued,
11
+ &.issued:hover {
12
+ background: @active-color;
13
+ }
14
14
 
15
- &.followup,
16
- &.followup:hover {
17
- background: @active-color;
18
- }
15
+ &.signing,
16
+ &.signing:hover {
17
+ background: @done-color;
18
+ }
19
19
 
20
- &.won,
21
- &.won:hover {
22
- background: @done-color;
23
- }
24
-
25
- &.contacting,
26
- &.contacting:hover {
27
- background: #13c2c2;
28
- }
29
-
30
- &.no-response,
31
- &.no-response:hover {
32
- background: #ff4d4f;
33
- }
34
- }
20
+ &.cancelled,
21
+ &.cancelled:hover {
22
+ background: #ff4d4f;
23
+ }
24
+ }
35
25
  }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const ActivityLogTpl: (props: {
3
+ id: string;
4
+ }) => JSX.Element;
5
+ export default ActivityLogTpl;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Skeleton } from "@voplus/antd";
4
+ import { useCertRefreshContext } from "./ActivityRefreshContext";
5
+ import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
6
+ const ActivityLogTpl = (props) => {
7
+ const certRefresh = useCertRefreshContext();
8
+ return observe(() => (certRefresh.refresh ? React.createElement(ActivityLog, { id: props.id }) : React.createElement(Skeleton, null)));
9
+ };
10
+ export default ActivityLogTpl;
11
+ //# sourceMappingURL=ActivityLogTpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivityLogTpl.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AAEpF,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChD,MAAM,WAAW,GAAG,qBAAqB,EAAE,CAAC;IAE5C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAAC,CAAC,CAAC,oBAAC,QAAQ,OAAG,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare class RefreshState {
3
+ refresh: boolean;
4
+ constructor();
5
+ }
6
+ export declare const CertRefreshContext: import("react").Context<RefreshState>;
7
+ export declare const useCertRefreshContext: () => RefreshState;
@@ -0,0 +1,20 @@
1
+ import { __decorate } from "tslib";
2
+ import { createContext, useContext } from "react";
3
+ import { makeObservable, observable } from "mobx";
4
+ export class RefreshState {
5
+ constructor() {
6
+ Object.defineProperty(this, "refresh", {
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true,
10
+ value: true
11
+ });
12
+ makeObservable(this);
13
+ }
14
+ }
15
+ __decorate([
16
+ observable
17
+ ], RefreshState.prototype, "refresh", void 0);
18
+ export const CertRefreshContext = createContext(null);
19
+ export const useCertRefreshContext = () => useContext(CertRefreshContext);
20
+ //# sourceMappingURL=ActivityRefreshContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivityRefreshContext.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,YAAY;IAGxB;QAFY;;;;mBAAiB,IAAI;WAAC;QAGjC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AALY;IAAX,UAAU;6CAAuB;AAOnC,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAe,IAAW,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
@@ -5,7 +5,8 @@ import { observe, useAutorunEffect } from "@voplus/morpho-ui";
5
5
  import { Button, Space } from "@voplus/antd";
6
6
  import { Scrollbars } from "react-custom-scrollbars";
7
7
  import { useShareCertificate } from "../../../../../data/share-certificate";
8
- import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
8
+ import { CertRefreshContext, RefreshState } from "./ActivityRefreshContext";
9
+ import ActivityLogTpl from "./ActivityLogTpl";
9
10
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
10
11
  import ShareCertificate from "../../components/ShareCertificate";
11
12
  import styles from "./index.less";
@@ -16,39 +17,41 @@ const ShareCertificateClientView = () => {
16
17
  const tab = useTabItem();
17
18
  const shareCertificate = useShareCertificate(id);
18
19
  const { user } = useApplicationContext();
20
+ const [context] = useState(() => new RefreshState());
19
21
  const [asideContext] = useState(AsideContent.createContext());
20
22
  useAutorunEffect(() => (tab.title = shareCertificate.name || "Share Certificate"));
21
23
  useEffect(() => {
22
24
  if (!layout.ui.mobile)
23
- asideContext.openAside(React.createElement(ActivityLog, { id: id }), { span: 6 });
25
+ asideContext.openAside(React.createElement(ActivityLogTpl, { id: id }), { span: 6 });
24
26
  }, []);
25
- return observe(() => (React.createElement(AsideContent, { context: asideContext }, !layout.ui.mobile ? (React.createElement("div", { className: styles["share-certificate-client-view"] },
26
- React.createElement("div", { className: "share-certificate-client-header" },
27
- React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
28
- React.createElement(Button, { onClick: () => window.location.assign(window.location.origin +
29
- `/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download")),
30
- React.createElement("div", { className: "share-certificate-client-body" },
31
- React.createElement(Scrollbars, { autoHide: true },
32
- React.createElement("div", { className: "share-certificate-tep" },
33
- React.createElement(ShareCertificate, { id: id })))),
34
- React.createElement("div", { className: "share-certificate-client-footer" },
35
- React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")))) : (React.createElement("div", { className: styles["share-certificate-client-view-m"] },
36
- React.createElement("div", { className: "share-certificate-client-header" },
37
- React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
38
- React.createElement(Space, null,
39
- React.createElement(Button, { size: "small", onClick: () => window.location.assign(window.location.origin +
40
- `/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download"),
41
- React.createElement(Button, { size: "small", onClick: toggleActivity }, "Open Comment"))),
42
- React.createElement("div", { className: "share-certificate-client-body" },
43
- React.createElement(ShareCertificate, { id: id })),
44
- React.createElement("div", { className: "share-certificate-client-footer" },
45
- React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")))))));
27
+ return observe(() => (React.createElement(CertRefreshContext.Provider, { value: context },
28
+ React.createElement(AsideContent, { context: asideContext }, !layout.ui.mobile ? (React.createElement("div", { className: styles["share-certificate-client-view"] },
29
+ React.createElement("div", { className: "share-certificate-client-header" },
30
+ React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
31
+ React.createElement(Button, { onClick: () => window.location.assign(window.location.origin +
32
+ `/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download")),
33
+ React.createElement("div", { className: "share-certificate-client-body" },
34
+ React.createElement(Scrollbars, { autoHide: true },
35
+ React.createElement("div", { className: "share-certificate-tep" },
36
+ React.createElement(ShareCertificate, { id: id })))),
37
+ React.createElement("div", { className: "share-certificate-client-footer" },
38
+ React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")))) : (React.createElement("div", { className: styles["share-certificate-client-view-m"] },
39
+ React.createElement("div", { className: "share-certificate-client-header" },
40
+ React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
41
+ React.createElement(Space, null,
42
+ React.createElement(Button, { size: "small", onClick: () => window.location.assign(window.location.origin +
43
+ `/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download"),
44
+ React.createElement(Button, { size: "small", onClick: toggleActivity }, "Open Comment"))),
45
+ React.createElement("div", { className: "share-certificate-client-body" },
46
+ React.createElement(ShareCertificate, { id: id })),
47
+ React.createElement("div", { className: "share-certificate-client-footer" },
48
+ React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP"))))))));
46
49
  function toggleActivity() {
47
50
  if (asideContext.asideContent) {
48
51
  asideContext.closeAside();
49
52
  }
50
53
  else {
51
- asideContext.openAside(React.createElement(ActivityLog, { id: id }), { span: 12 });
54
+ asideContext.openAside(React.createElement(ActivityLogTpl, { id: id }), { span: 12 });
52
55
  }
53
56
  }
54
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,0BAA0B,GAAG,GAAG,EAAE;IACvC,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,MAAM,CAAC,EAAG,CAAC;IACtB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IAEjD,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB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CAED,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAE,MAAM,CAAC,iCAAiC,CAAC;QACxD,6BAAK,SAAS,EAAC,iCAAiC;YAC/C,6BAAK,SAAS,EAAC,oEAAoE,IACjF,gBAAgB,CAAC,IAAI,CACjB;YACN,oBAAC,KAAK;gBACL,oBAAC,MAAM,IACN,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE,CACb,MAAM,CAAC,QAAQ,CAAC,MAAM,CACrB,MAAM,CAAC,QAAQ,CAAC,MAAM;wBACrB,gCAAgC,EAAE,qBAAqB,kBAAkB,CACxE,IAAI,CAAC,IAAI,CAAC,WAAW,CACrB,EAAE,CACJ,eAIM;gBACT,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,cAAc,mBAEnC,CACF,CACH;QACN,6BAAK,SAAS,EAAC,+BAA+B;YAC7C,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CACvB;QACN,6BAAK,SAAS,EAAC,iCAAiC;YAC/C,6BAAK,SAAS,EAAC,WAAW,oCAAoC,CACzD,CACD,CACN,CACa,CACf,CAAC,CAAC;IAEH,SAAS,cAAc;QACtB,IAAI,YAAY,CAAC,YAAY,EAAE;YAC9B,YAAY,CAAC,UAAU,EAAE,CAAC;SAC1B;aAAM;YACN,YAAY,CAAC,SAAS,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC9D;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAA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AC,MAAM,IACN,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE,CACb,MAAM,CAAC,QAAQ,CAAC,MAAM,CACrB,MAAM,CAAC,QAAQ,CAAC,MAAM;4BACrB,gCAAgC,EAAE,qBAAqB,kBAAkB,CACxE,IAAI,CAAC,IAAI,CAAC,WAAW,CACrB,EAAE,CACJ,eAIM;oBACT,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,cAAc,mBAEnC,CACF,CACH;YACN,6BAAK,SAAS,EAAC,+BAA+B;gBAC7C,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CACvB;YACN,6BAAK,SAAS,EAAC,iCAAiC;gBAC/C,6BAAK,SAAS,EAAC,WAAW,oCAAoC,CACzD,CACD,CACN,CACa,CACc,CAC9B,CAAC,CAAC;IAEH,SAAS,cAAc;QACtB,IAAI,YAAY,CAAC,YAAY,EAAE;YAC9B,YAAY,CAAC,UAAU,EAAE,CAAC;SAC1B;aAAM;YACN,YAAY,CAAC,SAAS,CAAC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SACjE;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare class SigneeRefreshState {
3
+ refresh: boolean;
4
+ constructor();
5
+ }
6
+ export declare const SigneeRefreshContext: import("react").Context<SigneeRefreshState>;
7
+ export declare const useSigneeRefreshContext: () => SigneeRefreshState;
@@ -0,0 +1,20 @@
1
+ import { __decorate } from "tslib";
2
+ import { createContext, useContext } from "react";
3
+ import { makeObservable, observable } from "mobx";
4
+ export class SigneeRefreshState {
5
+ constructor() {
6
+ Object.defineProperty(this, "refresh", {
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true,
10
+ value: true
11
+ });
12
+ makeObservable(this);
13
+ }
14
+ }
15
+ __decorate([
16
+ observable
17
+ ], SigneeRefreshState.prototype, "refresh", void 0);
18
+ export const SigneeRefreshContext = createContext(null);
19
+ export const useSigneeRefreshContext = () => useContext(SigneeRefreshContext);
20
+ //# sourceMappingURL=SigneeRefreshContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SigneeRefreshContext.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,kBAAkB;IAG9B;QAFY;;;;mBAAiB,IAAI;WAAC;QAGjC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AALY;IAAX,UAAU;mDAAuB;AAOnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAqB,IAAW,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC"}
@@ -2,12 +2,11 @@ import React, { useEffect, useState } from "react";
2
2
  import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
3
3
  import { useParams } from "react-router";
4
4
  import { observe } from "@voplus/morpho-ui";
5
- import { Scrollbars } from "react-custom-scrollbars";
6
5
  import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
7
6
  import { useShareCertificate } from "../../../../../data/share-certificate";
7
+ import { SigneeRefreshContext, SigneeRefreshState } from "./SigneeRefreshContext";
8
8
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
9
9
  import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
10
- import ShareCertificate from "../../components/ShareCertificate";
11
10
  import ShareCertificateProperties from "../../components/ShareCertificateProperties";
12
11
  import ShareCertificateTabs from "../../components/ShareCertificateTabs";
13
12
  import styles from "./index.less";
@@ -18,18 +17,19 @@ const ShareCertificateDefaultView = () => {
18
17
  const store = new TabItemStore({ url: "" });
19
18
  const frame = useFrame();
20
19
  const shareCertificate = useShareCertificate(id);
20
+ const [context] = useState(() => new SigneeRefreshState());
21
21
  const [asideContext] = useState(AsideContent.createContext());
22
22
  useEffect(() => {
23
23
  tab.title = (shareCertificate === null || shareCertificate === void 0 ? void 0 : shareCertificate.name) || "ShareCertificate";
24
24
  }, [shareCertificate === null || shareCertificate === void 0 ? void 0 : shareCertificate.name]);
25
25
  return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
26
- React.createElement(MainContent, { className: styles["share-transaction-default-view"], asideable: frame ? false : true },
27
- React.createElement(MainContent.Nav, { collapsible: true },
28
- React.createElement(ShareCertificateProperties, { id: id, headerVisible: true })),
29
- React.createElement("div", { className: "share-transaction-context" },
30
- React.createElement(AsideContent, { context: asideContext },
31
- React.createElement(ShareCertificateTabs, { id: id, details: React.createElement(Scrollbars, { autoHide: true },
32
- React.createElement(ShareCertificate, { id: id })) })))))));
26
+ React.createElement(SigneeRefreshContext.Provider, { value: context },
27
+ React.createElement(MainContent, { className: styles["share-transaction-default-view"], asideable: frame ? false : true },
28
+ React.createElement(MainContent.Nav, { collapsible: true },
29
+ React.createElement(ShareCertificateProperties, { id: id, headerVisible: true })),
30
+ React.createElement("div", { className: "share-transaction-context" },
31
+ React.createElement(AsideContent, { context: asideContext },
32
+ React.createElement(ShareCertificateTabs, { id: id, details: true }))))))));
33
33
  };
34
34
  export default ShareCertificateDefaultView;
35
35
  //# sourceMappingURL=index.js.map