@voplus/morpho-csp 1.2.155 → 1.2.157

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 (158) hide show
  1. package/es/data/risk-match/RiskMatchStore.d.ts +31 -0
  2. package/es/data/risk-match/RiskMatchStore.js +105 -0
  3. package/es/data/risk-match/RiskMatchStore.js.map +1 -0
  4. package/es/data/risk-match/hooks.d.ts +10 -0
  5. package/es/data/risk-match/hooks.js +19 -0
  6. package/es/data/risk-match/hooks.js.map +1 -0
  7. package/es/data/risk-match/index.d.ts +4 -0
  8. package/es/data/risk-match/index.js +5 -0
  9. package/es/data/risk-match/index.js.map +1 -0
  10. package/es/data/risk-match/interfaces.d.ts +9 -0
  11. package/es/data/risk-match/interfaces.js +2 -0
  12. package/es/data/risk-match/interfaces.js.map +1 -0
  13. package/es/data/risk-match/risk-match-events/index.d.ts +3 -0
  14. package/es/data/risk-match/risk-match-events/index.js +4 -0
  15. package/es/data/risk-match/risk-match-events/index.js.map +1 -0
  16. package/es/data/risk-match/risk-match-events/useAutoUpdateListData.d.ts +4 -0
  17. package/es/data/risk-match/risk-match-events/useAutoUpdateListData.js +15 -0
  18. package/es/data/risk-match/risk-match-events/useAutoUpdateListData.js.map +1 -0
  19. package/es/data/risk-match/risk-match-events/useOnDeleteRiskMatch.d.ts +4 -0
  20. package/es/data/risk-match/risk-match-events/useOnDeleteRiskMatch.js +16 -0
  21. package/es/data/risk-match/risk-match-events/useOnDeleteRiskMatch.js.map +1 -0
  22. package/es/data/risk-match/risk-match-events/useOnNewRiskMatch.d.ts +4 -0
  23. package/es/data/risk-match/risk-match-events/useOnNewRiskMatch.js +17 -0
  24. package/es/data/risk-match/risk-match-events/useOnNewRiskMatch.js.map +1 -0
  25. package/es/data/risk-match/types.d.ts +17 -0
  26. package/es/data/risk-match/types.js +2 -0
  27. package/es/data/risk-match/types.js.map +1 -0
  28. package/es/data/risk-profile/RiskProfileStore.d.ts +36 -0
  29. package/es/data/risk-profile/RiskProfileStore.js +127 -0
  30. package/es/data/risk-profile/RiskProfileStore.js.map +1 -0
  31. package/es/data/risk-profile/hooks.d.ts +11 -0
  32. package/es/data/risk-profile/hooks.js +24 -0
  33. package/es/data/risk-profile/hooks.js.map +1 -0
  34. package/es/data/risk-profile/index.d.ts +4 -0
  35. package/es/data/risk-profile/index.js +5 -0
  36. package/es/data/risk-profile/index.js.map +1 -0
  37. package/es/data/risk-profile/interfaces.d.ts +14 -0
  38. package/es/data/risk-profile/interfaces.js +2 -0
  39. package/es/data/risk-profile/interfaces.js.map +1 -0
  40. package/es/data/risk-profile/risk-profile-events/index.d.ts +3 -0
  41. package/es/data/risk-profile/risk-profile-events/index.js +4 -0
  42. package/es/data/risk-profile/risk-profile-events/index.js.map +1 -0
  43. package/es/data/risk-profile/risk-profile-events/useAutoUpdateListData.d.ts +4 -0
  44. package/es/data/risk-profile/risk-profile-events/useAutoUpdateListData.js +15 -0
  45. package/es/data/risk-profile/risk-profile-events/useAutoUpdateListData.js.map +1 -0
  46. package/es/data/risk-profile/risk-profile-events/useOnDeleteRiskProfile.d.ts +4 -0
  47. package/es/data/risk-profile/risk-profile-events/useOnDeleteRiskProfile.js +16 -0
  48. package/es/data/risk-profile/risk-profile-events/useOnDeleteRiskProfile.js.map +1 -0
  49. package/es/data/risk-profile/risk-profile-events/useOnNewRiskProfile.d.ts +4 -0
  50. package/es/data/risk-profile/risk-profile-events/useOnNewRiskProfile.js +17 -0
  51. package/es/data/risk-profile/risk-profile-events/useOnNewRiskProfile.js.map +1 -0
  52. package/es/data/risk-profile/types.d.ts +23 -0
  53. package/es/data/risk-profile/types.js +2 -0
  54. package/es/data/risk-profile/types.js.map +1 -0
  55. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.d.ts +6 -0
  56. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js +21 -0
  57. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js.map +1 -0
  58. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.less +15 -0
  59. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchItem/index.d.ts +7 -0
  60. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchItem/index.js +25 -0
  61. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchItem/index.js.map +1 -0
  62. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchItem/index.less +28 -0
  63. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.d.ts +10 -0
  64. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js +51 -0
  65. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js.map +1 -0
  66. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.less +21 -0
  67. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.d.ts +5 -0
  68. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js +30 -0
  69. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js.map +1 -0
  70. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.d.ts +7 -0
  71. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.js +18 -0
  72. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.js.map +1 -0
  73. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.less +4 -0
  74. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.d.ts +15 -0
  75. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js +31 -0
  76. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js.map +1 -0
  77. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.less +30 -0
  78. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchReport/index.d.ts +5 -0
  79. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchReport/index.js +10 -0
  80. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchReport/index.js.map +1 -0
  81. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.d.ts +5 -0
  82. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js +31 -0
  83. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js.map +1 -0
  84. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.d.ts +7 -0
  85. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js +29 -0
  86. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.js.map +1 -0
  87. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.d.ts +5 -0
  88. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js +22 -0
  89. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -0
  90. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.less +13 -0
  91. package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +10 -0
  92. package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.js +30 -0
  93. package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.js.map +1 -0
  94. package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.d.ts +3 -0
  95. package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js +33 -0
  96. package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js.map +1 -0
  97. package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.less +17 -0
  98. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.d.ts +15 -0
  99. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.js +61 -0
  100. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.js.map +1 -0
  101. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.less +10 -0
  102. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/state.d.ts +11 -0
  103. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/state.js +34 -0
  104. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/state.js.map +1 -0
  105. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.d.ts +6 -0
  106. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.js +33 -0
  107. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.js.map +1 -0
  108. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.less +33 -0
  109. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileItem/index.d.ts +7 -0
  110. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileItem/index.js +37 -0
  111. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileItem/index.js.map +1 -0
  112. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileItem/index.less +53 -0
  113. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.d.ts +10 -0
  114. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js +51 -0
  115. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js.map +1 -0
  116. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.less +21 -0
  117. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.d.ts +26 -0
  118. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js +53 -0
  119. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js.map +1 -0
  120. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfilePropertiesView/index.d.ts +6 -0
  121. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfilePropertiesView/index.js +23 -0
  122. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfilePropertiesView/index.js.map +1 -0
  123. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.d.ts +7 -0
  124. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js +12 -0
  125. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js.map +1 -0
  126. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.d.ts +6 -0
  127. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js +67 -0
  128. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js.map +1 -0
  129. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.less +13 -0
  130. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +10 -0
  131. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.js +22 -0
  132. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.js.map +1 -0
  133. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.d.ts +13 -0
  134. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +52 -0
  135. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -0
  136. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.less +39 -0
  137. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileStatusLabel/index.d.ts +10 -0
  138. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileStatusLabel/index.js +14 -0
  139. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileStatusLabel/index.js.map +1 -0
  140. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileStatusLabel/index.less +20 -0
  141. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.d.ts +3 -0
  142. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js +28 -0
  143. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -0
  144. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.less +17 -0
  145. package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.d.ts +3 -0
  146. package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js +34 -0
  147. package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js.map +1 -0
  148. package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.less +11 -0
  149. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +3 -5
  150. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
  151. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.less +21 -15
  152. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.d.ts +1 -1
  153. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js +9 -6
  154. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js.map +1 -1
  155. package/es/routes.d.ts +24 -0
  156. package/es/routes.js +55 -3
  157. package/es/routes.js.map +1 -1
  158. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import React, { useState } from "react";
2
+ import { Tabs } from "@voplus/antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import RiskMatchReport from "../RiskMatchReport";
5
+ import RiskMatchResult from "../RiskMatchResult";
6
+ import styles from "./index.less";
7
+ const RiskMatchTabs = (props) => {
8
+ const { id } = props;
9
+ /**Tabs 当前激活 tab 面板的 key */
10
+ const [activeKey, setActiveKey] = useState("Result");
11
+ return observe(() => (React.createElement(Tabs, { className: styles["risk-match-tabs"], activeKey: activeKey, onChange: onChange },
12
+ React.createElement(Tabs.TabPane, { tab: "Result", key: "Result" },
13
+ React.createElement(RiskMatchResult, { id: id })),
14
+ React.createElement(Tabs.TabPane, { tab: "Report", key: "Report" },
15
+ React.createElement(RiskMatchReport, { id: id })))));
16
+ /**切换面板的回调*/
17
+ function onChange(activeKey) {
18
+ setActiveKey(activeKey);
19
+ }
20
+ };
21
+ export default RiskMatchTabs;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC/C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ;QACnF,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,QAAQ,EAAC,GAAG,EAAC,QAAQ;YACtC,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI,CACb;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,QAAQ,EAAC,GAAG,EAAC,QAAQ;YACtC,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI,CACb,CACT,CACP,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ .risk-match-tabs {
2
+ :global {
3
+ .ant-tabs-nav {
4
+ padding-left: 20px;
5
+ }
6
+
7
+ .page-default-view {
8
+ >header {
9
+ display: none;
10
+ }
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchDataBar: (props: {
3
+ /** id of riskMatch */
4
+ id: string;
5
+ /** visible DataIconBar */
6
+ visible?: boolean | undefined;
7
+ /** props click function */
8
+ onClick?: ((key?: string | undefined) => void) | undefined;
9
+ }) => JSX.Element;
10
+ export default RiskMatchDataBar;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { Tooltip } from "@voplus/antd";
3
+ import { useRiskMatch } from "../../../../../../data/risk-match";
4
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
+ import { faCalendarCirclePlus, faEarthAsia, faCakeCandles, faMarsStroke, } from "@fortawesome/pro-light-svg-icons";
6
+ import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
7
+ import moment from "moment";
8
+ const RiskMatchDataBar = (props) => {
9
+ const { id, visible, onClick } = props;
10
+ const riskMatch = useRiskMatch(id);
11
+ return (React.createElement(DataIconBar, { visible: visible },
12
+ React.createElement(Tooltip, { title: "Search Date" },
13
+ React.createElement("span", { className: "data-icon", style: { color: "#00000073" } },
14
+ React.createElement(FAIcon, { icon: faCalendarCirclePlus }),
15
+ moment(riskMatch.createDate).format("YYYY-MM-DD"))),
16
+ React.createElement(Tooltip, { title: "Country" },
17
+ React.createElement("span", { className: "data-icon", style: { color: "#00000073" } },
18
+ React.createElement(FAIcon, { icon: faEarthAsia }),
19
+ "China")),
20
+ React.createElement(Tooltip, { title: "Birthday" },
21
+ React.createElement("span", { className: "data-icon", style: { color: "#00000073" } },
22
+ React.createElement(FAIcon, { icon: faCakeCandles }),
23
+ "2000-01-01")),
24
+ React.createElement(Tooltip, { title: "Gender" },
25
+ React.createElement("span", { className: "data-icon", style: { color: "#00000073" } },
26
+ React.createElement(FAIcon, { icon: faMarsStroke }),
27
+ riskMatch.gender))));
28
+ };
29
+ export default RiskMatchDataBar;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACN,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,YAAY,GACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,gBAAgB,GAAG,CAAC,KAOzB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEvC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,CACN,oBAAC,WAAW,IAAC,OAAO,EAAE,OAAO;QAC5B,oBAAC,OAAO,IAAC,KAAK,EAAC,aAAa;YAC3B,8BAAM,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;gBACxD,oBAAC,MAAM,IAAC,IAAI,EAAE,oBAAoB,GAAI;gBACrC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC5C,CACE;QACV,oBAAC,OAAO,IAAC,KAAK,EAAC,SAAS;YACvB,8BAAM,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;gBACxD,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;wBAEvB,CACE;QACV,oBAAC,OAAO,IAAC,KAAK,EAAC,UAAU;YACxB,8BAAM,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;gBACxD,oBAAC,MAAM,IAAC,IAAI,EAAE,aAAa,GAAI;6BAEzB,CACE;QACV,oBAAC,OAAO,IAAC,KAAK,EAAC,QAAQ;YACtB,8BAAM,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;gBACxD,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI;gBAC7B,SAAS,CAAC,MAAM,CACX,CACE,CACG,CACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchDefaultView: () => JSX.Element;
3
+ export default RiskMatchDefaultView;
@@ -0,0 +1,33 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useRiskMatch } from "../../../../../../data/risk-match";
5
+ import { useRouteMatch } from "react-router";
6
+ import { runInAction } from "mobx";
7
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
8
+ import RiskMatchProperties from "../../components/RiskMatchProperties";
9
+ import RiskMatchResult from "../../components/RiskMatchResult";
10
+ import RiskMatchReport from "../../components/RiskMatchReport";
11
+ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
12
+ import styles from "./index.less";
13
+ const RiskMatchDefaultView = () => {
14
+ const match = useRouteMatch();
15
+ const id = match.params.id;
16
+ const store = new TabItemStore({ url: "" });
17
+ const riskMatch = useRiskMatch(id, { reload: true });
18
+ const [asideContext] = useState(AsideContent.createContext());
19
+ const tab = useTabItem();
20
+ useEffect(() => {
21
+ runInAction(() => (tab.title = riskMatch.name));
22
+ });
23
+ return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
24
+ React.createElement(MainContent, { className: styles["risk-match-default-view"] },
25
+ React.createElement(MainContent.Nav, { collapsible: true },
26
+ React.createElement(RiskMatchProperties, { id: id })),
27
+ React.createElement("div", { className: "risk-match-context" },
28
+ React.createElement(AsideContent, { context: asideContext },
29
+ React.createElement(RiskMatchReport, { id: id }),
30
+ React.createElement(RiskMatchResult, { id: id })))))));
31
+ };
32
+ export default RiskMatchDefaultView;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,mBAAmB,MAAM,sCAAsC,CAAC;AACvE,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACjC,MAAM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11
+
12
+ .ant-tabs-nav {
13
+ margin: 0 !important;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ declare const NewRiskProfileForm: {
3
+ (props: {
4
+ /** 額外css class. */
5
+ className?: string | undefined;
6
+ /** RiskProfileForm 打开的方式 */
7
+ openMode?: "openAside" | "openBottom" | undefined;
8
+ onSave?: ((params?: any) => void) | undefined;
9
+ onCancel?: (() => void) | undefined;
10
+ }): JSX.Element;
11
+ defaultProps: {
12
+ openMode: string;
13
+ };
14
+ };
15
+ export default NewRiskProfileForm;
@@ -0,0 +1,61 @@
1
+ import React, { useState } from "react";
2
+ import { Button, Form, Row, Space, message } from "@voplus/antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { State } from "./state";
5
+ import { useRiskProfileStore } from "../../../../../../data/risk-profile";
6
+ import { runInAction } from "mobx";
7
+ import { useLayout } from "@voplus/morpho-data";
8
+ import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
9
+ import MetionList from "@voplus/morpho-org/es/controls/MetionList";
10
+ import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
11
+ import classnames from "classnames";
12
+ import styles from "./index.less";
13
+ const NewRiskProfileForm = (props) => {
14
+ const { openMode } = props;
15
+ const [state] = useState(new State());
16
+ const [form] = Form.useForm();
17
+ const [loading, setLoading] = useState(false);
18
+ const asideContext = useAsideContentContext();
19
+ const layout = useLayout();
20
+ const store = useRiskProfileStore();
21
+ const content = observe(() => (React.createElement("div", { className: classnames(styles["new-risk-profile-form"], props.className) },
22
+ React.createElement(Form, { form: form, layout: "vertical" },
23
+ React.createElement(Form.Item, { name: "Contact", label: "Contact" },
24
+ React.createElement(MetionList, { multiple: false, contacts: state.members ? state.members : [], defaultSelection: "Everyone", onChange: (list) => {
25
+ state.members = list;
26
+ state.params.UnitId = list[0].id;
27
+ } })),
28
+ openMode === "openBottom" && (React.createElement(Form.Item, { className: "from-footer" },
29
+ React.createElement(Row, { justify: "end" },
30
+ React.createElement(Space, null,
31
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
32
+ React.createElement(Button, { type: "primary", htmlType: "submit", onClick: onSubmit, loading: loading }, "Submit")))))))));
33
+ return observe(() => (React.createElement(React.Fragment, null, props.openMode === "openBottom" ? (content) : (React.createElement(AddFormView, { title: "Add Customer Form", loading: loading, onCancel: onCancel, onSubmit: onSubmit }, content)))));
34
+ async function onSubmit() {
35
+ var _a;
36
+ // if (!values.Name) return message.warning("Title is required");
37
+ setLoading(true);
38
+ await store.create({
39
+ data: {
40
+ ...state.params,
41
+ },
42
+ error: (error) => message.error(error.message),
43
+ });
44
+ // .then((res) => layout.history.push(``));
45
+ runInAction(() => (state.members = []));
46
+ setLoading(false);
47
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, state.params);
48
+ onCancel();
49
+ }
50
+ function onCancel() {
51
+ var _a;
52
+ runInAction(() => (state.members = []));
53
+ asideContext.closeAside();
54
+ (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
55
+ }
56
+ };
57
+ NewRiskProfileForm.defaultProps = {
58
+ openMode: "openAside",
59
+ };
60
+ export default NewRiskProfileForm;
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,WAAW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AAC;QACxC,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,MAAA,KAAK,CAAC,MAAM,+CAAZ,KAAK,EAAU,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,QAAQ,EAAE,CAAC;IACZ,CAAC;IAED,SAAS,QAAQ;;QAChB,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC;QACxC,YAAa,CAAC,UAAU,EAAE,CAAC;QAC3B,MAAA,KAAK,CAAC,QAAQ,+CAAd,KAAK,CAAa,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,QAAQ,EAAE,WAAW;CACrB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ .new-risk-profile-form {
2
+ :global {
3
+ .from-footer {
4
+ margin-bottom: 0;
5
+ }
6
+ .ant-tabs-tabpane {
7
+ padding: 24px;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,11 @@
1
+ import { IUnit } from "@voplus/morpho-org";
2
+ export declare class State {
3
+ constructor();
4
+ Params: {
5
+ UnitId: string;
6
+ };
7
+ params: {
8
+ UnitId: string;
9
+ };
10
+ members?: IUnit[];
11
+ }
@@ -0,0 +1,34 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ UnitId: "",
11
+ }
12
+ });
13
+ Object.defineProperty(this, "params", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: this.Params
18
+ });
19
+ Object.defineProperty(this, "members", {
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true,
23
+ value: void 0
24
+ });
25
+ makeObservable(this);
26
+ }
27
+ }
28
+ __decorate([
29
+ observable
30
+ ], State.prototype, "params", void 0);
31
+ __decorate([
32
+ observable
33
+ ], State.prototype, "members", void 0);
34
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,MAAM,EAAE,EAAE;aACV;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;;WAAyB;QANpC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAMD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAA0B"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const RiskProfileHead: (props: {
3
+ id: string;
4
+ onReload?: () => void;
5
+ }) => JSX.Element;
6
+ export default RiskProfileHead;
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import { Skeleton } from "@voplus/antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useRiskProfile, useRiskProfileStore } from "../../../../../../data/risk-profile";
5
+ import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
6
+ import { Open, Reload, Delete, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
7
+ import { runInAction } from "mobx";
8
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
9
+ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
10
+ import styles from "./index.less";
11
+ const RiskProfileHead = (props) => {
12
+ const { id, onReload } = props;
13
+ const store = useRiskProfileStore();
14
+ const asideContext = useAsideContentContext();
15
+ const riskProfile = useRiskProfile(id);
16
+ return observe(() => (React.createElement("div", { className: styles["unit-head"] }, riskProfile.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
17
+ React.createElement("div", { className: "tool-bar-content" },
18
+ React.createElement(ToolBar, { id: id, showMenu: false },
19
+ React.createElement(Open, { url: `/risk-profile/${id}` }),
20
+ React.createElement(Reload, { action: onReload }),
21
+ React.createElement(Delete, { action: onItemDelete }))),
22
+ React.createElement(UnitAvatar, { id: riskProfile.unit.id, size: 70 }),
23
+ React.createElement("div", { className: "unit-name" }, riskProfile.unit.name))))));
24
+ /**delete riskProfile*/
25
+ async function onItemDelete() {
26
+ await store.delete([id]);
27
+ runInAction(() => {
28
+ asideContext.closeAside();
29
+ });
30
+ }
31
+ };
32
+ export default RiskProfileHead;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EACL,IAAI,EACJ,MAAM,EACN,MAAM,GACP,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,eAAe,GAAG,CAAC,KAA4C,EAAE,EAAE;IACvE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,6BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,IAChC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CACrB,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACpB,CAAC,CAAC,CAAC,CACF,oBAAC,KAAK,CAAC,QAAQ;QACb,6BAAK,SAAS,EAAC,kBAAkB;YAC/B,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;gBAC9B,oBAAC,IAAI,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;gBACpC,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;gBAC5B,oBAAC,MAAM,IAAC,MAAM,EAAE,YAAY,GAAI,CACxB,CACN;QACN,oBAAC,UAAU,IAAC,EAAE,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,GAAI;QACjD,6BAAK,SAAS,EAAC,WAAW,IAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAO,CACzC,CAClB,CACG,CACP,CAAC,CAAC;IAEH,uBAAuB;IACvB,KAAK,UAAU,YAAY;QACzB,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzB,WAAW,CAAC,GAAG,EAAE;YACf,YAAa,CAAC,UAAU,EAAE,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,33 @@
1
+ .unit-head {
2
+ position: relative;
3
+ text-align: center;
4
+ padding: 10px 0;
5
+ margin: 0 20px;
6
+
7
+ :global {
8
+ .tool-bar-content {
9
+ text-align: right;
10
+ }
11
+
12
+ .unit-name {
13
+ color: #000;
14
+ font-size: 16px;
15
+ font-weight: 500;
16
+ margin-top: 12px;
17
+ cursor: pointer;
18
+
19
+ &.inline-edit {
20
+ cursor: text;
21
+ }
22
+ }
23
+
24
+ .unit-type{
25
+ margin-bottom: 6px;
26
+ }
27
+
28
+ .unit-tag {
29
+ display: inline-block;
30
+ margin: auto;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const RiskProfileItem: (props: {
3
+ id: string;
4
+ quickView?: boolean;
5
+ active?: boolean;
6
+ }) => JSX.Element;
7
+ export default RiskProfileItem;
@@ -0,0 +1,37 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { useRiskProfile, useRiskProfileStore } from "../../../../../../data/risk-profile";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { Skeleton } from "@voplus/antd";
5
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
6
+ import { autorun } from "mobx";
7
+ import RiskProfileMenu from "../../controls/RiskProfileMenu";
8
+ import RiskProfileDataBar from "../../controls/RiskProfileDataBar";
9
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
10
+ import RiskProfileQuickView from "../RiskProfileQuickView";
11
+ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
12
+ import classnames from "classnames";
13
+ import styles from "./index.less";
14
+ const RiskProfileItem = (props) => {
15
+ const { id, quickView } = props;
16
+ const riskProfile = useRiskProfile(id);
17
+ const store = useRiskProfileStore();
18
+ const [isHover, setIsHover] = useState(false);
19
+ const [visible, setVisible] = useState(false);
20
+ const [loaded, setLoaded] = useState(false);
21
+ useEffect(() => autorun(() => riskProfile.loaded && setLoaded(true)));
22
+ return observe(() => !loaded ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(React.Fragment, null,
23
+ React.createElement("div", { className: styles["risk-profile-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false) },
24
+ React.createElement("div", { className: "risk-profile-avatar" },
25
+ React.createElement(UnitAvatar, { id: riskProfile.unit.id, size: "large" })),
26
+ React.createElement("div", { className: "risk-profile-header-content" },
27
+ React.createElement("div", { className: "risk-profile-name", onClick: () => quickView && setVisible(true) }, riskProfile.unit.name),
28
+ React.createElement(RiskProfileDataBar, { id: id })),
29
+ React.createElement("div", { className: classnames("risk-profile-status-label flex items-baseline text-2xl font-semibold text-indigo-600 commission-amount", { hide: isHover }) }, (riskProfile === null || riskProfile === void 0 ? void 0 : riskProfile.status) || `Unchecked: ${riskProfile.unchecked}`),
30
+ React.createElement("div", { className: classnames("risk-profile-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
31
+ React.createElement(ToolBar, { id: id, showMenu: false },
32
+ React.createElement(Open, { url: `/risk-profile/${id}` }),
33
+ React.createElement(RiskProfileMenu, { id: id, closeAside: true })))),
34
+ React.createElement(RiskProfileQuickView, { id: id, visible: visible, onCancel: () => setVisible(false) }))));
35
+ };
36
+ export default RiskProfileItem;
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,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BAA6B;gBAC3C,6BAAK,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,IAC7E,WAAW,CAAC,IAAI,CAAC,IAAI,CACjB;gBACN,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACzB;YACN,6BACC,SAAS,EAAE,UAAU,CACpB,wGAAwG,EACxG,EAAE,IAAI,EAAE,OAAO,EAAE,CACjB,IAEA,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,KAAI,cAAc,WAAW,CAAC,SAAS,EAAE,CACxD;YACN,6BACC,SAAS,EAAE,UAAU,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAClE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE;gBAEnC,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;oBAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;oBACpC,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC7B,CACL,CACD;QACN,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACrE,CACjB,CACD,CAAC;AACH,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,53 @@
1
+ @import "~@voplus/antd/es/style/themes/index.less";
2
+ @import "~@voplus/morpho-theme/styles/index.less";
3
+
4
+ .risk-profile-item {
5
+ display: flex;
6
+ align-items: center;
7
+ padding: 10px 0;
8
+ margin: 0 20px;
9
+ border-bottom: 1px solid #d9d9d9;
10
+ cursor: pointer;
11
+
12
+ &:hover {
13
+ background-color: #f5f8fd;
14
+ }
15
+
16
+ :global {
17
+ .risk-profile-avatar {
18
+ margin-right: 10px;
19
+ }
20
+
21
+ .risk-profile-header-content {
22
+ flex: 1;
23
+
24
+ .risk-profile-name {
25
+ color: @tabs-default-color;
26
+ font-weight: 500;
27
+ font-size: 15px;
28
+ word-break: break-all;
29
+ }
30
+
31
+ .team-name {
32
+ margin-left: 10px;
33
+ }
34
+ }
35
+
36
+ .risk-profile-status-label {
37
+ opacity: 1;
38
+ flex-shrink: 0;
39
+
40
+ &.hide {
41
+ opacity: 0;
42
+ }
43
+ }
44
+
45
+ .risk-profile-item-tool {
46
+ display: none;
47
+
48
+ &.show {
49
+ display: block;
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { IRiskProfile } from "../../../../../../data/risk-profile";
3
+ declare const RiskProfileList: (props: {
4
+ parentId: string;
5
+ viewTitle?: string | undefined;
6
+ asideable?: boolean | undefined;
7
+ onTotal?: ((total: number) => void) | undefined;
8
+ onClickItem?: ((item: IRiskProfile) => void) | undefined;
9
+ }) => JSX.Element;
10
+ export default RiskProfileList;
@@ -0,0 +1,51 @@
1
+ import React, { useState } from "react";
2
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
+ import { useRiskProfileListEffect } from "../../../../../../data/risk-profile";
5
+ import { useAutoUpdateListData } from "../../../../../../data/risk-profile/risk-profile-events";
6
+ import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
7
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
8
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
9
+ import NewRiskProfileForm from "../NewRiskProfileForm";
10
+ import RiskProfileItem from "../RiskProfileItem";
11
+ import RiskProfilePropertiesView from "../RiskProfilePropertiesView";
12
+ import styles from "./index.less";
13
+ const RiskProfileList = (props) => {
14
+ const { parentId, viewTitle, asideable } = props;
15
+ const view = useViewContext();
16
+ const [asideContext] = useState(AsideContent.createContext());
17
+ const list = useCreateListDataState({
18
+ filterDefaults: {
19
+ filters: filters(),
20
+ },
21
+ }, [parentId]);
22
+ /** 如果 list.filters.options变更了就重渲染,使下一行的useWorkTypeListEffect 可以接收新参数*/
23
+ useRenderOnChange(() => list.filters.options);
24
+ useRiskProfileListEffect(list, (result, total) => {
25
+ var _a;
26
+ list.union(result);
27
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
28
+ }, { Total: true, ...list.filters.options });
29
+ useAutoUpdateListData(list, (d) => true);
30
+ return observe(() => (React.createElement(AsideContent, { context: asideContext },
31
+ React.createElement("div", { className: styles["risk-profile-list"] },
32
+ React.createElement(ListDataContext.Provider, { value: list },
33
+ React.createElement(ListView, { headerProps: {
34
+ viewTitle: viewTitle || "Risk Profile List",
35
+ sortable: false,
36
+ quickSearch: true,
37
+ }, renderItem: ({ item, connectDragSource }) => (React.createElement("div", { key: item.id, onClick: () => (props === null || props === void 0 ? void 0 : props.onClickItem) && props.onClickItem(item) },
38
+ React.createElement(RiskProfileItem, { id: item.id, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" }))), asideable: asideable, formViewTitle: "Add WorkType", formView: React.createElement(NewRiskProfileForm, null), propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(RiskProfilePropertiesView, { id: id }) }))))));
39
+ function filters() {
40
+ const filter = [];
41
+ if (parentId)
42
+ filter.push({ c: "ParentNodeId", o: "=", l: "And", v1: parentId });
43
+ return filter;
44
+ }
45
+ function onFilter(context) {
46
+ context.paging.Page = 1;
47
+ context.filter();
48
+ }
49
+ };
50
+ export default RiskProfileList;
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,K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AS,OAAO;QACf,MAAM,MAAM,GAAmB,EAAE,CAAC;QAClC,IAAI,QAAQ;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjF,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,21 @@
1
+ @import "~@voplus/antd/es/style/themes/default.less";
2
+
3
+ .risk-profile-list {
4
+ display: flex;
5
+ flex-direction: column;
6
+ height: 100%;
7
+
8
+ :global {
9
+ .list-view-header>div:first-child {
10
+ flex: 1;
11
+
12
+ .site-badge-count {
13
+ margin-left: 10px;
14
+ }
15
+ }
16
+
17
+ .vo-plus-column-item>div {
18
+ flex: 1;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ declare type RiskProfilePropertiesName = "CreateDate" | "RiskLevel";
3
+ declare const RiskProfileProperties: {
4
+ (props: {
5
+ id: string;
6
+ headerVisible?: boolean;
7
+ riskProfileTitle?: string;
8
+ orgContactTitle?: string;
9
+ riskProfileProperties?: {
10
+ name: RiskProfilePropertiesName;
11
+ visible?: boolean;
12
+ }[];
13
+ orgContactProperties?: {
14
+ name: "Phone" | "Address" | "E-mail" | "DingId" | "Site" | "Birthday" | "Gender";
15
+ visible?: boolean;
16
+ }[];
17
+ }): JSX.Element;
18
+ defaultProps: {
19
+ riskProfileTitle: string;
20
+ orgContactTitle: string;
21
+ riskProfileProperties: {
22
+ name: string;
23
+ }[];
24
+ };
25
+ };
26
+ export default RiskProfileProperties;