@voplus/morpho-csp 6.0.84 → 6.0.85
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/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +2 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js +26 -29
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.js +12 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.js +44 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.less +43 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +10 -7
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +3 -0
- package/package.json +1 -1
- /package/es/modules/corporate/company/share-transactions-register/components/{ShareTablePreview → ShareTablePreviewPopover}/index.less +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import "./index.less";
|
|
2
|
+
import { IShareTransactionLine } from "../../../../../../data/share-transaction";
|
|
4
3
|
declare const ShareTablePreview: (props: {
|
|
5
|
-
|
|
4
|
+
lines: IShareTransactionLine[];
|
|
6
5
|
}) => React.JSX.Element;
|
|
7
6
|
export default ShareTablePreview;
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
const columns = [
|
|
5
|
-
{
|
|
6
|
-
title: "Shareholder",
|
|
7
|
-
dataIndex: "shareholder",
|
|
8
|
-
render: (text, record) => record.shareholder.name,
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
title: "Share Type",
|
|
12
|
-
dataIndex: "class",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
title: "Shares",
|
|
16
|
-
dataIndex: "shares",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
title: "Currency",
|
|
20
|
-
dataIndex: "currency",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
title: "Consideration",
|
|
24
|
-
dataIndex: "consideration",
|
|
25
|
-
},
|
|
26
|
-
];
|
|
2
|
+
import { Table } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
27
4
|
const ShareTablePreview = (props) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
5
|
+
const columns = [
|
|
6
|
+
{
|
|
7
|
+
title: "Shareholder",
|
|
8
|
+
dataIndex: "shareholder",
|
|
9
|
+
render: (text, record) => record.shareholder.name,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: "Share Type",
|
|
13
|
+
dataIndex: "class",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: "Shares",
|
|
17
|
+
dataIndex: "shares",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: "Currency",
|
|
21
|
+
dataIndex: "currency",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "Consideration",
|
|
25
|
+
dataIndex: "consideration",
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
return observe(() => (React.createElement(Table, { className: "share-table-preview", columns: columns, rowKey: "id", dataSource: props.lines, pagination: false })));
|
|
32
29
|
};
|
|
33
30
|
export default ShareTablePreview;
|
|
34
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,iBAAiB,GAAG,CAAC,KAAyC,EAAE,EAAE;IACvE,MAAM,OAAO,GAAG;QACf;YACC,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,CAAC,IAAS,EAAE,MAA6B,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI;SAC7E;QACD;YACC,KAAK,EAAE,YAAY;YACnB,SAAS,EAAE,OAAO;SAClB;QACD;YACC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,QAAQ;SACnB;QACD;YACC,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,UAAU;SACrB;QACD;YACC,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,eAAe;SAC1B;KACD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IAAC,SAAS,EAAC,qBAAqB,EAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC,IAAI,EAAC,UAAU,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAI,CACnH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IShareTransaction } from "../../../../../../data/share-transaction";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare const ShareTablePreviewPopover: (props: {
|
|
5
|
+
shareTransaction: IShareTransaction;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export default ShareTablePreviewPopover;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Popover } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import ShareTablePreview from "../ShareTablePreview";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
const ShareTablePreviewPopover = (props) => {
|
|
7
|
+
const { shareTransaction } = props;
|
|
8
|
+
return observe(() => shareTransaction.lines && shareTransaction.lines.length ? (React.createElement(Popover, { placement: "topLeft", title: "ShareTransaction Lines", content: React.createElement(ShareTablePreview, { lines: shareTransaction.lines }), overlayClassName: "share-movements-data-popover" },
|
|
9
|
+
React.createElement("span", null, shareTransaction.transactionType))) : (React.createElement("span", null, shareTransaction.transactionType)));
|
|
10
|
+
};
|
|
11
|
+
export default ShareTablePreviewPopover;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAErD,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,CAAC,KAA8C,EAAE,EAAE;IACnF,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,gBAAgB,CAAC,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACzD,oBAAC,OAAO,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,wBAAwB,EAC9B,OAAO,EAAE,oBAAC,iBAAiB,IAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,GAAI,EAC7D,gBAAgB,EAAC,8BAA8B;QAE/C,kCAAO,gBAAgB,CAAC,eAAe,CAAQ,CACtC,CACV,CAAC,CAAC,CAAC,CACH,kCAAO,gBAAgB,CAAC,eAAe,CAAQ,CAC/C,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { useShareTransaction, useShareTransactionStore, } from "../../../../../../data/share-transaction";
|
|
3
|
+
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
4
|
+
import { Badge, Space, Empty } from "antd";
|
|
5
|
+
import ShareTablePreview from "../ShareTablePreview";
|
|
6
|
+
import ShareTransactionPropertiesView from "../ShareTransactionPropertiesView";
|
|
7
|
+
import ShareTransactionQuickViewDialog from "../ShareTransactionQuickViewDialog";
|
|
8
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
9
|
+
import { State } from "../ShareTransactionProperties/state";
|
|
10
|
+
import TagView from "@voplus/morpho-document/es/components/TagView";
|
|
11
|
+
import classnames from "classnames";
|
|
12
|
+
import { observe } from "@voplus/morpho-ui";
|
|
13
|
+
import { runInAction } from "mobx";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
16
|
+
import { useVerificationStore } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
|
|
17
|
+
const ShareTransactionCard = (props) => {
|
|
18
|
+
const { id } = props;
|
|
19
|
+
const shareTransaction = useShareTransaction(id);
|
|
20
|
+
const store = useShareTransactionStore();
|
|
21
|
+
const verifyStore = useVerificationStore();
|
|
22
|
+
const [state] = useState(new State(verifyStore));
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
runInAction(() => {
|
|
25
|
+
state.id = id;
|
|
26
|
+
state.load();
|
|
27
|
+
});
|
|
28
|
+
}, [id]);
|
|
29
|
+
return observe(() => (React.createElement(Card, { className: classnames("share-transaction-card"), bordered: true, shadow: true },
|
|
30
|
+
React.createElement("div", { className: "shareTransaction-card-content" },
|
|
31
|
+
React.createElement("div", { className: classnames("shareTransaction-header") },
|
|
32
|
+
React.createElement(ItemFunction, { className: "header-content", propertiesView: React.createElement(ShareTransactionPropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(ShareTransactionQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
33
|
+
React.createElement(Space, null,
|
|
34
|
+
state.confirmed && React.createElement(Badge, { status: "success" }),
|
|
35
|
+
React.createElement("span", { className: "header-type" }, shareTransaction.transactionType)),
|
|
36
|
+
React.createElement("div", { className: "header-info" },
|
|
37
|
+
React.createElement("div", { className: "header-name" }, shareTransaction.name),
|
|
38
|
+
React.createElement(TagView, { id: id, tags: shareTransaction.tags, editable: !shareTransaction.readonly, items: store.items })))),
|
|
39
|
+
shareTransaction.lines.length ? (React.createElement(ShareTablePreview, { lines: shareTransaction.lines })) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })),
|
|
40
|
+
React.createElement("div", { className: classnames("shareTransaction-footer") },
|
|
41
|
+
React.createElement(UTCShortDate, { value: shareTransaction.date }))))));
|
|
42
|
+
};
|
|
43
|
+
export default ShareTransactionCard;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components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KAAK,CAAC,sBAAsB,GAAI,CAC9C;YACD,6BAAK,SAAS,EAAE,UAAU,CAAC,yBAAyB,CAAC;gBACpD,oBAAC,YAAY,IAAC,KAAK,EAAE,gBAAgB,CAAC,IAAI,GAAI,CACzC,CACD,CACA,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.share-transaction-card {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
margin: 24px;
|
|
7
|
+
padding: 20px 0 0 0 !important;
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
border: 1px solid rgb(210, 210, 210);
|
|
11
|
+
box-shadow: @more-box-shadow;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.shareTransaction-header {
|
|
15
|
+
padding: 0 40px 10px 20px;
|
|
16
|
+
border-bottom: 1px solid @border-color-1;
|
|
17
|
+
.header-content {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
.header-info {
|
|
21
|
+
flex: 1;
|
|
22
|
+
text-align: end;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.header-name {
|
|
26
|
+
color: @heading-subtitle-color;
|
|
27
|
+
}
|
|
28
|
+
.header-type {
|
|
29
|
+
font-size: @heading-size;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-empty-normal {
|
|
34
|
+
margin: 20px 0 0px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.shareTransaction-footer {
|
|
38
|
+
text-align: right;
|
|
39
|
+
color: @heading-subtitle-color;
|
|
40
|
+
padding: 16px 40px 16px 20px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -6,7 +6,7 @@ import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
|
6
6
|
import { Badge } from "antd";
|
|
7
7
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
8
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
9
|
-
import
|
|
9
|
+
import ShareTablePreviewPopover from "../ShareTablePreviewPopover";
|
|
10
10
|
import { State } from "../ShareTransactionProperties/state";
|
|
11
11
|
import TagView from "@voplus/morpho-document/es/components/TagView";
|
|
12
12
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
@@ -37,7 +37,7 @@ const ShareTransactionItem = (props) => {
|
|
|
37
37
|
React.createElement(UTCShortDate, { value: shareTransaction.date }))),
|
|
38
38
|
React.createElement(ColumnItemCol, { span: 3, label: "Type" },
|
|
39
39
|
React.createElement("div", { className: "share-transaction-item-data-info" },
|
|
40
|
-
React.createElement(
|
|
40
|
+
React.createElement(ShareTablePreviewPopover, { shareTransaction: shareTransaction }))),
|
|
41
41
|
React.createElement(ColumnItemCol, { span: 3, label: "Confirm", align: "center" },
|
|
42
42
|
React.createElement("div", { className: "share-transaction-item-data-info" }, state.confirmed && React.createElement(Badge, { status: "success" }))),
|
|
43
43
|
React.createElement(ColumnItemCol, { span: 4, label: "Tag" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAa,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAa,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sFAAsF,CAAC;AAE5H,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACj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wB,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,CAC3D,CACS;YAIhB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAC,KAAK,EAAC,QAAQ;gBACrD,6BAAK,SAAS,EAAC,kCAAkC,IAC/C,KAAK,CAAC,SAAS,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,GAAG,CACzC,CACS;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,KAAK;gBAClC,6BAAK,SAAS,EAAC,kCAAkC;oBAChD,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAC3B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EACpC,KAAK,EAAE,KAAK,CAAC,KAAK,GACjB,CACG,CACS;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;gBACvC,6BAAK,SAAS,EAAE,UAAU,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBACzE,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACnD,CACL,CACS,CACJ,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -4,12 +4,13 @@ import React, { useState } from "react";
|
|
|
4
4
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
5
5
|
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
|
6
6
|
import { useShareTransactionListEffect, useShareTransactionStore, } from "../../../../../../data/share-transaction";
|
|
7
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
7
8
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
8
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
10
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
10
11
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
11
12
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
12
|
-
import
|
|
13
|
+
import ShareTransactionCard from "../ShareTransactionCard";
|
|
13
14
|
import ShareTransactionPropertiesView from "../ShareTransactionPropertiesView";
|
|
14
15
|
import { State } from "./state";
|
|
15
16
|
import TransactionTypeFilter from "../../controls/TransactionTypeFilter";
|
|
@@ -21,6 +22,7 @@ import { useDeepMemo } from "@voplus/morpho-data";
|
|
|
21
22
|
const ShareTransactionList = (props) => {
|
|
22
23
|
const { shareTransactionId, corporateId, memberId, headerTitle } = props;
|
|
23
24
|
const [shareTransactionTotal, setShareTransactionTotal] = useState(0);
|
|
25
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
24
26
|
const shareStore = useShareTransactionStore();
|
|
25
27
|
const documentStore = useDocumentStore();
|
|
26
28
|
const corporateStore = useCorporateStore();
|
|
@@ -64,12 +66,13 @@ const ShareTransactionList = (props) => {
|
|
|
64
66
|
}, moreFunBtn: toolBtns }));
|
|
65
67
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
66
68
|
React.createElement("div", { className: styles["share-transaction-list"] },
|
|
67
|
-
React.createElement(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
React.createElement(
|
|
69
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
70
|
+
React.createElement(ListView, { className: "list-content", headerProps: {
|
|
71
|
+
header: header,
|
|
72
|
+
sortable: false,
|
|
73
|
+
addAble: false,
|
|
74
|
+
}, asideable: false, propertiesView: (id) => React.createElement(ShareTransactionPropertiesView, { id: id }), renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id },
|
|
75
|
+
React.createElement(ShareTransactionCard, { id: item.id }))), moveAfter: moveAfter })),
|
|
73
76
|
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
74
77
|
React.createElement(Input, { autoFocus: true, value: state.name, onChange: (e) => runInAction(() => (state.name = e.target.value)), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: (e) => {
|
|
75
78
|
if (e.key === "Escape")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAA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