@voplus/morpho-csp 1.2.175 → 1.2.177
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 +3 -1
- package/es/Modules.js.map +1 -1
- package/es/data/member/interfaces.d.ts +1 -1
- package/es/data/share-certificate/ShareCertificateStore.d.ts +11 -0
- package/es/data/share-certificate/ShareCertificateStore.js +22 -0
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -0
- package/es/data/share-certificate/hooks.d.ts +13 -0
- package/es/data/share-certificate/hooks.js +24 -0
- package/es/data/share-certificate/hooks.js.map +1 -0
- package/es/data/share-certificate/index.d.ts +5 -0
- package/es/data/share-certificate/index.js +6 -0
- package/es/data/share-certificate/index.js.map +1 -0
- package/es/data/share-certificate/interfaces.d.ts +15 -0
- package/es/data/share-certificate/interfaces.js.map +1 -0
- package/es/data/share-certificate/metas.d.ts +13 -0
- package/es/data/share-certificate/metas.js +38 -0
- package/es/data/share-certificate/metas.js.map +1 -0
- package/es/data/share-certificate/types.d.ts +12 -0
- package/es/data/share-certificate/types.js +2 -0
- package/es/data/share-certificate/types.js.map +1 -0
- package/es/data/{shareTransaction → share-transaction}/ShareTransactionStore.js +1 -1
- package/es/data/share-transaction/ShareTransactionStore.js.map +1 -0
- package/es/data/share-transaction/hooks.js.map +1 -0
- package/es/data/share-transaction/index.js.map +1 -0
- package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransaction.d.ts +1 -0
- package/es/data/share-transaction/interfaces/IShareTransaction.js.map +1 -0
- package/es/data/share-transaction/interfaces/IShareTransactionLine.js.map +1 -0
- package/es/data/share-transaction/interfaces/index.js.map +1 -0
- package/es/data/share-transaction/metas.js.map +1 -0
- package/es/data/share-transaction/types/ShareLineCreateOptions.js.map +1 -0
- package/es/data/share-transaction/types/ShareTransactionCreateOptions.js.map +1 -0
- package/es/data/share-transaction/types/ShareTransactionEditOptions.js.map +1 -0
- package/es/data/share-transaction/types/ShareTransactionType.js.map +1 -0
- package/es/data/share-transaction/types/index.js.map +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js +7 -3
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +6 -6
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +6 -6
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/state.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.d.ts +26 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +66 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.d.ts +3 -10
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js +22 -10
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +37 -89
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +42 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js +10 -8
- package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +21 -62
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +85 -89
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +3 -3
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.d.ts +9 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js +13 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.d.ts +17 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js +56 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.less +41 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.d.ts +10 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js +34 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.d.ts +3 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +46 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +164 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.d.ts +5 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js +27 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.less +47 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.d.ts +38 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js +137 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.less +16 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +26 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +43 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.d.ts +7 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +32 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.less +14 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.d.ts +7 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +34 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.less +15 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +6 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +39 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.d.ts +12 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js +18 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.d.ts +7 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +13 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.js +12 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.d.ts +5 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.js +29 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.d.ts +19 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js +61 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.d.ts +10 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js +10 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +35 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.d.ts +5 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.js +29 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.d.ts +19 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js +55 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +10 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js +14 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.less +21 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +10 -39
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +36 -30
- package/es/modules/corporate/share-options-register/components/ShareOptionList/state.d.ts +1 -1
- package/es/{modules/corporate/company/share-transactions-register/components → obsolete}/ShareTransactionPropertiesView/Content.js +3 -4
- package/es/obsolete/ShareTransactionPropertiesView/Content.js.map +1 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.d.ts +13 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.js +15 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.js.map +1 -0
- package/es/obsolete/ShareTransactionPropertiesView/index.less +89 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.d.ts +4 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js +65 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -0
- package/es/obsolete/shareCertificate/hooks.js.map +1 -0
- package/es/obsolete/shareCertificate/index.js.map +1 -0
- package/es/obsolete/shareCertificate/interfaces.js +2 -0
- package/es/obsolete/shareCertificate/interfaces.js.map +1 -0
- package/es/obsolete/shareCertificate/store.js.map +1 -0
- package/es/routes.js +6 -6
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/data/shareCertificate/hooks.js.map +0 -1
- package/es/data/shareCertificate/index.js.map +0 -1
- package/es/data/shareCertificate/interfaces.js.map +0 -1
- package/es/data/shareCertificate/store.js.map +0 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +0 -1
- package/es/data/shareTransaction/hooks.js.map +0 -1
- package/es/data/shareTransaction/index.js.map +0 -1
- package/es/data/shareTransaction/interfaces/IShareTransaction.js.map +0 -1
- package/es/data/shareTransaction/interfaces/IShareTransactionLine.js.map +0 -1
- package/es/data/shareTransaction/interfaces/index.js.map +0 -1
- package/es/data/shareTransaction/metas.js.map +0 -1
- package/es/data/shareTransaction/types/ShareLineCreateOptions.js.map +0 -1
- package/es/data/shareTransaction/types/ShareTransactionCreateOptions.js.map +0 -1
- package/es/data/shareTransaction/types/ShareTransactionEditOptions.js.map +0 -1
- package/es/data/shareTransaction/types/ShareTransactionType.js.map +0 -1
- package/es/data/shareTransaction/types/index.js.map +0 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +0 -1
- /package/es/data/{shareCertificate → share-certificate}/interfaces.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/ShareTransactionStore.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/hooks.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/hooks.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/index.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/index.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransaction.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransactionLine.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/IShareTransactionLine.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/index.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/interfaces/index.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/metas.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/metas.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareLineCreateOptions.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareLineCreateOptions.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionCreateOptions.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionCreateOptions.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionEditOptions.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionEditOptions.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionType.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/ShareTransactionType.js +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/index.d.ts +0 -0
- /package/es/data/{shareTransaction → share-transaction}/types/index.js +0 -0
- /package/es/{modules/corporate/company/share-transactions-register/components → obsolete}/ShareTransactionPropertiesView/Content.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/hooks.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/hooks.js +0 -0
- /package/es/{data → obsolete}/shareCertificate/index.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/index.js +0 -0
- /package/es/{data → obsolete}/shareCertificate/interfaces.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/store.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/store.js +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useShareCertificate, useShareCertificateStore } from "../../../../../data/share-certificate";
|
|
3
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
4
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
7
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
|
+
import classnames from "classnames";
|
|
9
|
+
import styles from "./index.less";
|
|
10
|
+
const ShareCertificateItem = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const meta = useMetaStore();
|
|
13
|
+
const shareCertificate = useShareCertificate(id);
|
|
14
|
+
const store = useShareCertificateStore();
|
|
15
|
+
const [hover, setHover] = useState(false);
|
|
16
|
+
return observe(() => {
|
|
17
|
+
var _a;
|
|
18
|
+
return (React.createElement(DocumentHeader, { id: shareCertificate.id, clickNameEffect: "default", quickDataBarAlign: "left", tagsVisible: !!((_a = shareCertificate.tags) === null || _a === void 0 ? void 0 : _a.length), className: styles["share-certificate-item"], onMouse: (over) => setHover(over), tools: React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement("div", { className: classnames("hover-operate-icon", { show: hover }) },
|
|
20
|
+
React.createElement(ToolBar, { id: id, moreProps: {
|
|
21
|
+
buttonProps: { size: "middle" },
|
|
22
|
+
} },
|
|
23
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(shareCertificate) })))) }));
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export default ShareCertificateItem;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MA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,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
.share-certificate-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
align-items: center;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
|
|
9
|
+
&:global(:after) {
|
|
10
|
+
position: absolute;
|
|
11
|
+
content: "";
|
|
12
|
+
left: 20px;
|
|
13
|
+
right: 20px;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
border-bottom: 1px solid #f2f2f2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:global {
|
|
19
|
+
.share-certificate-status-label {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
transition: opacity 0.3s;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
|
|
24
|
+
&.hide {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.hover-operate-icon {
|
|
30
|
+
display: none;
|
|
31
|
+
position: absolute;
|
|
32
|
+
right: 20px;
|
|
33
|
+
|
|
34
|
+
.ant-btn:first-child {
|
|
35
|
+
margin-left: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.show {
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.due-date {
|
|
44
|
+
margin-right: 12px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IShareCertificate } from "../../../../../data/share-certificate";
|
|
3
|
+
export declare type ShareCertificateListProps = {
|
|
4
|
+
parentId?: string;
|
|
5
|
+
/** filter by contactId */
|
|
6
|
+
contactId?: string;
|
|
7
|
+
/** Sales Center id */
|
|
8
|
+
centerId?: string;
|
|
9
|
+
/** filter by shareCertificate status */
|
|
10
|
+
status?: string;
|
|
11
|
+
/** custom title */
|
|
12
|
+
viewTitle?: React.ReactNode;
|
|
13
|
+
/** is show filter */
|
|
14
|
+
filter?: boolean;
|
|
15
|
+
/** is show shareCertificate amount */
|
|
16
|
+
total?: boolean;
|
|
17
|
+
/** 是否允在 listView 内部打开 aside */
|
|
18
|
+
asideable?: boolean;
|
|
19
|
+
/** 预选 contact */
|
|
20
|
+
primaryContact?: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
/** New Form 打开的方式 */
|
|
25
|
+
openNewFormMode?: "openAside" | "openBottom" | "openDialog";
|
|
26
|
+
/** Call back when received total number of quotations. */
|
|
27
|
+
onTotal?: (total: number) => void;
|
|
28
|
+
/** Call back when an item has been clicked on the list. */
|
|
29
|
+
onClickItem?: (item: IShareCertificate) => void;
|
|
30
|
+
};
|
|
31
|
+
declare const ShareCertificateList: {
|
|
32
|
+
(props: ShareCertificateListProps): JSX.Element;
|
|
33
|
+
defaultProps: {
|
|
34
|
+
viewTitle: string;
|
|
35
|
+
openNewFormMode: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default ShareCertificateList;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge } from "@voplus/antd";
|
|
3
|
+
import { useShareCertificateListEffect, } from "../../../../../data/share-certificate";
|
|
4
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
5
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
8
|
+
import NewShareCertificateForm from "../NewShareCertificateForm";
|
|
9
|
+
import NewShareCertificateFormDialog from "../NewShareCertificateForm/NewShareCertificateFormDialog";
|
|
10
|
+
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
11
|
+
import ShareCertificateStatusFilter from "../../controls/ShareCertificateStatusFilter";
|
|
12
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
13
|
+
import ShareCertificateItem from "../ShareCertificateItem";
|
|
14
|
+
import styles from "./index.less";
|
|
15
|
+
const ShareCertificateList = (props) => {
|
|
16
|
+
const { centerId, contactId, viewTitle, openNewFormMode, asideable, status, parentId, primaryContact, filter, total, } = props;
|
|
17
|
+
const [activeId, setActiveId] = useState("");
|
|
18
|
+
const [addAble, setAddAble] = useState(false);
|
|
19
|
+
const [visible, setVisible] = useState(false);
|
|
20
|
+
const [shareCertificateTotal, setShareCertificateTotal] = useState(0);
|
|
21
|
+
let listViewHeaderProps;
|
|
22
|
+
if (props.status === "my" || props.status === "all" || filter)
|
|
23
|
+
listViewHeaderProps = {
|
|
24
|
+
filterViewProps: {
|
|
25
|
+
columns: [
|
|
26
|
+
React.createElement(ShareCertificateStatusFilter, { key: "ShareCertificateStatusFilter", defaultValue: defaultValue() }),
|
|
27
|
+
],
|
|
28
|
+
onFilter,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const list = useCreateListDataState({
|
|
32
|
+
filterDefaults: {
|
|
33
|
+
includes: "tags,versions",
|
|
34
|
+
filters: filters(),
|
|
35
|
+
},
|
|
36
|
+
}, [centerId, parentId, status, contactId]);
|
|
37
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
38
|
+
useAutoUpdateListData(list, (d) => d.type === "ShareCertificate");
|
|
39
|
+
useRenderOnChange(() => list.filters.options);
|
|
40
|
+
/** 把ListDataState传给useShareCertificateListEffect,使之可以自動更新loading, hasmore. */
|
|
41
|
+
useShareCertificateListEffect(list, (result, total) => {
|
|
42
|
+
var _a;
|
|
43
|
+
list.union(result);
|
|
44
|
+
setShareCertificateTotal(total);
|
|
45
|
+
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
|
|
46
|
+
}, {
|
|
47
|
+
Total: true,
|
|
48
|
+
...list.filters.options,
|
|
49
|
+
});
|
|
50
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
51
|
+
React.createElement("div", { className: styles["share-certificate-list"] },
|
|
52
|
+
React.createElement(ListView, { headerProps: {
|
|
53
|
+
viewTitle: (React.createElement(React.Fragment, null,
|
|
54
|
+
React.createElement("span", { className: "margin-right-10" }, viewTitle),
|
|
55
|
+
total && shareCertificateTotal ? (React.createElement(Badge, { count: shareCertificateTotal, overflowCount: 99 })) : null)),
|
|
56
|
+
sortable: false,
|
|
57
|
+
onAdd: onAdd,
|
|
58
|
+
quickSearch: true,
|
|
59
|
+
...listViewHeaderProps,
|
|
60
|
+
}, className: "share-certificate-list-content", asideable: asideable, formViewTitle: "Add ShareCertificate", formView: openNewFormMode === "openAside" && (React.createElement(NewShareCertificateForm, { showView: true, parentId: props === null || props === void 0 ? void 0 : props.parentId })), renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
|
61
|
+
var _a;
|
|
62
|
+
setActiveId(item.id);
|
|
63
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
64
|
+
} },
|
|
65
|
+
React.createElement(ShareCertificateItem, { id: item.id }))) }),
|
|
66
|
+
addAble && (React.createElement(NewShareCertificateForm, { type: "mini", className: "new-form-bottom", parentId: props === null || props === void 0 ? void 0 : props.parentId, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) })),
|
|
67
|
+
visible && (React.createElement(NewShareCertificateFormDialog, { parentId: props === null || props === void 0 ? void 0 : props.parentId, onCancel: () => setVisible(false), onSave: () => setVisible(false) }))))));
|
|
68
|
+
function filters() {
|
|
69
|
+
const filter = [];
|
|
70
|
+
if (centerId) {
|
|
71
|
+
filter.push({ c: "CenterId", o: "=", l: "And", v1: centerId });
|
|
72
|
+
}
|
|
73
|
+
if (parentId) {
|
|
74
|
+
filter.push({ c: "ParentNodeId", o: "=", l: "And", v1: parentId });
|
|
75
|
+
}
|
|
76
|
+
if (contactId) {
|
|
77
|
+
filter.push({ c: "Contact", o: "=", l: "And", v1: contactId }, {
|
|
78
|
+
c: "ShareCertificateStatus",
|
|
79
|
+
o: "contains",
|
|
80
|
+
l: "And",
|
|
81
|
+
v1: JSON.stringify(["New", "Followup", "Contacting", "NoResponse"]),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
switch (status) {
|
|
85
|
+
case "my":
|
|
86
|
+
filter.push({
|
|
87
|
+
c: "OwnerType",
|
|
88
|
+
o: "contains",
|
|
89
|
+
l: "And",
|
|
90
|
+
v1: JSON.stringify(["My"]),
|
|
91
|
+
});
|
|
92
|
+
break;
|
|
93
|
+
case "new":
|
|
94
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "New", l: "And" });
|
|
95
|
+
break;
|
|
96
|
+
case "followup":
|
|
97
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Followup", l: "And" });
|
|
98
|
+
break;
|
|
99
|
+
case "won":
|
|
100
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Won", l: "And" });
|
|
101
|
+
break;
|
|
102
|
+
case "lost":
|
|
103
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Lost", l: "And" });
|
|
104
|
+
break;
|
|
105
|
+
case "contacting":
|
|
106
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Contacting", l: "And" });
|
|
107
|
+
break;
|
|
108
|
+
case "no-response":
|
|
109
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "NoResponse", l: "And" });
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
return filter;
|
|
115
|
+
}
|
|
116
|
+
function defaultValue() {
|
|
117
|
+
if (contactId)
|
|
118
|
+
return ["New", "Followup", "Contacting", "NoResponse"];
|
|
119
|
+
return [];
|
|
120
|
+
}
|
|
121
|
+
function onAdd() {
|
|
122
|
+
if (openNewFormMode === "openBottom")
|
|
123
|
+
setAddAble(true);
|
|
124
|
+
if (openNewFormMode === "openDialog")
|
|
125
|
+
setVisible(true);
|
|
126
|
+
}
|
|
127
|
+
function onFilter(context) {
|
|
128
|
+
context.paging.Page = 1;
|
|
129
|
+
context.filter();
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
ShareCertificateList.defaultProps = {
|
|
133
|
+
viewTitle: "My ShareCertificate",
|
|
134
|
+
openNewFormMode: "openAside",
|
|
135
|
+
};
|
|
136
|
+
export default ShareCertificateList;
|
|
137
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAEN,6BAA6B,GAC7B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,6BAA6B,MAAM,0DAA0D,CAAC;AACrG,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,MAAM,MAAM,cAAc,CAAC;AA4BlC,MAAM,oBAAoB,GA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+
.share-certificate-list-content {
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
padding: 0 !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.new-form-bottom {
|
|
13
|
+
padding: 10px 20px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ShareCertificatePropertiesName = "Member" | "Number" | "CertificateType";
|
|
3
|
+
declare const ShareCertificateProperties: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
headerVisible?: boolean;
|
|
7
|
+
shareCertificateTitle?: string;
|
|
8
|
+
documentTitle?: string;
|
|
9
|
+
shareCertificateProperties?: {
|
|
10
|
+
name: ShareCertificatePropertiesName;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
documentProperties?: {
|
|
14
|
+
name: "Tags" | "Create Date" | "Create By" | "Folder";
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
defaultProps: {
|
|
19
|
+
shareCertificateTitle: string;
|
|
20
|
+
documentTitle: string;
|
|
21
|
+
shareCertificateProperties: {
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default ShareCertificateProperties;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Form } from "@voplus/antd";
|
|
3
|
+
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
4
|
+
import { useShareCertificate, useShareCertificateStore, } from "../../../../../data/share-certificate";
|
|
5
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
6
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
7
|
+
import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
|
|
8
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
9
|
+
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
|
10
|
+
import ShareCertificateTypeLabel from "../../controls/ShareCertificateTypeLabel";
|
|
11
|
+
const ShareCertificateProperties = (props) => {
|
|
12
|
+
const { id, headerVisible, shareCertificateTitle, documentTitle, shareCertificateProperties, documentProperties, } = props;
|
|
13
|
+
const shareCertificate = useShareCertificate(id, { reload: false, includes: "tags" });
|
|
14
|
+
const store = useShareCertificateStore();
|
|
15
|
+
const filterPro = shareCertificateProperties === null || shareCertificateProperties === void 0 ? void 0 : shareCertificateProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
16
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
17
|
+
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
18
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
19
|
+
React.createElement(DescriptionEditor, { id: id, description: shareCertificate.description, readonly: shareCertificate.readonly }),
|
|
20
|
+
React.createElement(PropertiesSection, { title: shareCertificateTitle, properties: React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))) }),
|
|
21
|
+
React.createElement(DocumentProperties, { id: id, fromLabelRequired: true, labelCol: 10, wrapperCol: 14, title: documentTitle, customProperties: documentProperties })))));
|
|
22
|
+
function renderProp(item) {
|
|
23
|
+
switch (item.name) {
|
|
24
|
+
case "Member":
|
|
25
|
+
return React.createElement(Form.Item, null);
|
|
26
|
+
case "Number":
|
|
27
|
+
return (React.createElement(Form.Item, { label: "Number" },
|
|
28
|
+
React.createElement(InlineEdit, { defaultValue: shareCertificate.number, content: (v) => shareCertificate.number ? (React.createElement("span", null, shareCertificate.number)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.edit(id, { data: { Number: value }, error: "message" }) })));
|
|
29
|
+
case "CertificateType":
|
|
30
|
+
return (React.createElement(Form.Item, { label: "Certificate Type" },
|
|
31
|
+
React.createElement(ShareCertificateTypeLabel, { editable: true, type: shareCertificate.certificateType, onChange: (type) => {
|
|
32
|
+
store.edit(id, { data: { CertificateType: type }, error: "message" });
|
|
33
|
+
} })));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
ShareCertificateProperties.defaultProps = {
|
|
38
|
+
shareCertificateTitle: "ShareCertificate Properties",
|
|
39
|
+
documentTitle: "Document Properties",
|
|
40
|
+
shareCertificateProperties: [{ name: "Number" }, { name: "CertificateType" }],
|
|
41
|
+
};
|
|
42
|
+
export default ShareCertificateProperties;
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AAIjF,MAAM,0BAA0B,GAAG,CAAC,KAanC,EAAE,EAAE;IACJ,M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,6BAA6B;IACpD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC7E,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
|
+
import { Open, Reload, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
6
|
+
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
7
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
|
+
import ShareCertificateTabs from "../ShareCertificateTabs";
|
|
9
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
const ShareCertificatePropertiesView = (props) => {
|
|
12
|
+
const id = props.id;
|
|
13
|
+
const meta = useMetaStore();
|
|
14
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
15
|
+
const shareCertificate = useShareCertificate(id);
|
|
16
|
+
const [loaded, setLoaded] = useState(true);
|
|
17
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
18
|
+
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, tagsVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "share-certificate-properties-view-header", tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
|
|
20
|
+
React.createElement(Reload, { action: onReload }),
|
|
21
|
+
React.createElement(Open, { url: meta.getRoute(shareCertificate) })), descriptionVisible: false }),
|
|
22
|
+
React.createElement(ShareCertificateTabs, { id: id, properties: true })))))));
|
|
23
|
+
/** reload data */
|
|
24
|
+
function onReload() {
|
|
25
|
+
setLoaded(false);
|
|
26
|
+
setTimeout(() => {
|
|
27
|
+
setLoaded(true);
|
|
28
|
+
}, 100);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default ShareCertificatePropertiesView;
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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,EACL,IAAI,EACJ,MAAM,GACP,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,WAAW,EACX,eAAe,GAChB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,cAAc,CAAC;AAEtB,MAAM,8BAA8B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAClF,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,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,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAC/B,6BAAK,SAAS,EAAC,oBAAoB,IAChC,MAAM,IAAI,CACT,oBAAC,KAAK,CAAC,QAAQ;YACb,oBAAC,cAAc,IACb,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,IAAI,EACT,YAAY,EAAE,KAAK,EACnB,WAAW,EAAE,KAAK,EAClB,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,SAAS,EAAC,0CAA0C,EACpD,KAAK,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;oBAC9C,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACtC,EAEZ,kBAAkB,EAAE,KAAK,GACzB;YACF,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5B,CAClB,CACG,CACe,CACxB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QACf,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACd,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Open, Reload, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
|
+
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
6
|
+
import SubTaskList from "@voplus/morpho-workspace/es/modules/tasks/components/SubTaskList";
|
|
7
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
|
+
import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
|
|
9
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
|
+
import ShareCertificateProperties from "../ShareCertificateProperties";
|
|
11
|
+
import styles from "./index.less";
|
|
12
|
+
const ShareCertificateQuickViewDialog = (props) => {
|
|
13
|
+
const { id } = props;
|
|
14
|
+
const meta = useMetaStore();
|
|
15
|
+
const shareCertificate = useShareCertificate(id, { reload: false, includes: "tags" });
|
|
16
|
+
const [loaded, setLoaded] = useState(true);
|
|
17
|
+
return observe(() => (React.createElement(QuickViewDialog, { id: props.id, exclude: ["Task"], visible: props.visible, onCancel: props.onCancel, taskList: React.createElement(SubTaskList, { parentId: id, viewTitle: "Sub-Tasks", total: true }), header: React.createElement(React.Fragment, null,
|
|
18
|
+
loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, toolsVisible: false, descriptionVisible: false, style: { padding: "10px 20px 0 20px" } })),
|
|
19
|
+
React.createElement("div", { className: styles["header-bar-tool"] },
|
|
20
|
+
React.createElement("div", { className: "tools-bar" },
|
|
21
|
+
React.createElement(ToolBar, { id: id },
|
|
22
|
+
React.createElement(Reload, { action: onReload }),
|
|
23
|
+
React.createElement(Open, { url: meta.getRoute(shareCertificate) }))))) },
|
|
24
|
+
React.createElement(ShareCertificateProperties, { id: id }))));
|
|
25
|
+
/** reload data */
|
|
26
|
+
function onReload() {
|
|
27
|
+
setLoaded(false);
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
setLoaded(true);
|
|
30
|
+
}, 100);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export default ShareCertificateQuickViewDialog;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,IAAI,EACJ,MAAM,GACP,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,WAAW,MAAM,kEAAkE,CAAC;AAC3F,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,+BAA+B,GAAG,CAAC,KAIxC,EAAE,EAAE;IACH,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAA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import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Badge } from "@voplus/antd";
|
|
4
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
|
+
import ShareCertificateProperties from "../ShareCertificateProperties";
|
|
7
|
+
import SubTaskList from "@voplus/morpho-workspace/es/modules/tasks/components/SubTaskList";
|
|
8
|
+
import TasksTotal from "@voplus/morpho-workspace/es/modules/tasks/controls/TasksTotal";
|
|
9
|
+
const ShareCertificateTabs = (props) => {
|
|
10
|
+
const { id, properties } = props;
|
|
11
|
+
const [taskTotal, setTaskTotal] = useState(0);
|
|
12
|
+
const [docTotals, setDocTotals] = useState(0);
|
|
13
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
14
|
+
Total: true,
|
|
15
|
+
List: false,
|
|
16
|
+
Filters: [],
|
|
17
|
+
});
|
|
18
|
+
const preData = [
|
|
19
|
+
{
|
|
20
|
+
key: "Tasks",
|
|
21
|
+
title: React.createElement(TasksTotal, { id: id, count: taskTotal }),
|
|
22
|
+
content: (React.createElement(SubTaskList, { parentId: id, viewTitle: " ", total: false, onTotalChanged: (c) => setTaskTotal(c) })),
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
properties &&
|
|
26
|
+
preData.unshift({
|
|
27
|
+
key: "Properties",
|
|
28
|
+
title: "Properties",
|
|
29
|
+
content: React.createElement(ShareCertificateProperties, { id: id }),
|
|
30
|
+
});
|
|
31
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "", docTabOptions: {
|
|
32
|
+
title: (React.createElement(React.Fragment, null,
|
|
33
|
+
"Document",
|
|
34
|
+
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
35
|
+
exclude: ["Task"],
|
|
36
|
+
}, preData: preData })));
|
|
37
|
+
};
|
|
38
|
+
export default ShareCertificateTabs;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,WAAW,MAAM,kEAAkE,CAAC;AAC3F,OAAO,UAAU,MAAM,+DAA+D,CAAC;AAEvF,MAAM,oBAAoB,GAAG,CAAC,KAA2C,EAAE,EAAE;IAC5E,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9C,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;QACxE,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,EAAE;KACX,CAAC,CAAC;IAEH,MAAM,OAAO,GAAU;QACtB;YACC,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,GAAI;YAC/C,OAAO,EAAE,CACR,oBAAC,WAAW,IACX,QAAQ,EAAE,EAAE,EACZ,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,GAC7C,CACF;SACD;KACD,CAAC;IAEF,UAAU;QACT,OAAO,CAAC,OAAO,CAAC;YACf,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI;SAC/C,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EACtC,aAAa,EAAE;YACd,KAAK,EAAE,CACN;;gBAEC,oBAAC,KAAK,IAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAC,gBAAgB,GAAG,CACpD,CACH;YACD,OAAO,EAAE,CAAC,MAAM,CAAC;SACjB,EACD,OAAO,EAAE,OAAO,GACf,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ShareCertificateDataIconBar: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
commentVisible?: boolean;
|
|
6
|
+
statusVisible?: boolean;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
defaultProps: {
|
|
9
|
+
commentVisible: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default ShareCertificateDataIconBar;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CommentDataIcon, DocumentDataIcon, UserQuickIcon, } from "@voplus/morpho-document/es/controls/data-icons";
|
|
3
|
+
import ShareCertificateStatusDataIcon from "../ShareCertificateStatusDataIcon";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
|
6
|
+
const ShareCertificateDataIconBar = (props) => {
|
|
7
|
+
const { id, commentVisible, statusVisible } = props;
|
|
8
|
+
return observe(() => (React.createElement(DataIconBar, null,
|
|
9
|
+
React.createElement(DocumentDataIcon, { id: id }),
|
|
10
|
+
commentVisible && React.createElement(CommentDataIcon, { id: id }),
|
|
11
|
+
React.createElement(UserQuickIcon, { id: id }),
|
|
12
|
+
statusVisible && React.createElement(ShareCertificateStatusDataIcon, { id: id }))));
|
|
13
|
+
};
|
|
14
|
+
ShareCertificateDataIconBar.defaultProps = {
|
|
15
|
+
commentVisible: true,
|
|
16
|
+
};
|
|
17
|
+
export default ShareCertificateDataIconBar;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,GACd,MAAM,gDAAgD,CAAC;AACxD,OAAO,8BAA8B,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAE1E,MAAM,2BAA2B,GAAG,CAAC,KAIpC,EAAE,EAAE;IACH,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEpD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,WAAW;QACV,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;QAC3B,cAAc,IAAI,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;QAC9C,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;QACxB,aAAa,IAAI,oBAAC,8BAA8B,IAAC,EAAE,EAAE,EAAE,GAAI,CAChD,CACf,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,2BAA2B,CAAC,YAAY,GAAG;IACzC,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import DocumentMenu from "@voplus/morpho-document/es/controls/DocumentMenu";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
const ShareCertificateMenu = (props) => {
|
|
7
|
+
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
8
|
+
return observe(() => (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
9
|
+
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
10
|
+
React.createElement(DocumentMenu, { id: props.id })))));
|
|
11
|
+
};
|
|
12
|
+
export default ShareCertificateMenu;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACA,CAC1B,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|