@voplus/morpho-csp 1.0.0-dev002 → 1.0.0-dev004
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/CurrencyView/state.js +18 -22
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/data/corporate/CorporateStore.d.ts +24 -0
- package/es/data/corporate/CorporateStore.js +43 -0
- package/es/data/corporate/CorporateStore.js.map +1 -0
- package/es/data/corporate/hooks.d.ts +10 -0
- package/es/data/corporate/hooks.js +14 -0
- package/es/data/corporate/hooks.js.map +1 -0
- package/es/data/corporate/index.d.ts +4 -0
- package/es/data/corporate/index.js +5 -0
- package/es/data/corporate/index.js.map +1 -0
- package/es/data/corporate/interfaces.d.ts +26 -0
- package/es/data/corporate/interfaces.js +1 -0
- package/es/data/corporate/interfaces.js.map +1 -0
- package/es/data/corporate/types.d.ts +11 -0
- package/es/data/corporate/types.js +1 -0
- package/es/data/corporate/types.js.map +1 -0
- package/es/data/shareTransaction/ShareTransactionStore.d.ts +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
- package/es/data/shareTransaction/hooks.d.ts +1 -1
- package/es/data/shareTransaction/hooks.js +1 -1
- package/es/data/shareTransaction/hooks.js.map +1 -1
- package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +1 -3
- package/es/data/shareTransaction/metas.js +5 -9
- package/es/data/shareTransaction/metas.js.map +1 -1
- package/es/data/shareTransaction/types/ShareTransactionCreateOptions.d.ts +1 -1
- package/es/data/shareTransaction/types/ShareTransactionEditOptions.d.ts +1 -3
- package/es/modules/corporate/CorporateDefaultView/index.d.ts +3 -0
- package/es/modules/corporate/CorporateDefaultView/index.js +18 -0
- package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -0
- package/es/modules/corporate/DocumentIconList/index.d.ts +7 -0
- package/es/modules/corporate/DocumentIconList/index.js +32 -0
- package/es/modules/corporate/DocumentIconList/index.js.map +1 -0
- package/es/modules/corporate/DocumentIconList/index.less +14 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.d.ts +7 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.js +43 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.less +25 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.d.ts +6 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.js +91 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.less +36 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.d.ts +20 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.js +40 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.d.ts +6 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +31 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.less +22 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.d.ts +5 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js +59 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +15 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js +38 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +36 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +16 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +32 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +32 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +33 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +7 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +65 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +55 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +37 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +71 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.d.ts +23 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.js +55 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/hooks.d.ts +13 -0
- package/es/modules/corporate/company/Identity/data/hooks.js +31 -0
- package/es/modules/corporate/company/Identity/data/hooks.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/index.d.ts +4 -0
- package/es/modules/corporate/company/Identity/data/index.js +5 -0
- package/es/modules/corporate/company/Identity/data/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/interfaces.d.ts +17 -0
- package/es/modules/corporate/company/Identity/data/interfaces.js +1 -0
- package/es/modules/corporate/company/Identity/data/interfaces.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/types.d.ts +16 -0
- package/es/modules/corporate/company/Identity/data/types.js +1 -0
- package/es/modules/corporate/company/Identity/data/types.js.map +1 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.d.ts +6 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.js +54 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.d.ts +20 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.js +30 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.js.map +1 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.d.ts +6 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +33 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.less +48 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.d.ts +3 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js +15 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.d.ts +7 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +83 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.less +15 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +7 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +23 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.d.ts +6 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +51 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.less +20 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.d.ts +3 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +20 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.less +5 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +10 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +25 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +4 -8
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +14 -10
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +51 -55
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +17 -21
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js +19 -23
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +13 -12
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.less +2 -6
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +4 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js +15 -19
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +8 -14
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +10 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +34 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -0
- package/es/routes.d.ts +6 -0
- package/es/routes.js +14 -1
- package/es/routes.js.map +1 -1
- package/es/style/common.less +6 -0
- package/package.json +14 -25
- package/es/data/metas.d.ts +0 -0
- package/es/data/metas.js +0 -1
- package/es/data/metas.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { AsideContent } from "@voplus/morpho-ui";
|
|
4
|
+
import ContactInformation from "../ContactInformation";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
|
+
import IdentifyDetail from "../../Identity/IdentifyDetail";
|
|
7
|
+
import OfficerInformation from "../OfficerInformation";
|
|
8
|
+
import { Tabs } from "@voplus/antd";
|
|
9
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
10
|
+
const OfficerDefaultView = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
asideContext.openAside(AsideElement, { span: props.id ? 10 : 12 });
|
|
15
|
+
}, []);
|
|
16
|
+
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
17
|
+
React.createElement(DocumentTabs, { id: id })));
|
|
18
|
+
return (React.createElement(AsideContent, { context: asideContext, className: "officer-default-view" },
|
|
19
|
+
React.createElement("div", { className: "officer-default-view_content" },
|
|
20
|
+
React.createElement("div", { className: "officer-default-view_header" },
|
|
21
|
+
React.createElement(UnitAvatar, { id: props.id, size: 70 }),
|
|
22
|
+
React.createElement("div", { className: "officer-person-name" }, "Alex Kwok"),
|
|
23
|
+
React.createElement("div", null, "ABC Company")),
|
|
24
|
+
React.createElement(Tabs, { defaultActiveKey: "Officer" },
|
|
25
|
+
React.createElement(Tabs.TabPane, { tab: "Officer Details", key: "Officer" },
|
|
26
|
+
React.createElement(OfficerInformation, null)),
|
|
27
|
+
React.createElement(Tabs.TabPane, { tab: "Contact Details", key: "Contact" },
|
|
28
|
+
React.createElement(ContactInformation, { id: id })),
|
|
29
|
+
React.createElement(Tabs.TabPane, { tab: "Identify Details", key: "Identify" },
|
|
30
|
+
React.createElement(IdentifyDetail, { id: id }))))));
|
|
31
|
+
};
|
|
32
|
+
export default OfficerDefaultView;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;A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BACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,iBAAiB,EAAC,GAAG,EAAC,SAAS;oBAChD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CAChB;gBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,kBAAkB,EAAC,GAAG,EAAC,UAAU;oBAClD,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACZ,CACT,CACF,CACQ,CACf,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.officer-default-view {
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
.officer-default-view_content {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
}
|
|
11
|
+
.officer-default-view_header {
|
|
12
|
+
text-align: center;
|
|
13
|
+
padding: 20px 0 10px 0;
|
|
14
|
+
.officer-person-name {
|
|
15
|
+
color: #000;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
padding-top: 12px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.ant-tabs {
|
|
22
|
+
height: 100%;
|
|
23
|
+
.ant-tabs-nav {
|
|
24
|
+
margin: 0 20px;
|
|
25
|
+
}
|
|
26
|
+
.company-information {
|
|
27
|
+
padding: 15px 20px;
|
|
28
|
+
h3 {
|
|
29
|
+
margin-bottom: 15px;
|
|
30
|
+
color: #000;
|
|
31
|
+
}
|
|
32
|
+
&:hover {
|
|
33
|
+
.hover-edit-btn {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.hover-edit-btn {
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: none;
|
|
40
|
+
top: 15px;
|
|
41
|
+
right: 20px;
|
|
42
|
+
height: auto;
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Badge, Form } from "@voplus/antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
4
|
+
const OfficerInformation = () => {
|
|
5
|
+
return (React.createElement(Scrollbars, null,
|
|
6
|
+
React.createElement(Form, { labelAlign: "left", labelCol: { span: 6 }, className: "company-information" },
|
|
7
|
+
React.createElement(Form.Item, { label: "Status" },
|
|
8
|
+
React.createElement(Badge, { status: "success", text: "Present" }),
|
|
9
|
+
React.createElement("br", null),
|
|
10
|
+
React.createElement(Badge, { status: "error", text: "Past" })),
|
|
11
|
+
React.createElement(Form.Item, { label: "Appointment Date" }),
|
|
12
|
+
React.createElement(Form.Item, { label: "Cease Date" }))));
|
|
13
|
+
};
|
|
14
|
+
export default OfficerInformation;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Officer/OfficerInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,OAAO,CACN,oBAAC,UAAU;QACV,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAC,qBAAqB;YAC7E,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ;gBACxB,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG;gBACzC,+BAAM;gBACN,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACzB;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,kBAAkB,GAAa;YAChD,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,YAAY,GAAa,CACpC,CASK,CACb,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { FilterViewContextState } from "@voplus/morpho-ui/es/data/FilterViewContext";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { useShareTransactionListEffect, useShareTransactionStore } from "../../../../../data/shareTransaction";
|
|
6
|
+
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
|
7
|
+
import FilterView from "@voplus/morpho-ui/es/controls/FilterView/FilterView2";
|
|
8
|
+
import { Input } from "@voplus/antd";
|
|
9
|
+
import ListView2 from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
10
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
11
|
+
import OfficerStatusFilter from "../OfficerStatusFilter";
|
|
12
|
+
import ShareTransactionItem from "../../../../legalEntity/shareTransactionsRegister/ShareTransactionItem";
|
|
13
|
+
import { State } from "./state";
|
|
14
|
+
import TransactionTypeDropdown from "../../../../legalEntity/shareTransactionsRegister/TransactionTypeDropdown";
|
|
15
|
+
import TransactionTypeFilter from "../../../../legalEntity/shareTransactionsRegister/TransactionTypeFilter";
|
|
16
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
17
|
+
import { useObserver } from "mobx-react-lite";
|
|
18
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
19
|
+
const OfficerList = (props) => {
|
|
20
|
+
const { parentId, readonly } = props;
|
|
21
|
+
const shareStore = useShareTransactionStore();
|
|
22
|
+
const documentStore = useDocumentStore();
|
|
23
|
+
const list = useCreateListDataState({
|
|
24
|
+
filterDefaults: {
|
|
25
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }]
|
|
26
|
+
}
|
|
27
|
+
}, [parentId]);
|
|
28
|
+
const [filterViewState] = useState(new FilterViewContextState());
|
|
29
|
+
const state = useDeepMemo(() => new State(), []);
|
|
30
|
+
useAutoUpdateListData(list, d => d.type === "ShareTransaction");
|
|
31
|
+
useRenderOnChange(() => list.filters.options);
|
|
32
|
+
useShareTransactionListEffect(list, result => list.union(result), list.filters.options);
|
|
33
|
+
return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
34
|
+
React.createElement(ListView2, { headerProps: {
|
|
35
|
+
header: (React.createElement("div", { className: "officer-list-header" },
|
|
36
|
+
React.createElement("div", { className: "view-title" }, "Officer List"),
|
|
37
|
+
React.createElement("div", null,
|
|
38
|
+
React.createElement(FilterView, { columns: [
|
|
39
|
+
React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter" }),
|
|
40
|
+
React.createElement(TransactionTypeFilter, { key: "TransactionTypeFilter" })
|
|
41
|
+
] }),
|
|
42
|
+
!readonly && React.createElement(TransactionTypeDropdown, { onSelect: onSelect })))),
|
|
43
|
+
sortable: false,
|
|
44
|
+
addAble: false
|
|
45
|
+
}, renderItem: ({ item, index, connectDragSource, checkbox }) => (React.createElement(ShareTransactionItem, { key: item.id, id: item.id, connectDragSource: connectDragSource, className: index === 0 ? "shareTransaction-item-first" : "" })), moveAfter: moveAfter }),
|
|
46
|
+
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
47
|
+
React.createElement(Input, { autoFocus: true, value: state.name, onChange: e => (state.name = e.target.value), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: e => {
|
|
48
|
+
if (e.keyCode === 27)
|
|
49
|
+
state.addAble = false;
|
|
50
|
+
} }))))));
|
|
51
|
+
function onSelect(type) {
|
|
52
|
+
state.type = type;
|
|
53
|
+
state.addAble = !!type;
|
|
54
|
+
}
|
|
55
|
+
async function onSave() {
|
|
56
|
+
await shareStore.create({
|
|
57
|
+
ParentId: parentId,
|
|
58
|
+
Name: state.name,
|
|
59
|
+
TransactionType: state.type,
|
|
60
|
+
Currency: "SGD"
|
|
61
|
+
});
|
|
62
|
+
state.addAble = false;
|
|
63
|
+
state.name = "";
|
|
64
|
+
}
|
|
65
|
+
async function moveAfter(id, afterId) {
|
|
66
|
+
await documentStore.moveAfter(id, afterId);
|
|
67
|
+
}
|
|
68
|
+
function onFilter(value) {
|
|
69
|
+
list.reset();
|
|
70
|
+
const { customize } = value;
|
|
71
|
+
if (customize.transactionTypes && customize.transactionTypes.length)
|
|
72
|
+
list.filters.replace({
|
|
73
|
+
c: "TransactionType",
|
|
74
|
+
o: "contains",
|
|
75
|
+
v1: JSON.stringify(customize.transactionTypes),
|
|
76
|
+
l: "And"
|
|
77
|
+
});
|
|
78
|
+
if (!(filterViewState.customize && filterViewState.customize.transactionTypes))
|
|
79
|
+
filterViewState.customize = { transactionTypes: [] };
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export default OfficerList;
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEN,sBAAsB,EACtB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAEN,6BAA6B,EAC7B,wBAAwB,EACxB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AE,SAAS,EAAE,GAAG,KAAK,CAAC;QAC5B,IAAI,SAAS,CAAC,gBAAgB,IAAI,SAAS,CAAC,gBAAgB,CAAC,MAAM;YAClE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;gBACpB,CAAC,EAAE,iBAAiB;gBACpB,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,CAAC;gBAC9C,CAAC,EAAE,KAAK;aACR,CAAC,CAAC;QAEJ,IAAI,CAAC,CAAC,eAAe,CAAC,SAAS,IAAI,eAAe,CAAC,SAAS,CAAC,gBAAgB,CAAC;YAC7E,eAAe,CAAC,SAAS,GAAG,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC;IACvD,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
:global {
|
|
3
|
+
.create-shareTransaction-form {
|
|
4
|
+
padding: 10px 20px;
|
|
5
|
+
border-top: 1px solid @border-color-base;
|
|
6
|
+
:global {
|
|
7
|
+
.ant-input {
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: 0;
|
|
10
|
+
box-shadow: none;
|
|
11
|
+
color: @heading-color;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.name = "";
|
|
6
|
+
this.type = "Allotment";
|
|
7
|
+
this.addAble = false;
|
|
8
|
+
this.loading = false;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
__decorate([
|
|
12
|
+
observable
|
|
13
|
+
], State.prototype, "name", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
observable
|
|
16
|
+
], State.prototype, "type", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
observable
|
|
19
|
+
], State.prototype, "addAble", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], State.prototype, "loading", void 0);
|
|
23
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACoB,SAAI,GAAG,EAAE,CAAC;QACV,SAAI,GAAyB,WAAW,CAAC;QACzC,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAJY;IAAX,UAAU;mCAAkB;AACjB;IAAX,UAAU;mCAAiD;AAChD;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// import "./index.less";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
import { Archive, Reload, Sidebar } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import React, { useEffect, useState } from "react";
|
|
5
|
+
import { useRouteMatch } from "react-router";
|
|
6
|
+
import { useDocument, useDocumentStore } from "@voplus/morpho-document-core";
|
|
7
|
+
import { AsideContent } from "@voplus/morpho-ui";
|
|
8
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
9
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
10
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
11
|
+
import OfficerList from "../OfficerList";
|
|
12
|
+
import { Skeleton } from "@voplus/antd";
|
|
13
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
14
|
+
import { useObserver } from "mobx-react-lite";
|
|
15
|
+
import { useTabItem } from "@voplus/morpho-data";
|
|
16
|
+
// import ShareTransactionList from "../ShareTransactionList";
|
|
17
|
+
const OfficerRegisterDefaultView = (props) => {
|
|
18
|
+
const match = useRouteMatch();
|
|
19
|
+
const id = props.id || match.params.id;
|
|
20
|
+
const [reload, setReload] = useState(true);
|
|
21
|
+
const shareTransaction = useDocument(id, { reload, includes: "tags" });
|
|
22
|
+
const documentStore = useDocumentStore();
|
|
23
|
+
const tab = useTabItem();
|
|
24
|
+
tab.title = (shareTransaction && shareTransaction.name) || "";
|
|
25
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
asideContext.openAside(AsideElement, { span: 12 });
|
|
28
|
+
}, []);
|
|
29
|
+
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
30
|
+
React.createElement(DocumentTabs, { id: id })));
|
|
31
|
+
return useObserver(() => (React.createElement(AsideContent, { context: asideContext, className: "officer-register-default-view" },
|
|
32
|
+
React.createElement("div", { className: "officer-register-default-view_content" },
|
|
33
|
+
shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
34
|
+
React.createElement(Skeleton, { active: true }))) : (React.createElement("header", null,
|
|
35
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickDataBarAlign: "left", tools: React.createElement(ToolBar, { id: id },
|
|
36
|
+
React.createElement(Reload, { action: onReLoad }),
|
|
37
|
+
React.createElement(Sidebar, { action: () => asideContext.asideContent
|
|
38
|
+
? asideContext.closeAside()
|
|
39
|
+
: asideContext.openAside(AsideElement, { span: 12 }) }),
|
|
40
|
+
React.createElement(Archive, null)) }),
|
|
41
|
+
React.createElement(DescriptionEditor, { id: id, description: shareTransaction.description, readonly: shareTransaction.readonly, padding: "0 0 0.75rem 0" }))),
|
|
42
|
+
reload && React.createElement(OfficerList, { parentId: id, readonly: shareTransaction.readonly })))));
|
|
43
|
+
function onReLoad() {
|
|
44
|
+
setReload(false);
|
|
45
|
+
setTimeout(() => {
|
|
46
|
+
setReload(true);
|
|
47
|
+
}, 100);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export default OfficerRegisterDefaultView;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,yBAAyB;AAEzB,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,8DAA8D;AAE9D,MAAM,0BAA0B,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC7D,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IACvC,MAAM,CAAC,MAAM,EAAE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,OAAO,IACP,MAAM,EAAE,GAAG,EAAE,CACZ,YAAY,CAAC,YAAY;gCACxB,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;gCAC3B,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAErD;wBACF,oBAAC,OAAO,OAAG,CACF,GAEV;gBACF,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,gBAAgB,CAAC,WAAW,EACzC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EACnC,OAAO,EAAC,eAAe,GACtB,CACM,CACT;YAIA,MAAM,IAAI,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,GAAI,CAExE,CACQ,CACf,CAAC,CAAC;IACH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import "../../../../../style/common.less";
|
|
2
|
+
:global {
|
|
3
|
+
.officer-register-default-view {
|
|
4
|
+
padding: 0 !important;
|
|
5
|
+
.officer-register-default-view_content {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
.officer-list-header {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex: 1;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
line-height: 21px;
|
|
16
|
+
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { State } from "./state";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
|
6
|
+
const menuList = ["Present", "Past"];
|
|
7
|
+
const OfficerStatusFilter = () => {
|
|
8
|
+
/** 引入父組件的 FilterOptionsContextState */
|
|
9
|
+
const context = useFilterOptionsContext();
|
|
10
|
+
/** 尝试从 context 取得 State, 如果没有的话context会使用第二个factory参数创建一个State. */
|
|
11
|
+
const state = context.getFilterState("DocumentStatus", () => new State());
|
|
12
|
+
return useObserver(() => (React.createElement("div", { className: "transaction-type-filter" },
|
|
13
|
+
React.createElement("div", { className: "menu-item-title" }, "TransactionType"),
|
|
14
|
+
menuList.map((status) => (React.createElement("div", { key: status, className: classnames("filter-menu-item", {
|
|
15
|
+
bold: state.status === status
|
|
16
|
+
}), onClick: () => (state.status = status) },
|
|
17
|
+
React.createElement("div", { className: "filter-name" }, status)))))));
|
|
18
|
+
};
|
|
19
|
+
export default OfficerStatusFilter;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAErC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,uCAAuC;IACvC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,mEAAmE;IACnE,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAE1E,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAC,yBAAyB;QACvC,6BAAK,SAAS,EAAC,iBAAiB,sBAAsB;QACrD,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,CACjC,6BACC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,MAAM,KAAK,MAAM;aAC7B,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;YAEtC,6BAAK,SAAS,EAAC,aAAa,IAAE,MAAM,CAAO,CACtC,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FilterOption } from "@voplus/morpho-data";
|
|
2
|
+
import { IFilterState } from "@voplus/morpho-ui/es/data";
|
|
3
|
+
/** DocumentStatusFilter的 State, 实现 IFilterState 接口 */
|
|
4
|
+
export declare class State implements IFilterState {
|
|
5
|
+
/** Status of document of filter */
|
|
6
|
+
status: string;
|
|
7
|
+
/** 视乎State内容,返回正确的FilterOption[]. 在Filter时,Context 会使用此属性replace Context内FilterOption的资料。 */
|
|
8
|
+
get filters(): FilterOption[];
|
|
9
|
+
reset(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
/** DocumentStatusFilter的 State, 实现 IFilterState 接口 */
|
|
4
|
+
export class State {
|
|
5
|
+
/** 视乎State内容,返回正确的FilterOption[]. 在Filter时,Context 会使用此属性replace Context内FilterOption的资料。 */
|
|
6
|
+
get filters() {
|
|
7
|
+
if (!this.status)
|
|
8
|
+
return [];
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
c: "CeaseDate",
|
|
12
|
+
o: "contains",
|
|
13
|
+
v1: this.status === "Present" ? null : "",
|
|
14
|
+
l: "And"
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
reset() {
|
|
19
|
+
this.status = "";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
observable
|
|
24
|
+
], State.prototype, "status", void 0);
|
|
25
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAU,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1C,sDAAsD;AACtD,MAAM,OAAO,KAAK;IAIjB,6FAA6F;IAC7F,IAAW,OAAO;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QAC5B,OAAO;YACN;gBACC,CAAC,EAAE,WAAW;gBACd,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;gBACzC,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IAEM,KAAK;QACX,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IAClB,CAAC;CACD;AAlBY;IAAX,UAAU;qCAAuB"}
|
package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js
CHANGED
|
@@ -5,14 +5,12 @@ import React, { useEffect, useState } from "react";
|
|
|
5
5
|
import { useRouteMatch } from "react-router";
|
|
6
6
|
import CurrencyView from "../../../../components/CurrencyView";
|
|
7
7
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
8
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
8
9
|
import DocumentName from "@voplus/morpho-document/es/components/DocumentName";
|
|
9
10
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
10
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
11
|
-
import RichTextEditor from "@voplus/morpho-ui/es/controls/RichTextEditor";
|
|
12
11
|
import ShareTransactionItems from "../ShareTransactionItems";
|
|
13
12
|
import { Skeleton } from "@voplus/antd";
|
|
14
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar";
|
|
15
|
-
import { faEdit } from "@fortawesome/pro-light-svg-icons";
|
|
16
14
|
import moment from "moment";
|
|
17
15
|
import { useObserver } from "mobx-react-lite";
|
|
18
16
|
import { useTabItem } from "@voplus/morpho-data";
|
|
@@ -44,9 +42,9 @@ const ShareTransactionDefaultView = () => {
|
|
|
44
42
|
shareTransaction.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement("div", { className: "shareTransaction-item-info" },
|
|
45
43
|
React.createElement("div", null,
|
|
46
44
|
React.createElement("div", { className: "bold" }, "Date"),
|
|
47
|
-
React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareTransaction.readonly, defaultValue: moment(shareTransaction.date), content: v => (React.createElement(React.Fragment, null, v.store.value ? moment(v.store.value).format("YYYY
|
|
45
|
+
React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareTransaction.readonly, defaultValue: moment(shareTransaction.date), content: v => (React.createElement(React.Fragment, null, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: v => v
|
|
48
46
|
? shareStore.edit(id, {
|
|
49
|
-
Date:
|
|
47
|
+
Date: v.format("DD MMM YYYY")
|
|
50
48
|
})
|
|
51
49
|
: null })),
|
|
52
50
|
React.createElement("div", null,
|
|
@@ -56,9 +54,7 @@ const ShareTransactionDefaultView = () => {
|
|
|
56
54
|
React.createElement("div", { className: "bold" }, "Currency"),
|
|
57
55
|
React.createElement(CurrencyView, { readonly: shareTransaction.readonly, currency: shareTransaction.currency, onChange: currency => shareStore.edit(id, { Currency: currency }) })))),
|
|
58
56
|
shareTransaction.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(ShareTransactionItems, { data: shareTransaction })),
|
|
59
|
-
React.createElement("div", { style: { paddingTop: "15px" } }, shareTransaction.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(
|
|
60
|
-
React.createElement(FAIcon, { icon: faEdit }),
|
|
61
|
-
"Add Description")), onSave: v => shareStore.edit(id, { Description: v }) })))))));
|
|
57
|
+
React.createElement("div", { style: { paddingTop: "15px" } }, shareTransaction.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(DescriptionEditor, { id: id, description: shareTransaction.description, readonly: shareTransaction.readonly, padding: "0 0 0.75rem 0" })))))));
|
|
62
58
|
function onReLoad() {
|
|
63
59
|
setReload(false);
|
|
64
60
|
setTimeout(() => {
|
package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAGN,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAGN,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAE9E,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAElE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACxC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/E,MAAM,UAAU,GAAG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AAQ,EAAE,gBAAgB,CAAC,QAAQ,EACnC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,GAChE,CACG,CACD,CACN;YACA,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAC3B,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,oBAAC,qBAAqB,IAAC,IAAI,EAAE,gBAAgB,GAAI,CACjD;YACD,6BAAK,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,IAChC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAC3B,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,gBAAgB,CAAC,WAAW,EACzC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EACnC,OAAO,EAAC,eAAe,GACtB,CACF,CACI,CACD,CACQ,CACf,CAAC,CAAC;IACH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -3,10 +3,11 @@ import React, { useState } from "react";
|
|
|
3
3
|
import { useShareTransaction, useShareTransactionStore } from "../../../../data/shareTransaction";
|
|
4
4
|
import CurrencyView from "../../../../components/CurrencyView";
|
|
5
5
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
6
|
-
import
|
|
6
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
7
7
|
import { InlineEdit } from "@voplus/morpho-ui";
|
|
8
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
8
9
|
import ShareMovementsDataIcon from "../ShareMovementsDataIcon";
|
|
9
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar";
|
|
10
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
11
|
import classnames from "classnames";
|
|
11
12
|
import moment from "moment";
|
|
12
13
|
import { useObserver } from "mobx-react-lite";
|
|
@@ -18,19 +19,22 @@ const ShareTransactionItem = (props) => {
|
|
|
18
19
|
});
|
|
19
20
|
const [hover, setHover] = useState(false);
|
|
20
21
|
const shareStore = useShareTransactionStore();
|
|
21
|
-
return useObserver(() => (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
return useObserver(() => (
|
|
23
|
+
// <div
|
|
24
|
+
// className={classnames("shareTransaction-item", className, { hover })}
|
|
25
|
+
// onMouseOver={() => setHover(true)}
|
|
26
|
+
// onMouseLeave={() => setHover(false)}
|
|
27
|
+
// >
|
|
28
|
+
React.createElement(DocumentHeader, { id: id, preVisible: false, flagVisible: false, itemHover: true, onMouse: over => setHover(over), className: classnames("shareTransaction-item", className, { hover }), quickDataBar: React.createElement("div", { className: "shareTransaction-item-info" },
|
|
29
|
+
React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareTransaction.readonly, defaultValue: shareTransaction.date ? moment(shareTransaction.date) : undefined, content: v => (React.createElement("span", { className: "transaction-date" }, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: v => v
|
|
25
30
|
? shareStore.edit(id, {
|
|
26
|
-
Date:
|
|
31
|
+
Date: v.format("DD MMM YYYY")
|
|
27
32
|
})
|
|
28
33
|
: null }),
|
|
29
34
|
React.createElement("span", { className: "transaction-type" }, shareTransaction.transactionType),
|
|
30
35
|
React.createElement(CurrencyView, { currency: shareTransaction.currency, readonly: shareTransaction.readonly, className: "transaction-currency", onChange: currency => shareStore.edit(id, { Currency: currency }) }),
|
|
31
|
-
!!(shareTransaction.lines && shareTransaction.lines.length) && (React.createElement(ShareMovementsDataIcon, { lines: shareTransaction.lines }))),
|
|
32
|
-
|
|
33
|
-
React.createElement(ToolBar, { id: id, includes: "tags", size: "middle", url: `/shareTransactions/${id}` })))));
|
|
36
|
+
!!(shareTransaction.lines && shareTransaction.lines.length) && (React.createElement(ShareMovementsDataIcon, { lines: shareTransaction.lines }))), tools: React.createElement(ToolBar, { id: id, menuProps: { url: `/shareTransactions/${id}`, size: "middle" } },
|
|
37
|
+
React.createElement(Open, { size: "middle", url: `/shareTransactions/${id}` })) })));
|
|
34
38
|
};
|
|
35
39
|
export default ShareTransactionItem;
|
|
36
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,EAAE,UAAU,EA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