@mj-biz-apps/common-ng 5.33.2 → 5.35.0

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 (214) hide show
  1. package/LICENSE +183 -0
  2. package/README.md +12 -2
  3. package/dist/lib/components/address-editor/address-editor.component.d.ts +23 -0
  4. package/dist/lib/components/address-editor/address-editor.component.d.ts.map +1 -1
  5. package/dist/lib/components/address-editor/address-editor.component.js +207 -140
  6. package/dist/lib/components/address-editor/address-editor.component.js.map +1 -1
  7. package/dist/lib/components/contact-method-list/contact-method-list.component.d.ts +17 -10
  8. package/dist/lib/components/contact-method-list/contact-method-list.component.d.ts.map +1 -1
  9. package/dist/lib/components/contact-method-list/contact-method-list.component.js +104 -39
  10. package/dist/lib/components/contact-method-list/contact-method-list.component.js.map +1 -1
  11. package/dist/lib/components/identity-header/activity-identity.component.d.ts +36 -0
  12. package/dist/lib/components/identity-header/activity-identity.component.d.ts.map +1 -0
  13. package/dist/lib/components/identity-header/activity-identity.component.js +387 -0
  14. package/dist/lib/components/identity-header/activity-identity.component.js.map +1 -0
  15. package/dist/lib/components/identity-header/organization-identity.component.d.ts +26 -0
  16. package/dist/lib/components/identity-header/organization-identity.component.d.ts.map +1 -0
  17. package/dist/lib/components/identity-header/organization-identity.component.js +304 -0
  18. package/dist/lib/components/identity-header/organization-identity.component.js.map +1 -0
  19. package/dist/lib/components/identity-header/person-identity.component.d.ts +27 -0
  20. package/dist/lib/components/identity-header/person-identity.component.d.ts.map +1 -0
  21. package/dist/lib/components/identity-header/person-identity.component.js +330 -0
  22. package/dist/lib/components/identity-header/person-identity.component.js.map +1 -0
  23. package/dist/lib/components/org-hierarchy-tree/org-hierarchy-tree.component.d.ts +14 -82
  24. package/dist/lib/components/org-hierarchy-tree/org-hierarchy-tree.component.d.ts.map +1 -1
  25. package/dist/lib/components/org-hierarchy-tree/org-hierarchy-tree.component.js +138 -151
  26. package/dist/lib/components/org-hierarchy-tree/org-hierarchy-tree.component.js.map +1 -1
  27. package/dist/lib/components/relationship-graph/common-relationship-graph.component.d.ts +40 -0
  28. package/dist/lib/components/relationship-graph/common-relationship-graph.component.d.ts.map +1 -0
  29. package/dist/lib/components/relationship-graph/common-relationship-graph.component.js +403 -0
  30. package/dist/lib/components/relationship-graph/common-relationship-graph.component.js.map +1 -0
  31. package/dist/lib/components/relationship-list/relationship-list.component.d.ts +25 -55
  32. package/dist/lib/components/relationship-list/relationship-list.component.d.ts.map +1 -1
  33. package/dist/lib/components/relationship-list/relationship-list.component.js +509 -483
  34. package/dist/lib/components/relationship-list/relationship-list.component.js.map +1 -1
  35. package/dist/lib/custom/custom-forms.module.d.ts +29 -11
  36. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  37. package/dist/lib/custom/custom-forms.module.js +101 -29
  38. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  39. package/dist/lib/custom/panels/__tests__/activity-header.panel.test.d.ts +3 -0
  40. package/dist/lib/custom/panels/__tests__/activity-header.panel.test.d.ts.map +1 -0
  41. package/dist/lib/custom/panels/__tests__/activity-header.panel.test.js +123 -0
  42. package/dist/lib/custom/panels/__tests__/activity-header.panel.test.js.map +1 -0
  43. package/dist/lib/custom/panels/activity-content.panel.d.ts +30 -0
  44. package/dist/lib/custom/panels/activity-content.panel.d.ts.map +1 -0
  45. package/dist/lib/custom/panels/activity-content.panel.js +309 -0
  46. package/dist/lib/custom/panels/activity-content.panel.js.map +1 -0
  47. package/dist/lib/custom/panels/activity-files.panel.d.ts +33 -0
  48. package/dist/lib/custom/panels/activity-files.panel.d.ts.map +1 -0
  49. package/dist/lib/custom/panels/activity-files.panel.js +222 -0
  50. package/dist/lib/custom/panels/activity-files.panel.js.map +1 -0
  51. package/dist/lib/custom/panels/activity-header.panel.d.ts +11 -0
  52. package/dist/lib/custom/panels/activity-header.panel.d.ts.map +1 -0
  53. package/dist/lib/custom/panels/activity-header.panel.js +54 -0
  54. package/dist/lib/custom/panels/activity-header.panel.js.map +1 -0
  55. package/dist/lib/custom/panels/activity-hierarchy.panel.d.ts +22 -0
  56. package/dist/lib/custom/panels/activity-hierarchy.panel.d.ts.map +1 -0
  57. package/dist/lib/custom/panels/activity-hierarchy.panel.js +120 -0
  58. package/dist/lib/custom/panels/activity-hierarchy.panel.js.map +1 -0
  59. package/dist/lib/custom/panels/activity-links.panel.d.ts +33 -0
  60. package/dist/lib/custom/panels/activity-links.panel.d.ts.map +1 -0
  61. package/dist/lib/custom/panels/activity-links.panel.js +210 -0
  62. package/dist/lib/custom/panels/activity-links.panel.js.map +1 -0
  63. package/dist/lib/custom/panels/activity-type-hierarchy.panel.d.ts +22 -0
  64. package/dist/lib/custom/panels/activity-type-hierarchy.panel.d.ts.map +1 -0
  65. package/dist/lib/custom/panels/activity-type-hierarchy.panel.js +113 -0
  66. package/dist/lib/custom/panels/activity-type-hierarchy.panel.js.map +1 -0
  67. package/dist/lib/custom/panels/bizapps-form-panel.d.ts +19 -0
  68. package/dist/lib/custom/panels/bizapps-form-panel.d.ts.map +1 -0
  69. package/dist/lib/custom/panels/bizapps-form-panel.js +29 -0
  70. package/dist/lib/custom/panels/bizapps-form-panel.js.map +1 -0
  71. package/dist/lib/custom/panels/organization-addresses.panel.d.ts +12 -0
  72. package/dist/lib/custom/panels/organization-addresses.panel.d.ts.map +1 -0
  73. package/dist/lib/custom/panels/organization-addresses.panel.js +57 -0
  74. package/dist/lib/custom/panels/organization-addresses.panel.js.map +1 -0
  75. package/dist/lib/custom/panels/organization-contact-methods.panel.d.ts +11 -0
  76. package/dist/lib/custom/panels/organization-contact-methods.panel.d.ts.map +1 -0
  77. package/dist/lib/custom/panels/organization-contact-methods.panel.js +56 -0
  78. package/dist/lib/custom/panels/organization-contact-methods.panel.js.map +1 -0
  79. package/dist/lib/custom/panels/organization-header.panel.d.ts +11 -0
  80. package/dist/lib/custom/panels/organization-header.panel.d.ts.map +1 -0
  81. package/dist/lib/custom/panels/organization-header.panel.js +54 -0
  82. package/dist/lib/custom/panels/organization-header.panel.js.map +1 -0
  83. package/dist/lib/custom/panels/organization-hierarchy.panel.d.ts +12 -0
  84. package/dist/lib/custom/panels/organization-hierarchy.panel.d.ts.map +1 -0
  85. package/dist/lib/custom/panels/organization-hierarchy.panel.js +57 -0
  86. package/dist/lib/custom/panels/organization-hierarchy.panel.js.map +1 -0
  87. package/dist/lib/custom/panels/organization-relationships.panel.d.ts +17 -0
  88. package/dist/lib/custom/panels/organization-relationships.panel.d.ts.map +1 -0
  89. package/dist/lib/custom/panels/organization-relationships.panel.js +163 -0
  90. package/dist/lib/custom/panels/organization-relationships.panel.js.map +1 -0
  91. package/dist/lib/custom/panels/person-addresses.panel.d.ts +12 -0
  92. package/dist/lib/custom/panels/person-addresses.panel.d.ts.map +1 -0
  93. package/dist/lib/custom/panels/person-addresses.panel.js +57 -0
  94. package/dist/lib/custom/panels/person-addresses.panel.js.map +1 -0
  95. package/dist/lib/custom/panels/person-contact-methods.panel.d.ts +11 -0
  96. package/dist/lib/custom/panels/person-contact-methods.panel.d.ts.map +1 -0
  97. package/dist/lib/custom/panels/person-contact-methods.panel.js +56 -0
  98. package/dist/lib/custom/panels/person-contact-methods.panel.js.map +1 -0
  99. package/dist/lib/custom/panels/person-header.panel.d.ts +12 -0
  100. package/dist/lib/custom/panels/person-header.panel.d.ts.map +1 -0
  101. package/dist/lib/custom/panels/person-header.panel.js +55 -0
  102. package/dist/lib/custom/panels/person-header.panel.js.map +1 -0
  103. package/dist/lib/custom/panels/person-relationships.panel.d.ts +17 -0
  104. package/dist/lib/custom/panels/person-relationships.panel.d.ts.map +1 -0
  105. package/dist/lib/custom/panels/person-relationships.panel.js +163 -0
  106. package/dist/lib/custom/panels/person-relationships.panel.js.map +1 -0
  107. package/dist/lib/data/__tests__/directory-stats.test.d.ts +2 -0
  108. package/dist/lib/data/__tests__/directory-stats.test.d.ts.map +1 -0
  109. package/dist/lib/data/__tests__/directory-stats.test.js +79 -0
  110. package/dist/lib/data/__tests__/directory-stats.test.js.map +1 -0
  111. package/dist/lib/data/directory-queries.d.ts +10 -0
  112. package/dist/lib/data/directory-queries.d.ts.map +1 -0
  113. package/dist/lib/data/directory-queries.js +104 -0
  114. package/dist/lib/data/directory-queries.js.map +1 -0
  115. package/dist/lib/data/directory-stats.d.ts +24 -0
  116. package/dist/lib/data/directory-stats.d.ts.map +1 -0
  117. package/dist/lib/data/directory-stats.js +137 -0
  118. package/dist/lib/data/directory-stats.js.map +1 -0
  119. package/dist/lib/data/directory-types.d.ts +33 -0
  120. package/dist/lib/data/directory-types.d.ts.map +1 -0
  121. package/dist/lib/data/directory-types.js +2 -0
  122. package/dist/lib/data/directory-types.js.map +1 -0
  123. package/dist/lib/data/entity-names.d.ts +21 -0
  124. package/dist/lib/data/entity-names.d.ts.map +1 -0
  125. package/dist/lib/data/entity-names.js +21 -0
  126. package/dist/lib/data/entity-names.js.map +1 -0
  127. package/dist/lib/generated/Entities/mjBizAppsCommonActivity/mjbizappscommonactivity.form.component.d.ts +10 -0
  128. package/dist/lib/generated/Entities/mjBizAppsCommonActivity/mjbizappscommonactivity.form.component.d.ts.map +1 -0
  129. package/dist/lib/generated/Entities/mjBizAppsCommonActivity/mjbizappscommonactivity.form.component.js +210 -0
  130. package/dist/lib/generated/Entities/mjBizAppsCommonActivity/mjbizappscommonactivity.form.component.js.map +1 -0
  131. package/dist/lib/generated/Entities/mjBizAppsCommonActivityFile/mjbizappscommonactivityfile.form.component.d.ts +10 -0
  132. package/dist/lib/generated/Entities/mjBizAppsCommonActivityFile/mjbizappscommonactivityfile.form.component.d.ts.map +1 -0
  133. package/dist/lib/generated/Entities/mjBizAppsCommonActivityFile/mjbizappscommonactivityfile.form.component.js +63 -0
  134. package/dist/lib/generated/Entities/mjBizAppsCommonActivityFile/mjbizappscommonactivityfile.form.component.js.map +1 -0
  135. package/dist/lib/generated/Entities/mjBizAppsCommonActivityLink/mjbizappscommonactivitylink.form.component.d.ts +10 -0
  136. package/dist/lib/generated/Entities/mjBizAppsCommonActivityLink/mjbizappscommonactivitylink.form.component.d.ts.map +1 -0
  137. package/dist/lib/generated/Entities/mjBizAppsCommonActivityLink/mjbizappscommonactivitylink.form.component.js +69 -0
  138. package/dist/lib/generated/Entities/mjBizAppsCommonActivityLink/mjbizappscommonactivitylink.form.component.js.map +1 -0
  139. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncConnection/mjbizappscommonactivitysyncconnection.form.component.d.ts +10 -0
  140. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncConnection/mjbizappscommonactivitysyncconnection.form.component.d.ts.map +1 -0
  141. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncConnection/mjbizappscommonactivitysyncconnection.form.component.js +112 -0
  142. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncConnection/mjbizappscommonactivitysyncconnection.form.component.js.map +1 -0
  143. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncRule/mjbizappscommonactivitysyncrule.form.component.d.ts +10 -0
  144. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncRule/mjbizappscommonactivitysyncrule.form.component.d.ts.map +1 -0
  145. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncRule/mjbizappscommonactivitysyncrule.form.component.js +77 -0
  146. package/dist/lib/generated/Entities/mjBizAppsCommonActivitySyncRule/mjbizappscommonactivitysyncrule.form.component.js.map +1 -0
  147. package/dist/lib/generated/Entities/mjBizAppsCommonActivityType/mjbizappscommonactivitytype.form.component.d.ts +10 -0
  148. package/dist/lib/generated/Entities/mjBizAppsCommonActivityType/mjbizappscommonactivitytype.form.component.d.ts.map +1 -0
  149. package/dist/lib/generated/Entities/mjBizAppsCommonActivityType/mjbizappscommonactivitytype.form.component.js +156 -0
  150. package/dist/lib/generated/Entities/mjBizAppsCommonActivityType/mjbizappscommonactivitytype.form.component.js.map +1 -0
  151. package/dist/lib/generated/Entities/mjBizAppsCommonAddress/mjbizappscommonaddress.form.component.d.ts.map +1 -1
  152. package/dist/lib/generated/Entities/mjBizAppsCommonAddress/mjbizappscommonaddress.form.component.js +24 -6
  153. package/dist/lib/generated/Entities/mjBizAppsCommonAddress/mjbizappscommonaddress.form.component.js.map +1 -1
  154. package/dist/lib/generated/Entities/mjBizAppsCommonAddressType/mjbizappscommonaddresstype.form.component.js +2 -2
  155. package/dist/lib/generated/Entities/mjBizAppsCommonAddressType/mjbizappscommonaddresstype.form.component.js.map +1 -1
  156. package/dist/lib/generated/Entities/mjBizAppsCommonContactMethod/mjbizappscommoncontactmethod.form.component.d.ts.map +1 -1
  157. package/dist/lib/generated/Entities/mjBizAppsCommonContactMethod/mjbizappscommoncontactmethod.form.component.js +5 -9
  158. package/dist/lib/generated/Entities/mjBizAppsCommonContactMethod/mjbizappscommoncontactmethod.form.component.js.map +1 -1
  159. package/dist/lib/generated/Entities/mjBizAppsCommonContactType/mjbizappscommoncontacttype.form.component.js +2 -2
  160. package/dist/lib/generated/Entities/mjBizAppsCommonContactType/mjbizappscommoncontacttype.form.component.js.map +1 -1
  161. package/dist/lib/generated/Entities/mjBizAppsCommonOrganization/mjbizappscommonorganization.form.component.d.ts.map +1 -1
  162. package/dist/lib/generated/Entities/mjBizAppsCommonOrganization/mjbizappscommonorganization.form.component.js +83 -37
  163. package/dist/lib/generated/Entities/mjBizAppsCommonOrganization/mjbizappscommonorganization.form.component.js.map +1 -1
  164. package/dist/lib/generated/Entities/mjBizAppsCommonOrganizationType/mjbizappscommonorganizationtype.form.component.js +2 -2
  165. package/dist/lib/generated/Entities/mjBizAppsCommonOrganizationType/mjbizappscommonorganizationtype.form.component.js.map +1 -1
  166. package/dist/lib/generated/Entities/mjBizAppsCommonPerson/mjbizappscommonperson.form.component.d.ts.map +1 -1
  167. package/dist/lib/generated/Entities/mjBizAppsCommonPerson/mjbizappscommonperson.form.component.js +73 -35
  168. package/dist/lib/generated/Entities/mjBizAppsCommonPerson/mjbizappscommonperson.form.component.js.map +1 -1
  169. package/dist/lib/generated/Entities/mjBizAppsCommonRelationship/mjbizappscommonrelationship.form.component.d.ts.map +1 -1
  170. package/dist/lib/generated/Entities/mjBizAppsCommonRelationship/mjbizappscommonrelationship.form.component.js +5 -9
  171. package/dist/lib/generated/Entities/mjBizAppsCommonRelationship/mjbizappscommonrelationship.form.component.js.map +1 -1
  172. package/dist/lib/generated/Entities/mjBizAppsCommonRelationshipType/mjbizappscommonrelationshiptype.form.component.js +2 -2
  173. package/dist/lib/generated/Entities/mjBizAppsCommonRelationshipType/mjbizappscommonrelationshiptype.form.component.js.map +1 -1
  174. package/dist/lib/generated/generated-forms.module.d.ts +22 -16
  175. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
  176. package/dist/lib/generated/generated-forms.module.js +19 -1
  177. package/dist/lib/generated/generated-forms.module.js.map +1 -1
  178. package/dist/lib/open-record.d.ts +5 -0
  179. package/dist/lib/open-record.d.ts.map +1 -0
  180. package/dist/lib/open-record.js +15 -0
  181. package/dist/lib/open-record.js.map +1 -0
  182. package/dist/lib/pages/activities-dashboard.page.d.ts +53 -0
  183. package/dist/lib/pages/activities-dashboard.page.d.ts.map +1 -0
  184. package/dist/lib/pages/activities-dashboard.page.js +663 -0
  185. package/dist/lib/pages/activities-dashboard.page.js.map +1 -0
  186. package/dist/lib/pages/common-dashboard.page.d.ts +42 -0
  187. package/dist/lib/pages/common-dashboard.page.d.ts.map +1 -0
  188. package/dist/lib/pages/common-dashboard.page.js +662 -0
  189. package/dist/lib/pages/common-dashboard.page.js.map +1 -0
  190. package/dist/lib/pages/organizations-list.page.d.ts +19 -0
  191. package/dist/lib/pages/organizations-list.page.d.ts.map +1 -0
  192. package/dist/lib/pages/organizations-list.page.js +202 -0
  193. package/dist/lib/pages/organizations-list.page.js.map +1 -0
  194. package/dist/lib/pages/people-list.page.d.ts +21 -0
  195. package/dist/lib/pages/people-list.page.d.ts.map +1 -0
  196. package/dist/lib/pages/people-list.page.js +209 -0
  197. package/dist/lib/pages/people-list.page.js.map +1 -0
  198. package/dist/lib/sections/common-sections.component.d.ts +43 -0
  199. package/dist/lib/sections/common-sections.component.d.ts.map +1 -0
  200. package/dist/lib/sections/common-sections.component.js +167 -0
  201. package/dist/lib/sections/common-sections.component.js.map +1 -0
  202. package/dist/public-api.d.ts +16 -0
  203. package/dist/public-api.d.ts.map +1 -1
  204. package/dist/public-api.js +20 -2
  205. package/dist/public-api.js.map +1 -1
  206. package/package.json +19 -12
  207. package/dist/lib/custom/Organization/organization-form.component.d.ts +0 -24
  208. package/dist/lib/custom/Organization/organization-form.component.d.ts.map +0 -1
  209. package/dist/lib/custom/Organization/organization-form.component.js +0 -244
  210. package/dist/lib/custom/Organization/organization-form.component.js.map +0 -1
  211. package/dist/lib/custom/Person/person-form.component.d.ts +0 -24
  212. package/dist/lib/custom/Person/person-form.component.d.ts.map +0 -1
  213. package/dist/lib/custom/Person/person-form.component.js +0 -229
  214. package/dist/lib/custom/Person/person-form.component.js.map +0 -1
@@ -0,0 +1,403 @@
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, Output, EventEmitter, inject } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { RunView, CompositeKey } from '@memberjunction/core';
4
+ import { UserInfoEngine } from '@memberjunction/core-entities';
5
+ import { GraphViewComponent } from '@memberjunction/ng-graph-view';
6
+ import { COMMON_ENTITIES } from '../../data/entity-names';
7
+ import * as i0 from "@angular/core";
8
+ function CommonRelationshipGraphComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
9
+ i0.ɵɵelementStart(0, "div", 1);
10
+ i0.ɵɵelement(1, "i", 4);
11
+ i0.ɵɵelementStart(2, "span");
12
+ i0.ɵɵtext(3, "Loading relationship graph...");
13
+ i0.ɵɵelementEnd()();
14
+ } }
15
+ function CommonRelationshipGraphComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
16
+ i0.ɵɵelementStart(0, "div", 2);
17
+ i0.ɵɵelement(1, "i", 5);
18
+ i0.ɵɵelementStart(2, "p");
19
+ i0.ɵɵtext(3, "No mapped relationships found for this record.");
20
+ i0.ɵɵelementEnd()();
21
+ } }
22
+ function CommonRelationshipGraphComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
23
+ const _r1 = i0.ɵɵgetCurrentView();
24
+ i0.ɵɵelementStart(0, "mj-graph-view", 6);
25
+ i0.ɵɵlistener("LayoutChanged", function CommonRelationshipGraphComponent_Conditional_3_Template_mj_graph_view_LayoutChanged_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnLayoutChanged($event)); })("ViewportTransform", function CommonRelationshipGraphComponent_Conditional_3_Template_mj_graph_view_ViewportTransform_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnViewportTransform($event)); })("HopExpanded", function CommonRelationshipGraphComponent_Conditional_3_Template_mj_graph_view_HopExpanded_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHopExpanded($event)); })("NodeSelected", function CommonRelationshipGraphComponent_Conditional_3_Template_mj_graph_view_NodeSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNodeSelected($event)); })("NodeNavigated", function CommonRelationshipGraphComponent_Conditional_3_Template_mj_graph_view_NodeNavigated_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNodeNavigated($event)); });
26
+ i0.ɵɵelementEnd();
27
+ } if (rf & 2) {
28
+ const ctx_r1 = i0.ɵɵnextContext();
29
+ i0.ɵɵproperty("Nodes", ctx_r1.Nodes)("Edges", ctx_r1.Edges)("Categories", ctx_r1.GraphCategories)("FocalNodeId", ctx_r1.FocalNodeID)("LayoutMode", ctx_r1.LayoutMode);
30
+ } }
31
+ /**
32
+ * `<bizapps-relationship-graph>` — Entity-aware relationship graph viewer for BizApps Common.
33
+ *
34
+ * Visualizes interconnections between People, Organizations, and linked roles.
35
+ * Performs smart, bounded queries to load local neighborhoods without overwhelming the database.
36
+ */
37
+ export class CommonRelationshipGraphComponent {
38
+ cdr = inject(ChangeDetectorRef);
39
+ PersonID;
40
+ OrganizationID;
41
+ Height = '100%';
42
+ Navigate = new EventEmitter();
43
+ Nodes = [];
44
+ Edges = [];
45
+ FocalNodeID;
46
+ LayoutMode = 'force';
47
+ IsLoading = false;
48
+ GraphCategories = [
49
+ { Category: 'person', Label: 'Person', Color: '#10b981', IconClass: 'fa-solid fa-user' },
50
+ { Category: 'organization', Label: 'Organization', Color: '#38bdf8', IconClass: 'fa-solid fa-building' }
51
+ ];
52
+ static graphCache = new Map();
53
+ get PrefsKey() {
54
+ return this.PersonID
55
+ ? 'mj.bizapps.common.person.graphPrefs'
56
+ : 'mj.bizapps.common.organization.graphPrefs';
57
+ }
58
+ ngOnInit() {
59
+ this.LoadPrefs();
60
+ this.LoadGraphData();
61
+ }
62
+ LoadPrefs() {
63
+ const raw = UserInfoEngine.Instance.GetSetting(this.PrefsKey);
64
+ if (raw) {
65
+ try {
66
+ const parsed = JSON.parse(raw);
67
+ if (parsed.LayoutMode === 'force' || parsed.LayoutMode === 'circular') {
68
+ this.LayoutMode = parsed.LayoutMode;
69
+ }
70
+ }
71
+ catch (e) {
72
+ // Keep default
73
+ }
74
+ }
75
+ }
76
+ OnLayoutChanged(event) {
77
+ this.LayoutMode = event.NewMode;
78
+ this.SavePrefs();
79
+ }
80
+ OnViewportTransform(event) {
81
+ this.SavePrefs(event.Transform);
82
+ }
83
+ SavePrefs(transform) {
84
+ const prefs = {
85
+ LayoutMode: this.LayoutMode,
86
+ ...(transform ? { Scale: transform.Scale, PanX: transform.PanX, PanY: transform.PanY } : {})
87
+ };
88
+ UserInfoEngine.Instance.SetSettingDebounced(this.PrefsKey, JSON.stringify(prefs));
89
+ }
90
+ ngOnChanges(changes) {
91
+ if (changes['PersonID'] || changes['OrganizationID']) {
92
+ this.LoadGraphData();
93
+ }
94
+ }
95
+ async LoadGraphData() {
96
+ const cacheKey = this.PersonID ? `person:${this.PersonID}` : (this.OrganizationID ? `org:${this.OrganizationID}` : '');
97
+ if (cacheKey && CommonRelationshipGraphComponent.graphCache.has(cacheKey)) {
98
+ const cached = CommonRelationshipGraphComponent.graphCache.get(cacheKey);
99
+ this.Nodes = [...cached.nodes];
100
+ this.Edges = [...cached.edges];
101
+ this.FocalNodeID = cacheKey;
102
+ this.cdr.markForCheck();
103
+ return;
104
+ }
105
+ this.IsLoading = true;
106
+ this.cdr.markForCheck();
107
+ try {
108
+ const rv = new RunView();
109
+ let filter = '';
110
+ if (this.PersonID) {
111
+ this.FocalNodeID = `person:${this.PersonID}`;
112
+ filter = `FromPersonID = '${this.PersonID}' OR ToPersonID = '${this.PersonID}'`;
113
+ }
114
+ else if (this.OrganizationID) {
115
+ this.FocalNodeID = `org:${this.OrganizationID}`;
116
+ filter = `FromOrganizationID = '${this.OrganizationID}' OR ToOrganizationID = '${this.OrganizationID}'`;
117
+ }
118
+ const result = await rv.RunView({
119
+ EntityName: COMMON_ENTITIES.Relationship,
120
+ ExtraFilter: filter || undefined,
121
+ Fields: ['ID', 'FromPersonID', 'ToPersonID', 'FromOrganizationID', 'ToOrganizationID', 'FromPerson', 'ToPerson', 'FromOrganization', 'ToOrganization', 'RelationshipType', 'Title'],
122
+ OrderBy: '__mj_CreatedAt DESC',
123
+ MaxRows: 60,
124
+ ResultType: 'simple'
125
+ });
126
+ if (result.Success && result.Results) {
127
+ this.BuildGraphFromRelationships(result.Results);
128
+ if (cacheKey) {
129
+ CommonRelationshipGraphComponent.graphCache.set(cacheKey, {
130
+ nodes: [...this.Nodes],
131
+ edges: [...this.Edges]
132
+ });
133
+ }
134
+ }
135
+ }
136
+ catch (e) {
137
+ console.error('Failed to load relationship graph:', e);
138
+ }
139
+ finally {
140
+ this.IsLoading = false;
141
+ this.cdr.markForCheck();
142
+ }
143
+ }
144
+ BuildGraphFromRelationships(rows) {
145
+ const nodeMap = new Map();
146
+ const edges = [];
147
+ // Determine focal label from rows if available
148
+ let focalLabel = this.PersonID ? 'Person' : 'Organization';
149
+ if (this.PersonID) {
150
+ const match = rows.find(r => r.FromPersonID === this.PersonID || r.ToPersonID === this.PersonID);
151
+ if (match) {
152
+ focalLabel = (match.FromPersonID === this.PersonID ? match.FromPerson : match.ToPerson) || 'Person';
153
+ }
154
+ }
155
+ else if (this.OrganizationID) {
156
+ const match = rows.find(r => r.FromOrganizationID === this.OrganizationID || r.ToOrganizationID === this.OrganizationID);
157
+ if (match) {
158
+ focalLabel = (match.FromOrganizationID === this.OrganizationID ? match.FromOrganization : match.ToOrganization) || 'Organization';
159
+ }
160
+ }
161
+ // Ensure focal node exists if specified
162
+ if (this.PersonID && !nodeMap.has(this.FocalNodeID)) {
163
+ nodeMap.set(this.FocalNodeID, {
164
+ ID: this.FocalNodeID,
165
+ Label: focalLabel,
166
+ Category: 'person',
167
+ Radius: 30,
168
+ HopDistance: 0,
169
+ Data: { EntityName: COMMON_ENTITIES.Person, ID: this.PersonID }
170
+ });
171
+ }
172
+ else if (this.OrganizationID && !nodeMap.has(this.FocalNodeID)) {
173
+ nodeMap.set(this.FocalNodeID, {
174
+ ID: this.FocalNodeID,
175
+ Label: focalLabel,
176
+ Category: 'organization',
177
+ Radius: 30,
178
+ HopDistance: 0,
179
+ Data: { EntityName: COMMON_ENTITIES.Organization, ID: this.OrganizationID }
180
+ });
181
+ }
182
+ for (const r of rows) {
183
+ let sourceId = '';
184
+ let targetId = '';
185
+ // From Entity
186
+ if (r.FromPersonID) {
187
+ sourceId = `person:${r.FromPersonID}`;
188
+ if (!nodeMap.has(sourceId)) {
189
+ nodeMap.set(sourceId, {
190
+ ID: sourceId,
191
+ Label: r.FromPerson || 'Person',
192
+ Category: 'person',
193
+ Data: { EntityName: COMMON_ENTITIES.Person, ID: r.FromPersonID }
194
+ });
195
+ }
196
+ }
197
+ else if (r.FromOrganizationID) {
198
+ sourceId = `org:${r.FromOrganizationID}`;
199
+ if (!nodeMap.has(sourceId)) {
200
+ nodeMap.set(sourceId, {
201
+ ID: sourceId,
202
+ Label: r.FromOrganization || 'Organization',
203
+ Category: 'organization',
204
+ Data: { EntityName: COMMON_ENTITIES.Organization, ID: r.FromOrganizationID }
205
+ });
206
+ }
207
+ }
208
+ // To Entity
209
+ if (r.ToPersonID) {
210
+ targetId = `person:${r.ToPersonID}`;
211
+ if (!nodeMap.has(targetId)) {
212
+ nodeMap.set(targetId, {
213
+ ID: targetId,
214
+ Label: r.ToPerson || 'Person',
215
+ Category: 'person',
216
+ Data: { EntityName: COMMON_ENTITIES.Person, ID: r.ToPersonID }
217
+ });
218
+ }
219
+ }
220
+ else if (r.ToOrganizationID) {
221
+ targetId = `org:${r.ToOrganizationID}`;
222
+ if (!nodeMap.has(targetId)) {
223
+ nodeMap.set(targetId, {
224
+ ID: targetId,
225
+ Label: r.ToOrganization || 'Organization',
226
+ Category: 'organization',
227
+ Data: { EntityName: COMMON_ENTITIES.Organization, ID: r.ToOrganizationID }
228
+ });
229
+ }
230
+ }
231
+ if (sourceId && targetId) {
232
+ edges.push({
233
+ ID: r.ID,
234
+ SourceID: sourceId,
235
+ TargetID: targetId,
236
+ Label: r.RelationshipType || r.Title || 'Related',
237
+ Direction: 'directed',
238
+ Data: { EntityName: COMMON_ENTITIES.Relationship, ID: r.ID }
239
+ });
240
+ }
241
+ }
242
+ this.Nodes = Array.from(nodeMap.values());
243
+ this.Edges = edges;
244
+ }
245
+ async OnHopExpanded(event) {
246
+ const rawId = event.Node.ID.split(':')[1];
247
+ const isPerson = event.Node.Category === 'person';
248
+ if (!rawId)
249
+ return;
250
+ try {
251
+ const rv = new RunView();
252
+ const filter = isPerson
253
+ ? `FromPersonID = '${rawId}' OR ToPersonID = '${rawId}'`
254
+ : `FromOrganizationID = '${rawId}' OR ToOrganizationID = '${rawId}'`;
255
+ const result = await rv.RunView({
256
+ EntityName: COMMON_ENTITIES.Relationship,
257
+ ExtraFilter: filter,
258
+ OrderBy: '__mj_CreatedAt DESC',
259
+ MaxRows: 30,
260
+ ResultType: 'simple'
261
+ });
262
+ if (result.Success && result.Results) {
263
+ this.AppendIncrementalRelationships(result.Results, event.CurrentDepth);
264
+ }
265
+ }
266
+ catch (e) {
267
+ console.error('Failed to expand graph hops:', e);
268
+ }
269
+ }
270
+ AppendIncrementalRelationships(rows, depth) {
271
+ const nodeMap = new Map(this.Nodes.map(n => [n.ID, n]));
272
+ const edgeMap = new Map(this.Edges.map(e => [e.ID, e]));
273
+ for (const r of rows) {
274
+ let sourceId = '';
275
+ let targetId = '';
276
+ if (r.FromPersonID) {
277
+ sourceId = `person:${r.FromPersonID}`;
278
+ if (!nodeMap.has(sourceId)) {
279
+ nodeMap.set(sourceId, {
280
+ ID: sourceId,
281
+ Label: r.FromPerson || 'Person',
282
+ Category: 'person',
283
+ HopDistance: depth,
284
+ Data: { EntityName: COMMON_ENTITIES.Person, ID: r.FromPersonID }
285
+ });
286
+ }
287
+ }
288
+ else if (r.FromOrganizationID) {
289
+ sourceId = `org:${r.FromOrganizationID}`;
290
+ if (!nodeMap.has(sourceId)) {
291
+ nodeMap.set(sourceId, {
292
+ ID: sourceId,
293
+ Label: r.FromOrganization || 'Organization',
294
+ Category: 'organization',
295
+ HopDistance: depth,
296
+ Data: { EntityName: COMMON_ENTITIES.Organization, ID: r.FromOrganizationID }
297
+ });
298
+ }
299
+ }
300
+ if (r.ToPersonID) {
301
+ targetId = `person:${r.ToPersonID}`;
302
+ if (!nodeMap.has(targetId)) {
303
+ nodeMap.set(targetId, {
304
+ ID: targetId,
305
+ Label: r.ToPerson || 'Person',
306
+ Category: 'person',
307
+ HopDistance: depth,
308
+ Data: { EntityName: COMMON_ENTITIES.Person, ID: r.ToPersonID }
309
+ });
310
+ }
311
+ }
312
+ else if (r.ToOrganizationID) {
313
+ targetId = `org:${r.ToOrganizationID}`;
314
+ if (!nodeMap.has(targetId)) {
315
+ nodeMap.set(targetId, {
316
+ ID: targetId,
317
+ Label: r.ToOrganization || 'Organization',
318
+ Category: 'organization',
319
+ HopDistance: depth,
320
+ Data: { EntityName: COMMON_ENTITIES.Organization, ID: r.ToOrganizationID }
321
+ });
322
+ }
323
+ }
324
+ if (sourceId && targetId && !edgeMap.has(r.ID)) {
325
+ edgeMap.set(r.ID, {
326
+ ID: r.ID,
327
+ SourceID: sourceId,
328
+ TargetID: targetId,
329
+ Label: r.RelationshipType || r.Title || 'Related',
330
+ Direction: 'directed',
331
+ Data: { EntityName: COMMON_ENTITIES.Relationship, ID: r.ID }
332
+ });
333
+ }
334
+ }
335
+ this.Nodes = Array.from(nodeMap.values());
336
+ this.Edges = Array.from(edgeMap.values());
337
+ this.cdr.markForCheck();
338
+ }
339
+ OnNodeSelected(_event) {
340
+ // Telemetry or UI hook if needed
341
+ }
342
+ OnNodeNavigated(event) {
343
+ const entityName = event.EntityName || (event.Node?.Category === 'person' ? COMMON_ENTITIES.Person : COMMON_ENTITIES.Organization);
344
+ const pk = CompositeKey.FromID(event.RecordID);
345
+ this.Navigate.emit({
346
+ Kind: 'record',
347
+ EntityName: entityName,
348
+ PrimaryKey: pk,
349
+ OpenInNewTab: false
350
+ });
351
+ }
352
+ static ɵfac = function CommonRelationshipGraphComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CommonRelationshipGraphComponent)(); };
353
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CommonRelationshipGraphComponent, selectors: [["bizapps-relationship-graph"]], inputs: { PersonID: "PersonID", OrganizationID: "OrganizationID", Height: "Height" }, outputs: { Navigate: "Navigate" }, features: [i0.ɵɵNgOnChangesFeature], decls: 4, vars: 3, consts: [[1, "bizapps-rel-graph-container"], [1, "bizapps-rel-graph-loading"], [1, "bizapps-rel-graph-empty"], [3, "Nodes", "Edges", "Categories", "FocalNodeId", "LayoutMode"], [1, "fa-solid", "fa-spinner", "fa-spin", 2, "font-size", "24px", "color", "var(--mj-brand-primary, #38bdf8)"], [1, "fa-solid", "fa-circle-nodes", 2, "font-size", "32px", "color", "var(--mj-text-muted, #64748b)"], [3, "LayoutChanged", "ViewportTransform", "HopExpanded", "NodeSelected", "NodeNavigated", "Nodes", "Edges", "Categories", "FocalNodeId", "LayoutMode"]], template: function CommonRelationshipGraphComponent_Template(rf, ctx) { if (rf & 1) {
354
+ i0.ɵɵelementStart(0, "div", 0);
355
+ i0.ɵɵconditionalCreate(1, CommonRelationshipGraphComponent_Conditional_1_Template, 4, 0, "div", 1)(2, CommonRelationshipGraphComponent_Conditional_2_Template, 4, 0, "div", 2)(3, CommonRelationshipGraphComponent_Conditional_3_Template, 1, 5, "mj-graph-view", 3);
356
+ i0.ɵɵelementEnd();
357
+ } if (rf & 2) {
358
+ i0.ɵɵstyleProp("height", ctx.Height);
359
+ i0.ɵɵadvance();
360
+ i0.ɵɵconditional(ctx.IsLoading ? 1 : ctx.Nodes.length === 0 ? 2 : 3);
361
+ } }, dependencies: [CommonModule, GraphViewComponent], styles: ["[_nghost-%COMP%] {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .bizapps-rel-graph-container[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n min-height: 480px;\n position: relative;\n }\n\n .bizapps-rel-graph-loading[_ngcontent-%COMP%], \n .bizapps-rel-graph-empty[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n height: 100%;\n min-height: 360px;\n background: var(--mj-bg-surface-sunken, #0b1220);\n border-radius: 12px;\n border: 1px solid var(--mj-border-default, #223254);\n color: var(--mj-text-secondary, #94a3b8);\n font-size: 13px;\n }"], changeDetection: 0 });
362
+ }
363
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommonRelationshipGraphComponent, [{
364
+ type: Component,
365
+ args: [{ selector: 'bizapps-relationship-graph', standalone: true, imports: [CommonModule, GraphViewComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
366
+ <div class="bizapps-rel-graph-container" [style.height]="Height">
367
+ @if (IsLoading) {
368
+ <div class="bizapps-rel-graph-loading">
369
+ <i class="fa-solid fa-spinner fa-spin" style="font-size: 24px; color: var(--mj-brand-primary, #38bdf8);"></i>
370
+ <span>Loading relationship graph...</span>
371
+ </div>
372
+ } @else if (Nodes.length === 0) {
373
+ <div class="bizapps-rel-graph-empty">
374
+ <i class="fa-solid fa-circle-nodes" style="font-size: 32px; color: var(--mj-text-muted, #64748b);"></i>
375
+ <p>No mapped relationships found for this record.</p>
376
+ </div>
377
+ } @else {
378
+ <mj-graph-view
379
+ [Nodes]="Nodes"
380
+ [Edges]="Edges"
381
+ [Categories]="GraphCategories"
382
+ [FocalNodeId]="FocalNodeID"
383
+ [LayoutMode]="LayoutMode"
384
+ (LayoutChanged)="OnLayoutChanged($event)"
385
+ (ViewportTransform)="OnViewportTransform($event)"
386
+ (HopExpanded)="OnHopExpanded($event)"
387
+ (NodeSelected)="OnNodeSelected($event)"
388
+ (NodeNavigated)="OnNodeNavigated($event)">
389
+ </mj-graph-view>
390
+ }
391
+ </div>
392
+ `, styles: ["\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .bizapps-rel-graph-container {\n width: 100%;\n height: 100%;\n min-height: 480px;\n position: relative;\n }\n\n .bizapps-rel-graph-loading,\n .bizapps-rel-graph-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n height: 100%;\n min-height: 360px;\n background: var(--mj-bg-surface-sunken, #0b1220);\n border-radius: 12px;\n border: 1px solid var(--mj-border-default, #223254);\n color: var(--mj-text-secondary, #94a3b8);\n font-size: 13px;\n }\n "] }]
393
+ }], null, { PersonID: [{
394
+ type: Input
395
+ }], OrganizationID: [{
396
+ type: Input
397
+ }], Height: [{
398
+ type: Input
399
+ }], Navigate: [{
400
+ type: Output
401
+ }] }); })();
402
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CommonRelationshipGraphComponent, { className: "CommonRelationshipGraphComponent", filePath: "lib/components/relationship-graph/common-relationship-graph.component.ts", lineNumber: 102 }); })();
403
+ //# sourceMappingURL=common-relationship-graph.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-relationship-graph.component.js","sourceRoot":"","sources":["../../../../src/lib/components/relationship-graph/common-relationship-graph.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAIZ,MAAM,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EACH,kBAAkB,EAUrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;;;IAiB1C,8BAAuC;IACnC,uBAA6G;IAC7G,4BAAM;IAAA,6CAA6B;IACvC,AADuC,iBAAO,EACxC;;;IAEN,8BAAqC;IACjC,uBAAuG;IACvG,yBAAG;IAAA,8DAA8C;IACrD,AADqD,iBAAI,EACnD;;;;IAEN,wCAU8C;IAA1C,AADA,AADA,AADA,AADA,iOAAiB,8BAAuB,KAAC,4NACpB,kCAA2B,KAAC,gNAClC,4BAAqB,KAAC,kNACrB,6BAAsB,KAAC,oNACtB,8BAAuB,KAAC;IAC7C,iBAAgB;;;IANZ,AADA,AADA,AADA,AADA,oCAAe,uBACA,sCACe,mCACH,iCACF;;AA7B7C;;;;;GAKG;AAiEH,MAAM,OAAO,gCAAgC;IACjC,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAExB,QAAQ,CAAU;IAClB,cAAc,CAAU;IACxB,MAAM,GAAG,MAAM,CAAC;IAEf,QAAQ,GAAG,IAAI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AzBmC,oCAAuB;YAC5D,cAuBC;YAvBD,oEAuBC;4BA3BC,YAAY,EAAE,kBAAkB;;iFA6DjC,gCAAgC;cAhE5C,SAAS;2BACI,4BAA4B,cAC1B,IAAI,WACP,CAAC,YAAY,EAAE,kBAAkB,CAAC,mBAC1B,uBAAuB,CAAC,MAAM,YACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BT;;kBAmCA,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFAPE,gCAAgC"}
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { RelatedRecordCollection } from '@memberjunction/core';
2
3
  import { FormNavigationEvent } from '@memberjunction/ng-base-forms';
3
4
  import { mjBizAppsCommonRelationshipEntity, mjBizAppsCommonRelationshipTypeEntity } from '@mj-biz-apps/common-entities';
4
5
  import * as i0 from "@angular/core";
@@ -52,18 +53,6 @@ interface CategoryGroup {
52
53
  /** The relationship display items belonging to this category. */
53
54
  Items: RelationshipDisplayItem[];
54
55
  }
55
- /**
56
- * Represents a single result from the target entity search typeahead,
57
- * used when adding a new relationship.
58
- */
59
- interface SearchResult {
60
- /** The primary key ID of the matched Person or Organization. */
61
- ID: string;
62
- /** The display name of the matched record. */
63
- Name: string;
64
- /** Additional detail shown below the name (e.g., Title for people, Type for orgs). */
65
- Detail: string;
66
- }
67
56
  /**
68
57
  * Form model for the "Add Relationship" panel.
69
58
  *
@@ -133,6 +122,8 @@ interface EditFormData {
133
122
  */
134
123
  export declare class RelationshipListComponent {
135
124
  private cdr;
125
+ /** Active draft relationship object used for the Add form link fields. */
126
+ DraftRelationship: mjBizAppsCommonRelationshipEntity | null;
136
127
  /**
137
128
  * Emitted when the user clicks a relationship target name to navigate
138
129
  * to that Person or Organization record.
@@ -160,8 +151,17 @@ export declare class RelationshipListComponent {
160
151
  EditMode: boolean;
161
152
  /** Emitted after any mutation (save, delete, end-relationship) so the parent can refresh derived data. */
162
153
  DataChanged: EventEmitter<void>;
154
+ private _collection?;
155
+ private _incomingRelationships;
163
156
  private _personID;
164
157
  private _organizationID;
158
+ /**
159
+ * Optional strongly-typed RelatedRecordCollection from the parent Person or Organization entity.
160
+ * When provided, outgoing relationships are managed directly in the collection and persist atomically
161
+ * when the parent entity is saved.
162
+ */
163
+ set Collection(value: RelatedRecordCollection<mjBizAppsCommonRelationshipEntity> | undefined);
164
+ get Collection(): RelatedRecordCollection<mjBizAppsCommonRelationshipEntity> | undefined;
165
165
  /**
166
166
  * The Person record ID whose relationships should be displayed.
167
167
  *
@@ -223,15 +223,8 @@ export declare class RelationshipListComponent {
223
223
  * Populated from the existing relationship record when editing begins.
224
224
  */
225
225
  EditForm: EditFormData;
226
- /**
227
- * Search results from the target entity typeahead, displayed as a
228
- * dropdown below the search input in the add form.
229
- */
230
- TargetSearchResults: SearchResult[];
231
226
  /** Lookup map from RelationshipType ID to entity for quick access. */
232
227
  private relationshipTypeMap;
233
- /** Handle for the debounce timer used in target search. */
234
- private searchDebounceTimer;
235
228
  /** Creates a blank {@link AddFormData} with empty defaults. */
236
229
  private createEmptyAddForm;
237
230
  /** Creates a blank {@link EditFormData} with default status of Active. */
@@ -276,63 +269,42 @@ export declare class RelationshipListComponent {
276
269
  /**
277
270
  * Opens the "Add Relationship" form panel.
278
271
  *
279
- * Resets the add form to defaults, clears any previous search results,
272
+ * Resets the add form to defaults, creates a new draft relationship entity,
280
273
  * and closes any active inline edit.
281
274
  */
282
- onShowAdd(): void;
275
+ onShowAdd(): Promise<void>;
283
276
  /**
284
- * Closes the "Add Relationship" form panel without saving, and clears
285
- * the target search results.
277
+ * Closes the "Add Relationship" form panel without saving.
286
278
  */
287
279
  onCancelAdd(): void;
288
280
  /**
289
281
  * Handles a change to the relationship type in the add form.
290
- *
291
- * Clears the currently selected target because the category (and
292
- * therefore the target entity type) may have changed.
282
+ * Clears any selected target so the link field resets for the new category.
293
283
  */
294
284
  onAddTypeChange(): void;
295
285
  /**
296
286
  * Returns the category key of the currently selected relationship type
297
287
  * in the add form (e.g., `'PersonToOrganization'`).
298
- *
299
- * @returns The category string, or `'--'` if no type is selected
300
288
  */
301
289
  getAddCategory(): string;
302
290
  /**
303
- * Returns a user-facing label for the target entity search field based
304
- * on the current add form's relationship category.
305
- *
306
- * @returns `'Organization'`, `'Person'`, or `'Target'` depending on category
291
+ * Returns true if the target entity for the selected relationship category is a Person.
307
292
  */
308
- getAddTargetLabel(): string;
293
+ get IsPersonTarget(): boolean;
309
294
  /**
310
- * Debounces the target search input and triggers a server-side search
311
- * after a 300ms pause in typing.
312
- *
313
- * Called on each keystroke in the target search field.
295
+ * Returns true if the target entity for the selected relationship category is an Organization.
314
296
  */
315
- onTargetSearch(): void;
316
- /** Executes the debounced target search against Person or Organization entities. */
317
- private performTargetSearch;
297
+ get IsOrgTarget(): boolean;
318
298
  /**
319
- * Selects a target entity from the search results dropdown, populating
320
- * the add form's target fields and clearing the search input.
321
- *
322
- * @param result - The selected search result to use as the relationship target
299
+ * Converts raw category keys into friendly display labels.
323
300
  */
324
- onSelectTarget(result: SearchResult): void;
301
+ getCategoryFriendlyName(category: string): string;
325
302
  /**
326
- * Clears the currently selected target entity from the add form,
327
- * allowing the user to search for a different target.
303
+ * Checks if the add form has a valid target selected.
328
304
  */
329
- onClearTarget(): void;
305
+ get HasValidAddTarget(): boolean;
330
306
  /**
331
307
  * Persists the new relationship from the add form.
332
- *
333
- * Determines which From/To fields to populate based on the current
334
- * entity type (Person or Organization) and the relationship category.
335
- * After saving, the relationship list is reloaded.
336
308
  */
337
309
  onSaveAdd(): Promise<void>;
338
310
  /**
@@ -357,8 +329,6 @@ export declare class RelationshipListComponent {
357
329
  /**
358
330
  * Returns the category key of the currently selected relationship type
359
331
  * in the edit form (e.g., `'PersonToOrganization'`).
360
- *
361
- * @returns The category string, or `'--'` if no type is selected
362
332
  */
363
333
  getEditCategory(): string;
364
334
  /**
@@ -386,7 +356,7 @@ export declare class RelationshipListComponent {
386
356
  /** Converts a Date to an ISO date string (`YYYY-MM-DD`) for HTML date inputs. */
387
357
  private formatDateForInput;
388
358
  static ɵfac: i0.ɵɵFactoryDeclaration<RelationshipListComponent, never>;
389
- static ɵcmp: i0.ɵɵComponentDeclaration<RelationshipListComponent, "bizapps-relationship-list", never, { "EditMode": { "alias": "EditMode"; "required": false; }; "PersonID": { "alias": "PersonID"; "required": false; }; "OrganizationID": { "alias": "OrganizationID"; "required": false; }; }, { "Navigate": "Navigate"; "DataChanged": "DataChanged"; }, never, never, true, never>;
359
+ static ɵcmp: i0.ɵɵComponentDeclaration<RelationshipListComponent, "bizapps-relationship-list", never, { "EditMode": { "alias": "EditMode"; "required": false; }; "Collection": { "alias": "Collection"; "required": false; }; "PersonID": { "alias": "PersonID"; "required": false; }; "OrganizationID": { "alias": "OrganizationID"; "required": false; }; }, { "Navigate": "Navigate"; "DataChanged": "DataChanged"; }, never, never, true, never>;
390
360
  }
391
361
  export {};
392
362
  //# sourceMappingURL=relationship-list.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"relationship-list.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/relationship-list/relationship-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA6B,MAAM,eAAe,CAAC;AAIlG,OAAO,EAAE,mBAAmB,EAAyB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EACH,iCAAiC,EACjC,qCAAqC,EAGxC,MAAM,8BAA8B,CAAC;;AAEtC;;;;;;;GAOG;AACH,UAAU,uBAAuB;IAC7B,iDAAiD;IACjD,YAAY,EAAE,iCAAiC,CAAC;IAEhD;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB,oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,UAAU,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tBrC"}
1
+ {"version":3,"file":"relationship-list.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/relationship-list/relationship-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA6B,MAAM,eAAe,CAAC;AAGlG,OAAO,EAAmC,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEhG,OAAO,EAAmB,mBAAmB,EAAyB,MAAM,+BAA+B,CAAC;AAC5G,OAAO,EACH,iCAAiC,EACjC,qCAAqC,EAGxC,MAAM,8BAA8B,CAAC;;AAEtC;;;;;;;GAOG;AACH,UAAU,uBAAuB;IAC7B,iDAAiD;IACjD,YAAY,EAAE,iCAAiC,CAAC;IAEhD;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB,oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,UAAU,aAAa;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IAEd,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IAEb,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAElB,iEAAiE;IACjE,KAAK,EAAE,uBAAuB,EAAE,CAAC;CACpC;AAiBD;;;;;GAKG;AACH,UAAU,WAAW;IACjB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IAEf,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;IAErB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IAEjB,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IAEnB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IAEd,sEAAsE;IACtE,SAAS,EAAE,MAAM,CA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