@memberjunction/ng-base-forms 6.2.0-edge.2 → 6.2.0-edge.4

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 (188) hide show
  1. package/dist/lib/apply/form-placement-dialog.component.d.ts +266 -0
  2. package/dist/lib/apply/form-placement-dialog.component.d.ts.map +1 -0
  3. package/dist/lib/apply/form-placement-dialog.component.js +1522 -0
  4. package/dist/lib/apply/form-placement-dialog.component.js.map +1 -0
  5. package/dist/lib/apply/form-placement-order.d.ts +37 -0
  6. package/dist/lib/apply/form-placement-order.d.ts.map +1 -0
  7. package/dist/lib/apply/form-placement-order.js +111 -0
  8. package/dist/lib/apply/form-placement-order.js.map +1 -0
  9. package/dist/lib/apply/form-placement-preview.component.d.ts +112 -0
  10. package/dist/lib/apply/form-placement-preview.component.d.ts.map +1 -0
  11. package/dist/lib/apply/form-placement-preview.component.js +346 -0
  12. package/dist/lib/apply/form-placement-preview.component.js.map +1 -0
  13. package/dist/lib/apply/form-placement-text.d.ts +61 -0
  14. package/dist/lib/apply/form-placement-text.d.ts.map +1 -0
  15. package/dist/lib/apply/form-placement-text.js +279 -0
  16. package/dist/lib/apply/form-placement-text.js.map +1 -0
  17. package/dist/lib/apply/form-placement.d.ts +320 -0
  18. package/dist/lib/apply/form-placement.d.ts.map +1 -0
  19. package/dist/lib/apply/form-placement.js +432 -0
  20. package/dist/lib/apply/form-placement.js.map +1 -0
  21. package/dist/lib/apply/form-slot-probe.service.d.ts +121 -0
  22. package/dist/lib/apply/form-slot-probe.service.d.ts.map +1 -0
  23. package/dist/lib/apply/form-slot-probe.service.js +264 -0
  24. package/dist/lib/apply/form-slot-probe.service.js.map +1 -0
  25. package/dist/lib/base-form-component-internals.d.ts +11 -0
  26. package/dist/lib/base-form-component-internals.d.ts.map +1 -0
  27. package/dist/lib/base-form-component-internals.js +33 -0
  28. package/dist/lib/base-form-component-internals.js.map +1 -0
  29. package/dist/lib/base-form-component.d.ts +132 -1
  30. package/dist/lib/base-form-component.d.ts.map +1 -1
  31. package/dist/lib/base-form-component.js +228 -19
  32. package/dist/lib/base-form-component.js.map +1 -1
  33. package/dist/lib/chrome/form-chrome.d.ts +90 -0
  34. package/dist/lib/chrome/form-chrome.d.ts.map +1 -1
  35. package/dist/lib/chrome/form-chrome.js +142 -2
  36. package/dist/lib/chrome/form-chrome.js.map +1 -1
  37. package/dist/lib/chrome/form-composition-registry.d.ts +34 -0
  38. package/dist/lib/chrome/form-composition-registry.d.ts.map +1 -0
  39. package/dist/lib/chrome/form-composition-registry.js +56 -0
  40. package/dist/lib/chrome/form-composition-registry.js.map +1 -0
  41. package/dist/lib/chrome/form-composition-snapshot.d.ts +151 -0
  42. package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -0
  43. package/dist/lib/chrome/form-composition-snapshot.js +137 -0
  44. package/dist/lib/chrome/form-composition-snapshot.js.map +1 -0
  45. package/dist/lib/chrome/resolve-form-chrome.d.ts +15 -0
  46. package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
  47. package/dist/lib/chrome/resolve-form-chrome.js +31 -2
  48. package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
  49. package/dist/lib/container/record-form-container.component.d.ts +241 -5
  50. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  51. package/dist/lib/container/record-form-container.component.js +977 -249
  52. package/dist/lib/container/record-form-container.component.js.map +1 -1
  53. package/dist/lib/field/form-field.component.d.ts +17 -0
  54. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  55. package/dist/lib/field/form-field.component.js +41 -5
  56. package/dist/lib/field/form-field.component.js.map +1 -1
  57. package/dist/lib/form-state.service.d.ts +5 -0
  58. package/dist/lib/form-state.service.d.ts.map +1 -1
  59. package/dist/lib/form-state.service.js +6 -1
  60. package/dist/lib/form-state.service.js.map +1 -1
  61. package/dist/lib/host/entity-form-host.component.d.ts +16 -1
  62. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  63. package/dist/lib/host/entity-form-host.component.js +27 -6
  64. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  65. package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts +24 -0
  66. package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts.map +1 -0
  67. package/dist/lib/interactive-form/form-panel-host-props.builder.js +99 -0
  68. package/dist/lib/interactive-form/form-panel-host-props.builder.js.map +1 -0
  69. package/dist/lib/interactive-form/interactive-form-panel.component.d.ts +109 -0
  70. package/dist/lib/interactive-form/interactive-form-panel.component.d.ts.map +1 -0
  71. package/dist/lib/interactive-form/interactive-form-panel.component.js +424 -0
  72. package/dist/lib/interactive-form/interactive-form-panel.component.js.map +1 -0
  73. package/dist/lib/interactive-form/interactive-form.component.d.ts +2 -0
  74. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  75. package/dist/lib/interactive-form/interactive-form.component.js +4 -5
  76. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  77. package/dist/lib/panel/collapsible-panel.component.d.ts +69 -1
  78. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  79. package/dist/lib/panel/collapsible-panel.component.js +148 -12
  80. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  81. package/dist/lib/panel-manager/form-audience.d.ts +46 -0
  82. package/dist/lib/panel-manager/form-audience.d.ts.map +1 -0
  83. package/dist/lib/panel-manager/form-audience.js +34 -0
  84. package/dist/lib/panel-manager/form-audience.js.map +1 -0
  85. package/dist/lib/panel-manager/form-panel-admin.service.d.ts +150 -0
  86. package/dist/lib/panel-manager/form-panel-admin.service.d.ts.map +1 -0
  87. package/dist/lib/panel-manager/form-panel-admin.service.js +433 -0
  88. package/dist/lib/panel-manager/form-panel-admin.service.js.map +1 -0
  89. package/dist/lib/panel-manager/form-panel-inventory.d.ts +255 -0
  90. package/dist/lib/panel-manager/form-panel-inventory.d.ts.map +1 -0
  91. package/dist/lib/panel-manager/form-panel-inventory.js +293 -0
  92. package/dist/lib/panel-manager/form-panel-inventory.js.map +1 -0
  93. package/dist/lib/panel-manager/panel-manager.component.d.ts +232 -0
  94. package/dist/lib/panel-manager/panel-manager.component.d.ts.map +1 -0
  95. package/dist/lib/panel-manager/panel-manager.component.js +1112 -0
  96. package/dist/lib/panel-manager/panel-manager.component.js.map +1 -0
  97. package/dist/lib/panel-slot/base-contribution-panel.d.ts +40 -0
  98. package/dist/lib/panel-slot/base-contribution-panel.d.ts.map +1 -0
  99. package/dist/lib/panel-slot/base-contribution-panel.js +55 -0
  100. package/dist/lib/panel-slot/base-contribution-panel.js.map +1 -0
  101. package/dist/lib/panel-slot/base-form-panel.d.ts +116 -8
  102. package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
  103. package/dist/lib/panel-slot/base-form-panel.js +76 -5
  104. package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
  105. package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts +29 -0
  106. package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts.map +1 -0
  107. package/dist/lib/panel-slot/collect-form-contribution-registrations.js +214 -0
  108. package/dist/lib/panel-slot/collect-form-contribution-registrations.js.map +1 -0
  109. package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts +6 -3
  110. package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts.map +1 -1
  111. package/dist/lib/panel-slot/collect-form-panel-registrations.js +8 -14
  112. package/dist/lib/panel-slot/collect-form-panel-registrations.js.map +1 -1
  113. package/dist/lib/panel-slot/form-contribution.d.ts +170 -7
  114. package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
  115. package/dist/lib/panel-slot/form-contribution.js +245 -71
  116. package/dist/lib/panel-slot/form-contribution.js.map +1 -1
  117. package/dist/lib/panel-slot/form-contributions.component.d.ts +16 -5
  118. package/dist/lib/panel-slot/form-contributions.component.d.ts.map +1 -1
  119. package/dist/lib/panel-slot/form-contributions.component.js +43 -7
  120. package/dist/lib/panel-slot/form-contributions.component.js.map +1 -1
  121. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts +66 -0
  122. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -0
  123. package/dist/lib/panel-slot/form-field-panel-slot.component.js +190 -0
  124. package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -0
  125. package/dist/lib/panel-slot/form-panel-slot.component.d.ts +52 -16
  126. package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
  127. package/dist/lib/panel-slot/form-panel-slot.component.js +190 -66
  128. package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
  129. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +11 -0
  130. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
  131. package/dist/lib/panel-slot/form-slot-coordinator.service.js +17 -0
  132. package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
  133. package/dist/lib/panel-slot/merge-panel-validation.d.ts +7 -0
  134. package/dist/lib/panel-slot/merge-panel-validation.d.ts.map +1 -0
  135. package/dist/lib/panel-slot/merge-panel-validation.js +16 -0
  136. package/dist/lib/panel-slot/merge-panel-validation.js.map +1 -0
  137. package/dist/lib/panel-slot/mount-form-contribution.d.ts +15 -0
  138. package/dist/lib/panel-slot/mount-form-contribution.d.ts.map +1 -0
  139. package/dist/lib/panel-slot/mount-form-contribution.js +37 -0
  140. package/dist/lib/panel-slot/mount-form-contribution.js.map +1 -0
  141. package/dist/lib/panel-slot/panel-hides.d.ts +35 -0
  142. package/dist/lib/panel-slot/panel-hides.d.ts.map +1 -0
  143. package/dist/lib/panel-slot/panel-hides.js +111 -0
  144. package/dist/lib/panel-slot/panel-hides.js.map +1 -0
  145. package/dist/lib/panel-slot/placement-preview-panel.component.d.ts +16 -0
  146. package/dist/lib/panel-slot/placement-preview-panel.component.d.ts.map +1 -0
  147. package/dist/lib/panel-slot/placement-preview-panel.component.js +112 -0
  148. package/dist/lib/panel-slot/placement-preview-panel.component.js.map +1 -0
  149. package/dist/lib/panel-slot/placement-preview.d.ts +57 -0
  150. package/dist/lib/panel-slot/placement-preview.d.ts.map +1 -0
  151. package/dist/lib/panel-slot/placement-preview.js +86 -0
  152. package/dist/lib/panel-slot/placement-preview.js.map +1 -0
  153. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
  154. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
  155. package/dist/lib/panel-slot/related-entity-grid-panel.component.js +10 -3
  156. package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
  157. package/dist/lib/panel-slot/slot-order.d.ts +19 -0
  158. package/dist/lib/panel-slot/slot-order.d.ts.map +1 -0
  159. package/dist/lib/panel-slot/slot-order.js +53 -0
  160. package/dist/lib/panel-slot/slot-order.js.map +1 -0
  161. package/dist/lib/resolver/form-resolver.service.d.ts +4 -2
  162. package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
  163. package/dist/lib/resolver/form-resolver.service.js +18 -8
  164. package/dist/lib/resolver/form-resolver.service.js.map +1 -1
  165. package/dist/lib/resolver/form-variants.d.ts +28 -0
  166. package/dist/lib/resolver/form-variants.d.ts.map +1 -0
  167. package/dist/lib/resolver/form-variants.js +40 -0
  168. package/dist/lib/resolver/form-variants.js.map +1 -0
  169. package/dist/lib/section-counts/form-section-counts.d.ts +99 -0
  170. package/dist/lib/section-counts/form-section-counts.d.ts.map +1 -0
  171. package/dist/lib/section-counts/form-section-counts.js +223 -0
  172. package/dist/lib/section-counts/form-section-counts.js.map +1 -0
  173. package/dist/lib/toolbar/form-toolbar.component.d.ts +7 -0
  174. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  175. package/dist/lib/toolbar/form-toolbar.component.js +194 -128
  176. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  177. package/dist/lib/types/form-types.d.ts +8 -0
  178. package/dist/lib/types/form-types.d.ts.map +1 -1
  179. package/dist/lib/types/form-types.js.map +1 -1
  180. package/dist/module.d.ts +29 -23
  181. package/dist/module.d.ts.map +1 -1
  182. package/dist/module.js +43 -5
  183. package/dist/module.js.map +1 -1
  184. package/dist/public-api.d.ts +20 -0
  185. package/dist/public-api.d.ts.map +1 -1
  186. package/dist/public-api.js +21 -0
  187. package/dist/public-api.js.map +1 -1
  188. package/package.json +20 -20
@@ -25,6 +25,7 @@ export declare const FORM_SLOT_CHAIN: FormPanelSlot[];
25
25
  export declare class FormSlotCoordinator {
26
26
  private readonly presentSlots;
27
27
  private readonly changes$;
28
+ private readonly panelsChanged$;
28
29
  /** Tracks synchronous re-entry depth into safeEmit so an emit storm
29
30
  * caused by a future refactor surfaces loudly instead of freezing. */
30
31
  private emitDepth;
@@ -39,6 +40,8 @@ export declare class FormSlotCoordinator {
39
40
  HasSlot(slot: FormPanelSlot): boolean;
40
41
  /** @deprecated Use {@link HasSlot}. */
41
42
  hasSlot(slot: FormPanelSlot): boolean;
43
+ /** Slots physically present in this form, in document order. */
44
+ get PresentSlots(): FormPanelSlot[];
42
45
  /**
43
46
  * Resolve a preferred slot to the slot that should ACTUALLY render the
44
47
  * panel. Returns the preferred slot if it's present; otherwise walks
@@ -55,6 +58,14 @@ export declare class FormSlotCoordinator {
55
58
  get Changes(): import("rxjs").Observable<void>;
56
59
  /** @deprecated Use {@link Changes}. */
57
60
  get changes(): import("rxjs").Observable<void>;
61
+ /**
62
+ * Fires when the set of panels this form shows changed without any slot coming or going,
63
+ * for example when the user hides or shows a panel. The slot hosts resolve their panels
64
+ * again when it fires.
65
+ */
66
+ get PanelsChanged(): import("rxjs").Observable<void>;
67
+ /** Tells every slot host on this form to resolve its panels again. */
68
+ NotifyPanelsChanged(): void;
58
69
  /**
59
70
  * Emit with re-entrancy detection. If we're already in the middle of an
60
71
  * emit (i.e., a subscriber triggered another emit), log loudly so the loop
@@ -1 +1 @@
1
- {"version":3,"file":"form-slot-coordinator.service.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/form-slot-coordinator.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;;AAElD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,EAM1C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,qBACa,mBAAmB;IAC5B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA4B;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAChD;2EACuE;IACvE,OAAO,CAAC,SAAS,CAAK;IAEtB,wEAAwE;IACjE,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAO9C,4CAA4C;IACrC,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAI9C,uCAAuC;IAChC,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAOhD,8CAA8C;IACvC,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAIzC,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO;IAI5C,uCAAuC;IAChC,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO;IAI5C;;;;;;;;OAQG;IACI,WAAW,CAAC,SAAS,EAAE,aAAa,GAAG,aAAa,GAAG,IAAI;IAYlE,2CAA2C;IACpC,WAAW,CAAC,SAAS,EAAE,aAAa,GAAG,aAAa,GAAG,IAAI;IAIlE,uEAAuE;IACvE,IAAW,OAAO,oCAEjB;IAED,uCAAuC;IACvC,IAAW,OAAO,oCAEjB;IAED;;;;OAIG;IACH,OAAO,CAAC,QAAQ;yCAnFP,mBAAmB;6CAAnB,mBAAmB;CA+F/B"}
1
+ {"version":3,"file":"form-slot-coordinator.service.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/form-slot-coordinator.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;;AAElD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,EAM1C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,qBACa,mBAAmB;IAC5B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA4B;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAChD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IACtD;2EACuE;IACvE,OAAO,CAAC,SAAS,CAAK;IAEtB,wEAAwE;IACjE,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAO9C,4CAA4C;IACrC,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAI9C,uCAAuC;IAChC,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAOhD,8CAA8C;IACvC,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAIzC,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO;IAI5C,uCAAuC;IAChC,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO;IAI5C,gEAAgE;IAChE,IAAW,YAAY,IAAI,aAAa,EAAE,CAEzC;IAED;;;;;;;;OAQG;IACI,WAAW,CAAC,SAAS,EAAE,aAAa,GAAG,aAAa,GAAG,IAAI;IAYlE,2CAA2C;IACpC,WAAW,CAAC,SAAS,EAAE,aAAa,GAAG,aAAa,GAAG,IAAI;IAIlE,uEAAuE;IACvE,IAAW,OAAO,oCAEjB;IAED,uCAAuC;IACvC,IAAW,OAAO,oCAEjB;IAED;;;;OAIG;IACH,IAAW,aAAa,oCAEvB;IAED,sEAAsE;IAC/D,mBAAmB,IAAI,IAAI;IAIlC;;;;OAIG;IACH,OAAO,CAAC,QAAQ;yCAvGP,mBAAmB;6CAAnB,mBAAmB;CAmH/B"}
@@ -32,6 +32,7 @@ export const FORM_SLOT_CHAIN = [
32
32
  export class FormSlotCoordinator {
33
33
  presentSlots = new Set();
34
34
  changes$ = new Subject();
35
+ panelsChanged$ = new Subject();
35
36
  /** Tracks synchronous re-entry depth into safeEmit so an emit storm
36
37
  * caused by a future refactor surfaces loudly instead of freezing. */
37
38
  emitDepth = 0;
@@ -64,6 +65,10 @@ export class FormSlotCoordinator {
64
65
  hasSlot(slot) {
65
66
  return this.HasSlot(slot);
66
67
  }
68
+ /** Slots physically present in this form, in document order. */
69
+ get PresentSlots() {
70
+ return FORM_SLOT_CHAIN.filter((slot) => this.presentSlots.has(slot));
71
+ }
67
72
  /**
68
73
  * Resolve a preferred slot to the slot that should ACTUALLY render the
69
74
  * panel. Returns the preferred slot if it's present; otherwise walks
@@ -97,6 +102,18 @@ export class FormSlotCoordinator {
97
102
  get changes() {
98
103
  return this.Changes;
99
104
  }
105
+ /**
106
+ * Fires when the set of panels this form shows changed without any slot coming or going,
107
+ * for example when the user hides or shows a panel. The slot hosts resolve their panels
108
+ * again when it fires.
109
+ */
110
+ get PanelsChanged() {
111
+ return this.panelsChanged$.asObservable();
112
+ }
113
+ /** Tells every slot host on this form to resolve its panels again. */
114
+ NotifyPanelsChanged() {
115
+ this.panelsChanged$.next();
116
+ }
100
117
  /**
101
118
  * Emit with re-entrancy detection. If we're already in the middle of an
102
119
  * emit (i.e., a subscriber triggered another emit), log loudly so the loop
@@ -1 +1 @@
1
- {"version":3,"file":"form-slot-coordinator.service.js","sourceRoot":"","sources":["../../../src/lib/panel-slot/form-slot-coordinator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC5C,UAAU;IACV,eAAe;IACf,cAAc;IACd,eAAe;IACf,kBAAkB;CACrB,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,mBAAmB;IACX,YAAY,GAAG,IAAI,GAAG,EAAiB,CAAC;IACxC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;IAChD;2EACuE;IAC/D,SAAS,GAAG,CAAC,CAAC;IAEtB,wEAAwE;IACjE,YAAY,CAAC,IAAmB;QAC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,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;gBACnC,OAAO,SAAS,CAAC;YACrB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,2CAA2C;IACpC,WAAW,CAAC,SAAwB;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED,uEAAuE;IACvE,IAAW,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;IACxC,CAAC;IAED,uCAAuC;IACvC,IAAW,OAAO;QACd,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED;;;;OAIG;IACK,QAAQ,CAAC,KAAa;QAC1B,IAAI,IAAI,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC;YACtB,OAAO,CAAC,KAAK,CAAC,oDAAoD,IAAI,CAAC,SAAS,SAAS,KAAK,kCAAkC,CAAC,CAAC;YAClI,OAAO;QACX,CAAC;QACD,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;gBAAS,CAAC;YACP,IAAI,CAAC,SAAS,EAAE,CAAC;QACrB,CAAC;IACL,CAAC;6GA9FQ,mBAAmB;gEAAnB,mBAAmB,WAAnB,mBAAmB;;iFAAnB,mBAAmB;cAD/B,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { FormPanelSlot } from './base-form-panel';\n\n/**\n * Document-order chain used by the slot host to figure out where to render a\n * panel whose preferred slot is missing in the current form. Walks forward:\n * a panel registered for `after-fields` looks for the next existing slot down\n * the chain (`after-related`, then `after-everything`) until it finds one.\n *\n * The chain is intentionally short — these are the only positions any panel\n * should ever need. New positions can be added by inserting into this array\n * at the right document-order position.\n */\nexport const FORM_SLOT_CHAIN: FormPanelSlot[] = [\n 'top-area',\n 'before-fields',\n 'after-fields',\n 'after-related',\n 'after-everything',\n];\n\n/**\n * Per-form coordinator that tracks which slot positions are physically present\n * in the current form's DOM. Provided at the `<mj-record-form-container>` level\n * (one instance per form) so descendant slot hosts can register themselves and\n * compute the fallback chain.\n *\n * The container template guarantees an `after-everything` slot host at the very\n * bottom of the form body — so panels whose preferred slot is missing always\n * have a final landing spot. Pre-CodeGen-regen forms still display every\n * panel; post-regen forms display them at the better position.\n */\n@Injectable()\nexport class FormSlotCoordinator {\n private readonly presentSlots = new Set<FormPanelSlot>();\n private readonly changes$ = new Subject<void>();\n /** Tracks synchronous re-entry depth into safeEmit so an emit storm\n * caused by a future refactor surfaces loudly instead of freezing. */\n private emitDepth = 0;\n\n /** Slot host calls this on init. Idempotent — safe if invoked twice. */\n public RegisterSlot(slot: FormPanelSlot): void {\n if (!this.presentSlots.has(slot)) {\n this.presentSlots.add(slot);\n this.safeEmit('registerSlot');\n }\n }\n\n /** @deprecated Use {@link RegisterSlot}. */\n public registerSlot(slot: FormPanelSlot): void {\n return this.RegisterSlot(slot);\n }\n\n /** Slot host calls this on destroy. */\n public DeregisterSlot(slot: FormPanelSlot): void {\n if (this.presentSlots.has(slot)) {\n this.presentSlots.delete(slot);\n this.safeEmit('deregisterSlot');\n }\n }\n\n /** @deprecated Use {@link DeregisterSlot}. */\n public deregisterSlot(slot: FormPanelSlot): void {\n return this.DeregisterSlot(slot);\n }\n\n public HasSlot(slot: FormPanelSlot): boolean {\n return this.presentSlots.has(slot);\n }\n\n /** @deprecated Use {@link HasSlot}. */\n public hasSlot(slot: FormPanelSlot): boolean {\n return this.HasSlot(slot);\n }\n\n /**\n * Resolve a preferred slot to the slot that should ACTUALLY render the\n * panel. Returns the preferred slot if it's present; otherwise walks\n * forward in the chain to find the next existing slot.\n *\n * Returns null only in the (impossible) case where no slot at all is\n * present — the container guarantees `after-everything` exists, so this\n * should never happen in practice.\n */\n public ResolveSlot(preferred: FormPanelSlot): FormPanelSlot | null {\n const startIdx = FORM_SLOT_CHAIN.indexOf(preferred);\n if (startIdx === -1) return null;\n for (let i = startIdx; i < FORM_SLOT_CHAIN.length; i++) {\n const candidate = FORM_SLOT_CHAIN[i];\n if (this.presentSlots.has(candidate)) {\n return candidate;\n }\n }\n return null;\n }\n\n /** @deprecated Use {@link ResolveSlot}. */\n public resolveSlot(preferred: FormPanelSlot): FormPanelSlot | null {\n return this.ResolveSlot(preferred);\n }\n\n /** RxJS stream that fires whenever a slot registers or deregisters. */\n public get Changes() {\n return this.changes$.asObservable();\n }\n\n /** @deprecated Use {@link Changes}. */\n public get changes() {\n return this.Changes;\n }\n\n /**\n * Emit with re-entrancy detection. If we're already in the middle of an\n * emit (i.e., a subscriber triggered another emit), log loudly so the loop\n * is visible in the console instead of silently freezing the browser.\n */\n private safeEmit(cause: string): void {\n if (this.emitDepth > 10) {\n console.error(`[FormSlotCoordinator] LOOP DETECTED — emit depth ${this.emitDepth} from ${cause}. Bailing out to prevent freeze.`);\n return;\n }\n this.emitDepth++;\n try {\n this.changes$.next();\n } finally {\n this.emitDepth--;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"form-slot-coordinator.service.js","sourceRoot":"","sources":["../../../src/lib/panel-slot/form-slot-coordinator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG/B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC5C,UAAU;IACV,eAAe;IACf,cAAc;IACd,eAAe;IACf,kBAAkB;CACrB,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,mBAAmB;IACX,YAAY,GAAG,IAAI,GAAG,EAAiB,CAAC;IACxC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;IAC/B,cAAc,GAAG,IAAI,OAAO,EAAQ,CAAC;IACtD;2EACuE;IAC/D,SAAS,GAAG,CAAC,CAAC;IAEtB,wEAAwE;IACjE,Y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;iFAAnB,mBAAmB;cAD/B,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { FormPanelSlot } from './base-form-panel';\n\n/**\n * Document-order chain used by the slot host to figure out where to render a\n * panel whose preferred slot is missing in the current form. Walks forward:\n * a panel registered for `after-fields` looks for the next existing slot down\n * the chain (`after-related`, then `after-everything`) until it finds one.\n *\n * The chain is intentionally short — these are the only positions any panel\n * should ever need. New positions can be added by inserting into this array\n * at the right document-order position.\n */\nexport const FORM_SLOT_CHAIN: FormPanelSlot[] = [\n 'top-area',\n 'before-fields',\n 'after-fields',\n 'after-related',\n 'after-everything',\n];\n\n/**\n * Per-form coordinator that tracks which slot positions are physically present\n * in the current form's DOM. Provided at the `<mj-record-form-container>` level\n * (one instance per form) so descendant slot hosts can register themselves and\n * compute the fallback chain.\n *\n * The container template guarantees an `after-everything` slot host at the very\n * bottom of the form body — so panels whose preferred slot is missing always\n * have a final landing spot. Pre-CodeGen-regen forms still display every\n * panel; post-regen forms display them at the better position.\n */\n@Injectable()\nexport class FormSlotCoordinator {\n private readonly presentSlots = new Set<FormPanelSlot>();\n private readonly changes$ = new Subject<void>();\n private readonly panelsChanged$ = new Subject<void>();\n /** Tracks synchronous re-entry depth into safeEmit so an emit storm\n * caused by a future refactor surfaces loudly instead of freezing. */\n private emitDepth = 0;\n\n /** Slot host calls this on init. Idempotent — safe if invoked twice. */\n public RegisterSlot(slot: FormPanelSlot): void {\n if (!this.presentSlots.has(slot)) {\n this.presentSlots.add(slot);\n this.safeEmit('registerSlot');\n }\n }\n\n /** @deprecated Use {@link RegisterSlot}. */\n public registerSlot(slot: FormPanelSlot): void {\n return this.RegisterSlot(slot);\n }\n\n /** Slot host calls this on destroy. */\n public DeregisterSlot(slot: FormPanelSlot): void {\n if (this.presentSlots.has(slot)) {\n this.presentSlots.delete(slot);\n this.safeEmit('deregisterSlot');\n }\n }\n\n /** @deprecated Use {@link DeregisterSlot}. */\n public deregisterSlot(slot: FormPanelSlot): void {\n return this.DeregisterSlot(slot);\n }\n\n public HasSlot(slot: FormPanelSlot): boolean {\n return this.presentSlots.has(slot);\n }\n\n /** @deprecated Use {@link HasSlot}. */\n public hasSlot(slot: FormPanelSlot): boolean {\n return this.HasSlot(slot);\n }\n\n /** Slots physically present in this form, in document order. */\n public get PresentSlots(): FormPanelSlot[] {\n return FORM_SLOT_CHAIN.filter((slot) => this.presentSlots.has(slot));\n }\n\n /**\n * Resolve a preferred slot to the slot that should ACTUALLY render the\n * panel. Returns the preferred slot if it's present; otherwise walks\n * forward in the chain to find the next existing slot.\n *\n * Returns null only in the (impossible) case where no slot at all is\n * present — the container guarantees `after-everything` exists, so this\n * should never happen in practice.\n */\n public ResolveSlot(preferred: FormPanelSlot): FormPanelSlot | null {\n const startIdx = FORM_SLOT_CHAIN.indexOf(preferred);\n if (startIdx === -1) return null;\n for (let i = startIdx; i < FORM_SLOT_CHAIN.length; i++) {\n const candidate = FORM_SLOT_CHAIN[i];\n if (this.presentSlots.has(candidate)) {\n return candidate;\n }\n }\n return null;\n }\n\n /** @deprecated Use {@link ResolveSlot}. */\n public resolveSlot(preferred: FormPanelSlot): FormPanelSlot | null {\n return this.ResolveSlot(preferred);\n }\n\n /** RxJS stream that fires whenever a slot registers or deregisters. */\n public get Changes() {\n return this.changes$.asObservable();\n }\n\n /** @deprecated Use {@link Changes}. */\n public get changes() {\n return this.Changes;\n }\n\n /**\n * Fires when the set of panels this form shows changed without any slot coming or going,\n * for example when the user hides or shows a panel. The slot hosts resolve their panels\n * again when it fires.\n */\n public get PanelsChanged() {\n return this.panelsChanged$.asObservable();\n }\n\n /** Tells every slot host on this form to resolve its panels again. */\n public NotifyPanelsChanged(): void {\n this.panelsChanged$.next();\n }\n\n /**\n * Emit with re-entrancy detection. If we're already in the middle of an\n * emit (i.e., a subscriber triggered another emit), log loudly so the loop\n * is visible in the console instead of silently freezing the browser.\n */\n private safeEmit(cause: string): void {\n if (this.emitDepth > 10) {\n console.error(`[FormSlotCoordinator] LOOP DETECTED — emit depth ${this.emitDepth} from ${cause}. Bailing out to prevent freeze.`);\n return;\n }\n this.emitDepth++;\n try {\n this.changes$.next();\n } finally {\n this.emitDepth--;\n }\n }\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import { ValidationResult } from '@memberjunction/global';
2
+ /**
3
+ * Fold slot-mounted panels' `Validate()` results into the record's own validation.
4
+ * Base errors stay first so field-level messages keep their position.
5
+ */
6
+ export declare function MergePanelValidation(base: ValidationResult, panels: readonly ValidationResult[]): ValidationResult;
7
+ //# sourceMappingURL=merge-panel-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-panel-validation.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/merge-panel-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,gBAAgB,EAAE,GAAG,gBAAgB,CAOlH"}
@@ -0,0 +1,16 @@
1
+ // packages/Angular/Generic/base-forms/src/lib/panel-slot/merge-panel-validation.ts
2
+ import { ValidationResult } from '@memberjunction/global';
3
+ /**
4
+ * Fold slot-mounted panels' `Validate()` results into the record's own validation.
5
+ * Base errors stay first so field-level messages keep their position.
6
+ */
7
+ export function MergePanelValidation(base, panels) {
8
+ // Callers pass already-resolved results; awaiting happens in ValidateAsync().
9
+ if (panels.length === 0)
10
+ return base;
11
+ const merged = new ValidationResult();
12
+ merged.Success = base.Success && panels.every((p) => p.Success);
13
+ merged.Errors = [...base.Errors, ...panels.flatMap((p) => p.Errors)];
14
+ return merged;
15
+ }
16
+ //# sourceMappingURL=merge-panel-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-panel-validation.js","sourceRoot":"","sources":["../../../src/lib/panel-slot/merge-panel-validation.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAsB,EAAE,MAAmC;IAC5F,8EAA8E;IAC9E,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,MAAM,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;IACtC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAChE,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC;AAClB,CAAC","sourcesContent":["// packages/Angular/Generic/base-forms/src/lib/panel-slot/merge-panel-validation.ts\nimport { ValidationResult } from '@memberjunction/global';\n\n/**\n * Fold slot-mounted panels' `Validate()` results into the record's own validation.\n * Base errors stay first so field-level messages keep their position.\n */\nexport function MergePanelValidation(base: ValidationResult, panels: readonly ValidationResult[]): ValidationResult {\n // Callers pass already-resolved results; awaiting happens in ValidateAsync().\n if (panels.length === 0) return base;\n const merged = new ValidationResult();\n merged.Success = base.Success && panels.every((p) => p.Success);\n merged.Errors = [...base.Errors, ...panels.flatMap((p) => p.Errors)];\n return merged;\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { ComponentRef, ViewContainerRef } from '@angular/core';
2
+ import { BaseFormPanel } from './base-form-panel';
3
+ import type { FormContributionRegistration } from './form-contribution';
4
+ /**
5
+ * Create the component a registration names, whichever source it came from.
6
+ *
7
+ * A compiled registration carries its own constructor. A metadata row carries a component
8
+ * id instead, and renders through the generic React host. Both are `BaseFormPanel`s once
9
+ * mounted, so every caller downstream treats them the same.
10
+ *
11
+ * Returns null when a compiled registration has no constructor, which is a broken
12
+ * registration rather than an empty slot, so it is logged.
13
+ */
14
+ export declare function MountFormContribution(anchor: ViewContainerRef, registration: FormContributionRegistration): ComponentRef<BaseFormPanel> | null;
15
+ //# sourceMappingURL=mount-form-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mount-form-contribution.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/mount-form-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAQ,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACjC,MAAM,EAAE,gBAAgB,EACxB,YAAY,EAAE,4BAA4B,GAC3C,YAAY,CAAC,aAAa,CAAC,GAAG,IAAI,CAsBpC"}
@@ -0,0 +1,37 @@
1
+ import { LogError } from '@memberjunction/core';
2
+ import { InteractiveFormPanelComponent } from '../interactive-form/interactive-form-panel.component';
3
+ import { PlacementPreviewPanelComponent } from './placement-preview-panel.component';
4
+ /**
5
+ * Create the component a registration names, whichever source it came from.
6
+ *
7
+ * A compiled registration carries its own constructor. A metadata row carries a component
8
+ * id instead, and renders through the generic React host. Both are `BaseFormPanel`s once
9
+ * mounted, so every caller downstream treats them the same.
10
+ *
11
+ * Returns null when a compiled registration has no constructor, which is a broken
12
+ * registration rather than an empty slot, so it is logged.
13
+ */
14
+ export function MountFormContribution(anchor, registration) {
15
+ if (registration.IsPreview) {
16
+ // The placement preview's panel: the real component when there is one to draw,
17
+ // otherwise a placeholder. Marked so the preview can find it to frame it.
18
+ const ref = registration.ComponentSpec || registration.ComponentID
19
+ ? anchor.createComponent(InteractiveFormPanelComponent)
20
+ : anchor.createComponent(PlacementPreviewPanelComponent);
21
+ ref.instance.Contribution = registration;
22
+ ref.location.nativeElement.setAttribute('data-placement-preview', '');
23
+ return ref;
24
+ }
25
+ if (registration.Source === 'metadata') {
26
+ const ref = anchor.createComponent(InteractiveFormPanelComponent);
27
+ ref.instance.Contribution = registration;
28
+ return ref;
29
+ }
30
+ const ctor = registration.Registration?.SubClass;
31
+ if (!ctor) {
32
+ LogError(`MountFormContribution: compiled registration for ${registration.Metadata?.entity}:${registration.Metadata?.slot} has no constructor`);
33
+ return null;
34
+ }
35
+ return anchor.createComponent(ctor);
36
+ }
37
+ //# sourceMappingURL=mount-form-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mount-form-contribution.js","sourceRoot":"","sources":["../../../src/lib/panel-slot/mount-form-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAErG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAGrF;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CACjC,MAAwB,EACxB,YAA0C;IAE1C,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC;QACzB,+EAA+E;QAC/E,0EAA0E;QAC1E,MAAM,GAAG,GAAG,YAAY,CAAC,aAAa,IAAI,YAAY,CAAC,WAAW;YAC9D,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,6BAA6B,CAAC;YACvD,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,8BAA8B,CAAC,CAAC;QAC7D,GAAG,CAAC,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;QACxC,GAAG,CAAC,QAAQ,CAAC,aAA6B,CAAC,YAAY,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;QACvF,OAAO,GAA6C,CAAC;IACzD,CAAC;IACD,IAAI,YAAY,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;QAClE,GAAG,CAAC,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;QACzC,OAAO,GAA6C,CAAC;IACzD,CAAC;IACD,MAAM,IAAI,GAAG,YAAY,CAAC,YAAY,EAAE,QAA2C,CAAC;IACpF,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,QAAQ,CAAC,oDAAoD,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI,YAAY,CAAC,QAAQ,EAAE,IAAI,qBAAqB,CAAC,CAAC;QAChJ,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import { ComponentRef, Type, ViewContainerRef } from '@angular/core';\nimport { LogError } from '@memberjunction/core';\nimport { InteractiveFormPanelComponent } from '../interactive-form/interactive-form-panel.component';\nimport { BaseFormPanel } from './base-form-panel';\nimport { PlacementPreviewPanelComponent } from './placement-preview-panel.component';\nimport type { FormContributionRegistration } from './form-contribution';\n\n/**\n * Create the component a registration names, whichever source it came from.\n *\n * A compiled registration carries its own constructor. A metadata row carries a component\n * id instead, and renders through the generic React host. Both are `BaseFormPanel`s once\n * mounted, so every caller downstream treats them the same.\n *\n * Returns null when a compiled registration has no constructor, which is a broken\n * registration rather than an empty slot, so it is logged.\n */\nexport function MountFormContribution(\n anchor: ViewContainerRef,\n registration: FormContributionRegistration,\n): ComponentRef<BaseFormPanel> | null {\n if (registration.IsPreview) {\n // The placement preview's panel: the real component when there is one to draw,\n // otherwise a placeholder. Marked so the preview can find it to frame it.\n const ref = registration.ComponentSpec || registration.ComponentID\n ? anchor.createComponent(InteractiveFormPanelComponent)\n : anchor.createComponent(PlacementPreviewPanelComponent);\n ref.instance.Contribution = registration;\n (ref.location.nativeElement as HTMLElement).setAttribute('data-placement-preview', '');\n return ref as unknown as ComponentRef<BaseFormPanel>;\n }\n if (registration.Source === 'metadata') {\n const ref = anchor.createComponent(InteractiveFormPanelComponent);\n ref.instance.Contribution = registration;\n return ref as unknown as ComponentRef<BaseFormPanel>;\n }\n const ctor = registration.Registration?.SubClass as Type<BaseFormPanel> | undefined;\n if (!ctor) {\n LogError(`MountFormContribution: compiled registration for ${registration.Metadata?.entity}:${registration.Metadata?.slot} has no constructor`);\n return null;\n }\n return anchor.createComponent(ctor);\n}\n"]}
@@ -0,0 +1,35 @@
1
+ import { type FormContributionRegistration } from './form-contribution';
2
+ /**
3
+ * The key a panel is hidden by, or null when it has no stable identity.
4
+ *
5
+ * The contribution key where there is one — it survives a published panel's new versions, where
6
+ * a row id would lapse the moment the publisher edited it. A compiled panel that declares none is
7
+ * known by the key it registered under, prefixed so it cannot collide with a contribution key.
8
+ */
9
+ export declare function PanelHideKey(registration: FormContributionRegistration): string | null;
10
+ /** Test seam: drops every remembered hide list. */
11
+ export declare function ForgetHiddenPanelsSettings(): void;
12
+ /**
13
+ * The raw stored value for one entity, which the collector folds into its memo key. Remembered
14
+ * per user and entity until the user's settings change; read fresh when the settings cannot be
15
+ * watched.
16
+ */
17
+ export declare function HiddenPanelsSetting(entityName: string): string;
18
+ /** The panels this user has hidden on one entity's form. */
19
+ export declare function HiddenPanelKeys(entityName: string): string[];
20
+ /** Hide a panel for this user, or bring it back. */
21
+ export declare function SetPanelHidden(entityName: string, key: string, hidden: boolean): void;
22
+ /**
23
+ * Whether the user's hides drop this registration from their form.
24
+ *
25
+ * A user's own panel is never dropped, even when its key is listed: they turn it off, which is a
26
+ * separate switch in a separate place, and letting a hide reach it too would give one thing two
27
+ * switches.
28
+ */
29
+ export declare function IsPanelHiddenByUser(registration: FormContributionRegistration, hidden: ReadonlySet<string>): boolean;
30
+ /**
31
+ * The registrations with the hidden ones removed ({@link IsPanelHiddenByUser}). Returns the same
32
+ * array when nothing is hidden, so callers that memoize on identity keep their memo.
33
+ */
34
+ export declare function WithoutHiddenPanels(registrations: FormContributionRegistration[], hidden: readonly string[]): FormContributionRegistration[];
35
+ //# sourceMappingURL=panel-hides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panel-hides.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/panel-hides.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAchG;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,4BAA4B,GAAG,MAAM,GAAG,IAAI,CAKtF;AAmBD,mDAAmD;AACnD,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAe9D;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAE5D;AAED,oDAAoD;AACpD,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAQrF;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,4BAA4B,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAKpH;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAC/B,aAAa,EAAE,4BAA4B,EAAE,EAC7C,MAAM,EAAE,SAAS,MAAM,EAAE,GAC1B,4BAA4B,EAAE,CAIhC"}
@@ -0,0 +1,111 @@
1
+ import { FormPanelHideSettingKey, ParseHiddenFormPanelKeys, UserInfoEngine } from '@memberjunction/core-entities';
2
+ import { ResolveContributionKey } from './form-contribution';
3
+ /**
4
+ * Panels a user has hidden from their own form.
5
+ *
6
+ * Anything a user did not add themselves can be hidden — a panel published to their role or to
7
+ * everyone, or one shipped in code — and brought back later. The list is a user setting per
8
+ * entity ({@link FormPanelHideSettingKey}), the same way the user's choice of full custom form is
9
+ * stored, so it follows them across devices, and the server reads the same key.
10
+ */
11
+ /** Prefix that marks a hide key taken from a compiled panel's class registration. */
12
+ const CLASS_KEY_PREFIX = 'class:';
13
+ /**
14
+ * The key a panel is hidden by, or null when it has no stable identity.
15
+ *
16
+ * The contribution key where there is one — it survives a published panel's new versions, where
17
+ * a row id would lapse the moment the publisher edited it. A compiled panel that declares none is
18
+ * known by the key it registered under, prefixed so it cannot collide with a contribution key.
19
+ */
20
+ export function PanelHideKey(registration) {
21
+ const contributionKey = ResolveContributionKey(registration.Metadata);
22
+ if (contributionKey)
23
+ return contributionKey;
24
+ const classKey = registration.Registration?.Key?.trim();
25
+ return classKey ? CLASS_KEY_PREFIX + classKey : null;
26
+ }
27
+ /**
28
+ * Each entity's stored hide list, by user and setting key. `UserInfoEngine.GetSetting` scans the
29
+ * user's settings, and the collector reads this on every call, so the value is kept until the
30
+ * user's settings change or a hide is written here.
31
+ */
32
+ const settingMemo = new Map();
33
+ let settingsWatched = false;
34
+ /** Clears {@link settingMemo} whenever the user's settings change. False when the engine cannot be watched. */
35
+ function watchSettings(engine) {
36
+ if (settingsWatched)
37
+ return true;
38
+ if (typeof engine.ObserveProperty !== 'function')
39
+ return false;
40
+ engine.ObserveProperty('_userSettings').subscribe(() => settingMemo.clear());
41
+ settingsWatched = true;
42
+ return true;
43
+ }
44
+ /** Test seam: drops every remembered hide list. */
45
+ export function ForgetHiddenPanelsSettings() {
46
+ settingMemo.clear();
47
+ }
48
+ /**
49
+ * The raw stored value for one entity, which the collector folds into its memo key. Remembered
50
+ * per user and entity until the user's settings change; read fresh when the settings cannot be
51
+ * watched.
52
+ */
53
+ export function HiddenPanelsSetting(entityName) {
54
+ try {
55
+ const engine = UserInfoEngine.Instance;
56
+ const key = FormPanelHideSettingKey(entityName);
57
+ if (!watchSettings(engine))
58
+ return engine.GetSetting(key) ?? '';
59
+ const memoKey = `${engine.LoadedForUserId ?? ''}::${key}`;
60
+ const remembered = settingMemo.get(memoKey);
61
+ if (remembered !== undefined)
62
+ return remembered;
63
+ const value = engine.GetSetting(key) ?? '';
64
+ settingMemo.set(memoKey, value);
65
+ return value;
66
+ }
67
+ catch {
68
+ // No user settings in this context — nothing is hidden.
69
+ return '';
70
+ }
71
+ }
72
+ /** The panels this user has hidden on one entity's form. */
73
+ export function HiddenPanelKeys(entityName) {
74
+ return ParseHiddenFormPanelKeys(HiddenPanelsSetting(entityName));
75
+ }
76
+ /** Hide a panel for this user, or bring it back. */
77
+ export function SetPanelHidden(entityName, key, hidden) {
78
+ const current = HiddenPanelKeys(entityName);
79
+ const next = hidden
80
+ ? (current.includes(key) ? current : [...current, key])
81
+ : current.filter((k) => k !== key);
82
+ UserInfoEngine.Instance.SetSettingDebounced(FormPanelHideSettingKey(entityName), JSON.stringify(next));
83
+ // The write is debounced; GetSetting answers with it at once, so read it fresh.
84
+ settingMemo.clear();
85
+ }
86
+ /**
87
+ * Whether the user's hides drop this registration from their form.
88
+ *
89
+ * A user's own panel is never dropped, even when its key is listed: they turn it off, which is a
90
+ * separate switch in a separate place, and letting a hide reach it too would give one thing two
91
+ * switches.
92
+ */
93
+ export function IsPanelHiddenByUser(registration, hidden) {
94
+ if (hidden.size === 0)
95
+ return false;
96
+ if (registration.Source === 'metadata' && registration.Scope === 'User')
97
+ return false;
98
+ const key = PanelHideKey(registration);
99
+ return !!key && hidden.has(key);
100
+ }
101
+ /**
102
+ * The registrations with the hidden ones removed ({@link IsPanelHiddenByUser}). Returns the same
103
+ * array when nothing is hidden, so callers that memoize on identity keep their memo.
104
+ */
105
+ export function WithoutHiddenPanels(registrations, hidden) {
106
+ if (hidden.length === 0)
107
+ return registrations;
108
+ const hiddenSet = new Set(hidden);
109
+ return registrations.filter((registration) => !IsPanelHiddenByUser(registration, hiddenSet));
110
+ }
111
+ //# sourceMappingURL=panel-hides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panel-hides.js","sourceRoot":"","sources":["../../../src/lib/panel-slot/panel-hides.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;A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C;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,YAA0C,EAAE,MAA2B;IACvG,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,YAAY,CAAC,MAAM,KAAK,UAAU,IAAI,YAAY,CAAC,KAAK,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IACtF,MAAM,GAAG,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACpC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAC/B,aAA6C,EAC7C,MAAyB;IAEzB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,aAAa,CAAC;IAC9C,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;AACjG,CAAC","sourcesContent":["import { FormPanelHideSettingKey, ParseHiddenFormPanelKeys, UserInfoEngine } from '@memberjunction/core-entities';\nimport { ResolveContributionKey, type FormContributionRegistration } from './form-contribution';\n\n/**\n * Panels a user has hidden from their own form.\n *\n * Anything a user did not add themselves can be hidden — a panel published to their role or to\n * everyone, or one shipped in code — and brought back later. The list is a user setting per\n * entity ({@link FormPanelHideSettingKey}), the same way the user's choice of full custom form is\n * stored, so it follows them across devices, and the server reads the same key.\n */\n\n/** Prefix that marks a hide key taken from a compiled panel's class registration. */\nconst CLASS_KEY_PREFIX = 'class:';\n\n/**\n * The key a panel is hidden by, or null when it has no stable identity.\n *\n * The contribution key where there is one — it survives a published panel's new versions, where\n * a row id would lapse the moment the publisher edited it. A compiled panel that declares none is\n * known by the key it registered under, prefixed so it cannot collide with a contribution key.\n */\nexport function PanelHideKey(registration: FormContributionRegistration): string | null {\n const contributionKey = ResolveContributionKey(registration.Metadata);\n if (contributionKey) return contributionKey;\n const classKey = registration.Registration?.Key?.trim();\n return classKey ? CLASS_KEY_PREFIX + classKey : null;\n}\n\n/**\n * Each entity's stored hide list, by user and setting key. `UserInfoEngine.GetSetting` scans the\n * user's settings, and the collector reads this on every call, so the value is kept until the\n * user's settings change or a hide is written here.\n */\nconst settingMemo = new Map<string, string>();\nlet settingsWatched = false;\n\n/** Clears {@link settingMemo} whenever the user's settings change. False when the engine cannot be watched. */\nfunction watchSettings(engine: UserInfoEngine): boolean {\n if (settingsWatched) return true;\n if (typeof engine.ObserveProperty !== 'function') return false;\n engine.ObserveProperty('_userSettings').subscribe(() => settingMemo.clear());\n settingsWatched = true;\n return true;\n}\n\n/** Test seam: drops every remembered hide list. */\nexport function ForgetHiddenPanelsSettings(): void {\n settingMemo.clear();\n}\n\n/**\n * The raw stored value for one entity, which the collector folds into its memo key. Remembered\n * per user and entity until the user's settings change; read fresh when the settings cannot be\n * watched.\n */\nexport function HiddenPanelsSetting(entityName: string): string {\n try {\n const engine = UserInfoEngine.Instance;\n const key = FormPanelHideSettingKey(entityName);\n if (!watchSettings(engine)) return engine.GetSetting(key) ?? '';\n const memoKey = `${engine.LoadedForUserId ?? ''}::${key}`;\n const remembered = settingMemo.get(memoKey);\n if (remembered !== undefined) return remembered;\n const value = engine.GetSetting(key) ?? '';\n settingMemo.set(memoKey, value);\n return value;\n } catch {\n // No user settings in this context — nothing is hidden.\n return '';\n }\n}\n\n/** The panels this user has hidden on one entity's form. */\nexport function HiddenPanelKeys(entityName: string): string[] {\n return ParseHiddenFormPanelKeys(HiddenPanelsSetting(entityName));\n}\n\n/** Hide a panel for this user, or bring it back. */\nexport function SetPanelHidden(entityName: string, key: string, hidden: boolean): void {\n const current = HiddenPanelKeys(entityName);\n const next = hidden\n ? (current.includes(key) ? current : [...current, key])\n : current.filter((k) => k !== key);\n UserInfoEngine.Instance.SetSettingDebounced(FormPanelHideSettingKey(entityName), JSON.stringify(next));\n // The write is debounced; GetSetting answers with it at once, so read it fresh.\n settingMemo.clear();\n}\n\n/**\n * Whether the user's hides drop this registration from their form.\n *\n * A user's own panel is never dropped, even when its key is listed: they turn it off, which is a\n * separate switch in a separate place, and letting a hide reach it too would give one thing two\n * switches.\n */\nexport function IsPanelHiddenByUser(registration: FormContributionRegistration, hidden: ReadonlySet<string>): boolean {\n if (hidden.size === 0) return false;\n if (registration.Source === 'metadata' && registration.Scope === 'User') return false;\n const key = PanelHideKey(registration);\n return !!key && hidden.has(key);\n}\n\n/**\n * The registrations with the hidden ones removed ({@link IsPanelHiddenByUser}). Returns the same\n * array when nothing is hidden, so callers that memoize on identity keep their memo.\n */\nexport function WithoutHiddenPanels(\n registrations: FormContributionRegistration[],\n hidden: readonly string[],\n): FormContributionRegistration[] {\n if (hidden.length === 0) return registrations;\n const hiddenSet = new Set(hidden);\n return registrations.filter((registration) => !IsPanelHiddenByUser(registration, hiddenSet));\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { BaseContributionPanel } from './base-contribution-panel';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Stands in for the placement dialog's unsaved panel on the preview form.
5
+ *
6
+ * Draws the same chrome a saved row draws — a collapsible panel with its title and icon, or a
7
+ * bare strip — around a marked body, so the form lays it out exactly as it will lay out the
8
+ * real panel.
9
+ */
10
+ export declare class PlacementPreviewPanelComponent extends BaseContributionPanel {
11
+ get SectionKey(): string;
12
+ get Title(): string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlacementPreviewPanelComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlacementPreviewPanelComponent, "mj-placement-preview-panel", never, {}, {}, never, never, false, never>;
15
+ }
16
+ //# sourceMappingURL=placement-preview-panel.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placement-preview-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/placement-preview-panel.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;AAIlE;;;;;;GAMG;AACH,qBAiDa,8BAA+B,SAAQ,qBAAqB;IACrE,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,KAAK,IAAI,MAAM,CAEzB;yCAPQ,8BAA8B;2CAA9B,8BAA8B;CAQ1C"}
@@ -0,0 +1,112 @@
1
+ import { Component } from '@angular/core';
2
+ import { BaseContributionPanel } from './base-contribution-panel';
3
+ import { ResolveContributionKey } from './form-contribution';
4
+ import { PLACEMENT_PREVIEW_KEY } from './placement-preview';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "../panel/collapsible-panel.component";
8
+ function PlacementPreviewPanelComponent_Conditional_0_Conditional_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
9
+ i0.ɵɵelementContainer(0);
10
+ } }
11
+ function PlacementPreviewPanelComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
12
+ i0.ɵɵelementStart(0, "div", 3);
13
+ i0.ɵɵtemplate(1, PlacementPreviewPanelComponent_Conditional_0_Conditional_0_ng_container_1_Template, 1, 0, "ng-container", 4);
14
+ i0.ɵɵelementEnd();
15
+ } if (rf & 2) {
16
+ const ctx_r0 = i0.ɵɵnextContext(2);
17
+ const body_r2 = i0.ɵɵreference(2);
18
+ i0.ɵɵstyleProp("order", ctx_r0.DisplayOrder);
19
+ i0.ɵɵattribute("data-bare-section-key", ctx_r0.BareTabKey)("data-bare-title", ctx_r0.Title);
20
+ i0.ɵɵadvance();
21
+ i0.ɵɵproperty("ngTemplateOutlet", body_r2);
22
+ } }
23
+ function PlacementPreviewPanelComponent_Conditional_0_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementContainer(0);
25
+ } }
26
+ function PlacementPreviewPanelComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
27
+ i0.ɵɵelementStart(0, "mj-collapsible-panel", 2);
28
+ i0.ɵɵtemplate(1, PlacementPreviewPanelComponent_Conditional_0_Conditional_1_ng_container_1_Template, 1, 0, "ng-container", 4);
29
+ i0.ɵɵelementEnd();
30
+ } if (rf & 2) {
31
+ const ctx_r0 = i0.ɵɵnextContext(2);
32
+ const body_r2 = i0.ɵɵreference(2);
33
+ i0.ɵɵproperty("SectionKey", ctx_r0.SectionKey)("Order", ctx_r0.DisplayOrder)("SectionName", ctx_r0.Title)("Icon", ctx_r0.Icon)("Variant", ctx_r0.Variant)("Form", ctx_r0.FormComponent)("FormContext", ctx_r0.FormContext)("DefaultExpanded", true);
34
+ i0.ɵɵadvance();
35
+ i0.ɵɵproperty("ngTemplateOutlet", body_r2);
36
+ } }
37
+ function PlacementPreviewPanelComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
38
+ i0.ɵɵconditionalCreate(0, PlacementPreviewPanelComponent_Conditional_0_Conditional_0_Template, 2, 5, "div", 1)(1, PlacementPreviewPanelComponent_Conditional_0_Conditional_1_Template, 2, 9, "mj-collapsible-panel", 2);
39
+ } if (rf & 2) {
40
+ const ctx_r0 = i0.ɵɵnextContext();
41
+ i0.ɵɵconditional(ctx_r0.IsBare ? 0 : 1);
42
+ } }
43
+ function PlacementPreviewPanelComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
44
+ i0.ɵɵelementStart(0, "div", 5);
45
+ i0.ɵɵelement(1, "i", 6);
46
+ i0.ɵɵelementStart(2, "span");
47
+ i0.ɵɵtext(3);
48
+ i0.ɵɵelementEnd()();
49
+ } if (rf & 2) {
50
+ const ctx_r0 = i0.ɵɵnextContext();
51
+ i0.ɵɵadvance();
52
+ i0.ɵɵclassMap(ctx_r0.Icon);
53
+ i0.ɵɵadvance(2);
54
+ i0.ɵɵtextInterpolate1("", ctx_r0.Title, " goes here");
55
+ } }
56
+ /**
57
+ * Stands in for the placement dialog's unsaved panel on the preview form.
58
+ *
59
+ * Draws the same chrome a saved row draws — a collapsible panel with its title and icon, or a
60
+ * bare strip — around a marked body, so the form lays it out exactly as it will lay out the
61
+ * real panel.
62
+ */
63
+ export class PlacementPreviewPanelComponent extends BaseContributionPanel {
64
+ get SectionKey() {
65
+ return ResolveContributionKey(this.Contribution.Metadata) || PLACEMENT_PREVIEW_KEY;
66
+ }
67
+ get Title() {
68
+ return this.Contribution.Title || 'Your panel';
69
+ }
70
+ static ɵfac = /*@__PURE__*/ (() => { let ɵPlacementPreviewPanelComponent_BaseFactory; return function PlacementPreviewPanelComponent_Factory(__ngFactoryType__) { return (ɵPlacementPreviewPanelComponent_BaseFactory || (ɵPlacementPreviewPanelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PlacementPreviewPanelComponent)))(__ngFactoryType__ || PlacementPreviewPanelComponent); }; })();
71
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlacementPreviewPanelComponent, selectors: [["mj-placement-preview-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [["body", ""], [1, "mj-form-bare-panel", 2, "display", "block", 3, "order"], [3, "SectionKey", "Order", "SectionName", "Icon", "Variant", "Form", "FormContext", "DefaultExpanded"], [1, "mj-form-bare-panel", 2, "display", "block"], [4, "ngTemplateOutlet"], ["data-placement-preview", "", 1, "mj-placement-preview-body"], ["aria-hidden", "true"]], template: function PlacementPreviewPanelComponent_Template(rf, ctx) { if (rf & 1) {
72
+ i0.ɵɵconditionalCreate(0, PlacementPreviewPanelComponent_Conditional_0_Template, 2, 1);
73
+ i0.ɵɵtemplate(1, PlacementPreviewPanelComponent_ng_template_1_Template, 4, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
74
+ } if (rf & 2) {
75
+ i0.ɵɵconditional(ctx.Contribution ? 0 : -1);
76
+ } }, dependencies: [i1.NgTemplateOutlet, i2.MjCollapsiblePanelComponent], styles: [".mj-placement-preview-body[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2);\n min-height: 96px;\n padding: var(--mj-space-4);\n border: 2px dashed var(--mj-brand-primary);\n border-radius: var(--mj-radius-md);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n }"] });
77
+ }
78
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PlacementPreviewPanelComponent, [{
79
+ type: Component,
80
+ args: [{ standalone: false, selector: 'mj-placement-preview-panel', template: `
81
+ @if (Contribution) {
82
+ @if (IsBare) {
83
+ <div class="mj-form-bare-panel" style="display: block"
84
+ [style.order]="DisplayOrder"
85
+ [attr.data-bare-section-key]="BareTabKey"
86
+ [attr.data-bare-title]="Title">
87
+ <ng-container *ngTemplateOutlet="body"></ng-container>
88
+ </div>
89
+ } @else {
90
+ <mj-collapsible-panel
91
+ [SectionKey]="SectionKey"
92
+ [Order]="DisplayOrder"
93
+ [SectionName]="Title"
94
+ [Icon]="Icon"
95
+ [Variant]="Variant"
96
+ [Form]="FormComponent"
97
+ [FormContext]="FormContext"
98
+ [DefaultExpanded]="true">
99
+ <ng-container *ngTemplateOutlet="body"></ng-container>
100
+ </mj-collapsible-panel>
101
+ }
102
+ }
103
+ <ng-template #body>
104
+ <div class="mj-placement-preview-body" data-placement-preview>
105
+ <i [class]="Icon" aria-hidden="true"></i>
106
+ <span>{{ Title }} goes here</span>
107
+ </div>
108
+ </ng-template>
109
+ `, styles: ["\n .mj-placement-preview-body {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2);\n min-height: 96px;\n padding: var(--mj-space-4);\n border: 2px dashed var(--mj-brand-primary);\n border-radius: var(--mj-radius-md);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n }\n "] }]
110
+ }], null, null); })();
111
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PlacementPreviewPanelComponent, { className: "PlacementPreviewPanelComponent", filePath: "src/lib/panel-slot/placement-preview-panel.component.ts", lineNumber: 62 }); })();
112
+ //# sourceMappingURL=placement-preview-panel.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placement-preview-panel.component.js","sourceRoot":"","sources":["../../../src/lib/panel-slot/placement-preview-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;;;;IAmBhD,wBAAsD;;;IAJxD,8BAGoC;IAClC,6HAAuC;IACzC,iBAAM;;;;IAJD,4CAA4B;;IAGhB,cAAsB;IAAtB,0CAAsB;;;IAYrC,wBAAsD;;;IATxD,+CAQ2B;IACzB,6HAAuC;IACzC,iBAAuB;;;;IAFrB,AADA,AADA,AADA,AADA,AADA,AADA,AADA,8CAAyB,8BACH,6BACD,qBACR,2BACM,8BACG,mCACK,yBACH;IACT,cAAsB;IAAtB,0CAAsB;;;IAVvC,AAPF,8GAAc,yGAOL;;;IAPT,uCAmBC;;;IAGD,8BAA8D;IAC5D,uBAAyC;IACzC,4BAAM;IAAA,YAAqB;IAC7B,AAD6B,iBAAO,EAC9B;;;IAFD,cAAc;IAAd,0BAAc;IACX,eAAqB;IAArB,qDAAqB;;AApCrC;;;;;;GAMG;AAkDH,MAAM,OAAO,8BAA+B,SAAQ,qBAAqB;IACrE,IAAW,UAAU;QACjB,OAAO,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,qBAAqB,CAAC;IACvF,CAAC;IAED,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,IAAI,YAAY,CAAC;IACnD,CAAC;qSAPQ,8BAA8B,yBAA9B,8BAA8B;6DAA9B,8BAA8B;YA7CrC,sFAAoB;YAsBpB,gIAAmB;;YAtBnB,2CAqBC;;;iFAwBM,8BAA8B;cAjD1C,SAAS;6BACM,KAAK,YACP,4BAA4B,YAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BT;;kFAiBQ,8BAA8B","sourcesContent":["import { Component } from '@angular/core';\nimport { BaseContributionPanel } from './base-contribution-panel';\nimport { ResolveContributionKey } from './form-contribution';\nimport { PLACEMENT_PREVIEW_KEY } from './placement-preview';\n\n/**\n * Stands in for the placement dialog's unsaved panel on the preview form.\n *\n * Draws the same chrome a saved row draws — a collapsible panel with its title and icon, or a\n * bare strip — around a marked body, so the form lays it out exactly as it will lay out the\n * real panel.\n */\n@Component({\n standalone: false,\n selector: 'mj-placement-preview-panel',\n template: `\n @if (Contribution) {\n @if (IsBare) {\n <div class=\"mj-form-bare-panel\" style=\"display: block\"\n [style.order]=\"DisplayOrder\"\n [attr.data-bare-section-key]=\"BareTabKey\"\n [attr.data-bare-title]=\"Title\">\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n } @else {\n <mj-collapsible-panel\n [SectionKey]=\"SectionKey\"\n [Order]=\"DisplayOrder\"\n [SectionName]=\"Title\"\n [Icon]=\"Icon\"\n [Variant]=\"Variant\"\n [Form]=\"FormComponent\"\n [FormContext]=\"FormContext\"\n [DefaultExpanded]=\"true\">\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </mj-collapsible-panel>\n }\n }\n <ng-template #body>\n <div class=\"mj-placement-preview-body\" data-placement-preview>\n <i [class]=\"Icon\" aria-hidden=\"true\"></i>\n <span>{{ Title }} goes here</span>\n </div>\n </ng-template>\n `,\n styles: [`\n .mj-placement-preview-body {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2);\n min-height: 96px;\n padding: var(--mj-space-4);\n border: 2px dashed var(--mj-brand-primary);\n border-radius: var(--mj-radius-md);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n }\n `],\n})\nexport class PlacementPreviewPanelComponent extends BaseContributionPanel {\n public get SectionKey(): string {\n return ResolveContributionKey(this.Contribution.Metadata) || PLACEMENT_PREVIEW_KEY;\n }\n\n public get Title(): string {\n return this.Contribution.Title || 'Your panel';\n }\n}\n"]}
@@ -0,0 +1,57 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { type Observable } from 'rxjs';
3
+ import type { FormContributionSpec } from '@memberjunction/interactive-component-types/forms';
4
+ import type { ComponentSpec } from '@memberjunction/interactive-component-types';
5
+ import { type FormContributionRegistration } from './form-contribution';
6
+ /**
7
+ * A panel the placement dialog shows on a real form before anything is saved.
8
+ *
9
+ * The dialog provides one of these to the form it renders as its preview. Every place that
10
+ * collects a form's contributions adds this registration, so the form itself decides where the
11
+ * panel draws, what it hides and what rail item it gets. A form outside the preview has no
12
+ * provider, so nothing else ever sees it.
13
+ */
14
+ export declare class FormPlacementPreview {
15
+ private readonly changed;
16
+ private registration;
17
+ private replacesRowID;
18
+ /** Emits after the previewed panel changes, so mounted slots can redraw. */
19
+ get Changed$(): Observable<void>;
20
+ /** The previewed panel, or null when there is none. */
21
+ get Registration(): FormContributionRegistration | null;
22
+ /** The saved row this panel is an edit of. That row is left off the preview form. */
23
+ get ReplacesRowID(): string | null;
24
+ /**
25
+ * Shows `spec` on the preview form, or nothing when it is null. With a `component` the
26
+ * panel draws that component; without one it draws a placeholder.
27
+ */
28
+ Show(entityName: string, spec: FormContributionSpec | null, replacesRowID?: string | null, component?: PlacementPreviewComponent | null): void;
29
+ }
30
+ /** The component the previewed panel draws: a spec not saved yet, or a saved component's ID. */
31
+ export interface PlacementPreviewComponent {
32
+ Spec?: ComponentSpec | null;
33
+ ComponentID?: string | null;
34
+ }
35
+ /** Provided by the placement dialog's preview. Absent everywhere else. */
36
+ export declare const FORM_PLACEMENT_PREVIEW: InjectionToken<FormPlacementPreview>;
37
+ /** The key a preview uses when the spec names none, so its panel still has a stable identity. */
38
+ export declare const PLACEMENT_PREVIEW_KEY = "placement-preview";
39
+ /**
40
+ * The previewed spec as a registration.
41
+ *
42
+ * Ranked 0, like a new row: {@link WithPlacementPreview} already drops whatever it replaces, so
43
+ * it competes with nothing, and on a `SortKey` tie it draws after the panels already there, as
44
+ * the saved row will. A spec with no key of its own takes the derived one, or
45
+ * {@link PLACEMENT_PREVIEW_KEY}.
46
+ */
47
+ export declare function PlacementPreviewRegistration(entityName: string, spec: FormContributionSpec, component?: PlacementPreviewComponent | null): FormContributionRegistration;
48
+ /**
49
+ * `base` with the previewed panel added.
50
+ *
51
+ * A registration under the same key is dropped, as is the row being edited, so the preview
52
+ * shows the panel that would be saved and not the one it replaces. The result is memoized per
53
+ * (registration, base list), because the form reads this on every change-detection pass and
54
+ * compares lists by identity.
55
+ */
56
+ export declare function WithPlacementPreview(base: FormContributionRegistration[], preview: FormPlacementPreview | null | undefined): FormContributionRegistration[];
57
+ //# sourceMappingURL=placement-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placement-preview.d.ts","sourceRoot":"","sources":["../../../src/lib/panel-slot/placement-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EAA0D,KAAK,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAEhI;;;;;;;GAOG;AACH,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuB;IAC/C,OAAO,CAAC,YAAY,CAA6C;IACjE,OAAO,CAAC,aAAa,CAAuB;IAE5C,4EAA4E;IAC5E,IA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