@voplus/morpho-csp 1.2.156 → 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 (155) 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/relationship/components/CorporateRelationshipView/index.d.ts +1 -1
  150. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js +9 -6
  151. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js.map +1 -1
  152. package/es/routes.d.ts +24 -0
  153. package/es/routes.js +55 -3
  154. package/es/routes.js.map +1 -1
  155. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ import { useOnDeleteRiskProfile, useOnNewRiskProfile } from ".";
2
+ /** React hook to call action when a new RiskProfile has been created. */
3
+ export const useAutoUpdateListData = (list, shouldUpdate) => {
4
+ useOnNewRiskProfile((s, d) => {
5
+ console.log(s, d);
6
+ console.log(shouldUpdate(d, "new"));
7
+ if (shouldUpdate(d, "new"))
8
+ list.union([d]);
9
+ });
10
+ useOnDeleteRiskProfile((s, d) => {
11
+ if (shouldUpdate(d, "new"))
12
+ list.remove(d.id);
13
+ });
14
+ };
15
+ //# sourceMappingURL=useAutoUpdateListData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoUpdateListData.js","sourceRoot":"","sources":["../../../../src/data/risk-profile/risk-profile-events/useAutoUpdateListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAC;AAKhE,yEAAyE;AACzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA+B,EAC/B,YAAyD,EACxD,EAAE;IACH,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC5B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;QACnC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,sBAAsB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC/B,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RiskProfileStore } from "../RiskProfileStore";
2
+ import { IRiskProfile } from "../interfaces";
3
+ /** React hook to call action when a delete RiskProfile has been created. */
4
+ export declare const useOnDeleteRiskProfile: (action: (store: RiskProfileStore, doc: IRiskProfile) => void) => void;
@@ -0,0 +1,16 @@
1
+ import { useRiskProfileStore } from "../RiskProfileStore";
2
+ import { useEffect } from "react";
3
+ /** React hook to call action when a delete RiskProfile has been created. */
4
+ export const useOnDeleteRiskProfile = (action) => {
5
+ const store = useRiskProfileStore();
6
+ const onDeleteRiskProfile = (store, doc) => {
7
+ action(store, doc);
8
+ };
9
+ useEffect(() => {
10
+ store.RiskProfileDeletedEvent.subscribe(onDeleteRiskProfile);
11
+ return () => {
12
+ store.RiskProfileDeletedEvent.unsubscribe(onDeleteRiskProfile);
13
+ };
14
+ });
15
+ };
16
+ //# sourceMappingURL=useOnDeleteRiskProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnDeleteRiskProfile.js","sourceRoot":"","sources":["../../../../src/data/risk-profile/risk-profile-events/useOnDeleteRiskProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG3E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAA4D,EAAE,EAAE;IACtG,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,MAAM,mBAAmB,GAAG,CAAC,KAAuB,EAAE,GAAiB,EAAE,EAAE;QAC1E,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,uBAAuB,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QAC7D,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAChE,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RiskProfileStore } from "../RiskProfileStore";
2
+ import { IRiskProfile } from "../interfaces";
3
+ /** React hook to call action when a new RiskProfile has been created. */
4
+ export declare const useOnNewRiskProfile: (action: (store: RiskProfileStore, doc: IRiskProfile) => void) => void;
@@ -0,0 +1,17 @@
1
+ import { useRiskProfileStore } from "../RiskProfileStore";
2
+ import { useEffect } from "react";
3
+ /** React hook to call action when a new RiskProfile has been created. */
4
+ export const useOnNewRiskProfile = (action) => {
5
+ const store = useRiskProfileStore();
6
+ const onNewRiskProfile = (store, doc) => {
7
+ // console.log(`onNewRiskProfile - ${doc.id} ${doc.name}`);
8
+ action(store, doc);
9
+ };
10
+ useEffect(() => {
11
+ store.RiskProfileCreatedEvent.subscribe(onNewRiskProfile);
12
+ return () => {
13
+ store.RiskProfileCreatedEvent.unsubscribe(onNewRiskProfile);
14
+ };
15
+ });
16
+ };
17
+ //# sourceMappingURL=useOnNewRiskProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnNewRiskProfile.js","sourceRoot":"","sources":["../../../../src/data/risk-profile/risk-profile-events/useOnNewRiskProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG3E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,yEAAyE;AACzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA4D,EAAE,EAAE;IACnG,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,MAAM,gBAAgB,GAAG,CAAC,KAAuB,EAAE,GAAiB,EAAE,EAAE;QACvE,2DAA2D;QAC3D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,uBAAuB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAC1D,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAC7D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
2
+ import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
3
+ import { IRiskProfile } from "./interfaces";
4
+ /** Custom load org contact options type */
5
+ export declare type LoadRiskProfileOptions = {
6
+ /** Comma separated include options e.g. path */
7
+ includes?: string;
8
+ } & LoadOptions<IRiskProfile>;
9
+ export declare type RiskProfileCreateOptions = {
10
+ UnitId: string;
11
+ };
12
+ export declare type RiskProfileEditOptions = {
13
+ RiskLevel?: string;
14
+ };
15
+ export declare type CreateRiskProfileOptions = {
16
+ data: RiskProfileCreateOptions;
17
+ } & StoreActionOptions;
18
+ export declare type EditRiskProfileOptions = {
19
+ data: RiskProfileEditOptions;
20
+ } & StoreActionOptions;
21
+ export declare type DeleteRiskProfileOptions = {
22
+ data?: DeleteDocumentOptions;
23
+ } & StoreActionOptions;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/risk-profile/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const RiskMatchHeader: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default RiskMatchHeader;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
4
+ import { useRiskMatch } from "../../../../../../data/risk-match";
5
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
6
+ import RiskMatchDataBar from "../../controls/RiskMatchDataBar";
7
+ import "./index.less";
8
+ const RiskMatchHeader = (props) => {
9
+ const id = props.id;
10
+ const riskMatch = useRiskMatch(id);
11
+ return observe(() => (React.createElement("div", { className: "risk-match-header" },
12
+ React.createElement("div", { className: "risk-match-header-content" },
13
+ React.createElement("div", { className: "risk-match-header-title" }, riskMatch.name),
14
+ React.createElement(ToolBar, { id: id, showMenu: false },
15
+ React.createElement(Reload, null),
16
+ React.createElement(Open, { url: `/risk-match/${id}` }))),
17
+ React.createElement("div", null,
18
+ React.createElement(RiskMatchDataBar, { id: id })))));
19
+ };
20
+ export default RiskMatchHeader;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,cAAc,CAAC;AAEtB,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,mBAAmB;QACjC,6BAAK,SAAS,EAAC,2BAA2B;YACzC,6BAAK,SAAS,EAAC,yBAAyB,IAAE,SAAS,CAAC,IAAI,CAAO;YAC/D,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;gBAC/B,oBAAC,MAAM,OAAG;gBACV,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,EAAE,EAAE,GAAI,CACzB,CACL;QAEN;YACC,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CACvB,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,15 @@
1
+ :global {
2
+ .risk-match-header {
3
+ padding: 10px 20px;
4
+
5
+ .risk-match-header-content {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+
10
+ .risk-match-header-title {
11
+ font-size: 24px;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchItem: (props: {
3
+ id: string;
4
+ quickView?: boolean;
5
+ active?: boolean;
6
+ }) => JSX.Element;
7
+ export default RiskMatchItem;
@@ -0,0 +1,25 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { useRiskMatch, useRiskMatchStore } from "../../../../../../data/risk-match";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { Skeleton } from "@voplus/antd";
5
+ import { autorun } from "mobx";
6
+ import RiskMatchDataBar from "../../controls/RiskMatchDataBar";
7
+ import RiskMatchQuickView from "../RiskMatchQuickView";
8
+ import styles from "./index.less";
9
+ const RiskMatchItem = (props) => {
10
+ const { id, quickView } = props;
11
+ const riskMatch = useRiskMatch(id);
12
+ const store = useRiskMatchStore();
13
+ const [loaded, setLoaded] = useState(false);
14
+ const [visible, setVisible] = useState(false);
15
+ useEffect(() => autorun(() => riskMatch.loaded && setLoaded(true)));
16
+ return observe(() => (!loaded ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(React.Fragment, null,
17
+ React.createElement("div", { className: styles["risk-match-item"], onClick: () => quickView && setVisible(true) },
18
+ React.createElement("div", { className: "risk-match-header-content" },
19
+ React.createElement("div", { className: "risk-match-name" }, riskMatch.name),
20
+ React.createElement(RiskMatchDataBar, { id: id })),
21
+ React.createElement("div", { className: "flex items-baseline text-2xl font-semibold text-indigo-600 commission-amount" }, "Positive")),
22
+ React.createElement(RiskMatchQuickView, { id: id, visible: visible, onCancel: () => setVisible(false) })))));
23
+ };
24
+ export default RiskMatchItem;
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAA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AAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACnE,CACjB,CACA,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,28 @@
1
+ @import "~@voplus/antd/es/style/themes/index.less";
2
+ @import "~@voplus/morpho-theme/styles/index.less";
3
+
4
+ .risk-match-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-match-header-content {
18
+ flex: 1;
19
+
20
+ .risk-match-name {
21
+ color: @tabs-default-color;
22
+ font-weight: 500;
23
+ font-size: 15px;
24
+ word-break: break-all;
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { IRiskMatch } from "../../../../../../data/risk-match";
3
+ declare const RiskMatchList: (props: {
4
+ parentId: string;
5
+ viewTitle?: string | undefined;
6
+ asideable?: boolean | undefined;
7
+ onTotal?: ((total: number) => void) | undefined;
8
+ onClickItem?: ((item: IRiskMatch) => void) | undefined;
9
+ }) => JSX.Element;
10
+ export default RiskMatchList;
@@ -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 { useRiskMatchListEffect } from "../../../../../../data/risk-match";
5
+ import { useAutoUpdateListData } from "../../../../../../data/risk-match/risk-match-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 RiskMatchItem from "../RiskMatchItem";
10
+ import RiskMatchPropertiesView from "../RiskMatchPropertiesView";
11
+ import styles from "./index.less";
12
+ const RiskMatchList = (props) => {
13
+ const { parentId, viewTitle, asideable } = props;
14
+ const view = useViewContext();
15
+ const [asideContext] = useState(AsideContent.createContext());
16
+ const list = useCreateListDataState({
17
+ filterDefaults: {
18
+ filters: filters(),
19
+ },
20
+ }, [parentId]);
21
+ /** 如果 list.filters.options变更了就重渲染,使下一行的useWorkTypeListEffect 可以接收新参数*/
22
+ useRenderOnChange(() => list.filters.options);
23
+ useRiskMatchListEffect(list, (result, total) => {
24
+ var _a;
25
+ list.union(result);
26
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
27
+ }, { Total: true, ...list.filters.options });
28
+ useAutoUpdateListData(list, (d) => true);
29
+ return observe(() => (React.createElement(AsideContent, { context: asideContext },
30
+ React.createElement("div", { className: styles["risk-match-list"] },
31
+ React.createElement(ListDataContext.Provider, { value: list },
32
+ React.createElement(ListView, { headerProps: {
33
+ viewTitle: viewTitle || "Risk Match List",
34
+ sortable: false,
35
+ quickSearch: true,
36
+ addAble: false,
37
+ }, asideable: asideable, 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(RiskMatchItem, { id: item.id, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" }))), propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(RiskMatchPropertiesView, { 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 RiskMatchList;
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/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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,aAAa,CAAC"}
@@ -0,0 +1,21 @@
1
+ @import "~@voplus/antd/es/style/themes/default.less";
2
+
3
+ .risk-match-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,5 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchProperties: (props: {
3
+ id: string;
4
+ }) => JSX.Element;
5
+ export default RiskMatchProperties;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { useRiskMatch, useRiskMatchStore } from "../../../../../../data/risk-match";
4
+ import { Form, Switch, Radio } from "@voplus/antd";
5
+ import { Scrollbars } from "react-custom-scrollbars";
6
+ import classnames from "classnames";
7
+ import moment from "moment";
8
+ const RiskMatchProperties = (props) => {
9
+ const store = useRiskMatchStore();
10
+ const riskMatch = useRiskMatch(props.id);
11
+ return observe(() => (React.createElement("div", { className: classnames("properties-list") },
12
+ React.createElement("div", { className: "properties-header" },
13
+ React.createElement("div", { className: "title" }, riskMatch.name)),
14
+ React.createElement(Scrollbars, { autoHide: true },
15
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
16
+ React.createElement(Form.Item, { label: "Create Date" },
17
+ React.createElement("span", null, moment(riskMatch.createDate).format("YYYY-MM-DD"))),
18
+ React.createElement(Form.Item, { label: "Channel" }, "Acuris"),
19
+ React.createElement(Form.Item, { label: "Positive" },
20
+ React.createElement(Switch, { checked: riskMatch.positive, onChange: onChange })),
21
+ React.createElement(Form.Item, { label: "Gender" },
22
+ React.createElement(Radio.Group, { value: riskMatch.gender },
23
+ React.createElement(Radio, { value: "Male" }, "Male"),
24
+ React.createElement(Radio, { value: "Female" }, "Female"))))))));
25
+ async function onChange(checked) {
26
+ await store.edit(props.id, { data: { Positive: checked }, error: "message" });
27
+ }
28
+ };
29
+ export default RiskMatchProperties;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;QA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ean;
6
+ }) => JSX.Element;
7
+ export default RiskMatchPropertiesView;
@@ -0,0 +1,18 @@
1
+ import "./index.less";
2
+ import React, { useMemo } from "react";
3
+ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
4
+ import RiskMatchHeader from "../RiskMatchHeader";
5
+ import RiskMatchTabs from "../RiskMatchTabs";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import { useRiskMatch } from "../../../../../../data/risk-match";
8
+ const RiskMatchPropertiesView = (props) => {
9
+ const id = props.id;
10
+ const view = useMemo(() => new ViewContextData("PropertiesView"), []);
11
+ const riskMatch = useRiskMatch(id);
12
+ return observe(() => (React.createElement(ViewContext.Provider, { value: view },
13
+ React.createElement("div", { className: "module-detail-view risk-match-properties-view" },
14
+ React.createElement(RiskMatchHeader, { id: id }),
15
+ React.createElement(RiskMatchTabs, { id: id })))));
16
+ };
17
+ export default RiskMatchPropertiesView;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,MAAM,uBAAuB,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC5E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,+CAA+C;YAC7D,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;YAC3B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI,CACpB,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const RiskMatchQuickView: {
4
+ (props: {
5
+ id: string;
6
+ visible?: boolean;
7
+ onCancel?: () => void;
8
+ /** show close button or not. */
9
+ closeVisible?: boolean;
10
+ }): JSX.Element;
11
+ defaultProps: {
12
+ closeVisible: boolean;
13
+ };
14
+ };
15
+ export default RiskMatchQuickView;
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import { faTimes } from "@fortawesome/pro-light-svg-icons";
5
+ import RiskMatchHeader from "../RiskMatchHeader";
6
+ import RiskMatchTabs from "../RiskMatchTabs";
7
+ import FlexDialog from "@voplus/morpho-document/es/components/FlexDialog";
8
+ import "./index.less";
9
+ const RiskMatchQuickView = (props) => {
10
+ const { id } = props;
11
+ // const commission = useRiskMatch(id, { reload: false, includes: "tags" });
12
+ return observe(() => (React.createElement(FlexDialog, { modalProps: {
13
+ className: "quickView-modal-style",
14
+ width: "500px",
15
+ destroyOnClose: true,
16
+ closable: false,
17
+ footer: false,
18
+ visible: props.visible,
19
+ onCancel: props.onCancel,
20
+ }, closeAside: props.onCancel },
21
+ React.createElement("div", { className: "quickView-content" },
22
+ props.closeVisible && (React.createElement("div", { className: "risk-match-close-icon" },
23
+ React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
24
+ React.createElement(RiskMatchHeader, { id: id }),
25
+ React.createElement(RiskMatchTabs, { id: id })))));
26
+ };
27
+ RiskMatchQuickView.defaultProps = {
28
+ closeVisible: true,
29
+ };
30
+ export default RiskMatchQuickView;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAM3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,4EAA4E;IAE5E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU,IACV,UAAU,EAAE;YACX,SAAS,EAAE,uBAAuB;YAClC,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,IAAI;YACpB,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,EACD,UAAU,EAAE,KAAK,CAAC,QAAQ;QAE1B,6BAAK,SAAS,EAAC,mBAAmB;YAChC,KAAK,CAAC,YAAY,IAAI,CACtB,6BAAK,SAAS,EAAC,uBAAuB;gBACrC,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC7C,CACN;YACD,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;YAC3B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI,CACpB,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,YAAY,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,30 @@
1
+ :global {
2
+ .quickView-modal-style {
3
+ .ant-modal-close-x {
4
+ color: #575757;
5
+ }
6
+
7
+ .quickView-content {
8
+ position: relative;
9
+ width: 100%;
10
+ height: 100%;
11
+
12
+ .risk-match-close-icon {
13
+ position: absolute;
14
+ right: 18px;
15
+ top: 12px;
16
+ font-size: 22px;
17
+ text-align: right;
18
+ cursor: pointer;
19
+ }
20
+
21
+ .risk-match-header {
22
+ padding: 10px 44px 10px 20px;
23
+ }
24
+
25
+ .ant-tabs {
26
+ height: calc(100% - 87px);
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchReport: (props: {
3
+ id: string;
4
+ }) => JSX.Element;
5
+ export default RiskMatchReport;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { useApplicationContext } from "@voplus/morpho-data";
4
+ import Viewer from "@voplus/morpho-document/es/controls/PDFViewer";
5
+ const RiskMatchReport = (props) => {
6
+ const { user } = useApplicationContext();
7
+ return observe(() => (React.createElement(Viewer, { url: `/api/units/risk-matches/${props.id}/pdf-report?access_token=${encodeURIComponent(user.info.accessToken)}` })));
8
+ };
9
+ export default RiskMatchReport;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchReport/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,MAAM,MAAM,+CAA+C,CAAC;AAEnE,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IACN,GAAG,EAAE,2BAA2B,KAAK,CAAC,EAAE,4BAA4B,kBAAkB,CACrF,IAAI,CAAC,IAAI,CAAC,WAAW,CACrB,EAAE,GACF,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchResult: (props: {
3
+ id: string;
4
+ }) => JSX.Element;
5
+ export default RiskMatchResult;
@@ -0,0 +1,31 @@
1
+ import React, { useState } from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Form, Switch } from "@voplus/antd";
4
+ import { useRiskMatch, useRiskMatchStore } from "../../../../../../data/risk-match";
5
+ import VerificationInformation from "@voplus/morpho-document/es/components/VerificationInformation";
6
+ import classnames from "classnames";
7
+ const RiskMatchResult = (props) => {
8
+ const riskMatch = useRiskMatch(props.id);
9
+ const store = useRiskMatchStore();
10
+ const [loaded, setLoaded] = useState(true);
11
+ return observe(() => (React.createElement("div", { className: classnames("properties-list") },
12
+ React.createElement("div", { className: "properties-header" },
13
+ React.createElement("div", { className: "title" }, "Risk Match Result")),
14
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
15
+ React.createElement(Form.Item, { label: "Positive" },
16
+ React.createElement(Switch, { checked: riskMatch.positive, onChange: onChange }))),
17
+ loaded && React.createElement(VerificationInformation, { id: props.id }))));
18
+ function onReload() {
19
+ setLoaded(false);
20
+ setTimeout(() => {
21
+ setLoaded(true);
22
+ }, 100);
23
+ }
24
+ async function onChange(checked) {
25
+ await store
26
+ .edit(props.id, { data: { Positive: checked }, error: "message" })
27
+ .then(() => onReload());
28
+ }
29
+ };
30
+ export default RiskMatchResult;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/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,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAElC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;QAC5C,6BAAK,SAAS,EAAC,mBAAmB;YACjC,6BAAK,SAAS,EAAC,OAAO,wBAAwB,CACzC;QACN,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,kBAAkB;YACjE,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU;gBAC1B,oBAAC,MAAM,IAAC,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAChD,CACN;QACN,MAAM,IAAI,oBAAC,uBAAuB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC/C,CACN,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,KAAK,UAAU,QAAQ,CAAC,OAAgB;QACvC,MAAM,KAAK;aACT,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;aACjE,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC1B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const RiskMatchSearchDialog: (props: {
3
+ id: string;
4
+ onCancel?: (() => void) | undefined;
5
+ onSearch?: ((params?: any) => void) | undefined;
6
+ }) => JSX.Element;
7
+ export default RiskMatchSearchDialog;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { Button, Form, Row, Space, Select } from "@voplus/antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useRiskProfileStore } from "../../../../../../data/risk-profile";
5
+ import Modal from "@voplus/morpho-ui/es/components/Modal";
6
+ const RiskMatchSearchDialog = (props) => {
7
+ const store = useRiskProfileStore();
8
+ return observe(() => (React.createElement(Modal, { title: "Risk Match Search Dialog", visible: true, destroyOnClose: true, footer: React.createElement(Row, { justify: "end" },
9
+ React.createElement(Space, null,
10
+ React.createElement(Button, { className: "btn-cancel", onClick: onCancel }, "Cancel"),
11
+ React.createElement(Button, { type: "primary", onClick: onSearch }, "Search"))) },
12
+ React.createElement("div", null,
13
+ React.createElement(Form, { layout: "vertical" },
14
+ React.createElement(Form.Item, { label: "Channel" },
15
+ React.createElement(Select, { defaultValue: "Acuris", disabled: true, onChange: handleChange },
16
+ React.createElement(Select.Option, { value: "Acuris" }, "Acuris"))))))));
17
+ function handleChange(value) {
18
+ console.log(`selected ${value}`);
19
+ }
20
+ async function onSearch() {
21
+ await store.search(props.id, { error: "message" }).then(() => onCancel());
22
+ }
23
+ function onCancel() {
24
+ if (props.onCancel)
25
+ props.onCancel();
26
+ }
27
+ };
28
+ export default RiskMatchSearchDialog;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAE1D,MAAM,qBAAqB,GAAG,CAAC,KAI9B,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IAEpC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,0BAA0B,EAChC,OAAO,QACP,cAAc,QACd,MAAM,EACL,oBAAC,GAAG,IAAC,OAAO,EAAC,KAAK;YACjB,oBAAC,KAAK;gBACL,oBAAC,MAAM,IAAC,SAAS,EAAC,YAAY,EAAC,OAAO,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