@memberjunction/ng-base-forms 6.2.0-edge.1 → 6.2.0-edge.3

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 (207) 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 +166 -1
  30. package/dist/lib/base-form-component.d.ts.map +1 -1
  31. package/dist/lib/base-form-component.js +296 -20
  32. package/dist/lib/base-form-component.js.map +1 -1
  33. package/dist/lib/chrome/form-chrome.d.ts +78 -0
  34. package/dist/lib/chrome/form-chrome.d.ts.map +1 -1
  35. package/dist/lib/chrome/form-chrome.js +128 -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 +261 -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 +1180 -371
  52. package/dist/lib/container/record-form-container.component.js.map +1 -1
  53. package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts +150 -0
  54. package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts.map +1 -0
  55. package/dist/lib/duplicate-entry-check/duplicate-entry-check.js +263 -0
  56. package/dist/lib/duplicate-entry-check/duplicate-entry-check.js.map +1 -0
  57. package/dist/lib/field/form-field.component.d.ts +22 -0
  58. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  59. package/dist/lib/field/form-field.component.js +51 -6
  60. package/dist/lib/field/form-field.component.js.map +1 -1
  61. package/dist/lib/form-field-edit.coordinator.d.ts +25 -0
  62. package/dist/lib/form-field-edit.coordinator.d.ts.map +1 -0
  63. package/dist/lib/form-field-edit.coordinator.js +27 -0
  64. package/dist/lib/form-field-edit.coordinator.js.map +1 -0
  65. package/dist/lib/form-state.service.d.ts +5 -0
  66. package/dist/lib/form-state.service.d.ts.map +1 -1
  67. package/dist/lib/form-state.service.js +6 -1
  68. package/dist/lib/form-state.service.js.map +1 -1
  69. package/dist/lib/host/entity-form-host.component.d.ts +16 -1
  70. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  71. package/dist/lib/host/entity-form-host.component.js +27 -6
  72. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  73. package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts +24 -0
  74. package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts.map +1 -0
  75. package/dist/lib/interactive-form/form-panel-host-props.builder.js +99 -0
  76. package/dist/lib/interactive-form/form-panel-host-props.builder.js.map +1 -0
  77. package/dist/lib/interactive-form/interactive-form-panel.component.d.ts +109 -0
  78. package/dist/lib/interactive-form/interactive-form-panel.component.d.ts.map +1 -0
  79. package/dist/lib/interactive-form/interactive-form-panel.component.js +424 -0
  80. package/dist/lib/interactive-form/interactive-form-panel.component.js.map +1 -0
  81. package/dist/lib/interactive-form/interactive-form.component.d.ts +2 -0
  82. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  83. package/dist/lib/interactive-form/interactive-form.component.js +4 -5
  84. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  85. package/dist/lib/panel/collapsible-panel.component.d.ts +69 -1
  86. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  87. package/dist/lib/panel/collapsible-panel.component.js +148 -12
  88. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  89. package/dist/lib/panel-manager/form-audience.d.ts +46 -0
  90. package/dist/lib/panel-manager/form-audience.d.ts.map +1 -0
  91. package/dist/lib/panel-manager/form-audience.js +34 -0
  92. package/dist/lib/panel-manager/form-audience.js.map +1 -0
  93. package/dist/lib/panel-manager/form-panel-admin.service.d.ts +150 -0
  94. package/dist/lib/panel-manager/form-panel-admin.service.d.ts.map +1 -0
  95. package/dist/lib/panel-manager/form-panel-admin.service.js +433 -0
  96. package/dist/lib/panel-manager/form-panel-admin.service.js.map +1 -0
  97. package/dist/lib/panel-manager/form-panel-inventory.d.ts +255 -0
  98. package/dist/lib/panel-manager/form-panel-inventory.d.ts.map +1 -0
  99. package/dist/lib/panel-manager/form-panel-inventory.js +293 -0
  100. package/dist/lib/panel-manager/form-panel-inventory.js.map +1 -0
  101. package/dist/lib/panel-manager/panel-manager.component.d.ts +232 -0
  102. package/dist/lib/panel-manager/panel-manager.component.d.ts.map +1 -0
  103. package/dist/lib/panel-manager/panel-manager.component.js +1112 -0
  104. package/dist/lib/panel-manager/panel-manager.component.js.map +1 -0
  105. package/dist/lib/panel-slot/base-contribution-panel.d.ts +40 -0
  106. package/dist/lib/panel-slot/base-contribution-panel.d.ts.map +1 -0
  107. package/dist/lib/panel-slot/base-contribution-panel.js +55 -0
  108. package/dist/lib/panel-slot/base-contribution-panel.js.map +1 -0
  109. package/dist/lib/panel-slot/base-form-panel.d.ts +116 -8
  110. package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
  111. package/dist/lib/panel-slot/base-form-panel.js +76 -5
  112. package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
  113. package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts +29 -0
  114. package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts.map +1 -0
  115. package/dist/lib/panel-slot/collect-form-contribution-registrations.js +214 -0
  116. package/dist/lib/panel-slot/collect-form-contribution-registrations.js.map +1 -0
  117. package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts +6 -3
  118. package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts.map +1 -1
  119. package/dist/lib/panel-slot/collect-form-panel-registrations.js +8 -14
  120. package/dist/lib/panel-slot/collect-form-panel-registrations.js.map +1 -1
  121. package/dist/lib/panel-slot/form-contribution.d.ts +170 -7
  122. package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
  123. package/dist/lib/panel-slot/form-contribution.js +242 -64
  124. package/dist/lib/panel-slot/form-contribution.js.map +1 -1
  125. package/dist/lib/panel-slot/form-contributions.component.d.ts +16 -5
  126. package/dist/lib/panel-slot/form-contributions.component.d.ts.map +1 -1
  127. package/dist/lib/panel-slot/form-contributions.component.js +43 -7
  128. package/dist/lib/panel-slot/form-contributions.component.js.map +1 -1
  129. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts +66 -0
  130. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -0
  131. package/dist/lib/panel-slot/form-field-panel-slot.component.js +190 -0
  132. package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -0
  133. package/dist/lib/panel-slot/form-panel-slot.component.d.ts +52 -16
  134. package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
  135. package/dist/lib/panel-slot/form-panel-slot.component.js +190 -66
  136. package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
  137. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +11 -0
  138. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
  139. package/dist/lib/panel-slot/form-slot-coordinator.service.js +17 -0
  140. package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
  141. package/dist/lib/panel-slot/merge-panel-validation.d.ts +7 -0
  142. package/dist/lib/panel-slot/merge-panel-validation.d.ts.map +1 -0
  143. package/dist/lib/panel-slot/merge-panel-validation.js +16 -0
  144. package/dist/lib/panel-slot/merge-panel-validation.js.map +1 -0
  145. package/dist/lib/panel-slot/mount-form-contribution.d.ts +15 -0
  146. package/dist/lib/panel-slot/mount-form-contribution.d.ts.map +1 -0
  147. package/dist/lib/panel-slot/mount-form-contribution.js +37 -0
  148. package/dist/lib/panel-slot/mount-form-contribution.js.map +1 -0
  149. package/dist/lib/panel-slot/panel-hides.d.ts +35 -0
  150. package/dist/lib/panel-slot/panel-hides.d.ts.map +1 -0
  151. package/dist/lib/panel-slot/panel-hides.js +111 -0
  152. package/dist/lib/panel-slot/panel-hides.js.map +1 -0
  153. package/dist/lib/panel-slot/placement-preview-panel.component.d.ts +16 -0
  154. package/dist/lib/panel-slot/placement-preview-panel.component.d.ts.map +1 -0
  155. package/dist/lib/panel-slot/placement-preview-panel.component.js +112 -0
  156. package/dist/lib/panel-slot/placement-preview-panel.component.js.map +1 -0
  157. package/dist/lib/panel-slot/placement-preview.d.ts +57 -0
  158. package/dist/lib/panel-slot/placement-preview.d.ts.map +1 -0
  159. package/dist/lib/panel-slot/placement-preview.js +86 -0
  160. package/dist/lib/panel-slot/placement-preview.js.map +1 -0
  161. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
  162. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
  163. package/dist/lib/panel-slot/related-entity-grid-panel.component.js +10 -3
  164. package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
  165. package/dist/lib/panel-slot/slot-order.d.ts +19 -0
  166. package/dist/lib/panel-slot/slot-order.d.ts.map +1 -0
  167. package/dist/lib/panel-slot/slot-order.js +53 -0
  168. package/dist/lib/panel-slot/slot-order.js.map +1 -0
  169. package/dist/lib/resolver/form-resolver.service.d.ts +4 -2
  170. package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
  171. package/dist/lib/resolver/form-resolver.service.js +18 -8
  172. package/dist/lib/resolver/form-resolver.service.js.map +1 -1
  173. package/dist/lib/resolver/form-variants.d.ts +28 -0
  174. package/dist/lib/resolver/form-variants.d.ts.map +1 -0
  175. package/dist/lib/resolver/form-variants.js +40 -0
  176. package/dist/lib/resolver/form-variants.js.map +1 -0
  177. package/dist/lib/section-counts/form-section-counts.d.ts +99 -0
  178. package/dist/lib/section-counts/form-section-counts.d.ts.map +1 -0
  179. package/dist/lib/section-counts/form-section-counts.js +223 -0
  180. package/dist/lib/section-counts/form-section-counts.js.map +1 -0
  181. package/dist/lib/toolbar/form-toolbar.component.d.ts +129 -2
  182. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  183. package/dist/lib/toolbar/form-toolbar.component.js +974 -307
  184. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  185. package/dist/lib/types/form-events.d.ts +6 -0
  186. package/dist/lib/types/form-events.d.ts.map +1 -1
  187. package/dist/lib/types/form-events.js +6 -0
  188. package/dist/lib/types/form-events.js.map +1 -1
  189. package/dist/lib/types/form-toolbar-item.d.ts +20 -1
  190. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  191. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  192. package/dist/lib/types/form-types.d.ts +13 -0
  193. package/dist/lib/types/form-types.d.ts.map +1 -1
  194. package/dist/lib/types/form-types.js.map +1 -1
  195. package/dist/lib/types/toolbar-config.d.ts +16 -0
  196. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  197. package/dist/lib/types/toolbar-config.js +3 -0
  198. package/dist/lib/types/toolbar-config.js.map +1 -1
  199. package/dist/module.d.ts +29 -22
  200. package/dist/module.d.ts.map +1 -1
  201. package/dist/module.js +50 -8
  202. package/dist/module.js.map +1 -1
  203. package/dist/public-api.d.ts +22 -0
  204. package/dist/public-api.d.ts.map +1 -1
  205. package/dist/public-api.js +24 -0
  206. package/dist/public-api.js.map +1 -1
  207. package/package.json +20 -18
@@ -1 +1 @@
1
- {"version":3,"file":"form-events.js","sourceRoot":"","sources":["../../../src/lib/types/form-events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;;OAGG;IACH,MAAM,GAAG,KAAK,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,kBAAkB,CAAU;IAE5B,YAAY,kBAA2B;QACrC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,oBAAoB;CAAG;AAEnE;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;;GAGG;AACH,MAAM,OAAO,4BAA6B,SAAQ,oBAAoB;IAClE,MAAM,CAA2B;IAEjC,YAAY,MAAgC;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,4BAA4B;IACrC,MAAM,CAA2B;IAEjC,YAAY,MAAgC;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CACJ;AAED;;;GAGG;AACH,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IACpE,QAAQ,CAAS;IAEjB,YAAY,QAAgB;QACxB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,8BAA8B;IACvC,QAAQ,CAAS;IAEjB,YAAY,QAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,oBAAoB;CAAG;AAEvE;;GAEG;AACH,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;CAAG","sourcesContent":["/**\n * Cancellable event base class for form actions.\n * Allows event handlers to cancel default behavior by setting Cancel = true.\n */\nexport class CancellableFormEvent {\n /**\n * Set to true to cancel the default behavior of this event.\n * Default: false\n */\n Cancel = false;\n}\n\n/**\n * Event args for BeforeSave event\n */\nexport class BeforeSaveEventArgs extends CancellableFormEvent {\n /**\n * Whether validation should be performed before save\n */\n ValidateBeforeSave: boolean;\n\n constructor(validateBeforeSave: boolean) {\n super();\n this.ValidateBeforeSave = validateBeforeSave;\n }\n}\n\n/**\n * Event args for BeforeDelete event\n */\nexport class BeforeDeleteEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeRefresh event\n */\nexport class BeforeRefreshEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeCancel event\n */\nexport class BeforeCancelEventArgs extends CancellableFormEvent {}\n\n/**\n * Fired before the container commits accordion vs left-nav. Cancel to keep\n * the previously applied chrome.\n */\nexport class BeforeLayoutResolveEventArgs extends CancellableFormEvent {\n Layout: 'accordion' | 'left-nav';\n\n constructor(layout: 'accordion' | 'left-nav') {\n super();\n this.Layout = layout;\n }\n}\n\n/**\n * Fired after chrome has been applied.\n */\nexport class AfterLayoutResolvedEventArgs {\n Layout: 'accordion' | 'left-nav';\n\n constructor(layout: 'accordion' | 'left-nav') {\n this.Layout = layout;\n }\n}\n\n/**\n * Fired before a left-nav group is activated or More is expanded. Cancel\n * to keep the current group (dirty-guard hook).\n */\nexport class BeforeSectionActivateEventArgs extends CancellableFormEvent {\n GroupKey: string;\n\n constructor(groupKey: string) {\n super();\n this.GroupKey = groupKey;\n }\n}\n\n/**\n * Fired after a left-nav group is activated or More is expanded.\n */\nexport class AfterSectionActivatedEventArgs {\n GroupKey: string;\n\n constructor(groupKey: string) {\n this.GroupKey = groupKey;\n }\n}\n\n/**\n * Event args for BeforeHistoryView event\n */\nexport class BeforeHistoryViewEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeListManagement event\n */\nexport class BeforeListManagementEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for custom toolbar button clicks\n */\nexport interface CustomToolbarButtonClickEventArgs {\n /**\n * The key/identifier of the button that was clicked\n */\n ButtonKey: string;\n\n /**\n * The button configuration that was clicked\n */\n Button: CustomToolbarButton;\n}\n\n/**\n * Configuration for a custom toolbar button\n */\nexport interface CustomToolbarButton {\n /**\n * Unique identifier for this button\n */\n Key: string;\n\n /**\n * Display name/label for the button (used for accessibility)\n */\n Name: string;\n\n /**\n * Tooltip text shown on hover\n */\n Description: string;\n\n /**\n * Font Awesome icon class (e.g., \"fa-solid fa-star\")\n */\n Icon: string;\n\n /**\n * Whether the button should be visible\n * Default: true\n */\n Visible?: boolean;\n\n /**\n * Whether the button should be disabled\n * Default: false\n */\n Disabled?: boolean;\n\n /**\n * Optional CSS class to apply to the button\n */\n CssClass?: string;\n}\n"]}
1
+ {"version":3,"file":"form-events.js","sourceRoot":"","sources":["../../../src/lib/types/form-events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;;OAGG;IACH,MAAM,GAAG,KAAK,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,kBAAkB,CAAU;IAE5B,YAAY,kBAA2B;QACrC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,oBAAoB;CAAG;AAEnE;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;;GAGG;AACH,MAAM,OAAO,4BAA6B,SAAQ,oBAAoB;IAClE,MAAM,CAA2B;IAEjC,YAAY,MAAgC;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,4BAA4B;IACrC,MAAM,CAA2B;IAEjC,YAAY,MAAgC;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CACJ;AAED;;;GAGG;AACH,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IACpE,QAAQ,CAAS;IAEjB,YAAY,QAAgB;QACxB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,8BAA8B;IACvC,QAAQ,CAAS;IAEjB,YAAY,QAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,oBAAoB;CAAG;AAEvE;;GAEG;AACH,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;CAAG;AAE1E;;;GAGG;AACH,MAAM,OAAO,oBAAqB,SAAQ,oBAAoB;CAAG","sourcesContent":["/**\n * Cancellable event base class for form actions.\n * Allows event handlers to cancel default behavior by setting Cancel = true.\n */\nexport class CancellableFormEvent {\n /**\n * Set to true to cancel the default behavior of this event.\n * Default: false\n */\n Cancel = false;\n}\n\n/**\n * Event args for BeforeSave event\n */\nexport class BeforeSaveEventArgs extends CancellableFormEvent {\n /**\n * Whether validation should be performed before save\n */\n ValidateBeforeSave: boolean;\n\n constructor(validateBeforeSave: boolean) {\n super();\n this.ValidateBeforeSave = validateBeforeSave;\n }\n}\n\n/**\n * Event args for BeforeDelete event\n */\nexport class BeforeDeleteEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeRefresh event\n */\nexport class BeforeRefreshEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeCancel event\n */\nexport class BeforeCancelEventArgs extends CancellableFormEvent {}\n\n/**\n * Fired before the container commits accordion vs left-nav. Cancel to keep\n * the previously applied chrome.\n */\nexport class BeforeLayoutResolveEventArgs extends CancellableFormEvent {\n Layout: 'accordion' | 'left-nav';\n\n constructor(layout: 'accordion' | 'left-nav') {\n super();\n this.Layout = layout;\n }\n}\n\n/**\n * Fired after chrome has been applied.\n */\nexport class AfterLayoutResolvedEventArgs {\n Layout: 'accordion' | 'left-nav';\n\n constructor(layout: 'accordion' | 'left-nav') {\n this.Layout = layout;\n }\n}\n\n/**\n * Fired before a left-nav group is activated or More is expanded. Cancel\n * to keep the current group (dirty-guard hook).\n */\nexport class BeforeSectionActivateEventArgs extends CancellableFormEvent {\n GroupKey: string;\n\n constructor(groupKey: string) {\n super();\n this.GroupKey = groupKey;\n }\n}\n\n/**\n * Fired after a left-nav group is activated or More is expanded.\n */\nexport class AfterSectionActivatedEventArgs {\n GroupKey: string;\n\n constructor(groupKey: string) {\n this.GroupKey = groupKey;\n }\n}\n\n/**\n * Event args for BeforeHistoryView event\n */\nexport class BeforeHistoryViewEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeListManagement event\n */\nexport class BeforeListManagementEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for BeforeClone event. Set `Cancel` to suppress the built-in clone slide-in,\n * e.g. to open a host-specific clone flow instead.\n */\nexport class BeforeCloneEventArgs extends CancellableFormEvent {}\n\n/**\n * Event args for custom toolbar button clicks\n */\nexport interface CustomToolbarButtonClickEventArgs {\n /**\n * The key/identifier of the button that was clicked\n */\n ButtonKey: string;\n\n /**\n * The button configuration that was clicked\n */\n Button: CustomToolbarButton;\n}\n\n/**\n * Configuration for a custom toolbar button\n */\nexport interface CustomToolbarButton {\n /**\n * Unique identifier for this button\n */\n Key: string;\n\n /**\n * Display name/label for the button (used for accessibility)\n */\n Name: string;\n\n /**\n * Tooltip text shown on hover\n */\n Description: string;\n\n /**\n * Font Awesome icon class (e.g., \"fa-solid fa-star\")\n */\n Icon: string;\n\n /**\n * Whether the button should be visible\n * Default: true\n */\n Visible?: boolean;\n\n /**\n * Whether the button should be disabled\n * Default: false\n */\n Disabled?: boolean;\n\n /**\n * Optional CSS class to apply to the button\n */\n CssClass?: string;\n}\n"]}
@@ -2,7 +2,7 @@ import { BaseEntity } from '@memberjunction/core';
2
2
  /**
3
3
  * Well-known keys for built-in standard form toolbar buttons.
4
4
  */
5
- export type StandardToolbarItemKey = 'edit' | 'delete' | 'favorite' | 'history' | 'list' | 'tags' | 'attachments' | 'refresh';
5
+ export type StandardToolbarItemKey = 'edit' | 'delete' | 'favorite' | 'history' | 'list' | 'tags' | 'attachments' | 'refresh' | 'clone';
6
6
  /**
7
7
  * Union of standard toolbar item keys and any custom button key.
8
8
  */
@@ -88,6 +88,10 @@ export interface FormToolbarItemConfig {
88
88
  * - tags: 60
89
89
  * - attachments: 70
90
90
  * Custom action items default to 100 unless specified (e.g. 5 to appear before Edit).
91
+ *
92
+ * In read mode the toolbar renders inline items (Edit and non-pinnable custom items) first, in
93
+ * `Order`, then the user's pinned items in the order they were pinned; `Order` also sorts the
94
+ * More menu. So a custom inline item with the default 100 sits after Edit and before the pins.
91
95
  */
92
96
  Order?: number;
93
97
  /**
@@ -116,6 +120,17 @@ export interface FormToolbarItemConfig {
116
120
  * Optional custom CSS class name to append to the button element.
117
121
  */
118
122
  CssClass?: string;
123
+ /**
124
+ * Label for the item in the toolbar's More menu. Defaults to `Text`, then `Description`.
125
+ */
126
+ MenuLabel?: string;
127
+ /**
128
+ * Whether the item takes part in per-user pinning: shown as a button only when the user pins
129
+ * it, otherwise listed in the More menu. Built-in items (except Edit) are pinnable. Custom
130
+ * items default to false and always render inline, so app-specific actions stay in view.
131
+ * Inline items render before pinned ones regardless of `Order` (see {@link Order}).
132
+ */
133
+ Pinnable?: boolean;
119
134
  /**
120
135
  * Handler function invoked when the button is clicked.
121
136
  */
@@ -140,6 +155,10 @@ export interface ResolvedToolbarItem {
140
155
  IsLoading: boolean;
141
156
  CssClass: string;
142
157
  IsStandard: boolean;
158
+ /** Label used in the More menu. */
159
+ MenuLabel: string;
160
+ /** Whether the item is pinned or listed in the More menu rather than always inline. */
161
+ Pinnable: boolean;
143
162
  Config: FormToolbarItemConfig;
144
163
  }
145
164
  //# sourceMappingURL=form-toolbar-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-toolbar-item.d.ts","sourceRoot":"","sources":["../../../src/lib/types/form-toolbar-item.ts"],"names":[],"mappings":"AA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AEG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,oBAAoB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,qBAAqB,CAAC;CAC/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-toolbar-item.js","sourceRoot":"","sources":["../../../src/lib/types/form-toolbar-item.ts"],"names":[],"mappings":"","sourcesContent":["import { BaseEntity } from '@memberjunction/core';\n\n/**\n * Well-known keys for built-in standard form toolbar buttons.\n */\nexport type StandardToolbarItemKey =\n | 'edit'\n | 'delete'\n | 'favorite'\n | 'history'\n | 'list'\n | 'tags'\n | 'attachments'\n | 'refresh';\n\n/**\n * Union of standard toolbar item keys and any custom button key.\n */\nexport type FormToolbarItemKey = StandardToolbarItemKey | (string & {});\n\n/**\n * Visual styling variant for toolbar buttons.\n */\nexport type ToolbarItemVariant =\n | 'default'\n | 'primary'\n | 'secondary'\n | 'accent'\n | 'danger'\n | 'ghost';\n\n/**\n * Placement group for toolbar buttons:\n * - 'actions': the main action button group on the left side (alongside Edit/Delete/Favorite)\n * - 'right': right side (before section search & controls)\n * - 'overflow': secondary / overflow menu for lower-frequency actions\n */\nexport type ToolbarItemPlacement = 'actions' | 'right' | 'overflow';\n\n/**\n * When the toolbar item should be available:\n * - 'read': only in read mode (default)\n * - 'edit': only in edit mode\n * - 'both': in both read and edit modes\n */\nexport type ToolbarItemMode = 'read' | 'edit' | 'both';\n\n/**\n * Event arguments emitted or passed to handlers when a toolbar item is clicked.\n */\nexport interface FormToolbarItemClickEventArgs {\n /** The unique key of the clicked toolbar item */\n ItemKey: string;\n\n /** The configuration of the clicked toolbar item */\n Item: FormToolbarItemConfig;\n\n /** The entity record being viewed/edited */\n Record: BaseEntity;\n\n /** Whether the form is currently in edit mode */\n EditMode: boolean;\n\n /** Optional reference to the host form component */\n FormComponent?: unknown;\n\n /** Set to true to cancel default behavior (if applicable) */\n Cancel?: boolean;\n}\n\n/**\n * Configuration for registering or customizing a form toolbar item (action button).\n *\n * Supports dynamic predicates for visibility, enabled/disabled state (with optional\n * disabled reason tooltips), badges, and async click handlers.\n */\nexport interface FormToolbarItemConfig {\n /**\n * Unique identifier for this toolbar item (e.g. 'confirm-order', 'post', 'edit').\n */\n Key: string;\n\n /**\n * Optional button label text (e.g. \"Confirm Order\").\n */\n Text?: string;\n\n /**\n * Tooltip text shown on hover when enabled.\n */\n Description?: string;\n\n /**\n * FontAwesome icon class (e.g. \"fa-solid fa-check-double\", \"fa-solid fa-calculator\").\n */\n Icon?: string;\n\n /**\n * Visual styling variant. Default: 'default' (or 'primary' for key actions).\n */\n Variant?: ToolbarItemVariant;\n\n /**\n * In which mode(s) this button should appear. Default: 'read'.\n */\n Mode?: ToolbarItemMode;\n\n /**\n * Placement group in the toolbar. Default: 'actions'.\n */\n Placement?: ToolbarItemPlacement;\n\n /**\n * Numeric sort order within its placement group. Lower numbers appear first.\n * Standard built-in items default to:\n * - edit: 10\n * - delete: 20\n * - favorite: 30\n * - history: 40\n * - list: 50\n * - tags: 60\n * - attachments: 70\n * Custom action items default to 100 unless specified (e.g. 5 to appear before Edit).\n */\n Order?: number;\n\n /**\n * Whether the button is visible. Can be a boolean or a reactive predicate function.\n * Default: true.\n */\n Visible?: boolean | ((record: BaseEntity, editMode: boolean) => boolean);\n\n /**\n * Whether the button is disabled.\n * Can be:\n * - `boolean`: true = disabled, false = enabled\n * - `string`: disabled, and the string is used as the tooltip explaining why (e.g. \"Save draft changes first\")\n * - `predicate function`: returning boolean or reason string\n * Default: false.\n */\n Disabled?: boolean | string | ((record: BaseEntity, editMode: boolean) => boolean | string);\n\n /**\n * Optional badge count or text (e.g. \"v3\", 5).\n */\n Badge?: string | number | ((record: BaseEntity) => string | number | null | undefined);\n\n /**\n * Whether to display a loading spinner on the button while an operation is in progress.\n */\n IsLoading?: boolean | ((record: BaseEntity, editMode: boolean) => boolean);\n\n /**\n * Optional custom CSS class name to append to the button element.\n */\n CssClass?: string;\n\n /**\n * Handler function invoked when the button is clicked.\n */\n OnClick?: (event: FormToolbarItemClickEventArgs) => Promise<void> | void;\n}\n\n/**\n * Resolved runtime state of a toolbar item, evaluated against the active record and edit mode.\n */\nexport interface ResolvedToolbarItem {\n Key: string;\n Text: string;\n Description: string;\n Icon: string;\n Variant: ToolbarItemVariant;\n Mode: ToolbarItemMode;\n Placement: ToolbarItemPlacement;\n Order: number;\n Visible: boolean;\n Disabled: boolean;\n DisabledReason?: string;\n Badge?: string | number;\n IsLoading: boolean;\n CssClass: string;\n IsStandard: boolean;\n Config: FormToolbarItemConfig;\n}\n"]}
1
+ {"version":3,"file":"form-toolbar-item.js","sourceRoot":"","sources":["../../../src/lib/types/form-toolbar-item.ts"],"names":[],"mappings":"","sourcesContent":["import { BaseEntity } from '@memberjunction/core';\n\n/**\n * Well-known keys for built-in standard form toolbar buttons.\n */\nexport type StandardToolbarItemKey =\n | 'edit'\n | 'delete'\n | 'favorite'\n | 'history'\n | 'list'\n | 'tags'\n | 'attachments'\n | 'refresh'\n | 'clone';\n\n/**\n * Union of standard toolbar item keys and any custom button key.\n */\nexport type FormToolbarItemKey = StandardToolbarItemKey | (string & {});\n\n/**\n * Visual styling variant for toolbar buttons.\n */\nexport type ToolbarItemVariant =\n | 'default'\n | 'primary'\n | 'secondary'\n | 'accent'\n | 'danger'\n | 'ghost';\n\n/**\n * Placement group for toolbar buttons:\n * - 'actions': the main action button group on the left side (alongside Edit/Delete/Favorite)\n * - 'right': right side (before section search & controls)\n * - 'overflow': secondary / overflow menu for lower-frequency actions\n */\nexport type ToolbarItemPlacement = 'actions' | 'right' | 'overflow';\n\n/**\n * When the toolbar item should be available:\n * - 'read': only in read mode (default)\n * - 'edit': only in edit mode\n * - 'both': in both read and edit modes\n */\nexport type ToolbarItemMode = 'read' | 'edit' | 'both';\n\n/**\n * Event arguments emitted or passed to handlers when a toolbar item is clicked.\n */\nexport interface FormToolbarItemClickEventArgs {\n /** The unique key of the clicked toolbar item */\n ItemKey: string;\n\n /** The configuration of the clicked toolbar item */\n Item: FormToolbarItemConfig;\n\n /** The entity record being viewed/edited */\n Record: BaseEntity;\n\n /** Whether the form is currently in edit mode */\n EditMode: boolean;\n\n /** Optional reference to the host form component */\n FormComponent?: unknown;\n\n /** Set to true to cancel default behavior (if applicable) */\n Cancel?: boolean;\n}\n\n/**\n * Configuration for registering or customizing a form toolbar item (action button).\n *\n * Supports dynamic predicates for visibility, enabled/disabled state (with optional\n * disabled reason tooltips), badges, and async click handlers.\n */\nexport interface FormToolbarItemConfig {\n /**\n * Unique identifier for this toolbar item (e.g. 'confirm-order', 'post', 'edit').\n */\n Key: string;\n\n /**\n * Optional button label text (e.g. \"Confirm Order\").\n */\n Text?: string;\n\n /**\n * Tooltip text shown on hover when enabled.\n */\n Description?: string;\n\n /**\n * FontAwesome icon class (e.g. \"fa-solid fa-check-double\", \"fa-solid fa-calculator\").\n */\n Icon?: string;\n\n /**\n * Visual styling variant. Default: 'default' (or 'primary' for key actions).\n */\n Variant?: ToolbarItemVariant;\n\n /**\n * In which mode(s) this button should appear. Default: 'read'.\n */\n Mode?: ToolbarItemMode;\n\n /**\n * Placement group in the toolbar. Default: 'actions'.\n */\n Placement?: ToolbarItemPlacement;\n\n /**\n * Numeric sort order within its placement group. Lower numbers appear first.\n * Standard built-in items default to:\n * - edit: 10\n * - delete: 20\n * - favorite: 30\n * - history: 40\n * - list: 50\n * - tags: 60\n * - attachments: 70\n * Custom action items default to 100 unless specified (e.g. 5 to appear before Edit).\n *\n * In read mode the toolbar renders inline items (Edit and non-pinnable custom items) first, in\n * `Order`, then the user's pinned items in the order they were pinned; `Order` also sorts the\n * More menu. So a custom inline item with the default 100 sits after Edit and before the pins.\n */\n Order?: number;\n\n /**\n * Whether the button is visible. Can be a boolean or a reactive predicate function.\n * Default: true.\n */\n Visible?: boolean | ((record: BaseEntity, editMode: boolean) => boolean);\n\n /**\n * Whether the button is disabled.\n * Can be:\n * - `boolean`: true = disabled, false = enabled\n * - `string`: disabled, and the string is used as the tooltip explaining why (e.g. \"Save draft changes first\")\n * - `predicate function`: returning boolean or reason string\n * Default: false.\n */\n Disabled?: boolean | string | ((record: BaseEntity, editMode: boolean) => boolean | string);\n\n /**\n * Optional badge count or text (e.g. \"v3\", 5).\n */\n Badge?: string | number | ((record: BaseEntity) => string | number | null | undefined);\n\n /**\n * Whether to display a loading spinner on the button while an operation is in progress.\n */\n IsLoading?: boolean | ((record: BaseEntity, editMode: boolean) => boolean);\n\n /**\n * Optional custom CSS class name to append to the button element.\n */\n CssClass?: string;\n\n /**\n * Label for the item in the toolbar's More menu. Defaults to `Text`, then `Description`.\n */\n MenuLabel?: string;\n\n /**\n * Whether the item takes part in per-user pinning: shown as a button only when the user pins\n * it, otherwise listed in the More menu. Built-in items (except Edit) are pinnable. Custom\n * items default to false and always render inline, so app-specific actions stay in view.\n * Inline items render before pinned ones regardless of `Order` (see {@link Order}).\n */\n Pinnable?: boolean;\n\n /**\n * Handler function invoked when the button is clicked.\n */\n OnClick?: (event: FormToolbarItemClickEventArgs) => Promise<void> | void;\n}\n\n/**\n * Resolved runtime state of a toolbar item, evaluated against the active record and edit mode.\n */\nexport interface ResolvedToolbarItem {\n Key: string;\n Text: string;\n Description: string;\n Icon: string;\n Variant: ToolbarItemVariant;\n Mode: ToolbarItemMode;\n Placement: ToolbarItemPlacement;\n Order: number;\n Visible: boolean;\n Disabled: boolean;\n DisabledReason?: string;\n Badge?: string | number;\n IsLoading: boolean;\n CssClass: string;\n IsStandard: boolean;\n /** Label used in the More menu. */\n MenuLabel: string;\n /** Whether the item is pinned or listed in the More menu rather than always inline. */\n Pinnable: boolean;\n Config: FormToolbarItemConfig;\n}\n"]}
@@ -111,6 +111,19 @@ export interface FormContext {
111
111
  showRelatedEntities?: boolean;
112
112
  hiddenSectionKeys?: string[];
113
113
  visibleSectionKeys?: string[];
114
+ /**
115
+ * Fields a form contribution stands in for, so no section draws them. The panel that
116
+ * made the claim renders at the top of the section that held the field.
117
+ *
118
+ * Field-level, where `hiddenSectionKeys` is section-level: one removes an input from
119
+ * inside a card, the other removes the card.
120
+ */
121
+ claimedFieldNames?: string[];
122
+ /**
123
+ * Field names to omit from the form. A draft evaluation uses this to hide
124
+ * cohort figures until the viewer submits.
125
+ */
126
+ hiddenFieldNames?: string[];
114
127
  }
115
128
  /**
116
129
  * Result of a form save operation.
@@ -1 +1 @@
1
- {"version":3,"file":"form-types.d.ts","sourceRoot":"","sources":["../../../src/lib/types/form-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,gBAAgB,GAAG,WAAW,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,wGAAwG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C,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAC/C,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAE1C;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,WAAW,CAOtD;AAED,wDAAwD;AACxD,wBAAgB,wBAAwB,IAAI,WAAW,CAEtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-types.js","sourceRoot":"","sources":["../../../src/lib/types/form-types.ts"],"names":[],"mappings":"AA2MA;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO;QACL,aAAa,EAAE,EAAE;QACjB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;QACrB,gBAAgB,EAAE,EAAE;KACrB,CAAC;AACJ,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,wBAAwB;IACtC,OAAO,wBAAwB,EAAE,CAAC;AACpC,CAAC","sourcesContent":["import type { BaseEntity } from '@memberjunction/core';\nimport { ValidationErrorInfo } from '@memberjunction/global';\n\n/**\n * Width mode for the form panels container.\n * - 'centered': Max-width constrained and centered (default, good for readability)\n * - 'full-width': No max-width constraint, uses full available width\n */\nexport type FormWidthMode = 'centered' | 'full-width';\n\n/**\n * Variant for collapsible panel styling.\n * - 'default': Standard white card with accent border\n * - 'related-entity': Blue-accented card for related entity grid sections\n * - 'inherited': Purple-accented card for IS-A inherited field sections\n */\nexport type PanelVariant = 'default' | 'related-entity' | 'inherited';\n\n/**\n * Information about a section within the form.\n * Used to initialize and track section state.\n *\n * @template M Optional metadata type for custom per-section data\n */\nexport interface FormSectionInfo<M = unknown> {\n /** Unique key for this section (used in state persistence) */\n SectionKey: string;\n /** Display name shown in the panel header */\n SectionName: string;\n /** Whether the section starts expanded. Default: true for field sections, false for related entities */\n IsExpanded: boolean;\n /** Row count for related entity sections (shown as badge) */\n RowCount?: number;\n /** Custom metadata attached to this section */\n Metadata?: M;\n /** Panel variant for styling */\n Variant?: PanelVariant;\n /** Font Awesome icon class for the section header */\n Icon?: string;\n /**\n * If set, indicates this section contains fields inherited from a parent entity.\n * The value is the parent entity name (e.g., \"Products\" for a Meeting IS-A Product).\n */\n InheritedFromEntity?: string;\n}\n\n/**\n * Event emitted when a panel drag-to-reorder operation starts.\n */\nexport interface PanelDragStartEvent {\n SectionKey: string;\n Event: DragEvent;\n}\n\n/**\n * Event emitted when a panel is dropped onto another panel for reordering.\n */\nexport interface PanelDropEvent {\n SourceSectionKey: string;\n TargetSectionKey: string;\n}\n\n/**\n * Context object passed from the form to all child components (panels, fields).\n * Eliminates the need for many individual @Input properties.\n *\n * Property names use camelCase to maintain structural compatibility with\n * {@link BaseFormContext} from `@memberjunction/ng-base-forms`. This allows\n * BaseFormComponent.formContext to be passed directly to ng-forms components.\n */\nexport interface FormContext {\n /** Current search filter string for highlighting/filtering sections and fields */\n sectionFilter?: string;\n /** Whether to show fields that have empty values in read-only mode */\n showEmptyFields?: boolean;\n /**\n * When true, all fields show their validation errors regardless of touched state.\n * Set to true after a failed save attempt; reset on successful save or cancel.\n */\n showValidation?: boolean;\n /**\n * Validation errors from the most recent full-record Validate() call.\n * Fields filter by `ValidationErrorInfo.Source === FieldName` to find their errors.\n */\n validationErrors?: ValidationErrorInfo[];\n /**\n * Increments every time the form publishes a fresh set of `validationErrors` (each failed save).\n * A field compares it with the revision current when the user last edited it: an edit made AFTER\n * the failure means the user is addressing the error, so the field goes back to its own live\n * validation; an edit made BEFORE it must not hide an error the save just reported — which is what\n * happened to a server-side `ValidateAsync()` refusal on the very field the user had just typed in.\n */\n validationRevision?: number;\n /** Whether drag-and-drop section reordering is allowed. Read by panels to show/hide drag handles. */\n allowSectionReorder?: boolean;\n /**\n * Whether section headers may collapse/expand. When false, panels render\n * always-expanded with no toggle chevron. Read by collapsible panels.\n * Undefined / true means collapsible (the default).\n */\n collapsibleSections?: boolean;\n /**\n * Whether in-form record (FK) links are interactive. When false, FK values\n * render as plain text instead of clickable links — used by dialog/slide-in\n * surfaces so a modal context doesn't navigate the user away. Undefined /\n * true means links are live (the default).\n */\n enableRecordLinks?: boolean;\n /**\n * Section-visibility rules, propagated from {@link EntityFormConfig}. Read by\n * every collapsible panel — including slot-injected `BaseFormPanel`s — so\n * per-instance show/hide applies uniformly across generated, custom, and\n * injected sections. `showRelatedEntities === false` hides related-entity\n * panels; `hiddenSectionKeys` / `visibleSectionKeys` (allow-list) target\n * specific section keys.\n */\n showRelatedEntities?: boolean;\n hiddenSectionKeys?: string[];\n visibleSectionKeys?: string[];\n}\n\n/**\n * Result of a form save operation.\n */\nexport interface FormSaveResult {\n /** Whether the save was successful */\n Success: boolean;\n /** Error message if save failed */\n ErrorMessage?: string;\n /** Number of milliseconds the save took */\n DurationMs?: number;\n}\n\n/**\n * Event emitted after a record is saved.\n */\nexport interface RecordSavedEvent {\n EntityName: string;\n RecordId: string;\n /** The display name of the saved record (for tab title updates, etc.) */\n RecordDisplayName?: string;\n Result: FormSaveResult;\n}\n\n/**\n * Event emitted after a saved record is reloaded from the database in place.\n */\nexport interface RecordRefreshedEvent {\n EntityName: string;\n Record: BaseEntity;\n}\n\n/**\n * Event emitted after a record is deleted.\n */\nexport interface RecordDeletedEvent {\n EntityName: string;\n RecordId: string;\n}\n\n/**\n * Event emitted when a record save fails.\n */\nexport interface RecordSaveFailedEvent {\n EntityName: string;\n ErrorMessage: string;\n}\n\n/**\n * Event emitted when a record delete fails.\n */\nexport interface RecordDeleteFailedEvent {\n EntityName: string;\n ErrorMessage: string;\n}\n\n/**\n * Event emitted when validation fails before save.\n */\nexport interface ValidationFailedEvent {\n EntityName: string;\n Errors: string[];\n}\n\n/**\n * Notification event emitted by BaseFormComponent.\n * The host application subscribes and maps to its own notification system (toasts, snackbars, etc.).\n */\nexport interface FormNotificationEvent {\n /** The notification message text */\n Message: string;\n /** Notification severity */\n Type: 'success' | 'error' | 'warning' | 'info';\n /** Duration in milliseconds the notification should display */\n Duration: number;\n}\n\n/**\n * Backward-compatible alias for FormContext.\n * Explorer's BaseFormComponent used this name; new code should use FormContext.\n */\nexport type BaseFormContext = FormContext;\n\n/**\n * Creates a default FormContext with sensible defaults.\n */\nexport function CreateDefaultFormContext(): FormContext {\n return {\n sectionFilter: '',\n showEmptyFields: false,\n showValidation: false,\n validationErrors: []\n };\n}\n\n/** @deprecated Use {@link CreateDefaultFormContext}. */\nexport function createDefaultFormContext(): FormContext {\n return CreateDefaultFormContext();\n}\n"]}
1
+ {"version":3,"file":"form-types.js","sourceRoot":"","sources":["../../../src/lib/types/form-types.ts"],"names":[],"mappings":"AAwNA;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO;QACL,aAAa,EAAE,EAAE;QACjB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;QACrB,gBAAgB,EAAE,EAAE;KACrB,CAAC;AACJ,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,wBAAwB;IACtC,OAAO,wBAAwB,EAAE,CAAC;AACpC,CAAC","sourcesContent":["import type { BaseEntity } from '@memberjunction/core';\nimport { ValidationErrorInfo } from '@memberjunction/global';\n\n/**\n * Width mode for the form panels container.\n * - 'centered': Max-width constrained and centered (default, good for readability)\n * - 'full-width': No max-width constraint, uses full available width\n */\nexport type FormWidthMode = 'centered' | 'full-width';\n\n/**\n * Variant for collapsible panel styling.\n * - 'default': Standard white card with accent border\n * - 'related-entity': Blue-accented card for related entity grid sections\n * - 'inherited': Purple-accented card for IS-A inherited field sections\n */\nexport type PanelVariant = 'default' | 'related-entity' | 'inherited';\n\n/**\n * Information about a section within the form.\n * Used to initialize and track section state.\n *\n * @template M Optional metadata type for custom per-section data\n */\nexport interface FormSectionInfo<M = unknown> {\n /** Unique key for this section (used in state persistence) */\n SectionKey: string;\n /** Display name shown in the panel header */\n SectionName: string;\n /** Whether the section starts expanded. Default: true for field sections, false for related entities */\n IsExpanded: boolean;\n /** Row count for related entity sections (shown as badge) */\n RowCount?: number;\n /** Custom metadata attached to this section */\n Metadata?: M;\n /** Panel variant for styling */\n Variant?: PanelVariant;\n /** Font Awesome icon class for the section header */\n Icon?: string;\n /**\n * If set, indicates this section contains fields inherited from a parent entity.\n * The value is the parent entity name (e.g., \"Products\" for a Meeting IS-A Product).\n */\n InheritedFromEntity?: string;\n}\n\n/**\n * Event emitted when a panel drag-to-reorder operation starts.\n */\nexport interface PanelDragStartEvent {\n SectionKey: string;\n Event: DragEvent;\n}\n\n/**\n * Event emitted when a panel is dropped onto another panel for reordering.\n */\nexport interface PanelDropEvent {\n SourceSectionKey: string;\n TargetSectionKey: string;\n}\n\n/**\n * Context object passed from the form to all child components (panels, fields).\n * Eliminates the need for many individual @Input properties.\n *\n * Property names use camelCase to maintain structural compatibility with\n * {@link BaseFormContext} from `@memberjunction/ng-base-forms`. This allows\n * BaseFormComponent.formContext to be passed directly to ng-forms components.\n */\nexport interface FormContext {\n /** Current search filter string for highlighting/filtering sections and fields */\n sectionFilter?: string;\n /** Whether to show fields that have empty values in read-only mode */\n showEmptyFields?: boolean;\n /**\n * When true, all fields show their validation errors regardless of touched state.\n * Set to true after a failed save attempt; reset on successful save or cancel.\n */\n showValidation?: boolean;\n /**\n * Validation errors from the most recent full-record Validate() call.\n * Fields filter by `ValidationErrorInfo.Source === FieldName` to find their errors.\n */\n validationErrors?: ValidationErrorInfo[];\n /**\n * Increments every time the form publishes a fresh set of `validationErrors` (each failed save).\n * A field compares it with the revision current when the user last edited it: an edit made AFTER\n * the failure means the user is addressing the error, so the field goes back to its own live\n * validation; an edit made BEFORE it must not hide an error the save just reported — which is what\n * happened to a server-side `ValidateAsync()` refusal on the very field the user had just typed in.\n */\n validationRevision?: number;\n /** Whether drag-and-drop section reordering is allowed. Read by panels to show/hide drag handles. */\n allowSectionReorder?: boolean;\n /**\n * Whether section headers may collapse/expand. When false, panels render\n * always-expanded with no toggle chevron. Read by collapsible panels.\n * Undefined / true means collapsible (the default).\n */\n collapsibleSections?: boolean;\n /**\n * Whether in-form record (FK) links are interactive. When false, FK values\n * render as plain text instead of clickable links — used by dialog/slide-in\n * surfaces so a modal context doesn't navigate the user away. Undefined /\n * true means links are live (the default).\n */\n enableRecordLinks?: boolean;\n /**\n * Section-visibility rules, propagated from {@link EntityFormConfig}. Read by\n * every collapsible panel — including slot-injected `BaseFormPanel`s — so\n * per-instance show/hide applies uniformly across generated, custom, and\n * injected sections. `showRelatedEntities === false` hides related-entity\n * panels; `hiddenSectionKeys` / `visibleSectionKeys` (allow-list) target\n * specific section keys.\n */\n showRelatedEntities?: boolean;\n hiddenSectionKeys?: string[];\n visibleSectionKeys?: string[];\n /**\n * Fields a form contribution stands in for, so no section draws them. The panel that\n * made the claim renders at the top of the section that held the field.\n *\n * Field-level, where `hiddenSectionKeys` is section-level: one removes an input from\n * inside a card, the other removes the card.\n */\n claimedFieldNames?: string[];\n /**\n * Field names to omit from the form. A draft evaluation uses this to hide\n * cohort figures until the viewer submits.\n */\n hiddenFieldNames?: string[];\n}\n\n/**\n * Result of a form save operation.\n */\nexport interface FormSaveResult {\n /** Whether the save was successful */\n Success: boolean;\n /** Error message if save failed */\n ErrorMessage?: string;\n /** Number of milliseconds the save took */\n DurationMs?: number;\n}\n\n/**\n * Event emitted after a record is saved.\n */\nexport interface RecordSavedEvent {\n EntityName: string;\n RecordId: string;\n /** The display name of the saved record (for tab title updates, etc.) */\n RecordDisplayName?: string;\n Result: FormSaveResult;\n}\n\n/**\n * Event emitted after a saved record is reloaded from the database in place.\n */\nexport interface RecordRefreshedEvent {\n EntityName: string;\n Record: BaseEntity;\n}\n\n/**\n * Event emitted after a record is deleted.\n */\nexport interface RecordDeletedEvent {\n EntityName: string;\n RecordId: string;\n}\n\n/**\n * Event emitted when a record save fails.\n */\nexport interface RecordSaveFailedEvent {\n EntityName: string;\n ErrorMessage: string;\n}\n\n/**\n * Event emitted when a record delete fails.\n */\nexport interface RecordDeleteFailedEvent {\n EntityName: string;\n ErrorMessage: string;\n}\n\n/**\n * Event emitted when validation fails before save.\n */\nexport interface ValidationFailedEvent {\n EntityName: string;\n Errors: string[];\n}\n\n/**\n * Notification event emitted by BaseFormComponent.\n * The host application subscribes and maps to its own notification system (toasts, snackbars, etc.).\n */\nexport interface FormNotificationEvent {\n /** The notification message text */\n Message: string;\n /** Notification severity */\n Type: 'success' | 'error' | 'warning' | 'info';\n /** Duration in milliseconds the notification should display */\n Duration: number;\n}\n\n/**\n * Backward-compatible alias for FormContext.\n * Explorer's BaseFormComponent used this name; new code should use FormContext.\n */\nexport type BaseFormContext = FormContext;\n\n/**\n * Creates a default FormContext with sensible defaults.\n */\nexport function CreateDefaultFormContext(): FormContext {\n return {\n sectionFilter: '',\n showEmptyFields: false,\n showValidation: false,\n validationErrors: []\n };\n}\n\n/** @deprecated Use {@link CreateDefaultFormContext}. */\nexport function createDefaultFormContext(): FormContext {\n return CreateDefaultFormContext();\n}\n"]}
@@ -34,6 +34,12 @@ export interface FormToolbarConfig {
34
34
  ShowTagsButton: boolean;
35
35
  /** Show the Attachments button for viewing/managing linked file attachments. Default: true */
36
36
  ShowAttachmentsButton: boolean;
37
+ /**
38
+ * Show the Clone action for saved records, which opens the `ng-record-clone` slide-in.
39
+ * The button still appears only when the entity's `Configuration.Clone.Enabled` is true
40
+ * and `RecordClone.Describe` says the user may clone it. Omitted means off.
41
+ */
42
+ ShowCloneButton?: boolean;
37
43
  /**
38
44
  * Show the **form-variant picker** button — a right-side toolbar button
39
45
  * (form icon) that opens a dropdown of available `EntityFormOverride`
@@ -76,6 +82,16 @@ export interface FormToolbarConfig {
76
82
  AllowSectionReorder: boolean;
77
83
  /** Show the "Manage Sections" button (section manager drawer). Default: true */
78
84
  ShowSectionManager: boolean;
85
+ /**
86
+ * How many pinnable actions a user may pin as toolbar buttons; the rest are in the More menu.
87
+ * The same for every user and screen width. Default: 3.
88
+ */
89
+ MaxPinnedActions?: number;
90
+ /**
91
+ * Pinnable actions shown as buttons for a user who has not chosen their own pins yet.
92
+ * Default: `['favorite', 'history']`.
93
+ */
94
+ DefaultPinnedActions?: string[];
79
95
  /**
80
96
  * Whether the toolbar should be sticky at the top when scrolling.
81
97
  * Default: true
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar-config.d.ts","sourceRoot":"","sources":["../../../src/lib/types/toolbar-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,iBAAiB;IAGhC,uDAAuD;IACvD,cAAc,EAAE,OAAO,CAAC;IAExB,yDAAyD;IACzD,gBAAgB,EAAE,OAAO,CAAC;IAE1B,yFAAyF;IACzF,iBAAiB,EAAE,OAAO,CAAC;IAE3B,yDAAyD;IACzD,kBAAkB,EAAE,OAAO,CAAC;IAE5B,oFAAoF;IACpF,iBAAiB,EAAE,OAAO,CAAC;IAE3B,wEAAwE;IACxE,cAAc,EAAE,OAAO,CAAC;IAExB,mFAAmF;IACnF,cAAc,EAAE,OAAO,CAAC;IAExB,8FAA8F;IAC9F,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;;;;;;;;OASG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B,+DAA+D;IAC/D,mBAAmB,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B,kEAAkE;IAClE,cAAc,EAAE,OAAO,CAAC;IAExB,iFAAiF;IACjF,iBAAiB,EAAE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,OAAO,CAAC;IAE/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;OASG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B,+DAA+D;IAC/D,mBAAmB,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAE7B,kEAAkE;IAClE,cAAc,EAAE,OAAO,CAAC;IAExB,iFAAiF;IACjF,iBAAiB,EAAE,OAAO,CAAC;IAE3B,0DAA0D;IAC1D,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;;;OAKG;IACH,4BAA4B,EAAE,OAAO,CAAC;IAEtC;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB,4DAA4D;IAC5D,mBAAmB,EAAE,OAAO,CAAC;IAE7B,gFAAgF;IAChF,kBAAkB,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAIhC;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IAIvB;;;OAGG;IACH,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAE/C;;;OAGG;IACH,aAAa,EAAE,mBAAmB,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAuBpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,iBAuBrC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAuB1C,CAAC"}
@@ -11,6 +11,7 @@ export const DEFAULT_TOOLBAR_CONFIG = {
11
11
  ShowListButton: true,
12
12
  ShowTagsButton: true,
13
13
  ShowAttachmentsButton: true,
14
+ ShowCloneButton: true,
14
15
  ShowFormVariantPicker: true,
15
16
  ShowEntityHierarchy: true,
16
17
  ShowSectionControls: true,
@@ -39,6 +40,7 @@ export const EXPLORER_TOOLBAR_CONFIG = {
39
40
  ShowListButton: true,
40
41
  ShowTagsButton: true,
41
42
  ShowAttachmentsButton: true,
43
+ ShowCloneButton: true,
42
44
  ShowFormVariantPicker: true,
43
45
  ShowEntityHierarchy: true,
44
46
  ShowSectionControls: true,
@@ -71,6 +73,7 @@ export const CUSTOM_LAYOUT_TOOLBAR_CONFIG = {
71
73
  ShowListButton: true,
72
74
  ShowTagsButton: true,
73
75
  ShowAttachmentsButton: true,
76
+ ShowCloneButton: true,
74
77
  ShowFormVariantPicker: true,
75
78
  ShowEntityHierarchy: true,
76
79
  ShowSectionControls: false, // ← hides the whole right group
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar-config.js","sourceRoot":"","sources":["../../../src/lib/types/toolbar-config.ts"],"names":[],"mappings":"AA0HA;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAC3B,qBAAqB,EAAE,IAAI;IAC3B,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,4BAA4B,EAAE,IAAI;IAClC,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB;IACxD,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAC3B,qBAAqB,EAAE,IAAI;IAC3B,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,4BAA4B,EAAE,IAAI;IAClC,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAC3B,qBAAqB,EAAE,IAAI;IAC3B,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,KAAK,EAAa,gCAAgC;IACvE,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,KAAK;IACxB,4BAA4B,EAAE,KAAK;IACnC,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,KAAK;IAC1B,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,EAAE;CAClB,CAAC","sourcesContent":["import { TemplateRef } from '@angular/core';\nimport { CustomToolbarButton } from './form-events';\n\n/**\n * Configuration object for the form toolbar.\n * Controls which buttons/sections are visible and behavioral options.\n *\n * Pass to `<mj-form-toolbar [config]=\"toolbarConfig\">` to customize the toolbar.\n * Use `DEFAULT_TOOLBAR_CONFIG` as a starting point and override specific properties.\n *\n * @example\n * ```typescript\n * const myConfig: FormToolbarConfig = {\n * ...DEFAULT_TOOLBAR_CONFIG,\n * ShowDeleteButton: false, // Hide delete for this form\n * ShowEntityHierarchy: true, // Show IS-A breadcrumb\n * ShowFavoriteButton: false, // No favorites in this app\n * };\n * ```\n */\nexport interface FormToolbarConfig {\n // ---- Visibility ----\n\n /** Show the Edit button in read mode. Default: true */\n ShowEditButton: boolean;\n\n /** Show the Delete button in read mode. Default: true */\n ShowDeleteButton: boolean;\n\n /** Show the Refresh button in read mode (reloads record from database). Default: true */\n ShowRefreshButton: boolean;\n\n /** Show the Favorite/Unfavorite button. Default: true */\n ShowFavoriteButton: boolean;\n\n /** Show the Record History button (only if entity tracks changes). Default: true */\n ShowHistoryButton: boolean;\n\n /** Show the Lists button for managing list membership. Default: true */\n ShowListButton: boolean;\n\n /** Show the Tags button for viewing/managing tags on this record. Default: true */\n ShowTagsButton: boolean;\n\n /** Show the Attachments button for viewing/managing linked file attachments. Default: true */\n ShowAttachmentsButton: boolean;\n\n /**\n * Show the **form-variant picker** button — a right-side toolbar button\n * (form icon) that opens a dropdown of available `EntityFormOverride`\n * variants (Default form + any active overrides) so the user can switch\n * which form renders this entity record. Only actually renders when the\n * host has supplied a `Variants` list with more than one item. Default: true.\n *\n * Set to false when the host doesn't want the user-facing form-switching\n * UX (e.g. embedded record views with a single canonical form).\n */\n ShowFormVariantPicker: boolean;\n\n /** Show the IS-A entity hierarchy breadcrumb. Default: true */\n ShowEntityHierarchy: boolean;\n\n /**\n * Master toggle for the entire right-hand section-controls group\n * (search, expand-all, collapse-all, manage sections, width toggle).\n * When false, the individual Show- and Allow- flags below are irrelevant.\n * Default: true\n */\n ShowSectionControls: boolean;\n\n /** Show the edit banner when entering edit mode. Default: true */\n ShowEditBanner: boolean;\n\n /** Show the \"Changes\" button when record is dirty in edit mode. Default: true */\n ShowChangesButton: boolean;\n\n /** Show the section search/filter input. Default: true */\n ShowSectionFilter: boolean;\n\n /**\n * Show the Expand-All and Collapse-All chevron buttons. Only relevant for\n * accordion chrome — left-nav / right-nav hide these even when true.\n * Custom layouts that manage their own open/closed state should set this\n * to false. Default: true\n */\n ShowExpandCollapseAllButtons: boolean;\n\n /**\n * Show the width-mode toggle button (centered ⇄ full-width). Custom\n * layouts with a fixed width should set this to false. Default: true\n */\n ShowWidthToggle: boolean;\n\n /** Allow drag-and-drop section reordering. Default: true */\n AllowSectionReorder: boolean;\n\n /** Show the \"Manage Sections\" button (section manager drawer). Default: true */\n ShowSectionManager: boolean;\n\n // ---- Behavior ----\n\n /**\n * Whether the toolbar should be sticky at the top when scrolling.\n * Default: true\n */\n StickyToolbar: boolean;\n\n // ---- Custom Slots ----\n\n /**\n * Optional template reference for additional toolbar actions.\n * Rendered after the standard buttons via ng-content or TemplateRef.\n */\n AdditionalActions: TemplateRef<unknown> | null;\n\n /**\n * Custom toolbar buttons to display in the read-mode toolbar.\n * Shown after the standard buttons (edit, delete, favorite, history, lists).\n */\n CustomButtons: CustomToolbarButton[];\n}\n\n/**\n * Default toolbar configuration - everything visible and sticky.\n * Use as a base and override individual properties.\n */\nexport const DEFAULT_TOOLBAR_CONFIG: FormToolbarConfig = {\n ShowEditButton: true,\n ShowDeleteButton: true,\n ShowRefreshButton: true,\n ShowFavoriteButton: true,\n ShowHistoryButton: true,\n ShowListButton: true,\n ShowTagsButton: true,\n ShowAttachmentsButton: true,\n ShowFormVariantPicker: true,\n ShowEntityHierarchy: true,\n ShowSectionControls: true,\n ShowEditBanner: true,\n ShowChangesButton: true,\n ShowSectionFilter: true,\n ShowExpandCollapseAllButtons: true,\n ShowWidthToggle: true,\n AllowSectionReorder: true,\n ShowSectionManager: true,\n StickyToolbar: true,\n AdditionalActions: null,\n CustomButtons: []\n};\n\n/**\n * Toolbar config for use inside MJ Explorer where favorites, history, and\n * list management are handled by the host app.\n * Pass as `[ToolbarConfig]=\"EXPLORER_TOOLBAR_CONFIG\"` on the container.\n */\nexport const EXPLORER_TOOLBAR_CONFIG: FormToolbarConfig = {\n ShowEditButton: true,\n ShowDeleteButton: true,\n ShowRefreshButton: true,\n ShowFavoriteButton: true,\n ShowHistoryButton: true,\n ShowListButton: true,\n ShowTagsButton: true,\n ShowAttachmentsButton: true,\n ShowFormVariantPicker: true,\n ShowEntityHierarchy: true,\n ShowSectionControls: true,\n ShowEditBanner: true,\n ShowChangesButton: true,\n ShowSectionFilter: true,\n ShowExpandCollapseAllButtons: true,\n ShowWidthToggle: true,\n AllowSectionReorder: true,\n ShowSectionManager: true,\n StickyToolbar: true,\n AdditionalActions: null,\n CustomButtons: []\n};\n\n/**\n * Toolbar config for custom-layout forms (Actions, AI Agents, etc.) that\n * manage their own panel open/closed state and layout. Hides the entire\n * right-hand section-controls group since search/expand-all/width-toggle\n * don't apply to forms that don't use MJ collapsible panels.\n *\n * Still shows the left-side action buttons (edit, save, delete, favorite,\n * history, lists, tags, changes) — those work the same for any entity form.\n */\nexport const CUSTOM_LAYOUT_TOOLBAR_CONFIG: FormToolbarConfig = {\n ShowEditButton: true,\n ShowDeleteButton: true,\n ShowRefreshButton: true,\n ShowFavoriteButton: true,\n ShowHistoryButton: true,\n ShowListButton: true,\n ShowTagsButton: true,\n ShowAttachmentsButton: true,\n ShowFormVariantPicker: true,\n ShowEntityHierarchy: true,\n ShowSectionControls: false, // ← hides the whole right group\n ShowEditBanner: true,\n ShowChangesButton: true,\n ShowSectionFilter: false,\n ShowExpandCollapseAllButtons: false,\n ShowWidthToggle: false,\n AllowSectionReorder: false,\n ShowSectionManager: false,\n StickyToolbar: true,\n AdditionalActions: null,\n CustomButtons: []\n};\n"]}
1
+ {"version":3,"file":"toolbar-config.js","sourceRoot":"","sources":["../../../src/lib/types/toolbar-config.ts"],"names":[],"mappings":"AA6IA;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAs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AACH,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,IAAI;IACrB,qBAAqB,EAAE,IAAI;IAC3B,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,KAAK,EAAa,gCAAgC;IACvE,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,KAAK;IACxB,4BAA4B,EAAE,KAAK;IACnC,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,KAAK;IAC1B,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,EAAE;CAClB,CAAC","sourcesContent":["import { TemplateRef } from '@angular/core';\nimport { CustomToolbarButton } from './form-events';\n\n/**\n * Configuration object for the form toolbar.\n * Controls which buttons/sections are visible and behavioral options.\n *\n * Pass to `<mj-form-toolbar [config]=\"toolbarConfig\">` to customize the toolbar.\n * Use `DEFAULT_TOOLBAR_CONFIG` as a starting point and override specific properties.\n *\n * @example\n * ```typescript\n * const myConfig: FormToolbarConfig = {\n * ...DEFAULT_TOOLBAR_CONFIG,\n * ShowDeleteButton: false, // Hide delete for this form\n * ShowEntityHierarchy: true, // Show IS-A breadcrumb\n * ShowFavoriteButton: false, // No favorites in this app\n * };\n * ```\n */\nexport interface FormToolbarConfig {\n // ---- Visibility ----\n\n /** Show the Edit button in read mode. Default: true */\n ShowEditButton: boolean;\n\n /** Show the Delete button in read mode. Default: true */\n ShowDeleteButton: boolean;\n\n /** Show the Refresh button in read mode (reloads record from database). Default: true */\n ShowRefreshButton: boolean;\n\n /** Show the Favorite/Unfavorite button. Default: true */\n ShowFavoriteButton: boolean;\n\n /** Show the Record History button (only if entity tracks changes). Default: true */\n ShowHistoryButton: boolean;\n\n /** Show the Lists button for managing list membership. Default: true */\n ShowListButton: boolean;\n\n /** Show the Tags button for viewing/managing tags on this record. Default: true */\n ShowTagsButton: boolean;\n\n /** Show the Attachments button for viewing/managing linked file attachments. Default: true */\n ShowAttachmentsButton: boolean;\n\n /**\n * Show the Clone action for saved records, which opens the `ng-record-clone` slide-in.\n * The button still appears only when the entity's `Configuration.Clone.Enabled` is true\n * and `RecordClone.Describe` says the user may clone it. Omitted means off.\n */\n ShowCloneButton?: boolean;\n\n /**\n * Show the **form-variant picker** button — a right-side toolbar button\n * (form icon) that opens a dropdown of available `EntityFormOverride`\n * variants (Default form + any active overrides) so the user can switch\n * which form renders this entity record. Only actually renders when the\n * host has supplied a `Variants` list with more than one item. Default: true.\n *\n * Set to false when the host doesn't want the user-facing form-switching\n * UX (e.g. embedded record views with a single canonical form).\n */\n ShowFormVariantPicker: boolean;\n\n /** Show the IS-A entity hierarchy breadcrumb. Default: true */\n ShowEntityHierarchy: boolean;\n\n /**\n * Master toggle for the entire right-hand section-controls group\n * (search, expand-all, collapse-all, manage sections, width toggle).\n * When false, the individual Show- and Allow- flags below are irrelevant.\n * Default: true\n */\n ShowSectionControls: boolean;\n\n /** Show the edit banner when entering edit mode. Default: true */\n ShowEditBanner: boolean;\n\n /** Show the \"Changes\" button when record is dirty in edit mode. Default: true */\n ShowChangesButton: boolean;\n\n /** Show the section search/filter input. Default: true */\n ShowSectionFilter: boolean;\n\n /**\n * Show the Expand-All and Collapse-All chevron buttons. Only relevant for\n * accordion chrome — left-nav / right-nav hide these even when true.\n * Custom layouts that manage their own open/closed state should set this\n * to false. Default: true\n */\n ShowExpandCollapseAllButtons: boolean;\n\n /**\n * Show the width-mode toggle button (centered ⇄ full-width). Custom\n * layouts with a fixed width should set this to false. Default: true\n */\n ShowWidthToggle: boolean;\n\n /** Allow drag-and-drop section reordering. Default: true */\n AllowSectionReorder: boolean;\n\n /** Show the \"Manage Sections\" button (section manager drawer). Default: true */\n ShowSectionManager: boolean;\n\n /**\n * How many pinnable actions a user may pin as toolbar buttons; the rest are in the More menu.\n * The same for every user and screen width. Default: 3.\n */\n MaxPinnedActions?: number;\n\n /**\n * Pinnable actions shown as buttons for a user who has not chosen their own pins yet.\n * Default: `['favorite', 'history']`.\n */\n DefaultPinnedActions?: string[];\n\n // ---- Behavior ----\n\n /**\n * Whether the toolbar should be sticky at the top when scrolling.\n * Default: true\n */\n StickyToolbar: boolean;\n\n // ---- Custom Slots ----\n\n /**\n * Optional template reference for additional toolbar actions.\n * Rendered after the standard buttons via ng-content or TemplateRef.\n */\n AdditionalActions: TemplateRef<unknown> | null;\n\n /**\n * Custom toolbar buttons to display in the read-mode toolbar.\n * Shown after the standard buttons (edit, delete, favorite, history, lists).\n */\n CustomButtons: CustomToolbarButton[];\n}\n\n/**\n * Default toolbar configuration - everything visible and sticky.\n * Use as a base and override individual properties.\n */\nexport const DEFAULT_TOOLBAR_CONFIG: FormToolbarConfig = {\n ShowEditButton: true,\n ShowDeleteButton: true,\n ShowRefreshButton: true,\n ShowFavoriteButton: true,\n ShowHistoryButton: true,\n ShowListButton: true,\n ShowTagsButton: true,\n ShowAttachmentsButton: true,\n ShowCloneButton: true,\n ShowFormVariantPicker: true,\n ShowEntityHierarchy: true,\n ShowSectionControls: true,\n ShowEditBanner: true,\n ShowChangesButton: true,\n ShowSectionFilter: true,\n ShowExpandCollapseAllButtons: true,\n ShowWidthToggle: true,\n AllowSectionReorder: true,\n ShowSectionManager: true,\n StickyToolbar: true,\n AdditionalActions: null,\n CustomButtons: []\n};\n\n/**\n * Toolbar config for use inside MJ Explorer where favorites, history, and\n * list management are handled by the host app.\n * Pass as `[ToolbarConfig]=\"EXPLORER_TOOLBAR_CONFIG\"` on the container.\n */\nexport const EXPLORER_TOOLBAR_CONFIG: FormToolbarConfig = {\n ShowEditButton: true,\n ShowDeleteButton: true,\n ShowRefreshButton: true,\n ShowFavoriteButton: true,\n ShowHistoryButton: true,\n ShowListButton: true,\n ShowTagsButton: true,\n ShowAttachmentsButton: true,\n ShowCloneButton: true,\n ShowFormVariantPicker: true,\n ShowEntityHierarchy: true,\n ShowSectionControls: true,\n ShowEditBanner: true,\n ShowChangesButton: true,\n ShowSectionFilter: true,\n ShowExpandCollapseAllButtons: true,\n ShowWidthToggle: true,\n AllowSectionReorder: true,\n ShowSectionManager: true,\n StickyToolbar: true,\n AdditionalActions: null,\n CustomButtons: []\n};\n\n/**\n * Toolbar config for custom-layout forms (Actions, AI Agents, etc.) that\n * manage their own panel open/closed state and layout. Hides the entire\n * right-hand section-controls group since search/expand-all/width-toggle\n * don't apply to forms that don't use MJ collapsible panels.\n *\n * Still shows the left-side action buttons (edit, save, delete, favorite,\n * history, lists, tags, changes) — those work the same for any entity form.\n */\nexport const CUSTOM_LAYOUT_TOOLBAR_CONFIG: FormToolbarConfig = {\n ShowEditButton: true,\n ShowDeleteButton: true,\n ShowRefreshButton: true,\n ShowFavoriteButton: true,\n ShowHistoryButton: true,\n ShowListButton: true,\n ShowTagsButton: true,\n ShowAttachmentsButton: true,\n ShowCloneButton: true,\n ShowFormVariantPicker: true,\n ShowEntityHierarchy: true,\n ShowSectionControls: false, // ← hides the whole right group\n ShowEditBanner: true,\n ShowChangesButton: true,\n ShowSectionFilter: false,\n ShowExpandCollapseAllButtons: false,\n ShowWidthToggle: false,\n AllowSectionReorder: false,\n ShowSectionManager: false,\n StickyToolbar: true,\n AdditionalActions: null,\n CustomButtons: []\n};\n"]}
package/dist/module.d.ts CHANGED
@@ -4,27 +4,34 @@ import * as i2 from "./lib/field/form-field.component";
4
4
  import * as i3 from "./lib/panel/collapsible-panel.component";
5
5
  import * as i4 from "./lib/container/record-form-container.component";
6
6
  import * as i5 from "./lib/section-manager/section-manager.component";
7
- import * as i6 from "./lib/section-loader-component";
8
- import * as i7 from "./lib/explorer-entity-data-grid.component";
9
- import * as i8 from "./lib/isa-related-panel/isa-related-card.component";
10
- import * as i9 from "./lib/isa-related-panel/isa-related-panel.component";
11
- import * as i10 from "./lib/panel-slot/form-panel-slot.component";
12
- import * as i11 from "./lib/panel-slot/form-contributions.component";
13
- import * as i12 from "./lib/panel-slot/related-entity-grid-panel.component";
14
- import * as i13 from "./lib/interactive-form/interactive-form.component";
15
- import * as i14 from "./lib/host/entity-form-host.component";
16
- import * as i15 from "@angular/common";
17
- import * as i16 from "@angular/forms";
18
- import * as i17 from "@memberjunction/ng-ui-components";
19
- import * as i18 from "@memberjunction/ng-record-changes";
20
- import * as i19 from "@memberjunction/ng-list-management";
21
- import * as i20 from "@memberjunction/ng-entity-viewer";
22
- import * as i21 from "@memberjunction/ng-record-tags";
23
- import * as i22 from "@memberjunction/ng-file-storage";
24
- import * as i23 from "@memberjunction/ng-react";
25
- import * as i24 from "@memberjunction/ng-markdown";
26
- import * as i25 from "@memberjunction/ng-code-editor";
27
- import * as i26 from "@memberjunction/ng-shared-generic";
7
+ import * as i6 from "./lib/panel-manager/panel-manager.component";
8
+ import * as i7 from "./lib/section-loader-component";
9
+ import * as i8 from "./lib/explorer-entity-data-grid.component";
10
+ import * as i9 from "./lib/isa-related-panel/isa-related-card.component";
11
+ import * as i10 from "./lib/isa-related-panel/isa-related-panel.component";
12
+ import * as i11 from "./lib/panel-slot/form-panel-slot.component";
13
+ import * as i12 from "./lib/panel-slot/form-field-panel-slot.component";
14
+ import * as i13 from "./lib/panel-slot/form-contributions.component";
15
+ import * as i14 from "./lib/panel-slot/related-entity-grid-panel.component";
16
+ import * as i15 from "./lib/interactive-form/interactive-form.component";
17
+ import * as i16 from "./lib/interactive-form/interactive-form-panel.component";
18
+ import * as i17 from "./lib/host/entity-form-host.component";
19
+ import * as i18 from "./lib/apply/form-placement-dialog.component";
20
+ import * as i19 from "./lib/apply/form-placement-preview.component";
21
+ import * as i20 from "./lib/panel-slot/placement-preview-panel.component";
22
+ import * as i21 from "@angular/common";
23
+ import * as i22 from "@angular/forms";
24
+ import * as i23 from "@memberjunction/ng-ui-components";
25
+ import * as i24 from "@memberjunction/ng-record-changes";
26
+ import * as i25 from "@memberjunction/ng-list-management";
27
+ import * as i26 from "@memberjunction/ng-entity-viewer";
28
+ import * as i27 from "@memberjunction/ng-record-tags";
29
+ import * as i28 from "@memberjunction/ng-file-storage";
30
+ import * as i29 from "@memberjunction/ng-react";
31
+ import * as i30 from "@memberjunction/ng-markdown";
32
+ import * as i31 from "@memberjunction/ng-code-editor";
33
+ import * as i32 from "@memberjunction/ng-shared-generic";
34
+ import * as i33 from "@memberjunction/ng-record-clone";
28
35
  /**
29
36
  * BaseFormsModule - Form components and base classes for rendering and editing MemberJunction entity records.
30
37
  *
@@ -46,7 +53,7 @@ import * as i26 from "@memberjunction/ng-shared-generic";
46
53
  */
47
54
  export declare class BaseFormsModule {
48
55
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormsModule, never>;
49
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaseFormsModule, [typeof i1.MjFormToolbarComponent, typeof i2.MjFormFieldComponent, typeof i3.MjCollapsiblePanelComponent, typeof i4.MjRecordFormContainerComponent, typeof i5.MjSectionManagerComponent, typeof i6.SectionLoaderComponent, typeof i7.ExplorerEntityDataGridComponent, typeof i8.MjIsaRelatedCardComponent, typeof i9.MjIsaRelatedPanelComponent, typeof i10.FormPanelSlotComponent, typeof i11.FormContributionsComponent, typeof i12.RelatedEntityGridPanelComponent, typeof i13.InteractiveFormComponent, typeof i14.MjEntityFormHostComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.MJEmptyStateComponent, typeof i17.MJAlertComponent, typeof i18.RecordChangesModule, typeof i19.ListManagementModule, typeof i20.EntityViewerModule, typeof i21.RecordTagsModule, typeof i22.FileStorageModule, typeof i23.MJReactModule, typeof i24.MarkdownModule, typeof i25.CodeEditorModule, typeof i26.MJSafeRichHtmlPipe, typeof i26.SharedGenericModule], [typeof i1.MjFormToolbarComponent, typeof i2.MjFormFieldComponent, typeof i3.MjCollapsiblePanelComponent, typeof i4.MjRecordFormContainerComponent, typeof i5.MjSectionManagerComponent, typeof i6.SectionLoaderComponent, typeof i7.ExplorerEntityDataGridComponent, typeof i8.MjIsaRelatedCardComponent, typeof i9.MjIsaRelatedPanelComponent, typeof i10.FormPanelSlotComponent, typeof i11.FormContributionsComponent, typeof i12.RelatedEntityGridPanelComponent, typeof i13.InteractiveFormComponent, typeof i14.MjEntityFormHostComponent]>;
56
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaseFormsModule, [typeof i1.MjFormToolbarComponent, typeof i2.MjFormFieldComponent, typeof i3.MjCollapsiblePanelComponent, typeof i4.MjRecordFormContainerComponent, typeof i5.MjSectionManagerComponent, typeof i6.MjPanelManagerComponent, typeof i7.SectionLoaderComponent, typeof i8.ExplorerEntityDataGridComponent, typeof i9.MjIsaRelatedCardComponent, typeof i10.MjIsaRelatedPanelComponent, typeof i11.FormPanelSlotComponent, typeof i12.FormFieldPanelSlotComponent, typeof i13.FormContributionsComponent, typeof i14.RelatedEntityGridPanelComponent, typeof i15.InteractiveFormComponent, typeof i16.InteractiveFormPanelComponent, typeof i17.MjEntityFormHostComponent, typeof i18.MjFormPlacementDialogComponent, typeof i19.MjFormPlacementPreviewComponent, typeof i20.PlacementPreviewPanelComponent], [typeof i21.CommonModule, typeof i22.FormsModule, typeof i23.MJEmptyStateComponent, typeof i23.MJAlertComponent, typeof i24.RecordChangesModule, typeof i25.ListManagementModule, typeof i26.EntityViewerModule, typeof i27.RecordTagsModule, typeof i28.FileStorageModule, typeof i29.MJReactModule, typeof i30.MarkdownModule, typeof i31.CodeEditorModule, typeof i32.MJSafeRichHtmlPipe, typeof i32.SharedGenericModule, typeof i23.MJButtonDirective, typeof i23.MjIconPickerComponent, typeof i33.RecordCloneSlideInComponent], [typeof i1.MjFormToolbarComponent, typeof i2.MjFormFieldComponent, typeof i3.MjCollapsiblePanelComponent, typeof i4.MjRecordFormContainerComponent, typeof i5.MjSectionManagerComponent, typeof i6.MjPanelManagerComponent, typeof i7.SectionLoaderComponent, typeof i8.ExplorerEntityDataGridComponent, typeof i9.MjIsaRelatedCardComponent, typeof i10.MjIsaRelatedPanelComponent, typeof i11.FormPanelSlotComponent, typeof i12.FormFieldPanelSlotComponent, typeof i13.FormContributionsComponent, typeof i14.RelatedEntityGridPanelComponent, typeof i15.InteractiveFormComponent, typeof i16.InteractiveFormPanelComponent, typeof i17.MjEntityFormHostComponent, typeof i18.MjFormPlacementDialogComponent, typeof i19.MjFormPlacementPreviewComponent, typeof i20.PlacementPreviewPanelComponent]>;
50
57
  static ɵinj: i0.ɵɵInjectorDeclaration<BaseFormsModule>;
51
58
  }
52
59
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAkDa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAI"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAiEa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAI"}
package/dist/module.js CHANGED
@@ -6,11 +6,13 @@ import { MjFormFieldComponent } from './lib/field/form-field.component';
6
6
  import { MjCollapsiblePanelComponent } from './lib/panel/collapsible-panel.component';
7
7
  import { MjRecordFormContainerComponent } from './lib/container/record-form-container.component';
8
8
  import { MjSectionManagerComponent } from './lib/section-manager/section-manager.component';
9
+ import { MjPanelManagerComponent } from './lib/panel-manager/panel-manager.component';
9
10
  import { SectionLoaderComponent } from './lib/section-loader-component';
10
11
  import { ExplorerEntityDataGridComponent } from './lib/explorer-entity-data-grid.component';
11
12
  import { MjIsaRelatedCardComponent } from './lib/isa-related-panel/isa-related-card.component';
12
13
  import { MjIsaRelatedPanelComponent } from './lib/isa-related-panel/isa-related-panel.component';
13
14
  import { FormPanelSlotComponent } from './lib/panel-slot/form-panel-slot.component';
15
+ import { FormFieldPanelSlotComponent } from './lib/panel-slot/form-field-panel-slot.component';
14
16
  import { FormContributionsComponent } from './lib/panel-slot/form-contributions.component';
15
17
  import { RelatedEntityGridPanelComponent } from './lib/panel-slot/related-entity-grid-panel.component';
16
18
  import { RecordChangesModule } from '@memberjunction/ng-record-changes';
@@ -22,10 +24,16 @@ import { MJReactModule } from '@memberjunction/ng-react';
22
24
  import { MarkdownModule } from '@memberjunction/ng-markdown';
23
25
  import { CodeEditorModule } from '@memberjunction/ng-code-editor';
24
26
  import { MJSafeRichHtmlPipe, SharedGenericModule } from '@memberjunction/ng-shared-generic';
25
- import { MJEmptyStateComponent, MJAlertComponent } from '@memberjunction/ng-ui-components';
27
+ import { MJEmptyStateComponent, MJAlertComponent, MJButtonDirective, MjIconPickerComponent } from '@memberjunction/ng-ui-components';
26
28
  import { InteractiveFormComponent } from './lib/interactive-form/interactive-form.component';
29
+ import { InteractiveFormPanelComponent } from './lib/interactive-form/interactive-form-panel.component';
27
30
  import { MjEntityFormHostComponent } from './lib/host/entity-form-host.component';
31
+ import { MjFormPlacementDialogComponent } from './lib/apply/form-placement-dialog.component';
32
+ import { MjFormPlacementPreviewComponent } from './lib/apply/form-placement-preview.component';
33
+ import { PlacementPreviewPanelComponent } from './lib/panel-slot/placement-preview-panel.component';
34
+ import { RecordCloneSlideInComponent } from '@memberjunction/ng-record-clone';
28
35
  import * as i0 from "@angular/core";
36
+ import * as i1 from "@memberjunction/ng-react";
29
37
  /**
30
38
  * BaseFormsModule - Form components and base classes for rendering and editing MemberJunction entity records.
31
39
  *
@@ -60,7 +68,9 @@ export class BaseFormsModule {
60
68
  MJReactModule,
61
69
  MarkdownModule,
62
70
  CodeEditorModule,
63
- SharedGenericModule] });
71
+ SharedGenericModule,
72
+ MjIconPickerComponent,
73
+ RecordCloneSlideInComponent] });
64
74
  }
65
75
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseFormsModule, [{
66
76
  type: NgModule,
@@ -71,15 +81,21 @@ export class BaseFormsModule {
71
81
  MjCollapsiblePanelComponent,
72
82
  MjRecordFormContainerComponent,
73
83
  MjSectionManagerComponent,
84
+ MjPanelManagerComponent,
74
85
  SectionLoaderComponent,
75
86
  ExplorerEntityDataGridComponent,
76
87
  MjIsaRelatedCardComponent,
77
88
  MjIsaRelatedPanelComponent,
78
89
  FormPanelSlotComponent,
90
+ FormFieldPanelSlotComponent,
79
91
  FormContributionsComponent,
80
92
  RelatedEntityGridPanelComponent,
81
93
  InteractiveFormComponent,
82
- MjEntityFormHostComponent
94
+ InteractiveFormPanelComponent,
95
+ MjEntityFormHostComponent,
96
+ MjFormPlacementDialogComponent,
97
+ MjFormPlacementPreviewComponent,
98
+ PlacementPreviewPanelComponent
83
99
  ],
84
100
  imports: [
85
101
  CommonModule,
@@ -95,7 +111,10 @@ export class BaseFormsModule {
95
111
  MarkdownModule,
96
112
  CodeEditorModule,
97
113
  MJSafeRichHtmlPipe,
98
- SharedGenericModule
114
+ SharedGenericModule,
115
+ MJButtonDirective,
116
+ MjIconPickerComponent,
117
+ RecordCloneSlideInComponent
99
118
  ],
100
119
  exports: [
101
120
  MjFormToolbarComponent,
@@ -103,15 +122,21 @@ export class BaseFormsModule {
103
122
  MjCollapsiblePanelComponent,
104
123
  MjRecordFormContainerComponent,
105
124
  MjSectionManagerComponent,
125
+ MjPanelManagerComponent,
106
126
  SectionLoaderComponent,
107
127
  ExplorerEntityDataGridComponent,
108
128
  MjIsaRelatedCardComponent,
109
129
  MjIsaRelatedPanelComponent,
110
130
  FormPanelSlotComponent,
131
+ FormFieldPanelSlotComponent,
111
132
  FormContributionsComponent,
112
133
  RelatedEntityGridPanelComponent,
113
134
  InteractiveFormComponent,
114
- MjEntityFormHostComponent
135
+ InteractiveFormPanelComponent,
136
+ MjEntityFormHostComponent,
137
+ MjFormPlacementDialogComponent,
138
+ MjFormPlacementPreviewComponent,
139
+ PlacementPreviewPanelComponent
115
140
  ]
116
141
  }]
117
142
  }], null, null); })();
@@ -120,15 +145,21 @@ export class BaseFormsModule {
120
145
  MjCollapsiblePanelComponent,
121
146
  MjRecordFormContainerComponent,
122
147
  MjSectionManagerComponent,
148
+ MjPanelManagerComponent,
123
149
  SectionLoaderComponent,
124
150
  ExplorerEntityDataGridComponent,
125
151
  MjIsaRelatedCardComponent,
126
152
  MjIsaRelatedPanelComponent,
127
153
  FormPanelSlotComponent,
154
+ FormFieldPanelSlotComponent,
128
155
  FormContributionsComponent,
129
156
  RelatedEntityGridPanelComponent,
130
157
  InteractiveFormComponent,
131
- MjEntityFormHostComponent], imports: [CommonModule,
158
+ InteractiveFormPanelComponent,
159
+ MjEntityFormHostComponent,
160
+ MjFormPlacementDialogComponent,
161
+ MjFormPlacementPreviewComponent,
162
+ PlacementPreviewPanelComponent], imports: [CommonModule,
132
163
  FormsModule,
133
164
  MJEmptyStateComponent,
134
165
  MJAlertComponent,
@@ -141,18 +172,29 @@ export class BaseFormsModule {
141
172
  MarkdownModule,
142
173
  CodeEditorModule,
143
174
  MJSafeRichHtmlPipe,
144
- SharedGenericModule], exports: [MjFormToolbarComponent,
175
+ SharedGenericModule,
176
+ MJButtonDirective,
177
+ MjIconPickerComponent,
178
+ RecordCloneSlideInComponent], exports: [MjFormToolbarComponent,
145
179
  MjFormFieldComponent,
146
180
  MjCollapsiblePanelComponent,
147
181
  MjRecordFormContainerComponent,
148
182
  MjSectionManagerComponent,
183
+ MjPanelManagerComponent,
149
184
  SectionLoaderComponent,
150
185
  ExplorerEntityDataGridComponent,
151
186
  MjIsaRelatedCardComponent,
152
187
  MjIsaRelatedPanelComponent,
153
188
  FormPanelSlotComponent,
189
+ FormFieldPanelSlotComponent,
154
190
  FormContributionsComponent,
155
191
  RelatedEntityGridPanelComponent,
156
192
  InteractiveFormComponent,
157
- MjEntityFormHostComponent] }); })();
193
+ InteractiveFormPanelComponent,
194
+ MjEntityFormHostComponent,
195
+ MjFormPlacementDialogComponent,
196
+ MjFormPlacementPreviewComponent,
197
+ PlacementPreviewPanelComponent] }); })();
198
+ i0.ɵɵsetComponentScope(MjCollapsiblePanelComponent, [FormFieldPanelSlotComponent], []);
199
+ i0.ɵɵsetComponentScope(InteractiveFormComponent, [MJAlertComponent, i1.MJReactComponent, MjRecordFormContainerComponent], []);
158
200
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,mBAAm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,WAAW;oBACX,qBAAqB;oBACrB,gBAAgB;oBAChB,mBAAmB;oBACnB,oBAAoB;oBACpB,kBAAkB;oBAClB,gBAAgB;oBAChB,iBAAiB;oBACjB,aAAa;oBACb,cAAc;oBACd,gBAAgB;oBAChB,kBAAkB;oBAClB,mBAAmB;iBACpB;gBACD,OAAO,EAAE;oBACP,sBAAsB;oBACtB,oBAAoB;oBACpB,2BAA2B;oBAC3B,8BAA8B;oBAC9B,yBAAyB;oBACzB,sBAAsB;oBACtB,+BAA+B;oBAC/B,yBAAyB;oBACzB,0BAA0B;oBAC1B,sBAAsB;oBACtB,0BAA0B;oBAC1B,+BAA+B;oBAC/B,wBAAwB;oBACxB,yBAAyB;iBAC1B;aACF;;wFACY,eAAe,mBAhDxB,sBAAsB;QACtB,oBAAoB;QACpB,2BAA2B;QAC3B,8BAA8B;QAC9B,yBAAyB;QACzB,sBAAsB;QACtB,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,sBAAsB;QACtB,0BAA0B;QAC1B,+BAA+B;QAC/B,wBAAwB;QACxB,yBAAyB,aAGzB,YAAY;QACZ,WAAW;QACX,qBAAqB;QACrB,gBAAgB;QAChB,mBAAmB;QACnB,oBAAoB;QACpB,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,aAAa;QACb,cAAc;QACd,gBAAgB;QAChB,kBAAkB;QAClB,mBAAmB,aAGnB,sBAAsB;QACtB,oBAAoB;QACpB,2BAA2B;QAC3B,8BAA8B;QAC9B,yBAAyB;QACzB,sBAAsB;QACtB,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,sBAAsB;QACtB,0BAA0B;QAC1B,+BAA+B;QAC/B,wBAAwB;QACxB,yBAAyB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { MjFormToolbarComponent } from './lib/toolbar/form-toolbar.component';\nimport { MjFormFieldComponent } from './lib/field/form-field.component';\nimport { MjCollapsiblePanelComponent } from './lib/panel/collapsible-panel.component';\nimport { MjRecordFormContainerComponent } from './lib/container/record-form-container.component';\nimport { MjSectionManagerComponent } from './lib/section-manager/section-manager.component';\nimport { SectionLoaderComponent } from './lib/section-loader-component';\nimport { ExplorerEntityDataGridComponent } from './lib/explorer-entity-data-grid.component';\nimport { MjIsaRelatedCardComponent } from './lib/isa-related-panel/isa-related-card.component';\nimport { MjIsaRelatedPanelComponent } from './lib/isa-related-panel/isa-related-panel.component';\nimport { FormPanelSlotComponent } from './lib/panel-slot/form-panel-slot.component';\nimport { FormContributionsComponent } from './lib/panel-slot/form-contributions.component';\nimport { RelatedEntityGridPanelComponent } from './lib/panel-slot/related-entity-grid-panel.component';\nimport { RecordChangesModule } from '@memberjunction/ng-record-changes';\nimport { ListManagementModule } from '@memberjunction/ng-list-management';\nimport { EntityViewerModule } from '@memberjunction/ng-entity-viewer';\nimport { RecordTagsModule } from '@memberjunction/ng-record-tags';\nimport { FileStorageModule } from '@memberjunction/ng-file-storage';\nimport { MJReactModule } from '@memberjunction/ng-react';\nimport { MarkdownModule } from '@memberjunction/ng-markdown';\nimport { CodeEditorModule } from '@memberjunction/ng-code-editor';\nimport { MJSafeRichHtmlPipe, SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { MJEmptyStateComponent, MJAlertComponent } from '@memberjunction/ng-ui-components';\nimport { InteractiveFormComponent } from './lib/interactive-form/interactive-form.component';\nimport { MjEntityFormHostComponent } from './lib/host/entity-form-host.component';\n\n/**\n * BaseFormsModule - Form components and base classes for rendering and editing MemberJunction entity records.\n *\n * Provides:\n * - **MjRecordFormContainerComponent** (`<mj-record-form-container>`): Top-level container\n * with sticky toolbar, section state management, and content slots.\n * - **MjFormToolbarComponent** (`<mj-form-toolbar>`): Configurable toolbar with read/edit mode\n * actions, IS-A hierarchy breadcrumb, section controls, and inline delete dialog.\n * - **MjCollapsiblePanelComponent** (`<mj-collapsible-panel>`): Collapsible section with\n * drag-to-reorder, search filtering, and inherited/related variants.\n * - **MjFormFieldComponent** (`<mj-form-field>`): Entity field renderer with clean read-only\n * display and modern edit-mode inputs (native HTML with custom select and autocomplete).\n * - **SectionLoaderComponent** (`<mj-form-section>`): Dynamic section loader via ClassFactory.\n * - **ExplorerEntityDataGridComponent** (`<mj-explorer-entity-data-grid>`): Data grid wrapper\n * for related entity sections with Navigate event support.\n *\n * All navigation actions are emitted as events via {@link FormNavigationEvent}.\n * The host application subscribes and maps to its own routing system.\n */\n@NgModule({\n declarations: [\n MjFormToolbarComponent,\n MjFormFieldComponent,\n MjCollapsiblePanelComponent,\n MjRecordFormContainerComponent,\n MjSectionManagerComponent,\n SectionLoaderComponent,\n ExplorerEntityDataGridComponent,\n MjIsaRelatedCardComponent,\n MjIsaRelatedPanelComponent,\n FormPanelSlotComponent,\n FormContributionsComponent,\n RelatedEntityGridPanelComponent,\n InteractiveFormComponent,\n MjEntityFormHostComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n MJEmptyStateComponent,\n MJAlertComponent,\n RecordChangesModule,\n ListManagementModule,\n EntityViewerModule,\n RecordTagsModule,\n FileStorageModule,\n MJReactModule,\n MarkdownModule,\n CodeEditorModule,\n MJSafeRichHtmlPipe,\n SharedGenericModule\n ],\n exports: [\n MjFormToolbarComponent,\n MjFormFieldComponent,\n MjCollapsiblePanelComponent,\n MjRecordFormContainerComponent,\n MjSectionManagerComponent,\n SectionLoaderComponent,\n ExplorerEntityDataGridComponent,\n MjIsaRelatedCardComponent,\n MjIsaRelatedPanelComponent,\n FormPanelSlotComponent,\n FormContributionsComponent,\n RelatedEntityGridPanelComponent,\n InteractiveFormComponent,\n MjEntityFormHostComponent\n ]\n})\nexport class BaseFormsModule { }\n"]}
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;A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9B,yBAAyB;QACzB,uBAAuB;QACvB,sBAAsB;QACtB,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,sBAAsB;QACtB,2BAA2B;QAC3B,0BAA0B;QAC1B,+BAA+B;QAC/B,wBAAwB;QACxB,6BAA6B;QAC7B,yBAAyB;QACzB,8BAA8B;QAC9B,+BAA+B;QAC/B,8BAA8B;uBA1D9B,2BAA2B,GAS3B,2BAA2B;uBAG3B,wBAAwB,GAWxB,gBAAgB,uBAtBhB,8BAA8B","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { MjFormToolbarComponent } from './lib/toolbar/form-toolbar.component';\nimport { MjFormFieldComponent } from './lib/field/form-field.component';\nimport { MjCollapsiblePanelComponent } from './lib/panel/collapsible-panel.component';\nimport { MjRecordFormContainerComponent } from './lib/container/record-form-container.component';\nimport { MjSectionManagerComponent } from './lib/section-manager/section-manager.component';\nimport { MjPanelManagerComponent } from './lib/panel-manager/panel-manager.component';\nimport { SectionLoaderComponent } from './lib/section-loader-component';\nimport { ExplorerEntityDataGridComponent } from './lib/explorer-entity-data-grid.component';\nimport { MjIsaRelatedCardComponent } from './lib/isa-related-panel/isa-related-card.component';\nimport { MjIsaRelatedPanelComponent } from './lib/isa-related-panel/isa-related-panel.component';\nimport { FormPanelSlotComponent } from './lib/panel-slot/form-panel-slot.component';\nimport { FormFieldPanelSlotComponent } from './lib/panel-slot/form-field-panel-slot.component';\nimport { FormContributionsComponent } from './lib/panel-slot/form-contributions.component';\nimport { RelatedEntityGridPanelComponent } from './lib/panel-slot/related-entity-grid-panel.component';\nimport { RecordChangesModule } from '@memberjunction/ng-record-changes';\nimport { ListManagementModule } from '@memberjunction/ng-list-management';\nimport { EntityViewerModule } from '@memberjunction/ng-entity-viewer';\nimport { RecordTagsModule } from '@memberjunction/ng-record-tags';\nimport { FileStorageModule } from '@memberjunction/ng-file-storage';\nimport { MJReactModule } from '@memberjunction/ng-react';\nimport { MarkdownModule } from '@memberjunction/ng-markdown';\nimport { CodeEditorModule } from '@memberjunction/ng-code-editor';\nimport { MJSafeRichHtmlPipe, SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { MJEmptyStateComponent, MJAlertComponent, MJButtonDirective, MjIconPickerComponent } from '@memberjunction/ng-ui-components';\nimport { InteractiveFormComponent } from './lib/interactive-form/interactive-form.component';\nimport { InteractiveFormPanelComponent } from './lib/interactive-form/interactive-form-panel.component';\nimport { MjEntityFormHostComponent } from './lib/host/entity-form-host.component';\nimport { MjFormPlacementDialogComponent } from './lib/apply/form-placement-dialog.component';\nimport { MjFormPlacementPreviewComponent } from './lib/apply/form-placement-preview.component';\nimport { PlacementPreviewPanelComponent } from './lib/panel-slot/placement-preview-panel.component';\nimport { RecordCloneSlideInComponent } from '@memberjunction/ng-record-clone';\n\n/**\n * BaseFormsModule - Form components and base classes for rendering and editing MemberJunction entity records.\n *\n * Provides:\n * - **MjRecordFormContainerComponent** (`<mj-record-form-container>`): Top-level container\n * with sticky toolbar, section state management, and content slots.\n * - **MjFormToolbarComponent** (`<mj-form-toolbar>`): Configurable toolbar with read/edit mode\n * actions, IS-A hierarchy breadcrumb, section controls, and inline delete dialog.\n * - **MjCollapsiblePanelComponent** (`<mj-collapsible-panel>`): Collapsible section with\n * drag-to-reorder, search filtering, and inherited/related variants.\n * - **MjFormFieldComponent** (`<mj-form-field>`): Entity field renderer with clean read-only\n * display and modern edit-mode inputs (native HTML with custom select and autocomplete).\n * - **SectionLoaderComponent** (`<mj-form-section>`): Dynamic section loader via ClassFactory.\n * - **ExplorerEntityDataGridComponent** (`<mj-explorer-entity-data-grid>`): Data grid wrapper\n * for related entity sections with Navigate event support.\n *\n * All navigation actions are emitted as events via {@link FormNavigationEvent}.\n * The host application subscribes and maps to its own routing system.\n */\n@NgModule({\n declarations: [\n MjFormToolbarComponent,\n MjFormFieldComponent,\n MjCollapsiblePanelComponent,\n MjRecordFormContainerComponent,\n MjSectionManagerComponent,\n MjPanelManagerComponent,\n SectionLoaderComponent,\n ExplorerEntityDataGridComponent,\n MjIsaRelatedCardComponent,\n MjIsaRelatedPanelComponent,\n FormPanelSlotComponent,\n FormFieldPanelSlotComponent,\n FormContributionsComponent,\n RelatedEntityGridPanelComponent,\n InteractiveFormComponent,\n InteractiveFormPanelComponent,\n MjEntityFormHostComponent,\n MjFormPlacementDialogComponent,\n MjFormPlacementPreviewComponent,\n PlacementPreviewPanelComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n MJEmptyStateComponent,\n MJAlertComponent,\n RecordChangesModule,\n ListManagementModule,\n EntityViewerModule,\n RecordTagsModule,\n FileStorageModule,\n MJReactModule,\n MarkdownModule,\n CodeEditorModule,\n MJSafeRichHtmlPipe,\n SharedGenericModule,\n MJButtonDirective,\n MjIconPickerComponent,\n RecordCloneSlideInComponent\n ],\n exports: [\n MjFormToolbarComponent,\n MjFormFieldComponent,\n MjCollapsiblePanelComponent,\n MjRecordFormContainerComponent,\n MjSectionManagerComponent,\n MjPanelManagerComponent,\n SectionLoaderComponent,\n ExplorerEntityDataGridComponent,\n MjIsaRelatedCardComponent,\n MjIsaRelatedPanelComponent,\n FormPanelSlotComponent,\n FormFieldPanelSlotComponent,\n FormContributionsComponent,\n RelatedEntityGridPanelComponent,\n InteractiveFormComponent,\n InteractiveFormPanelComponent,\n MjEntityFormHostComponent,\n MjFormPlacementDialogComponent,\n MjFormPlacementPreviewComponent,\n PlacementPreviewPanelComponent\n ]\n})\nexport class BaseFormsModule { }\n"]}