@memberjunction/ng-base-forms 6.2.0-edge.7 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +10 -0
  2. package/dist/lib/base-form-component.d.ts +15 -2
  3. package/dist/lib/base-form-component.d.ts.map +1 -1
  4. package/dist/lib/base-form-component.js +18 -8
  5. package/dist/lib/base-form-component.js.map +1 -1
  6. package/dist/lib/chrome/form-chrome-coordinator.service.d.ts.map +1 -1
  7. package/dist/lib/chrome/form-chrome-coordinator.service.js +4 -1
  8. package/dist/lib/chrome/form-chrome-coordinator.service.js.map +1 -1
  9. package/dist/lib/chrome/phone-viewport.d.ts +15 -0
  10. package/dist/lib/chrome/phone-viewport.d.ts.map +1 -0
  11. package/dist/lib/chrome/phone-viewport.js +28 -0
  12. package/dist/lib/chrome/phone-viewport.js.map +1 -0
  13. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts +159 -0
  14. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts.map +1 -0
  15. package/dist/lib/comments/form-record-comments-coordinator.service.js +421 -0
  16. package/dist/lib/comments/form-record-comments-coordinator.service.js.map +1 -0
  17. package/dist/lib/comments/record-comments.component.d.ts +205 -0
  18. package/dist/lib/comments/record-comments.component.d.ts.map +1 -0
  19. package/dist/lib/comments/record-comments.component.js +2019 -0
  20. package/dist/lib/comments/record-comments.component.js.map +1 -0
  21. package/dist/lib/container/record-form-container.component.d.ts +47 -1
  22. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  23. package/dist/lib/container/record-form-container.component.js +876 -316
  24. package/dist/lib/container/record-form-container.component.js.map +1 -1
  25. package/dist/lib/field/default-fk-lookup-strategy.d.ts.map +1 -1
  26. package/dist/lib/field/default-fk-lookup-strategy.js +14 -6
  27. package/dist/lib/field/default-fk-lookup-strategy.js.map +1 -1
  28. package/dist/lib/field/fk-lookup-strategy.d.ts +11 -0
  29. package/dist/lib/field/fk-lookup-strategy.d.ts.map +1 -1
  30. package/dist/lib/field/fk-lookup-strategy.js +10 -0
  31. package/dist/lib/field/fk-lookup-strategy.js.map +1 -1
  32. package/dist/lib/field/fk-search-utils.d.ts +17 -0
  33. package/dist/lib/field/fk-search-utils.d.ts.map +1 -1
  34. package/dist/lib/field/fk-search-utils.js +29 -0
  35. package/dist/lib/field/fk-search-utils.js.map +1 -1
  36. package/dist/lib/field/form-field.component.d.ts +35 -1
  37. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  38. package/dist/lib/field/form-field.component.js +631 -446
  39. package/dist/lib/field/form-field.component.js.map +1 -1
  40. package/dist/lib/host/entity-form-host.component.d.ts +6 -0
  41. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  42. package/dist/lib/host/entity-form-host.component.js +17 -3
  43. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  44. package/dist/lib/panel/collapsible-panel.component.d.ts +5 -0
  45. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  46. package/dist/lib/panel/collapsible-panel.component.js +109 -30
  47. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  48. package/dist/lib/related-grid-height.d.ts +2 -2
  49. package/dist/lib/related-grid-height.d.ts.map +1 -1
  50. package/dist/lib/related-grid-height.js +2 -2
  51. package/dist/lib/related-grid-height.js.map +1 -1
  52. package/dist/lib/section-indicators/form-section-indicators.d.ts +4 -0
  53. package/dist/lib/section-indicators/form-section-indicators.d.ts.map +1 -1
  54. package/dist/lib/section-indicators/form-section-indicators.js +15 -1
  55. package/dist/lib/section-indicators/form-section-indicators.js.map +1 -1
  56. package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts +17 -0
  57. package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts.map +1 -0
  58. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js +52 -0
  59. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js.map +1 -0
  60. package/dist/lib/toolbar/base-form-toolbar-action.d.ts +9 -0
  61. package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -1
  62. package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -1
  63. package/dist/lib/toolbar/form-toolbar.component.d.ts +107 -2
  64. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  65. package/dist/lib/toolbar/form-toolbar.component.js +927 -415
  66. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  67. package/dist/lib/types/form-toolbar-item.d.ts +1 -1
  68. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  69. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  70. package/dist/lib/types/form-types.d.ts +8 -0
  71. package/dist/lib/types/form-types.d.ts.map +1 -1
  72. package/dist/lib/types/form-types.js.map +1 -1
  73. package/dist/lib/types/toolbar-config.d.ts +2 -0
  74. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  75. package/dist/lib/types/toolbar-config.js.map +1 -1
  76. package/dist/module.d.ts +15 -14
  77. package/dist/module.d.ts.map +1 -1
  78. package/dist/module.js +15 -5
  79. package/dist/module.js.map +1 -1
  80. package/dist/public-api.d.ts +3 -0
  81. package/dist/public-api.d.ts.map +1 -1
  82. package/dist/public-api.js +3 -0
  83. package/dist/public-api.js.map +1 -1
  84. package/package.json +20 -20
@@ -185,6 +185,12 @@ export declare class MjEntityFormHostComponent extends BaseAngularComponent impl
185
185
  get Dirty(): boolean;
186
186
  ngAfterViewInit(): void;
187
187
  ngOnDestroy(): void;
188
+ /**
189
+ * At phone width the mode strip is hidden; the switch moves into the toolbar's View
190
+ * bottom sheet instead so the 375px header stays clean while the user's chosen form
191
+ * (custom or standard) still mounts.
192
+ */
193
+ get HidesModeStrip(): boolean;
188
194
  /**
189
195
  * Save the bound record. In full-form mode this runs the form's save
190
196
  * pipeline (validation, pending records, notifications); in section mode the
@@ -1 +1 @@
1
- {"version":3,"file":"entity-form-host.component.d.ts","sourceRoot":"","sources":["../../../src/lib/host/entity-form-host.component.ts"],"names":[],"m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OAAO,CAAC,YAAY;IAIpB,6FAA6F;IAC7F,OAAO,CAAC,UAAU;IAMlB,0GAA0G;IAC1G,OAAO,CAAC,sBAAsB;IAM9B;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;IAS3B,4FAA4F;IAC5F,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAqB;IAE5D;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAOlC;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;;;;OAKG;YACW,YAAY;IA+B1B;;;OAGG;YACW,YAAY;IA+B1B,gFAAgF;IAChF,OAAO,CAAC,aAAa;IAwBrB,yEAAyE;IACzE,OAAO,CAAC,qBAAqB;IAwB7B;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAiB5B,gFAAgF;IAChF,OAAO,CAAC,aAAa;IA0BrB,OAAO,CAAC,IAAI;IAcZ,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,QAAQ;yCArqBL,yBAAyB;2CAAzB,yBAAyB;CAwrBrC"}
1
+ {"version":3,"file":"entity-form-host.component.d.ts","sourceRoot":"","sources":["../../../src/lib/host/entity-form-host.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACqB,YAAY,EACG,aAAa,EAAE,SAAS,EAClE,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EAAE,UAAU,EACzB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EACL,cAAc,EAEf,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACL,qBAAqB,EAAE,gBAAg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AAa;IA4BrB,yEAAyE;IACzE,OAAO,CAAC,qBAAqB;IAwB7B;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAiB5B,gFAAgF;IAChF,OAAO,CAAC,aAAa;IA0BrB,OAAO,CAAC,IAAI;IAcZ,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,QAAQ;yCAprBL,yBAAyB;2CAAzB,yBAAyB;CAusBrC"}
@@ -2,6 +2,7 @@ import { Component, Input, Output, EventEmitter, ViewChild, ViewContainerRef, Ch
2
2
  import { CompositeKey, FieldValueCollection, EntityFieldTSType, LogError } from '@memberjunction/core';
3
3
  import { MJGlobal } from '@memberjunction/global';
4
4
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
5
+ import { IsPhoneViewport } from '../chrome/phone-viewport';
5
6
  import { BaseFormSectionComponent } from '../base-form-section-component';
6
7
  import { InteractiveFormComponent } from '../interactive-form/interactive-form.component';
7
8
  import { FormResolverService, HasStandardFormAlternative as hasStandardFormAlternative } from '../resolver/form-resolver.service';
@@ -275,6 +276,15 @@ export class MjEntityFormHostComponent extends BaseAngularComponent {
275
276
  ngOnDestroy() {
276
277
  this.teardown();
277
278
  }
279
+ // ── Standard-form switch strip ─────────────────────────────────────────────
280
+ /**
281
+ * At phone width the mode strip is hidden; the switch moves into the toolbar's View
282
+ * bottom sheet instead so the 375px header stays clean while the user's chosen form
283
+ * (custom or standard) still mounts.
284
+ */
285
+ get HidesModeStrip() {
286
+ return IsPhoneViewport();
287
+ }
278
288
  // ── Public API (driven by dialog/slide-in chrome) ─────────────────────────
279
289
  /**
280
290
  * Save the bound record. In full-form mode this runs the form's save
@@ -608,6 +618,10 @@ export class MjEntityFormHostComponent extends BaseAngularComponent {
608
618
  this._record = null; // force a fresh load against the new variant
609
619
  this.reload();
610
620
  };
621
+ // ShowFormModeSwitch is the host's opt-out for the strip; the phone View sheet honours it too.
622
+ instance.FormModeSwitch = this.ShowFormModeSwitch && this.HasStandardFormAlternative
623
+ ? { Mode: this._formMode, Switch: (m) => this.SwitchFormMode(m) }
624
+ : null;
611
625
  }
612
626
  /** Subscribe to the form's outputs and re-emit them through the host. */
613
627
  subscribeToFormEvents(form) {
@@ -761,12 +775,12 @@ export class MjEntityFormHostComponent extends BaseAngularComponent {
761
775
  i0.ɵɵadvance();
762
776
  i0.ɵɵconditional(!ctx.loading && ctx.errorTitle ? 1 : -1);
763
777
  i0.ɵɵadvance();
764
- i0.ɵɵconditional(!ctx.Loading && ctx.ShowFormModeSwitch && ctx.HasStandardFormAlternative ? 2 : -1);
778
+ i0.ɵɵconditional(!ctx.Loading && ctx.ShowFormModeSwitch && ctx.HasStandardFormAlternative && !ctx.HidesModeStrip ? 2 : -1);
765
779
  } }, dependencies: [i1.MJButtonDirective, i2.LoadingComponent], styles: ["\n\n\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n\n\n\n\n\n[_nghost-%COMP%] > :not(.mj-form-host-mode-strip):not(.mj-form-host-loading):not(.mj-form-host-error) {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.mj-form-host-mode-strip[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 16px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-sunken);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-host-mode-text[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n.mj-form-host-loading[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 200px;\n height: 100%;\n}\n\n.mj-form-host-error[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 40px 24px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-form-host-error-icon[_ngcontent-%COMP%] {\n font-size: 32px;\n color: var(--mj-status-error);\n margin-bottom: 8px;\n}\n\n.mj-form-host-error-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.mj-form-host-error-detail[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 13px;\n max-width: 560px;\n line-height: 1.5;\n color: var(--mj-text-muted);\n}"] });
766
780
  }
767
781
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjEntityFormHostComponent, [{
768
782
  type: Component,
769
- args: [{ standalone: false, selector: 'mj-entity-form-host', template: "<!-- Loading state -->\n@if (loading) {\n <div class=\"mj-form-host-loading\">\n <mj-loading text=\"Loading record...\"></mj-loading>\n </div>\n}\n\n<!-- Error state -->\n@if (!loading && errorTitle) {\n <div class=\"mj-form-host-error\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation mj-form-host-error-icon\"></i>\n <h3 class=\"mj-form-host-error-title\">{{ errorTitle }}</h3>\n <p class=\"mj-form-host-error-detail\">{{ errorDetail }}</p>\n </div>\n}\n\n<!--\n Standard-form switch: only when a custom form hides the CodeGen form. Placed\n above the anchor so the dynamically-created form renders below it.\n-->\n@if (!Loading && ShowFormModeSwitch && HasStandardFormAlternative) {\n <div class=\"mj-form-host-mode-strip\">\n <i class=\"fa-solid\" [class.fa-wand-magic-sparkles]=\"FormMode === 'default'\" [class.fa-table-list]=\"FormMode === 'standard'\" aria-hidden=\"true\"></i>\n <span class=\"mj-form-host-mode-text\" aria-live=\"polite\">\n {{ FormMode === 'standard' ? 'Standard form \u2014 all form fields, same permissions.' : 'Custom view. Some fields may only be editable in the standard form.' }}\n </span>\n <button #modeSwitch mjButton Variant=\"outline\" Size=\"sm\" type=\"button\"\n class=\"mj-form-host-mode-switch\"\n (click)=\"OnModeSwitchClick()\">\n {{ FormMode === 'standard' ? 'Back to custom view' : 'Open standard form' }}\n </button>\n </div>\n}\n\n<!--\n Anchor for the dynamically-created form component. Always present (static)\n so the ViewContainerRef resolves at AfterViewInit. The form's own template\n carries the <mj-record-form-container>, so nothing wraps it here.\n-->\n<ng-template #anchor></ng-template>\n", styles: ["/*\n * Column flex so an optional mode strip can sit above a full-height form\n * without pushing it past the host's height.\n */\n:host {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n/*\n * The dynamically-created form is inserted after the anchor as a direct child,\n * but is not stamped with this component's content attribute \u2014 hence ::ng-deep\n * (scoped to direct children of this host) to let it take the remaining height.\n */\n:host ::ng-deep > :not(.mj-form-host-mode-strip):not(.mj-form-host-loading):not(.mj-form-host-error) {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.mj-form-host-mode-strip {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 16px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-sunken);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-host-mode-text {\n flex: 1;\n min-width: 0;\n}\n\n.mj-form-host-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 200px;\n height: 100%;\n}\n\n.mj-form-host-error {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 40px 24px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-form-host-error-icon {\n font-size: 32px;\n color: var(--mj-status-error);\n margin-bottom: 8px;\n}\n\n.mj-form-host-error-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.mj-form-host-error-detail {\n margin: 0;\n font-size: 13px;\n max-width: 560px;\n line-height: 1.5;\n color: var(--mj-text-muted);\n}\n"] }]
783
+ args: [{ standalone: false, selector: 'mj-entity-form-host', template: "<!-- Loading state -->\n@if (loading) {\n <div class=\"mj-form-host-loading\">\n <mj-loading text=\"Loading record...\"></mj-loading>\n </div>\n}\n\n<!-- Error state -->\n@if (!loading && errorTitle) {\n <div class=\"mj-form-host-error\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation mj-form-host-error-icon\"></i>\n <h3 class=\"mj-form-host-error-title\">{{ errorTitle }}</h3>\n <p class=\"mj-form-host-error-detail\">{{ errorDetail }}</p>\n </div>\n}\n\n<!--\n Standard-form switch: only when a custom form hides the CodeGen form. Placed\n above the anchor so the dynamically-created form renders below it.\n-->\n@if (!Loading && ShowFormModeSwitch && HasStandardFormAlternative && !HidesModeStrip) {\n <div class=\"mj-form-host-mode-strip\">\n <i class=\"fa-solid\" [class.fa-wand-magic-sparkles]=\"FormMode === 'default'\" [class.fa-table-list]=\"FormMode === 'standard'\" aria-hidden=\"true\"></i>\n <span class=\"mj-form-host-mode-text\" aria-live=\"polite\">\n {{ FormMode === 'standard' ? 'Standard form \u2014 all form fields, same permissions.' : 'Custom view. Some fields may only be editable in the standard form.' }}\n </span>\n <button #modeSwitch mjButton Variant=\"outline\" Size=\"sm\" type=\"button\"\n class=\"mj-form-host-mode-switch\"\n (click)=\"OnModeSwitchClick()\">\n {{ FormMode === 'standard' ? 'Back to custom view' : 'Open standard form' }}\n </button>\n </div>\n}\n\n<!--\n Anchor for the dynamically-created form component. Always present (static)\n so the ViewContainerRef resolves at AfterViewInit. The form's own template\n carries the <mj-record-form-container>, so nothing wraps it here.\n-->\n<ng-template #anchor></ng-template>\n", styles: ["/*\n * Column flex so an optional mode strip can sit above a full-height form\n * without pushing it past the host's height.\n */\n:host {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n/*\n * The dynamically-created form is inserted after the anchor as a direct child,\n * but is not stamped with this component's content attribute \u2014 hence ::ng-deep\n * (scoped to direct children of this host) to let it take the remaining height.\n */\n:host ::ng-deep > :not(.mj-form-host-mode-strip):not(.mj-form-host-loading):not(.mj-form-host-error) {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.mj-form-host-mode-strip {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 16px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-sunken);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-host-mode-text {\n flex: 1;\n min-width: 0;\n}\n\n.mj-form-host-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 200px;\n height: 100%;\n}\n\n.mj-form-host-error {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 40px 24px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-form-host-error-icon {\n font-size: 32px;\n color: var(--mj-status-error);\n margin-bottom: 8px;\n}\n\n.mj-form-host-error-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.mj-form-host-error-detail {\n margin: 0;\n font-size: 13px;\n max-width: 560px;\n line-height: 1.5;\n color: var(--mj-text-muted);\n}\n"] }]
770
784
  }], null, { anchor: [{
771
785
  type: ViewChild,
772
786
  args: ['anchor', { read: ViewContainerRef, static: true }]
@@ -824,5 +838,5 @@ export class MjEntityFormHostComponent extends BaseAngularComponent {
824
838
  }], AskAIRequested: [{
825
839
  type: Output
826
840
  }] }); })();
827
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjEntityFormHostComponent, { className: "MjEntityFormHostComponent", filePath: "src/lib/host/entity-form-host.component.ts", lineNumber: 70 }); })();
841
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjEntityFormHostComponent, { className: "MjEntityFormHostComponent", filePath: "src/lib/host/entity-form-host.component.ts", lineNumber: 71 }); })();
828
842
  //# sourceMappingURL=entity-form-host.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-form-host.component.js","sourceRoot":"","sources":["../../../src/lib/host/entity-form-host.component.ts","../../../src/lib/host/entity-form-host.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAg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M,EAAE,KAAK,EAAE,CAAC;IACvB,CAAC;iRAvrBU,yBAAyB,yBAAzB,yBAAyB;6DAAzB,yBAAyB;mCAKP,gBAAgB;;;;;;YCzE/C,2FAAe;YAOf,2FAA8B;YAY9B,2FAAoE;YAmBpE,2HAAqB;;YAtCrB,sCAIC;YAGD,cAMC;YAND,yDAMC;YAMD,cAYC;YAZD,mGAYC;;;iFDqCY,yBAAyB;cANrC,SAAS;6BACI,KAAK,YACP,qBAAqB;;kBAS9B,SAAS;mBAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE;;kBAE5D,SAAS;mBAAC,YAAY;;kBAMtB,KAAK;;kBAUL,KAAK;;kBAkBL,KAAK;;kBASL,KAAK;;kBAUL,KAAK;;kBAIL,KAAK;;kBAKL,KAAK;;kBASL,KAAK;;kBAUL,KAAK;;kBAKL,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAON,MAAM;;kBAEN,MAAM;;kFAhII,yBAAyB","sourcesContent":["import {\n Component, Input, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef,\n ComponentRef, ChangeDetectorRef, inject, AfterViewInit, OnDestroy, Type\n} from '@angular/core';\nimport {\n CompositeKey, BaseEntity, BaseEntityEvent, FieldValueCollection, EntityFieldTSType, LogError\n} from '@memberjunction/core';\nimport { MJGlobal } from '@memberjunction/global';\nimport { Subscription } from 'rxjs';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\n\nimport { BaseFormComponent } from '../base-form-component';\nimport { BaseFormSectionComponent } from '../base-form-section-component';\nimport { InteractiveFormComponent } from '../interactive-form/interactive-form.component';\nimport {\n EntityFormMode, FormResolution, FormResolverService,\n HasStandardFormAlternative as hasStandardFormAlternative\n} from '../resolver/form-resolver.service';\nimport { FormVariantChoices } from '../resolver/form-variants';\nimport { EntityFormConfig } from '../types/entity-form-config';\nimport { FormNavigationEvent } from '../types/navigation-events';\nimport {\n FormNotificationEvent, RecordSavedEvent, RecordDeletedEvent,\n RecordSaveFailedEvent, ValidationFailedEvent\n} from '../types/form-types';\n\n/**\n * Presentation-agnostic host that renders ANY MemberJunction entity form —\n * generated (`@RegisterClass` / CodeGen), custom (`*Extended`), or interactive\n * (`EntityFormOverride`) — for a given record.\n *\n * This is the shared core extracted from Explorer's `SingleRecordComponent`. It\n * encapsulates the full lifecycle: **resolve** which form to use (via\n * {@link FormResolverService}, honoring variant overrides) → **load** the\n * record (or accept a pre-loaded one) → **create** the form component\n * dynamically → **bind** record / EditMode / Config / variants → **re-emit**\n * the form's events → **tear down** cleanly.\n *\n * It has ZERO routing and ZERO Explorer dependencies — it only emits events.\n * The surrounding surface (a full-page tab in Explorer, a dialog, or a\n * slide-in) decides what to do with `Navigate`, `Notification`, etc.\n *\n * @example Explorer tab (thin wrapper subscribes + maps to NavigationService)\n * ```html\n * <mj-entity-form-host [EntityName]=\"entityName\" [PrimaryKey]=\"pk\"\n * (Navigate)=\"handleNavigation($event)\" (Saved)=\"onSaved($event)\">\n * </mj-entity-form-host>\n * ```\n *\n * @example Bind a pre-loaded record (dialog/slide-in)\n * ```html\n * <mj-entity-form-host [Record]=\"myEntity\" [Config]=\"DIALOG_FORM_CONFIG\"></mj-entity-form-host>\n * ```\n *\n * **Standard-form switch.** When a custom form (a higher-priority class form or\n * an interactive override) hides the CodeGen-generated form, the host renders a\n * one-line strip above it offering \"Open standard form\" — every field, same\n * permissions — and back. It lives here rather than in `<mj-form-toolbar>`\n * because a fully custom form may not render the toolbar at all, which would\n * leave the generated form unreachable. Surfaces drive/persist the choice via\n * {@link FormMode} / {@link FormModeChange}; hosts that must not offer it set\n * {@link ShowFormModeSwitch} to false.\n */\n@Component({\n standalone: false,\n selector: 'mj-entity-form-host',\n templateUrl: './entity-form-host.component.html',\n styleUrls: ['./entity-form-host.component.css'],\n})\nexport class MjEntityFormHostComponent extends BaseAngularComponent implements AfterViewInit, OnDestroy {\n private cdr = inject(ChangeDetectorRef);\n private formResolver = inject(FormResolverService);\n\n /** Anchor for the dynamically-created form component. Always present in the DOM. */\n @ViewChild('anchor', { read: ViewContainerRef, static: true }) private anchor!: ViewContainerRef;\n /** The strip's switch button — present only while the strip renders. */\n @ViewChild('modeSwitch') private modeSwitchButton?: ElementRef<HTMLButtonElement>;\n\n // ── Inputs ──────────────────────────────────────────────────────────────\n\n private _entityName: string | null = null;\n /** Entity name to load a record for. Ignored when {@link Record} is supplied. */\n @Input()\n set EntityName(value: string | null) {\n const changed = this._entityName !== value;\n this._entityName = value;\n if (changed && this._viewInitialized) this.reload();\n }\n get EntityName(): string | null { return this._entityName; }\n\n private _primaryKey: CompositeKey = new CompositeKey();\n /** Primary key of the record to load. Empty key → new record. */\n @Input()\n set PrimaryKey(value: CompositeKey) {\n const changed = !this.compositeKeysEqual(this._primaryKey, value);\n this._primaryKey = value ?? new CompositeKey();\n if (!changed || !this._viewInitialized) return;\n // Skip reload when the incoming key just reflects the current record's now-saved PK\n // (post new-record save rebind). Genuine external swaps still reload.\n if (this._currentRecord && this.compositeKeysEqual(value, this._currentRecord.PrimaryKey)) return;\n this.reload();\n }\n get PrimaryKey(): CompositeKey { return this._primaryKey; }\n\n private _record: BaseEntity | null = null;\n /**\n * Pre-loaded record to bind directly. When supplied, the host skips the\n * load step entirely and mounts the resolved form against this instance —\n * `EntityName`/`PrimaryKey` are not required.\n */\n @Input()\n set Record(value: BaseEntity | null) {\n const changed = this._record !== value;\n this._record = value;\n if (changed && this._viewInitialized) this.reload();\n }\n get Record(): BaseEntity | null { return this._record; }\n\n /** New-record default values: URL-segment string or a plain object. */\n @Input() NewRecordValues: string | Record<string, unknown> | null = null;\n\n /**\n * Render a single registered form **section** (a `BaseFormSectionComponent`\n * registered as `'<EntityName>.<SectionName>'`) instead of the full form.\n * When set, the full-form resolver / variant picker / toolbar container are\n * bypassed — the section component renders its own fields and the host saves\n * the record directly. Used for compact, focused editors (e.g. a quick-edit\n * grid row). Leave null for the normal full-form behavior.\n */\n @Input() SectionName: string | null = null;\n\n private _editMode: boolean | null = null;\n /** Force edit mode. When omitted, new records start in edit, existing in read. */\n @Input()\n set EditMode(value: boolean | null) { this._editMode = value; }\n get EditMode(): boolean | null { return this._editMode; }\n\n /** Per-instance form presentation config (toolbar, sections, width, links). */\n @Input() Config: EntityFormConfig | null = null;\n\n private _formMode: EntityFormMode = 'default';\n /**\n * Which form to mount: `'default'` = the resolver's normal pick; `'standard'`\n * = the CodeGen-generated form, even when a custom form outranks it. Falls\n * back to the default (and logs) when the entity has no standard form.\n * A change after the view initializes reloads the form.\n */\n @Input()\n set FormMode(value: EntityFormMode) {\n const next = value ?? 'default';\n const changed = this._formMode !== next;\n this._formMode = next;\n if (changed && this._viewInitialized) this.reload();\n }\n get FormMode(): EntityFormMode { return this._formMode; }\n\n /** Offer the standard-form strip when a custom form hides the generated one. Set false to suppress it. */\n @Input() ShowFormModeSwitch = true;\n\n // ── Outputs ─────────────────────────────────────────────────────────────\n\n /** Form navigation request (record link, new record, hierarchy, email, external, dismiss). */\n @Output() Navigate = new EventEmitter<FormNavigationEvent>();\n /** User-facing notification request (success/error/warning/info). */\n @Output() Notification = new EventEmitter<FormNotificationEvent>();\n /** Emitted after the record is successfully saved (carries the live entity). */\n @Output() Saved = new EventEmitter<BaseEntity>();\n /** Re-emitted form `RecordSaved` (richer payload). */\n @Output() RecordSaved = new EventEmitter<RecordSavedEvent>();\n /** Re-emitted form `RecordRefreshed`. */\n @Output() RecordRefreshed = new EventEmitter<BaseEntity>();\n /** Re-emitted form `RecordDeleted`. */\n @Output() RecordDeleted = new EventEmitter<RecordDeletedEvent>();\n /** Re-emitted form `RecordSaveFailed`. */\n @Output() RecordSaveFailed = new EventEmitter<RecordSaveFailedEvent>();\n /** Re-emitted form `ValidationFailed`. */\n @Output() ValidationFailed = new EventEmitter<ValidationFailedEvent>();\n /** Re-emitted form `RecordReady` (record fully initialized). */\n @Output() RecordReady = new EventEmitter<BaseEntity>();\n /** Form asked to be dismissed (e.g. Discard on a brand-new record). */\n @Output() Dismissed = new EventEmitter<void>();\n /** Initial load + mount finished (success path). */\n @Output() LoadComplete = new EventEmitter<void>();\n /** Load failed; carries a user-facing title + detail. */\n @Output() LoadError = new EventEmitter<{ title: string; detail: string }>();\n /** The live form instance, emitted right after it's created (for power-user wiring). */\n @Output() FormCreated = new EventEmitter<BaseFormComponent>();\n /** The user switched between the custom and the standard form (so the surface can persist it, e.g. in the URL). */\n @Output() FormModeChange = new EventEmitter<EntityFormMode>();\n /**\n * Re-emitted form `EditModeChanged` (true = edit started, false = ended),\n * plus one `true` right after mount when the form was created already in\n * edit mode (`StartInEditMode`, or a new record) — StartEditMode never runs\n * in that path, so without this the shell would never hear about it.\n */\n @Output() EditModeChanged = new EventEmitter<boolean>();\n /** Emitted when the user clicks the \"Ask AI\" button on the form toolbar. */\n @Output() AskAIRequested = new EventEmitter<void>();\n\n // ── State ───────────────────────────────────────────────────────────────\n\n public Loading = true;\n\n /** @deprecated Use {@link Loading}. */\n public get loading() {\n return this.Loading;\n }\n /** @deprecated Use {@link Loading}. */\n public set loading(value) {\n this.Loading = value;\n }\n public ErrorTitle: string | null = null;\n\n /** @deprecated Use {@link ErrorTitle}. */\n public get errorTitle(): string | null {\n return this.ErrorTitle;\n }\n /** @deprecated Use {@link ErrorTitle}. */\n public set errorTitle(value: string | null) {\n this.ErrorTitle = value;\n }\n public errorDetail: string | null = null;\n\n /**\n * True when a custom form is hiding the standard (CodeGen) form — so the\n * switch strip has somewhere to go. Stays true while the standard form is\n * the one mounted, so the strip can offer the way back.\n */\n public HasStandardFormAlternative = false;\n\n private _formComponentRef: ComponentRef<BaseFormComponent> | null = null;\n private _sectionRef: ComponentRef<BaseFormSectionComponent> | null = null;\n private _isSection = false;\n private _currentRecord: BaseEntity | null = null;\n private _saveHandlerSub: Subscription | null = null;\n private _formEventSubs: Subscription[] = [];\n private _viewInitialized = false;\n /**\n * An unsaved new record carried across a form switch. A brand-new record is\n * always `Dirty` (never saved), so the dirty guard can't protect it; instead\n * the switch re-binds the same live instance rather than creating a fresh one,\n * so whatever the user typed survives. Consumed by the next {@link obtainRecord}.\n */\n private _carryNewRecord: BaseEntity | null = null;\n /**\n * Set when the strip's own button started a switch. The reload unmounts the\n * strip (and the focused button with it), so focus is handed to the new\n * button once the mount completes instead of falling to `<body>`.\n */\n private _refocusModeSwitch = false;\n /**\n * Bumped by every {@link teardown} (so by every reload and by destroy). A\n * load captures it on entry and gives up after any `await` once it has\n * moved: a superseded load must not mount, emit, register a save handler,\n * or report a failure over the load that replaced it.\n */\n private _loadGeneration = 0;\n\n /** The live form component instance, or null before mount / after teardown. */\n get Form(): BaseFormComponent | null {\n return this._formComponentRef?.instance ?? null;\n }\n\n /** Whether the bound record has unsaved changes. */\n get Dirty(): boolean {\n return this._currentRecord?.Dirty ?? false;\n }\n\n // ── Lifecycle ───────────────────────────────────────────────────────────\n\n ngAfterViewInit(): void {\n this._viewInitialized = true;\n this.reload();\n }\n\n ngOnDestroy(): void {\n this.teardown();\n }\n\n // ── Public API (driven by dialog/slide-in chrome) ─────────────────────────\n\n /**\n * Save the bound record. In full-form mode this runs the form's save\n * pipeline (validation, pending records, notifications); in section mode the\n * section component has no pipeline, so we save the record directly (the\n * record's own save event still drives the `Saved` output).\n */\n async Save(): Promise<boolean> {\n if (this._isSection) {\n return this._currentRecord ? this._currentRecord.Save() : false;\n }\n const f = this.Form;\n if (!f) return false;\n return f.SaveRecord(true);\n }\n\n /** Cancel edits (revert). Full-form mode uses the form's cancel pipeline. */\n Cancel(): void {\n if (this._isSection) {\n if (this._currentRecord?.Dirty) this._currentRecord.Revert();\n return;\n }\n this.Form?.CancelEdit();\n }\n\n /** Refresh the bound record from the database. Full-form mode uses the form's refresh pipeline. */\n async Refresh(): Promise<boolean> {\n if (this._isSection) {\n return this._currentRecord?.IsSaved ? this._currentRecord.Refresh() : false;\n }\n const f = this.Form;\n if (!f) return false;\n return f.RefreshRecord();\n }\n\n /**\n * Switch between the custom (`'default'`) and the standard form. Refuses —\n * returning false and emitting a `warning` Notification — when remounting\n * would silently discard unsaved work (see {@link hasUnsavedWorkToLose}).\n * A brand-new record is carried across instead (see {@link _carryNewRecord}).\n * With a form mounted but no standard alternative (the generated form is\n * the only one), both modes mount the same form: the mode is recorded and\n * emitted, with no reload and so nothing for the unsaved-work guard to\n * protect. The error state is excluded: `fail()` also clears\n * `HasStandardFormAlternative` and `Loading`, and there the switch must\n * still reload — it is the retry of the failed load.\n */\n public SwitchFormMode(mode: EntityFormMode): boolean {\n if (mode === this._formMode) return true;\n if (!this.HasStandardFormAlternative && !this.Loading && !this.ErrorTitle) {\n this._formMode = mode;\n this.FormModeChange.emit(mode);\n return true;\n }\n if (this.hasUnsavedWorkToLose()) {\n this.Notification.emit({ Message: 'Save or discard your changes before switching forms.', Type: 'warning', Duration: 4000 });\n return false;\n }\n const record = this._currentRecord;\n // A bound Record input is reused by every reload anyway; only a host-created new record needs carrying.\n if (record && !record.IsSaved && !this._record) this._carryNewRecord = record;\n this._formMode = mode;\n this.FormModeChange.emit(mode);\n this.reload();\n return true;\n }\n\n /** Template handler for the strip's button: switch, and keep keyboard focus on the button. */\n public OnModeSwitchClick(): void {\n this._refocusModeSwitch = true;\n const next: EntityFormMode = this._formMode === 'standard' ? 'default' : 'standard';\n if (!this.SwitchFormMode(next)) this._refocusModeSwitch = false; // refused: the button never left\n }\n\n /**\n * Whether tearing the mounted form down would lose unsaved work. A saved\n * record's field edits count; a brand-new record's don't, because its live\n * instance is carried across the switch. Work the form holds outside the\n * record (pending related records, designer/canvas state) always counts —\n * it lives in the form component, which the switch destroys.\n */\n private hasUnsavedWorkToLose(): boolean {\n const record = this._currentRecord;\n if (record?.IsSaved && record.Dirty) return true;\n return this.Form?.HasUnsavedChangesBeyondRecord ?? false;\n }\n\n // ── Core: resolve → load → create → bind → wire ──────────────────────────\n\n private reload(): void {\n this.teardown();\n this.Loading = true;\n this.HasStandardFormAlternative = false;\n this.ErrorTitle = null;\n this.errorDetail = null;\n void this.loadAndMount();\n }\n\n private async loadAndMount(): Promise<void> {\n const generation = this._loadGeneration;\n const md = this.ProviderToUse;\n // When a pre-loaded record is supplied, derive the entity from it.\n const entityName = this._record?.EntityInfo?.Name ?? this._entityName;\n\n if (!entityName || entityName.trim().length === 0) {\n // Nothing to load yet — a caller will re-invoke once an entity is known.\n return;\n }\n\n try {\n const entity = md.EntityByName(entityName);\n if (!entity) {\n this.fail(`Entity not found: \"${entityName}\"`,\n `This MemberJunction instance has no metadata for entity \"${entityName}\".`);\n return;\n }\n const permissions = entity.GetUserPermisions(md.CurrentUser);\n\n // Section mode short-circuits the full-form resolver / container.\n if (this.SectionName) {\n await this.mountSection(entityName, permissions, generation);\n return;\n }\n\n const resolution = await this.formResolver.ResolveFormForEntity(entity, md.CurrentUser, md);\n if (this.isSuperseded(generation)) return;\n this.HasStandardFormAlternative = hasStandardFormAlternative(resolution);\n if (resolution.kind === 'none') {\n this.fail(`No form is registered for \"${entityName}\".`,\n `No EntityFormOverride or class-based form (@RegisterClass(BaseFormComponent, '${entityName}')) was found. Run CodeGen or register a custom form.`);\n return;\n }\n\n const record = await this.obtainRecord(entityName, generation, md);\n if (!record || this.isSuperseded(generation)) return; // a failure already called fail()\n\n // Emit Saved on the record's own save event (covers all save paths).\n this._saveHandlerSub = record.RegisterEventHandler((e: BaseEntityEvent) => {\n if (e.type === 'save') this.Saved.emit(record);\n });\n\n const standardForm = this.standardFormToMount(resolution, entityName);\n\n this.anchor.clear();\n let componentRef: ComponentRef<BaseFormComponent>;\n if (standardForm) {\n componentRef = this.anchor.createComponent(standardForm);\n } else if (resolution.kind === 'interactive') {\n const interactiveRef = this.anchor.createComponent(InteractiveFormComponent);\n interactiveRef.instance.ComponentID = resolution.override.ComponentID;\n componentRef = interactiveRef;\n } else {\n componentRef = this.anchor.createComponent(resolution.subClass);\n }\n\n this._formComponentRef = componentRef;\n this._currentRecord = record;\n\n const instance = componentRef.instance as BaseFormComponent & { userPermissions?: unknown };\n instance.record = record;\n instance.userPermissions = permissions;\n instance.Config = this.effectiveConfigFor(record);\n instance.EditMode = this._editMode ?? this.Config?.StartInEditMode ?? !record.IsSaved;\n\n this.applyVariants(instance, resolution, entityName);\n // The picker's \"current\" row describes the resolver's pick; the standard form is none of them.\n if (standardForm) instance.CurrentVariantID = null;\n this.subscribeToFormEvents(instance);\n this.announceInitialEditMode(instance);\n\n this.FormCreated.emit(instance);\n this.ErrorTitle = null;\n this.errorDetail = null;\n this.LoadComplete.emit();\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n if (this.isSuperseded(generation)) {\n LogError(`MjEntityFormHost: a superseded load of \"${entityName}\" failed: ${msg}`);\n return;\n }\n this.fail(`Failed to load ${entityName} record.`, `An unexpected error occurred: ${msg}`);\n } finally {\n // The load that replaced this one owns Loading, change detection and focus.\n if (!this.isSuperseded(generation)) this.settleLoad();\n }\n }\n\n /** Whether a newer load (or destroy) has replaced the load that captured `generation`. */\n private isSuperseded(generation: number): boolean {\n return generation !== this._loadGeneration;\n }\n\n /** End the current load: clear the loading state, render, and restore the switch's focus. */\n private settleLoad(): void {\n this.Loading = false;\n this.cdr.detectChanges();\n this.restoreModeSwitchFocus();\n }\n\n /** After a strip-initiated switch, hand focus to the re-rendered switch button (if the strip is back). */\n private restoreModeSwitchFocus(): void {\n if (!this._refocusModeSwitch) return;\n this._refocusModeSwitch = false;\n this.modeSwitchButton?.nativeElement.focus();\n }\n\n /**\n * The standard form class to mount instead of the resolver's pick, or null\n * to mount the pick. Only non-null in `'standard'` mode when a custom form is\n * actually hiding the standard one; when the pick already IS the standard\n * form there is nothing to swap. A `'standard'` request for an entity with\n * no standard form falls back to the pick and logs, so a stale deep link\n * can't break the record.\n */\n private standardFormToMount(resolution: FormResolution, entityName: string): Type<BaseFormComponent> | null {\n if (this._formMode !== 'standard') return null;\n if (!resolution.standard) {\n this.logMissingStandardFormOnce(entityName);\n return null;\n }\n return hasStandardFormAlternative(resolution) ? resolution.standard : null;\n }\n\n /** Entities this host has already logged a missing standard form for (lowercased names). */\n private readonly _missingStandardLogged = new Set<string>();\n\n /**\n * Log the \"standard requested, none registered\" fallback once per entity per\n * host. A stale `?form=standard` would otherwise log on every reload (each\n * variant pick, switch or input change).\n */\n private logMissingStandardFormOnce(entityName: string): void {\n const key = entityName.trim().toLowerCase();\n if (this._missingStandardLogged.has(key)) return;\n this._missingStandardLogged.add(key);\n LogError(`MjEntityFormHost: standard form requested for \"${entityName}\" but none is registered; showing the default form`);\n }\n\n /**\n * The config to bind for a given record. For brand-new (unsaved) records we hide the\n * `systemMetadata` section by default — its fields (audit timestamps, IDs, etc.) are\n * empty and irrelevant until the record exists. Doesn't mutate the consumer's config,\n * and defers entirely to a consumer that uses an explicit `VisibleSectionKeys` allowlist.\n */\n private effectiveConfigFor(record: BaseEntity): EntityFormConfig | null {\n if (record.IsSaved) return this.Config;\n if (this.Config?.VisibleSectionKeys?.length) return this.Config; // consumer owns visibility\n const SYSTEM_METADATA_KEY = 'systemMetadata';\n const hidden = this.Config?.HiddenSectionKeys ?? [];\n if (hidden.includes(SYSTEM_METADATA_KEY)) return this.Config;\n return { ...(this.Config ?? {}), HiddenSectionKeys: [...hidden, SYSTEM_METADATA_KEY] };\n }\n\n /**\n * Section mode: resolve a `BaseFormSectionComponent` registered as\n * `'<entity>.<section>'`, mount it, and bind the record. No resolver,\n * variants, container, or form-event surface — section components are bare\n * field editors; the host saves the record directly (see {@link Save}).\n */\n private async mountSection(entityName: string, permissions: unknown, generation: number): Promise<void> {\n const key = `${entityName}.${this.SectionName}`;\n const reg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormSectionComponent, key);\n if (!reg?.SubClass) {\n this.fail(`No form section \"${this.SectionName}\" is registered for \"${entityName}\".`,\n `Expected a @RegisterClass(BaseFormSectionComponent, '${key}'). Check the section name.`);\n return;\n }\n\n const record = await this.obtainRecord(entityName, generation);\n if (!record || this.isSuperseded(generation)) return;\n\n this._saveHandlerSub = record.RegisterEventHandler((e: BaseEntityEvent) => {\n if (e.type === 'save') this.Saved.emit(record);\n });\n\n this.anchor.clear();\n const ref = this.anchor.createComponent(reg.SubClass as Type<BaseFormSectionComponent>);\n this._sectionRef = ref;\n this._currentRecord = record;\n this._isSection = true;\n\n const instance = ref.instance as BaseFormSectionComponent & { userPermissions?: unknown };\n instance.record = record;\n instance.userPermissions = permissions;\n instance.EditMode = this._editMode ?? this.Config?.StartInEditMode ?? !record.IsSaved;\n\n this.RecordReady.emit(record);\n this.LoadComplete.emit();\n }\n\n /**\n * Resolve the BaseEntity to bind: the supplied instance, or a freshly loaded/new one.\n * Returns null on failure; reports it through {@link fail} only while `generation` is still current.\n */\n private async obtainRecord(entityName: string, generation: number, md = this.ProviderToUse): Promise<BaseEntity | null> {\n if (this._record) return this._record;\n const carried = this._carryNewRecord;\n this._carryNewRecord = null;\n // Only honor the carry for the same new record — an input swap since the switch loads normally.\n if (carried && carried.EntityInfo.Name === entityName && !this._primaryKey.HasValue) return carried;\n\n const record = await md.GetEntityObject<BaseEntity>(entityName, md.CurrentUser);\n if (!record) {\n if (this.isSuperseded(generation)) return null;\n this.fail(`Failed to load ${entityName} record.`, `Unable to instantiate entity \"${entityName}\".`);\n return null;\n }\n\n if (this._primaryKey.HasValue) {\n const loadOk = await record.InnerLoad(this._primaryKey);\n if (!loadOk) {\n if (this.isSuperseded(generation)) return null;\n this.fail(`Could not load ${entityName} record.`,\n record.LatestResult?.Message\n ? `Server error: ${record.LatestResult.Message}`\n : `InnerLoad returned false for key ${this._primaryKey.ToString()}.`);\n return null;\n }\n } else {\n record.NewRecord();\n this.applyNewRecordValues(record);\n }\n return record;\n }\n\n /** Push variant list + active selection and wire the variant-switch handler. */\n private applyVariants(\n instance: BaseFormComponent,\n resolution: FormResolution,\n entityName: string,\n ): void {\n instance.Variants = FormVariantChoices(resolution.variants ?? []);\n instance.CurrentVariantID = resolution.kind === 'interactive' ? resolution.override.ID : null;\n instance.OnVariantChanged = (variantID: string | null) => {\n if (variantID === null) {\n this.formResolver.SetExplicitDefault(entityName);\n } else {\n this.formResolver.SetSelectedVariant(entityName, variantID);\n }\n // Picking a variant means \"show me that one\" — leave the standard form.\n if (this._formMode === 'standard') {\n this._formMode = 'default';\n this.FormModeChange.emit('default');\n }\n // Reload via the resolver so tier/priority + the new selection apply.\n this._record = null; // force a fresh load against the new variant\n this.reload();\n };\n }\n\n /** Subscribe to the form's outputs and re-emit them through the host. */\n private subscribeToFormEvents(form: BaseFormComponent): void {\n this.cleanupFormSubs();\n this._formEventSubs.push(\n form.Navigate.subscribe(e => this.Navigate.emit(e)),\n form.Notification.subscribe(e => this.Notification.emit(e)),\n form.RecordSaved.subscribe(e => this.RecordSaved.emit(e)),\n form.RecordRefreshed.subscribe(e => this.RecordRefreshed.emit(e.Record)),\n form.RecordDeleted.subscribe(e => this.RecordDeleted.emit(e)),\n form.RecordSaveFailed.subscribe(e => this.RecordSaveFailed.emit(e)),\n form.ValidationFailed.subscribe(e => this.ValidationFailed.emit(e)),\n form.RecordReady.subscribe(e => this.RecordReady.emit(e)),\n form.EditModeChanged.subscribe(e => this.EditModeChanged.emit(e)),\n );\n if (form.AskAIRequested) {\n this._formEventSubs.push(\n form.AskAIRequested.subscribe(() => this.AskAIRequested?.emit()),\n );\n }\n // Surface 'dismiss' navigation as a first-class Dismissed event too.\n this._formEventSubs.push(\n form.Navigate.subscribe(e => { if (e.Kind === 'dismiss') this.Dismissed.emit(); }),\n );\n }\n\n /**\n * Announce edit mode that was set by ASSIGNMENT rather than by\n * StartEditMode() — the mount path writes `instance.EditMode` directly, so\n * a form that starts in edit mode would otherwise be editing, unpinned and\n * italic in a records preview tab. Safe to fire alongside ngOnInit's own\n * StartEditMode for a new record: the shell's pin is idempotent.\n */\n private announceInitialEditMode(form: BaseFormComponent): void {\n if (form.EditMode) {\n this.EditModeChanged.emit(true);\n }\n }\n\n // ── New-record value application (URL segment or object) ──────────────────\n\n private applyNewRecordValues(record: BaseEntity): void {\n if (!this.NewRecordValues) return;\n if (typeof this.NewRecordValues === 'string') {\n if (this.NewRecordValues.length === 0) return;\n const fv = new FieldValueCollection();\n fv.SimpleLoadFromURLSegment(this.NewRecordValues);\n fv.KeyValuePairs\n .filter(kvp => kvp.Value !== null && kvp.Value !== undefined)\n .forEach(kvp => this.setTypedField(record, kvp.FieldName, kvp.Value));\n } else {\n const values = this.NewRecordValues as Record<string, unknown>;\n Object.keys(values)\n .filter(key => values[key] !== null && values[key] !== undefined)\n .forEach(key => this.setTypedField(record, key, values[key]));\n }\n }\n\n /** Set a field with TSType-aware coercion (shared by string + object paths). */\n private setTypedField(record: BaseEntity, fieldName: string, value: unknown): void {\n const f = record.Fields.find(x => x.Name.trim().toLowerCase() === fieldName.trim().toLowerCase());\n if (!f) return;\n switch (f.EntityFieldInfo.TSType) {\n case EntityFieldTSType.String:\n record.Set(fieldName, value?.toString() ?? '');\n break;\n case EntityFieldTSType.Number:\n record.Set(fieldName, typeof value === 'number' ? value : parseFloat(value?.toString() ?? '0'));\n break;\n case EntityFieldTSType.Boolean:\n if (typeof value === 'boolean') record.Set(fieldName, value);\n else if (typeof value === 'string') record.Set(fieldName, value !== 'false' && value !== '0' && value.trim().length > 0);\n else record.Set(fieldName, !!value);\n break;\n case EntityFieldTSType.Date:\n record.Set(fieldName, value instanceof Date ? value : new Date(value?.toString() ?? ''));\n break;\n default:\n record.Set(fieldName, value);\n break;\n }\n }\n\n // ── Helpers ───────────────────────────────────────────────────────────────\n\n private fail(title: string, detail: string): void {\n this.ErrorTitle = title;\n this.errorDetail = detail;\n this.Loading = false;\n this.HasStandardFormAlternative = false; // no form mounted → nothing to switch between\n if (this._formComponentRef) {\n try { this._formComponentRef.destroy(); } catch { /* noop */ }\n this._formComponentRef = null;\n }\n this.anchor?.clear();\n this.LoadError.emit({ title, detail });\n this.cdr.detectChanges();\n }\n\n private compositeKeysEqual(a: CompositeKey | null | undefined, b: CompositeKey | null | undefined): boolean {\n if (a === b) return true;\n if (!a || !b) return false;\n const aKvps = (a.KeyValuePairs || []).filter(kvp => String(kvp.Value ?? '').length > 0);\n const bKvps = (b.KeyValuePairs || []).filter(kvp => String(kvp.Value ?? '').length > 0);\n if (aKvps.length !== bKvps.length) return false;\n for (let i = 0; i < aKvps.length; i++) {\n if (aKvps[i].FieldName !== bKvps[i].FieldName) return false;\n if (String(aKvps[i].Value ?? '') !== String(bKvps[i].Value ?? '')) return false;\n }\n return true;\n }\n\n private cleanupFormSubs(): void {\n for (const sub of this._formEventSubs) sub.unsubscribe();\n this._formEventSubs = [];\n }\n\n private teardown(): void {\n this._loadGeneration++;\n this.cleanupFormSubs();\n if (this._saveHandlerSub) {\n this._saveHandlerSub.unsubscribe();\n this._saveHandlerSub = null;\n }\n if (this._formComponentRef) {\n try { this._formComponentRef.destroy(); } catch { /* noop */ }\n this._formComponentRef = null;\n }\n if (this._sectionRef) {\n try { this._sectionRef.destroy(); } catch { /* noop */ }\n this._sectionRef = null;\n }\n this._isSection = false;\n this._currentRecord = null;\n this.anchor?.clear();\n }\n}\n","<!-- Loading state -->\n@if (loading) {\n <div class=\"mj-form-host-loading\">\n <mj-loading text=\"Loading record...\"></mj-loading>\n </div>\n}\n\n<!-- Error state -->\n@if (!loading && errorTitle) {\n <div class=\"mj-form-host-error\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation mj-form-host-error-icon\"></i>\n <h3 class=\"mj-form-host-error-title\">{{ errorTitle }}</h3>\n <p class=\"mj-form-host-error-detail\">{{ errorDetail }}</p>\n </div>\n}\n\n<!--\n Standard-form switch: only when a custom form hides the CodeGen form. Placed\n above the anchor so the dynamically-created form renders below it.\n-->\n@if (!Loading && ShowFormModeSwitch && HasStandardFormAlternative) {\n <div class=\"mj-form-host-mode-strip\">\n <i class=\"fa-solid\" [class.fa-wand-magic-sparkles]=\"FormMode === 'default'\" [class.fa-table-list]=\"FormMode === 'standard'\" aria-hidden=\"true\"></i>\n <span class=\"mj-form-host-mode-text\" aria-live=\"polite\">\n {{ FormMode === 'standard' ? 'Standard form — all form fields, same permissions.' : 'Custom view. Some fields may only be editable in the standard form.' }}\n </span>\n <button #modeSwitch mjButton Variant=\"outline\" Size=\"sm\" type=\"button\"\n class=\"mj-form-host-mode-switch\"\n (click)=\"OnModeSwitchClick()\">\n {{ FormMode === 'standard' ? 'Back to custom view' : 'Open standard form' }}\n </button>\n </div>\n}\n\n<!--\n Anchor for the dynamically-created form component. Always present (static)\n so the ViewContainerRef resolves at AfterViewInit. The form's own template\n carries the <mj-record-form-container>, so nothing wraps it here.\n-->\n<ng-template #anchor></ng-template>\n"]}
1
+ {"version":3,"file":"entity-form-host.component.js","sourceRoot":"","sources":["../../../src/lib/host/entity-form-host.component.ts","../../../src/lib/host/entity-form-host.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EACrD,iBAAiB,EAAE,MAAM,EACxC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EAA+B,oBAAoB,EAAE,iBAAiB,EAAE,QAAQ,EAC7F,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAC2B,mBAAmB,EACnD,0BAA0B,IAAI,0BAA0B,EACzD,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;;;;;;;ICjB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uF;YAmBvF,2HAAqB;;YAtCrB,sCAIC;YAGD,cAMC;YAND,yDAMC;YAMD,cAYC;YAZD,0HAYC;;;iFDsCY,yBAAyB;cANrC,SAAS;6BACI,KAAK,YACP,qBAAqB;;kBAS9B,SAAS;mBAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE;;kBAE5D,SAAS;mBAAC,YAAY;;kBAMtB,KAAK;;kBAUL,KAAK;;kBAkBL,KAAK;;kBASL,KAAK;;kBAUL,KAAK;;kBAIL,KAAK;;kBAKL,KAAK;;kBASL,KAAK;;kBAUL,KAAK;;kBAKL,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAON,MAAM;;kBAEN,MAAM;;kFAhII,yBAAyB","sourcesContent":["import {\n Component, Input, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef,\n ComponentRef, ChangeDetectorRef, inject, AfterViewInit, OnDestroy, Type\n} from '@angular/core';\nimport {\n CompositeKey, BaseEntity, BaseEntityEvent, FieldValueCollection, EntityFieldTSType, LogError\n} from '@memberjunction/core';\nimport { MJGlobal } from '@memberjunction/global';\nimport { Subscription } from 'rxjs';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { IsPhoneViewport } from '../chrome/phone-viewport';\n\nimport { BaseFormComponent } from '../base-form-component';\nimport { BaseFormSectionComponent } from '../base-form-section-component';\nimport { InteractiveFormComponent } from '../interactive-form/interactive-form.component';\nimport {\n EntityFormMode, FormResolution, FormResolverService,\n HasStandardFormAlternative as hasStandardFormAlternative\n} from '../resolver/form-resolver.service';\nimport { FormVariantChoices } from '../resolver/form-variants';\nimport { EntityFormConfig } from '../types/entity-form-config';\nimport { FormNavigationEvent } from '../types/navigation-events';\nimport {\n FormNotificationEvent, RecordSavedEvent, RecordDeletedEvent,\n RecordSaveFailedEvent, ValidationFailedEvent\n} from '../types/form-types';\n\n/**\n * Presentation-agnostic host that renders ANY MemberJunction entity form —\n * generated (`@RegisterClass` / CodeGen), custom (`*Extended`), or interactive\n * (`EntityFormOverride`) — for a given record.\n *\n * This is the shared core extracted from Explorer's `SingleRecordComponent`. It\n * encapsulates the full lifecycle: **resolve** which form to use (via\n * {@link FormResolverService}, honoring variant overrides) → **load** the\n * record (or accept a pre-loaded one) → **create** the form component\n * dynamically → **bind** record / EditMode / Config / variants → **re-emit**\n * the form's events → **tear down** cleanly.\n *\n * It has ZERO routing and ZERO Explorer dependencies — it only emits events.\n * The surrounding surface (a full-page tab in Explorer, a dialog, or a\n * slide-in) decides what to do with `Navigate`, `Notification`, etc.\n *\n * @example Explorer tab (thin wrapper subscribes + maps to NavigationService)\n * ```html\n * <mj-entity-form-host [EntityName]=\"entityName\" [PrimaryKey]=\"pk\"\n * (Navigate)=\"handleNavigation($event)\" (Saved)=\"onSaved($event)\">\n * </mj-entity-form-host>\n * ```\n *\n * @example Bind a pre-loaded record (dialog/slide-in)\n * ```html\n * <mj-entity-form-host [Record]=\"myEntity\" [Config]=\"DIALOG_FORM_CONFIG\"></mj-entity-form-host>\n * ```\n *\n * **Standard-form switch.** When a custom form (a higher-priority class form or\n * an interactive override) hides the CodeGen-generated form, the host renders a\n * one-line strip above it offering \"Open standard form\" — every field, same\n * permissions — and back. It lives here rather than in `<mj-form-toolbar>`\n * because a fully custom form may not render the toolbar at all, which would\n * leave the generated form unreachable. Surfaces drive/persist the choice via\n * {@link FormMode} / {@link FormModeChange}; hosts that must not offer it set\n * {@link ShowFormModeSwitch} to false.\n */\n@Component({\n standalone: false,\n selector: 'mj-entity-form-host',\n templateUrl: './entity-form-host.component.html',\n styleUrls: ['./entity-form-host.component.css'],\n})\nexport class MjEntityFormHostComponent extends BaseAngularComponent implements AfterViewInit, OnDestroy {\n private cdr = inject(ChangeDetectorRef);\n private formResolver = inject(FormResolverService);\n\n /** Anchor for the dynamically-created form component. Always present in the DOM. */\n @ViewChild('anchor', { read: ViewContainerRef, static: true }) private anchor!: ViewContainerRef;\n /** The strip's switch button — present only while the strip renders. */\n @ViewChild('modeSwitch') private modeSwitchButton?: ElementRef<HTMLButtonElement>;\n\n // ── Inputs ──────────────────────────────────────────────────────────────\n\n private _entityName: string | null = null;\n /** Entity name to load a record for. Ignored when {@link Record} is supplied. */\n @Input()\n set EntityName(value: string | null) {\n const changed = this._entityName !== value;\n this._entityName = value;\n if (changed && this._viewInitialized) this.reload();\n }\n get EntityName(): string | null { return this._entityName; }\n\n private _primaryKey: CompositeKey = new CompositeKey();\n /** Primary key of the record to load. Empty key → new record. */\n @Input()\n set PrimaryKey(value: CompositeKey) {\n const changed = !this.compositeKeysEqual(this._primaryKey, value);\n this._primaryKey = value ?? new CompositeKey();\n if (!changed || !this._viewInitialized) return;\n // Skip reload when the incoming key just reflects the current record's now-saved PK\n // (post new-record save rebind). Genuine external swaps still reload.\n if (this._currentRecord && this.compositeKeysEqual(value, this._currentRecord.PrimaryKey)) return;\n this.reload();\n }\n get PrimaryKey(): CompositeKey { return this._primaryKey; }\n\n private _record: BaseEntity | null = null;\n /**\n * Pre-loaded record to bind directly. When supplied, the host skips the\n * load step entirely and mounts the resolved form against this instance —\n * `EntityName`/`PrimaryKey` are not required.\n */\n @Input()\n set Record(value: BaseEntity | null) {\n const changed = this._record !== value;\n this._record = value;\n if (changed && this._viewInitialized) this.reload();\n }\n get Record(): BaseEntity | null { return this._record; }\n\n /** New-record default values: URL-segment string or a plain object. */\n @Input() NewRecordValues: string | Record<string, unknown> | null = null;\n\n /**\n * Render a single registered form **section** (a `BaseFormSectionComponent`\n * registered as `'<EntityName>.<SectionName>'`) instead of the full form.\n * When set, the full-form resolver / variant picker / toolbar container are\n * bypassed — the section component renders its own fields and the host saves\n * the record directly. Used for compact, focused editors (e.g. a quick-edit\n * grid row). Leave null for the normal full-form behavior.\n */\n @Input() SectionName: string | null = null;\n\n private _editMode: boolean | null = null;\n /** Force edit mode. When omitted, new records start in edit, existing in read. */\n @Input()\n set EditMode(value: boolean | null) { this._editMode = value; }\n get EditMode(): boolean | null { return this._editMode; }\n\n /** Per-instance form presentation config (toolbar, sections, width, links). */\n @Input() Config: EntityFormConfig | null = null;\n\n private _formMode: EntityFormMode = 'default';\n /**\n * Which form to mount: `'default'` = the resolver's normal pick; `'standard'`\n * = the CodeGen-generated form, even when a custom form outranks it. Falls\n * back to the default (and logs) when the entity has no standard form.\n * A change after the view initializes reloads the form.\n */\n @Input()\n set FormMode(value: EntityFormMode) {\n const next = value ?? 'default';\n const changed = this._formMode !== next;\n this._formMode = next;\n if (changed && this._viewInitialized) this.reload();\n }\n get FormMode(): EntityFormMode { return this._formMode; }\n\n /** Offer the standard-form strip when a custom form hides the generated one. Set false to suppress it. */\n @Input() ShowFormModeSwitch = true;\n\n // ── Outputs ─────────────────────────────────────────────────────────────\n\n /** Form navigation request (record link, new record, hierarchy, email, external, dismiss). */\n @Output() Navigate = new EventEmitter<FormNavigationEvent>();\n /** User-facing notification request (success/error/warning/info). */\n @Output() Notification = new EventEmitter<FormNotificationEvent>();\n /** Emitted after the record is successfully saved (carries the live entity). */\n @Output() Saved = new EventEmitter<BaseEntity>();\n /** Re-emitted form `RecordSaved` (richer payload). */\n @Output() RecordSaved = new EventEmitter<RecordSavedEvent>();\n /** Re-emitted form `RecordRefreshed`. */\n @Output() RecordRefreshed = new EventEmitter<BaseEntity>();\n /** Re-emitted form `RecordDeleted`. */\n @Output() RecordDeleted = new EventEmitter<RecordDeletedEvent>();\n /** Re-emitted form `RecordSaveFailed`. */\n @Output() RecordSaveFailed = new EventEmitter<RecordSaveFailedEvent>();\n /** Re-emitted form `ValidationFailed`. */\n @Output() ValidationFailed = new EventEmitter<ValidationFailedEvent>();\n /** Re-emitted form `RecordReady` (record fully initialized). */\n @Output() RecordReady = new EventEmitter<BaseEntity>();\n /** Form asked to be dismissed (e.g. Discard on a brand-new record). */\n @Output() Dismissed = new EventEmitter<void>();\n /** Initial load + mount finished (success path). */\n @Output() LoadComplete = new EventEmitter<void>();\n /** Load failed; carries a user-facing title + detail. */\n @Output() LoadError = new EventEmitter<{ title: string; detail: string }>();\n /** The live form instance, emitted right after it's created (for power-user wiring). */\n @Output() FormCreated = new EventEmitter<BaseFormComponent>();\n /** The user switched between the custom and the standard form (so the surface can persist it, e.g. in the URL). */\n @Output() FormModeChange = new EventEmitter<EntityFormMode>();\n /**\n * Re-emitted form `EditModeChanged` (true = edit started, false = ended),\n * plus one `true` right after mount when the form was created already in\n * edit mode (`StartInEditMode`, or a new record) — StartEditMode never runs\n * in that path, so without this the shell would never hear about it.\n */\n @Output() EditModeChanged = new EventEmitter<boolean>();\n /** Emitted when the user clicks the \"Ask AI\" button on the form toolbar. */\n @Output() AskAIRequested = new EventEmitter<void>();\n\n // ── State ───────────────────────────────────────────────────────────────\n\n public Loading = true;\n\n /** @deprecated Use {@link Loading}. */\n public get loading() {\n return this.Loading;\n }\n /** @deprecated Use {@link Loading}. */\n public set loading(value) {\n this.Loading = value;\n }\n public ErrorTitle: string | null = null;\n\n /** @deprecated Use {@link ErrorTitle}. */\n public get errorTitle(): string | null {\n return this.ErrorTitle;\n }\n /** @deprecated Use {@link ErrorTitle}. */\n public set errorTitle(value: string | null) {\n this.ErrorTitle = value;\n }\n public errorDetail: string | null = null;\n\n /**\n * True when a custom form is hiding the standard (CodeGen) form — so the\n * switch strip has somewhere to go. Stays true while the standard form is\n * the one mounted, so the strip can offer the way back.\n */\n public HasStandardFormAlternative = false;\n\n private _formComponentRef: ComponentRef<BaseFormComponent> | null = null;\n private _sectionRef: ComponentRef<BaseFormSectionComponent> | null = null;\n private _isSection = false;\n private _currentRecord: BaseEntity | null = null;\n private _saveHandlerSub: Subscription | null = null;\n private _formEventSubs: Subscription[] = [];\n private _viewInitialized = false;\n /**\n * An unsaved new record carried across a form switch. A brand-new record is\n * always `Dirty` (never saved), so the dirty guard can't protect it; instead\n * the switch re-binds the same live instance rather than creating a fresh one,\n * so whatever the user typed survives. Consumed by the next {@link obtainRecord}.\n */\n private _carryNewRecord: BaseEntity | null = null;\n /**\n * Set when the strip's own button started a switch. The reload unmounts the\n * strip (and the focused button with it), so focus is handed to the new\n * button once the mount completes instead of falling to `<body>`.\n */\n private _refocusModeSwitch = false;\n /**\n * Bumped by every {@link teardown} (so by every reload and by destroy). A\n * load captures it on entry and gives up after any `await` once it has\n * moved: a superseded load must not mount, emit, register a save handler,\n * or report a failure over the load that replaced it.\n */\n private _loadGeneration = 0;\n\n /** The live form component instance, or null before mount / after teardown. */\n get Form(): BaseFormComponent | null {\n return this._formComponentRef?.instance ?? null;\n }\n\n /** Whether the bound record has unsaved changes. */\n get Dirty(): boolean {\n return this._currentRecord?.Dirty ?? false;\n }\n\n // ── Lifecycle ───────────────────────────────────────────────────────────\n\n ngAfterViewInit(): void {\n this._viewInitialized = true;\n this.reload();\n }\n\n ngOnDestroy(): void {\n this.teardown();\n }\n\n // ── Standard-form switch strip ─────────────────────────────────────────────\n\n /**\n * At phone width the mode strip is hidden; the switch moves into the toolbar's View\n * bottom sheet instead so the 375px header stays clean while the user's chosen form\n * (custom or standard) still mounts.\n */\n public get HidesModeStrip(): boolean {\n return IsPhoneViewport();\n }\n\n // ── Public API (driven by dialog/slide-in chrome) ─────────────────────────\n\n /**\n * Save the bound record. In full-form mode this runs the form's save\n * pipeline (validation, pending records, notifications); in section mode the\n * section component has no pipeline, so we save the record directly (the\n * record's own save event still drives the `Saved` output).\n */\n async Save(): Promise<boolean> {\n if (this._isSection) {\n return this._currentRecord ? this._currentRecord.Save() : false;\n }\n const f = this.Form;\n if (!f) return false;\n return f.SaveRecord(true);\n }\n\n /** Cancel edits (revert). Full-form mode uses the form's cancel pipeline. */\n Cancel(): void {\n if (this._isSection) {\n if (this._currentRecord?.Dirty) this._currentRecord.Revert();\n return;\n }\n this.Form?.CancelEdit();\n }\n\n /** Refresh the bound record from the database. Full-form mode uses the form's refresh pipeline. */\n async Refresh(): Promise<boolean> {\n if (this._isSection) {\n return this._currentRecord?.IsSaved ? this._currentRecord.Refresh() : false;\n }\n const f = this.Form;\n if (!f) return false;\n return f.RefreshRecord();\n }\n\n /**\n * Switch between the custom (`'default'`) and the standard form. Refuses —\n * returning false and emitting a `warning` Notification — when remounting\n * would silently discard unsaved work (see {@link hasUnsavedWorkToLose}).\n * A brand-new record is carried across instead (see {@link _carryNewRecord}).\n * With a form mounted but no standard alternative (the generated form is\n * the only one), both modes mount the same form: the mode is recorded and\n * emitted, with no reload and so nothing for the unsaved-work guard to\n * protect. The error state is excluded: `fail()` also clears\n * `HasStandardFormAlternative` and `Loading`, and there the switch must\n * still reload — it is the retry of the failed load.\n */\n public SwitchFormMode(mode: EntityFormMode): boolean {\n if (mode === this._formMode) return true;\n if (!this.HasStandardFormAlternative && !this.Loading && !this.ErrorTitle) {\n this._formMode = mode;\n this.FormModeChange.emit(mode);\n return true;\n }\n if (this.hasUnsavedWorkToLose()) {\n this.Notification.emit({ Message: 'Save or discard your changes before switching forms.', Type: 'warning', Duration: 4000 });\n return false;\n }\n const record = this._currentRecord;\n // A bound Record input is reused by every reload anyway; only a host-created new record needs carrying.\n if (record && !record.IsSaved && !this._record) this._carryNewRecord = record;\n this._formMode = mode;\n this.FormModeChange.emit(mode);\n this.reload();\n return true;\n }\n\n /** Template handler for the strip's button: switch, and keep keyboard focus on the button. */\n public OnModeSwitchClick(): void {\n this._refocusModeSwitch = true;\n const next: EntityFormMode = this._formMode === 'standard' ? 'default' : 'standard';\n if (!this.SwitchFormMode(next)) this._refocusModeSwitch = false; // refused: the button never left\n }\n\n /**\n * Whether tearing the mounted form down would lose unsaved work. A saved\n * record's field edits count; a brand-new record's don't, because its live\n * instance is carried across the switch. Work the form holds outside the\n * record (pending related records, designer/canvas state) always counts —\n * it lives in the form component, which the switch destroys.\n */\n private hasUnsavedWorkToLose(): boolean {\n const record = this._currentRecord;\n if (record?.IsSaved && record.Dirty) return true;\n return this.Form?.HasUnsavedChangesBeyondRecord ?? false;\n }\n\n // ── Core: resolve → load → create → bind → wire ──────────────────────────\n\n private reload(): void {\n this.teardown();\n this.Loading = true;\n this.HasStandardFormAlternative = false;\n this.ErrorTitle = null;\n this.errorDetail = null;\n void this.loadAndMount();\n }\n\n private async loadAndMount(): Promise<void> {\n const generation = this._loadGeneration;\n const md = this.ProviderToUse;\n // When a pre-loaded record is supplied, derive the entity from it.\n const entityName = this._record?.EntityInfo?.Name ?? this._entityName;\n\n if (!entityName || entityName.trim().length === 0) {\n // Nothing to load yet — a caller will re-invoke once an entity is known.\n return;\n }\n\n try {\n const entity = md.EntityByName(entityName);\n if (!entity) {\n this.fail(`Entity not found: \"${entityName}\"`,\n `This MemberJunction instance has no metadata for entity \"${entityName}\".`);\n return;\n }\n const permissions = entity.GetUserPermisions(md.CurrentUser);\n\n // Section mode short-circuits the full-form resolver / container.\n if (this.SectionName) {\n await this.mountSection(entityName, permissions, generation);\n return;\n }\n\n const resolution = await this.formResolver.ResolveFormForEntity(entity, md.CurrentUser, md);\n if (this.isSuperseded(generation)) return;\n this.HasStandardFormAlternative = hasStandardFormAlternative(resolution);\n if (resolution.kind === 'none') {\n this.fail(`No form is registered for \"${entityName}\".`,\n `No EntityFormOverride or class-based form (@RegisterClass(BaseFormComponent, '${entityName}')) was found. Run CodeGen or register a custom form.`);\n return;\n }\n\n const record = await this.obtainRecord(entityName, generation, md);\n if (!record || this.isSuperseded(generation)) return; // a failure already called fail()\n\n // Emit Saved on the record's own save event (covers all save paths).\n this._saveHandlerSub = record.RegisterEventHandler((e: BaseEntityEvent) => {\n if (e.type === 'save') this.Saved.emit(record);\n });\n\n const standardForm = this.standardFormToMount(resolution, entityName);\n\n this.anchor.clear();\n let componentRef: ComponentRef<BaseFormComponent>;\n if (standardForm) {\n componentRef = this.anchor.createComponent(standardForm);\n } else if (resolution.kind === 'interactive') {\n const interactiveRef = this.anchor.createComponent(InteractiveFormComponent);\n interactiveRef.instance.ComponentID = resolution.override.ComponentID;\n componentRef = interactiveRef;\n } else {\n componentRef = this.anchor.createComponent(resolution.subClass);\n }\n\n this._formComponentRef = componentRef;\n this._currentRecord = record;\n\n const instance = componentRef.instance as BaseFormComponent & { userPermissions?: unknown };\n instance.record = record;\n instance.userPermissions = permissions;\n instance.Config = this.effectiveConfigFor(record);\n instance.EditMode = this._editMode ?? this.Config?.StartInEditMode ?? !record.IsSaved;\n\n this.applyVariants(instance, resolution, entityName);\n // The picker's \"current\" row describes the resolver's pick; the standard form is none of them.\n if (standardForm) instance.CurrentVariantID = null;\n this.subscribeToFormEvents(instance);\n this.announceInitialEditMode(instance);\n\n this.FormCreated.emit(instance);\n this.ErrorTitle = null;\n this.errorDetail = null;\n this.LoadComplete.emit();\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n if (this.isSuperseded(generation)) {\n LogError(`MjEntityFormHost: a superseded load of \"${entityName}\" failed: ${msg}`);\n return;\n }\n this.fail(`Failed to load ${entityName} record.`, `An unexpected error occurred: ${msg}`);\n } finally {\n // The load that replaced this one owns Loading, change detection and focus.\n if (!this.isSuperseded(generation)) this.settleLoad();\n }\n }\n\n /** Whether a newer load (or destroy) has replaced the load that captured `generation`. */\n private isSuperseded(generation: number): boolean {\n return generation !== this._loadGeneration;\n }\n\n /** End the current load: clear the loading state, render, and restore the switch's focus. */\n private settleLoad(): void {\n this.Loading = false;\n this.cdr.detectChanges();\n this.restoreModeSwitchFocus();\n }\n\n /** After a strip-initiated switch, hand focus to the re-rendered switch button (if the strip is back). */\n private restoreModeSwitchFocus(): void {\n if (!this._refocusModeSwitch) return;\n this._refocusModeSwitch = false;\n this.modeSwitchButton?.nativeElement.focus();\n }\n\n /**\n * The standard form class to mount instead of the resolver's pick, or null\n * to mount the pick. Only non-null in `'standard'` mode when a custom form is\n * actually hiding the standard one; when the pick already IS the standard\n * form there is nothing to swap. A `'standard'` request for an entity with\n * no standard form falls back to the pick and logs, so a stale deep link\n * can't break the record.\n */\n private standardFormToMount(resolution: FormResolution, entityName: string): Type<BaseFormComponent> | null {\n if (this._formMode !== 'standard') return null;\n if (!resolution.standard) {\n this.logMissingStandardFormOnce(entityName);\n return null;\n }\n return hasStandardFormAlternative(resolution) ? resolution.standard : null;\n }\n\n /** Entities this host has already logged a missing standard form for (lowercased names). */\n private readonly _missingStandardLogged = new Set<string>();\n\n /**\n * Log the \"standard requested, none registered\" fallback once per entity per\n * host. A stale `?form=standard` would otherwise log on every reload (each\n * variant pick, switch or input change).\n */\n private logMissingStandardFormOnce(entityName: string): void {\n const key = entityName.trim().toLowerCase();\n if (this._missingStandardLogged.has(key)) return;\n this._missingStandardLogged.add(key);\n LogError(`MjEntityFormHost: standard form requested for \"${entityName}\" but none is registered; showing the default form`);\n }\n\n /**\n * The config to bind for a given record. For brand-new (unsaved) records we hide the\n * `systemMetadata` section by default — its fields (audit timestamps, IDs, etc.) are\n * empty and irrelevant until the record exists. Doesn't mutate the consumer's config,\n * and defers entirely to a consumer that uses an explicit `VisibleSectionKeys` allowlist.\n */\n private effectiveConfigFor(record: BaseEntity): EntityFormConfig | null {\n if (record.IsSaved) return this.Config;\n if (this.Config?.VisibleSectionKeys?.length) return this.Config; // consumer owns visibility\n const SYSTEM_METADATA_KEY = 'systemMetadata';\n const hidden = this.Config?.HiddenSectionKeys ?? [];\n if (hidden.includes(SYSTEM_METADATA_KEY)) return this.Config;\n return { ...(this.Config ?? {}), HiddenSectionKeys: [...hidden, SYSTEM_METADATA_KEY] };\n }\n\n /**\n * Section mode: resolve a `BaseFormSectionComponent` registered as\n * `'<entity>.<section>'`, mount it, and bind the record. No resolver,\n * variants, container, or form-event surface — section components are bare\n * field editors; the host saves the record directly (see {@link Save}).\n */\n private async mountSection(entityName: string, permissions: unknown, generation: number): Promise<void> {\n const key = `${entityName}.${this.SectionName}`;\n const reg = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormSectionComponent, key);\n if (!reg?.SubClass) {\n this.fail(`No form section \"${this.SectionName}\" is registered for \"${entityName}\".`,\n `Expected a @RegisterClass(BaseFormSectionComponent, '${key}'). Check the section name.`);\n return;\n }\n\n const record = await this.obtainRecord(entityName, generation);\n if (!record || this.isSuperseded(generation)) return;\n\n this._saveHandlerSub = record.RegisterEventHandler((e: BaseEntityEvent) => {\n if (e.type === 'save') this.Saved.emit(record);\n });\n\n this.anchor.clear();\n const ref = this.anchor.createComponent(reg.SubClass as Type<BaseFormSectionComponent>);\n this._sectionRef = ref;\n this._currentRecord = record;\n this._isSection = true;\n\n const instance = ref.instance as BaseFormSectionComponent & { userPermissions?: unknown };\n instance.record = record;\n instance.userPermissions = permissions;\n instance.EditMode = this._editMode ?? this.Config?.StartInEditMode ?? !record.IsSaved;\n\n this.RecordReady.emit(record);\n this.LoadComplete.emit();\n }\n\n /**\n * Resolve the BaseEntity to bind: the supplied instance, or a freshly loaded/new one.\n * Returns null on failure; reports it through {@link fail} only while `generation` is still current.\n */\n private async obtainRecord(entityName: string, generation: number, md = this.ProviderToUse): Promise<BaseEntity | null> {\n if (this._record) return this._record;\n const carried = this._carryNewRecord;\n this._carryNewRecord = null;\n // Only honor the carry for the same new record — an input swap since the switch loads normally.\n if (carried && carried.EntityInfo.Name === entityName && !this._primaryKey.HasValue) return carried;\n\n const record = await md.GetEntityObject<BaseEntity>(entityName, md.CurrentUser);\n if (!record) {\n if (this.isSuperseded(generation)) return null;\n this.fail(`Failed to load ${entityName} record.`, `Unable to instantiate entity \"${entityName}\".`);\n return null;\n }\n\n if (this._primaryKey.HasValue) {\n const loadOk = await record.InnerLoad(this._primaryKey);\n if (!loadOk) {\n if (this.isSuperseded(generation)) return null;\n this.fail(`Could not load ${entityName} record.`,\n record.LatestResult?.Message\n ? `Server error: ${record.LatestResult.Message}`\n : `InnerLoad returned false for key ${this._primaryKey.ToString()}.`);\n return null;\n }\n } else {\n record.NewRecord();\n this.applyNewRecordValues(record);\n }\n return record;\n }\n\n /** Push variant list + active selection and wire the variant-switch handler. */\n private applyVariants(\n instance: BaseFormComponent,\n resolution: FormResolution,\n entityName: string,\n ): void {\n instance.Variants = FormVariantChoices(resolution.variants ?? []);\n instance.CurrentVariantID = resolution.kind === 'interactive' ? resolution.override.ID : null;\n instance.OnVariantChanged = (variantID: string | null) => {\n if (variantID === null) {\n this.formResolver.SetExplicitDefault(entityName);\n } else {\n this.formResolver.SetSelectedVariant(entityName, variantID);\n }\n // Picking a variant means \"show me that one\" — leave the standard form.\n if (this._formMode === 'standard') {\n this._formMode = 'default';\n this.FormModeChange.emit('default');\n }\n // Reload via the resolver so tier/priority + the new selection apply.\n this._record = null; // force a fresh load against the new variant\n this.reload();\n };\n // ShowFormModeSwitch is the host's opt-out for the strip; the phone View sheet honours it too.\n instance.FormModeSwitch = this.ShowFormModeSwitch && this.HasStandardFormAlternative\n ? { Mode: this._formMode, Switch: (m) => this.SwitchFormMode(m) }\n : null;\n }\n\n /** Subscribe to the form's outputs and re-emit them through the host. */\n private subscribeToFormEvents(form: BaseFormComponent): void {\n this.cleanupFormSubs();\n this._formEventSubs.push(\n form.Navigate.subscribe(e => this.Navigate.emit(e)),\n form.Notification.subscribe(e => this.Notification.emit(e)),\n form.RecordSaved.subscribe(e => this.RecordSaved.emit(e)),\n form.RecordRefreshed.subscribe(e => this.RecordRefreshed.emit(e.Record)),\n form.RecordDeleted.subscribe(e => this.RecordDeleted.emit(e)),\n form.RecordSaveFailed.subscribe(e => this.RecordSaveFailed.emit(e)),\n form.ValidationFailed.subscribe(e => this.ValidationFailed.emit(e)),\n form.RecordReady.subscribe(e => this.RecordReady.emit(e)),\n form.EditModeChanged.subscribe(e => this.EditModeChanged.emit(e)),\n );\n if (form.AskAIRequested) {\n this._formEventSubs.push(\n form.AskAIRequested.subscribe(() => this.AskAIRequested?.emit()),\n );\n }\n // Surface 'dismiss' navigation as a first-class Dismissed event too.\n this._formEventSubs.push(\n form.Navigate.subscribe(e => { if (e.Kind === 'dismiss') this.Dismissed.emit(); }),\n );\n }\n\n /**\n * Announce edit mode that was set by ASSIGNMENT rather than by\n * StartEditMode() — the mount path writes `instance.EditMode` directly, so\n * a form that starts in edit mode would otherwise be editing, unpinned and\n * italic in a records preview tab. Safe to fire alongside ngOnInit's own\n * StartEditMode for a new record: the shell's pin is idempotent.\n */\n private announceInitialEditMode(form: BaseFormComponent): void {\n if (form.EditMode) {\n this.EditModeChanged.emit(true);\n }\n }\n\n // ── New-record value application (URL segment or object) ──────────────────\n\n private applyNewRecordValues(record: BaseEntity): void {\n if (!this.NewRecordValues) return;\n if (typeof this.NewRecordValues === 'string') {\n if (this.NewRecordValues.length === 0) return;\n const fv = new FieldValueCollection();\n fv.SimpleLoadFromURLSegment(this.NewRecordValues);\n fv.KeyValuePairs\n .filter(kvp => kvp.Value !== null && kvp.Value !== undefined)\n .forEach(kvp => this.setTypedField(record, kvp.FieldName, kvp.Value));\n } else {\n const values = this.NewRecordValues as Record<string, unknown>;\n Object.keys(values)\n .filter(key => values[key] !== null && values[key] !== undefined)\n .forEach(key => this.setTypedField(record, key, values[key]));\n }\n }\n\n /** Set a field with TSType-aware coercion (shared by string + object paths). */\n private setTypedField(record: BaseEntity, fieldName: string, value: unknown): void {\n const f = record.Fields.find(x => x.Name.trim().toLowerCase() === fieldName.trim().toLowerCase());\n if (!f) return;\n switch (f.EntityFieldInfo.TSType) {\n case EntityFieldTSType.String:\n record.Set(fieldName, value?.toString() ?? '');\n break;\n case EntityFieldTSType.Number:\n record.Set(fieldName, typeof value === 'number' ? value : parseFloat(value?.toString() ?? '0'));\n break;\n case EntityFieldTSType.Boolean:\n if (typeof value === 'boolean') record.Set(fieldName, value);\n else if (typeof value === 'string') record.Set(fieldName, value !== 'false' && value !== '0' && value.trim().length > 0);\n else record.Set(fieldName, !!value);\n break;\n case EntityFieldTSType.Date:\n record.Set(fieldName, value instanceof Date ? value : new Date(value?.toString() ?? ''));\n break;\n default:\n record.Set(fieldName, value);\n break;\n }\n }\n\n // ── Helpers ───────────────────────────────────────────────────────────────\n\n private fail(title: string, detail: string): void {\n this.ErrorTitle = title;\n this.errorDetail = detail;\n this.Loading = false;\n this.HasStandardFormAlternative = false; // no form mounted → nothing to switch between\n if (this._formComponentRef) {\n try { this._formComponentRef.destroy(); } catch { /* noop */ }\n this._formComponentRef = null;\n }\n this.anchor?.clear();\n this.LoadError.emit({ title, detail });\n this.cdr.detectChanges();\n }\n\n private compositeKeysEqual(a: CompositeKey | null | undefined, b: CompositeKey | null | undefined): boolean {\n if (a === b) return true;\n if (!a || !b) return false;\n const aKvps = (a.KeyValuePairs || []).filter(kvp => String(kvp.Value ?? '').length > 0);\n const bKvps = (b.KeyValuePairs || []).filter(kvp => String(kvp.Value ?? '').length > 0);\n if (aKvps.length !== bKvps.length) return false;\n for (let i = 0; i < aKvps.length; i++) {\n if (aKvps[i].FieldName !== bKvps[i].FieldName) return false;\n if (String(aKvps[i].Value ?? '') !== String(bKvps[i].Value ?? '')) return false;\n }\n return true;\n }\n\n private cleanupFormSubs(): void {\n for (const sub of this._formEventSubs) sub.unsubscribe();\n this._formEventSubs = [];\n }\n\n private teardown(): void {\n this._loadGeneration++;\n this.cleanupFormSubs();\n if (this._saveHandlerSub) {\n this._saveHandlerSub.unsubscribe();\n this._saveHandlerSub = null;\n }\n if (this._formComponentRef) {\n try { this._formComponentRef.destroy(); } catch { /* noop */ }\n this._formComponentRef = null;\n }\n if (this._sectionRef) {\n try { this._sectionRef.destroy(); } catch { /* noop */ }\n this._sectionRef = null;\n }\n this._isSection = false;\n this._currentRecord = null;\n this.anchor?.clear();\n }\n}\n","<!-- Loading state -->\n@if (loading) {\n <div class=\"mj-form-host-loading\">\n <mj-loading text=\"Loading record...\"></mj-loading>\n </div>\n}\n\n<!-- Error state -->\n@if (!loading && errorTitle) {\n <div class=\"mj-form-host-error\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation mj-form-host-error-icon\"></i>\n <h3 class=\"mj-form-host-error-title\">{{ errorTitle }}</h3>\n <p class=\"mj-form-host-error-detail\">{{ errorDetail }}</p>\n </div>\n}\n\n<!--\n Standard-form switch: only when a custom form hides the CodeGen form. Placed\n above the anchor so the dynamically-created form renders below it.\n-->\n@if (!Loading && ShowFormModeSwitch && HasStandardFormAlternative && !HidesModeStrip) {\n <div class=\"mj-form-host-mode-strip\">\n <i class=\"fa-solid\" [class.fa-wand-magic-sparkles]=\"FormMode === 'default'\" [class.fa-table-list]=\"FormMode === 'standard'\" aria-hidden=\"true\"></i>\n <span class=\"mj-form-host-mode-text\" aria-live=\"polite\">\n {{ FormMode === 'standard' ? 'Standard form — all form fields, same permissions.' : 'Custom view. Some fields may only be editable in the standard form.' }}\n </span>\n <button #modeSwitch mjButton Variant=\"outline\" Size=\"sm\" type=\"button\"\n class=\"mj-form-host-mode-switch\"\n (click)=\"OnModeSwitchClick()\">\n {{ FormMode === 'standard' ? 'Back to custom view' : 'Open standard form' }}\n </button>\n </div>\n}\n\n<!--\n Anchor for the dynamically-created form component. Always present (static)\n so the ViewContainerRef resolves at AfterViewInit. The form's own template\n carries the <mj-record-form-container>, so nothing wraps it here.\n-->\n<ng-template #anchor></ng-template>\n"]}
@@ -59,6 +59,7 @@ export declare class MjCollapsiblePanelComponent implements OnInit, OnChanges, A
59
59
  private ngZone;
60
60
  private chrome;
61
61
  private indicators;
62
+ private commentsCoordinator;
62
63
  /** Unique key for state persistence */
63
64
  SectionKey: string;
64
65
  /**
@@ -282,9 +283,13 @@ export declare class MjCollapsiblePanelComponent implements OnInit, OnChanges, A
282
283
  get SectionDirtyCount(): number;
283
284
  get SectionErrorCount(): number;
284
285
  get SectionWarningCount(): number;
286
+ get SectionCommentCount(): number;
285
287
  get SectionDirtyTitle(): string;
286
288
  get SectionErrorTitle(): string;
287
289
  get SectionWarningTitle(): string;
290
+ get SectionCommentTitle(): string;
291
+ get CanCommentOnSection(): boolean;
292
+ OnOpenSectionComments(event: MouseEvent): void;
288
293
  /** {@link FormSectionIndicatorSource} — the rail reads this through the coordinator. */
289
294
  GetSectionIndicators(): FormSectionIndicators;
290
295
  /** {@link FormSectionIndicatorSource} — whether a form-level error belongs to this section. */
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panel/collapsible-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACqB,YAAY,EAEtC,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAC3D,SAAS,EAE3B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,OAAO,EAAmC,KAAK,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACpJ,OAAO,EAA2B,KAAK,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACnH,OAAO,EAQL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE5B,MAAM,+CAA+C,CAAC;;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAWa,2BAA4B,YAAW,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,0BAA0B,EAAE,oBAAoB;IACjK,OAAO,CAAC,GAAG,CAA6B;IACxC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,MAAM,CAAqD;IACnE,OAAO,CAAC,UAAU,CAA+D;IAEjF,uCAAuC;IAC9B,UAAU,SAAM;IAEzB;;;;;;;;;OASG;IACM,UAAU,CAAC,EAAE,OAAO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AiBzC,eAAe,IAAI,IAAI;IAIvB,WAAW,IAAI,IAAI;IAiBnB,MAAM,IAAI,IAAI;IASd;;;;OAIG;IACH,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAmB9C,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAUlC,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAOnC,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAgB9B,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAUnC,SAAS,IAAI,IAAI;IAOjB;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAmBvB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB;IA2BxB;;;;OAIG;IACH;;;;OAIG;IACI,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAQ3C,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,gBAAgB;IAQxB;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAajC,OAAO,CAAC,gBAAgB;IAQxB;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;IAgBtC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IA8B3B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAU7B;;;;;;;;OAQG;IACH,OAAO,KAAK,wBAAwB,GAMnC;IAED,OAAO,CAAC,+BAA+B;yCAj5B5B,2BAA2B;2CAA3B,2BAA2B;CA27BvC"}
1
+ {"version":3,"file":"collapsible-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panel/collapsible-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACqB,YAAY,EAEtC,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAC3D,SAAS,EAE3B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,WAAW,EAAE,YAAY,EAA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