@voplus/morpho-csp 6.0.185 → 6.0.187
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/data/controller/interfaces.d.ts +1 -0
- package/es/data/member/interfaces.d.ts +2 -0
- package/es/data/officer/interfaces.d.ts +1 -0
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js +0 -2
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js +13 -12
- package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.d.ts +2 -0
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +3 -13
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js +14 -3
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js +23 -13
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.less +12 -11
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.d.ts +13 -7
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js +6 -3
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +2 -4
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +18 -10
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.d.ts +13 -7
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js +6 -3
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +2 -4
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.js +5 -3
- package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +25 -10
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.d.ts +13 -7
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js +6 -3
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +2 -4
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +25 -10
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +0 -12
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +59 -44
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.less +42 -23
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +4 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +14 -18
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js +3 -4
- package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordList/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +11 -13
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.less +3 -13
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js +1 -6
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js +14 -13
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.less +2 -17
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.js +16 -13
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.less +2 -17
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js +16 -13
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.less +2 -17
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +15 -16
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassProperties/index.js +1 -1
- package/es/modules/corporate/share-class/components/ShareClassProperties/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.js +2 -7
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js +12 -13
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.less +2 -12
- package/package.json +1 -1
|
@@ -9,14 +9,14 @@ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAler
|
|
|
9
9
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
10
10
|
import "./index.less";
|
|
11
11
|
const CompanyMemberHead = (props) => {
|
|
12
|
-
const { id, open, close } = props;
|
|
12
|
+
const { id, open, close, menu } = props;
|
|
13
13
|
const member = useMember(id);
|
|
14
14
|
const store = useMemberStore();
|
|
15
15
|
return observe(() => {
|
|
16
16
|
var _a, _b;
|
|
17
17
|
return (React.createElement("div", { className: "company-member-header" },
|
|
18
18
|
React.createElement(Skeleton, { active: true, loading: !member.loaded },
|
|
19
|
-
React.createElement("div", { className: "tool-bar-content" },
|
|
19
|
+
menu && (React.createElement("div", { className: "tool-bar-content" },
|
|
20
20
|
React.createElement(ToolBar, { showMenu: false },
|
|
21
21
|
open && React.createElement(Open, { url: `/member/${id}` }),
|
|
22
22
|
close && React.createElement(Close, null),
|
|
@@ -26,11 +26,14 @@ const CompanyMemberHead = (props) => {
|
|
|
26
26
|
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
27
27
|
error: "message",
|
|
28
28
|
});
|
|
29
|
-
}, ...props.menuProps }))),
|
|
29
|
+
}, ...props.menuProps })))),
|
|
30
30
|
React.createElement(UnitAvatar, { unit: member.contact, size: 70 }),
|
|
31
31
|
React.createElement("div", { className: "member-name" }, ((_b = member.identity) === null || _b === void 0 ? void 0 : _b.fullName) ? (member.identity.fullName) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null),
|
|
32
32
|
React.createElement("div", null, "Member"))));
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
+
CompanyMemberHead.defaultProps = {
|
|
36
|
+
menu: true,
|
|
37
|
+
};
|
|
35
38
|
export default CompanyMemberHead;
|
|
36
39
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,cAAc,CAAC;AAEtB,MAAM,iBAAiB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MA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OAAA,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oCACd,IAAI,EAAE,EAAE,SAAS,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,EAAE,EAAE;oCACvC,KAAK,EAAE,SAAS;iCAChB,CAAC,CAAA;6BAAA,KAEC,KAAK,CAAC,SAAS,GAClB,CACO,CACL,CACN;gBACD,oBAAC,UAAU,IAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,GAAI;gBAC9C,6BAAK,SAAS,EAAC,aAAa,IAC1B,CAAA,MAAA,MAAM,CAAC,QAAQ,0CAAE,QAAQ,EAAC,CAAC,CAAC,CAC5B,MAAM,CAAC,QAAQ,CAAC,QAAQ,CACxB,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CACpB,oBAAC,iBAAiB,IAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,GAAI,CACvE,CAAC,CAAC,CAAC,IAAI,CACH;gBACN,0CAAiB,CACP,CACN,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,IAAI,EAAE,IAAI;CACV,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js
CHANGED
|
@@ -4,8 +4,6 @@ import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
5
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
6
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
7
|
-
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
8
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
7
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
10
8
|
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
11
9
|
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
@@ -18,14 +16,14 @@ const CompanyMemberProperties = (props) => {
|
|
|
18
16
|
const classId = "companyMember-properties";
|
|
19
17
|
const { id, companyMemberTitle, orgContactTitle, companyMemberProperties, orgContactProperties, verificationLayout, headerVisible, } = props;
|
|
20
18
|
const { user } = useApplicationContext();
|
|
21
|
-
const member = useMember(id, { reload:
|
|
19
|
+
const member = useMember(id, { reload: (i) => !i.p, includes: "tags,permissions" });
|
|
22
20
|
const store = useMemberStore();
|
|
23
21
|
const filterPro = companyMemberProperties === null || companyMemberProperties === void 0 ? void 0 : companyMemberProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
24
22
|
return observe(() => {
|
|
25
23
|
var _a, _b, _c;
|
|
26
24
|
return (React.createElement("div", { className: "properties-list" },
|
|
27
|
-
headerVisible && (React.createElement(CompanyMemberHead, { id: id, menuProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })),
|
|
28
25
|
React.createElement(Scrollbars, { autoHide: true },
|
|
26
|
+
headerVisible && React.createElement(CompanyMemberHead, { id: id, menu: false }),
|
|
29
27
|
React.createElement(PropertiesSection, { title: companyMemberTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, i.name === "Tags" ? (React.createElement(TagProp, { id: id, tags: member.tags, items: store.items, editable: user.can("edit", member.p, { asset: "Tags" }) })) : (React.createElement(Prop, { label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))))) }),
|
|
30
28
|
!user.info.guest && (React.createElement(Prop, { label: "Identity", className: "identity-prperties-content" },
|
|
31
29
|
React.createElement(IdentifyProperties, { identityId: (_a = member.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = member.contact) === null || _b === void 0 ? void 0 : _b.id, verificationLayout: verificationLayout, memberId: id }))),
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAClE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAIrD,MAAM,uBAAuB,GAAG,CAAC,KAehC,EAAE,EAAE;IACJ,yCAAyC;IACz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AAE,EACpC,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;wBACH,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;4BACd,IAAI,EAAE,EAAE,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;4BACzD,KAAK,EAAE,SAAS;yBAChB,CAAC,CAAC;oBACJ,CAAC,GACA,CACF,CAAC;YACH,KAAK,QAAQ;gBACZ,OAAO,CACN,oBAAC,iBAAiB,IACjB,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;wBACpB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAChE,CAAC,GACA,CACF,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;QACT,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,kBAAkB,EAAE,mBAAmB;IACvC,eAAe,EAAE,oBAAoB;IACrC,uBAAuB,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CAC3F,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.js
CHANGED
|
@@ -24,12 +24,14 @@ const MemberShareTransactions = (props) => {
|
|
|
24
24
|
React.createElement("h3", { className: "share-title" }, share.shareType), (_a = share.shareLine) === null || _a === void 0 ? void 0 :
|
|
25
25
|
_a.map((shareline, i) => (React.createElement("div", { className: "share-item", key: i },
|
|
26
26
|
React.createElement(ColumnItem, null,
|
|
27
|
-
React.createElement(ColumnItemCol, { span:
|
|
27
|
+
React.createElement(ColumnItemCol, { span: 6, label: "Type" },
|
|
28
28
|
React.createElement("div", { className: "share-item-col-val" }, shareline.type)),
|
|
29
|
-
React.createElement(ColumnItemCol, { span:
|
|
29
|
+
React.createElement(ColumnItemCol, { span: 6, label: "Date" },
|
|
30
30
|
React.createElement("div", { className: "share-item-col-val" },
|
|
31
31
|
React.createElement(UTCShortDate, { value: shareline.date }))),
|
|
32
|
-
React.createElement(ColumnItemCol, { span:
|
|
32
|
+
React.createElement(ColumnItemCol, { span: 6, label: "Consideration", align: "flex-end" },
|
|
33
|
+
React.createElement("div", { className: "share-item-col-val" }, shareline.consideration)),
|
|
34
|
+
React.createElement(ColumnItemCol, { span: 6, label: "Shares", align: "flex-end" },
|
|
33
35
|
React.createElement("div", { className: "share-item-col-val" }, shareline.shares)))))),
|
|
34
36
|
React.createElement("div", { className: "share-total" }, share.shares)));
|
|
35
37
|
})) : (React.createElement(Empty, null)))));
|
package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberShareTransactions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,E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CAAC,IAAI,CAAO,CAC3C;4BAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM;gCACnC,6BAAK,SAAS,EAAC,oBAAoB;oCAClC,oBAAC,YAAY,IAAC,KAAK,EAAE,SAAS,CAAC,IAAI,GAAI,CAClC,CACS;4BAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,UAAU;gCACtD,6BAAK,SAAS,EAAC,oBAAoB,IAAE,SAAS,CAAC,MAAM,CAAO,CAC7C,CACJ,CACR,CACN,CAAC;oBACF,6BAAK,SAAS,EAAC,aAAa,IAAE,KAAK,CAAC,MAAM,CAAO,CAC5C,CACN,CAAA;aAAA,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CACW,CACR,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberShareTransactions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,MAAM,MAAM,cA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,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM;gCACnC,6BAAK,SAAS,EAAC,oBAAoB;oCAClC,oBAAC,YAAY,IAAC,KAAK,EAAE,SAAS,CAAC,IAAI,GAAI,CAClC,CACS;4BAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,eAAe,EAAC,KAAK,EAAC,UAAU;gCAC7D,6BAAK,SAAS,EAAC,oBAAoB,IAAE,SAAS,CAAC,aAAa,CAAO,CACpD;4BAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,UAAU;gCACtD,6BAAK,SAAS,EAAC,oBAAoB,IAAE,SAAS,CAAC,MAAM,CAAO,CAC7C,CACJ,CACR,CACN,CAAC;oBACF,6BAAK,SAAS,EAAC,aAAa,IAAE,KAAK,CAAC,MAAM,CAAO,CAC5C,CACN,CAAA;aAAA,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CACW,CACR,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,24 +1,39 @@
|
|
|
1
|
-
import React, { useEffect
|
|
2
|
-
import { observe
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useParams } from "react-router-dom";
|
|
4
4
|
import { useTabItem } from "@voplus/morpho-data";
|
|
5
5
|
import CompanyMemberProperties from "../../components/CompanyMemberProperties";
|
|
6
6
|
import CompanyMemberTabs from "../../components/CompanyMemberTabs";
|
|
7
|
-
import
|
|
7
|
+
import { Skeleton } from "antd";
|
|
8
|
+
import { faEllipsisVertical, faUsers } from "@fortawesome/pro-solid-svg-icons";
|
|
9
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
11
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
|
+
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
13
|
+
import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
14
|
+
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
8
15
|
import "./index.less";
|
|
9
16
|
const CompanyMemberDefaultView = () => {
|
|
10
17
|
const { id } = useParams();
|
|
11
|
-
const
|
|
18
|
+
const store = useMemberStore();
|
|
19
|
+
const member = useMember(id, { reload: true, includes: "tags,permissions,shares" });
|
|
12
20
|
const tab = useTabItem();
|
|
13
21
|
useEffect(() => {
|
|
14
22
|
tab.title = "Member";
|
|
15
23
|
});
|
|
16
|
-
return observe(() =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
return observe(() => {
|
|
25
|
+
var _a;
|
|
26
|
+
return (React.createElement(DefaultViewLayout, { className: "company-member-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faUsers }), title: member.name, description: "Track member activity, status, and key details in one place.", rightExtra: React.createElement(ToolBar, { id: id, more: false },
|
|
27
|
+
React.createElement(CompanyMemberMenu, { id: id, title: "Member Menu", unitId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: () => {
|
|
28
|
+
var _a;
|
|
29
|
+
return store.edit(id, {
|
|
30
|
+
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
31
|
+
error: "message",
|
|
32
|
+
});
|
|
33
|
+
} })) }), properties: React.createElement(Skeleton, { loading: !member.loaded },
|
|
34
|
+
React.createElement(CompanyMemberProperties, { id: id, headerVisible: true, verificationLayout: "vertical" })) },
|
|
35
|
+
React.createElement(CompanyMemberTabs, { id: id })));
|
|
36
|
+
});
|
|
22
37
|
};
|
|
23
38
|
export default CompanyMemberDefaultView;
|
|
24
39
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,uBAAuB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,EAAE,EAAE,GAAG,SA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E,aAAa,QAAC,kBAAkB,EAAC,UAAU,GAAG,CACtE;YAGZ,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,GAAI,CACX,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
declare const OfficerHead:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
declare const OfficerHead: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
close?: boolean;
|
|
8
|
+
menu?: boolean;
|
|
9
|
+
menuProps?: {
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
menu: boolean;
|
|
9
15
|
};
|
|
10
|
-
}
|
|
16
|
+
};
|
|
11
17
|
export default OfficerHead;
|
|
@@ -11,7 +11,7 @@ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAv
|
|
|
11
11
|
import { useCurrentContactContext } from "@voplus/morpho-document-core/es/data/context/CurrentContactContext";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
const OfficerHead = (props) => {
|
|
14
|
-
const { id, open, close } = props;
|
|
14
|
+
const { id, open, close, menu } = props;
|
|
15
15
|
const officer = useOfficer(id, { includes: "corporate" });
|
|
16
16
|
const store = useOfficerStore();
|
|
17
17
|
const context = useCurrentContactContext();
|
|
@@ -19,7 +19,7 @@ const OfficerHead = (props) => {
|
|
|
19
19
|
var _a, _b, _c;
|
|
20
20
|
return (React.createElement("div", { className: "company-officer-header" },
|
|
21
21
|
React.createElement(Skeleton, { active: true, loading: !officer.loaded },
|
|
22
|
-
React.createElement("div", { className: "tool-bar-content" },
|
|
22
|
+
menu && (React.createElement("div", { className: "tool-bar-content" },
|
|
23
23
|
React.createElement(ToolBar, { showMenu: false },
|
|
24
24
|
open && React.createElement(Open, { url: `/officer/${id}` }),
|
|
25
25
|
close && React.createElement(Close, null),
|
|
@@ -29,7 +29,7 @@ const OfficerHead = (props) => {
|
|
|
29
29
|
data: { ContactId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
30
30
|
error: "message",
|
|
31
31
|
});
|
|
32
|
-
}, ...props.menuProps }))),
|
|
32
|
+
}, ...props.menuProps })))),
|
|
33
33
|
React.createElement(UnitAvatar, { unit: officer.contact, size: 70 }),
|
|
34
34
|
React.createElement("div", { className: "officer-name" },
|
|
35
35
|
React.createElement(PositionSelect, { id: id, position: officer.position })),
|
|
@@ -37,5 +37,8 @@ const OfficerHead = (props) => {
|
|
|
37
37
|
React.createElement("div", null, ((_c = officer.identity) === null || _c === void 0 ? void 0 : _c.fullName) ? (officer.identity.fullName) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null))));
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
+
OfficerHead.defaultProps = {
|
|
41
|
+
menu: true,
|
|
42
|
+
};
|
|
40
43
|
export default OfficerHead;
|
|
41
44
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oEAAoE,CAAC;AAC9G,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oEAAoE,CAAC;AAC9G,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,GAAG,CAAC,KAMpB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,MAAM,OAAO,GAAG,wBAAwB,EAAE,CAAC;IAE3C,OAAO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IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,GACnC,CACF;gBACD,iCACE,CAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,EAAC,CAAC,CAAC,CAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CACzB,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CACrB,oBAAC,iBAAiB,IAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,GAAI,CACzE,CAAC,CAAC,CAAC,IAAI,CACH,CACI,CACN,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IAC1B,IAAI,EAAE,IAAI;CACV,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -6,8 +6,6 @@ import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
|
6
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
7
7
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
8
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
9
|
-
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
10
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
11
9
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
12
10
|
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
13
11
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
@@ -20,14 +18,14 @@ const OfficerProperties = (props) => {
|
|
|
20
18
|
const classId = "officer-properties";
|
|
21
19
|
const { id, officerTitle, orgContactTitle, officerProperties, orgContactProperties, verificationLayout, headerVisible, } = props;
|
|
22
20
|
const { user } = useApplicationContext();
|
|
23
|
-
const officer = useOfficer(id, { reload:
|
|
21
|
+
const officer = useOfficer(id, { reload: (i) => !i.p, includes: "tags,permissions" });
|
|
24
22
|
const store = useOfficerStore();
|
|
25
23
|
const filterPro = officerProperties === null || officerProperties === void 0 ? void 0 : officerProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
26
24
|
return observe(() => {
|
|
27
25
|
var _a, _b, _c;
|
|
28
26
|
return (React.createElement("div", { className: "properties-list" },
|
|
29
|
-
headerVisible && (React.createElement(OfficerHead, { id: id, menuProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })),
|
|
30
27
|
React.createElement(Scrollbars, { autoHide: true },
|
|
28
|
+
headerVisible && React.createElement(OfficerHead, { id: id, menu: false }),
|
|
31
29
|
React.createElement(PropertiesSection, { title: officerTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, i.name === "Tags" ? (React.createElement(TagProp, { id: id, tags: officer.tags, items: store.items, editable: user.can("edit", officer.p, { asset: "Tags" }) })) : (React.createElement(Prop, { label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))))) }),
|
|
32
30
|
!user.info.guest && (React.createElement(Prop, { label: "Identity", className: "identity-prperties-content" },
|
|
33
31
|
React.createElement(IdentifyProperties, { identityId: (_a = officer.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = officer.contact) === null || _b === void 0 ? void 0 : _b.id, verificationLayout: verificationLayout, officerId: id }))),
|
package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,UAAU,EACV,eAAe,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,UAAU,EACV,eAAe,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAClE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAWzC,MAAM,iBAAiB,GAAG,CAAC,KAe1B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,oBAAoB,CAAC;IAErC,MAAM,EACL,EAAE,EACF,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,GACb,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,EAC3B,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACrC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CACf,8BAAM,SAAS,EAAC,kBAAkB,IAAE,OAAO,CAAC,KAAK,CAAQ,CACzD,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,gBAAiB,CACjD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GACnF,CACF,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;QACT,CAAC;IACF,CAAC;IAED,KAAK,UAAU,IAAI,CAAC,IAA4B;QAC/C,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAClD,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,YAAY,EAAE,oBAAoB;IAClC,eAAe,EAAE,oBAAoB;IACrC,iBAAiB,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,MAAM,EAAE;KAChB;CACD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,24 +1,39 @@
|
|
|
1
|
-
import React, { useEffect
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
2
|
import { useTabItem } from "@voplus/morpho-data";
|
|
3
|
-
import { observe
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useParams } from "react-router-dom";
|
|
5
|
+
import { Skeleton } from "antd";
|
|
6
|
+
import { faEllipsisVertical, faUserTag } from "@fortawesome/pro-solid-svg-icons";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
8
|
import OfficerTabs from "../../components/OfficerTabs";
|
|
6
9
|
import OfficerProperties from "../../components/OfficerProperties";
|
|
7
|
-
import
|
|
10
|
+
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
11
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
|
+
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
13
|
+
import CompanyOfficerMenu from "../../../controls/CompanyRegisterMenu";
|
|
14
|
+
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
8
15
|
import "./index.less";
|
|
9
16
|
const OfficerDefaultView = () => {
|
|
10
17
|
const { id } = useParams();
|
|
11
|
-
const
|
|
18
|
+
const store = useOfficerStore();
|
|
19
|
+
const officer = useOfficer(id, { reload: true, includes: "tags,permissions" });
|
|
12
20
|
const tab = useTabItem();
|
|
13
21
|
useEffect(() => {
|
|
14
22
|
tab.title = "Officer";
|
|
15
23
|
});
|
|
16
|
-
return observe(() =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
return observe(() => {
|
|
25
|
+
var _a;
|
|
26
|
+
return (React.createElement(DefaultViewLayout, { className: "officer-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faUserTag }), title: officer.name, description: "Streamline officer updates and shareholder reporting.", rightExtra: React.createElement(ToolBar, { id: id, more: false },
|
|
27
|
+
React.createElement(CompanyOfficerMenu, { id: id, title: "Officer Menu", unitId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: () => {
|
|
28
|
+
var _a;
|
|
29
|
+
return store.edit(id, {
|
|
30
|
+
data: { ContactId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
31
|
+
error: "message",
|
|
32
|
+
});
|
|
33
|
+
} })) }), properties: React.createElement(Skeleton, { loading: !officer.loaded },
|
|
34
|
+
React.createElement(OfficerProperties, { id: id, headerVisible: true, verificationLayout: "vertical" })) },
|
|
35
|
+
React.createElement(OfficerTabs, { id: id })));
|
|
36
|
+
});
|
|
22
37
|
};
|
|
23
38
|
export default OfficerDefaultView;
|
|
24
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/page/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/page/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,iBAAiB,M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AAI,EAAE,EAAE,SAAS,EAAE,MAAA,OAAO,CAAC,OAAO,0CAAE,EAAE,EAAE;gCACxC,KAAK,EAAE,SAAS;6BAChB,CAAC,CAAA;yBAAA,GAEF,CACO,GAEV,EAEH,UAAU,EACT,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;gBACjC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,QAAC,kBAAkB,EAAC,UAAU,GAAG,CAChE;YAGZ,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAG,GAAI,CACL,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IShareTransaction } from "../../../../../../data/share-transaction";
|
|
3
3
|
import "./index.less";
|
|
4
|
-
export type ShareTransactionItemName = "Sort" | "Shareholder" | "Class" | "Official" | "Share Class" | "Shares" | "Certificate" | "Currency" | "Consideration";
|
|
4
|
+
export type ShareTransactionItemName = "Sort" | "Shareholder" | "Class" | "Official" | "Share Class" | "Shares" | "Certificate" | "Currency" | "Consideration" | "Action";
|
|
5
5
|
declare const ShareTransactionItems: (props: {
|
|
6
6
|
data: IShareTransaction;
|
|
7
7
|
transactionType?: string;
|
|
@@ -3,7 +3,7 @@ import { useShareTransactionStore, } from "../../../../../../data/share-transact
|
|
|
3
3
|
import { useTableRefreshContext } from "../../pages/ShareTransactionDefaultView/TableRefreshContext";
|
|
4
4
|
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import { Button, InputNumber, Modal } from "antd";
|
|
6
|
+
import { Button, InputNumber, Modal, Row, Col } from "antd";
|
|
7
7
|
import { State } from "./TableDataContext";
|
|
8
8
|
import { cloneDeep, isEqual } from "lodash-es";
|
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
|
@@ -42,16 +42,20 @@ const ShareTransactionItems = (props) => {
|
|
|
42
42
|
var _a, _b;
|
|
43
43
|
return (React.createElement(React.Fragment, null,
|
|
44
44
|
React.createElement(EditableTable, { data: state.lines, className: classnames("finance-editable-table", "shareTransaction-editable-table"), columns: (filterItem !== null && filterItem !== void 0 ? filterItem : []).map((i) => renderProp(i)), foot: React.createElement(React.Fragment, null,
|
|
45
|
-
React.createElement(
|
|
46
|
-
React.createElement(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
React.createElement(Row, { className: "table-foot" },
|
|
46
|
+
React.createElement(Col, { xs: 12, sm: 12, md: 12, lg: 14, xl: 16, xxl: 18 }, !state.readonly && (React.createElement("div", null,
|
|
47
|
+
React.createElement(Button, { type: "link", disabled: props.verified || props.confirmed, onClick: onAdd }, "+ Add Item"),
|
|
48
|
+
React.createElement(Button, { type: "link", className: "cancel", onClick: getSharesTransaction }, "Reset"),
|
|
49
|
+
React.createElement(Button, { loading: state.loading, disabled: isEqual(toJS(state.lines), toJS(data.lines)), type: "link", onClick: onSave }, "Save")))),
|
|
50
|
+
React.createElement(Col, { xs: 12, sm: 12, md: 12, lg: 10, xl: 8, xxl: 6 }, data.transactionType === "Allotment" && (React.createElement("div", { className: "total" },
|
|
51
|
+
React.createElement("div", { className: "total-k" }, "Consideration Total"),
|
|
52
|
+
React.createElement("div", { className: "total-v" },
|
|
53
|
+
React.createElement(CurrencyAmount, { amount: (_a = state.considerationTotal) !== null && _a !== void 0 ? _a : 0, currency: state.props.data.currency })))))),
|
|
54
|
+
React.createElement(Row, { className: "table-foot-amount-3" },
|
|
55
|
+
React.createElement(Col, { xs: 12, sm: 12, md: 12, lg: 14, xl: 16, xxl: 18 }),
|
|
56
|
+
React.createElement(Col, { xs: 12, sm: 12, md: 12, lg: 10, xl: 8, xxl: 6, className: "amount-content" },
|
|
57
|
+
React.createElement("div", null, "Shares Total"),
|
|
58
|
+
React.createElement(CurrencyAmount, { amount: (_b = state.sharesTotal) !== null && _b !== void 0 ? _b : 0, currency: state.props.data.currency })))), onAdd: onAdd, moveAfter: (list) => (state.lines = list), rowProps: {
|
|
55
59
|
onMouseEnter: (row) => state.setHoverKey(row.data.id),
|
|
56
60
|
onMouseLeave: () => state.setHoverKey(),
|
|
57
61
|
} }),
|
|
@@ -115,28 +119,17 @@ const ShareTransactionItems = (props) => {
|
|
|
115
119
|
title: "Certificate",
|
|
116
120
|
width: "200px",
|
|
117
121
|
render: (cell) => (React.createElement(InlineEdit, { defaultValue: cell.data.consideration, editable: false, content: ({ store }) => observe(() => {
|
|
118
|
-
var _a, _b, _c, _d
|
|
119
|
-
return (React.createElement("div", { className: "certificate-conetnt" },
|
|
120
|
-
cell.data.newCertificate
|
|
121
|
-
cell.data.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}) }, "Create")) : null,
|
|
130
|
-
((data.transactionType === "Cancel" && !appContext.host.isTest) ||
|
|
131
|
-
(data.transactionType !== "Allotment" &&
|
|
132
|
-
data.transactionType !== "Others" &&
|
|
133
|
-
data.transactionType !== "Cancel") ||
|
|
134
|
-
(filterItem === null || filterItem === void 0 ? void 0 : filterItem[(filterItem === null || filterItem === void 0 ? void 0 : filterItem.length) - 1].name) === "Certificate") &&
|
|
135
|
-
cell.data.id == state.hoverKey &&
|
|
136
|
-
!((_e = cell.data.certificate) === null || _e === void 0 ? void 0 : _e.id) &&
|
|
137
|
-
props.verified === false &&
|
|
138
|
-
props.confirmed === false && (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(cell.data.id) },
|
|
139
|
-
React.createElement(FAIcon, { icon: faTrashAlt })))));
|
|
122
|
+
var _a, _b, _c, _d;
|
|
123
|
+
return (React.createElement("div", { className: "certificate-conetnt" }, cell.data.newCertificate || ((_a = cell.data.cancelledCertificates) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: "share-transaction-table-share" },
|
|
124
|
+
cell.data.newCertificate && (React.createElement("div", { className: "new-certificate" },
|
|
125
|
+
((_b = cell.data.cancelledCertificates) === null || _b === void 0 ? void 0 : _b.length) > 0 ? (React.createElement("div", { className: "new-certificate-title" }, "New")) : null,
|
|
126
|
+
React.createElement(DocumentReference, { id: (_c = cell.data.newCertificate) === null || _c === void 0 ? void 0 : _c.id }))),
|
|
127
|
+
((_d = cell.data.cancelledCertificates) === null || _d === void 0 ? void 0 : _d.length) > 0 ? (React.createElement("div", { className: "cancelled-certificates" },
|
|
128
|
+
React.createElement("div", { className: "cancelled-certificates-title" }, "Cancelled"),
|
|
129
|
+
React.createElement(ReferenceList, { canEdit: false, document: cell.data.cancelledCertificates }))) : null)) : cell.data.shares > 0 ? (props.confirmed && props.verified ? (React.createElement(Button, { disabled: data.readonly, onClick: () => createCertificate(cell.data.id) }, "Create")) : null) : props.confirmed && props.verified ? (React.createElement(Button, { disabled: data.readonly, onClick: () => setCertCancelCreate({
|
|
130
|
+
visible: true,
|
|
131
|
+
shareLine: cell.data,
|
|
132
|
+
}) }, "Create")) : null));
|
|
140
133
|
}) })),
|
|
141
134
|
};
|
|
142
135
|
case "Currency":
|
|
@@ -150,20 +143,39 @@ const ShareTransactionItems = (props) => {
|
|
|
150
143
|
return {
|
|
151
144
|
key: "consideration",
|
|
152
145
|
title: "Consideration",
|
|
146
|
+
align: "right",
|
|
153
147
|
render: (cell) => (React.createElement(InlineEdit, { defaultValue: cell.data.consideration, editable: !state.readonly, content: ({ store }) => observe(() => {
|
|
154
|
-
var _a
|
|
155
|
-
return (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
148
|
+
var _a;
|
|
149
|
+
return (
|
|
150
|
+
// <div className="credit-wrap">
|
|
151
|
+
React.createElement(CurrencyAmount, { amount: (_a = store.defaultValue) !== null && _a !== void 0 ? _a : 0 })
|
|
152
|
+
// {cell.data.id == state.hoverKey &&
|
|
153
|
+
// !cell.data.certificate?.id &&
|
|
154
|
+
// props.verified === false &&
|
|
155
|
+
// props.confirmed === false && (
|
|
156
|
+
// <Button danger shape="circle" onClick={() => onDel(cell.data.id)}>
|
|
157
|
+
// <FAIcon icon={faTrashAlt} />
|
|
158
|
+
// </Button>
|
|
159
|
+
// )}
|
|
160
|
+
// </div>
|
|
161
|
+
);
|
|
162
162
|
}), editor: ({ store }) => (React.createElement("div", { className: "credit-wrap-edit" },
|
|
163
163
|
React.createElement(Editor, { store: store },
|
|
164
|
-
React.createElement(InputNumber, { min: inputNumberMinVal(data.transactionType, "consideration"), max: 100000000000, precision: 2, defaultValue: store.value, onChange: (v) => (store.value = v) })),
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
React.createElement(InputNumber, { min: inputNumberMinVal(data.transactionType, "consideration"), max: 100000000000, precision: 2, defaultValue: store.value, onChange: (v) => (store.value = v) })))), onSave: (v) => (cell.data.consideration = v) })),
|
|
165
|
+
};
|
|
166
|
+
case "Action":
|
|
167
|
+
return {
|
|
168
|
+
key: "action",
|
|
169
|
+
title: "",
|
|
170
|
+
width: "70px",
|
|
171
|
+
render: (cell) => {
|
|
172
|
+
var _a;
|
|
173
|
+
// cell.data.id == state.hoverKey &&
|
|
174
|
+
return !((_a = cell.data.certificate) === null || _a === void 0 ? void 0 : _a.id) &&
|
|
175
|
+
props.verified === false &&
|
|
176
|
+
props.confirmed === false && (React.createElement(Button, { className: "action-del", danger: true, shape: "circle", onClick: () => onDel(cell.data.id) },
|
|
177
|
+
React.createElement(FAIcon, { icon: faTrashAlt })));
|
|
178
|
+
},
|
|
167
179
|
};
|
|
168
180
|
}
|
|
169
181
|
}
|
|
@@ -225,6 +237,9 @@ const ShareTransactionItems = (props) => {
|
|
|
225
237
|
getSharesTransaction();
|
|
226
238
|
}
|
|
227
239
|
function inputNumberMinVal(transactionType, dataIndex) {
|
|
240
|
+
if (transactionType === "Others" && dataIndex === "consideration") {
|
|
241
|
+
return -Infinity;
|
|
242
|
+
}
|
|
228
243
|
if (transactionType === "Allotment") {
|
|
229
244
|
return 0;
|
|
230
245
|
}
|