@voplus/morpho-csp 6.1.33 → 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 +2 -2
- 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/index.less +7 -0
- 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
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.d.ts +0 -14
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.js +0 -61
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.js.map +0 -1
- package/es/modules/corporate/company/share-transactions-register/components/PropertiesPanelHeader/index.less +0 -94
|
@@ -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,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAsB,CAAC;IACjE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IACrD,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IACzB,MAAM,IAAI,GAAG,OAAO,C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E,UAAU;wBACjB,QAAQ,EAAE,CACT,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,QAAQ,QACR,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,MAAM,CAAC,GAChB,CACF;qBACD;oBACD;wBACC,GAAG,EAAE,YAAY;wBACjB,KAAK,EAAE,YAAY;wBACnB,QAAQ,EAAE,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI;qBAC5E;oBACD;wBACC,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,OAAO;wBACd,QAAQ,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;qBAC3C;iBACD,EACD,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACG,CACI,CACX,CACqB,CACvB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +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 PropertiesPanelHeader from "
|
|
4
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
5
5
|
import ShareTransactionTabs from "../ShareTransactionTabs";
|
|
6
6
|
import { useShareTransaction } from "../../../../../../data/share-transaction";
|
|
7
7
|
import { getTransactionTypeConfig } from "../ShareTransactionTableList/Item/ItemHeader";
|
|
@@ -14,7 +14,7 @@ const ShareTransactionPropertiesView = (props) => {
|
|
|
14
14
|
const typeConfig = getTransactionTypeConfig(shareTransaction.transactionType);
|
|
15
15
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
16
16
|
React.createElement("div", { className: "share-transaction-properties-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
17
|
-
React.createElement(PropertiesPanelHeader, { id: id, icon: typeConfig.icon, iconBgClass: typeConfig.bgClass }),
|
|
17
|
+
React.createElement(PropertiesPanelHeader, { id: id, icon: typeConfig.icon, iconBgClass: typeConfig.bgClass, onReload: reload }),
|
|
18
18
|
React.createElement(ShareTransactionTabs, { id: id, properties: true })))))));
|
|
19
19
|
function reload() {
|
|
20
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;AAC5C,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AA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|
|
|
7
7
|
.registers-share-table {
|
|
8
8
|
.ant-table-thead {
|
|
9
|
+
font-size: 12px;
|
|
9
10
|
tr {
|
|
10
11
|
background-image: linear-gradient(to right, var(--tw-gradient-stops));
|
|
11
12
|
--tw-gradient-from: #f8fafc var(--tw-gradient-from-position);
|
|
@@ -13,6 +14,9 @@
|
|
|
13
14
|
--tw-gradient-to: #f1f5f9 var(--tw-gradient-to-position);
|
|
14
15
|
border-bottom: 1px solid #e2e8f0;
|
|
15
16
|
// border-color: #e2e8f0;
|
|
17
|
+
th:first-child {
|
|
18
|
+
padding-left: 1.5rem;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
> tr > th {
|
|
18
22
|
background: none;
|
|
@@ -30,6 +34,9 @@
|
|
|
30
34
|
--tw-bg-opacity: 1;
|
|
31
35
|
background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
|
|
32
36
|
}
|
|
37
|
+
&:first-child {
|
|
38
|
+
padding-left: 1.5rem;
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
.ant-table-container {
|
package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js
CHANGED
|
@@ -1,7 +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":[],"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,cAAc,CAAC;AAEtB,MAAM,8BAA8B,GAAG,CAAC,KAAwC,EAAE,EAAE;IACnF,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oBAAoB,IACjC,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAI;YACrD,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC3B,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewContext, 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,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,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,OAAO,GAAG,IAAI,eAAe,EAAE,CAAC;IAEtC,MAAM,IAAI,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,2BAA2B,IACxC,MAAM,IAAI,CACV;YACC,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAI;YACnD,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,OAAO,EACN,6BAAK,SAAS,EAAC,mBAAmB;oBACjC,oBAAC,UAAU,IAAC,QAAQ,UAClB,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;wBACvD,EAAE;wBACF,IAAI,EAAE,aAAa;qBACnB,CAAC,CACU,CACR,GAEN,CACA,CACH,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,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC9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C,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;IAEH,SAAS,SAAS,CAAC,KAA+C;QACjE,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YAC9C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,UAAU,EAAE,CAAC;QACd,CAAC;aAAM,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC;IACF,CAAC;IAED,KAAK,UAAU,UAAU;QACxB,OAAO,CAAC,KAAK,CAAC,CAAC;QACf,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,gBAAgB,CAAC,IAAI,EAAE,CAAC;YACnD,MAAM,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACnE,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,WAAW,EAAE,+BAA+B,EAAE,WAAW;CACzD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
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
|
-
}
|