@voplus/morpho-csp 1.3.6 → 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.
- package/es/components/CorporateMentionList/index.d.ts +32 -0
- package/es/components/CorporateMentionList/index.js +30 -0
- package/es/components/CorporateMentionList/index.js.map +1 -0
- package/es/components/CorporateMentionList/index.less +51 -0
- package/es/components/DragTableRow/index.d.ts +1 -1
- package/es/components/TableDragRow/index.d.ts +1 -1
- package/es/data/clda-form/interfaces.d.ts +8 -0
- package/es/data/clda-form/types.d.ts +8 -0
- package/es/data/corporate/interfaces.d.ts +3 -0
- package/es/data/corporate/types.d.ts +3 -0
- package/es/data/share-certificate/ShareCertificateStore.d.ts +14 -0
- package/es/data/share-certificate/ShareCertificateStore.js +36 -1
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
- package/es/data/share-certificate/interfaces.d.ts +6 -1
- package/es/data/share-certificate/metas.js +2 -2
- package/es/data/share-certificate/metas.js.map +1 -1
- package/es/data/share-certificate/types.d.ts +3 -1
- package/es/modules/corporate/company/components/CompanyDetailsView/index.js +11 -46
- package/es/modules/corporate/company/components/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.d.ts +7 -0
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +68 -0
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyProperties/index.d.ts +9 -3
- package/es/modules/corporate/company/components/CompanyProperties/index.js +18 -86
- package/es/modules/corporate/company/components/CompanyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.d.ts +7 -0
- package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.js +25 -0
- package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.js.map +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js +6 -3
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +6 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js +34 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.less +10 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.d.ts +0 -4
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +25 -41
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +32 -69
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.d.ts +0 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +3 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +2 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.d.ts +9 -0
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js +35 -0
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +88 -51
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +32 -6
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +35 -4
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +3 -3
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +2 -2
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +6 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.d.ts +11 -5
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +21 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.less +41 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js +32 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js +52 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js +52 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js +36 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js +18 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js +32 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +6 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +6 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js +6 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +18 -28
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.d.ts +5 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js +11 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.d.ts +7 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.js +20 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +29 -23
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +4 -3
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.d.ts +7 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.js +20 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +9 -9
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +17 -15
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.d.ts +4 -0
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.js +10 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +7 -5
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { useParams } from "react-router";
|
|
3
|
-
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
|
3
|
+
import { useLayout, useTabItem, useApplicationContext } from "@voplus/morpho-data";
|
|
4
4
|
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
|
|
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";
|
|
@@ -15,37 +16,42 @@ const ShareCertificateClientView = () => {
|
|
|
15
16
|
const layout = useLayout();
|
|
16
17
|
const tab = useTabItem();
|
|
17
18
|
const shareCertificate = useShareCertificate(id);
|
|
19
|
+
const { user } = useApplicationContext();
|
|
20
|
+
const [context] = useState(() => new RefreshState());
|
|
18
21
|
const [asideContext] = useState(AsideContent.createContext());
|
|
19
22
|
useAutorunEffect(() => (tab.title = shareCertificate.name || "Share Certificate"));
|
|
20
23
|
useEffect(() => {
|
|
21
24
|
if (!layout.ui.mobile)
|
|
22
|
-
asideContext.openAside(React.createElement(
|
|
25
|
+
asideContext.openAside(React.createElement(ActivityLogTpl, { id: id }), { span: 6 });
|
|
23
26
|
}, []);
|
|
24
|
-
return observe(() => (React.createElement(
|
|
25
|
-
React.createElement("div", { className: "share-certificate-client-
|
|
26
|
-
React.createElement("div", { className: "
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
React.createElement(
|
|
37
|
-
React.createElement(
|
|
38
|
-
React.createElement(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement("div", { className: "
|
|
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"))))))));
|
|
43
49
|
function toggleActivity() {
|
|
44
50
|
if (asideContext.asideContent) {
|
|
45
51
|
asideContext.closeAside();
|
|
46
52
|
}
|
|
47
53
|
else {
|
|
48
|
-
asideContext.openAside(React.createElement(
|
|
54
|
+
asideContext.openAside(React.createElement(ActivityLogTpl, { id: id }), { span: 12 });
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
};
|
package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map
CHANGED
|
@@ -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,MAAM,qBAAqB,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,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,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,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,EAAE,CAAC;IAEzC,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ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C,CACzD,CAED,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAE,MAAM,CAAC,iCAAiC,CAAC;YACxD,6BAAK,SAAS,EAAC,iCAAiC;gBAC/C,6BAAK,SAAS,EAAC,oEAAoE,IACjF,gBAAgB,CAAC,IAAI,CACjB;gBACN,oBAAC,KAAK;oBACL,oBAAC,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"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
.share-certificate-client-view {
|
|
2
|
-
padding: 20px;
|
|
3
2
|
|
|
4
3
|
:global {
|
|
5
4
|
.share-certificate-client-header {
|
|
6
5
|
display: flex;
|
|
7
6
|
align-items: center;
|
|
8
7
|
justify-content: space-between;
|
|
8
|
+
padding: 10px 20px;
|
|
9
|
+
border-bottom: 1px solid #e6e6e6;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.share-certificate-client-body {
|
|
12
|
-
height: calc(100% -
|
|
13
|
+
height: calc(100% - 80px);
|
|
13
14
|
|
|
14
15
|
.share-certificate-tep {
|
|
15
16
|
width: 1310px;
|
|
@@ -50,4 +51,4 @@
|
|
|
50
51
|
margin-left: -117px;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
}
|
|
54
|
+
}
|
|
@@ -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(
|
|
27
|
-
React.createElement(MainContent
|
|
28
|
-
React.createElement(
|
|
29
|
-
|
|
30
|
-
React.createElement(
|
|
31
|
-
React.createElement(
|
|
32
|
-
|
|
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
|
package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,0EAA0E;AAC1E,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACxC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAG,CAAC,CAAC;IAElD,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACd,GAAG,CAAC,KAAK,GAAG,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,KAAI,kBAAkB,CAAC;IAC1D,CAAC,EAAE,CAAC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,CAAC,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC5C,oBAAC,WAAW,IACX,SAAS,EAAE,MAAM,CAAC,gCAAgC,CAAC,EACnD,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;gBAE/B,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;oBAC3B,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,SAAG,CACpC;gBAClB,6BAAK,SAAS,EAAC,2BAA2B;oBACzC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;wBAClC,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAG,EAAE,OAAO,SAAG,CAC3B,CACV,CACO,CACiB,CACP,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Button, Modal, Divider } from "@voplus/antd";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
5
|
+
import MetionList from "@voplus/morpho-org/es/controls/MetionList";
|
|
6
|
+
// import MemberInfo from "../MemberInfo";
|
|
7
|
+
// import NewSecretaryDialog from "../NewSecretaryDialog";
|
|
6
8
|
import { State } from "./state";
|
|
7
9
|
import { clone } from "lodash-es";
|
|
8
10
|
import { observe } from "@voplus/morpho-ui";
|
|
@@ -15,19 +17,12 @@ const SecretaryList = (props) => {
|
|
|
15
17
|
const context = useIncorporationFormContext();
|
|
16
18
|
const incorporation = useCLDAForm(props.id);
|
|
17
19
|
state.update(incorporation);
|
|
18
|
-
return observe(() => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
((_b = state.content) === null || _b === void 0 ? void 0 : _b.secretaryIds.map((m, i) => {
|
|
25
|
-
var _a, _b;
|
|
26
|
-
return (React.createElement(MemberInfo, { formId: id, memberId: m, contacts: (_a = state.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === m)[0], key: i, memberIndex: i, memberLength: (_b = state.content.secretaryIds) === null || _b === void 0 ? void 0 : _b.length, onDeleteClick: () => remove(i) }));
|
|
27
|
-
})),
|
|
28
|
-
(context ? context.editable : true) && (React.createElement(Button, { style: { marginTop: "20px" }, onClick: setAdd }, "Add Secretary")),
|
|
29
|
-
showDialog && (React.createElement(NewSecretaryDialog, { id: id, visible: true, type: "secretary", title: "New Secretary", onCancel: () => setShowDialog(false) }))));
|
|
30
|
-
});
|
|
20
|
+
return observe(() => (React.createElement("div", { className: "internal-use-section secretary-list" },
|
|
21
|
+
React.createElement("div", { className: "sub-title" }, "Secretary(s)"),
|
|
22
|
+
React.createElement(Divider, { style: { margin: "10px 0" } }),
|
|
23
|
+
React.createElement(MetionList, { canEdit: false, contacts: state.list }),
|
|
24
|
+
(context ? context.editable : true) && (React.createElement(Button, { style: { marginTop: "20px" }, onClick: setAdd }, "Add Secretary")),
|
|
25
|
+
showDialog && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: true, defaultSelected: state.list, onSelect: onSave, onCancel: () => setShowDialog(false) })))));
|
|
31
26
|
function setAdd() {
|
|
32
27
|
state.index = -1;
|
|
33
28
|
setShowDialog(true);
|
|
@@ -45,6 +40,13 @@ const SecretaryList = (props) => {
|
|
|
45
40
|
},
|
|
46
41
|
});
|
|
47
42
|
}
|
|
43
|
+
async function onSave(unit) {
|
|
44
|
+
let secretaryList = [];
|
|
45
|
+
unit === null || unit === void 0 ? void 0 : unit.map((i) => secretaryList.push({ Key: i.id, Value: i.name }));
|
|
46
|
+
await store
|
|
47
|
+
.edit(id, { data: { Secretarys: secretaryList }, error: "message" })
|
|
48
|
+
.then(() => setShowDialog(false));
|
|
49
|
+
}
|
|
48
50
|
};
|
|
49
51
|
export default SecretaryList;
|
|
50
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,0CAA0C;AAC1C,0DAA0D;AAC1D,OAAO,EA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-1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { action, makeAutoObservable, observable } from "mobx";
|
|
2
|
+
import { action, makeAutoObservable, observable, computed } from "mobx";
|
|
3
3
|
export class State {
|
|
4
4
|
constructor() {
|
|
5
5
|
/** */
|
|
@@ -21,6 +21,12 @@ export class State {
|
|
|
21
21
|
update(incorporationForm) {
|
|
22
22
|
this.content = incorporationForm.content;
|
|
23
23
|
}
|
|
24
|
+
get list() {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
let mentionList = [];
|
|
27
|
+
(_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.secretarys) === null || _b === void 0 ? void 0 : _b.map((item) => mentionList.push({ id: item.key, name: item.value }));
|
|
28
|
+
return mentionList;
|
|
29
|
+
}
|
|
24
30
|
}
|
|
25
31
|
__decorate([
|
|
26
32
|
observable
|
|
@@ -31,4 +37,7 @@ __decorate([
|
|
|
31
37
|
__decorate([
|
|
32
38
|
action
|
|
33
39
|
], State.prototype, "update", null);
|
|
40
|
+
__decorate([
|
|
41
|
+
computed
|
|
42
|
+
], State.prototype, "list", null);
|
|
34
43
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAExE,MAAM,OAAO,KAAK;IAMjB;QALA,OAAO;QACK;;;;;WAAgC;QAC5C,yBAAyB;QACb;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAA4B;QACjD,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAC,OAA0B,CAAC;IAC7D,CAAC;IAES,IAAW,IAAI;;QACxB,IAAI,WAAW,GAAmC,EAAE,CAAC;QAErD,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAE9F,OAAO,WAAW,CAAC;IACpB,CAAC;CACD;AAnBY;IAAX,UAAU;sCAAiC;AAEhC;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAEN;AAES;IAAT,QAAQ;iCAMR"}
|
|
@@ -34,18 +34,20 @@ const IncorporationSGPForm = (props) => {
|
|
|
34
34
|
React.createElement(FontAwesomeIcon, { icon: faTableRows }),
|
|
35
35
|
" Singapore Company Incorporation Form") },
|
|
36
36
|
React.createElement("div", { style: { fontSize: "16px" } },
|
|
37
|
-
React.createElement("p", null, "
|
|
37
|
+
React.createElement("p", null, "Welcome to our incorporation form! Please follow the instructions below to complete your registration:"),
|
|
38
38
|
React.createElement("ul", null,
|
|
39
39
|
React.createElement("li", null,
|
|
40
|
-
React.createElement("p", null, "
|
|
40
|
+
React.createElement("p", null, "1.This form should take around 10-15 minutes to complete.")),
|
|
41
|
+
React.createElement("li", null,
|
|
42
|
+
React.createElement("p", null, "2.All fields marked with an asterisk (*) are mandatory. Please make sure you fill them out completely.")),
|
|
41
43
|
React.createElement("li", null,
|
|
42
44
|
React.createElement("p", null,
|
|
43
|
-
"
|
|
45
|
+
"3.If you're not sure what to fill in a specific section, you can hover over the information icon",
|
|
44
46
|
React.createElement("span", { style: { fontSize: "1.2em", color: "#2a82db", margin: "0 5px" } },
|
|
45
47
|
React.createElement(FontAwesomeIcon, { icon: faInfoCircle, size: "sm" })),
|
|
46
|
-
"
|
|
48
|
+
"to see more details.")),
|
|
47
49
|
React.createElement("li", null,
|
|
48
|
-
React.createElement("p", null, "
|
|
50
|
+
React.createElement("p", null, "4.The form is auto-saved, so you can leave the form anytime and come back to it later with the same link."))))),
|
|
49
51
|
React.createElement(CompanyInfo, { id: props.id }),
|
|
50
52
|
React.createElement(ShareCapital, { id: props.id }),
|
|
51
53
|
React.createElement(ShareholderList, { isOnlyInternalUse: props.type === "draftView", id: props.id }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/sgp/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAiB,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,UA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E,EAAE,QAAQ,EAAE,MAAM,EAAE;oBAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/sgp/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAiB,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,oBAAoB,GAAG,CAAC,KAAoB,EAAE,EAAE;IACrD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,WAAW,CAAC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AwB;QACxB,sCAAsC;QACtC,kBAAkB;QAClB,6DAA6D;QAC7D,IAAI;QACJ,wBAAwB;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import "./index.less";
|
|
|
6
6
|
const OfficerRegisterDefaultView = (props) => {
|
|
7
7
|
const params = useParams();
|
|
8
8
|
const id = props.id || params.id;
|
|
9
|
-
return observe(() => (React.createElement(ShareTransactionList, { shareTransactionId: id, memberId: props.memberId, readonly: props.allowEdit === false,
|
|
9
|
+
return observe(() => (React.createElement(ShareTransactionList, { shareTransactionId: id, memberId: props.memberId, readonly: props.allowEdit === false, headerTitle: "ShareTransactions Register" })));
|
|
10
10
|
};
|
|
11
11
|
export default OfficerRegisterDefaultView;
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/OfficerRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,oBAAoB,MAAM,6FAA6F,CAAC;AAC/H,OAAO,cAAc,CAAC;AAEtB,MAAM,0BAA0B,GAAG,CAAC,KAInC,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,EAAG,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,oBAAoB,IACpB,kBAAkB,EAAE,EAAE,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,EACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":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