@voplus/morpho-csp 6.1.32 → 6.1.34
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/clda/components/CLDAPropertiesView/index.js +3 -9
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
- 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 +38 -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/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +2 -8
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js +2 -8
- package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/d
|
|
|
4
4
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
5
5
|
import CLDAProperties from "../CLDAProperties";
|
|
6
6
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
7
|
-
import
|
|
7
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
8
8
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
9
9
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
10
10
|
import Links from "@voplus/morpho-document/es/components/Links";
|
|
@@ -23,13 +23,7 @@ const CLDAPropertiesView = (props) => {
|
|
|
23
23
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
24
24
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view }, loaded && (React.createElement(Skeleton, { active: true, loading: !CLDA.loaded },
|
|
25
25
|
React.createElement("div", { className: "CLDA-properties-view" },
|
|
26
|
-
React.createElement(
|
|
27
|
-
toolBarProps: {
|
|
28
|
-
closeAside: true,
|
|
29
|
-
close: true,
|
|
30
|
-
onReload: onReload,
|
|
31
|
-
},
|
|
32
|
-
} }),
|
|
26
|
+
React.createElement(PropertiesPanelHeader, { id: id, onReload: onReload }),
|
|
33
27
|
React.createElement(DescriptionEditor, { id: id, description: CLDA.description, readonly: CLDA.readonly, padding: "0 0 0.75rem 0" }),
|
|
34
28
|
React.createElement(DocumentTabs, { id: id, active: "Properties", tabItems: [
|
|
35
29
|
{
|
|
@@ -55,7 +49,7 @@ const CLDAPropertiesView = (props) => {
|
|
|
55
49
|
{
|
|
56
50
|
key: "Activities",
|
|
57
51
|
label: "Activities",
|
|
58
|
-
children:
|
|
52
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id }) : null),
|
|
59
53
|
},
|
|
60
54
|
{
|
|
61
55
|
key: "Links",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,eAAe,MAAM,qEAAqE,CAAC;AAClG,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,WAAW,MAAM,kEAAkE,CAAC;AAC3F,OAAO,UAAU,MAAM,+DAA+D,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,MAAM,kBAAkB,GAAG,CA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F,eAAe,kBAAkB,CAAC"}
|
|
@@ -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 "@voplus/morpho-document/es/components/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, onReload: reload }),
|
|
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;AAC5C,OAAO,
|
|
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;AAC5C,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,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,EAC/B,QAAQ,EAAE,MAAM,GACf;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"}
|
|
@@ -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;YAC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D;oBACN,6BAAK,SAAS,EAAC,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"}
|
|
@@ -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,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;gBACC,oBAAC,UAAU,IAAC,IAAI,EAAE,MAAM,CAAC,WAAW,GAAI;gBACxC,8BAAM,SAAS,EAAC,+EAA+E,IAC7F,MAAM,CAAC,WAAW,CAAC,IAAI,CAClB,CACL,CACH;YACD,KAAK,EAAE,KAAK;SACZ;QACD;YACC,KAAK,EAAE,CACN,8BAAM,SAAS,EAAC,uDAAuD;gBACtE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI;0BACxB,CACP;YACD,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,CAAC,IAAS,EAAE,MAA6B,EAAE,EAAE,CAAC,oBAAC,UAAU,IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,GAAI;SAC3F;QACD;YACC,KAAK,EAAE,CACN,8BAAM,SAAS,EAAC,uDAAuD;gBACtE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI;4BACxB,CACP;YACD,SAAS,EAAE,UAAU;YACrB,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,CAAC,IAAS,EAAE,MAA6B,EAAE,EAAE,CACpD,MAAM,CAAC,QAAQ,IAAI,CAClB,8BAAM,SAAS,EAAC,qGAAqG,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,M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AAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,GACV,CACG,CACD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -4,52 +4,9 @@
|
|
|
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 {
|
|
9
|
+
font-size: 12px;
|
|
53
10
|
tr {
|
|
54
11
|
background-image: linear-gradient(to right, var(--tw-gradient-stops));
|
|
55
12
|
--tw-gradient-from: #f8fafc var(--tw-gradient-from-position);
|
|
@@ -57,9 +14,15 @@
|
|
|
57
14
|
--tw-gradient-to: #f1f5f9 var(--tw-gradient-to-position);
|
|
58
15
|
border-bottom: 1px solid #e2e8f0;
|
|
59
16
|
// border-color: #e2e8f0;
|
|
17
|
+
th:first-child {
|
|
18
|
+
padding-left: 1.5rem;
|
|
19
|
+
}
|
|
60
20
|
}
|
|
61
21
|
> tr > th {
|
|
62
22
|
background: none;
|
|
23
|
+
&::before {
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
}
|
|
63
26
|
}
|
|
64
27
|
}
|
|
65
28
|
.ant-table-tbody {
|
|
@@ -71,6 +34,9 @@
|
|
|
71
34
|
--tw-bg-opacity: 1;
|
|
72
35
|
background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
|
|
73
36
|
}
|
|
37
|
+
&:first-child {
|
|
38
|
+
padding-left: 1.5rem;
|
|
39
|
+
}
|
|
74
40
|
}
|
|
75
41
|
}
|
|
76
42
|
.ant-table-container {
|
|
@@ -78,5 +44,33 @@
|
|
|
78
44
|
border-start-end-radius: 0;
|
|
79
45
|
}
|
|
80
46
|
}
|
|
47
|
+
|
|
48
|
+
.tag-view-2 {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
.ant-tag,
|
|
52
|
+
.add-tag-btn {
|
|
53
|
+
margin-top: 0;
|
|
54
|
+
}
|
|
55
|
+
.add-tag-btn {
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
font-size: 0.75rem;
|
|
58
|
+
line-height: 1rem;
|
|
59
|
+
color: #334155;
|
|
60
|
+
background: #fff;
|
|
61
|
+
border: solid 1px #cbd5e1;
|
|
62
|
+
border-radius: 0.5rem;
|
|
63
|
+
padding: 0.375rem 0.75rem;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
&:hover {
|
|
66
|
+
background: #f8fafc;
|
|
67
|
+
border-color: #94a3b8;
|
|
68
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
69
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
70
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
71
|
+
var(--tw-shadow);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
81
75
|
}
|
|
82
76
|
}
|
|
@@ -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":[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5C,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,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;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1,7 @@
|
|
|
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 "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
5
5
|
import ShareCertificateTabs from "../ShareCertificateTabs";
|
|
6
6
|
import "./index.less";
|
|
7
7
|
const ShareCertificatePropertiesView = (props) => {
|
|
@@ -10,13 +10,7 @@ const ShareCertificatePropertiesView = (props) => {
|
|
|
10
10
|
const [loaded, setLoaded] = useState(true);
|
|
11
11
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
12
12
|
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
13
|
-
React.createElement(
|
|
14
|
-
toolBarProps: {
|
|
15
|
-
closeAside: true,
|
|
16
|
-
close: true,
|
|
17
|
-
onReload: onReload,
|
|
18
|
-
},
|
|
19
|
-
} }),
|
|
13
|
+
React.createElement(PropertiesPanelHeader, { id: id, onReload: onReload }),
|
|
20
14
|
React.createElement(ShareCertificateTabs, { id: id, properties: true })))))));
|
|
21
15
|
/** reload data */
|
|
22
16
|
function onReload() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/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;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.tsx"],"names":[],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ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
2
|
-
import
|
|
2
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import React, { useMemo, useState } from "react";
|
|
5
5
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
@@ -14,13 +14,7 @@ const CLDAFormPropertiesView = (props) => {
|
|
|
14
14
|
const form = useCLDAForm(id);
|
|
15
15
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
16
16
|
React.createElement("div", { className: "clda-form-properties-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
17
|
-
React.createElement(
|
|
18
|
-
toolBarProps: {
|
|
19
|
-
closeAside: true,
|
|
20
|
-
close: true,
|
|
21
|
-
onReload: reload,
|
|
22
|
-
},
|
|
23
|
-
} }),
|
|
17
|
+
React.createElement(PropertiesPanelHeader, { id: id, onReload: reload }),
|
|
24
18
|
React.createElement(DocumentTabs, { id: id, details: React.createElement("div", { className: "clda-form-details" },
|
|
25
19
|
React.createElement(Scrollbars, { autoHide: true }, content.getCLDAFormContent(form.metaKey, form.country, {
|
|
26
20
|
id,
|
package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO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