@voplus/morpho-csp 6.1.32 → 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/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 +26 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/ItemHeader.js +51 -65
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/ItemHeader.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js +6 -1
- 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 +10 -4
- 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 +31 -44
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +2 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,QAAQ,MAAM,yDAAyD,CAAC;AAC/E,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,OAAO,MAAM,wDAAwD,CAAC;AAC7E,OAAO,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{
|
|
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":"AAA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,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"}
|
|
@@ -1,5 +1,31 @@
|
|
|
1
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
|
+
};
|
|
2
27
|
declare const ItemHeader: (props: {
|
|
3
28
|
id: string;
|
|
29
|
+
onClick?: () => void;
|
|
4
30
|
}) => React.JSX.Element;
|
|
5
31
|
export default ItemHeader;
|
|
@@ -3,79 +3,65 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
3
3
|
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
4
4
|
import ShareTransactionPropertiesView from "../../ShareTransactionPropertiesView";
|
|
5
5
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
11
|
-
import { useApplicationContext } from "@voplus/morpho-data";
|
|
12
|
-
import { useShareTransaction, useShareTransactionStore, } from "../../../../../../../data/share-transaction";
|
|
7
|
+
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus3";
|
|
8
|
+
import { useShareTransaction } from "../../../../../../../data/share-transaction";
|
|
13
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
|
+
};
|
|
14
48
|
const ItemHeader = (props) => {
|
|
15
49
|
const { id } = props;
|
|
16
|
-
const store = useShareTransactionStore();
|
|
17
|
-
const { user } = useApplicationContext();
|
|
18
50
|
const shareTransaction = useShareTransaction(id);
|
|
19
|
-
// 获取交易类型对应的图标和颜色配置
|
|
20
|
-
const getTransactionTypeConfig = (type) => {
|
|
21
|
-
const configs = {
|
|
22
|
-
Allotment: {
|
|
23
|
-
icon: faCoins,
|
|
24
|
-
bgClass: "from-emerald-500 to-green-600", // 绿色系 - 分配/配股
|
|
25
|
-
},
|
|
26
|
-
Transfer: {
|
|
27
|
-
icon: faExchangeAlt,
|
|
28
|
-
bgClass: "from-blue-500 to-indigo-600", // 蓝色系 - 转移/转让
|
|
29
|
-
},
|
|
30
|
-
Cancel: {
|
|
31
|
-
icon: faBan,
|
|
32
|
-
bgClass: "from-red-500 to-rose-600", // 红色系 - 取消
|
|
33
|
-
},
|
|
34
|
-
Consolidate: {
|
|
35
|
-
icon: faCompressArrowsAlt,
|
|
36
|
-
bgClass: "from-purple-500 to-violet-600", // 紫色系 - 合并
|
|
37
|
-
},
|
|
38
|
-
Convert: {
|
|
39
|
-
icon: faMagic,
|
|
40
|
-
bgClass: "from-orange-500 to-amber-600", // 橙色系 - 转换
|
|
41
|
-
},
|
|
42
|
-
Divide: {
|
|
43
|
-
icon: faExpandArrowsAlt,
|
|
44
|
-
bgClass: "from-teal-500 to-cyan-600", // 青色系 - 分割
|
|
45
|
-
},
|
|
46
|
-
Import: {
|
|
47
|
-
icon: faFileImport,
|
|
48
|
-
bgClass: "from-slate-500 to-gray-600", // 灰色系 - 导入
|
|
49
|
-
},
|
|
50
|
-
Others: {
|
|
51
|
-
icon: faEllipsisH,
|
|
52
|
-
bgClass: "from-pink-500 to-rose-600", // 粉红色系 - 其他
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
return configs[type] || configs.Others;
|
|
56
|
-
};
|
|
57
51
|
const typeConfig = getTransactionTypeConfig(shareTransaction.transactionType);
|
|
58
52
|
return observe(() => {
|
|
59
53
|
var _a;
|
|
60
|
-
return (React.createElement(ItemFunction, { className: "
|
|
61
|
-
React.createElement("div", { className: "
|
|
62
|
-
React.createElement("div", { className: "flex items-center
|
|
63
|
-
React.createElement("div", { className:
|
|
64
|
-
React.createElement(
|
|
65
|
-
|
|
66
|
-
React.createElement("div", { className: "flex items-center gap-
|
|
67
|
-
React.createElement("
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
React.createElement(Open, null))),
|
|
72
|
-
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" }, shareTransaction.description || (React.createElement("span", { className: "text-slate-400 italic" }, (_a = shareTransaction.transactionType) !== null && _a !== void 0 ? _a : "No description"))),
|
|
73
|
-
React.createElement("div", { className: "flex items-center" },
|
|
74
|
-
React.createElement("div", { className: "share-transaction-identity-status" },
|
|
75
|
-
React.createElement(IdentityStatus, { id: shareTransaction.id })),
|
|
76
|
-
React.createElement("div", { onClick: (e) => e.stopPropagation() },
|
|
77
|
-
React.createElement(TagView, { id: shareTransaction.id, tags: shareTransaction.tags, editable: user.can("edit", shareTransaction.p, { asset: "Tags" }) &&
|
|
78
|
-
!shareTransaction.readonly, items: store.items, maxCount: 3 }))))));
|
|
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 }))));
|
|
79
65
|
});
|
|
80
66
|
};
|
|
81
67
|
export default ItemHeader;
|
|
@@ -1 +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,
|
|
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,OAAO,EAAE,0BAA0B,EAAE,WAAW;SAChD;QACD,WAAW,EAAE;YACZ,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE,+BAA+B,EAAE,WAAW;SACrD;QACD,OAAO,EAAE;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,8BAA8B,EAAE,WAAW;SACpD;QACD,MAAM,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,2BAA2B,EAAE,WAAW;SACjD;QACD,MAAM,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B,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"}
|
|
@@ -12,7 +12,9 @@ const ShareTable = (props) => {
|
|
|
12
12
|
React.createElement(FAIcon, { icon: faUserGroup }),
|
|
13
13
|
" Shareholder")),
|
|
14
14
|
dataIndex: "shareholder",
|
|
15
|
-
render: (text, record) => (React.createElement(
|
|
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))),
|
|
16
18
|
width: "30%",
|
|
17
19
|
},
|
|
18
20
|
{
|
|
@@ -20,6 +22,7 @@ const ShareTable = (props) => {
|
|
|
20
22
|
React.createElement(FAIcon, { icon: faMoneyBills }),
|
|
21
23
|
" Shares")),
|
|
22
24
|
dataIndex: "shares",
|
|
25
|
+
align: "center",
|
|
23
26
|
render: (text, record) => React.createElement(SharesText, { shares: record.shares }),
|
|
24
27
|
},
|
|
25
28
|
{
|
|
@@ -27,12 +30,14 @@ const ShareTable = (props) => {
|
|
|
27
30
|
React.createElement(FAIcon, { icon: faDollarSign }),
|
|
28
31
|
" Currency")),
|
|
29
32
|
dataIndex: "currency",
|
|
33
|
+
align: "center",
|
|
30
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)),
|
|
31
35
|
},
|
|
32
36
|
{
|
|
33
37
|
title: (React.createElement("span", { className: "font-semibold text-slate-700 uppercase tracking-wider" },
|
|
34
38
|
React.createElement(FAIcon, { icon: faLandmark }),
|
|
35
39
|
" Share Capital")),
|
|
40
|
+
align: "center",
|
|
36
41
|
render: (text, record) => (React.createElement(SharesText, { shares: record.consideration })),
|
|
37
42
|
dataIndex: "consideration",
|
|
38
43
|
},
|
|
@@ -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,yEAAyE,CAAC;AACjG,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,UAAU,GAAG,CAAC,KAAyC,EAAE,EAAE;IAChE,MAAM,OAAO,GAAG;QACf;YACC,KAAK,EAAE,CACN,8BAAM,SAAS,EAAC,uDAAuD;gBACtE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;+BACvB,CACP;YACD,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,CAAC,IAAS,EAAE,MAA6B,EAAE,EAAE,CAAC,CACrD,oBAAC,UAAU,IAAC,IAAI,EAAE,MAAM,CAAC,WAAW,
|
|
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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IACnH,MAAM,CAAC,QAAQ,CACV,CACP;SACF;QACD;YACC,KAAK,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"}
|
|
@@ -2,26 +2,32 @@ import React from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { faCalendar } from "@fortawesome/pro-light-svg-icons";
|
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { useShareTransaction } from "../../../../../../../data/share-transaction";
|
|
6
5
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
6
|
+
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
7
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
8
|
+
import { useShareTransaction, useShareTransactionStore, } from "../../../../../../../data/share-transaction";
|
|
7
9
|
import ShareTable from "./Table";
|
|
8
10
|
import ItemHeader from "./ItemHeader";
|
|
11
|
+
import classnames from "classnames";
|
|
9
12
|
import "./index.less";
|
|
10
13
|
const Item = (props) => {
|
|
11
14
|
const { id } = props;
|
|
15
|
+
const store = useShareTransactionStore();
|
|
16
|
+
const { user } = useApplicationContext();
|
|
12
17
|
const shareTransaction = useShareTransaction(id, {
|
|
13
18
|
reload: (d) => !d.p,
|
|
14
19
|
includes: "permissions",
|
|
15
20
|
});
|
|
16
|
-
return observe(() => (React.createElement("div", { className: "registers-share-transaction-item-card bg-white rounded-xl border border-slate-200
|
|
17
|
-
React.createElement(ItemHeader, { id: id }),
|
|
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 }),
|
|
18
23
|
React.createElement("div", { className: "registers-share-table" },
|
|
19
24
|
React.createElement(ShareTable, { lines: shareTransaction.lines })),
|
|
20
25
|
React.createElement("div", { className: "px-6 py-4 bg-slate-50 border-t border-slate-100" },
|
|
21
26
|
React.createElement("div", { className: "flex items-center justify-between" },
|
|
22
27
|
React.createElement("div", { className: "flex items-center gap-1 text-sm text-slate-600" },
|
|
23
28
|
React.createElement(FAIcon, { icon: faCalendar }),
|
|
24
|
-
React.createElement(UTCShortDate, { className: "font-medium", value: shareTransaction.date, format: "DD MMMM YYYY" }))
|
|
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 }))))));
|
|
25
31
|
};
|
|
26
32
|
export default Item;
|
|
27
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,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,
|
|
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"}
|
|
@@ -4,50 +4,6 @@
|
|
|
4
4
|
.registers-share-transaction-item-card {
|
|
5
5
|
margin: 0 20px 20px 20px;
|
|
6
6
|
|
|
7
|
-
.share-transaction-item-header {
|
|
8
|
-
border-top-left-radius: 0.75rem;
|
|
9
|
-
border-top-right-radius: 0.75rem;
|
|
10
|
-
.flag-icon {
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
}
|
|
13
|
-
.share-transaction-identity-status {
|
|
14
|
-
span {
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
height: 20px;
|
|
18
|
-
line-height: 20px;
|
|
19
|
-
border-radius: 4px;
|
|
20
|
-
margin-right: 10px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.tag-view-2 {
|
|
24
|
-
.ant-tag,
|
|
25
|
-
.add-tag-btn {
|
|
26
|
-
margin-top: 0;
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
height: 20px;
|
|
29
|
-
line-height: 20px;
|
|
30
|
-
}
|
|
31
|
-
.add-tag-btn {
|
|
32
|
-
color: #64748b;
|
|
33
|
-
&:hover {
|
|
34
|
-
color: #334155;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.tool-bar {
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.transactionType-icon {
|
|
44
|
-
color: #64748b;
|
|
45
|
-
svg {
|
|
46
|
-
width: 16px;
|
|
47
|
-
height: 16px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
7
|
.registers-share-table {
|
|
52
8
|
.ant-table-thead {
|
|
53
9
|
tr {
|
|
@@ -60,6 +16,9 @@
|
|
|
60
16
|
}
|
|
61
17
|
> tr > th {
|
|
62
18
|
background: none;
|
|
19
|
+
&::before {
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
}
|
|
63
22
|
}
|
|
64
23
|
}
|
|
65
24
|
.ant-table-tbody {
|
|
@@ -78,5 +37,33 @@
|
|
|
78
37
|
border-start-end-radius: 0;
|
|
79
38
|
}
|
|
80
39
|
}
|
|
40
|
+
|
|
41
|
+
.tag-view-2 {
|
|
42
|
+
display: flex;
|
|
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
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
81
68
|
}
|
|
82
69
|
}
|
|
@@ -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();
|
|
@@ -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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ACJ,OAAO,EAAE,KAAK,CAAC,QAAQ,EACvB,KAAK,EAAE;wCACN,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;wCACxC,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;wCACtC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;wCAClC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;wCACpC,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;wCAC5C,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;wCAClC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;wCAClC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;qCAClC,GACA,GAEF,CACF,CACC,CACH,GACA;oBACF,oBAAC,QAAQ,IACR,SAAS,EAAC,cAAc,EACxB,SAAS,EAAE,KAAK,EAChB,WAAW,EAAE;4BACZ,OAAO,EAAE,KAAK;yBACd,EACD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,oBAAC,IAAI,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,
|
|
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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