@voplus/morpho-csp 1.2.176 → 1.2.177
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.js +1 -1
- package/es/Modules.js.map +1 -1
- package/es/data/share-transaction/ShareTransactionStore.js.map +1 -0
- package/es/data/share-transaction/hooks.js.map +1 -0
- package/es/data/share-transaction/index.js.map +1 -0
- package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransaction.d.ts +1 -0
- package/es/data/share-transaction/interfaces/IShareTransaction.js.map +1 -0
- package/es/data/share-transaction/interfaces/IShareTransactionLine.js.map +1 -0
- package/es/data/share-transaction/interfaces/index.js.map +1 -0
- package/es/data/share-transaction/metas.js.map +1 -0
- package/es/data/share-transaction/types/ShareLineCreateOptions.js.map +1 -0
- package/es/data/share-transaction/types/ShareTransactionCreateOptions.js.map +1 -0
- package/es/data/share-transaction/types/ShareTransactionEditOptions.js.map +1 -0
- package/es/data/share-transaction/types/ShareTransactionType.js.map +1 -0
- package/es/data/share-transaction/types/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +1 -1
- 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/ShareTransactionItem/index.less +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +6 -6
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +1 -1
- 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 +6 -6
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +2 -2
- 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/state.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.d.ts +26 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +66 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.d.ts +3 -10
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js +22 -10
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +37 -89
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +42 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js +10 -8
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +21 -62
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +85 -89
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +3 -3
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionList/state.d.ts +1 -1
- package/es/{modules/corporate/company/share-transactions-register/components → obsolete}/ShareTransactionPropertiesView/Content.js +3 -4
- package/es/obsolete/ShareTransactionPropertiesView/Content.js.map +1 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.d.ts +13 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.js +15 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.js.map +1 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.less +89 -0
- package/es/routes.js +3 -3
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +0 -1
- package/es/data/shareTransaction/hooks.js.map +0 -1
- package/es/data/shareTransaction/index.js.map +0 -1
- package/es/data/shareTransaction/interfaces/IShareTransaction.js.map +0 -1
- package/es/data/shareTransaction/interfaces/IShareTransactionLine.js.map +0 -1
- package/es/data/shareTransaction/interfaces/index.js.map +0 -1
- package/es/data/shareTransaction/metas.js.map +0 -1
- package/es/data/shareTransaction/types/ShareLineCreateOptions.js.map +0 -1
- package/es/data/shareTransaction/types/ShareTransactionCreateOptions.js.map +0 -1
- package/es/data/shareTransaction/types/ShareTransactionEditOptions.js.map +0 -1
- package/es/data/shareTransaction/types/ShareTransactionType.js.map +0 -1
- package/es/data/shareTransaction/types/index.js.map +0 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +0 -1
- /package/es/data/{shareTransaction → share-transaction}/ShareTransactionStore.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/ShareTransactionStore.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/hooks.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/hooks.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/index.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/index.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransaction.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransactionLine.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransactionLine.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/index.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/index.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/metas.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/metas.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareLineCreateOptions.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareLineCreateOptions.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionCreateOptions.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionCreateOptions.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionEditOptions.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionEditOptions.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionType.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionType.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/index.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/index.js +0 -0
- /package/es/{modules/corporate/company/share-transactions-register/components → obsolete}/ShareTransactionPropertiesView/Content.d.ts +0 -0
|
@@ -1,89 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.ant-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
.ant-table-thead > tr > th {
|
|
40
|
-
padding: 10px;
|
|
41
|
-
}
|
|
42
|
-
.ant-table-tbody > tr > td {
|
|
43
|
-
padding: 5px 10px;
|
|
44
|
-
min-width: 120px;
|
|
45
|
-
height: 54px;
|
|
46
|
-
&.column-dnd {
|
|
47
|
-
min-width: 40px;
|
|
48
|
-
text-align: center;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.editable-cell-wrap {
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
align-items: center;
|
|
55
|
-
> div {
|
|
56
|
-
flex: 1;
|
|
57
|
-
}
|
|
58
|
-
.ant-empty {
|
|
59
|
-
width: 100%;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
.ant-table-footer {
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding: 10px 0;
|
|
67
|
-
.operate {
|
|
68
|
-
flex: 1;
|
|
69
|
-
.cancel {
|
|
70
|
-
color: #666;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
.total {
|
|
74
|
-
display: inline-block;
|
|
75
|
-
min-width: calc((100% - 40px) / 5);
|
|
76
|
-
padding-left: 10px;
|
|
77
|
-
span {
|
|
78
|
-
margin-left: 5px;
|
|
79
|
-
font-size: 15px;
|
|
80
|
-
font-weight: 500;
|
|
81
|
-
}
|
|
82
|
-
& + .total {
|
|
83
|
-
margin-left: calc((100% - 40px) / 5);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.share-transaction-properties-view {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
|
|
9
|
+
.share-transaction-details {
|
|
10
|
+
padding: 0 20px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ant-tabs {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
height: 100%;
|
|
17
|
+
|
|
18
|
+
.ant-tabs-content {
|
|
19
|
+
height: 100%;
|
|
20
|
+
padding-bottom: 0px !important;
|
|
21
|
+
|
|
22
|
+
.ant-tabs-tabpane {
|
|
23
|
+
position: relative;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ant-tabs-bar {
|
|
29
|
+
margin: 0 20px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ant-tabs-nav {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge } from "@voplus/antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
6
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
7
|
+
import ShareTransactionProperties from "../ShareTransactionProperties";
|
|
8
|
+
const ShareTransactionTabs = (props) => {
|
|
9
|
+
const { id, properties, details } = props;
|
|
10
|
+
const [docTotals, setDocTotals] = useState(0);
|
|
11
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
12
|
+
Total: true,
|
|
13
|
+
List: false,
|
|
14
|
+
Filters: [
|
|
15
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: id },
|
|
16
|
+
{
|
|
17
|
+
c: "Type",
|
|
18
|
+
o: "!contains",
|
|
19
|
+
l: "And",
|
|
20
|
+
v1: JSON.stringify(["Task"]),
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
24
|
+
const preData = [
|
|
25
|
+
{
|
|
26
|
+
key: "Document",
|
|
27
|
+
title: (React.createElement(React.Fragment, null,
|
|
28
|
+
"Document",
|
|
29
|
+
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
30
|
+
content: React.createElement(DocumentList, { id: id, exclude: ["Task"], multiple: true, viewTitle: " ", total: false }),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
properties &&
|
|
34
|
+
preData.unshift({
|
|
35
|
+
key: "Properties",
|
|
36
|
+
title: "Properties",
|
|
37
|
+
content: React.createElement(ShareTransactionProperties, { id: id }),
|
|
38
|
+
});
|
|
39
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, docTab: false, active: properties ? "Properties" : "", preData: preData, details: details, propertiesSort: ["details", "preData", "Activities", "Links"] })));
|
|
40
|
+
};
|
|
41
|
+
export default ShareTransactionTabs;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AAEvE,MAAM,oBAAoB,GAAG,CAAC,KAAgE,EAAE,EAAE;IACjG,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,OA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AAY,CAAC,CAAC,CAAC,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,GAC5D,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -21,14 +21,16 @@ const ShareholderSelector = (props) => {
|
|
|
21
21
|
state.loading = false;
|
|
22
22
|
}, {
|
|
23
23
|
Page: { Page: 1, PageSize: 1000 },
|
|
24
|
-
Filters:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
Filters: props.memberId
|
|
25
|
+
? [
|
|
26
|
+
{
|
|
27
|
+
c: "ParentNodeId",
|
|
28
|
+
o: "=",
|
|
29
|
+
l: "And",
|
|
30
|
+
v1: props.memberId,
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
: [],
|
|
32
34
|
});
|
|
33
35
|
// set or add a new selection to values
|
|
34
36
|
const selectOnSelect = (value, option) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAkB,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,mBAAmB,GAAG,CAAC,KAK5B,EAAE,EAAE;IACJ,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC/C,iBAAiB;IACjB,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAmB,EAAE,CAAC,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;IACjD,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,mBAAmB,CAClB,IAAI,EACJ,CAAC,IAAI,EAAE,EAAE;QACR,QAAQ,CAAC,IAAI,CAAC,CAAC;QACf,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC,EACD;QACC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;QACjC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAkB,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAA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CAAC,IAAI,IACnF,IAAI,CAAC,OAAO,CAAC,IAAI,CACG,CACtB,CAAC,CACF,CACa,CACf,CAAC,CAAC;IACH,SAAS,WAAW,CAAC,KAAU,EAAE,MAAW;QAC3C,OAAQ,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7E,CAAC;AACF,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,75 +1,34 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { Archive, Reload, Sidebar, Versions, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
-
import { AsideContent, InlineEdit } from "@voplus/morpho-ui";
|
|
4
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
|
|
5
3
|
import { useRouteMatch } from "react-router";
|
|
6
|
-
import { useShareTransaction, useShareTransactionStore } from "../../../../../../data/shareTransaction";
|
|
7
|
-
import CurrencyView from "../../../../../../components/CurrencyView";
|
|
8
|
-
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
9
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
10
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
11
|
-
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
12
|
-
import ShareTransactionItems from "../../components/ShareTransactionItems";
|
|
13
|
-
import { Skeleton } from "@voplus/antd";
|
|
14
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
15
|
-
import moment from "moment";
|
|
16
4
|
import { observe } from "@voplus/morpho-ui";
|
|
17
|
-
import {
|
|
5
|
+
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
6
|
+
import { useShareTransaction } from "../../../../../../data/share-transaction";
|
|
7
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
8
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
9
|
+
import ShareTransactionItems from "../../components/ShareTransactionItems";
|
|
10
|
+
import ShareTransactionProperties from "../../components/ShareTransactionProperties";
|
|
11
|
+
import ShareTransactionTabs from "../../components/ShareTransactionTabs";
|
|
12
|
+
import styles from "./index.less";
|
|
13
|
+
/** The ShareTransaction Page component with router parameters support. */
|
|
18
14
|
const ShareTransactionDefaultView = () => {
|
|
19
15
|
const match = useRouteMatch();
|
|
20
16
|
const id = match.params.id;
|
|
21
|
-
const [reload, setReload] = useState(true);
|
|
22
|
-
const shareTransaction = useShareTransaction(id, { reload, includes: "tags" });
|
|
23
|
-
const shareStore = useShareTransactionStore();
|
|
24
17
|
const tab = useTabItem();
|
|
18
|
+
const store = new TabItemStore({ url: "" });
|
|
19
|
+
const frame = useFrame();
|
|
20
|
+
const shareTransaction = useShareTransaction(id, { reload: true, includes: "member-register" });
|
|
25
21
|
const [asideContext] = useState(AsideContent.createContext());
|
|
26
22
|
useEffect(() => {
|
|
27
|
-
|
|
28
|
-
}, []);
|
|
29
|
-
const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
|
|
30
|
-
React.createElement(DocumentTabs, { id: id })));
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
tab.title = (shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name) || "";
|
|
23
|
+
tab.title = (shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name) || "ShareTransaction";
|
|
33
24
|
}, [shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name]);
|
|
34
|
-
return observe(() => (React.createElement(
|
|
35
|
-
React.createElement(
|
|
36
|
-
|
|
37
|
-
React.createElement(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
? asideContext.closeAside()
|
|
42
|
-
: asideContext.openAside(AsideElement, { span: 12 }) }),
|
|
43
|
-
React.createElement(Archive, null),
|
|
44
|
-
React.createElement(Versions, null))) })),
|
|
45
|
-
shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
46
|
-
React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "shareTransaction-item-info" },
|
|
47
|
-
React.createElement("div", null,
|
|
48
|
-
React.createElement("div", { className: "bold" }, "Date"),
|
|
49
|
-
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
|
|
50
|
-
? shareStore.edit(id, {
|
|
51
|
-
data: {
|
|
52
|
-
Date: v.format("DD MMM YYYY"),
|
|
53
|
-
},
|
|
54
|
-
error: "message",
|
|
55
|
-
})
|
|
56
|
-
: null })),
|
|
57
|
-
React.createElement("div", null,
|
|
58
|
-
React.createElement("div", { className: "bold" }, "TransactionType"),
|
|
59
|
-
React.createElement("span", { className: "transaction-type" }, shareTransaction.transactionType)),
|
|
60
|
-
React.createElement("div", null,
|
|
61
|
-
React.createElement("div", { className: "bold" }, "Currency"),
|
|
62
|
-
React.createElement(CurrencyView, { readonly: shareTransaction.readonly, currency: shareTransaction.currency, onChange: (currency) => shareStore.edit(id, { data: { Currency: currency }, error: "message" }) })))),
|
|
63
|
-
shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
64
|
-
React.createElement(Skeleton, { active: true }))) : (React.createElement(ShareTransactionItems, { data: shareTransaction })),
|
|
65
|
-
shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
66
|
-
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: shareTransaction.description, readonly: shareTransaction.readonly, padding: "0.75rem 0" }))))));
|
|
67
|
-
function onReLoad() {
|
|
68
|
-
setReload(false);
|
|
69
|
-
setTimeout(() => {
|
|
70
|
-
setReload(true);
|
|
71
|
-
}, 100);
|
|
72
|
-
}
|
|
25
|
+
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
|
26
|
+
React.createElement(MainContent, { className: styles["share-transaction-default-view"], asideable: frame ? false : true },
|
|
27
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
28
|
+
React.createElement(ShareTransactionProperties, { id: id, headerVisible: true })),
|
|
29
|
+
React.createElement("div", { className: "share-transaction-context" },
|
|
30
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
31
|
+
React.createElement(ShareTransactionTabs, { id: id, details: React.createElement(ShareTransactionItems, { data: shareTransaction }) })))))));
|
|
73
32
|
};
|
|
74
33
|
export default ShareTransactionDefaultView;
|
|
75
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC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
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.share-transaction-default-view {
|
|
4
|
+
:global {
|
|
5
|
+
.main-content-nav {
|
|
6
|
+
width: 350px;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.share-transaction-context {
|
|
11
|
+
padding: 0;
|
|
12
|
+
background: #fff;
|
|
13
|
+
|
|
14
|
+
.ant-table {
|
|
15
|
+
.ant-table-container {
|
|
16
|
+
overflow-x: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-input-number {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ant-table-thead > tr > th {
|
|
24
|
+
padding: 10px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ant-table-tbody > tr > td {
|
|
28
|
+
padding: 5px 10px;
|
|
29
|
+
min-width: 120px;
|
|
30
|
+
height: 54px;
|
|
31
|
+
|
|
32
|
+
&.column-dnd {
|
|
33
|
+
min-width: 40px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.editable-cell-wrap {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
align-items: center;
|
|
42
|
+
|
|
43
|
+
> div {
|
|
44
|
+
flex: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ant-empty {
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ant-table-footer {
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
align-items: center;
|
|
56
|
+
padding: 10px 0;
|
|
57
|
+
|
|
58
|
+
.operate {
|
|
59
|
+
flex: 1;
|
|
60
|
+
|
|
61
|
+
.cancel {
|
|
62
|
+
color: #666;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.total {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
min-width: calc((100% - 40px) / 5);
|
|
69
|
+
padding-left: 10px;
|
|
70
|
+
|
|
71
|
+
span {
|
|
72
|
+
margin-left: 5px;
|
|
73
|
+
font-size: 15px;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& + .total {
|
|
78
|
+
margin-left: calc((100% - 40px) / 5);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -6,11 +6,11 @@ import { AsideContent } from "@voplus/morpho-ui";
|
|
|
6
6
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
7
7
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
8
|
import ShareTransactionList from "../../components/ShareTransactionList";
|
|
9
|
-
import
|
|
9
|
+
import ShareTransactionTabs from "../../components/ShareTransactionTabs";
|
|
10
10
|
import { Skeleton } from "@voplus/antd";
|
|
11
11
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
12
|
import { observe } from "@voplus/morpho-ui";
|
|
13
|
-
import { useShareTransaction } from "../../../../../../data/
|
|
13
|
+
import { useShareTransaction } from "../../../../../../data/share-transaction";
|
|
14
14
|
import { useTabItem } from "@voplus/morpho-data";
|
|
15
15
|
const ShareTransactionRegisterDefaultView = () => {
|
|
16
16
|
const match = useRouteMatch();
|
|
@@ -25,7 +25,7 @@ const ShareTransactionRegisterDefaultView = () => {
|
|
|
25
25
|
useEffect(() => {
|
|
26
26
|
tab.title = (shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name) || "";
|
|
27
27
|
}, [shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name]);
|
|
28
|
-
const AsideElement = React.createElement(
|
|
28
|
+
const AsideElement = React.createElement(ShareTransactionTabs, { id: id });
|
|
29
29
|
return observe(() => (React.createElement(AsideContent, { context: asideContext, className: "share-transaction-aside-content" },
|
|
30
30
|
React.createElement("div", { className: "csp-default-view share-transaction-register-view" },
|
|
31
31
|
shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,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;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,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,c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AAI,CACrF,CAEI,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,mCAAmC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShareTransactionType } from "../../../../../data/
|
|
1
|
+
import { ShareTransactionType } from "../../../../../data/share-transaction/types/ShareTransactionType";
|
|
2
2
|
export declare class State {
|
|
3
3
|
name: string;
|
|
4
4
|
type: ShareTransactionType;
|
|
@@ -4,13 +4,12 @@ import { Scrollbars } from "react-custom-scrollbars";
|
|
|
4
4
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
5
|
import { Skeleton } from "@voplus/antd";
|
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import { useShareTransaction } from "
|
|
8
|
-
import
|
|
9
|
-
import CurrencyView from "../../../../../../components/CurrencyView";
|
|
7
|
+
import { useShareTransaction, useShareTransactionStore } from "../../data/share-transaction";
|
|
8
|
+
import CurrencyView from "../../components/CurrencyView";
|
|
10
9
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
11
10
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
12
11
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
13
|
-
import ShareTransactionItems from "
|
|
12
|
+
import ShareTransactionItems from "../../modules/corporate/company/share-transactions-register/components/ShareTransactionItems";
|
|
14
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
15
14
|
import moment from "moment";
|
|
16
15
|
import "./index.less";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../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
|
|
6
|
+
memberId?: string;
|
|
7
|
+
content?: boolean;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
content: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default ShareTransactionPropertiesView;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import Content from "./Content";
|
|
3
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
const ShareTransactionPropertiesView = (props) => {
|
|
7
|
+
const { id, memberId, content } = props;
|
|
8
|
+
return observe(() => (React.createElement("div", { className: "csp-default-view_aside" },
|
|
9
|
+
React.createElement(DocumentTabs, { id: id, details: content && React.createElement(Content, { id: id, memberId: memberId }) }))));
|
|
10
|
+
};
|
|
11
|
+
ShareTransactionPropertiesView.defaultProps = {
|
|
12
|
+
content: true,
|
|
13
|
+
};
|
|
14
|
+
export default ShareTransactionPropertiesView;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|