@voplus/morpho-csp 6.1.60 → 6.1.61
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.js +1 -1
- package/es/modules/corporate/clda/components/CLDAItem/index.js +3 -15
- package/es/modules/corporate/clda/components/CLDAItem/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js +4 -24
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/clda/components/CLDAItem/index.less +0 -53
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.less +0 -24
package/es/Modules.js
CHANGED
|
@@ -5,7 +5,7 @@ import { DocumentUIService } from "@voplus/morpho-document/es/DocumentUIService"
|
|
|
5
5
|
import { FormElementRegister } from "@voplus/morpho-form/es/services/FormElementRegister";
|
|
6
6
|
import { IncorporationCLDATypeMeta } from "./data/incorporation-clda/metas";
|
|
7
7
|
import { CompanyGeneralCLDAMeta } from "./data/company-general/metas";
|
|
8
|
-
import registerFieldItems from "@voplus/morpho-fields/es/
|
|
8
|
+
import registerFieldItems from "@voplus/morpho-fields/es/fields/registerItems";
|
|
9
9
|
import { NodeFieldRegister } from "@voplus/morpho-fields/es/services/NodeFieldRegister";
|
|
10
10
|
import { AGMCLDATypeMeta } from "./data/agm-clda/metas";
|
|
11
11
|
import { CLDAFormTypeMeta } from "./data/clda-form/metas";
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useCLDA } from "../../../../../data/clda";
|
|
4
|
-
import
|
|
5
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
4
|
+
import DocumentItem from "@voplus/morpho-document/es/components/DocumentItem/DocumentItem2";
|
|
7
5
|
import CLDAStatusButton from "../../controls/CLDAStatusButton";
|
|
8
6
|
import CLDADataBar from "../../controls/CLDADataBar";
|
|
9
|
-
import classnames from "classnames";
|
|
10
|
-
import styles from "./index.less";
|
|
11
7
|
const CLDAItem = (props) => {
|
|
12
8
|
const { id } = props;
|
|
13
|
-
const [hover, setHover] = useState(false);
|
|
14
9
|
const clda = useCLDA(id);
|
|
15
|
-
return observe(() => (React.createElement(
|
|
16
|
-
clda.assistantStatus && (React.createElement(CLDAStatusButton, { className: classnames("clda-status-label", { hide: hover }), editable: false, status: clda.assistantStatus, onChange: () => { } })),
|
|
17
|
-
React.createElement("div", { className: classnames("hover-operate-icon", {
|
|
18
|
-
show: hover,
|
|
19
|
-
}) },
|
|
20
|
-
React.createElement("span", { onClick: (e) => e.stopPropagation() },
|
|
21
|
-
React.createElement(ToolBar, { moreProps: { id: props.id } },
|
|
22
|
-
React.createElement(Open, { url: `/clda/${id}` }))))) })));
|
|
10
|
+
return observe(() => (React.createElement(DocumentItem, { id: id, quickDataBar: React.createElement(CLDADataBar, { id: id, dateProps: { edit: false } }), rightContent: clda.assistantStatus && (React.createElement(CLDAStatusButton, { editable: false, status: clda.assistantStatus, onChange: () => { } })) })));
|
|
23
11
|
};
|
|
24
12
|
export default CLDAItem;
|
|
25
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,YAAY,MAAM,kEAAkE,CAAC;AAC5F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAErD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,YAAY,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAI,EACjE,YAAY,EACX,IAAI,CAAC,eAAe,IAAI,CACvB,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CACvF,GAED,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,32 +1,12 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
3
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
4
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
3
|
import { observe } from "@voplus/morpho-ui";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
9
|
-
import classnames from "classnames";
|
|
10
|
-
import styles from "./index.less";
|
|
4
|
+
import DocumentItem from "@voplus/morpho-document/es/components/DocumentItem/DocumentItem2";
|
|
5
|
+
import { ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
11
6
|
const ShareCertificateItem = (props) => {
|
|
12
7
|
const { id } = props;
|
|
13
|
-
const meta = useMetaStore();
|
|
14
8
|
const shareCertificate = useShareCertificate(id);
|
|
15
|
-
|
|
16
|
-
return observe(() => {
|
|
17
|
-
var _a;
|
|
18
|
-
return (React.createElement("div", { className: styles["share-certificate-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
|
|
19
|
-
React.createElement(ColumnItem, { className: "shareCertificate-column-item" },
|
|
20
|
-
React.createElement(ColumnItemCol, { span: 18 },
|
|
21
|
-
React.createElement(DocumentHeader, { id: shareCertificate.id, clickNameEffect: "default", quickDataBarAlign: "left", tagsVisible: !!((_a = shareCertificate.tags) === null || _a === void 0 ? void 0 : _a.length), toolsVisible: false })),
|
|
22
|
-
React.createElement(ColumnItemCol, { span: props.toolBarVisible ? 3 : 6, label: "Shares" }, shareCertificate.shares),
|
|
23
|
-
props.toolBarVisible && (React.createElement(ColumnItemCol, { span: 3, align: "flex-end" },
|
|
24
|
-
React.createElement("div", { className: classnames("share-certificate-item-tool", { show: hover }) },
|
|
25
|
-
React.createElement(ToolBar, { id: id, moreProps: {
|
|
26
|
-
buttonProps: { size: "middle" },
|
|
27
|
-
} },
|
|
28
|
-
React.createElement(Open, { size: "middle", url: meta.getRoute(shareCertificate) }))))))));
|
|
29
|
-
});
|
|
9
|
+
return observe(() => (React.createElement(DocumentItem, { id: id, middleContent: React.createElement(ColumnItemCol, { span: 3, label: "Shares" }, shareCertificate.shares), toolBarVisible: props.toolBarVisible })));
|
|
30
10
|
};
|
|
31
11
|
ShareCertificateItem.defaultProps = {
|
|
32
12
|
toolBarVisible: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,MAAM,oBAAoB,GAAG,CAAC,KAA+C,EAAE,EAAE;IAChF,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IAEjD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,aAAa,EACZ,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,QAAQ,IACpC,gBAAgB,CAAC,MAAM,CACT,EAEjB,cAAc,EAAE,KAAK,CAAC,cAAc,GACnC,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
.clda-item {
|
|
4
|
-
position: relative;
|
|
5
|
-
align-items: center;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
|
|
8
|
-
&:after {
|
|
9
|
-
position: absolute;
|
|
10
|
-
content: "";
|
|
11
|
-
left: 20px;
|
|
12
|
-
right: 0;
|
|
13
|
-
bottom: 0;
|
|
14
|
-
border-bottom: 1px solid @border-color-base;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:hover {
|
|
18
|
-
:global(.add-tag-btn) {
|
|
19
|
-
display: inline-block;
|
|
20
|
-
visibility: visible;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:global {
|
|
25
|
-
.add-tag-btn {
|
|
26
|
-
visibility: hidden;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.clda-status-label {
|
|
30
|
-
opacity: 1;
|
|
31
|
-
transition: opacity 0.3s;
|
|
32
|
-
flex-shrink: 0;
|
|
33
|
-
|
|
34
|
-
&.hide {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.hover-operate-icon {
|
|
40
|
-
display: none;
|
|
41
|
-
position: absolute;
|
|
42
|
-
right: 20px;
|
|
43
|
-
|
|
44
|
-
.ant-btn:first-child {
|
|
45
|
-
margin-left: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.show {
|
|
49
|
-
display: block;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
.share-certificate-item {
|
|
4
|
-
:global {
|
|
5
|
-
.column-item-content {
|
|
6
|
-
& > div {
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.document-header-default {
|
|
12
|
-
background-color: rgba(0, 0, 0, 0);
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.share-certificate-item-tool {
|
|
17
|
-
display: none;
|
|
18
|
-
|
|
19
|
-
&.show {
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|