@voplus/morpho-csp 1.2.175 → 1.2.176

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.
Files changed (116) hide show
  1. package/es/Modules.js +2 -0
  2. package/es/Modules.js.map +1 -1
  3. package/es/data/member/interfaces.d.ts +1 -1
  4. package/es/data/share-certificate/ShareCertificateStore.d.ts +11 -0
  5. package/es/data/share-certificate/ShareCertificateStore.js +22 -0
  6. package/es/data/share-certificate/ShareCertificateStore.js.map +1 -0
  7. package/es/data/share-certificate/hooks.d.ts +13 -0
  8. package/es/data/share-certificate/hooks.js +24 -0
  9. package/es/data/share-certificate/hooks.js.map +1 -0
  10. package/es/data/share-certificate/index.d.ts +5 -0
  11. package/es/data/share-certificate/index.js +6 -0
  12. package/es/data/share-certificate/index.js.map +1 -0
  13. package/es/data/share-certificate/interfaces.d.ts +15 -0
  14. package/es/data/share-certificate/interfaces.js.map +1 -0
  15. package/es/data/share-certificate/metas.d.ts +13 -0
  16. package/es/data/share-certificate/metas.js +38 -0
  17. package/es/data/share-certificate/metas.js.map +1 -0
  18. package/es/data/share-certificate/types.d.ts +12 -0
  19. package/es/data/share-certificate/types.js +2 -0
  20. package/es/data/share-certificate/types.js.map +1 -0
  21. package/es/data/shareTransaction/ShareTransactionStore.js +1 -1
  22. package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
  23. package/es/modules/corporate/company/pages/CompanyPage/index.js +7 -3
  24. package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
  25. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.d.ts +9 -0
  26. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js +13 -0
  27. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js.map +1 -0
  28. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.d.ts +17 -0
  29. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js +56 -0
  30. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map +1 -0
  31. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.less +41 -0
  32. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.d.ts +10 -0
  33. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js +34 -0
  34. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js.map +1 -0
  35. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.d.ts +3 -0
  36. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +46 -0
  37. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -0
  38. package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +164 -0
  39. package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.d.ts +5 -0
  40. package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js +27 -0
  41. package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js.map +1 -0
  42. package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.less +47 -0
  43. package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.d.ts +38 -0
  44. package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js +137 -0
  45. package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js.map +1 -0
  46. package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.less +16 -0
  47. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +26 -0
  48. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +43 -0
  49. package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -0
  50. package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.d.ts +7 -0
  51. package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +32 -0
  52. package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -0
  53. package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.less +14 -0
  54. package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.d.ts +7 -0
  55. package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +34 -0
  56. package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -0
  57. package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.less +15 -0
  58. package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +6 -0
  59. package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +39 -0
  60. package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -0
  61. package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.d.ts +12 -0
  62. package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js +18 -0
  63. package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js.map +1 -0
  64. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.d.ts +7 -0
  65. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +13 -0
  66. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -0
  67. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.d.ts +8 -0
  68. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.js +12 -0
  69. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.js.map +1 -0
  70. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.d.ts +5 -0
  71. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.js +29 -0
  72. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.js.map +1 -0
  73. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.d.ts +19 -0
  74. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js +61 -0
  75. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js.map +1 -0
  76. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.d.ts +10 -0
  77. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js +10 -0
  78. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map +1 -0
  79. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +35 -0
  80. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.d.ts +5 -0
  81. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.js +29 -0
  82. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.js.map +1 -0
  83. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.d.ts +19 -0
  84. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js +55 -0
  85. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js.map +1 -0
  86. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +10 -0
  87. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js +14 -0
  88. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js.map +1 -0
  89. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.less +21 -0
  90. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +10 -39
  91. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
  92. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +36 -30
  93. package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.d.ts +4 -0
  94. package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js +65 -0
  95. package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -0
  96. package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -0
  97. package/es/obsolete/shareCertificate/hooks.js.map +1 -0
  98. package/es/obsolete/shareCertificate/index.js.map +1 -0
  99. package/es/obsolete/shareCertificate/interfaces.js +2 -0
  100. package/es/obsolete/shareCertificate/interfaces.js.map +1 -0
  101. package/es/obsolete/shareCertificate/store.js.map +1 -0
  102. package/es/routes.js +3 -3
  103. package/es/routes.js.map +1 -1
  104. package/package.json +1 -1
  105. package/es/data/shareCertificate/hooks.js.map +0 -1
  106. package/es/data/shareCertificate/index.js.map +0 -1
  107. package/es/data/shareCertificate/interfaces.js.map +0 -1
  108. package/es/data/shareCertificate/store.js.map +0 -1
  109. /package/es/data/{shareCertificate → share-certificate}/interfaces.js +0 -0
  110. /package/es/{data → obsolete}/shareCertificate/hooks.d.ts +0 -0
  111. /package/es/{data → obsolete}/shareCertificate/hooks.js +0 -0
  112. /package/es/{data → obsolete}/shareCertificate/index.d.ts +0 -0
  113. /package/es/{data → obsolete}/shareCertificate/index.js +0 -0
  114. /package/es/{data → obsolete}/shareCertificate/interfaces.d.ts +0 -0
  115. /package/es/{data → obsolete}/shareCertificate/store.d.ts +0 -0
  116. /package/es/{data → obsolete}/shareCertificate/store.js +0 -0
@@ -0,0 +1,15 @@
1
+ .header-bar-tool {
2
+ display: flex;
3
+ justify-content: end;
4
+ padding: 0 20px 10px 20px;
5
+
6
+ :global {
7
+ .tools-bar {
8
+ text-align: right;
9
+
10
+ .tool-bar {
11
+ display: block;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const ShareCertificateTabs: (props: {
3
+ id: string;
4
+ properties?: boolean;
5
+ }) => JSX.Element;
6
+ export default ShareCertificateTabs;
@@ -0,0 +1,39 @@
1
+ import React, { useState } from "react";
2
+ 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;AAC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tC,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"}
@@ -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
@@ -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,7 @@
1
+ /// <reference types="react" />
2
+ declare const ShareCertificateMenu: (props: {
3
+ id: string;
4
+ className?: string;
5
+ closeAside?: boolean;
6
+ }) => JSX.Element;
7
+ export default ShareCertificateMenu;
@@ -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"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const ShareCertificateStatusDataIcon: (props: {
3
+ /** id of shareCertificate */
4
+ id: string;
5
+ /** */
6
+ onClick?: () => void;
7
+ }) => JSX.Element;
8
+ export default ShareCertificateStatusDataIcon;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { Tooltip } from "@voplus/antd";
3
+ import { useShareCertificate, useShareCertificateStore } from "../../../../../data/share-certificate";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ const ShareCertificateStatusDataIcon = (props) => {
6
+ const { id, onClick } = props;
7
+ const shareCertificate = useShareCertificate(id);
8
+ const shareCertificateStore = useShareCertificateStore();
9
+ return observe(() => (React.createElement(Tooltip, { title: "Status" })));
10
+ };
11
+ export default ShareCertificateStatusDataIcon;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAW,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,8BAA8B,GAAG,CAAC,KAKvC,EAAE,EAAE;IACH,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9B,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,qBAAqB,GAAG,wBAAwB,EAAE,CAAC;IAEzD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,OAAO,IAAC,KAAK,EAAC,QAAQ,GAWb,CACX,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const ShareCertificateStatusFilter: (props: {
3
+ defaultValue?: string[];
4
+ }) => JSX.Element;
5
+ export default ShareCertificateStatusFilter;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { runInAction } from "mobx";
5
+ import { Badge } from "@voplus/antd";
6
+ import { State } from "./state";
7
+ import classnames from "classnames";
8
+ const ShareCertificateStatusFilter = (props) => {
9
+ const context = useFilterOptionsContext();
10
+ const state = context.getFilterState("ShareCertificateStatus", () => new State());
11
+ // defaultValue 为传入的预选状态
12
+ state.showDefaultValue &&
13
+ props.defaultValue &&
14
+ props.defaultValue.map((value) => state.onChangeStatus(value));
15
+ return observe(() => (React.createElement("div", null,
16
+ React.createElement("div", { className: "menu-item-title" }, "ShareCertificate Status"),
17
+ state.menus.map((item, index) => (React.createElement("div", { key: index, className: classnames("filter-menu-item", {
18
+ bold: state.status.has(item.value),
19
+ }), onClick: () => {
20
+ state.onChangeStatus(item.value);
21
+ runInAction(() => (state.showDefaultValue = false));
22
+ } },
23
+ React.createElement("div", { className: "filter-name" },
24
+ React.createElement(Badge, { color: item.color }),
25
+ item.name),
26
+ React.createElement("span", null, item.counts)))))));
27
+ };
28
+ export default ShareCertificateStatusFilter;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,4BAA4B,GAAG,CAAC,KAAkC,EAAE,EAAE;IAC3E,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,wBAAwB,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAElF,wBAAwB;IACxB,KAAK,CAAC,gBAAgB;QACrB,KAAK,CAAC,YAAY;QAClB,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,6BAAK,SAAS,EAAC,iBAAiB,8BAA8B;QAC7D,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAa,EAAE,EAAE,CAAC,CAC9C,6BACC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aAClC,CAAC,EACF,OAAO,EAAE,GAAG,EAAE;gBACb,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACjC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC,CAAC;YACrD,CAAC;YAED,6BAAK,SAAS,EAAC,aAAa;gBAC3B,oBAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI;gBAC3B,IAAI,CAAC,IAAI,CACL;YACN,kCAAO,IAAI,CAAC,MAAM,CAAQ,CACrB,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { FilterOption } from "@voplus/morpho-data";
2
+ import { IFilterState } from "@voplus/morpho-ui/es/data/IFilterState";
3
+ export declare class State implements IFilterState {
4
+ /** 是否显示预选status */
5
+ showDefaultValue: boolean;
6
+ /** Status of filter */
7
+ status: Map<string, boolean>;
8
+ constructor();
9
+ /** update status */
10
+ onChangeStatus(value: string): void;
11
+ get menus(): {
12
+ name: string;
13
+ value: string;
14
+ counts: string;
15
+ color: string;
16
+ }[];
17
+ get filters(): FilterOption[];
18
+ reset(): void;
19
+ }
@@ -0,0 +1,61 @@
1
+ import { __decorate } from "tslib";
2
+ import { action, makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ /** 是否显示预选status */
6
+ Object.defineProperty(this, "showDefaultValue", {
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true,
10
+ value: true
11
+ });
12
+ /** Status of filter */
13
+ Object.defineProperty(this, "status", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: new Map()
18
+ });
19
+ makeObservable(this);
20
+ }
21
+ /** update status */
22
+ onChangeStatus(value) {
23
+ this.status.has(value)
24
+ ? this.status.delete(value)
25
+ : this.status.set(value, true);
26
+ }
27
+ get menus() {
28
+ return [
29
+ { name: "New", value: "New", counts: "n", color: "#ff8f5e" },
30
+ { name: "Followup", value: "Followup", counts: "n", color: "#1890ff" },
31
+ { name: "Won", value: "Won", counts: "n", color: "#18bd85" },
32
+ { name: "Lost", value: "Lost", counts: "n", color: "#765fee" },
33
+ { name: "Contacting", value: "Contacting", counts: "n", color: "#13c2c2" },
34
+ { name: "NoResponse", value: "NoResponse", counts: "n", color: "#ff4d4f" },
35
+ ];
36
+ }
37
+ get filters() {
38
+ return [
39
+ {
40
+ c: "ShareCertificateStatus",
41
+ o: "contains",
42
+ v1: JSON.stringify(Array.from(this.status.keys())),
43
+ l: "And",
44
+ },
45
+ ];
46
+ }
47
+ reset() {
48
+ this.status.clear();
49
+ this.showDefaultValue = true;
50
+ }
51
+ }
52
+ __decorate([
53
+ observable
54
+ ], State.prototype, "showDefaultValue", void 0);
55
+ __decorate([
56
+ observable
57
+ ], State.prototype, "status", void 0);
58
+ __decorate([
59
+ action
60
+ ], State.prototype, "onChangeStatus", null);
61
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"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AAE,KAAK,EAAE,SAAS,EAAE;SAC3E,CAAC;IACJ,CAAC;IACD,IAAW,OAAO;QAChB,OAAO;YACL;gBACE,CAAC,EAAE,wBAAwB;gBAC3B,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClD,CAAC,EAAE,KAAK;aACO;SAClB,CAAC;IACJ,CAAC;IACM,KAAK;QACV,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAC/B,CAAC;CACF;AAxCa;IAAX,UAAU;+CAAgC;AAE/B;IAAX,UAAU;qCAAiD;AAQ5D;IADC,MAAM;2CAKN"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ import { ShareCertificateStatus } from "../../../../../data/share-certificate";
4
+ declare const ShareCertificateStatusLabel: (props: {
5
+ status: string;
6
+ editable: boolean;
7
+ className?: string | undefined;
8
+ onChange: (status: ShareCertificateStatus) => void;
9
+ }) => JSX.Element;
10
+ export default ShareCertificateStatusLabel;
@@ -0,0 +1,10 @@
1
+ import "./index.less";
2
+ import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
3
+ import React from "react";
4
+ import classnames from "classnames";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ const ShareCertificateStatusLabel = (props) => {
7
+ return observe(() => (React.createElement(DocumentStatusLabel, { className: classnames("share-certificate-status", props.className), editable: props.editable, list: [{ name: "Draft" }, { name: "Authorized" }, { name: "Cancelled" }], status: props.status, onChange: props.onChange })));
8
+ };
9
+ export default ShareCertificateStatusLabel;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,CAAC,KAKpC,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,0BAA0B,EAAE,KAAK,CAAC,SAAS,CAAC,EAClE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EACxE,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,35 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .share-certificate-status {
5
+ &.new,
6
+ &.new:hover {
7
+ background: @new-color;
8
+ }
9
+
10
+ &.lost,
11
+ &.lost:hover {
12
+ background: @rejected-color;
13
+ }
14
+
15
+ &.followup,
16
+ &.followup:hover {
17
+ background: @active-color;
18
+ }
19
+
20
+ &.won,
21
+ &.won:hover {
22
+ background: @done-color;
23
+ }
24
+
25
+ &.contacting,
26
+ &.contacting:hover {
27
+ background: #13c2c2;
28
+ }
29
+
30
+ &.no-response,
31
+ &.no-response:hover {
32
+ background: #ff4d4f;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const ShareCertificateTypeFilter: (props: {
3
+ defaultValue?: string[];
4
+ }) => JSX.Element;
5
+ export default ShareCertificateTypeFilter;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { runInAction } from "mobx";
5
+ import { Badge } from "@voplus/antd";
6
+ import { State } from "./state";
7
+ import classnames from "classnames";
8
+ const ShareCertificateTypeFilter = (props) => {
9
+ const context = useFilterOptionsContext();
10
+ const state = context.getFilterState("ShareCertificateType", () => new State());
11
+ // defaultValue 为传入的预选状态
12
+ state.showDefaultValue &&
13
+ props.defaultValue &&
14
+ props.defaultValue.map((value) => state.onChangeType(value));
15
+ return observe(() => (React.createElement("div", null,
16
+ React.createElement("div", { className: "menu-item-title" }, "ShareCertificate Type"),
17
+ state.menus.map((item, index) => (React.createElement("div", { key: index, className: classnames("filter-menu-item", {
18
+ bold: state.status.has(item.value),
19
+ }), onClick: () => {
20
+ state.onChangeType(item.value);
21
+ runInAction(() => (state.showDefaultValue = false));
22
+ } },
23
+ React.createElement("div", { className: "filter-name" },
24
+ React.createElement(Badge, { color: item.color }),
25
+ item.name),
26
+ React.createElement("span", null, item.counts)))))));
27
+ };
28
+ export default ShareCertificateTypeFilter;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,0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from "@voplus/morpho-ui/es/data/IFilterState";
3
+ export declare class State implements IFilterState {
4
+ /** 是否显示预选status */
5
+ showDefaultValue: boolean;
6
+ /** Type of filter */
7
+ status: Map<string, boolean>;
8
+ constructor();
9
+ /** update status */
10
+ onChangeType(value: string): void;
11
+ get menus(): {
12
+ name: string;
13
+ value: string;
14
+ counts: string;
15
+ color: string;
16
+ }[];
17
+ get filters(): FilterOption[];
18
+ reset(): void;
19
+ }
@@ -0,0 +1,55 @@
1
+ import { __decorate } from "tslib";
2
+ import { action, makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ /** 是否显示预选status */
6
+ Object.defineProperty(this, "showDefaultValue", {
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true,
10
+ value: true
11
+ });
12
+ /** Type of filter */
13
+ Object.defineProperty(this, "status", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: new Map()
18
+ });
19
+ makeObservable(this);
20
+ }
21
+ /** update status */
22
+ onChangeType(value) {
23
+ this.status.has(value) ? this.status.delete(value) : this.status.set(value, true);
24
+ }
25
+ get menus() {
26
+ return [
27
+ { name: "Digital", value: "Digital", counts: "n", color: "#1890ff" },
28
+ { name: "Legacy", value: "Legacy", counts: "n", color: "#bfbfbf" },
29
+ ];
30
+ }
31
+ get filters() {
32
+ return [
33
+ {
34
+ c: "Type",
35
+ o: "contains",
36
+ v1: JSON.stringify(Array.from(this.status.keys())),
37
+ l: "And",
38
+ },
39
+ ];
40
+ }
41
+ reset() {
42
+ this.status.clear();
43
+ this.showDefaultValue = true;
44
+ }
45
+ }
46
+ __decorate([
47
+ observable
48
+ ], State.prototype, "showDefaultValue", void 0);
49
+ __decorate([
50
+ observable
51
+ ], State.prototype, "status", void 0);
52
+ __decorate([
53
+ action
54
+ ], State.prototype, "onChangeType", null);
55
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share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,UAAU;qCAAiD;AAQ5D;IADC,MAAM;yCAGN"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ShareCertificateType } from "../../../../../data/share-certificate";
3
+ import "./index.less";
4
+ declare const ShareCertificateTypeLabel: (props: {
5
+ type?: string | undefined;
6
+ editable: boolean;
7
+ className?: string | undefined;
8
+ onChange?: ((type: ShareCertificateType) => void) | undefined;
9
+ }) => JSX.Element;
10
+ export default ShareCertificateTypeLabel;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
3
+ import classnames from "classnames";
4
+ import "./index.less";
5
+ const ShareCertificateTypeLabel = (props) => {
6
+ const list = [{ name: "Digital" }, { name: "Legacy" }];
7
+ if ((props.type && list.findIndex((i) => i.name === props.type) === -1) || !props.type) {
8
+ list.push({ name: props.type || "" });
9
+ }
10
+ return (React.createElement("div", { className: classnames({ "share-certificate-label": !props.type }, props.className) },
11
+ React.createElement(DocumentStatusLabel, { className: classnames("share-certificate-type", props.className), editable: props.editable, list: list, status: props.type, onChange: props.onChange })));
12
+ };
13
+ export default ShareCertificateTypeLabel;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAKlC,EAAE,EAAE;IACJ,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACvF,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;KACtC;IAED,OAAO,CACN,6BAAK,SAAS,EAAE,UAAU,CAAC,EAAE,yBAAyB,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC;QACtF,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,wBAAwB,EAAE,KAAK,CAAC,SAAS,CAAC,EAChE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,KAAK,CAAC,IAAI,EAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACG,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,21 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .share-certificate-type {
5
+ &.digital,
6
+ &.digital:hover {
7
+ background: #1890ff;
8
+ }
9
+
10
+ &.legacy,
11
+ &.legacy:hover {
12
+ background: #bfbfbf;
13
+ }
14
+ }
15
+
16
+ .share-certificate-label {
17
+ .ant-dropdown-menu-item:last-child {
18
+ display: none;
19
+ }
20
+ }
21
+ }
@@ -1,35 +1,19 @@
1
- import "./index.less";
2
- import { Archive, Sidebar } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
- import { Button, Descriptions, Tabs } from "@voplus/antd";
4
1
  import React, { useEffect, useState } from "react";
2
+ import { Archive, Sidebar } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
+ import { Tabs } from "@voplus/antd";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { useRouteMatch } from "react-router";
6
+ import ShareCertificateProperties from "../../components/ShareCertificateProperties";
5
7
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
6
- import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
7
8
  import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
8
9
  import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
9
10
  import PDFFileViewer from "@voplus/morpho-document/es/components/FileViewer/PDF";
10
- import { Scrollbars } from "react-custom-scrollbars";
11
11
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
12
- import { observe } from "@voplus/morpho-ui";
13
- import { useLayout } from "@voplus/morpho-data";
14
- import { useRouteMatch } from "react-router";
15
- import { useUnit } from "@voplus/morpho-org";
12
+ import "./index.less";
16
13
  const ShareCertificateDefaultView = () => {
17
- const [asideContext] = useState(AsideContent.createContext());
18
14
  const match = useRouteMatch();
19
15
  const id = match.params.id;
20
- const layout = useLayout();
21
- // const ShareCertificate = useShareCertificate()
22
- const ShareCertificate = {
23
- corporateId: "",
24
- memberId: "2d582fc8-6b9c-434f-bc39-0175bf19dc06",
25
- number: 1000256,
26
- class: "Preferred stock",
27
- currency: "SGD",
28
- consideration: 156969,
29
- paid: 10000,
30
- status: "Cancelled",
31
- };
32
- const unit = useUnit("2d582fc8-6b9c-434f-bc39-0175bf19dc06");
16
+ const [asideContext] = useState(AsideContent.createContext());
33
17
  useEffect(() => {
34
18
  asideContext.openAside(AsideElement, { span: 12 });
35
19
  }, []);
@@ -41,25 +25,12 @@ const ShareCertificateDefaultView = () => {
41
25
  ? asideContext.closeAside()
42
26
  : asideContext.openAside(AsideElement, { span: 12 }) }),
43
27
  React.createElement(Archive, null)), descriptionVisible: false }),
44
- React.createElement(DescriptionEditor, { id: id,
45
- // description={work.description}
46
- // readonly={work.readonly}
47
- padding: "0 0 0.75rem 0" }),
48
28
  React.createElement(Tabs, null,
49
29
  React.createElement(Tabs.TabPane, { tab: "Details", key: "Details" },
50
- React.createElement(Scrollbars, null,
51
- React.createElement(Descriptions, { title: "", column: 1 },
52
- React.createElement(Descriptions.Item, { label: "Member" },
53
- React.createElement(Button, { type: "link", onClick: () => layout.history.push(`/member/${ShareCertificate.memberId}`), style: { padding: "0" } }, unit.name)),
54
- React.createElement(Descriptions.Item, { label: "Number" }, ShareCertificate.number),
55
- React.createElement(Descriptions.Item, { label: "Type" }, ShareCertificate.class),
56
- React.createElement(Descriptions.Item, { label: "Currency" }, ShareCertificate.currency),
57
- React.createElement(Descriptions.Item, { label: "Consideration" }, ShareCertificate.consideration),
58
- React.createElement(Descriptions.Item, { label: "Paid" }, ShareCertificate.paid),
59
- React.createElement(Descriptions.Item, { label: "Status" }, ShareCertificate.status === "Cancelled" ? "Cancelled" : "Normal")))),
60
- React.createElement(Tabs.TabPane, { tab: "Certificate", key: "Certificate" },
30
+ React.createElement(ShareCertificateProperties, { id: id })),
31
+ React.createElement(Tabs.TabPane, { tab: "Certificate", key: "Certificate", disabled: true },
61
32
  React.createElement("div", { className: "certificate-tab-pane" },
62
- React.createElement(PDFFileViewer, { id: "17077176-0b13-4137-93dc-aeed0046b92d" }))))))));
33
+ React.createElement(PDFFileViewer, { id: "1baf8aaf-ece7-4e59-a188-af0a0090815d" }))))))));
63
34
  };
64
35
  export default ShareCertificateDefaultView;
65
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAU,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,YAAY,EAAY,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,YAAY,MAAM,qDAAqD,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,KAAK,EAAC,QAAQ,IAAE,gBAAgB,CAAC,MAAM,CAAqB;4BAE/E,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,IAAE,gBAAgB,CAAC,KAAK,CAAqB;4BAC5E,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,IAAE,gBAAgB,CAAC,QAAQ,CAAqB;4BACnF,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAC,eAAe,IACtC,gBAAgB,CAAC,aAAa,CACZ;4BACpB,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,IAAE,gBAAgB,CAAC,IAAI,CAAqB;4BAC3E,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IAC/B,gBAAgB,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAC9C,CACN,CACH,CACC;gBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,aAAa,EAAC,GAAG,EAAC,aAAa;oBAChD,6BAAK,SAAS,EAAC,sBAAsB;wBACpC,oBAAC,aAAa,IAAC,EAAE,EAAE,sCAAsC,GAAI,CACxD,CACQ,CACT,CACF,CACQ,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC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