@voplus/morpho-csp 1.2.176 → 1.2.178

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.
Files changed (101) hide show
  1. package/es/Modules.js +1 -1
  2. package/es/Modules.js.map +1 -1
  3. package/es/data/share-transaction/ShareTransactionStore.js.map +1 -0
  4. package/es/data/share-transaction/hooks.js.map +1 -0
  5. package/es/data/share-transaction/index.js.map +1 -0
  6. package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransaction.d.ts +1 -0
  7. package/es/data/share-transaction/interfaces/IShareTransaction.js.map +1 -0
  8. package/es/data/share-transaction/interfaces/IShareTransactionLine.js.map +1 -0
  9. package/es/data/share-transaction/interfaces/index.js.map +1 -0
  10. package/es/data/{shareTransaction → share-transaction}/metas.d.ts +3 -1
  11. package/es/data/{shareTransaction → share-transaction}/metas.js +8 -0
  12. package/es/data/share-transaction/metas.js.map +1 -0
  13. package/es/data/share-transaction/types/ShareLineCreateOptions.js.map +1 -0
  14. package/es/data/share-transaction/types/ShareTransactionCreateOptions.js.map +1 -0
  15. package/es/data/share-transaction/types/ShareTransactionEditOptions.js.map +1 -0
  16. package/es/data/share-transaction/types/ShareTransactionType.js.map +1 -0
  17. package/es/data/share-transaction/types/index.js.map +1 -0
  18. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +1 -1
  19. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +4 -2
  20. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
  21. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +2 -2
  22. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -1
  23. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +6 -6
  24. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +1 -1
  25. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.d.ts +1 -1
  26. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +6 -6
  27. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
  28. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +2 -2
  29. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
  30. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/state.d.ts +1 -1
  31. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.d.ts +26 -0
  32. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +66 -0
  33. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -0
  34. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.d.ts +3 -10
  35. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js +26 -10
  36. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -1
  37. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +37 -89
  38. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.d.ts +7 -0
  39. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js +34 -0
  40. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js.map +1 -0
  41. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.less +15 -0
  42. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.d.ts +7 -0
  43. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +42 -0
  44. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -0
  45. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js +10 -8
  46. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -1
  47. package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.js +2 -4
  48. package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.js.map +1 -1
  49. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.d.ts +1 -1
  50. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +21 -62
  51. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
  52. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +85 -89
  53. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +3 -3
  54. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
  55. package/es/modules/corporate/share-options-register/components/ShareOptionList/state.d.ts +1 -1
  56. package/es/modules/self-registration/incorporation-clda/controls/CLDAIncorporationMenu/index.js +3 -4
  57. package/es/modules/self-registration/incorporation-clda/controls/CLDAIncorporationMenu/index.js.map +1 -1
  58. package/es/{modules/corporate/company/share-transactions-register/components → obsolete}/ShareTransactionPropertiesView/Content.js +3 -4
  59. package/es/obsolete/ShareTransactionPropertiesView/Content.js.map +1 -0
  60. package/es/obsolete/ShareTransactionPropertiesView/index.d.ts +13 -0
  61. package/es/obsolete/ShareTransactionPropertiesView/index.js +15 -0
  62. package/es/obsolete/ShareTransactionPropertiesView/index.js.map +1 -0
  63. package/es/obsolete/ShareTransactionPropertiesView/index.less +89 -0
  64. package/es/routes.js +3 -3
  65. package/es/routes.js.map +1 -1
  66. package/package.json +1 -1
  67. package/es/data/shareTransaction/ShareTransactionStore.js.map +0 -1
  68. package/es/data/shareTransaction/hooks.js.map +0 -1
  69. package/es/data/shareTransaction/index.js.map +0 -1
  70. package/es/data/shareTransaction/interfaces/IShareTransaction.js.map +0 -1
  71. package/es/data/shareTransaction/interfaces/IShareTransactionLine.js.map +0 -1
  72. package/es/data/shareTransaction/interfaces/index.js.map +0 -1
  73. package/es/data/shareTransaction/metas.js.map +0 -1
  74. package/es/data/shareTransaction/types/ShareLineCreateOptions.js.map +0 -1
  75. package/es/data/shareTransaction/types/ShareTransactionCreateOptions.js.map +0 -1
  76. package/es/data/shareTransaction/types/ShareTransactionEditOptions.js.map +0 -1
  77. package/es/data/shareTransaction/types/ShareTransactionType.js.map +0 -1
  78. package/es/data/shareTransaction/types/index.js.map +0 -1
  79. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +0 -1
  80. /package/es/data/{shareTransaction → share-transaction}/ShareTransactionStore.d.ts +0 -0
  81. /package/es/data/{shareTransaction → share-transaction}/ShareTransactionStore.js +0 -0
  82. /package/es/data/{shareTransaction → share-transaction}/hooks.d.ts +0 -0
  83. /package/es/data/{shareTransaction → share-transaction}/hooks.js +0 -0
  84. /package/es/data/{shareTransaction → share-transaction}/index.d.ts +0 -0
  85. /package/es/data/{shareTransaction → share-transaction}/index.js +0 -0
  86. /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransaction.js +0 -0
  87. /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransactionLine.d.ts +0 -0
  88. /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransactionLine.js +0 -0
  89. /package/es/data/{shareTransaction → share-transaction}/interfaces/index.d.ts +0 -0
  90. /package/es/data/{shareTransaction → share-transaction}/interfaces/index.js +0 -0
  91. /package/es/data/{shareTransaction → share-transaction}/types/ShareLineCreateOptions.d.ts +0 -0
  92. /package/es/data/{shareTransaction → share-transaction}/types/ShareLineCreateOptions.js +0 -0
  93. /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionCreateOptions.d.ts +0 -0
  94. /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionCreateOptions.js +0 -0
  95. /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionEditOptions.d.ts +0 -0
  96. /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionEditOptions.js +0 -0
  97. /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionType.d.ts +0 -0
  98. /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionType.js +0 -0
  99. /package/es/data/{shareTransaction → share-transaction}/types/index.d.ts +0 -0
  100. /package/es/data/{shareTransaction → share-transaction}/types/index.js +0 -0
  101. /package/es/{modules/corporate/company/share-transactions-register/components → obsolete}/ShareTransactionPropertiesView/Content.d.ts +0 -0
@@ -1,89 +1,37 @@
1
- :global {
2
- .share-transaction-properties-view {
3
- // padding: 10px 0;
4
- .ant-table {
5
- margin: 0 20px;
6
- }
7
- .shareTransaction-item-info {
8
- display: flex;
9
- padding: 0 15px 10px 15px;
10
- // margin: 0 -10px;
11
- > div {
12
- flex: 1;
13
- color: #000;
14
- padding: 0 10px;
15
- }
16
- .bold {
17
- font-weight: 500;
18
- font-size: 15px;
19
- padding-bottom: 10px;
20
- }
21
- .morpho-inline-edit {
22
- display: inline-block;
23
-
24
- .svg-inline--fa {
25
- margin-right: 5px;
26
- }
27
- }
28
- .ant-select {
29
- width: 130px !important;
30
- }
31
- }
32
- .ant-table {
33
- .ant-table-container {
34
- overflow-x: auto;
35
- }
36
- .ant-input-number {
37
- width: 100%;
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,7 @@
1
+ /// <reference types="react" />
2
+ declare const ShareTransactionQuickViewDialog: (props: {
3
+ id: string;
4
+ visible?: boolean;
5
+ onCancel?: () => void;
6
+ }) => JSX.Element;
7
+ export default ShareTransactionQuickViewDialog;
@@ -0,0 +1,34 @@
1
+ import React, { useState } from "react";
2
+ import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useMetaStore } from "@voplus/morpho-document-core";
5
+ import { useShareTransaction } from "../../../../../../data/share-transaction";
6
+ import SubTaskList from "@voplus/morpho-workspace/es/modules/tasks/components/SubTaskList";
7
+ import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
8
+ import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
9
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
10
+ import ShareTransactionProperties from "../ShareTransactionProperties";
11
+ import styles from "./index.less";
12
+ const ShareTransactionQuickViewDialog = (props) => {
13
+ const { id } = props;
14
+ const meta = useMetaStore();
15
+ const shareTransaction = useShareTransaction(id, { reload: false, includes: "tags" });
16
+ const [loaded, setLoaded] = useState(true);
17
+ return observe(() => (React.createElement(QuickViewDialog, { id: props.id, exclude: ["Task"], visible: props.visible, onCancel: props.onCancel, taskList: React.createElement(SubTaskList, { parentId: id, viewTitle: "Sub-Tasks", total: true }), header: React.createElement(React.Fragment, null,
18
+ loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, toolsVisible: false, descriptionVisible: false, style: { padding: "10px 20px 0 20px" } })),
19
+ React.createElement("div", { className: styles["header-bar-tool"] },
20
+ React.createElement("div", { className: "tools-bar" },
21
+ React.createElement(ToolBar, { id: id },
22
+ React.createElement(Reload, { action: onReload }),
23
+ React.createElement(Open, { url: meta.getRoute(shareTransaction) }))))) },
24
+ React.createElement(ShareTransactionProperties, { id: id }))));
25
+ /** reload data */
26
+ function onReload() {
27
+ setLoaded(false);
28
+ setTimeout(() => {
29
+ setLoaded(true);
30
+ }, 100);
31
+ }
32
+ };
33
+ export default ShareTransactionQuickViewDialog;
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,kEAAkE,CAAC;AAC3F,OAAO,cAAc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AAW;oBACzB,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;wBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACrC,CACL,CACD,CACU;QAGlB,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI,CACrB,CAClB,CAAC,CAAC;IAEH,kBAAkB;IAClB,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,+BAA+B,CAAC"}
@@ -0,0 +1,15 @@
1
+ .header-bar-tool {
2
+ display: flex;
3
+ justify-content: end;
4
+ padding: 0 20px 10px 20px;
5
+
6
+ :global {
7
+ .tools-bar {
8
+ text-align: right;
9
+
10
+ .tool-bar {
11
+ display: block;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ declare const ShareTransactionTabs: (props: {
3
+ id: string;
4
+ properties?: boolean;
5
+ details?: ReactNode;
6
+ }) => JSX.Element;
7
+ export default ShareTransactionTabs;
@@ -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,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1C,MAAM,CAAC,SAAS,EAAE,YAAY,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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
- c: "ParentNodeId",
27
- o: "=",
28
- l: "And",
29
- v1: props.memberId,
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,CAA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AK,CAAC,IAAI,EAChB,YAAY,EAAE,YAAY,CAAC,IAAI,EAC/B,YAAY,EAAE,WAAW,EACzB,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,EAClF,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAC/C,uBAAuB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,IAErD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,eAAe,IAAC,IAAI,SAAG,GAAI,CAC7C,CAAC,CAAC,CAAC,CACH,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,oBAAC,YAAY,CAAC,MAAM,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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AAC,CAAC,CAAC,CACH,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,oBAAC,YAAY,CAAC,MAAM,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,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,13 +1,11 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
3
  import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
4
- import { Access, Paste, Delete } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
4
+ import DocumentMenu from "@voplus/morpho-document/es/controls/DocumentMenu";
5
5
  const ShareTransactionMenu = (props) => {
6
6
  const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
7
7
  return observe(() => (React.createElement(DocumentMenuContext.Provider, { value: context },
8
- React.createElement(Paste, null),
9
- React.createElement(Access, null),
10
- React.createElement(Delete, { closeAside: true }))));
8
+ React.createElement(DocumentMenu, { id: props.id }))));
11
9
  };
12
10
  export default ShareTransactionMenu;
13
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,wDAAwD,CAAC;AAE/F,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,oBAAC,KAAK,OAAG;QACT,oBAAC,MAAM,OAAG;QACV,oBAAC,MAAM,IAAC,UAAU,SAAG,CACS,CAC/B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAE5E,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACA,CAC/B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import "./index.less";
2
+ /** The ShareTransaction Page component with router parameters support. */
3
3
  declare const ShareTransactionDefaultView: () => JSX.Element;
4
4
  export default ShareTransactionDefaultView;
@@ -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 { useTabItem } from "@voplus/morpho-data";
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
- asideContext.openAside(AsideElement, { span: 11 });
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(AsideContent, { context: asideContext },
35
- React.createElement("div", { className: "share-transaction-default-view" },
36
- shareTransaction.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
37
- React.createElement(Skeleton, { active: true }))) : (React.createElement(DocumentHeader, { id: id, size: "h3", tools: React.createElement(React.Fragment, null,
38
- React.createElement(ToolBar, { id: id },
39
- React.createElement(Reload, { action: onReLoad }),
40
- React.createElement(Sidebar, { action: () => asideContext.asideContent
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,cAAc,CAAC;AAEtB,OAAO,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,GACR,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAExG,OAAO,YAAY,MAAM,2CAA2C,CAAC;AACrE,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,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,EAA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,"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;AAC3E,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,0EAA0E;AAC1E,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACxC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAEhG,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACd,GAAG,CAAC,KAAK,GAAG,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,KAAI,kBAAkB,CAAC;IAC1D,CAAC,EAAE,CAAC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,CAAC,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IACX,SAAS,EAAE,MAAM,CAAC,gCAAgC,CAAC,EACnD,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YAE/B,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,SAAG,CACnC;YAClB,6BAAK,SAAS,EAAC,2BAA2B;gBACzC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,oBAAoB,IACpB,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,oBAAC,qBAAqB,IAAC,IAAI,EAAE,gBAAgB,GAAI,GACzD,CACY,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,89 +1,85 @@
1
- @import "../../../../../../style/common.less";
2
- :global {
3
- .share-transaction-default-view {
4
- // padding: 10px 0;
5
- .ant-table {
6
- margin: 0 20px;
7
- }
8
- .shareTransaction-item-info {
9
- display: flex;
10
- padding: 0 15px 10px 15px;
11
- > div {
12
- flex: 1;
13
- color: #000;
14
- padding: 0 10px;
15
- }
16
- .bold {
17
- font-weight: 500;
18
- font-size: 15px;
19
- padding-bottom: 10px;
20
- }
21
- .morpho-inline-edit {
22
- display: inline-block;
23
-
24
- .svg-inline--fa {
25
- margin-right: 5px;
26
- }
27
- }
28
- .ant-select {
29
- width: 130px !important;
30
- }
31
- }
32
- .ant-table {
33
- .ant-table-container {
34
- overflow-x: auto;
35
- }
36
- .ant-input-number {
37
- width: 100%;
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/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
+ }