@voplus/morpho-csp 6.1.31 → 6.1.33
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/components/CorporateItem/index.js +3 -2
- package/es/modules/corporate/company/components/CorporateItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.d.ts +14 -0
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.js +61 -0
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.less +94 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js +6 -8
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/ItemHeader.d.ts +31 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/ItemHeader.js +68 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/ItemHeader.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/SharesText.d.ts +5 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/SharesText.js +14 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/SharesText.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js +16 -15
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.d.ts +2 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js +15 -41
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.less +50 -61
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +3 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +3 -18
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.less +3 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useCorporate } from "../../../../../data/corporate";
|
|
4
4
|
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
5
|
-
import { Skeleton
|
|
5
|
+
import { Skeleton } from "antd";
|
|
6
6
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
7
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
8
|
import CorporateMenu from "../../controls/CorporateMenu";
|
|
@@ -10,6 +10,7 @@ import CorporatePropertiesView from "../CorporatePropertiesView";
|
|
|
10
10
|
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
11
11
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
12
12
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
13
|
+
import StatusLabel from "@voplus/morpho-ui/es/controls/DocumentStatusLabel/StatusLabel";
|
|
13
14
|
import classnames from "classnames";
|
|
14
15
|
import styles from "./index.less";
|
|
15
16
|
export function statusColor(status) {
|
|
@@ -44,7 +45,7 @@ const CorporateItem = (props) => {
|
|
|
44
45
|
React.createElement("div", { className: "corporate-item-contact-information" }, corporate.corporateType)))),
|
|
45
46
|
React.createElement(ColumnItemCol, { span: 4, label: "Latest Filing Year" },
|
|
46
47
|
React.createElement(UTCShortDate, { value: (_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.fye })),
|
|
47
|
-
React.createElement(ColumnItemCol, { span: 3, label: "Status" }, corporate.corporateStatus && (React.createElement(
|
|
48
|
+
React.createElement(ColumnItemCol, { span: 3, label: "Status" }, corporate.corporateStatus && (React.createElement(StatusLabel, { status: corporate.corporateStatus, className: "status-label" }))),
|
|
48
49
|
React.createElement(ColumnItemCol, { span: 3, align: "flex-end" },
|
|
49
50
|
React.createElement("div", { className: classnames("corporate-item-tool", { show: hover }) },
|
|
50
51
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAO,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;A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SAAS,CAAC,IAAI,0CAAE,EAAG,GAAI,CAC7C,CACL,CACS,CACJ,CACH,CACG,CACf,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconDefinition } from "@fortawesome/pro-solid-svg-icons";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare const PropertiesPanelHeader: {
|
|
5
|
+
(props: {
|
|
6
|
+
id: string;
|
|
7
|
+
icon?: IconDefinition;
|
|
8
|
+
iconBgClass?: string;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
iconBgClass: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default PropertiesPanelHeader;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
4
|
+
import { Open, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import FlagIcon from "@voplus/morpho-document/es/controls/data-icons/FlagIcon";
|
|
7
|
+
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus3";
|
|
8
|
+
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
9
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
10
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
11
|
+
import { useDocumentStore, useMetaStore } from "@voplus/morpho-document-core";
|
|
12
|
+
import { Input } from "antd";
|
|
13
|
+
import { useShareTransaction, useShareTransactionStore, } from "../../../../../../data/share-transaction";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
const PropertiesPanelHeader = (props) => {
|
|
16
|
+
const { id, icon, iconBgClass } = props;
|
|
17
|
+
const [edit, setEdit] = useState(false);
|
|
18
|
+
const [name, setName] = useState("");
|
|
19
|
+
const meta = useMetaStore();
|
|
20
|
+
const store = useShareTransactionStore();
|
|
21
|
+
const dStore = useDocumentStore();
|
|
22
|
+
const { user } = useApplicationContext();
|
|
23
|
+
const shareTransaction = useShareTransaction(id);
|
|
24
|
+
return observe(() => (React.createElement("div", { className: "share-properties-panel-header bg-gradient-to-br from-white via-slate-50/80 to-blue-50/50 border-b border-slate-200/80 backdrop-blur-sm" },
|
|
25
|
+
React.createElement("div", { className: "px-6 py-4" },
|
|
26
|
+
React.createElement("div", { className: "flex items-center justify-between mb-3" },
|
|
27
|
+
React.createElement("div", { className: "flex-1 flex items-center gap-3" },
|
|
28
|
+
React.createElement("div", { className: `w-10 h-10 bg-gradient-to-br text-white ${iconBgClass} rounded-xl flex items-center justify-center shadow-md transition-all duration-200 hover:shadow-lg hover:scale-105` }, icon ? React.createElement(FAIcon, { icon: icon, className: "text-sm" }) : meta.getIcon(shareTransaction)),
|
|
29
|
+
React.createElement("div", { className: "flex-1 flex items-center gap-2", style: { width: "100%" } },
|
|
30
|
+
edit ? (React.createElement(Input.TextArea, { style: { height: 40 }, rows: 2, autoFocus: true, defaultValue: shareTransaction.name, onChange: (e) => setName(e.target.value), onKeyDown: onKeyDown, onBlur: onEditName })) : (React.createElement("h1", { className: "header-name text-xl font-bold text-slate-900", onClick: () => setEdit(true) }, shareTransaction.name)),
|
|
31
|
+
shareTransaction.status === "Draft" && (React.createElement("span", { className: "px-2 py-0.5 text-xs font-medium text-amber-700 bg-amber-100 rounded" }, "draft")),
|
|
32
|
+
React.createElement(FlagIcon, { id: id, flag: shareTransaction.flag, editable: !shareTransaction.readonly, className: "text-xs" }))),
|
|
33
|
+
React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
|
|
34
|
+
React.createElement(Open, null),
|
|
35
|
+
React.createElement(Close, null))),
|
|
36
|
+
React.createElement("div", { id: "descriptionView", className: "text-slate-600 text-sm leading-relaxed cursor-text hover:bg-slate-50 rounded px-2 py-1 -mx-2 -my-1 transition-colors flex items-center mb-2" },
|
|
37
|
+
React.createElement(DescriptionEditor, { id: id, description: shareTransaction.description, readonly: shareTransaction.readonly })),
|
|
38
|
+
React.createElement("div", { className: "flex items-center gap-1.5" },
|
|
39
|
+
React.createElement(IdentityStatus, { id: shareTransaction.id }),
|
|
40
|
+
React.createElement(TagView, { id: shareTransaction.id, tags: shareTransaction.tags, editable: user.can("edit", shareTransaction.p, { asset: "Tags" }) && !shareTransaction.readonly, items: store.items, maxCount: 3 }))))));
|
|
41
|
+
function onKeyDown(event) {
|
|
42
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
onEditName();
|
|
45
|
+
}
|
|
46
|
+
else if (event.key === "Escape") {
|
|
47
|
+
setEdit(false);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
async function onEditName() {
|
|
51
|
+
setEdit(false);
|
|
52
|
+
if (name && name.trim() !== shareTransaction.name) {
|
|
53
|
+
await dStore.edit(id, { data: { Name: name }, error: "message" });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
PropertiesPanelHeader.defaultProps = {
|
|
58
|
+
iconBgClass: "from-purple-500 to-violet-600", // 紫色系 - 其他
|
|
59
|
+
};
|
|
60
|
+
export default PropertiesPanelHeader;
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,sDAAsD,C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AC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,WAAW,EAAE,+BAA+B,EAAE,WAAW;CACzD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.share-properties-panel-header {
|
|
5
|
+
.header-name {
|
|
6
|
+
max-width: 78%;
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
-webkit-line-clamp: 1;
|
|
9
|
+
-webkit-box-orient: vertical;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
}
|
|
12
|
+
.description-editor {
|
|
13
|
+
padding: 0;
|
|
14
|
+
.description-editor-header {
|
|
15
|
+
padding: 0;
|
|
16
|
+
color: #94a3b8;
|
|
17
|
+
font-style: italic;
|
|
18
|
+
svg {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.description-readonly-proseMirror .ProseMirror {
|
|
23
|
+
padding: 0;
|
|
24
|
+
font-size: 0.875rem /* 14px */;
|
|
25
|
+
line-height: 1.25rem /* 20px */;
|
|
26
|
+
color: #475569;
|
|
27
|
+
}
|
|
28
|
+
.description-editor-proseMirror {
|
|
29
|
+
padding: 0;
|
|
30
|
+
height: 15rem !important;
|
|
31
|
+
&:hover {
|
|
32
|
+
background-color: white;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.description-editor-footer {
|
|
36
|
+
padding-top: 0.75rem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.tag-view-2 {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
.ant-tag,
|
|
43
|
+
.add-tag-btn {
|
|
44
|
+
margin-top: 0;
|
|
45
|
+
}
|
|
46
|
+
.ant-tag {
|
|
47
|
+
margin-right: 0.375rem;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
font-size: 0.75rem;
|
|
50
|
+
line-height: 1rem;
|
|
51
|
+
height: 1.25rem;
|
|
52
|
+
}
|
|
53
|
+
.add-tag-btn {
|
|
54
|
+
--tw-text-opacity: 1;
|
|
55
|
+
color: rgb(100 116 139 / var(--tw-text-opacity, 1));
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
font-size: 0.75rem;
|
|
58
|
+
line-height: 1rem;
|
|
59
|
+
border-radius: 0.25rem;
|
|
60
|
+
padding: 0.125rem 0.5rem;
|
|
61
|
+
&:hover {
|
|
62
|
+
--tw-text-opacity: 1;
|
|
63
|
+
color: rgb(51 65 85 / var(--tw-text-opacity, 1)) /* #334155 */;
|
|
64
|
+
--tw-bg-opacity: 1;
|
|
65
|
+
background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1)) /* #f1f5f9 */;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.tool-bar {
|
|
70
|
+
button {
|
|
71
|
+
width: 32px;
|
|
72
|
+
height: 32px;
|
|
73
|
+
margin-left: 4px;
|
|
74
|
+
--tw-text-opacity: 1;
|
|
75
|
+
color: rgb(148 163 184 / var(--tw-text-opacity, 1)) /* #94a3b8 */;
|
|
76
|
+
&:hover {
|
|
77
|
+
--tw-bg-opacity: 1;
|
|
78
|
+
background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1)) /* #f1f5f9 */;
|
|
79
|
+
}
|
|
80
|
+
&:first-child {
|
|
81
|
+
margin-left: 0;
|
|
82
|
+
}
|
|
83
|
+
&.close-button {
|
|
84
|
+
&:hover {
|
|
85
|
+
--tw-text-opacity: 1;
|
|
86
|
+
color: rgb(220 38 38 / var(--tw-text-opacity, 1)) /* #dc2626 */;
|
|
87
|
+
--tw-bg-opacity: 1;
|
|
88
|
+
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1)) /* #fef2f2 */;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import
|
|
4
|
+
import PropertiesPanelHeader from "../PropertiesPanelHeader";
|
|
5
5
|
import ShareTransactionTabs from "../ShareTransactionTabs";
|
|
6
|
+
import { useShareTransaction } from "../../../../../../data/share-transaction";
|
|
7
|
+
import { getTransactionTypeConfig } from "../ShareTransactionTableList/Item/ItemHeader";
|
|
6
8
|
import "./index.less";
|
|
7
9
|
const ShareTransactionPropertiesView = (props) => {
|
|
8
10
|
const { id } = props;
|
|
9
11
|
const [loaded, setLoaded] = useState(true);
|
|
10
12
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
13
|
+
const shareTransaction = useShareTransaction(id);
|
|
14
|
+
const typeConfig = getTransactionTypeConfig(shareTransaction.transactionType);
|
|
11
15
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
12
16
|
React.createElement("div", { className: "share-transaction-properties-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
13
|
-
React.createElement(
|
|
14
|
-
toolBarProps: {
|
|
15
|
-
closeAside: true,
|
|
16
|
-
close: true,
|
|
17
|
-
onReload: reload,
|
|
18
|
-
},
|
|
19
|
-
} }),
|
|
17
|
+
React.createElement(PropertiesPanelHeader, { id: id, icon: typeConfig.icon, iconBgClass: typeConfig.bgClass }),
|
|
20
18
|
React.createElement(ShareTransactionTabs, { id: id, properties: true })))))));
|
|
21
19
|
function reload() {
|
|
22
20
|
setLoaded(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,cAAc,CAAC;AAEtB,MAAM,8BAA8B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAE9E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,mCAAmC,IAChD,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,qBAAqB,IACrB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,WAAW,EAAE,UAAU,CAAC,OAAO,GAC9B;YACF,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC3B,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,SAAS,MAAM;QACd,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,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const getTransactionTypeConfig: (type: string) => {
|
|
3
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
|
+
bgClass: string;
|
|
5
|
+
} | {
|
|
6
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
|
+
bgClass: string;
|
|
8
|
+
} | {
|
|
9
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
10
|
+
bgClass: string;
|
|
11
|
+
} | {
|
|
12
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
13
|
+
bgClass: string;
|
|
14
|
+
} | {
|
|
15
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
16
|
+
bgClass: string;
|
|
17
|
+
} | {
|
|
18
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
19
|
+
bgClass: string;
|
|
20
|
+
} | {
|
|
21
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
22
|
+
bgClass: string;
|
|
23
|
+
} | {
|
|
24
|
+
icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
25
|
+
bgClass: string;
|
|
26
|
+
};
|
|
27
|
+
declare const ItemHeader: (props: {
|
|
28
|
+
id: string;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
}) => React.JSX.Element;
|
|
31
|
+
export default ItemHeader;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
4
|
+
import ShareTransactionPropertiesView from "../../ShareTransactionPropertiesView";
|
|
5
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
+
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus3";
|
|
8
|
+
import { useShareTransaction } from "../../../../../../../data/share-transaction";
|
|
9
|
+
import { faCoins, faBan, faExchangeAlt, faMagic, faCompressArrowsAlt, faExpandArrowsAlt, faFileImport, faEllipsisH, } from "@fortawesome/pro-solid-svg-icons";
|
|
10
|
+
// 获取交易类型对应的图标和颜色配置
|
|
11
|
+
export const getTransactionTypeConfig = (type) => {
|
|
12
|
+
const configs = {
|
|
13
|
+
Allotment: {
|
|
14
|
+
icon: faCoins,
|
|
15
|
+
bgClass: "from-emerald-500 to-green-600", // 绿色系 - 分配/配股
|
|
16
|
+
},
|
|
17
|
+
Transfer: {
|
|
18
|
+
icon: faExchangeAlt,
|
|
19
|
+
bgClass: "from-blue-500 to-indigo-600", // 蓝色系 - 转移/转让
|
|
20
|
+
},
|
|
21
|
+
Cancel: {
|
|
22
|
+
icon: faBan,
|
|
23
|
+
bgClass: "from-red-500 to-rose-600", // 红色系 - 取消
|
|
24
|
+
},
|
|
25
|
+
Consolidate: {
|
|
26
|
+
icon: faCompressArrowsAlt,
|
|
27
|
+
bgClass: "from-purple-500 to-violet-600", // 紫色系 - 合并
|
|
28
|
+
},
|
|
29
|
+
Convert: {
|
|
30
|
+
icon: faMagic,
|
|
31
|
+
bgClass: "from-orange-500 to-amber-600", // 橙色系 - 转换
|
|
32
|
+
},
|
|
33
|
+
Divide: {
|
|
34
|
+
icon: faExpandArrowsAlt,
|
|
35
|
+
bgClass: "from-teal-500 to-cyan-600", // 青色系 - 分割
|
|
36
|
+
},
|
|
37
|
+
Import: {
|
|
38
|
+
icon: faFileImport,
|
|
39
|
+
bgClass: "from-slate-500 to-gray-600", // 灰色系 - 导入
|
|
40
|
+
},
|
|
41
|
+
Others: {
|
|
42
|
+
icon: faEllipsisH,
|
|
43
|
+
bgClass: "from-cyan-500 to-teal-600", // 青绿色系 - 其他
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
return configs[type] || configs.Others;
|
|
47
|
+
};
|
|
48
|
+
const ItemHeader = (props) => {
|
|
49
|
+
const { id } = props;
|
|
50
|
+
const shareTransaction = useShareTransaction(id);
|
|
51
|
+
const typeConfig = getTransactionTypeConfig(shareTransaction.transactionType);
|
|
52
|
+
return observe(() => {
|
|
53
|
+
var _a;
|
|
54
|
+
return (React.createElement(ItemFunction, { className: "px-6 py-3 bg-gradient-to-r from-white to-slate-50 border-b border-slate-100", propertiesView: React.createElement(ShareTransactionPropertiesView, { id: id }), onClick: props.onClick },
|
|
55
|
+
React.createElement("div", { className: "flex items-center justify-between" },
|
|
56
|
+
React.createElement("div", { className: "flex items-center gap-3" },
|
|
57
|
+
React.createElement("div", { className: `w-12 h-12 bg-gradient-to-br text-white ${typeConfig.bgClass} rounded-xl flex items-center justify-center` },
|
|
58
|
+
React.createElement(FAIcon, { icon: typeConfig.icon, className: "text-sm" })),
|
|
59
|
+
React.createElement("div", { className: "flex-1" },
|
|
60
|
+
React.createElement("div", { className: "flex items-center gap-3 mb-1" },
|
|
61
|
+
React.createElement("h3", { className: "text-base font-bold text-slate-900" }, shareTransaction.name),
|
|
62
|
+
React.createElement(IdentityStatus, { id: shareTransaction.id, type: "icon" })),
|
|
63
|
+
React.createElement("p", { className: "text-slate-600 text-sm whitespace-nowrap overflow-hidden text-ellipsis" }, shareTransaction.description || (React.createElement("span", { className: "text-slate-400 italic" }, (_a = shareTransaction.transactionType) !== null && _a !== void 0 ? _a : "No description"))))),
|
|
64
|
+
React.createElement(ToolBar, { id: id }))));
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
export default ItemHeader;
|
|
68
|
+
//# sourceMappingURL=ItemHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemHeader.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/ItemHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,8BAA8B,MAAM,sCAAsC,CAAC;AAClF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EACN,OAAO,EACP,KAAK,EACL,aAAa,EACb,OAAO,EACP,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,WAAW,GACX,MAAM,kCAAkC,CAAC;AAE1C,mBAAmB;AACnB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAY,EAAE,EAAE;IACxD,MAAM,OAAO,GAAG;QACf,SAAS,EAAE;YACV,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,+BAA+B,EAAE,cAAc;SACxD;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,6BAA6B,EAAE,cAAc;SACtD;QACD,MAAM,EAAE;YACP,IAAI,EAAE,KAAK;YACX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AC,QAAQ;wBACtB,6BAAK,SAAS,EAAC,8BAA8B;4BAC5C,4BAAI,SAAS,EAAC,oCAAoC,IAAE,gBAAgB,CAAC,IAAI,CAAM;4BAC/E,oBAAC,cAAc,IAAC,EAAE,EAAE,gBAAgB,CAAC,EAAE,EAAE,IAAI,EAAC,MAAM,GAAG,CAClD;wBACN,2BAAG,SAAS,EAAC,wEAAwE,IACnF,gBAAgB,CAAC,WAAW,IAAI,CAChC,8BAAM,SAAS,EAAC,uBAAuB,IACrC,MAAA,gBAAgB,CAAC,eAAe,mCAAI,gBAAgB,CAC/C,CACP,CACE,CACC,CACD;gBAEN,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,GAAI,CACd,CACQ,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
const SharesText = (props) => {
|
|
4
|
+
const { shares } = props;
|
|
5
|
+
return observe(() => shares >= 0 ? (React.createElement("div", { className: "inline-flex items-center gap-1 px-3 py-1.5 rounded-full text-sm font-bold bg-emerald-100 text-emerald-700" },
|
|
6
|
+
React.createElement("svg", { className: "w-3 h-3", viewBox: "0 0 24 24", fill: "none" },
|
|
7
|
+
React.createElement("path", { d: "M7 14L12 9L17 14", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })),
|
|
8
|
+
shares)) : (React.createElement("div", { className: "inline-flex items-center gap-1 px-3 py-1.5 rounded-full text-sm font-bold bg-rose-100 text-rose-700" },
|
|
9
|
+
React.createElement("svg", { className: "w-3 h-3", viewBox: "0 0 24 24", fill: "none" },
|
|
10
|
+
React.createElement("path", { d: "M17 10L12 15L7 10", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })),
|
|
11
|
+
shares)));
|
|
12
|
+
};
|
|
13
|
+
export default SharesText;
|
|
14
|
+
//# sourceMappingURL=SharesText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharesText.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/SharesText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,KAAyB,EAAE,EAAE;IAChD,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CACb,6BAAK,SAAS,EAAC,2GAA2G;QACzH,6BAAK,SAAS,EAAC,SAAS,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;YACvD,8BACC,CAAC,EAAC,kBAAkB,EACpB,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,GACtB,CACG;QACL,MAAM,CACF,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,qGAAqG;QACnH,6BAAK,SAAS,EAAC,SAAS,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;YACvD,8BACC,CAAC,EAAC,mBAAmB,EACrB,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,GACtB,CACG;QACL,MAAM,CACF,CACN,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -2,42 +2,43 @@ import React from "react";
|
|
|
2
2
|
import { Table } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { faMoneyBills, faDollarSign, faLandmark, faUserGroup, } from "@fortawesome/pro-
|
|
6
|
-
import
|
|
5
|
+
import { faMoneyBills, faDollarSign, faLandmark, faUserGroup, } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem/LoadedAvatarItem";
|
|
7
|
+
import SharesText from "./SharesText";
|
|
7
8
|
const ShareTable = (props) => {
|
|
8
9
|
const columns = [
|
|
9
10
|
{
|
|
10
|
-
title: (React.createElement(
|
|
11
|
+
title: (React.createElement("span", { className: "font-semibold text-slate-700 uppercase tracking-wider" },
|
|
11
12
|
React.createElement(FAIcon, { icon: faUserGroup }),
|
|
12
13
|
" Shareholder")),
|
|
13
14
|
dataIndex: "shareholder",
|
|
14
|
-
render: (text, record) =>
|
|
15
|
+
render: (text, record) => (React.createElement(React.Fragment, null,
|
|
16
|
+
React.createElement(AvatarItem, { unit: record.shareholder }),
|
|
17
|
+
React.createElement("span", { className: "font-semibold text-slate-900 group-hover:text-blue-700 transition-colors ml-3" }, record.shareholder.name))),
|
|
15
18
|
width: "30%",
|
|
16
19
|
},
|
|
17
20
|
{
|
|
18
|
-
title: (React.createElement(
|
|
21
|
+
title: (React.createElement("span", { className: "font-semibold text-slate-700 uppercase tracking-wider" },
|
|
19
22
|
React.createElement(FAIcon, { icon: faMoneyBills }),
|
|
20
23
|
" Shares")),
|
|
21
24
|
dataIndex: "shares",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}) },
|
|
25
|
-
record.shares > 0 && "+",
|
|
26
|
-
record.shares)),
|
|
25
|
+
align: "center",
|
|
26
|
+
render: (text, record) => React.createElement(SharesText, { shares: record.shares }),
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
title: (React.createElement(
|
|
29
|
+
title: (React.createElement("span", { className: "font-semibold text-slate-700 uppercase tracking-wider" },
|
|
30
30
|
React.createElement(FAIcon, { icon: faDollarSign }),
|
|
31
31
|
" Currency")),
|
|
32
32
|
dataIndex: "currency",
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}) }, record.currency)),
|
|
33
|
+
align: "center",
|
|
34
|
+
render: (text, record) => record.currency && (React.createElement("span", { className: "inline-flex items-center px-2.5 py-1 bg-slate-100 text-slate-700 text-sm font-semibold rounded-full" }, record.currency)),
|
|
36
35
|
},
|
|
37
36
|
{
|
|
38
|
-
title: (React.createElement(
|
|
37
|
+
title: (React.createElement("span", { className: "font-semibold text-slate-700 uppercase tracking-wider" },
|
|
39
38
|
React.createElement(FAIcon, { icon: faLandmark }),
|
|
40
39
|
" Share Capital")),
|
|
40
|
+
align: "center",
|
|
41
|
+
render: (text, record) => (React.createElement(SharesText, { shares: record.consideration })),
|
|
41
42
|
dataIndex: "consideration",
|
|
42
43
|
},
|
|
43
44
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.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;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,GACX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.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;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAC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EAAE,CACN,8BAAM,SAAS,EAAC,uDAAuD;gBACtE,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;iCACtB,CACP;YACD,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,CAAC,IAAS,EAAE,MAA6B,EAAE,EAAE,CAAC,CACrD,oBAAC,UAAU,IAAC,MAAM,EAAE,MAAM,CAAC,aAAa,GAAI,CAC5C;YACD,SAAS,EAAE,eAAe;SAC1B;KACD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK;IACL,0BAA0B;;QAA1B,0BAA0B;QAC1B,OAAO,EAAE,OAAc,EACvB,MAAM,EAAC,IAAI,EACX,UAAU,EAAE,KAAK,CAAC,KAAK,EACvB,UAAU,EAAE,KAAK,GAChB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,59 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import {
|
|
4
|
-
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
3
|
+
import { faCalendar } from "@fortawesome/pro-light-svg-icons";
|
|
5
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
6
|
+
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
6
7
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
8
|
import { useShareTransaction, useShareTransactionStore, } from "../../../../../../../data/share-transaction";
|
|
8
|
-
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
9
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
10
9
|
import ShareTable from "./Table";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
|
|
10
|
+
import ItemHeader from "./ItemHeader";
|
|
11
|
+
import classnames from "classnames";
|
|
14
12
|
import "./index.less";
|
|
15
13
|
const Item = (props) => {
|
|
16
14
|
const { id } = props;
|
|
15
|
+
const store = useShareTransactionStore();
|
|
17
16
|
const { user } = useApplicationContext();
|
|
18
17
|
const shareTransaction = useShareTransaction(id, {
|
|
19
18
|
reload: (d) => !d.p,
|
|
20
19
|
includes: "permissions",
|
|
21
20
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
case "Allotment":
|
|
26
|
-
return React.createElement(FAIcon, { icon: faCoins });
|
|
27
|
-
case "Transfer":
|
|
28
|
-
return React.createElement(FAIcon, { icon: faMoneyBillTransfer });
|
|
29
|
-
case "Cancel":
|
|
30
|
-
return React.createElement(FAIcon, { icon: faBan });
|
|
31
|
-
case "Consolidate":
|
|
32
|
-
return React.createElement(FAIcon, { icon: faLayerGroup });
|
|
33
|
-
case "Convert":
|
|
34
|
-
return React.createElement(FAIcon, { icon: faArrowsRotate });
|
|
35
|
-
case "Divide":
|
|
36
|
-
return React.createElement(FAIcon, { icon: faDivide });
|
|
37
|
-
case "Import":
|
|
38
|
-
return React.createElement(FAIcon, { icon: faUpload });
|
|
39
|
-
case "Others":
|
|
40
|
-
return React.createElement(FAIcon, { icon: faCloud });
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
return observe(() => (React.createElement(Card, { className: "registers-share-transaction-item-card shadow ring-1 ring-black ring-opacity-5" },
|
|
44
|
-
React.createElement("div", { className: "registers-share-head" },
|
|
45
|
-
React.createElement(ItemFunction, { className: "share-name-icon", propertiesView: React.createElement(ShareTransactionPropertiesView, { id: id }) },
|
|
46
|
-
React.createElement("div", { className: "share-icon" }, getTypeIcon(shareTransaction.transactionType)),
|
|
47
|
-
React.createElement("div", { className: "share-type" },
|
|
48
|
-
React.createElement("div", null, shareTransaction.transactionType),
|
|
49
|
-
React.createElement("div", { className: "share-name" }, shareTransaction.name))),
|
|
50
|
-
React.createElement(TagView, { id: shareTransaction.id, tags: shareTransaction.tags, editable: user.can("edit", shareTransaction.p, { asset: "Tags" }) && !shareTransaction.readonly, items: store.items, maxCount: 3 })),
|
|
51
|
-
React.createElement("div", { className: "voplus-antd-table registers-share-table" },
|
|
21
|
+
return observe(() => (React.createElement("div", { className: classnames("registers-share-transaction-item-card bg-white rounded-xl border border-slate-200 hover:shadow-md hover:border-slate-300 transition-all duration-300 overflow-hidden", { "shadow-md border-slate-300": props.active }, { "shadow-sm": !props.active }) },
|
|
22
|
+
React.createElement(ItemHeader, { id: id, onClick: props.onClick }),
|
|
23
|
+
React.createElement("div", { className: "registers-share-table" },
|
|
52
24
|
React.createElement(ShareTable, { lines: shareTransaction.lines })),
|
|
53
|
-
React.createElement("div", { className: "
|
|
54
|
-
React.createElement("div",
|
|
55
|
-
React.createElement(
|
|
56
|
-
|
|
25
|
+
React.createElement("div", { className: "px-6 py-4 bg-slate-50 border-t border-slate-100" },
|
|
26
|
+
React.createElement("div", { className: "flex items-center justify-between" },
|
|
27
|
+
React.createElement("div", { className: "flex items-center gap-1 text-sm text-slate-600" },
|
|
28
|
+
React.createElement(FAIcon, { icon: faCalendar }),
|
|
29
|
+
React.createElement(UTCShortDate, { className: "font-medium", value: shareTransaction.date, format: "DD MMMM YYYY" })),
|
|
30
|
+
React.createElement(TagView, { id: shareTransaction.id, tags: shareTransaction.tags, editable: user.can("edit", shareTransaction.p, { asset: "Tags" }) && !shareTransaction.readonly, items: store.items, maxCount: 3 }))))));
|
|
57
31
|
};
|
|
58
32
|
export default Item;
|
|
59
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,OAAO,MAAM,wDAAwD,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,UAAU,MAAM,SAAS,CAAC;AACjC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,IAAI,GAAG,CAAC,KAKb,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IACzC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE;QAChD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACnB,QAAQ,EAAE,aAAa;KACvB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BACC,SAAS,EAAE,UAAU,CACpB,sKAAsK,EACtK,EAAE,4BAA4B,EAAE,KAAK,CAAC,MAAM,EAAE,EAC9C,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAC9B;QAGD,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,GAAI;QAG9C,6BAAK,SAAS,EAAC,uBAAuB;YACrC,oBAAC,UAAU,IAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,GAAI,CACxC;QAGN,6BAAK,SAAS,EAAC,iDAAiD;YAC/D,6BAAK,SAAS,EAAC,mCAAmC;gBACjD,6BAAK,SAAS,EAAC,gDAAgD;oBAC9D,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;oBAC5B,oBAAC,YAAY,IACZ,SAAS,EAAC,aAAa,EACvB,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAC5B,MAAM,EAAC,cAAc,GACpB,CACG;gBACN,oBAAC,OAAO,IACP,EAAE,EAAE,gBAAgB,CAAC,EAAE,EACvB,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAC3B,QAAQ,EACP,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAEtF,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,GACV,CACG,CACD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -2,78 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
:global {
|
|
4
4
|
.registers-share-transaction-item-card {
|
|
5
|
-
|
|
6
|
-
padding: 12px;
|
|
7
|
-
margin: 2px 18px 20px;
|
|
5
|
+
margin: 0 20px 20px 20px;
|
|
8
6
|
|
|
9
|
-
.registers-share-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
color: @primary-color;
|
|
19
|
-
line-height: 24px;
|
|
20
|
-
font-weight: bold;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: end;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
|
|
25
|
-
.share-icon {
|
|
26
|
-
width: 40px;
|
|
27
|
-
height: 40px;
|
|
28
|
-
background: #e0efff;
|
|
29
|
-
border-radius: 5px;
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
margin-right: 11px;
|
|
7
|
+
.registers-share-table {
|
|
8
|
+
.ant-table-thead {
|
|
9
|
+
tr {
|
|
10
|
+
background-image: linear-gradient(to right, var(--tw-gradient-stops));
|
|
11
|
+
--tw-gradient-from: #f8fafc var(--tw-gradient-from-position);
|
|
12
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
13
|
+
--tw-gradient-to: #f1f5f9 var(--tw-gradient-to-position);
|
|
14
|
+
border-bottom: 1px solid #e2e8f0;
|
|
15
|
+
// border-color: #e2e8f0;
|
|
34
16
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
font-weight: 500;
|
|
17
|
+
> tr > th {
|
|
18
|
+
background: none;
|
|
19
|
+
&::before {
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
}
|
|
41
22
|
}
|
|
42
23
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.ant-table-wrapper {
|
|
52
|
-
.ant-table-cell {
|
|
53
|
-
font-weight: bold;
|
|
54
|
-
|
|
55
|
-
&:first-child {
|
|
56
|
-
font-weight: 500;
|
|
24
|
+
.ant-table-tbody {
|
|
25
|
+
tr td {
|
|
26
|
+
transition-property: all;
|
|
27
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
28
|
+
transition-duration: 200ms;
|
|
29
|
+
&:hover {
|
|
30
|
+
--tw-bg-opacity: 1;
|
|
31
|
+
background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
|
|
57
32
|
}
|
|
58
33
|
}
|
|
59
34
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
&.negative {
|
|
65
|
-
color: @primary-color;
|
|
66
|
-
}
|
|
35
|
+
.ant-table-container {
|
|
36
|
+
border-start-start-radius: 0;
|
|
37
|
+
border-start-end-radius: 0;
|
|
67
38
|
}
|
|
68
39
|
}
|
|
69
40
|
|
|
70
|
-
.
|
|
41
|
+
.tag-view-2 {
|
|
71
42
|
display: flex;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
43
|
+
align-items: center;
|
|
44
|
+
.ant-tag,
|
|
45
|
+
.add-tag-btn {
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
}
|
|
48
|
+
.add-tag-btn {
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
font-size: 0.75rem;
|
|
51
|
+
line-height: 1rem;
|
|
52
|
+
color: #334155;
|
|
53
|
+
background: #fff;
|
|
54
|
+
border: solid 1px #cbd5e1;
|
|
55
|
+
border-radius: 0.5rem;
|
|
56
|
+
padding: 0.375rem 0.75rem;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
&:hover {
|
|
59
|
+
background: #f8fafc;
|
|
60
|
+
border-color: #94a3b8;
|
|
61
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
62
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
63
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
64
|
+
var(--tw-shadow);
|
|
65
|
+
}
|
|
77
66
|
}
|
|
78
67
|
}
|
|
79
68
|
}
|
|
@@ -21,6 +21,7 @@ import "./index.less";
|
|
|
21
21
|
const ShareTransactionTableList = (props) => {
|
|
22
22
|
const { shareTransactionId, corporateId, pageHeader } = props;
|
|
23
23
|
const [shareTransactionTotal, setShareTransactionTotal] = useState(0);
|
|
24
|
+
const [active, setActive] = useState(null);
|
|
24
25
|
const [asideContext] = useState(AsideContent.createContext());
|
|
25
26
|
const { user } = useApplicationContext();
|
|
26
27
|
const shareStore = useShareTransactionStore();
|
|
@@ -44,7 +45,7 @@ const ShareTransactionTableList = (props) => {
|
|
|
44
45
|
return (React.createElement(AsideContent, { context: asideContext },
|
|
45
46
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
46
47
|
React.createElement("div", { className: "registers-share-transaction-list" },
|
|
47
|
-
pageHeader && (React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileInvoiceDollar }), title: "Share Transaction", description: "
|
|
48
|
+
pageHeader && (React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileInvoiceDollar }), title: "Share Transaction", description: "Track and manage all share transaction activities." })),
|
|
48
49
|
React.createElement(ListHeaderTool, { visible: true, addAble: false, sortable: false, searchOptions: { placeholder: "Search in transaction" }, filterViewProps: {
|
|
49
50
|
columns: [React.createElement(TransactionTypeFilter, { key: "TransactionTypeFilter" })],
|
|
50
51
|
}, rightExtra: () => (React.createElement(React.Fragment, null,
|
|
@@ -65,7 +66,7 @@ const ShareTransactionTableList = (props) => {
|
|
|
65
66
|
] }) })))) }),
|
|
66
67
|
React.createElement(ListView, { className: "list-content", asideable: false, headerProps: {
|
|
67
68
|
visible: false,
|
|
68
|
-
}, renderItem: ({ item }) => React.createElement(Item, { id: item.id }) }),
|
|
69
|
+
}, renderItem: ({ item }) => (React.createElement(Item, { active: active === item.id, id: item.id, onClick: () => setActive(item.id) })) }),
|
|
69
70
|
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
70
71
|
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) => {
|
|
71
72
|
if (e.key === "Escape")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC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F,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,OAAO,CACN,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;YAClC,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;gBACpC,6BAAK,SAAS,EAAC,kCAAkC;oBAC/C,UAAU,IAAI,CACd,oBAAC,iBAAiB,IACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI,EACjD,KAAK,EAAC,mBAAmB,EACzB,WAAW,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,QAAQ,MAA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,IAAI,EACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EACjE,WAAW,EAAE,WAAW,KAAK,CAAC,IAAI,uBAAuB,EACzD,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,eAAe,OAAG,CAAC,CAAC,CAAC,EAAE,EAChD,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;gCAChB,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ;oCAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;4BACpE,CAAC,GACA,CACG,CACN,CACI,CACoB,CACb,CACf,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;QACpB,MAAM,UAAU,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,eAAe,EAAE,KAAK,CAAC,IAAI;gBAC3B,QAAQ,EAAE,KAAK;aACf;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Skeleton } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
5
|
import { useVirtualAddressMail } from "../../../../../data/virtual-address-mail";
|
|
@@ -12,6 +12,7 @@ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
|
12
12
|
import PropertiesView from "../VirtualAddressMailPropertiesView";
|
|
13
13
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
14
14
|
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
|
|
15
|
+
import StatusLabel from "@voplus/morpho-ui/es/controls/DocumentStatusLabel/StatusLabel";
|
|
15
16
|
import Scan from "../../controls/VirtualAddressMailMenu/Scan";
|
|
16
17
|
import Routes from "../../../../../routes";
|
|
17
18
|
import "./index.less";
|
|
@@ -37,24 +38,8 @@ const VirtualAddressMailItem = (props) => {
|
|
|
37
38
|
React.createElement(Open, { url: Routes.VirtualAddressMailDefaultView.getUrl(id) }),
|
|
38
39
|
React.createElement(Scan, { id: id }),
|
|
39
40
|
React.createElement(VirtualAddressMailMenu, { id: id, closeAside: !((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" || (view === null || view === void 0 ? void 0 : view.Type) === "QuickView") })))) : (React.createElement(ColumnItemCol, { span: 4, label: "Status", align: "flex-end" },
|
|
40
|
-
React.createElement(
|
|
41
|
+
React.createElement(StatusLabel, { status: virtualAddress.status, className: "status-label" })))))));
|
|
41
42
|
});
|
|
42
|
-
function getStatusColor(status) {
|
|
43
|
-
switch (status) {
|
|
44
|
-
case "Forwarded":
|
|
45
|
-
return "#F49C1B";
|
|
46
|
-
case "Pending":
|
|
47
|
-
return "#84CCFE";
|
|
48
|
-
case "Notified":
|
|
49
|
-
return "#1B7CFC";
|
|
50
|
-
case "New":
|
|
51
|
-
return "#F87949";
|
|
52
|
-
case "Collected":
|
|
53
|
-
return "#7BCC4A";
|
|
54
|
-
default:
|
|
55
|
-
return "#F49C1B";
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
43
|
};
|
|
59
44
|
export default VirtualAddressMailItem;
|
|
60
45
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iCAAiC,MAAM,sCAAsC,CAAC;AACrF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,cAAc,MAAM,qCAAqC,CAAC;AACjE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,WAAW,MAAM,+DAA+D,CAAC;AACxF,OAAO,IAAI,MAAM,4CAA4C,CAAC;AAC9D,OAAO,MAAM,MAAM,uBAAuB,CAAC;AA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