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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/lib/apply/form-placement-dialog.component.d.ts +266 -0
  2. package/dist/lib/apply/form-placement-dialog.component.d.ts.map +1 -0
  3. package/dist/lib/apply/form-placement-dialog.component.js +1522 -0
  4. package/dist/lib/apply/form-placement-dialog.component.js.map +1 -0
  5. package/dist/lib/apply/form-placement-order.d.ts +37 -0
  6. package/dist/lib/apply/form-placement-order.d.ts.map +1 -0
  7. package/dist/lib/apply/form-placement-order.js +111 -0
  8. package/dist/lib/apply/form-placement-order.js.map +1 -0
  9. package/dist/lib/apply/form-placement-preview.component.d.ts +112 -0
  10. package/dist/lib/apply/form-placement-preview.component.d.ts.map +1 -0
  11. package/dist/lib/apply/form-placement-preview.component.js +346 -0
  12. package/dist/lib/apply/form-placement-preview.component.js.map +1 -0
  13. package/dist/lib/apply/form-placement-text.d.ts +61 -0
  14. package/dist/lib/apply/form-placement-text.d.ts.map +1 -0
  15. package/dist/lib/apply/form-placement-text.js +279 -0
  16. package/dist/lib/apply/form-placement-text.js.map +1 -0
  17. package/dist/lib/apply/form-placement.d.ts +320 -0
  18. package/dist/lib/apply/form-placement.d.ts.map +1 -0
  19. package/dist/lib/apply/form-placement.js +432 -0
  20. package/dist/lib/apply/form-placement.js.map +1 -0
  21. package/dist/lib/apply/form-slot-probe.service.d.ts +121 -0
  22. package/dist/lib/apply/form-slot-probe.service.d.ts.map +1 -0
  23. package/dist/lib/apply/form-slot-probe.service.js +264 -0
  24. package/dist/lib/apply/form-slot-probe.service.js.map +1 -0
  25. package/dist/lib/base-form-component-internals.d.ts +11 -0
  26. package/dist/lib/base-form-component-internals.d.ts.map +1 -0
  27. package/dist/lib/base-form-component-internals.js +33 -0
  28. package/dist/lib/base-form-component-internals.js.map +1 -0
  29. package/dist/lib/base-form-component.d.ts +166 -1
  30. package/dist/lib/base-form-component.d.ts.map +1 -1
  31. package/dist/lib/base-form-component.js +296 -20
  32. package/dist/lib/base-form-component.js.map +1 -1
  33. package/dist/lib/chrome/form-chrome.d.ts +78 -0
  34. package/dist/lib/chrome/form-chrome.d.ts.map +1 -1
  35. package/dist/lib/chrome/form-chrome.js +128 -2
  36. package/dist/lib/chrome/form-chrome.js.map +1 -1
  37. package/dist/lib/chrome/form-composition-registry.d.ts +34 -0
  38. package/dist/lib/chrome/form-composition-registry.d.ts.map +1 -0
  39. package/dist/lib/chrome/form-composition-registry.js +56 -0
  40. package/dist/lib/chrome/form-composition-registry.js.map +1 -0
  41. package/dist/lib/chrome/form-composition-snapshot.d.ts +151 -0
  42. package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -0
  43. package/dist/lib/chrome/form-composition-snapshot.js +137 -0
  44. package/dist/lib/chrome/form-composition-snapshot.js.map +1 -0
  45. package/dist/lib/chrome/resolve-form-chrome.d.ts +15 -0
  46. package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
  47. package/dist/lib/chrome/resolve-form-chrome.js +31 -2
  48. package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
  49. package/dist/lib/container/record-form-container.component.d.ts +261 -5
  50. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  51. package/dist/lib/container/record-form-container.component.js +1180 -371
  52. package/dist/lib/container/record-form-container.component.js.map +1 -1
  53. package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts +150 -0
  54. package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts.map +1 -0
  55. package/dist/lib/duplicate-entry-check/duplicate-entry-check.js +263 -0
  56. package/dist/lib/duplicate-entry-check/duplicate-entry-check.js.map +1 -0
  57. package/dist/lib/field/form-field.component.d.ts +22 -0
  58. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  59. package/dist/lib/field/form-field.component.js +51 -6
  60. package/dist/lib/field/form-field.component.js.map +1 -1
  61. package/dist/lib/form-field-edit.coordinator.d.ts +25 -0
  62. package/dist/lib/form-field-edit.coordinator.d.ts.map +1 -0
  63. package/dist/lib/form-field-edit.coordinator.js +27 -0
  64. package/dist/lib/form-field-edit.coordinator.js.map +1 -0
  65. package/dist/lib/form-state.service.d.ts +5 -0
  66. package/dist/lib/form-state.service.d.ts.map +1 -1
  67. package/dist/lib/form-state.service.js +6 -1
  68. package/dist/lib/form-state.service.js.map +1 -1
  69. package/dist/lib/host/entity-form-host.component.d.ts +16 -1
  70. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  71. package/dist/lib/host/entity-form-host.component.js +27 -6
  72. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  73. package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts +24 -0
  74. package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts.map +1 -0
  75. package/dist/lib/interactive-form/form-panel-host-props.builder.js +99 -0
  76. package/dist/lib/interactive-form/form-panel-host-props.builder.js.map +1 -0
  77. package/dist/lib/interactive-form/interactive-form-panel.component.d.ts +109 -0
  78. package/dist/lib/interactive-form/interactive-form-panel.component.d.ts.map +1 -0
  79. package/dist/lib/interactive-form/interactive-form-panel.component.js +424 -0
  80. package/dist/lib/interactive-form/interactive-form-panel.component.js.map +1 -0
  81. package/dist/lib/interactive-form/interactive-form.component.d.ts +2 -0
  82. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  83. package/dist/lib/interactive-form/interactive-form.component.js +4 -5
  84. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  85. package/dist/lib/panel/collapsible-panel.component.d.ts +69 -1
  86. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  87. package/dist/lib/panel/collapsible-panel.component.js +148 -12
  88. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  89. package/dist/lib/panel-manager/form-audience.d.ts +46 -0
  90. package/dist/lib/panel-manager/form-audience.d.ts.map +1 -0
  91. package/dist/lib/panel-manager/form-audience.js +34 -0
  92. package/dist/lib/panel-manager/form-audience.js.map +1 -0
  93. package/dist/lib/panel-manager/form-panel-admin.service.d.ts +150 -0
  94. package/dist/lib/panel-manager/form-panel-admin.service.d.ts.map +1 -0
  95. package/dist/lib/panel-manager/form-panel-admin.service.js +433 -0
  96. package/dist/lib/panel-manager/form-panel-admin.service.js.map +1 -0
  97. package/dist/lib/panel-manager/form-panel-inventory.d.ts +255 -0
  98. package/dist/lib/panel-manager/form-panel-inventory.d.ts.map +1 -0
  99. package/dist/lib/panel-manager/form-panel-inventory.js +293 -0
  100. package/dist/lib/panel-manager/form-panel-inventory.js.map +1 -0
  101. package/dist/lib/panel-manager/panel-manager.component.d.ts +232 -0
  102. package/dist/lib/panel-manager/panel-manager.component.d.ts.map +1 -0
  103. package/dist/lib/panel-manager/panel-manager.component.js +1112 -0
  104. package/dist/lib/panel-manager/panel-manager.component.js.map +1 -0
  105. package/dist/lib/panel-slot/base-contribution-panel.d.ts +40 -0
  106. package/dist/lib/panel-slot/base-contribution-panel.d.ts.map +1 -0
  107. package/dist/lib/panel-slot/base-contribution-panel.js +55 -0
  108. package/dist/lib/panel-slot/base-contribution-panel.js.map +1 -0
  109. package/dist/lib/panel-slot/base-form-panel.d.ts +116 -8
  110. package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
  111. package/dist/lib/panel-slot/base-form-panel.js +76 -5
  112. package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
  113. package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts +29 -0
  114. package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts.map +1 -0
  115. package/dist/lib/panel-slot/collect-form-contribution-registrations.js +214 -0
  116. package/dist/lib/panel-slot/collect-form-contribution-registrations.js.map +1 -0
  117. package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts +6 -3
  118. package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts.map +1 -1
  119. package/dist/lib/panel-slot/collect-form-panel-registrations.js +8 -14
  120. package/dist/lib/panel-slot/collect-form-panel-registrations.js.map +1 -1
  121. package/dist/lib/panel-slot/form-contribution.d.ts +170 -7
  122. package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
  123. package/dist/lib/panel-slot/form-contribution.js +242 -64
  124. package/dist/lib/panel-slot/form-contribution.js.map +1 -1
  125. package/dist/lib/panel-slot/form-contributions.component.d.ts +16 -5
  126. package/dist/lib/panel-slot/form-contributions.component.d.ts.map +1 -1
  127. package/dist/lib/panel-slot/form-contributions.component.js +43 -7
  128. package/dist/lib/panel-slot/form-contributions.component.js.map +1 -1
  129. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts +66 -0
  130. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -0
  131. package/dist/lib/panel-slot/form-field-panel-slot.component.js +190 -0
  132. package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -0
  133. package/dist/lib/panel-slot/form-panel-slot.component.d.ts +52 -16
  134. package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
  135. package/dist/lib/panel-slot/form-panel-slot.component.js +190 -66
  136. package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
  137. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +11 -0
  138. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
  139. package/dist/lib/panel-slot/form-slot-coordinator.service.js +17 -0
  140. package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
  141. package/dist/lib/panel-slot/merge-panel-validation.d.ts +7 -0
  142. package/dist/lib/panel-slot/merge-panel-validation.d.ts.map +1 -0
  143. package/dist/lib/panel-slot/merge-panel-validation.js +16 -0
  144. package/dist/lib/panel-slot/merge-panel-validation.js.map +1 -0
  145. package/dist/lib/panel-slot/mount-form-contribution.d.ts +15 -0
  146. package/dist/lib/panel-slot/mount-form-contribution.d.ts.map +1 -0
  147. package/dist/lib/panel-slot/mount-form-contribution.js +37 -0
  148. package/dist/lib/panel-slot/mount-form-contribution.js.map +1 -0
  149. package/dist/lib/panel-slot/panel-hides.d.ts +35 -0
  150. package/dist/lib/panel-slot/panel-hides.d.ts.map +1 -0
  151. package/dist/lib/panel-slot/panel-hides.js +111 -0
  152. package/dist/lib/panel-slot/panel-hides.js.map +1 -0
  153. package/dist/lib/panel-slot/placement-preview-panel.component.d.ts +16 -0
  154. package/dist/lib/panel-slot/placement-preview-panel.component.d.ts.map +1 -0
  155. package/dist/lib/panel-slot/placement-preview-panel.component.js +112 -0
  156. package/dist/lib/panel-slot/placement-preview-panel.component.js.map +1 -0
  157. package/dist/lib/panel-slot/placement-preview.d.ts +57 -0
  158. package/dist/lib/panel-slot/placement-preview.d.ts.map +1 -0
  159. package/dist/lib/panel-slot/placement-preview.js +86 -0
  160. package/dist/lib/panel-slot/placement-preview.js.map +1 -0
  161. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
  162. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
  163. package/dist/lib/panel-slot/related-entity-grid-panel.component.js +10 -3
  164. package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
  165. package/dist/lib/panel-slot/slot-order.d.ts +19 -0
  166. package/dist/lib/panel-slot/slot-order.d.ts.map +1 -0
  167. package/dist/lib/panel-slot/slot-order.js +53 -0
  168. package/dist/lib/panel-slot/slot-order.js.map +1 -0
  169. package/dist/lib/resolver/form-resolver.service.d.ts +4 -2
  170. package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
  171. package/dist/lib/resolver/form-resolver.service.js +18 -8
  172. package/dist/lib/resolver/form-resolver.service.js.map +1 -1
  173. package/dist/lib/resolver/form-variants.d.ts +28 -0
  174. package/dist/lib/resolver/form-variants.d.ts.map +1 -0
  175. package/dist/lib/resolver/form-variants.js +40 -0
  176. package/dist/lib/resolver/form-variants.js.map +1 -0
  177. package/dist/lib/section-counts/form-section-counts.d.ts +99 -0
  178. package/dist/lib/section-counts/form-section-counts.d.ts.map +1 -0
  179. package/dist/lib/section-counts/form-section-counts.js +223 -0
  180. package/dist/lib/section-counts/form-section-counts.js.map +1 -0
  181. package/dist/lib/toolbar/form-toolbar.component.d.ts +129 -2
  182. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  183. package/dist/lib/toolbar/form-toolbar.component.js +974 -307
  184. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  185. package/dist/lib/types/form-events.d.ts +6 -0
  186. package/dist/lib/types/form-events.d.ts.map +1 -1
  187. package/dist/lib/types/form-events.js +6 -0
  188. package/dist/lib/types/form-events.js.map +1 -1
  189. package/dist/lib/types/form-toolbar-item.d.ts +20 -1
  190. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  191. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  192. package/dist/lib/types/form-types.d.ts +13 -0
  193. package/dist/lib/types/form-types.d.ts.map +1 -1
  194. package/dist/lib/types/form-types.js.map +1 -1
  195. package/dist/lib/types/toolbar-config.d.ts +16 -0
  196. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  197. package/dist/lib/types/toolbar-config.js +3 -0
  198. package/dist/lib/types/toolbar-config.js.map +1 -1
  199. package/dist/module.d.ts +29 -22
  200. package/dist/module.d.ts.map +1 -1
  201. package/dist/module.js +50 -8
  202. package/dist/module.js.map +1 -1
  203. package/dist/public-api.d.ts +22 -0
  204. package/dist/public-api.d.ts.map +1 -1
  205. package/dist/public-api.js +24 -0
  206. package/dist/public-api.js.map +1 -1
  207. package/package.json +20 -18
@@ -1,6 +1,6 @@
1
1
  import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject, NgZone, ContentChildren, ViewChild, ViewEncapsulation, ElementRef } from '@angular/core';
2
- import { CompositeKey, RunView } from '@memberjunction/core';
3
- import { UUIDsEqual } from '@memberjunction/global';
2
+ import { CompositeKey, LogError, RunView } from '@memberjunction/core';
3
+ import { EscapeSQLString, UUIDsEqual } from '@memberjunction/global';
4
4
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
5
5
  import { UserInfoEngine } from '@memberjunction/core-entities';
6
6
  import { Subject } from 'rxjs';
@@ -12,16 +12,24 @@ import { BeforeHistoryViewEventArgs, BeforeListManagementEventArgs, BeforeLayout
12
12
  import { RecordChangesComponent } from '@memberjunction/ng-record-changes';
13
13
  import { MJNotificationService } from '@memberjunction/ng-notifications';
14
14
  import { FormSlotCoordinator } from '../panel-slot/form-slot-coordinator.service';
15
+ import { BuildFormCompositionSnapshot } from '../chrome/form-composition-snapshot';
16
+ import { FormCompositionRegistry } from '../chrome/form-composition-registry';
17
+ import { FormPanelAdminService } from '../panel-manager/form-panel-admin.service';
15
18
  import { FormChromeCoordinator } from '../chrome/form-chrome-coordinator.service';
16
19
  import { ResolveFormChrome, OrderChromeGroups, OrderMoreSectionKeys, MoveChromeGroupInSectionOrder, OverlayChromeSectionOrder } from '../chrome/resolve-form-chrome';
17
20
  import { LoadFormChromeRules } from '../chrome/load-form-chrome-rules';
18
- import { MORE_SECTION_KEY, HumanizeEntityTitle, IsAlwaysMoreSection, IsDetailsSectionKey, DetailsCardEdges } from '../chrome/form-chrome';
21
+ import { MORE_SECTION_KEY, HumanizeEntityTitle, IsAlwaysMoreSection, IsDetailsSectionKey, DetailsCardEdges, ReplacedSectionChromeGroup, RailGroupSectionKeys, SlotChromeGroup, SectionDrawingAnyField } from '../chrome/form-chrome';
19
22
  import { ClampRailWidth, FORM_CHROME_RAIL_PINNED_DEFAULT, FORM_CHROME_RAIL_WIDTH_DEFAULT, FORM_CHROME_RAIL_WIDTH_MAX, FORM_CHROME_RAIL_WIDTH_MIN, ParseRailPinnedSetting, ParseRailWidthSetting, SerializeRailPinnedSetting, SerializeRailWidthSetting, ShouldPersistChromeActiveGroup, UnsavedLeadGroupKey, } from '../chrome/form-chrome-rail-pref';
20
23
  import { ApplyClippedTitle } from '../chrome/clipped-title';
21
- import { CollectFormPanelRegistrations } from '../panel-slot/collect-form-panel-registrations';
22
- import { ContributionHiddenSectionKeys, ResolveFormContributions } from '../panel-slot/form-contribution';
24
+ import { DETAILS_SECTION_KEY } from '../chrome/form-chrome';
25
+ import { CollectFormContributionRegistrations } from '../panel-slot/collect-form-contribution-registrations';
26
+ import { HiddenPanelKeys, PanelHideKey } from '../panel-slot/panel-hides';
27
+ import { FORM_PLACEMENT_PREVIEW } from '../panel-slot/placement-preview';
28
+ import { ContributionDrawsInSection, ContributionHiddenSectionKeys, IsWildcardPlaceClaim, PlacedInSectionKey, ReplacedSectionKeys, ResolveContributionKey, ResolveFormContributionWinners, ResolveFormContributions, StripJoinFieldBrackets, } from '../panel-slot/form-contribution';
23
29
  import { IsFormSectionHidden } from '../types/entity-form-config';
30
+ import { ApplyFormCountResults, BuildFormCountPlan, FormCountPlanParams, ResolveEmptySectionBehavior, } from '../section-counts/form-section-counts';
24
31
  import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
32
+ import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
25
33
  import { FormSectionIndicatorCoordinator } from '../section-indicators/form-section-indicator-coordinator.service';
26
34
  import { DescribeSectionDirty, DescribeSectionErrors, DescribeSectionWarnings, SumSectionIndicators, TallyValidationErrors, } from '../section-indicators/form-section-indicators';
27
35
  import * as i0 from "@angular/core";
@@ -32,70 +40,108 @@ import * as i4 from "@memberjunction/ng-record-tags";
32
40
  import * as i5 from "@memberjunction/ng-file-storage";
33
41
  import * as i6 from "../toolbar/form-toolbar.component";
34
42
  import * as i7 from "../section-manager/section-manager.component";
35
- import * as i8 from "../isa-related-panel/isa-related-panel.component";
36
- import * as i9 from "../panel-slot/form-panel-slot.component";
37
- import * as i10 from "../panel-slot/form-contributions.component";
43
+ import * as i8 from "../panel-manager/panel-manager.component";
44
+ import * as i9 from "../isa-related-panel/isa-related-panel.component";
45
+ import * as i10 from "../panel-slot/form-panel-slot.component";
46
+ import * as i11 from "../panel-slot/form-contributions.component";
38
47
  const _c0 = [[["", "before-toolbar", ""]], "*"];
39
48
  const _c1 = ["[before-toolbar]", "*"];
40
49
  const _c2 = a0 => [a0];
41
50
  const _c3 = (a0, a1, a2) => ({ mode: "manage", entityId: a0, entityName: a1, recordIds: a2, allowCreate: true });
42
- const _forTrack0 = ($index, $item) => $item.Key;
51
+ const _forTrack0 = ($index, $item) => $item.RecordID;
52
+ const _forTrack1 = ($index, $item) => $item.Key;
43
53
  function MjRecordFormContainerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
44
54
  const _r1 = i0.ɵɵgetCurrentView();
45
- i0.ɵɵelementStart(0, "mj-form-toolbar", 17);
55
+ i0.ɵɵelementStart(0, "mj-form-toolbar", 19);
46
56
  i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNavigate($event)); })("EditModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_EditModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnEditModeChange($event)); })("BeforeSave", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeSave_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeSave.emit($event)); })("SaveRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_SaveRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnSaveRequested()); })("BeforeCancel", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeCancel_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeCancel.emit($event)); })("CancelRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CancelRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancelRequested()); })("BeforeDelete", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeDelete_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeDelete.emit($event)); })("DeleteRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_DeleteRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteRequested()); })("BeforeRefresh", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeRefresh_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeRefresh.emit($event)); })("RefreshRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_RefreshRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRefreshRequested()); })("FavoriteToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FavoriteToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFavoriteToggled()); })("BeforeHistoryView", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeHistoryView_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeHistoryView.emit($event)); })("HistoryRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_HistoryRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHistoryRequested()); })("BeforeListManagement", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeListManagement_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeListManagement.emit($event)); })("ListManagementRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ListManagementRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementRequested()); })("ShowChangesRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowChangesRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowChangesRequested()); })("CustomButtonClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CustomButtonClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CustomButtonClick.emit($event)); })("ToolbarItemClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ToolbarItemClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToolbarItemClick.emit($event)); })("FilterChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FilterChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange($event)); })("ExpandAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ExpandAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); })("CollapseAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CollapseAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCollapseAll()); })("ShowEmptyFieldsChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowEmptyFieldsChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowEmptyFieldsChange($event)); })("WidthModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_WidthModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnWidthModeChange($event)); })("ResetSectionOrderRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ResetSectionOrderRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); })("ManageSectionsRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ManageSectionsRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnManageSections()); })("TagsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_TagsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelToggled()); })("AttachmentsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_AttachmentsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelToggled()); })("VariantPicked", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_VariantPicked_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnVariantPicked($event)); });
47
57
  i0.ɵɵelementEnd();
48
58
  } if (rf & 2) {
49
59
  const ctx_r1 = i0.ɵɵnextContext();
50
60
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("EditMode", ctx_r1.EffectiveEditMode)("UserCanEdit", ctx_r1.EffectiveUserCanEdit)("UserCanDelete", ctx_r1.EffectiveUserCanDelete)("IsFavorite", ctx_r1.EffectiveIsFavorite)("FavoriteInitDone", ctx_r1.EffectiveFavoriteInitDone)("IsDirty", ctx_r1.EffectiveIsDirty)("DirtyFieldNames", ctx_r1.EffectiveDirtyFieldNames)("ListCount", ctx_r1.ListCount)("TagCount", ctx_r1.TagCount)("AttachmentCount", ctx_r1.AttachmentCount)("AttachmentsAvailable", ctx_r1.AttachmentsAvailable)("IsAttachmentsPanelOpen", ctx_r1.ShowAttachmentsPanel)("VersionCount", ctx_r1.VersionCount)("EntityInfo", ctx_r1.EffectiveEntityInfo)("Config", ctx_r1.EffectiveToolbarConfig)("IsSaving", ctx_r1.EffectiveIsSaving)("IsRefreshing", ctx_r1.EffectiveIsRefreshing)("VisibleSectionCount", ctx_r1.VisibleSectionCount)("TotalSectionCount", ctx_r1.TotalSectionCount)("ExpandedSectionCount", ctx_r1.ExpandedSectionCount)("SearchFilter", ctx_r1.EffectiveSearchFilter)("ShowEmptyFields", ctx_r1.EffectiveShowEmptyFields)("WidthMode", ctx_r1.EffectiveWidthMode)("HasCustomSectionOrder", ctx_r1.EffectiveHasCustomSectionOrder)("ChromeLayout", ctx_r1.ChromeLayout)("Variants", ctx_r1.EffectiveVariants)("CurrentVariantID", ctx_r1.EffectiveCurrentVariantID)("RegisteredItems", ctx_r1.EffectiveRegisteredToolbarItems)("ItemOverrides", ctx_r1.EffectiveToolbarItemOverrides)("FormComponent", ctx_r1.fc);
51
61
  } }
52
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
53
- i0.ɵɵelementStart(0, "span", 22);
62
+ function MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
63
+ i0.ɵɵelementStart(0, "span");
64
+ i0.ɵɵtext(1, ", ");
65
+ i0.ɵɵelementEnd();
66
+ } }
67
+ function MjRecordFormContainerComponent_Conditional_4_For_4_Template(rf, ctx) { if (rf & 1) {
68
+ const _r4 = i0.ɵɵgetCurrentView();
69
+ i0.ɵɵelementStart(0, "button", 22);
70
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_4_For_4_Template_button_click_0_listener() { const candidate_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnDuplicateCandidateClick(candidate_r5)); });
71
+ i0.ɵɵtext(1);
72
+ i0.ɵɵelementEnd();
73
+ i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Template, 2, 0, "span");
74
+ } if (rf & 2) {
75
+ const candidate_r5 = ctx.$implicit;
76
+ const ɵ$index_14_r6 = ctx.$index;
77
+ const ɵ$count_14_r7 = ctx.$count;
78
+ i0.ɵɵproperty("title", "Open " + candidate_r5.DisplayName);
79
+ i0.ɵɵadvance();
80
+ i0.ɵɵtextInterpolate(candidate_r5.DisplayName);
81
+ i0.ɵɵadvance();
82
+ i0.ɵɵconditional(!(ɵ$index_14_r6 === ɵ$count_14_r7 - 1) ? 2 : -1);
83
+ } }
84
+ function MjRecordFormContainerComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
85
+ const _r3 = i0.ɵɵgetCurrentView();
86
+ i0.ɵɵelementStart(0, "mj-alert", 20);
87
+ i0.ɵɵlistener("Dismissed", function MjRecordFormContainerComponent_Conditional_4_Template_mj_alert_Dismissed_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDuplicateNoticeDismissed()); });
88
+ i0.ɵɵelementStart(1, "span", 21);
89
+ i0.ɵɵtext(2, "This may duplicate:");
90
+ i0.ɵɵelementEnd();
91
+ i0.ɵɵrepeaterCreate(3, MjRecordFormContainerComponent_Conditional_4_For_4_Template, 3, 3, null, null, _forTrack0);
92
+ i0.ɵɵelementEnd();
93
+ } if (rf & 2) {
94
+ const ctx_r1 = i0.ɵɵnextContext();
95
+ i0.ɵɵadvance(3);
96
+ i0.ɵɵrepeater(ctx_r1.DuplicateEntryCandidates);
97
+ } }
98
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
99
+ i0.ɵɵelementStart(0, "span", 27);
54
100
  i0.ɵɵtext(1);
55
101
  i0.ɵɵelementEnd();
56
102
  } if (rf & 2) {
57
103
  i0.ɵɵnextContext();
58
- const formIndicators_r4 = i0.ɵɵreadContextLet(4);
104
+ const formIndicators_r9 = i0.ɵɵreadContextLet(4);
59
105
  const ctx_r1 = i0.ɵɵnextContext(2);
60
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(formIndicators_r4.ErrorCount, "this record"));
61
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(formIndicators_r4.ErrorCount, "this record"));
106
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(formIndicators_r9.ErrorCount, "this record"));
107
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(formIndicators_r9.ErrorCount, "this record"));
62
108
  i0.ɵɵadvance();
63
- i0.ɵɵtextInterpolate(formIndicators_r4.ErrorCount);
109
+ i0.ɵɵtextInterpolate(formIndicators_r9.ErrorCount);
64
110
  } }
65
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
66
- i0.ɵɵelementStart(0, "span", 23);
111
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
112
+ i0.ɵɵelementStart(0, "span", 28);
67
113
  i0.ɵɵtext(1);
68
114
  i0.ɵɵelementEnd();
69
115
  } if (rf & 2) {
70
116
  i0.ɵɵnextContext();
71
- const formIndicators_r4 = i0.ɵɵreadContextLet(4);
117
+ const formIndicators_r9 = i0.ɵɵreadContextLet(4);
72
118
  const ctx_r1 = i0.ɵɵnextContext(2);
73
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(formIndicators_r4.WarningCount, "this record"));
74
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(formIndicators_r4.WarningCount, "this record"));
119
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(formIndicators_r9.WarningCount, "this record"));
120
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(formIndicators_r9.WarningCount, "this record"));
75
121
  i0.ɵɵadvance();
76
- i0.ɵɵtextInterpolate(formIndicators_r4.WarningCount);
122
+ i0.ɵɵtextInterpolate(formIndicators_r9.WarningCount);
77
123
  } }
78
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
79
- i0.ɵɵelement(0, "span", 24);
124
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
125
+ i0.ɵɵelement(0, "span", 29);
80
126
  } if (rf & 2) {
81
127
  i0.ɵɵnextContext();
82
- const formIndicators_r4 = i0.ɵɵreadContextLet(4);
128
+ const formIndicators_r9 = i0.ɵɵreadContextLet(4);
83
129
  const ctx_r1 = i0.ɵɵnextContext(2);
84
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(formIndicators_r4.DirtyCount, "this record"));
85
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(formIndicators_r4.DirtyCount, "this record"));
130
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(formIndicators_r9.DirtyCount, "this record"));
131
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(formIndicators_r9.DirtyCount, "this record"));
86
132
  } }
87
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
88
- const _r3 = i0.ɵɵgetCurrentView();
89
- i0.ɵɵelementStart(0, "button", 20);
90
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailExpand()); });
133
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
134
+ const _r8 = i0.ɵɵgetCurrentView();
135
+ i0.ɵɵelementStart(0, "button", 25);
136
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailExpand()); });
91
137
  i0.ɵɵelement(1, "i");
92
- i0.ɵɵelementStart(2, "span", 21);
93
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Template_span_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, ctx_r1.ChromeActiveTitle)); });
138
+ i0.ɵɵelementStart(2, "span", 26);
139
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template_span_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, ctx_r1.ChromeActiveTitle)); });
94
140
  i0.ɵɵtext(3);
95
141
  i0.ɵɵelementEnd();
96
142
  i0.ɵɵdeclareLet(4);
97
- i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_5_Template, 2, 3, "span", 22)(6, MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_6_Template, 2, 3, "span", 23);
98
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_7_Template, 1, 2, "span", 24);
143
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template, 2, 3, "span", 27)(6, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template, 2, 3, "span", 28);
144
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template, 1, 2, "span", 29);
99
145
  i0.ɵɵelementEnd();
100
146
  } if (rf & 2) {
101
147
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -106,314 +152,335 @@ function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Template(rf,
106
152
  i0.ɵɵadvance(2);
107
153
  i0.ɵɵtextInterpolate(ctx_r1.ChromeActiveTitle);
108
154
  i0.ɵɵadvance();
109
- const formIndicators_r5 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
155
+ const formIndicators_r10 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
110
156
  i0.ɵɵadvance();
111
- i0.ɵɵconditional(formIndicators_r5.ErrorCount > 0 ? 5 : formIndicators_r5.WarningCount > 0 ? 6 : -1);
157
+ i0.ɵɵconditional(formIndicators_r10.ErrorCount > 0 ? 5 : formIndicators_r10.WarningCount > 0 ? 6 : -1);
112
158
  i0.ɵɵadvance(2);
113
- i0.ɵɵconditional(formIndicators_r5.DirtyCount > 0 ? 7 : -1);
159
+ i0.ɵɵconditional(formIndicators_r10.DirtyCount > 0 ? 7 : -1);
114
160
  } }
115
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
116
- const _r9 = i0.ɵɵgetCurrentView();
117
- i0.ɵɵelementStart(0, "span", 41);
118
- i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r9); const group_r8 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, group_r8.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
119
- i0.ɵɵelement(1, "i", 42);
161
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
162
+ const _r14 = i0.ɵɵgetCurrentView();
163
+ i0.ɵɵelementStart(0, "span", 46);
164
+ i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r14); const group_r13 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, group_r13.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
165
+ i0.ɵɵelement(1, "i", 47);
120
166
  i0.ɵɵelementEnd();
121
167
  } }
122
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
123
- i0.ɵɵelement(0, "span", 37);
168
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
169
+ i0.ɵɵelement(0, "span", 42);
124
170
  } if (rf & 2) {
125
- const group_r8 = i0.ɵɵnextContext().$implicit;
126
- const groupIndicators_r10 = i0.ɵɵreadContextLet(5);
171
+ const group_r13 = i0.ɵɵnextContext().$implicit;
172
+ const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
127
173
  const ctx_r1 = i0.ɵɵnextContext(3);
128
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(groupIndicators_r10.DirtyCount, group_r8.Title));
129
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r10.DirtyCount, group_r8.Title));
174
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
175
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
130
176
  } }
131
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
132
- i0.ɵɵelementStart(0, "span", 38);
133
- i0.ɵɵelement(1, "i", 43);
177
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
178
+ i0.ɵɵelementStart(0, "span", 43);
179
+ i0.ɵɵelement(1, "i", 48);
134
180
  i0.ɵɵtext(2);
135
181
  i0.ɵɵelementEnd();
136
182
  } if (rf & 2) {
137
- const group_r8 = i0.ɵɵnextContext().$implicit;
138
- const groupIndicators_r10 = i0.ɵɵreadContextLet(5);
183
+ const group_r13 = i0.ɵɵnextContext().$implicit;
184
+ const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
139
185
  const ctx_r1 = i0.ɵɵnextContext(3);
140
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(groupIndicators_r10.ErrorCount, group_r8.Title));
141
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(groupIndicators_r10.ErrorCount, group_r8.Title));
186
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(groupIndicators_r15.ErrorCount, group_r13.Title));
187
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(groupIndicators_r15.ErrorCount, group_r13.Title));
142
188
  i0.ɵɵadvance(2);
143
- i0.ɵɵtextInterpolate1("", groupIndicators_r10.ErrorCount, " ");
189
+ i0.ɵɵtextInterpolate1("", groupIndicators_r15.ErrorCount, " ");
144
190
  } }
145
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
146
- i0.ɵɵelementStart(0, "span", 39);
147
- i0.ɵɵelement(1, "i", 44);
191
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
192
+ i0.ɵɵelementStart(0, "span", 44);
193
+ i0.ɵɵelement(1, "i", 49);
148
194
  i0.ɵɵtext(2);
149
195
  i0.ɵɵelementEnd();
150
196
  } if (rf & 2) {
151
- const group_r8 = i0.ɵɵnextContext().$implicit;
152
- const groupIndicators_r10 = i0.ɵɵreadContextLet(5);
197
+ const group_r13 = i0.ɵɵnextContext().$implicit;
198
+ const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
153
199
  const ctx_r1 = i0.ɵɵnextContext(3);
154
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(groupIndicators_r10.WarningCount, group_r8.Title));
155
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(groupIndicators_r10.WarningCount, group_r8.Title));
200
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(groupIndicators_r15.WarningCount, group_r13.Title));
201
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(groupIndicators_r15.WarningCount, group_r13.Title));
156
202
  i0.ɵɵadvance(2);
157
- i0.ɵɵtextInterpolate1("", groupIndicators_r10.WarningCount, " ");
203
+ i0.ɵɵtextInterpolate1("", groupIndicators_r15.WarningCount, " ");
158
204
  } }
159
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
160
- i0.ɵɵelementStart(0, "span", 40);
205
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
206
+ i0.ɵɵelementStart(0, "span", 45);
161
207
  i0.ɵɵtext(1);
162
208
  i0.ɵɵelementEnd();
163
209
  } if (rf & 2) {
164
210
  i0.ɵɵnextContext();
165
- const rowCount_r11 = i0.ɵɵreadContextLet(9);
211
+ const rowCount_r16 = i0.ɵɵreadContextLet(9);
166
212
  i0.ɵɵadvance();
167
- i0.ɵɵtextInterpolate(rowCount_r11);
213
+ i0.ɵɵtextInterpolate(rowCount_r16);
168
214
  } }
169
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
170
- const _r7 = i0.ɵɵgetCurrentView();
171
- i0.ɵɵelementStart(0, "div", 34);
172
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_div_click_0_listener() { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r8.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_div_keydown_enter_0_listener() { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r8.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_div_keydown_space_0_listener($event) { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r8.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_div_dragover_0_listener($event) { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, group_r8.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_div_dragleave_0_listener($event) { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, group_r8.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_div_drop_0_listener($event) { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, group_r8.Key)); });
173
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 35);
215
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
216
+ const _r12 = i0.ɵɵgetCurrentView();
217
+ i0.ɵɵelementStart(0, "div", 39);
218
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_click_0_listener() { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_keydown_enter_0_listener() { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_keydown_space_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_dragover_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, group_r13.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_dragleave_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, group_r13.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_drop_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, group_r13.Key)); });
219
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 40);
174
220
  i0.ɵɵelement(2, "i");
175
- i0.ɵɵelementStart(3, "span", 36);
176
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template_span_mouseenter_3_listener($event) { const group_r8 = i0.ɵɵrestoreView(_r7).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, group_r8.Title)); });
221
+ i0.ɵɵelementStart(3, "span", 41);
222
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_span_mouseenter_3_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, group_r13.Title)); });
177
223
  i0.ɵɵtext(4);
178
224
  i0.ɵɵelementEnd();
179
225
  i0.ɵɵdeclareLet(5);
180
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 37);
181
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 38)(8, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 39);
226
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 42);
227
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 44);
182
228
  i0.ɵɵdeclareLet(9);
183
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 40);
229
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 45);
184
230
  i0.ɵɵelementEnd();
185
231
  } if (rf & 2) {
186
- const group_r8 = ctx.$implicit;
232
+ const group_r13 = ctx.$implicit;
187
233
  const ctx_r1 = i0.ɵɵnextContext(3);
188
- i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === group_r8.Key)("is-drag-over", ctx_r1.RailDragOverKey === group_r8.Key)("has-errors", ctx_r1.ChromeGroupIndicators(group_r8).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(group_r8).DirtyCount > 0);
189
- i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === group_r8.Key ? "page" : null);
234
+ i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === group_r13.Key)("is-drag-over", ctx_r1.RailDragOverKey === group_r13.Key)("has-errors", ctx_r1.ChromeGroupIndicators(group_r13).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(group_r13).DirtyCount > 0);
235
+ i0.ɵɵattribute("data-rail-key", group_r13.Key)("aria-current", ctx_r1.ChromeActiveGroupKey === group_r13.Key ? "page" : null);
190
236
  i0.ɵɵadvance();
191
237
  i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
192
238
  i0.ɵɵadvance();
193
- i0.ɵɵclassMap(group_r8.Icon);
239
+ i0.ɵɵclassMap(group_r13.Icon);
194
240
  i0.ɵɵadvance(2);
195
- i0.ɵɵtextInterpolate(group_r8.Title);
241
+ i0.ɵɵtextInterpolate(group_r13.Title);
196
242
  i0.ɵɵadvance();
197
- const groupIndicators_r12 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r8));
243
+ const groupIndicators_r17 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r13));
198
244
  i0.ɵɵadvance();
199
- i0.ɵɵconditional(groupIndicators_r12.DirtyCount > 0 ? 6 : -1);
245
+ i0.ɵɵconditional(groupIndicators_r17.DirtyCount > 0 ? 6 : -1);
200
246
  i0.ɵɵadvance();
201
- i0.ɵɵconditional(groupIndicators_r12.ErrorCount > 0 ? 7 : groupIndicators_r12.WarningCount > 0 ? 8 : -1);
247
+ i0.ɵɵconditional(groupIndicators_r17.ErrorCount > 0 ? 7 : groupIndicators_r17.WarningCount > 0 ? 8 : -1);
202
248
  i0.ɵɵadvance(2);
203
- const rowCount_r13 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r8));
249
+ const rowCount_r18 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r13));
204
250
  i0.ɵɵadvance();
205
- i0.ɵɵconditional(rowCount_r13 != null && rowCount_r13 > 0 ? 10 : -1);
251
+ i0.ɵɵconditional(rowCount_r18 != null && rowCount_r18 > 0 ? 10 : -1);
206
252
  } }
207
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
208
- i0.ɵɵelement(0, "span", 37);
253
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
254
+ i0.ɵɵelement(0, "span", 42);
209
255
  } if (rf & 2) {
210
- const more_r15 = i0.ɵɵnextContext();
211
- const moreIndicators_r16 = i0.ɵɵreadContextLet(5);
256
+ const more_r20 = i0.ɵɵnextContext();
257
+ const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
212
258
  const ctx_r1 = i0.ɵɵnextContext(3);
213
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(moreIndicators_r16.DirtyCount, more_r15.Title));
214
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r16.DirtyCount, more_r15.Title));
259
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
260
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
215
261
  } }
216
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
217
- i0.ɵɵelementStart(0, "span", 38);
218
- i0.ɵɵelement(1, "i", 43);
262
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
263
+ i0.ɵɵelementStart(0, "span", 43);
264
+ i0.ɵɵelement(1, "i", 48);
219
265
  i0.ɵɵtext(2);
220
266
  i0.ɵɵelementEnd();
221
267
  } if (rf & 2) {
222
- const more_r15 = i0.ɵɵnextContext();
223
- const moreIndicators_r16 = i0.ɵɵreadContextLet(5);
268
+ const more_r20 = i0.ɵɵnextContext();
269
+ const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
224
270
  const ctx_r1 = i0.ɵɵnextContext(3);
225
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(moreIndicators_r16.ErrorCount, more_r15.Title));
226
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(moreIndicators_r16.ErrorCount, more_r15.Title));
271
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(moreIndicators_r21.ErrorCount, more_r20.Title));
272
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(moreIndicators_r21.ErrorCount, more_r20.Title));
227
273
  i0.ɵɵadvance(2);
228
- i0.ɵɵtextInterpolate1("", moreIndicators_r16.ErrorCount, " ");
274
+ i0.ɵɵtextInterpolate1("", moreIndicators_r21.ErrorCount, " ");
229
275
  } }
230
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
231
- i0.ɵɵelementStart(0, "span", 39);
232
- i0.ɵɵelement(1, "i", 44);
276
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
277
+ i0.ɵɵelementStart(0, "span", 44);
278
+ i0.ɵɵelement(1, "i", 49);
233
279
  i0.ɵɵtext(2);
234
280
  i0.ɵɵelementEnd();
235
281
  } if (rf & 2) {
236
- const more_r15 = i0.ɵɵnextContext();
237
- const moreIndicators_r16 = i0.ɵɵreadContextLet(5);
282
+ const more_r20 = i0.ɵɵnextContext();
283
+ const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
238
284
  const ctx_r1 = i0.ɵɵnextContext(3);
239
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(moreIndicators_r16.WarningCount, more_r15.Title));
240
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(moreIndicators_r16.WarningCount, more_r15.Title));
285
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(moreIndicators_r21.WarningCount, more_r20.Title));
286
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(moreIndicators_r21.WarningCount, more_r20.Title));
241
287
  i0.ɵɵadvance(2);
242
- i0.ɵɵtextInterpolate1("", moreIndicators_r16.WarningCount, " ");
288
+ i0.ɵɵtextInterpolate1("", moreIndicators_r21.WarningCount, " ");
243
289
  } }
244
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
245
- const _r19 = i0.ɵɵgetCurrentView();
246
- i0.ɵɵelementStart(0, "span", 41);
247
- i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r19); const child_r18 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r18.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
248
- i0.ɵɵelement(1, "i", 42);
290
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
291
+ i0.ɵɵelementStart(0, "span", 54);
292
+ i0.ɵɵtext(1);
249
293
  i0.ɵɵelementEnd();
294
+ } if (rf & 2) {
295
+ i0.ɵɵnextContext();
296
+ const moreRowCount_r22 = i0.ɵɵreadContextLet(0);
297
+ i0.ɵɵadvance();
298
+ i0.ɵɵtextInterpolate(moreRowCount_r22);
250
299
  } }
251
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
252
- i0.ɵɵelement(0, "span", 37);
300
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Template(rf, ctx) { if (rf & 1) {
301
+ i0.ɵɵdeclareLet(0);
302
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template, 2, 1, "span", 54);
253
303
  } if (rf & 2) {
254
- const child_r18 = i0.ɵɵnextContext().$implicit;
255
- const childIndicators_r20 = i0.ɵɵreadContextLet(5);
304
+ const moreRowCount_r23 = i0.ɵɵstoreLet(i0.ɵɵnextContext(4).ChromeMoreRowCount);
305
+ i0.ɵɵadvance();
306
+ i0.ɵɵconditional(moreRowCount_r23 != null && moreRowCount_r23 > 0 ? 1 : -1);
307
+ } }
308
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
309
+ const _r26 = i0.ɵɵgetCurrentView();
310
+ i0.ɵɵelementStart(0, "span", 46);
311
+ i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r26); const child_r25 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r25.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
312
+ i0.ɵɵelement(1, "i", 47);
313
+ i0.ɵɵelementEnd();
314
+ } }
315
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
316
+ i0.ɵɵelement(0, "span", 42);
317
+ } if (rf & 2) {
318
+ const child_r25 = i0.ɵɵnextContext().$implicit;
319
+ const childIndicators_r27 = i0.ɵɵreadContextLet(5);
256
320
  const ctx_r1 = i0.ɵɵnextContext(5);
257
- i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r20.DirtyCount, child_r18.Title));
258
- i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r20.DirtyCount, child_r18.Title));
321
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r27.DirtyCount, child_r25.Title));
322
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r27.DirtyCount, child_r25.Title));
259
323
  } }
260
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
261
- i0.ɵɵelementStart(0, "span", 38);
262
- i0.ɵɵelement(1, "i", 43);
324
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
325
+ i0.ɵɵelementStart(0, "span", 43);
326
+ i0.ɵɵelement(1, "i", 48);
263
327
  i0.ɵɵtext(2);
264
328
  i0.ɵɵelementEnd();
265
329
  } if (rf & 2) {
266
- const child_r18 = i0.ɵɵnextContext().$implicit;
267
- const childIndicators_r20 = i0.ɵɵreadContextLet(5);
330
+ const child_r25 = i0.ɵɵnextContext().$implicit;
331
+ const childIndicators_r27 = i0.ɵɵreadContextLet(5);
268
332
  const ctx_r1 = i0.ɵɵnextContext(5);
269
- i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r20.ErrorCount, child_r18.Title));
270
- i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r20.ErrorCount, child_r18.Title));
333
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r27.ErrorCount, child_r25.Title));
334
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r27.ErrorCount, child_r25.Title));
271
335
  i0.ɵɵadvance(2);
272
- i0.ɵɵtextInterpolate1("", childIndicators_r20.ErrorCount, " ");
336
+ i0.ɵɵtextInterpolate1("", childIndicators_r27.ErrorCount, " ");
273
337
  } }
274
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
275
- i0.ɵɵelementStart(0, "span", 39);
276
- i0.ɵɵelement(1, "i", 44);
338
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
339
+ i0.ɵɵelementStart(0, "span", 44);
340
+ i0.ɵɵelement(1, "i", 49);
277
341
  i0.ɵɵtext(2);
278
342
  i0.ɵɵelementEnd();
279
343
  } if (rf & 2) {
280
- const child_r18 = i0.ɵɵnextContext().$implicit;
281
- const childIndicators_r20 = i0.ɵɵreadContextLet(5);
344
+ const child_r25 = i0.ɵɵnextContext().$implicit;
345
+ const childIndicators_r27 = i0.ɵɵreadContextLet(5);
282
346
  const ctx_r1 = i0.ɵɵnextContext(5);
283
- i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r20.WarningCount, child_r18.Title));
284
- i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r20.WarningCount, child_r18.Title));
347
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r27.WarningCount, child_r25.Title));
348
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r27.WarningCount, child_r25.Title));
285
349
  i0.ɵɵadvance(2);
286
- i0.ɵɵtextInterpolate1("", childIndicators_r20.WarningCount, " ");
350
+ i0.ɵɵtextInterpolate1("", childIndicators_r27.WarningCount, " ");
287
351
  } }
288
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
289
- i0.ɵɵelementStart(0, "span", 40);
352
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
353
+ i0.ɵɵelementStart(0, "span", 45);
290
354
  i0.ɵɵtext(1);
291
355
  i0.ɵɵelementEnd();
292
356
  } if (rf & 2) {
293
357
  i0.ɵɵnextContext();
294
- const childCount_r21 = i0.ɵɵreadContextLet(9);
358
+ const childCount_r28 = i0.ɵɵreadContextLet(9);
295
359
  i0.ɵɵadvance();
296
- i0.ɵɵtextInterpolate(childCount_r21);
360
+ i0.ɵɵtextInterpolate(childCount_r28);
297
361
  } }
298
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
299
- const _r17 = i0.ɵɵgetCurrentView();
300
- i0.ɵɵelementStart(0, "div", 50);
301
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_click_0_listener() { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r18.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_keydown_enter_0_listener() { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r18.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_keydown_space_0_listener($event) { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r18.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_dragover_0_listener($event) { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r18.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_dragleave_0_listener($event) { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r18.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_drop_0_listener($event) { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r18.Key)); });
302
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template, 2, 0, "span", 35);
362
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1) {
363
+ const _r24 = i0.ɵɵgetCurrentView();
364
+ i0.ɵɵelementStart(0, "div", 56);
365
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_click_0_listener() { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_enter_0_listener() { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_space_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragover_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r25.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragleave_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r25.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_drop_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r25.Key)); });
366
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template, 2, 0, "span", 40);
303
367
  i0.ɵɵelement(2, "i");
304
- i0.ɵɵelementStart(3, "span", 36);
305
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template_span_mouseenter_3_listener($event) { const child_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r18.Title)); });
368
+ i0.ɵɵelementStart(3, "span", 41);
369
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_span_mouseenter_3_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r25.Title)); });
306
370
  i0.ɵɵtext(4);
307
371
  i0.ɵɵelementEnd();
308
372
  i0.ɵɵdeclareLet(5);
309
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_6_Template, 1, 2, "span", 37);
310
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_7_Template, 3, 3, "span", 38)(8, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_8_Template, 3, 3, "span", 39);
373
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template, 1, 2, "span", 42);
374
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template, 3, 3, "span", 44);
311
375
  i0.ɵɵdeclareLet(9);
312
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_10_Template, 2, 1, "span", 40);
376
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template, 2, 1, "span", 45);
313
377
  i0.ɵɵelementEnd();
314
378
  } if (rf & 2) {
315
- const child_r18 = ctx.$implicit;
379
+ const child_r25 = ctx.$implicit;
316
380
  const ctx_r1 = i0.ɵɵnextContext(5);
317
- i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r18.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r18.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r18).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r18).DirtyCount > 0);
318
- i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r18.Key ? "page" : null);
381
+ i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r25.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r25.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r25).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r25).DirtyCount > 0);
382
+ i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r25.Key ? "page" : null);
319
383
  i0.ɵɵadvance();
320
384
  i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
321
385
  i0.ɵɵadvance();
322
- i0.ɵɵclassMap(child_r18.Icon);
386
+ i0.ɵɵclassMap(child_r25.Icon);
323
387
  i0.ɵɵadvance(2);
324
- i0.ɵɵtextInterpolate(child_r18.Title);
388
+ i0.ɵɵtextInterpolate(child_r25.Title);
325
389
  i0.ɵɵadvance();
326
- const childIndicators_r22 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r18));
390
+ const childIndicators_r29 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r25));
327
391
  i0.ɵɵadvance();
328
- i0.ɵɵconditional(childIndicators_r22.DirtyCount > 0 ? 6 : -1);
392
+ i0.ɵɵconditional(childIndicators_r29.DirtyCount > 0 ? 6 : -1);
329
393
  i0.ɵɵadvance();
330
- i0.ɵɵconditional(childIndicators_r22.ErrorCount > 0 ? 7 : childIndicators_r22.WarningCount > 0 ? 8 : -1);
394
+ i0.ɵɵconditional(childIndicators_r29.ErrorCount > 0 ? 7 : childIndicators_r29.WarningCount > 0 ? 8 : -1);
331
395
  i0.ɵɵadvance(2);
332
- const childCount_r23 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r18));
396
+ const childCount_r30 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r25));
333
397
  i0.ɵɵadvance();
334
- i0.ɵɵconditional(childCount_r23 != null && childCount_r23 > 0 ? 10 : -1);
398
+ i0.ɵɵconditional(childCount_r30 != null && childCount_r30 > 0 ? 10 : -1);
335
399
  } }
336
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_Template(rf, ctx) { if (rf & 1) {
337
- i0.ɵɵelementStart(0, "div", 48);
338
- i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_For_2_Template, 11, 18, "div", 49, _forTrack0);
400
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_Template(rf, ctx) { if (rf & 1) {
401
+ i0.ɵɵelementStart(0, "div", 53);
402
+ i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template, 11, 18, "div", 55, _forTrack1);
339
403
  i0.ɵɵelementEnd();
340
404
  } if (rf & 2) {
341
405
  const ctx_r1 = i0.ɵɵnextContext(4);
342
406
  i0.ɵɵadvance();
343
407
  i0.ɵɵrepeater(ctx_r1.ChromeMoreItems);
344
408
  } }
345
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
346
- const _r14 = i0.ɵɵgetCurrentView();
347
- i0.ɵɵelementStart(0, "div", 45);
348
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.space", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Template_div_keydown_space_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); });
349
- i0.ɵɵelement(1, "span", 46)(2, "i");
350
- i0.ɵɵelementStart(3, "span", 36);
351
- i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Template_span_mouseenter_3_listener($event) { const more_r15 = i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, more_r15.Title)); });
409
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
410
+ const _r19 = i0.ɵɵgetCurrentView();
411
+ i0.ɵɵelementStart(0, "div", 50);
412
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_keydown_space_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); });
413
+ i0.ɵɵelement(1, "span", 51)(2, "i");
414
+ i0.ɵɵelementStart(3, "span", 41);
415
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_span_mouseenter_3_listener($event) { const more_r20 = i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, more_r20.Title)); });
352
416
  i0.ɵɵtext(4);
353
417
  i0.ɵɵelementEnd();
354
418
  i0.ɵɵdeclareLet(5);
355
- i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 37);
356
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 38)(8, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 39);
357
- i0.ɵɵelement(9, "i", 47);
419
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 42);
420
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 44);
421
+ i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Template, 2, 2);
422
+ i0.ɵɵelement(10, "i", 52);
358
423
  i0.ɵɵelementEnd();
359
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_Template, 3, 0, "div", 48);
424
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_Template, 3, 0, "div", 53);
360
425
  } if (rf & 2) {
361
- const more_r15 = ctx;
426
+ const more_r20 = ctx;
362
427
  const ctx_r1 = i0.ɵɵnextContext(3);
363
- i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r15).ErrorCount > 0);
428
+ i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r20).ErrorCount > 0);
364
429
  i0.ɵɵadvance(2);
365
430
  i0.ɵɵclassMap(ctx_r1.MoreExpanded ? "fa-solid fa-folder-open" : "fa-solid fa-folder");
366
431
  i0.ɵɵadvance(2);
367
- i0.ɵɵtextInterpolate(more_r15.Title);
432
+ i0.ɵɵtextInterpolate(more_r20.Title);
368
433
  i0.ɵɵadvance();
369
- const moreIndicators_r24 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r15));
434
+ const moreIndicators_r31 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r20));
370
435
  i0.ɵɵadvance();
371
- i0.ɵɵconditional(moreIndicators_r24.DirtyCount > 0 ? 6 : -1);
436
+ i0.ɵɵconditional(moreIndicators_r31.DirtyCount > 0 ? 6 : -1);
372
437
  i0.ɵɵadvance();
373
- i0.ɵɵconditional(moreIndicators_r24.ErrorCount > 0 ? 7 : moreIndicators_r24.WarningCount > 0 ? 8 : -1);
438
+ i0.ɵɵconditional(moreIndicators_r31.ErrorCount > 0 ? 7 : moreIndicators_r31.WarningCount > 0 ? 8 : -1);
374
439
  i0.ɵɵadvance(2);
440
+ i0.ɵɵconditional(!ctx_r1.MoreExpanded ? 9 : -1);
441
+ i0.ɵɵadvance();
375
442
  i0.ɵɵclassProp("fa-minus", ctx_r1.MoreExpanded)("fa-plus", !ctx_r1.MoreExpanded);
376
443
  i0.ɵɵadvance();
377
- i0.ɵɵconditional(ctx_r1.MoreExpanded ? 10 : -1);
444
+ i0.ɵɵconditional(ctx_r1.MoreExpanded ? 11 : -1);
378
445
  } }
379
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
380
- i0.ɵɵelementStart(0, "div", 33);
381
- i0.ɵɵelement(1, "span", 46)(2, "i", 43);
382
- i0.ɵɵelementStart(3, "span", 51);
446
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
447
+ i0.ɵɵelementStart(0, "div", 38);
448
+ i0.ɵɵelement(1, "span", 51)(2, "i", 48);
449
+ i0.ɵɵelementStart(3, "span", 57);
383
450
  i0.ɵɵtext(4, "Not in a section");
384
451
  i0.ɵɵelementEnd();
385
- i0.ɵɵelementStart(5, "span", 52);
452
+ i0.ɵɵelementStart(5, "span", 58);
386
453
  i0.ɵɵtext(6);
387
454
  i0.ɵɵelementEnd()();
388
455
  } if (rf & 2) {
389
456
  i0.ɵɵnextContext();
390
- const unroutedErrors_r25 = i0.ɵɵreadContextLet(10);
457
+ const unroutedErrors_r32 = i0.ɵɵreadContextLet(10);
391
458
  const ctx_r1 = i0.ɵɵnextContext(2);
392
- i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r25));
393
- i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r25));
459
+ i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
460
+ i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
394
461
  i0.ɵɵadvance(5);
395
- i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r25));
462
+ i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
396
463
  i0.ɵɵadvance();
397
- i0.ɵɵtextInterpolate(unroutedErrors_r25);
464
+ i0.ɵɵtextInterpolate(unroutedErrors_r32);
398
465
  } }
399
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template(rf, ctx) { if (rf & 1) {
400
- const _r6 = i0.ɵɵgetCurrentView();
401
- i0.ɵɵelementStart(0, "div", 25);
402
- i0.ɵɵlistener("pointerdown", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template_div_pointerdown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeStart($event)); })("pointermove", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeMove($event)); })("pointerup", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); })("pointercancel", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); });
466
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
467
+ const _r11 = i0.ɵɵgetCurrentView();
468
+ i0.ɵɵelementStart(0, "div", 30);
469
+ i0.ɵɵlistener("pointerdown", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointerdown_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeStart($event)); })("pointermove", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeMove($event)); })("pointerup", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); })("pointercancel", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); });
403
470
  i0.ɵɵelementEnd();
404
- i0.ɵɵelementStart(1, "div", 26)(2, "button", 27);
405
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailPinToggle()); });
406
- i0.ɵɵelement(3, "i", 28);
471
+ i0.ɵɵelementStart(1, "div", 31)(2, "button", 32);
472
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailPinToggle()); });
473
+ i0.ɵɵelement(3, "i", 33);
407
474
  i0.ɵɵelementEnd();
408
- i0.ɵɵelementStart(4, "button", 29);
409
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailCollapse()); });
410
- i0.ɵɵelement(5, "i", 30);
475
+ i0.ɵɵelementStart(4, "button", 34);
476
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailCollapse()); });
477
+ i0.ɵɵelement(5, "i", 35);
411
478
  i0.ɵɵelementEnd()();
412
- i0.ɵɵelementStart(6, "div", 31);
413
- i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Template, 11, 18, "div", 32, _forTrack0);
414
- i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Template, 11, 15);
479
+ i0.ɵɵelementStart(6, "div", 36);
480
+ i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template, 11, 19, "div", 37, _forTrack1);
481
+ i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template, 12, 16);
415
482
  i0.ɵɵdeclareLet(10);
416
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_11_Template, 7, 4, "div", 33);
483
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template, 7, 4, "div", 38);
417
484
  i0.ɵɵelementEnd();
418
485
  } if (rf & 2) {
419
486
  let tmp_9_0;
@@ -428,13 +495,13 @@ function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template(rf,
428
495
  i0.ɵɵadvance(2);
429
496
  i0.ɵɵconditional((tmp_9_0 = ctx_r1.ChromeMoreFolder) ? 9 : -1, tmp_9_0);
430
497
  i0.ɵɵadvance();
431
- const unroutedErrors_r26 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
498
+ const unroutedErrors_r33 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
432
499
  i0.ɵɵadvance();
433
- i0.ɵɵconditional(unroutedErrors_r26 > 0 ? 11 : -1);
500
+ i0.ɵɵconditional(unroutedErrors_r33 > 0 ? 11 : -1);
434
501
  } }
435
- function MjRecordFormContainerComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
436
- i0.ɵɵelementStart(0, "nav", 18);
437
- i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_7_Conditional_1_Template, 8, 8, "button", 19)(2, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template, 12, 10);
502
+ function MjRecordFormContainerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
503
+ i0.ɵɵelementStart(0, "nav", 23);
504
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template, 8, 8, "button", 24)(2, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template, 12, 10);
438
505
  i0.ɵɵelementEnd();
439
506
  } if (rf & 2) {
440
507
  const ctx_r1 = i0.ɵɵnextContext();
@@ -444,14 +511,14 @@ function MjRecordFormContainerComponent_Conditional_7_Template(rf, ctx) { if (rf
444
511
  i0.ɵɵadvance();
445
512
  i0.ɵɵconditional(ctx_r1.ChromeRailCollapsed ? 1 : 2);
446
513
  } }
447
- function MjRecordFormContainerComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
448
- i0.ɵɵelement(0, "mj-form-contributions", 7);
514
+ function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
515
+ i0.ɵɵelement(0, "mj-form-contributions", 8);
449
516
  } if (rf & 2) {
450
517
  const ctx_r1 = i0.ɵɵnextContext();
451
518
  i0.ɵɵproperty("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent)("FormContext", ctx_r1.FormComponent.formContext)("BakedSectionKeys", ctx_r1.BakedRelatedSectionKeys)("ShowRelatedEntities", ctx_r1.EffectiveShowRelatedEntities);
452
519
  } }
453
- function MjRecordFormContainerComponent_Conditional_11_Conditional_5_Template(rf, ctx) { if (rf & 1) {
454
- i0.ɵɵelementStart(0, "span", 56);
520
+ function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf, ctx) { if (rf & 1) {
521
+ i0.ɵɵelementStart(0, "span", 62);
455
522
  i0.ɵɵtext(1);
456
523
  i0.ɵɵelementEnd();
457
524
  } if (rf & 2) {
@@ -459,16 +526,35 @@ function MjRecordFormContainerComponent_Conditional_11_Conditional_5_Template(rf
459
526
  i0.ɵɵadvance();
460
527
  i0.ɵɵtextInterpolate(ctx_r1.MorePreview);
461
528
  } }
462
- function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
463
- const _r27 = i0.ɵɵgetCurrentView();
464
- i0.ɵɵelementStart(0, "div", 53)(1, "button", 54);
465
- i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
529
+ function MjRecordFormContainerComponent_Conditional_12_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
530
+ i0.ɵɵelementStart(0, "span", 54);
531
+ i0.ɵɵtext(1);
532
+ i0.ɵɵelementEnd();
533
+ } if (rf & 2) {
534
+ i0.ɵɵnextContext();
535
+ const accordionMoreCount_r35 = i0.ɵɵreadContextLet(0);
536
+ i0.ɵɵadvance();
537
+ i0.ɵɵtextInterpolate(accordionMoreCount_r35);
538
+ } }
539
+ function MjRecordFormContainerComponent_Conditional_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
540
+ i0.ɵɵdeclareLet(0);
541
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_12_Conditional_6_Conditional_1_Template, 2, 1, "span", 54);
542
+ } if (rf & 2) {
543
+ const accordionMoreCount_r36 = i0.ɵɵstoreLet(i0.ɵɵnextContext(2).ChromeMoreRowCount);
544
+ i0.ɵɵadvance();
545
+ i0.ɵɵconditional(accordionMoreCount_r36 != null && accordionMoreCount_r36 > 0 ? 1 : -1);
546
+ } }
547
+ function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
548
+ const _r34 = i0.ɵɵgetCurrentView();
549
+ i0.ɵɵelementStart(0, "div", 59)(1, "button", 60);
550
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
466
551
  i0.ɵɵelement(2, "i");
467
- i0.ɵɵelementStart(3, "span", 55);
552
+ i0.ɵɵelementStart(3, "span", 61);
468
553
  i0.ɵɵtext(4);
469
554
  i0.ɵɵelementEnd();
470
- i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_11_Conditional_5_Template, 2, 1, "span", 56);
471
- i0.ɵɵelement(6, "i", 57);
555
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template, 2, 1, "span", 62);
556
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_12_Conditional_6_Template, 2, 2);
557
+ i0.ɵɵelement(7, "i", 63);
472
558
  i0.ɵɵelementEnd()();
473
559
  } if (rf & 2) {
474
560
  const ctx_r1 = i0.ɵɵnextContext();
@@ -480,54 +566,56 @@ function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (r
480
566
  i0.ɵɵadvance();
481
567
  i0.ɵɵconditional(!ctx_r1.MoreExpanded && ctx_r1.MorePreview ? 5 : -1);
482
568
  i0.ɵɵadvance();
569
+ i0.ɵɵconditional(!ctx_r1.MoreExpanded ? 6 : -1);
570
+ i0.ɵɵadvance();
483
571
  i0.ɵɵclassProp("fa-chevron-down", ctx_r1.MoreExpanded)("fa-chevron-right", !ctx_r1.MoreExpanded);
484
572
  } }
485
- function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
486
- i0.ɵɵelement(0, "mj-form-panel-slot", 9);
573
+ function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
574
+ i0.ɵɵelement(0, "mj-form-panel-slot", 10);
487
575
  } if (rf & 2) {
488
576
  const ctx_r1 = i0.ɵɵnextContext();
489
577
  i0.ɵɵproperty("Entity", ctx_r1.Record.EntityInfo.Name)("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent);
490
578
  } }
491
- function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
492
- const _r28 = i0.ɵɵgetCurrentView();
493
- i0.ɵɵelementStart(0, "mj-empty-state", 58);
494
- i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_13_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
579
+ function MjRecordFormContainerComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
580
+ const _r37 = i0.ɵɵgetCurrentView();
581
+ i0.ɵɵelementStart(0, "mj-empty-state", 64);
582
+ i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_14_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
495
583
  i0.ɵɵelementEnd();
496
584
  } if (rf & 2) {
497
585
  const ctx_r1 = i0.ɵɵnextContext();
498
586
  i0.ɵɵproperty("Message", "No sections match \"" + ctx_r1.EffectiveSearchFilter + "\". Try a different search term.");
499
587
  } }
500
- function MjRecordFormContainerComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
501
- const _r29 = i0.ɵɵgetCurrentView();
502
- i0.ɵɵelementStart(0, "mj-record-changes", 59);
503
- i0.ɵɵlistener("RestoreRequested", function MjRecordFormContainerComponent_Conditional_15_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRestoreRequested($event)); })("dialogClosed", function MjRecordFormContainerComponent_Conditional_15_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
588
+ function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
589
+ const _r38 = i0.ɵɵgetCurrentView();
590
+ i0.ɵɵelementStart(0, "mj-record-changes", 65);
591
+ i0.ɵɵlistener("RestoreRequested", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRestoreRequested($event)); })("dialogClosed", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
504
592
  i0.ɵɵelementEnd();
505
593
  } if (rf & 2) {
506
594
  const ctx_r1 = i0.ɵɵnextContext();
507
595
  i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit);
508
596
  } }
509
- function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
510
- const _r30 = i0.ɵɵgetCurrentView();
511
- i0.ɵɵelementStart(0, "mj-record-tags", 60);
512
- i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelClosed()); })("TagCountChanged", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_tags_TagCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagCountChanged($event)); })("RecordNavigate", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_tags_RecordNavigate_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsRecordNavigate($event)); })("WidthChanged", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_tags_WidthChanged_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
597
+ function MjRecordFormContainerComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
598
+ const _r39 = i0.ɵɵgetCurrentView();
599
+ i0.ɵɵelementStart(0, "mj-record-tags", 66);
600
+ i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelClosed()); })("TagCountChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_TagCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagCountChanged($event)); })("RecordNavigate", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_RecordNavigate_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsRecordNavigate($event)); })("WidthChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_WidthChanged_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
513
601
  i0.ɵɵelementEnd();
514
602
  } if (rf & 2) {
515
603
  const ctx_r1 = i0.ɵɵnextContext();
516
604
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("WidthPx", ctx_r1.TagsPanelWidth);
517
605
  } }
518
- function MjRecordFormContainerComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
519
- const _r31 = i0.ɵɵgetCurrentView();
520
- i0.ɵɵelementStart(0, "mj-record-attachments", 61);
521
- i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelClosed()); })("AttachmentCountChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_attachments_AttachmentCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
606
+ function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
607
+ const _r40 = i0.ɵɵgetCurrentView();
608
+ i0.ɵɵelementStart(0, "mj-record-attachments", 67);
609
+ i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r40); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelClosed()); })("AttachmentCountChanged", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_AttachmentCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
522
610
  i0.ɵɵelementEnd();
523
611
  } if (rf & 2) {
524
612
  const ctx_r1 = i0.ɵɵnextContext();
525
613
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("Visible", true);
526
614
  } }
527
- function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
528
- const _r32 = i0.ɵɵgetCurrentView();
529
- i0.ɵɵelementStart(0, "mj-list-management-dialog", 62);
530
- i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_18_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementComplete($event)); })("cancel", function MjRecordFormContainerComponent_Conditional_18_Template_mj_list_management_dialog_cancel_0_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
615
+ function MjRecordFormContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
616
+ const _r41 = i0.ɵɵgetCurrentView();
617
+ i0.ɵɵelementStart(0, "mj-list-management-dialog", 68);
618
+ i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementComplete($event)); })("cancel", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_cancel_0_listener() { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
531
619
  i0.ɵɵelementEnd();
532
620
  } if (rf & 2) {
533
621
  const ctx_r1 = i0.ɵɵnextContext();
@@ -570,8 +658,17 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
570
658
  chrome = inject(FormChromeCoordinator);
571
659
  sectionIndicators = inject(FormSectionIndicatorCoordinator);
572
660
  slots = inject(FormSlotCoordinator);
661
+ panelAdmin = inject(FormPanelAdminService);
573
662
  recordRefresh = inject(FormRecordRefreshCoordinator);
663
+ fieldEdits = inject(FormFieldEditCoordinator);
574
664
  host = inject((ElementRef));
665
+ /** The placement dialog's unsaved panel, when this form is the dialog's preview. */
666
+ placementPreview = inject(FORM_PLACEMENT_PREVIEW, { optional: true });
667
+ compositionRegistry = inject(FormCompositionRegistry);
668
+ /** The last snapshot published, as JSON, and the form it was published on. */
669
+ lastComposition = null;
670
+ /** Set in ngOnDestroy, so a late async result schedules nothing and draws nothing. */
671
+ destroyed = false;
575
672
  destroy$ = new Subject();
576
673
  panelNavReset$ = new Subject();
577
674
  chromeResolveTimer = null;
@@ -581,6 +678,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
581
678
  lastRailSearchFilter = '';
582
679
  chromeRules = [];
583
680
  chromeRulesForEntityId = null;
681
+ /** The form whose duplicate-check answers this container already re-renders on. */
682
+ duplicateNoticeWiredFor = null;
584
683
  // ---- Internal State ----
585
684
  /** Reference to the record changes drawer (when visible) for triggering refresh after save */
586
685
  recordChangesDrawer;
@@ -599,6 +698,16 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
599
698
  AttachmentCount = 0;
600
699
  /** Number of tracked record change versions for this record */
601
700
  VersionCount = 0;
701
+ // ---- Section counts (one batched round trip per saved record) ----
702
+ /** What was requested for the current record; null until a saved record loads. */
703
+ countPlan = null;
704
+ countPhase = 'none';
705
+ /** Bumped per request so a slow response for a previous record is ignored. */
706
+ countRequestToken = 0;
707
+ /** Sections seen with rows this session — never hidden or moved when they empty out (no yank). */
708
+ stickySectionKeys = new Set();
709
+ /** Last resolved `whenEmpty` outcome, applied by chrome + DOM visibility. */
710
+ emptySectionBehavior = new Map();
602
711
  /** Controls visibility of list management dialog */
603
712
  ShowListManagement = false;
604
713
  /** Controls visibility of section manager drawer */
@@ -788,10 +897,39 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
788
897
  return ResolveFormToolbarConfig(this.ToolbarConfig ?? DEFAULT_TOOLBAR_CONFIG, this.Fc?.Config);
789
898
  }
790
899
  get EffectiveRegisteredToolbarItems() {
791
- if (this.Fc?.RegisteredToolbarItems && this.Fc.RegisteredToolbarItems.length > 0) {
792
- return this.Fc.RegisteredToolbarItems;
793
- }
794
- return this.RegisteredToolbarItems;
900
+ const registered = this.Fc?.RegisteredToolbarItems && this.Fc.RegisteredToolbarItems.length > 0
901
+ ? this.Fc.RegisteredToolbarItems
902
+ : this.RegisteredToolbarItems;
903
+ const manage = this.managePanelsToolbarItem();
904
+ return manage ? [...registered, manage] : [...registered];
905
+ }
906
+ /** Memoised so the toolbar's identity check does not see a new object every pass. */
907
+ managePanelsItem = null;
908
+ /**
909
+ * The way back out of applying a panel.
910
+ *
911
+ * Offered only when the form carries a contribution someone could switch or remove.
912
+ * Registering it as an overflow toolbar item rather than adding a button to the toolbar
913
+ * keeps the toolbar's own list of actions unchanged, and a form that declares its own
914
+ * items keeps them — this is appended, never substituted.
915
+ */
916
+ managePanelsToolbarItem() {
917
+ if (!this.HasManageablePanels)
918
+ return null;
919
+ if (!this.managePanelsItem) {
920
+ this.managePanelsItem = {
921
+ Key: 'manage-form-panels',
922
+ Text: 'Manage this form',
923
+ Description: 'Choose your form, hide panels you do not need, and manage the ones you added',
924
+ Icon: 'fa-solid fa-layer-group',
925
+ // Beside the section controls: this acts on the form's chrome, not on the record.
926
+ Placement: 'right',
927
+ Mode: 'both',
928
+ Order: 80,
929
+ OnClick: () => this.OnManagePanels(),
930
+ };
931
+ }
932
+ return this.managePanelsItem;
795
933
  }
796
934
  get EffectiveToolbarItemOverrides() {
797
935
  if (this.Fc?.ToolbarItemOverrides && this.Fc.ToolbarItemOverrides.size > 0) {
@@ -860,6 +998,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
860
998
  .map((panel) => panel.SectionKey);
861
999
  }
862
1000
  get EffectiveShowRelatedEntities() {
1001
+ if (this.Fc?.OwnsEntireFormBody)
1002
+ return false;
863
1003
  return this.Fc?.Config?.ShowRelatedEntities !== false;
864
1004
  }
865
1005
  get ChromeLayout() {
@@ -1021,6 +1161,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1021
1161
  this.slots.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
1022
1162
  this.scheduleChromeResolve();
1023
1163
  });
1164
+ // The placement dialog's preview re-mounts its panel in a slot without any of the
1165
+ // triggers above firing. On a railed form the panel shows only on the tab its key
1166
+ // belongs to, so the rail is worked out again or the panel belongs to none.
1167
+ this.placementPreview?.Changed$.pipe(takeUntil(this.destroy$)).subscribe(() => {
1168
+ this.scheduleChromeResolve();
1169
+ });
1024
1170
  // A section registering / leaving, or reporting an edit, changes what the rail
1025
1171
  // shows; the container is OnPush, so re-read on the next pass rather than on the
1026
1172
  // 200ms dirty poll below.
@@ -1031,6 +1177,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1031
1177
  this.scheduleChromeResolve();
1032
1178
  // Watch for changes to record dirty state
1033
1179
  this.watchRecordChanges();
1180
+ this.wireDuplicateEntryCheck();
1034
1181
  }
1035
1182
  /**
1036
1183
  * Edit mode and Show Empty Fields both flip `mj-panel-empty` on a panel whose
@@ -1061,6 +1208,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1061
1208
  this.scheduleChromeResolve();
1062
1209
  }
1063
1210
  ngOnDestroy() {
1211
+ this.destroyed = true;
1212
+ // A count or chrome-rule result still in flight then matches nothing and is dropped.
1213
+ this.countRequestToken++;
1214
+ this.chromeRulesForEntityId = null;
1215
+ this.compositionRegistry.Remove(this);
1064
1216
  if (this.chromeResolveTimer) {
1065
1217
  clearTimeout(this.chromeResolveTimer);
1066
1218
  this.chromeResolveTimer = null;
@@ -1146,6 +1298,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1146
1298
  RailWarningTitle(count, where) {
1147
1299
  return DescribeSectionWarnings(count, where);
1148
1300
  }
1301
+ /** Sum of the row counts of every section in More (shown on the collapsed folder). */
1302
+ get ChromeMoreRowCount() {
1303
+ const keys = this.chrome.Spec.MoreSectionKeys;
1304
+ if (keys.length === 0)
1305
+ return undefined;
1306
+ return this.ChromeGroupRowCount({ Key: MORE_SECTION_KEY, Title: 'More', Icon: '', SectionKeys: keys, IsMore: true });
1307
+ }
1149
1308
  ChromeGroupRowCount(group) {
1150
1309
  if (!this.Fc?.GetSectionRowCount)
1151
1310
  return undefined;
@@ -1294,6 +1453,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1294
1453
  this.cdr.detectChanges();
1295
1454
  }
1296
1455
  scheduleChromeResolve() {
1456
+ if (this.destroyed)
1457
+ return;
1297
1458
  if (this.chromeResolveTimer) {
1298
1459
  clearTimeout(this.chromeResolveTimer);
1299
1460
  }
@@ -1301,9 +1462,52 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1301
1462
  this.chromeResolveTimer = null;
1302
1463
  this.resolveChrome();
1303
1464
  this.applyChromeVisibility();
1465
+ this.showPreviewedPanelTab();
1304
1466
  this.cdr.markForCheck();
1305
1467
  }, 0);
1306
1468
  }
1469
+ /**
1470
+ * On the placement dialog's preview, show the tab where the previewed panel can be seen.
1471
+ *
1472
+ * The preview is read-only and exists to show that panel, so the tab it opens on — the user's
1473
+ * saved tab for the real form — is the wrong one whenever the panel lives elsewhere. Which tab
1474
+ * holds what is this container's own decision, so it is answered here rather than guessed at
1475
+ * from outside. A More child is its own rail item, so it is shown by its key.
1476
+ */
1477
+ showPreviewedPanelTab() {
1478
+ if (!this.placementPreview?.Registration || this.chrome.Spec.Layout !== 'left-nav')
1479
+ return;
1480
+ const groups = this.chrome.Spec.Groups;
1481
+ const key = this.previewedPanelSectionKey();
1482
+ const group = key ? groups.find((g) => g.Key === key || g.SectionKeys.includes(key)) : undefined;
1483
+ const target = group
1484
+ ? (group.IsMore ? key : group.Key)
1485
+ : (groups.find((g) => g.Key === DETAILS_SECTION_KEY) ?? groups.find((g) => !g.IsMore))?.Key;
1486
+ if (target && target !== this.chrome.ActiveGroupKey)
1487
+ this.OnChromeGroupActivate(target);
1488
+ }
1489
+ /**
1490
+ * The section whose tab shows the previewed panel.
1491
+ *
1492
+ * A panel that stands in for fields draws inside the section holding them. A panel draws as
1493
+ * its own section. A bare strip draws no section, so the one it replaces is where its effect
1494
+ * shows; with nothing replaced it sits above every tab and there is no section to name.
1495
+ */
1496
+ previewedPanelSectionKey() {
1497
+ const reg = this.placementPreview?.Registration;
1498
+ if (!reg)
1499
+ return null;
1500
+ const mark = this.host.nativeElement.querySelector('[data-placement-preview]');
1501
+ const inSection = mark?.parentElement?.closest('mj-collapsible-panel[data-section-key]');
1502
+ if (inSection)
1503
+ return inSection.getAttribute('data-section-key');
1504
+ const bare = (reg.Presentation ?? reg.Metadata.presentation) === 'bare';
1505
+ // A bare strip that replaces blocks is a member of their tab under its own key; one that
1506
+ // replaces nothing sits above every tab and names no section.
1507
+ if (!bare || ReplacedSectionKeys(reg.Metadata).length > 0)
1508
+ return reg.Metadata.contributionKey ?? null;
1509
+ return null;
1510
+ }
1307
1511
  loadChromeRulesIfNeeded() {
1308
1512
  const entityId = this.EffectiveEntityInfo?.ID ?? null;
1309
1513
  if (!entityId || this.chromeRulesForEntityId === entityId)
@@ -1313,6 +1517,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1313
1517
  }
1314
1518
  async loadChromeRules(entityId) {
1315
1519
  const rules = await LoadFormChromeRules(entityId, this.ProviderToUse);
1520
+ // Also false once the container is destroyed (ngOnDestroy clears the id).
1316
1521
  if (this.chromeRulesForEntityId !== entityId)
1317
1522
  return;
1318
1523
  this.chromeRules = rules;
@@ -1323,18 +1528,22 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1323
1528
  if (!entity)
1324
1529
  return;
1325
1530
  this.loadChromeRulesIfNeeded();
1531
+ // Read once for this resolve; every step below uses the same hidden sections and panels.
1532
+ const hidden = this.contributionHiddenSectionKeys();
1533
+ const panels = this.chromePanelSnapshots(hidden);
1326
1534
  const result = ResolveFormChrome({
1327
1535
  Entity: entity,
1328
- Panels: this.chromePanelSnapshots(),
1536
+ Panels: panels,
1329
1537
  RelatedSchemaByEntityId: this.buildRelatedSchemaMap(entity),
1330
1538
  InboundRelationshipCountByEntityId: this.buildInboundRelationshipCounts(),
1331
- HiddenSectionKeys: [...this.contributionHiddenSectionKeys()],
1539
+ HiddenSectionKeys: [...hidden],
1332
1540
  ContributionSectionKeys: this.contributionSectionKeys(),
1333
- ContributionChromeGroupByKey: this.contributionChromeGroupByKey(),
1541
+ ContributionChromeGroupByKey: this.contributionChromeGroupByKey(panels),
1334
1542
  ContributionInclusionByKey: this.contributionInclusionByKey(),
1335
1543
  ContributionSortKeyByKey: this.contributionSortKeyByKey(),
1336
1544
  ChromeRules: this.chromeRules,
1337
1545
  IncludeUnbakedRelated: this.EffectiveShowRelatedEntities,
1546
+ EmptySectionBehavior: this.refreshEmptySectionBehavior(),
1338
1547
  Membership: {
1339
1548
  moreSectionKeys: this.Fc?.getMoreSectionKeys?.() ?? [],
1340
1549
  firstClassSectionKeys: this.Fc?.getFirstClassSectionKeys?.() ?? [],
@@ -1350,6 +1559,162 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1350
1559
  this.expandActiveGroupSections(this.chrome.ActiveGroupKey);
1351
1560
  }
1352
1561
  this.AfterLayoutResolved.emit(new AfterLayoutResolvedEventArgs(result.Spec.Layout));
1562
+ if (this.Fc)
1563
+ this.Fc.ChromeLayout = result.Spec.Layout;
1564
+ this.warnUnmatchedReplaceKeys();
1565
+ this.warnUnmatchedFieldClaims();
1566
+ this.publishCompositionSnapshot(result.Spec, panels);
1567
+ }
1568
+ warnedReplaceKeys = new Set();
1569
+ warnedFieldClaims = new Set();
1570
+ /**
1571
+ * Contributions that may act on this form. Empty when the form suppresses them — a
1572
+ * full custom entity form owns its body, so nothing may mount on it, claim one of its
1573
+ * sections, or hide a related grid it would otherwise show.
1574
+ */
1575
+ formContributionRegistrations() {
1576
+ if (this.Fc?.OwnsEntireFormBody)
1577
+ return [];
1578
+ return CollectFormContributionRegistrations(this.EffectiveEntityInfo, this.ProviderToUse, { Preview: this.placementPreview });
1579
+ }
1580
+ /**
1581
+ * This form's contributions after the one collapse every renderer shares: the winner per key,
1582
+ * and the winners the rail files. The rail, the counts, the chrome groups and the warnings all
1583
+ * read this value, so they agree with the slots about which panel holds a key.
1584
+ */
1585
+ resolvedContributions() {
1586
+ const entityName = this.EffectiveEntityInfo?.Name;
1587
+ return entityName
1588
+ ? ResolveFormContributionWinners(entityName, this.formContributionRegistrations())
1589
+ : NO_RESOLVED_CONTRIBUTIONS;
1590
+ }
1591
+ /**
1592
+ * A section a winner stands in for that this form does not draw hides nothing, and the
1593
+ * contribution mounts beside the section it meant to replace. Section keys are not a
1594
+ * closed set (custom forms invent their own), so this is validated and reported rather
1595
+ * than restricted. A rail tab's key is a tab claim, and matches when the tab has sections.
1596
+ * Wildcard panels are skipped: they act on every form, so most forms lack what they name.
1597
+ */
1598
+ warnUnmatchedReplaceKeys() {
1599
+ const entity = this.EffectiveEntityInfo;
1600
+ if (!entity)
1601
+ return;
1602
+ const present = this.presentSectionKeys();
1603
+ const tabMembers = this.railTabMembership();
1604
+ for (const reg of this.resolvedContributions().Winners) {
1605
+ if (reg.Metadata.entity === '*')
1606
+ continue;
1607
+ const tabKey = reg.Metadata.replacesSectionKey?.trim();
1608
+ for (const key of ReplacedSectionKeys(reg.Metadata)) {
1609
+ if (present.has(key) || this.warnedReplaceKeys.has(key))
1610
+ continue;
1611
+ if (key === tabKey && tabMembers(key).length > 0)
1612
+ continue;
1613
+ this.warnedReplaceKeys.add(key);
1614
+ const id = ResolveContributionKey(reg.Metadata) || reg.RowID || 'unknown';
1615
+ console.warn(`[mj-record-form-container] contribution ${id} replaces section "${key}", but the ` +
1616
+ `${entity.Name} form has no section or tab with that key. Nothing was hidden.`);
1617
+ }
1618
+ }
1619
+ }
1620
+ /**
1621
+ * A winner drawn inside a section that no section on this form hosts renders nowhere at all.
1622
+ *
1623
+ * Unlike a section claim, which still mounts beside the section it meant to replace, such a
1624
+ * panel is mounted by the section named by its `inSectionKey` or drawing one of its claimed
1625
+ * fields — so when there is none, the panel is simply absent. That is a worse silence than a
1626
+ * misplaced panel, which is why it is reported separately. Wildcard panels are skipped.
1627
+ */
1628
+ warnUnmatchedFieldClaims() {
1629
+ const entity = this.EffectiveEntityInfo;
1630
+ if (!entity)
1631
+ return;
1632
+ const drawn = new Set();
1633
+ for (const panel of this.allChromePanels()) {
1634
+ for (const field of panel.ClaimableFields)
1635
+ drawn.add(field.Name);
1636
+ }
1637
+ const sections = this.presentSectionKeys();
1638
+ if (drawn.size === 0 && sections.size === 0)
1639
+ return;
1640
+ for (const reg of this.resolvedContributions().Winners) {
1641
+ if (reg.Metadata.entity === '*')
1642
+ continue;
1643
+ const reason = unhostedSectionClaim(reg.Metadata, sections, drawn);
1644
+ if (!reason)
1645
+ continue;
1646
+ const id = ResolveContributionKey(reg.Metadata) || reg.RowID || 'unknown';
1647
+ if (this.warnedFieldClaims.has(id))
1648
+ continue;
1649
+ this.warnedFieldClaims.add(id);
1650
+ console.warn(`[mj-record-form-container] contribution ${id} ${reason.Claim}, but the ${entity.Name} form ` +
1651
+ `${reason.Missing}. The panel has no section to render in.`);
1652
+ }
1653
+ }
1654
+ /** Section keys of every panel on the form: the projected ones and the slot-mounted ones. */
1655
+ presentSectionKeys() {
1656
+ return new Set([
1657
+ ...this.allChromePanels().map((p) => p.SectionKey),
1658
+ ...this.domPanelSnapshots().map((p) => p.SectionKey),
1659
+ ]);
1660
+ }
1661
+ /**
1662
+ * Publish what is actually on this form: through `CompositionChanged`, which the record tab
1663
+ * turns into the agent's compact form context, and into the {@link FormCompositionRegistry},
1664
+ * where the apply flow reads the whole snapshot. Every section is listed; the ones the form
1665
+ * does not show are marked hidden. A snapshot equal to the last one published on the same
1666
+ * form is not published again. The placement dialog's preview is not registered: it is not a
1667
+ * form the user has open.
1668
+ *
1669
+ * @param shown The sections the form shows, as the chrome resolve used them.
1670
+ */
1671
+ publishCompositionSnapshot(spec, shown = this.chromePanelSnapshots()) {
1672
+ const entity = this.EffectiveEntityInfo;
1673
+ const form = this.Fc;
1674
+ if (!entity || !form)
1675
+ return;
1676
+ const shownKeys = new Set(shown.map((p) => p.SectionKey));
1677
+ const panels = this.chromePanelSnapshots(new Set(), true);
1678
+ const hiddenSectionKeys = new Set(panels.map((p) => p.SectionKey).filter((key) => !shownKeys.has(key)));
1679
+ const hiddenContributionKeys = new Set([...this.contributionInclusionByKey()].filter(([, inclusion]) => inclusion === 'None').map(([key]) => key));
1680
+ // With the panels this user hid, marked hidden: the apply flow reads a key's holder from
1681
+ // here, and a hidden panel still holds its key.
1682
+ const registrations = this.Fc?.OwnsEntireFormBody
1683
+ ? []
1684
+ : CollectFormContributionRegistrations(entity, this.ProviderToUse, { IncludeHidden: true, Preview: this.placementPreview });
1685
+ const record = form.record;
1686
+ const snapshot = BuildFormCompositionSnapshot({
1687
+ EntityName: entity.Name,
1688
+ RecordPrimaryKey: record?.IsSaved ? record.PrimaryKey.ToURLSegment() : null,
1689
+ FormChoice: {
1690
+ FullCustomForm: form.OwnsEntireFormBody === true,
1691
+ OverrideID: this.EffectiveCurrentVariantID,
1692
+ Label: this.CurrentVariantLabel,
1693
+ },
1694
+ Layout: spec.Layout,
1695
+ Groups: spec.Groups,
1696
+ Panels: panels,
1697
+ HiddenSectionKeys: hiddenSectionKeys,
1698
+ RelatedEntities: this.Fc?.OwnsEntireFormBody ? [] : (entity.RelatedEntities ?? []),
1699
+ IsaChildEntityIDs: (entity.ChildEntities ?? []).map((c) => c.ID),
1700
+ BakedSectionKeys: this.BakedRelatedSectionKeys,
1701
+ Registrations: registrations,
1702
+ HiddenPanelKeys: HiddenPanelKeys(entity.Name),
1703
+ RelatedRoles: spec.RelatedRoles,
1704
+ HiddenContributionKeys: hiddenContributionKeys,
1705
+ SlotsPresent: this.Fc?.OwnsEntireFormBody ? [] : this.slots.PresentSlots,
1706
+ ChromeRuleCount: this.chromeRules.length,
1707
+ });
1708
+ // The builder emits a fixed key order, so equal snapshots have equal JSON.
1709
+ const json = JSON.stringify(snapshot);
1710
+ const last = this.lastComposition;
1711
+ if (last && last.Form === form && last.Json === json)
1712
+ return;
1713
+ this.lastComposition = { Form: form, Json: json };
1714
+ form.CompositionSnapshot = snapshot;
1715
+ if (!this.placementPreview)
1716
+ this.compositionRegistry.Publish(this, snapshot);
1717
+ form.CompositionChanged.emit(snapshot);
1353
1718
  }
1354
1719
  expandActiveGroupSections(groupKey) {
1355
1720
  if (groupKey === MORE_SECTION_KEY)
@@ -1455,7 +1820,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1455
1820
  panel.Hidden = !this.chrome.IsAccordionSectionVisible(panel.SectionKey);
1456
1821
  }
1457
1822
  }
1458
- this.applyChromeDomVisibility();
1823
+ this.applyChromeDomVisibility(claimed);
1459
1824
  }
1460
1825
  /**
1461
1826
  * Slot-mounted panels are view children of the slot, not ContentChildren
@@ -1463,16 +1828,23 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1463
1828
  * coordinator. Toggle host classes on every `mj-collapsible-panel` in
1464
1829
  * the live DOM so left-nav hide/show still reaches them.
1465
1830
  */
1466
- applyChromeDomVisibility() {
1831
+ applyChromeDomVisibility(claimed) {
1467
1832
  const host = this.host.nativeElement;
1468
1833
  if (!host)
1469
1834
  return;
1470
1835
  const layout = this.chrome.Spec.Layout;
1471
1836
  const detailsKeys = [];
1837
+ const detailsOrder = new Map();
1838
+ // A bare strip that replaces blocks shows only on the tab it belongs to. It is hidden by
1839
+ // its own style because it lives in another component's view, out of this one's CSS.
1840
+ host.querySelectorAll('[data-bare-section-key]').forEach((node) => {
1841
+ const key = node.getAttribute('data-bare-section-key') ?? '';
1842
+ node.style.display = !key || this.isChromeKeyVisible(key, 'default', claimed) ? '' : 'none';
1843
+ });
1472
1844
  host.querySelectorAll('mj-collapsible-panel').forEach((node) => {
1473
1845
  const key = node.getAttribute('data-section-key') ?? '';
1474
1846
  const variant = node.getAttribute('data-variant') ?? 'default';
1475
- const visible = this.isChromeKeyVisible(key, variant);
1847
+ const visible = this.isChromeKeyVisible(key, variant, claimed);
1476
1848
  const inMore = this.chrome.Spec.MoreSectionKeys.includes(key);
1477
1849
  node.classList.toggle('mj-chrome-show', layout === 'left-nav' && visible);
1478
1850
  node.classList.toggle('mj-chrome-hidden', !visible);
@@ -1490,12 +1862,16 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1490
1862
  // excludes it, or it has no renderable content while empty fields are
1491
1863
  // hidden) is display: none — it must not hold a card edge, or the
1492
1864
  // visible card loses that border, radius and edge padding.
1493
- if (isDetails && !node.classList.contains('mj-search-hidden'))
1865
+ if (isDetails && !node.classList.contains('mj-search-hidden')) {
1494
1866
  detailsKeys.push(key);
1867
+ detailsOrder.set(key, this.visualOrderOf(node, key));
1868
+ }
1495
1869
  });
1496
- // The card's top and bottom edges follow the VISUAL order (CSS `order`
1497
- // = the form's section display order), not DOM order.
1498
- const edges = DetailsCardEdges(detailsKeys, (k) => this.FormComponent?.getSectionDisplayOrder(k) ?? 0);
1870
+ // The card's top and bottom edges follow the VISUAL order — the CSS `order` each
1871
+ // panel actually carries, not what the form's section list would have given it. A
1872
+ // contribution is in no such list, so asking the form would place every one of them
1873
+ // last and draw the card's top edge under the panel instead of above it.
1874
+ const edges = DetailsCardEdges(detailsKeys, (k) => detailsOrder.get(k) ?? 0);
1499
1875
  host.querySelectorAll('mj-collapsible-panel.mj-chrome-details').forEach((node) => {
1500
1876
  const key = node.getAttribute('data-section-key') ?? '';
1501
1877
  node.classList.toggle('mj-chrome-details-first', key === edges.First);
@@ -1505,8 +1881,24 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1505
1881
  node.classList.remove('mj-chrome-details-first', 'mj-chrome-details-last');
1506
1882
  });
1507
1883
  }
1508
- isChromeKeyVisible(sectionKey, variant) {
1509
- if (this.contributionHiddenSectionKeys().has(sectionKey))
1884
+ /**
1885
+ * The CSS `order` a panel is laid out with.
1886
+ *
1887
+ * Read from the element, because a panel sets its own: a slot-mounted contribution
1888
+ * orders itself by its slot band, and only the panel knows which. The form's section
1889
+ * list is the fallback for anything that has not bound an order yet.
1890
+ */
1891
+ visualOrderOf(node, sectionKey) {
1892
+ const inline = node.style?.order;
1893
+ const parsed = inline ? Number(inline) : Number.NaN;
1894
+ if (Number.isFinite(parsed))
1895
+ return parsed;
1896
+ return this.FormComponent?.getSectionDisplayOrder(sectionKey) ?? 0;
1897
+ }
1898
+ isChromeKeyVisible(sectionKey, variant, claimed) {
1899
+ if (claimed.has(sectionKey))
1900
+ return false;
1901
+ if (this.emptySectionBehavior.get(sectionKey) === 'hide')
1510
1902
  return false;
1511
1903
  if (this.chrome.Spec.Layout === 'accordion') {
1512
1904
  return this.chrome.IsAccordionSectionVisible(sectionKey);
@@ -1516,80 +1908,160 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1516
1908
  }
1517
1909
  return this.chrome.IsFirstClassSectionVisible(sectionKey);
1518
1910
  }
1911
+ /** The section keys the rail files contributions by. */
1519
1912
  contributionSectionKeys() {
1520
- return this.contributionRegistrations().map((row) => row.Key);
1913
+ return [...this.resolvedContributions().RailItems.keys()];
1914
+ }
1915
+ /**
1916
+ * The sections a contribution has claimed a whole rail tab from, across every such claim.
1917
+ *
1918
+ * A rail tab is assembled at render time, so it has no panel a contribution could name
1919
+ * one-to-one. A contribution naming a TAB's key instead means "stand in for that tab",
1920
+ * and this expands it to the sections that tab is made of. Its own panel is left alone,
1921
+ * and so is every other tab on the form.
1922
+ *
1923
+ * No tab is privileged: Details is one key among the rail's, and a contribution may name
1924
+ * any of them.
1925
+ */
1926
+ railTabSectionKeys() {
1927
+ const claimed = this.claimedRailTabKeys();
1928
+ if (claimed.length === 0)
1929
+ return [];
1930
+ const membersOf = this.railTabMembership();
1931
+ const keys = new Set();
1932
+ for (const tab of claimed) {
1933
+ for (const key of membersOf(tab))
1934
+ keys.add(key);
1935
+ }
1936
+ return [...keys];
1937
+ }
1938
+ /**
1939
+ * The sections a rail tab is made of, other than contributions' own, for any tab key. Read
1940
+ * from the live panels rather than the resolved chrome spec, because the spec is computed
1941
+ * FROM the sections a tab claim hides — asking it here would be circular.
1942
+ */
1943
+ railTabMembership() {
1944
+ const mine = this.contributionSectionKeys();
1945
+ const panels = this.allChromePanels()
1946
+ .filter((panel) => !!panel.SectionKey)
1947
+ .map((panel) => ({
1948
+ SectionKey: panel.SectionKey,
1949
+ SectionName: panel.SectionName,
1950
+ Variant: panel.Variant,
1951
+ }));
1952
+ return (tab) => RailGroupSectionKeys(panels, mine, tab).filter((key) => !mine.includes(key));
1521
1953
  }
1522
- contributionChromeGroupByKey() {
1954
+ /**
1955
+ * Rail tab keys named by a winning contribution's `replacesSectionKey`.
1956
+ *
1957
+ * A key that matches a panel on the form is that panel, not a tab, and is handled by the
1958
+ * ordinary single-section claim. Only a key matching no panel can be a tab's. A wildcard
1959
+ * panel's claim is ignored, as the composer ignores it.
1960
+ */
1961
+ claimedRailTabKeys() {
1962
+ const panelKeys = new Set(this.allChromePanels().map((panel) => panel.SectionKey));
1963
+ const out = [];
1964
+ for (const reg of this.resolvedContributions().Winners) {
1965
+ if (IsWildcardPlaceClaim(reg.Metadata))
1966
+ continue;
1967
+ const key = reg.Metadata.replacesSectionKey?.trim();
1968
+ if (!key)
1969
+ continue;
1970
+ if (key === DETAILS_SECTION_KEY || key === MORE_SECTION_KEY || !panelKeys.has(key))
1971
+ out.push(key);
1972
+ }
1973
+ return out;
1974
+ }
1975
+ /**
1976
+ * Which rail item each contribution belongs to.
1977
+ *
1978
+ * An explicit `chromeGroup` wins. Otherwise a contribution that replaces a section
1979
+ * inherits that section's group, because replacing something means standing where it
1980
+ * stood: a panel put in place of a field section belongs in the Details tab that section
1981
+ * was part of, not in a rail item of its own beside it. Without this the replaced section
1982
+ * disappears and the panel surfaces somewhere else, so the form loses a section and gains
1983
+ * a tab and neither is what was asked for. A panel drawn inside a section belongs to that
1984
+ * section's rail item the same way, and anything else to the item its slot sits in.
1985
+ *
1986
+ * Derived here rather than written to the row, because which rail item a section belongs
1987
+ * to is a property of the rendered form. The same contribution on an accordion form, or
1988
+ * on a form whose layout later changes, would need a different answer.
1989
+ */
1990
+ contributionChromeGroupByKey(panels) {
1523
1991
  const map = new Map();
1524
- for (const row of this.contributionRegistrations()) {
1525
- if (row.ChromeGroup)
1526
- map.set(row.Key, row.ChromeGroup);
1992
+ for (const [key, reg] of this.resolvedContributions().RailItems) {
1993
+ const meta = reg.Metadata;
1994
+ if (meta.chromeGroup === 'details' || meta.chromeGroup === 'more') {
1995
+ map.set(key, meta.chromeGroup);
1996
+ continue;
1997
+ }
1998
+ const hostSection = ContributionDrawsInSection(meta)
1999
+ ? PlacedInSectionKey(meta) || SectionDrawingAnyField(panels, meta.replacesFieldNames ?? [])
2000
+ : undefined;
2001
+ const group = this.groupOfReplacedSection(ReplacedSectionKeys(meta)[0])
2002
+ ?? this.groupOfReplacedSection(hostSection)
2003
+ ?? SlotChromeGroup(meta.slot);
2004
+ if (group)
2005
+ map.set(key, group);
1527
2006
  }
1528
2007
  return map;
1529
2008
  }
2009
+ /**
2010
+ * The rail item a replaced section sat in. Read from the live panels, and from the
2011
+ * slot-mounted ones in the DOM, because a replaced panel is hidden and so is already
2012
+ * out of the resolved chrome spec by the time this is asked.
2013
+ */
2014
+ groupOfReplacedSection(sectionKey) {
2015
+ if (!sectionKey)
2016
+ return null;
2017
+ const panel = this.allChromePanels().find((p) => p.SectionKey === sectionKey)
2018
+ ?? this.domPanelSnapshots().find((p) => p.SectionKey === sectionKey);
2019
+ return ReplacedSectionChromeGroup(sectionKey, panel);
2020
+ }
1530
2021
  contributionInclusionByKey() {
1531
2022
  const map = new Map();
1532
- for (const row of this.contributionRegistrations()) {
1533
- if (row.Inclusion)
1534
- map.set(row.Key, row.Inclusion);
2023
+ for (const [key, reg] of this.resolvedContributions().RailItems) {
2024
+ const inclusion = ReadRegisteredInclusion(reg.Metadata.inclusion);
2025
+ if (inclusion)
2026
+ map.set(key, inclusion);
1535
2027
  }
1536
2028
  return map;
1537
2029
  }
1538
2030
  contributionSortKeyByKey() {
1539
2031
  const map = new Map();
1540
- for (const row of this.contributionRegistrations()) {
1541
- if (row.SortKey != null)
1542
- map.set(row.Key, row.SortKey);
2032
+ for (const [key, reg] of this.resolvedContributions().RailItems) {
2033
+ const sortKey = reg.Metadata.sortKey;
2034
+ if (typeof sortKey === 'number' && Number.isFinite(sortKey))
2035
+ map.set(key, sortKey);
1543
2036
  }
1544
2037
  return map;
1545
2038
  }
1546
- /**
1547
- * Winning registration per contribution key (highest ClassFactory Priority).
1548
- * Headers are not rail sections.
1549
- */
1550
- contributionRegistrations() {
1551
- const entityName = this.EffectiveEntityInfo?.Name;
1552
- if (!entityName)
1553
- return [];
1554
- const byKey = new Map();
1555
- const regs = [...CollectFormPanelRegistrations()].sort((a, b) => (a.Priority ?? 0) - (b.Priority ?? 0));
1556
- for (const reg of regs) {
1557
- const meta = reg.Metadata;
1558
- if (!meta || meta.entity !== entityName)
1559
- continue;
1560
- if (meta.contributionKey === 'header')
1561
- continue;
1562
- const key = contributionRailKey(meta);
1563
- if (!key)
1564
- continue;
1565
- byKey.set(key, {
1566
- Key: key,
1567
- Inclusion: ReadRegisteredInclusion(meta.inclusion),
1568
- SortKey: typeof meta.sortKey === 'number' && Number.isFinite(meta.sortKey) ? meta.sortKey : null,
1569
- ChromeGroup: meta.chromeGroup === 'details' || meta.chromeGroup === 'more' ? meta.chromeGroup : null,
1570
- Priority: reg.Priority ?? 0,
1571
- });
1572
- }
1573
- return [...byKey.values()];
1574
- }
1575
2039
  contributionHiddenSectionKeys() {
1576
2040
  const hidden = this.hiddenChromeSectionKeys();
1577
2041
  const entity = this.EffectiveEntityInfo;
1578
2042
  if (!entity)
1579
2043
  return hidden;
1580
- const claimed = ContributionHiddenSectionKeys(entity.Name, entity.RelatedEntities ?? [], (entity.ChildEntities ?? []).map((child) => child.ID), CollectFormPanelRegistrations());
2044
+ const claimed = ContributionHiddenSectionKeys(entity.Name, entity.RelatedEntities ?? [], (entity.ChildEntities ?? []).map((child) => child.ID), this.formContributionRegistrations());
1581
2045
  for (const key of claimed)
1582
2046
  hidden.add(key);
2047
+ for (const key of this.railTabSectionKeys())
2048
+ hidden.add(key);
1583
2049
  return hidden;
1584
2050
  }
1585
- chromePanelSnapshots() {
1586
- const skip = this.contributionHiddenSectionKeys();
2051
+ /**
2052
+ * The sections on the form, once each, in panel order.
2053
+ *
2054
+ * @param skip Section keys to leave out.
2055
+ * @param keepHidden Keep the sections the form's own config hides too, rather than leaving
2056
+ * them out.
2057
+ */
2058
+ chromePanelSnapshots(skip = this.contributionHiddenSectionKeys(), keepHidden = false) {
1587
2059
  const ctx = this.Fc?.formContext;
1588
2060
  const byKey = new Map();
1589
2061
  const add = (snapshot) => {
1590
2062
  if (!snapshot.SectionKey || skip.has(snapshot.SectionKey))
1591
2063
  return;
1592
- if (IsFormSectionHidden(ctx, snapshot.SectionKey, snapshot.Variant))
2064
+ if (!keepHidden && IsFormSectionHidden(ctx, snapshot.SectionKey, snapshot.Variant))
1593
2065
  return;
1594
2066
  if (!byKey.has(snapshot.SectionKey)) {
1595
2067
  byKey.set(snapshot.SectionKey, snapshot);
@@ -1603,6 +2075,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1603
2075
  SectionName: panel.SectionName,
1604
2076
  Variant: panel.Variant,
1605
2077
  Icon: panel.Icon,
2078
+ Fields: panel.ClaimableFields,
1606
2079
  });
1607
2080
  }
1608
2081
  for (const snapshot of this.domPanelSnapshots()) {
@@ -1629,6 +2102,14 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1629
2102
  Icon: node.getAttribute('data-icon') || undefined,
1630
2103
  });
1631
2104
  });
2105
+ // A bare strip that replaces blocks belongs to their tab. It draws no collapsible panel, so
2106
+ // it marks itself; counted here, it keeps a tab whose every block it replaced.
2107
+ host.querySelectorAll('[data-bare-section-key]').forEach((node) => {
2108
+ const sectionKey = node.getAttribute('data-bare-section-key') ?? '';
2109
+ if (!sectionKey)
2110
+ return;
2111
+ out.push({ SectionKey: sectionKey, SectionName: node.getAttribute('data-bare-title') || sectionKey, Variant: 'default' });
2112
+ });
1632
2113
  return out;
1633
2114
  }
1634
2115
  hiddenChromeSectionKeys() {
@@ -1639,7 +2120,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1639
2120
  EntityName: entity.Name,
1640
2121
  RelatedEntities: entity.RelatedEntities ?? [],
1641
2122
  IsaChildEntityIDs: (entity.ChildEntities ?? []).map((child) => child.ID),
1642
- Registrations: CollectFormPanelRegistrations(),
2123
+ Registrations: this.formContributionRegistrations(),
1643
2124
  BakedSectionKeys: this.BakedRelatedSectionKeys,
1644
2125
  ShowRelatedEntities: this.EffectiveShowRelatedEntities,
1645
2126
  });
@@ -1674,7 +2155,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1674
2155
  }
1675
2156
  /** Delegates to the pure decision in `form-chrome-rail-pref`, supplying this form's registrations. */
1676
2157
  unsavedLeadGroupKey() {
1677
- return UnsavedLeadGroupKey(this.EffectiveEntityInfo?.Name, CollectFormPanelRegistrations(), contributionRailKey);
2158
+ const railItems = this.resolvedContributions().RailItems;
2159
+ const keyByMetadata = new Map([...railItems].map(([key, reg]) => [reg.Metadata, key]));
2160
+ return UnsavedLeadGroupKey(this.EffectiveEntityInfo?.Name, [...railItems.values()], (meta) => keyByMetadata.get(meta) ?? null);
1678
2161
  }
1679
2162
  restoreChromePrefs() {
1680
2163
  if (ShouldPersistChromeActiveGroup(this.EffectiveRecord?.IsSaved)) {
@@ -1700,6 +2183,10 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1700
2183
  this.chromeRailExpanded = this.ChromeRailPinned;
1701
2184
  }
1702
2185
  persistChromePrefs() {
2186
+ // The placement dialog's preview is a second copy of a form the user may have open.
2187
+ // Browsing its rail must not move the real form's saved tab or rail width.
2188
+ if (this.placementPreview)
2189
+ return;
1703
2190
  if (ShouldPersistChromeActiveGroup(this.EffectiveRecord?.IsSaved) && this.chrome.ActiveGroupKey) {
1704
2191
  UserInfoEngine.Instance.SetSettingDebounced(this.chromePrefKey('activeGroup'), this.chrome.ActiveGroupKey);
1705
2192
  }
@@ -1718,6 +2205,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1718
2205
  this.Fc.RecordReady.pipe(takeUntil(this.panelNavReset$)).subscribe(() => {
1719
2206
  this.loadBadgeCounts();
1720
2207
  });
2208
+ this.Fc.SectionRowCountChanged?.pipe(takeUntil(this.panelNavReset$)).subscribe((e) => {
2209
+ this.onSectionRowCountChanged(e);
2210
+ });
1721
2211
  this.Fc.RecordRefreshed.pipe(takeUntil(this.panelNavReset$)).subscribe((e) => {
1722
2212
  this.onFormRecordRefreshed(e.Record);
1723
2213
  });
@@ -1742,6 +2232,43 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1742
2232
  // Cleanup on destroy
1743
2233
  this.destroy$.subscribe(() => clearInterval(checkInterval));
1744
2234
  }
2235
+ /** Forwards field edits to the form component, which runs the entry-time duplicate check for a new record. */
2236
+ wireDuplicateEntryCheck() {
2237
+ this.fieldEdits.Edited$.pipe(takeUntil(this.destroy$)).subscribe(() => this.onFieldEdited());
2238
+ }
2239
+ onFieldEdited() {
2240
+ const form = this.Fc;
2241
+ if (!form)
2242
+ return;
2243
+ form.OnFieldEdited();
2244
+ this.watchDuplicateNotice(form);
2245
+ }
2246
+ /**
2247
+ * Re-renders the possible-duplicate notice whenever the form's check answers. Wired on the first
2248
+ * edit, since only an edit starts a check.
2249
+ */
2250
+ watchDuplicateNotice(form) {
2251
+ if (this.duplicateNoticeWiredFor === form)
2252
+ return;
2253
+ this.duplicateNoticeWiredFor = form;
2254
+ form.DuplicateEntryCheck.Changed$.pipe(takeUntil(this.destroy$)).subscribe(() => this.cdr.markForCheck());
2255
+ }
2256
+ // ---- Possible-duplicate notice ----
2257
+ /**
2258
+ * The existing records to flag as possible duplicates of the new record being entered, or none.
2259
+ * See {@link BaseFormComponent.DuplicateEntryCheck}.
2260
+ */
2261
+ get DuplicateEntryCandidates() {
2262
+ return this.Fc?.ShowDuplicateEntryNotice ? this.Fc.DuplicateEntryCheck.Candidates : [];
2263
+ }
2264
+ /** Opens a flagged record through the form's Navigate event. */
2265
+ OnDuplicateCandidateClick(candidate) {
2266
+ this.Fc?.OpenDuplicateCandidate(candidate);
2267
+ }
2268
+ /** The person dismissed the possible-duplicate notice. */
2269
+ OnDuplicateNoticeDismissed() {
2270
+ this.Fc?.DismissDuplicateNotice();
2271
+ }
1745
2272
  // ---- Badge Count Loading ----
1746
2273
  /**
1747
2274
  * Whether the attachments feature is available for the current record.
@@ -1771,10 +2298,127 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1771
2298
  if (!record?.EntityInfo)
1772
2299
  return;
1773
2300
  this.badgeCountsLoaded = true;
1774
- // Fire queries in parallel — no await needed, they update state async
1775
- this.loadTagCount(record);
1776
- this.loadVersionCount(record);
1777
- this.loadAttachmentCount(record);
2301
+ // Fire and forget — counts land while the form renders; nothing awaits them.
2302
+ void this.loadFormCounts(record);
2303
+ }
2304
+ /**
2305
+ * ONE `RunViews` call for every count the form shows: each related section's
2306
+ * rows (badges + `whenEmpty` chrome) and the tag / attachment / version toolbar
2307
+ * badges. All items are `count_only`, which the database provider runs as a
2308
+ * single `UNION ALL` statement. Skipped entirely for unsaved records.
2309
+ */
2310
+ async loadFormCounts(record) {
2311
+ const plan = this.buildFormCountPlan(record);
2312
+ this.countPlan = plan;
2313
+ this.stickySectionKeys.clear();
2314
+ this.applyBadgeVisibility(plan);
2315
+ const params = FormCountPlanParams(plan);
2316
+ const token = ++this.countRequestToken;
2317
+ if (params.length === 0) {
2318
+ this.countPhase = 'none';
2319
+ this.scheduleChromeResolve();
2320
+ return;
2321
+ }
2322
+ this.countPhase = 'loading';
2323
+ this.scheduleChromeResolve();
2324
+ try {
2325
+ const results = await RunView.FromMetadataProvider(this.ProviderToUse).RunViews(params);
2326
+ if (token !== this.countRequestToken)
2327
+ return;
2328
+ this.applyFormCounts(ApplyFormCountResults(plan, results));
2329
+ this.countPhase = 'loaded';
2330
+ }
2331
+ catch (e) {
2332
+ if (token !== this.countRequestToken)
2333
+ return;
2334
+ // Fail open: every section shows, badges stay at their defaults.
2335
+ LogError(`Form section counts failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
2336
+ this.countPhase = 'failed';
2337
+ }
2338
+ this.scheduleChromeResolve();
2339
+ this.cdr.detectChanges();
2340
+ }
2341
+ buildFormCountPlan(record) {
2342
+ const entity = record.EntityInfo;
2343
+ return BuildFormCountPlan({
2344
+ Record: record,
2345
+ Entity: entity,
2346
+ IsaChildEntityIDs: (entity.ChildEntities ?? []).map((child) => child.ID),
2347
+ HiddenSectionKeys: this.contributionHiddenSectionKeys(),
2348
+ Contributions: this.countContributions(),
2349
+ IncludeAttachments: this.AttachmentsAvailable,
2350
+ });
2351
+ }
2352
+ /**
2353
+ * The contributions the rail files, with their metadata, for counting. Counts, badges and
2354
+ * whenEmpty key off the section the user sees: `sectionKey` when the panel names one, else
2355
+ * its contribution key.
2356
+ */
2357
+ countContributions() {
2358
+ return [...this.resolvedContributions().RailItems].map(([key, reg]) => ({
2359
+ SectionKey: reg.Metadata.sectionKey?.trim() || key,
2360
+ Metadata: reg.Metadata,
2361
+ }));
2362
+ }
2363
+ applyBadgeVisibility(plan) {
2364
+ const form = this.Fc;
2365
+ if (!form?.SetSectionBadgeVisible)
2366
+ return;
2367
+ const suppressed = new Set(plan.SuppressedBadgeKeys);
2368
+ for (const target of plan.Sections)
2369
+ form.SetSectionBadgeVisible(target.SectionKey, !suppressed.has(target.SectionKey));
2370
+ for (const key of suppressed)
2371
+ form.SetSectionBadgeVisible(key, false);
2372
+ }
2373
+ applyFormCounts(counts) {
2374
+ const tags = counts.System.get('tags');
2375
+ if (tags !== undefined)
2376
+ this.TagCount = tags;
2377
+ const attachments = counts.System.get('attachments');
2378
+ if (attachments !== undefined)
2379
+ this.AttachmentCount = attachments;
2380
+ const versions = counts.System.get('versions');
2381
+ if (versions !== undefined)
2382
+ this.VersionCount = versions;
2383
+ // Each call fires SectionRowCountChanged → onSectionRowCountChanged; the
2384
+ // chrome re-resolve is debounced, so this is one pass however many sections.
2385
+ for (const [key, count] of counts.Sections)
2386
+ this.Fc?.SetSectionRowCount?.(key, count);
2387
+ }
2388
+ /**
2389
+ * A section's count changed (prefetch, grid load, manual grid refresh, or a
2390
+ * contribution reporting). Re-resolve chrome when it crosses zero for a section
2391
+ * whose `whenEmpty` is not 'show'.
2392
+ */
2393
+ onSectionRowCountChanged(e) {
2394
+ if (e.RowCount > 0)
2395
+ this.stickySectionKeys.add(e.SectionKey);
2396
+ const target = this.countPlan?.Sections.find((t) => t.SectionKey === e.SectionKey);
2397
+ if (!target || target.WhenEmpty === 'show')
2398
+ return;
2399
+ const crossedZero = e.Previous === undefined || (e.Previous === 0) !== (e.RowCount === 0);
2400
+ if (crossedZero)
2401
+ this.scheduleChromeResolve();
2402
+ }
2403
+ refreshEmptySectionBehavior() {
2404
+ this.emptySectionBehavior = this.computeEmptySectionBehavior();
2405
+ return this.emptySectionBehavior;
2406
+ }
2407
+ /** `whenEmpty` outcome for the current state. Fail open everywhere. */
2408
+ computeEmptySectionBehavior() {
2409
+ const sticky = new Set(this.stickySectionKeys);
2410
+ // Never hide what the user has open in the left-nav rail.
2411
+ const active = this.chrome.ActiveGroupKey;
2412
+ const activeGroup = active ? this.chrome.Spec.Groups.find((g) => g.Key === active && !g.IsMore) : undefined;
2413
+ for (const key of activeGroup?.SectionKeys ?? (active ? [active] : []))
2414
+ sticky.add(key);
2415
+ return ResolveEmptySectionBehavior({
2416
+ Targets: this.countPlan?.Sections ?? [],
2417
+ CountOf: (key) => this.Fc?.PeekSectionRowCount?.(key),
2418
+ Phase: this.countPhase,
2419
+ ShowEmptyFields: this.EffectiveShowEmptyFields,
2420
+ StickyKeys: sticky,
2421
+ });
1778
2422
  }
1779
2423
  /**
1780
2424
  * Queries the count of linked attachments for the current entity + record
@@ -1787,17 +2431,17 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1787
2431
  const rv = RunView.FromMetadataProvider(this.ProviderToUse);
1788
2432
  const result = await rv.RunView({
1789
2433
  EntityName: 'MJ: File Entity Record Links',
1790
- Fields: ['ID'],
1791
- ExtraFilter: `EntityID='${record.EntityInfo.ID}' AND RecordID='${record.PrimaryKey.Values()}'`,
1792
- ResultType: 'simple'
2434
+ ExtraFilter: `EntityID='${EscapeSQLString(record.EntityInfo.ID)}' AND RecordID='${EscapeSQLString(record.PrimaryKey.Values())}'`,
2435
+ ResultType: 'count_only'
1793
2436
  });
1794
- if (result.Success) {
1795
- this.AttachmentCount = result.Results.length;
2437
+ if (result.Success && !this.destroyed) {
2438
+ this.AttachmentCount = result.TotalRowCount ?? 0;
1796
2439
  this.cdr.detectChanges();
1797
2440
  }
1798
2441
  }
1799
- catch {
1800
- // Non-critical — badge just stays at 0
2442
+ catch (e) {
2443
+ // Non-critical — the badge keeps its last value.
2444
+ LogError(`Toolbar badge count failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
1801
2445
  }
1802
2446
  }
1803
2447
  /**
@@ -1807,20 +2451,20 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1807
2451
  async loadTagCount(record) {
1808
2452
  try {
1809
2453
  const rv = RunView.FromMetadataProvider(this.ProviderToUse);
1810
- // Don't narrow Fields — the server caches RunView results by entity+filter (ignoring Fields),
1811
- // so a narrow query here would poison the cache for the subsequent full-field load in the Tags panel.
2454
+ // count_only is never cached, so it cannot poison the Tags panel's full load.
1812
2455
  const result = await rv.RunView({
1813
2456
  EntityName: 'MJ: Tagged Items',
1814
- ExtraFilter: `EntityID='${record.EntityInfo.ID}' AND RecordID='${record.PrimaryKey.Values()}'`,
1815
- ResultType: 'simple'
2457
+ ExtraFilter: `EntityID='${EscapeSQLString(record.EntityInfo.ID)}' AND RecordID='${EscapeSQLString(record.PrimaryKey.Values())}'`,
2458
+ ResultType: 'count_only'
1816
2459
  });
1817
- if (result.Success) {
1818
- this.TagCount = result.Results.length;
2460
+ if (result.Success && !this.destroyed) {
2461
+ this.TagCount = result.TotalRowCount ?? 0;
1819
2462
  this.cdr.detectChanges();
1820
2463
  }
1821
2464
  }
1822
- catch {
1823
- // Non-critical — badge just stays at 0
2465
+ catch (e) {
2466
+ // Non-critical — the badge keeps its last value.
2467
+ LogError(`Toolbar badge count failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
1824
2468
  }
1825
2469
  }
1826
2470
  /**
@@ -1834,17 +2478,17 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1834
2478
  const rv = RunView.FromMetadataProvider(this.ProviderToUse);
1835
2479
  const result = await rv.RunView({
1836
2480
  EntityName: 'MJ: Record Changes',
1837
- Fields: ['ID'],
1838
- ExtraFilter: `EntityID='${record.EntityInfo.ID}' AND RecordID='${record.PrimaryKey.ToConcatenatedString()}'`,
1839
- ResultType: 'simple'
2481
+ ExtraFilter: `EntityID='${EscapeSQLString(record.EntityInfo.ID)}' AND RecordID='${EscapeSQLString(record.PrimaryKey.ToConcatenatedString())}'`,
2482
+ ResultType: 'count_only'
1840
2483
  });
1841
- if (result.Success) {
1842
- this.VersionCount = result.Results.length;
2484
+ if (result.Success && !this.destroyed) {
2485
+ this.VersionCount = result.TotalRowCount ?? 0;
1843
2486
  this.cdr.detectChanges();
1844
2487
  }
1845
2488
  }
1846
- catch {
1847
- // Non-critical — badge just stays at 0
2489
+ catch (e) {
2490
+ // Non-critical — the badge keeps its last value.
2491
+ LogError(`Toolbar badge count failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
1848
2492
  }
1849
2493
  }
1850
2494
  // ---- Toolbar Event Handlers ----
@@ -2266,6 +2910,153 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2266
2910
  this.ShowSectionManager = false;
2267
2911
  this.cdr.markForCheck();
2268
2912
  }
2913
+ // ============================================
2914
+ // PANEL MANAGER
2915
+ // ============================================
2916
+ /** Whether the panel manager drawer is open. */
2917
+ ShowPanelManager = false;
2918
+ /**
2919
+ * Whether this form has anything the panel manager could act on.
2920
+ *
2921
+ * Read from every contribution row on the entity, not from the ones currently
2922
+ * rendering. Turning a panel off is a thing the manager does, so gating the way back in
2923
+ * on a panel being on made the door lock behind the user: the last panel switched off
2924
+ * took the button with it and there was no way to switch it on again.
2925
+ *
2926
+ * Still gated rather than always shown. A form that has never carried a contribution
2927
+ * has nothing to switch or remove, and a button that opens an empty drawer teaches the
2928
+ * user the feature is not for them.
2929
+ */
2930
+ get HasManageablePanels() {
2931
+ return this.panelAdmin.HasRowsForEntity(this.EffectiveEntityInfo);
2932
+ }
2933
+ /**
2934
+ * The drawer's inputs, taken when it opens and after each change it makes.
2935
+ *
2936
+ * Fields, not getters: a getter hands the drawer a new array on every change-detection pass,
2937
+ * which fires its `ngOnChanges` — and its whole rebuild — on every pass while the form is open.
2938
+ */
2939
+ PanelManagerCompiled = [];
2940
+ PanelManagerStockGrids = [];
2941
+ PanelManagerRelated = [];
2942
+ /** The saved record's key, for the placement dialog's preview. Null for a new record. */
2943
+ PanelManagerRecordKey = null;
2944
+ PanelManagerTitles = new Map();
2945
+ refreshPanelManagerInputs() {
2946
+ this.PanelManagerCompiled = this.buildPanelManagerCompiled();
2947
+ this.PanelManagerStockGrids = this.buildPanelManagerStockGrids();
2948
+ this.PanelManagerRelated = this.buildPanelManagerRelated();
2949
+ this.PanelManagerTitles = this.buildPanelManagerTitles();
2950
+ const record = this.EffectiveRecord;
2951
+ this.PanelManagerRecordKey = record?.IsSaved ? record.PrimaryKey : null;
2952
+ }
2953
+ /**
2954
+ * Compiled panels on this form, for the drawer to list and let the user hide.
2955
+ *
2956
+ * Read with the user's hides included, so a hidden panel is still listed and can be shown
2957
+ * again. A wildcard panel mounts on every form but draws only where it applies, so it is
2958
+ * listed only where it drew something — or where the user has hidden it, which is the only
2959
+ * way to bring it back.
2960
+ */
2961
+ buildPanelManagerCompiled() {
2962
+ const entity = this.EffectiveEntityInfo;
2963
+ if (!entity)
2964
+ return [];
2965
+ const hidden = new Set(HiddenPanelKeys(entity.Name));
2966
+ const all = CollectFormContributionRegistrations(entity, this.ProviderToUse, { IncludeHidden: true });
2967
+ return all
2968
+ .filter((reg) => reg.Source !== 'metadata')
2969
+ .filter((reg) => {
2970
+ if (reg.Metadata?.entity === entity.Name)
2971
+ return true;
2972
+ if (reg.Metadata?.entity !== '*')
2973
+ return false;
2974
+ const key = PanelHideKey(reg);
2975
+ return !!key && (hidden.has(key) || this.panelDrewHere(key));
2976
+ })
2977
+ .map((reg, index) => {
2978
+ const hideKey = PanelHideKey(reg);
2979
+ return {
2980
+ Key: hideKey ?? `${reg.Metadata.slot}#${index}`,
2981
+ Title: reg.Title || ResolveContributionKey(reg.Metadata) || 'Panel',
2982
+ Slot: reg.Metadata.slot,
2983
+ HideKey: hideKey,
2984
+ };
2985
+ });
2986
+ }
2987
+ /** Whether a mounted panel with this hide key drew anything on this form. */
2988
+ panelDrewHere(hideKey) {
2989
+ const host = this.host.nativeElement;
2990
+ if (!host)
2991
+ return false;
2992
+ const escaped = hideKey.replace(/["\\]/g, '\\$&');
2993
+ const element = host.querySelector(`[data-panel-key="${escaped}"]`);
2994
+ return !!element && element.childElementCount > 0;
2995
+ }
2996
+ /** Grids the container filled in from a relationship, for the same reason. */
2997
+ buildPanelManagerStockGrids() {
2998
+ return this.allChromePanels()
2999
+ .filter((panel) => panel.Variant === 'related-entity' && !!panel.SectionKey)
3000
+ .map((panel) => ({
3001
+ SectionKey: panel.SectionKey,
3002
+ DisplayName: HumanizeEntityTitle(panel.SectionName || panel.SectionKey),
3003
+ }));
3004
+ }
3005
+ /**
3006
+ * Related grids on this entity, so re-placing a panel can still offer to take one over.
3007
+ * A probe cannot supply these: it reports the panels a form drew, not the join fields
3008
+ * behind them.
3009
+ */
3010
+ buildPanelManagerRelated() {
3011
+ const entity = this.EffectiveEntityInfo;
3012
+ if (!entity)
3013
+ return [];
3014
+ return (entity.RelatedEntities ?? [])
3015
+ .filter((rel) => rel.DisplayInForm)
3016
+ .map((rel) => ({
3017
+ Entity: rel.RelatedEntity,
3018
+ JoinField: StripJoinFieldBrackets(rel.RelatedEntityJoinField),
3019
+ DisplayName: HumanizeEntityTitle(rel.RelatedEntity),
3020
+ }));
3021
+ }
3022
+ /** Titles by section and rail key, so the manager names a claim instead of printing it. */
3023
+ buildPanelManagerTitles() {
3024
+ const map = new Map();
3025
+ for (const panel of this.allChromePanels()) {
3026
+ if (panel.SectionKey)
3027
+ map.set(panel.SectionKey, HumanizeEntityTitle(panel.SectionName || panel.SectionKey));
3028
+ }
3029
+ for (const group of this.chrome.Spec.Groups) {
3030
+ map.set(group.Key, group.Title);
3031
+ }
3032
+ return map;
3033
+ }
3034
+ /** The drawer switched forms: the same path the toolbar picker takes. */
3035
+ OnPanelManagerFormChosen(variantID) {
3036
+ this.ShowPanelManager = false;
3037
+ this.OnVariantPicked(variantID);
3038
+ this.cdr.markForCheck();
3039
+ }
3040
+ OnManagePanels() {
3041
+ this.refreshPanelManagerInputs();
3042
+ this.ShowPanelManager = true;
3043
+ this.cdr.markForCheck();
3044
+ }
3045
+ OnPanelManagerClosed() {
3046
+ this.ShowPanelManager = false;
3047
+ this.cdr.markForCheck();
3048
+ }
3049
+ /**
3050
+ * A panel was switched, hidden, shown or removed. The registration memo is already dropped
3051
+ * by the admin service. The slot hosts mount the new panel set, then the chrome is resolved
3052
+ * again from it.
3053
+ */
3054
+ OnPanelManagerChanged() {
3055
+ this.slots.NotifyPanelsChanged();
3056
+ this.scheduleChromeResolve();
3057
+ this.refreshPanelManagerInputs();
3058
+ this.cdr.markForCheck();
3059
+ }
2269
3060
  static ɵfac = /*@__PURE__*/ (() => { let ɵMjRecordFormContainerComponent_BaseFactory; return function MjRecordFormContainerComponent_Factory(__ngFactoryType__) { return (ɵMjRecordFormContainerComponent_BaseFactory || (ɵMjRecordFormContainerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MjRecordFormContainerComponent)))(__ngFactoryType__ || MjRecordFormContainerComponent); }; })();
2270
3061
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjRecordFormContainerComponent, selectors: [["mj-record-form-container"]], contentQueries: function MjRecordFormContainerComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
2271
3062
  i0.ɵɵcontentQuery(dirIndex, MjCollapsiblePanelComponent, 5);
@@ -2277,68 +3068,76 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2277
3068
  } if (rf & 2) {
2278
3069
  let _t;
2279
3070
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recordChangesDrawer = _t.first);
2280
- } }, inputs: { Record: "Record", FormComponent: "FormComponent", EntityInfo: "EntityInfo", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", ToolbarConfig: "ToolbarConfig", RegisteredToolbarItems: "RegisteredToolbarItems", ToolbarItemOverrides: "ToolbarItemOverrides", WidthMode: "WidthMode", Variants: "Variants", CurrentVariantID: "CurrentVariantID" }, outputs: { Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", ShowChangesRequested: "ShowChangesRequested", CustomButtonClick: "CustomButtonClick", ToolbarItemClick: "ToolbarItemClick", VariantChange: "VariantChange", BeforeLayoutResolve: "BeforeLayoutResolve", AfterLayoutResolved: "AfterLayoutResolved", BeforeSectionActivate: "BeforeSectionActivate", AfterSectionActivated: "AfterSectionActivated" }, standalone: false, features: [i0.ɵɵProvidersFeature([FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 20, vars: 31, consts: [[3, "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["aria-live", "polite", "aria-atomic", "true", 1, "mj-forms-visually-hidden"], [1, "mj-forms-scroll-area"], [1, "mj-forms-panels-container"], [1, "mj-forms-layout-row"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail", 3, "is-collapsed", "is-resizing", "width"], [1, "mj-forms-all-panels"], [3, "Record", "FormComponent", "FormContext", "BakedSectionKeys", "ShowRelatedEntities"], [1, "mj-forms-more-overflow", 3, "is-expanded"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Message"], [3, "Navigate", "Record", "EditMode", "Collapsed"], [3, "record", "AllowRestore"], [3, "Record", "WidthPx"], [3, "Record", "Visible"], [3, "visible", "config"], [3, "SectionOrderChange", "MembershipChange", "ResetRequested", "Closed", "Sections", "SectionOrder", "MoreSectionKeys", "LockedMoreKeys", "Visible"], [3, "Navigate", "EditModeChange", "BeforeSave", "SaveRequested", "BeforeCancel", "CancelRequested", "BeforeDelete", "DeleteRequested", "BeforeRefresh", "RefreshRequested", "FavoriteToggled", "BeforeHistoryView", "HistoryRequested", "BeforeListManagement", "ListManagementRequested", "ShowChangesRequested", "CustomButtonClick", "ToolbarItemClick", "FilterChange", "ExpandAllRequested", "CollapseAllRequested", "ShowEmptyFieldsChange", "WidthModeChange", "ResetSectionOrderRequested", "ManageSectionsRequested", "TagsPanelToggled", "AttachmentsPanelToggled", "VariantPicked", "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "title"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "click", "title"], [1, "mj-forms-chrome-rail-spine-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", "is-spine", 3, "title"], ["role", "separator", "aria-orientation", "vertical", "title", "Drag to resize sections", 1, "mj-forms-chrome-rail-resizer", 3, "pointerdown", "pointermove", "pointerup", "pointercancel"], [1, "mj-forms-chrome-rail-toolbar"], ["type", "button", 1, "mj-forms-chrome-rail-pin", 3, "click", "title"], [1, "fa-solid", "fa-thumbtack"], ["type", "button", "title", "Hide sections", "aria-label", "Hide form sections", 1, "mj-forms-chrome-rail-collapse", 3, "click"], [1, "fa-solid", "fa-angles-left"], [1, "mj-forms-chrome-rail-items"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "note", 1, "mj-forms-chrome-rail-unrouted", 3, "title"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle"], [1, "mj-forms-chrome-rail-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-error", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", 3, "title"], [1, "mj-forms-chrome-rail-count"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle", 3, "dragstart", "dragend", "click"], [1, "fa-solid", "fa-grip-vertical"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-folder", 3, "click", "keydown.enter", "keydown.space"], ["aria-hidden", "true", 1, "mj-forms-chrome-rail-handle", "is-spacer"], ["aria-hidden", "true", 1, "fa-solid", "mj-forms-chrome-rail-more-toggle"], [1, "mj-forms-chrome-rail-more-tree"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], [1, "mj-forms-chrome-rail-label"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-unrouted"], [1, "mj-forms-more-overflow"], ["type", "button", 1, "mj-forms-more-overflow-toggle", 3, "click"], [1, "mj-forms-more-overflow-label"], [1, "mj-forms-more-overflow-preview"], [1, "fa-solid"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Action", "Message"], [3, "RestoreRequested", "dialogClosed", "record", "AllowRestore"], [3, "PanelClosed", "TagCountChanged", "RecordNavigate", "WidthChanged", "Record", "WidthPx"], [3, "PanelClosed", "AttachmentCountChanged", "Record", "Visible"], [3, "complete", "cancel", "visible", "config"]], template: function MjRecordFormContainerComponent_Template(rf, ctx) { if (rf & 1) {
3071
+ } }, inputs: { Record: "Record", FormComponent: "FormComponent", EntityInfo: "EntityInfo", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", ToolbarConfig: "ToolbarConfig", RegisteredToolbarItems: "RegisteredToolbarItems", ToolbarItemOverrides: "ToolbarItemOverrides", WidthMode: "WidthMode", Variants: "Variants", CurrentVariantID: "CurrentVariantID" }, outputs: { Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", ShowChangesRequested: "ShowChangesRequested", CustomButtonClick: "CustomButtonClick", ToolbarItemClick: "ToolbarItemClick", VariantChange: "VariantChange", BeforeLayoutResolve: "BeforeLayoutResolve", AfterLayoutResolved: "AfterLayoutResolved", BeforeSectionActivate: "BeforeSectionActivate", AfterSectionActivated: "AfterSectionActivated" }, standalone: false, features: [i0.ɵɵProvidersFeature([FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 22, vars: 43, consts: [[3, "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["aria-live", "polite", "aria-atomic", "true", 1, "mj-forms-visually-hidden"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice"], [1, "mj-forms-scroll-area"], [1, "mj-forms-panels-container"], [1, "mj-forms-layout-row"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail", 3, "is-collapsed", "is-resizing", "width"], [1, "mj-forms-all-panels"], [3, "Record", "FormComponent", "FormContext", "BakedSectionKeys", "ShowRelatedEntities"], [1, "mj-forms-more-overflow", 3, "is-expanded"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Message"], [3, "Navigate", "Record", "EditMode", "Collapsed"], [3, "record", "AllowRestore"], [3, "Record", "WidthPx"], [3, "Record", "Visible"], [3, "visible", "config"], [3, "SectionOrderChange", "MembershipChange", "ResetRequested", "Closed", "Sections", "SectionOrder", "MoreSectionKeys", "LockedMoreKeys", "Visible"], [3, "Changed", "FormChosen", "Closed", "Visible", "Entity", "Compiled", "StockGrids", "FullCustomForm", "TitleByKey", "Related", "Provider", "Variants", "CurrentFormID", "RecordKey"], [3, "Navigate", "EditModeChange", "BeforeSave", "SaveRequested", "BeforeCancel", "CancelRequested", "BeforeDelete", "DeleteRequested", "BeforeRefresh", "RefreshRequested", "FavoriteToggled", "BeforeHistoryView", "HistoryRequested", "BeforeListManagement", "ListManagementRequested", "ShowChangesRequested", "CustomButtonClick", "ToolbarItemClick", "FilterChange", "ExpandAllRequested", "CollapseAllRequested", "ShowEmptyFieldsChange", "WidthModeChange", "ResetSectionOrderRequested", "ManageSectionsRequested", "TagsPanelToggled", "AttachmentsPanelToggled", "VariantPicked", "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice", 3, "Dismissed"], [1, "mj-forms-duplicate-notice-lead"], ["type", "button", 1, "mj-forms-duplicate-notice-candidate", 3, "click", "title"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "title"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "click", "title"], [1, "mj-forms-chrome-rail-spine-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", "is-spine", 3, "title"], ["role", "separator", "aria-orientation", "vertical", "title", "Drag to resize sections", 1, "mj-forms-chrome-rail-resizer", 3, "pointerdown", "pointermove", "pointerup", "pointercancel"], [1, "mj-forms-chrome-rail-toolbar"], ["type", "button", 1, "mj-forms-chrome-rail-pin", 3, "click", "title"], [1, "fa-solid", "fa-thumbtack"], ["type", "button", "title", "Hide sections", "aria-label", "Hide form sections", 1, "mj-forms-chrome-rail-collapse", 3, "click"], [1, "fa-solid", "fa-angles-left"], [1, "mj-forms-chrome-rail-items"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "note", 1, "mj-forms-chrome-rail-unrouted", 3, "title"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle"], [1, "mj-forms-chrome-rail-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-error", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", 3, "title"], [1, "mj-forms-chrome-rail-count"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle", 3, "dragstart", "dragend", "click"], [1, "fa-solid", "fa-grip-vertical"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-folder", 3, "click", "keydown.enter", "keydown.space"], ["aria-hidden", "true", 1, "mj-forms-chrome-rail-handle", "is-spacer"], ["aria-hidden", "true", 1, "fa-solid", "mj-forms-chrome-rail-more-toggle"], [1, "mj-forms-chrome-rail-more-tree"], ["title", "Rows across the sections in More", 1, "mj-forms-chrome-rail-count"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], [1, "mj-forms-chrome-rail-label"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-unrouted"], [1, "mj-forms-more-overflow"], ["type", "button", 1, "mj-forms-more-overflow-toggle", 3, "click"], [1, "mj-forms-more-overflow-label"], [1, "mj-forms-more-overflow-preview"], [1, "fa-solid"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Action", "Message"], [3, "RestoreRequested", "dialogClosed", "record", "AllowRestore"], [3, "PanelClosed", "TagCountChanged", "RecordNavigate", "WidthChanged", "Record", "WidthPx"], [3, "PanelClosed", "AttachmentCountChanged", "Record", "Visible"], [3, "complete", "cancel", "visible", "config"]], template: function MjRecordFormContainerComponent_Template(rf, ctx) { if (rf & 1) {
2281
3072
  i0.ɵɵprojectionDef(_c0);
2282
3073
  i0.ɵɵprojection(0);
2283
3074
  i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1, 31, "mj-form-toolbar", 0);
2284
3075
  i0.ɵɵelementStart(2, "span", 1);
2285
3076
  i0.ɵɵtext(3);
2286
3077
  i0.ɵɵelementEnd();
2287
- i0.ɵɵelementStart(4, "div", 2)(5, "div", 3)(6, "div", 4);
2288
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_7_Template, 3, 8, "nav", 5);
2289
- i0.ɵɵelementStart(8, "div", 6);
2290
- i0.ɵɵprojection(9, 1);
2291
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Template, 1, 5, "mj-form-contributions", 7);
2292
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_11_Template, 7, 10, "div", 8);
2293
- i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template, 1, 3, "mj-form-panel-slot", 9);
2294
- i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 1, "mj-empty-state", 10);
3078
+ i0.ɵɵconditionalCreate(4, MjRecordFormContainerComponent_Conditional_4_Template, 5, 0, "mj-alert", 2);
3079
+ i0.ɵɵelementStart(5, "div", 3)(6, "div", 4)(7, "div", 5);
3080
+ i0.ɵɵconditionalCreate(8, MjRecordFormContainerComponent_Conditional_8_Template, 3, 8, "nav", 6);
3081
+ i0.ɵɵelementStart(9, "div", 7);
3082
+ i0.ɵɵprojection(10, 1);
3083
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_11_Template, 1, 5, "mj-form-contributions", 8);
3084
+ i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template, 8, 11, "div", 9);
3085
+ i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 3, "mj-form-panel-slot", 10);
3086
+ i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_14_Template, 1, 1, "mj-empty-state", 11);
2295
3087
  i0.ɵɵelementEnd();
2296
- i0.ɵɵelementStart(14, "mj-isa-related-panel", 11);
2297
- i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_14_listener($event) { return ctx.OnNavigate($event); });
3088
+ i0.ɵɵelementStart(15, "mj-isa-related-panel", 12);
3089
+ i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_15_listener($event) { return ctx.OnNavigate($event); });
2298
3090
  i0.ɵɵelementEnd()()()();
2299
- i0.ɵɵconditionalCreate(15, MjRecordFormContainerComponent_Conditional_15_Template, 1, 2, "mj-record-changes", 12);
2300
- i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 2, "mj-record-tags", 13);
2301
- i0.ɵɵconditionalCreate(17, MjRecordFormContainerComponent_Conditional_17_Template, 1, 2, "mj-record-attachments", 14);
2302
- i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 8, "mj-list-management-dialog", 15);
2303
- i0.ɵɵelementStart(19, "mj-section-manager", 16);
2304
- i0.ɵɵlistener("SectionOrderChange", function MjRecordFormContainerComponent_Template_mj_section_manager_SectionOrderChange_19_listener($event) { return ctx.OnSectionOrderChange($event); })("MembershipChange", function MjRecordFormContainerComponent_Template_mj_section_manager_MembershipChange_19_listener($event) { return ctx.OnChromeMembershipChange($event); })("ResetRequested", function MjRecordFormContainerComponent_Template_mj_section_manager_ResetRequested_19_listener() { return ctx.OnSectionManagerReset(); })("Closed", function MjRecordFormContainerComponent_Template_mj_section_manager_Closed_19_listener() { return ctx.OnSectionManagerClosed(); });
3091
+ i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 2, "mj-record-changes", 13);
3092
+ i0.ɵɵconditionalCreate(17, MjRecordFormContainerComponent_Conditional_17_Template, 1, 2, "mj-record-tags", 14);
3093
+ i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 2, "mj-record-attachments", 15);
3094
+ i0.ɵɵconditionalCreate(19, MjRecordFormContainerComponent_Conditional_19_Template, 1, 8, "mj-list-management-dialog", 16);
3095
+ i0.ɵɵelementStart(20, "mj-section-manager", 17);
3096
+ i0.ɵɵlistener("SectionOrderChange", function MjRecordFormContainerComponent_Template_mj_section_manager_SectionOrderChange_20_listener($event) { return ctx.OnSectionOrderChange($event); })("MembershipChange", function MjRecordFormContainerComponent_Template_mj_section_manager_MembershipChange_20_listener($event) { return ctx.OnChromeMembershipChange($event); })("ResetRequested", function MjRecordFormContainerComponent_Template_mj_section_manager_ResetRequested_20_listener() { return ctx.OnSectionManagerReset(); })("Closed", function MjRecordFormContainerComponent_Template_mj_section_manager_Closed_20_listener() { return ctx.OnSectionManagerClosed(); });
3097
+ i0.ɵɵelementEnd();
3098
+ i0.ɵɵelementStart(21, "mj-panel-manager", 18);
3099
+ i0.ɵɵlistener("Changed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Changed_21_listener() { return ctx.OnPanelManagerChanged(); })("FormChosen", function MjRecordFormContainerComponent_Template_mj_panel_manager_FormChosen_21_listener($event) { return ctx.OnPanelManagerFormChosen($event); })("Closed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Closed_21_listener() { return ctx.OnPanelManagerClosed(); });
2305
3100
  i0.ɵɵelementEnd();
2306
3101
  } if (rf & 2) {
2307
3102
  i0.ɵɵadvance();
2308
3103
  i0.ɵɵconditional(ctx.EffectiveShowToolbar ? 1 : -1);
2309
3104
  i0.ɵɵadvance(2);
2310
3105
  i0.ɵɵtextInterpolate(ctx.FormIndicatorsAnnouncement);
3106
+ i0.ɵɵadvance();
3107
+ i0.ɵɵconditional(ctx.DuplicateEntryCandidates.length > 0 ? 4 : -1);
2311
3108
  i0.ɵɵadvance(2);
2312
3109
  i0.ɵɵclassProp("mj-forms-panels--full-width", ctx.EffectiveWidthMode === "full-width")("mj-forms-panels--edit-mode", ctx.EffectiveEditMode)("mj-forms-panels--has-isa-panel", ctx.HasIsaRelatedItems);
2313
3110
  i0.ɵɵadvance();
2314
3111
  i0.ɵɵclassProp("mj-forms-layout--left-nav", ctx.ChromeLayout === "left-nav")("mj-forms-layout--accordion", ctx.ChromeLayout === "accordion")("mj-forms-layout--more", ctx.IsChromeMoreActive);
2315
3112
  i0.ɵɵadvance();
2316
- i0.ɵɵconditional(ctx.ShowChromeRail ? 7 : -1);
3113
+ i0.ɵɵconditional(ctx.ShowChromeRail ? 8 : -1);
2317
3114
  i0.ɵɵadvance(3);
2318
- i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 10 : -1);
3115
+ i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 11 : -1);
2319
3116
  i0.ɵɵadvance();
2320
- i0.ɵɵconditional(ctx.ShowMoreToggle ? 11 : -1);
3117
+ i0.ɵɵconditional(ctx.ShowMoreToggle ? 12 : -1);
2321
3118
  i0.ɵɵadvance();
2322
- i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 12 : -1);
3119
+ i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 13 : -1);
2323
3120
  i0.ɵɵadvance();
2324
- i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 13 : -1);
3121
+ i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 14 : -1);
2325
3122
  i0.ɵɵadvance();
2326
3123
  i0.ɵɵproperty("Record", ctx.EffectiveRecord)("EditMode", ctx.EffectiveEditMode)("Collapsed", ctx.EffectiveWidthMode === "full-width");
2327
3124
  i0.ɵɵadvance();
2328
- i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 15 : -1);
3125
+ i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 16 : -1);
2329
3126
  i0.ɵɵadvance();
2330
- i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 16 : -1);
3127
+ i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 17 : -1);
2331
3128
  i0.ɵɵadvance();
2332
- i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 17 : -1);
3129
+ i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 18 : -1);
2333
3130
  i0.ɵɵadvance();
2334
- i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 18 : -1);
3131
+ i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 19 : -1);
2335
3132
  i0.ɵɵadvance();
2336
3133
  i0.ɵɵproperty("Sections", ctx.SectionManagerItems)("SectionOrder", ctx.SectionManagerOrder)("MoreSectionKeys", ctx.SectionManagerMoreKeys)("LockedMoreKeys", ctx.SectionManagerLockedMoreKeys)("Visible", ctx.ShowSectionManager);
2337
- } }, dependencies: [i1.MJEmptyStateComponent, i2.RecordChangesComponent, i3.ListManagementDialogComponent, i4.RecordTagsComponent, i5.RecordAttachmentsComponent, i6.MjFormToolbarComponent, i7.MjSectionManagerComponent, i8.MjIsaRelatedPanelComponent, i9.FormPanelSlotComponent, i10.FormContributionsComponent], styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 0;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"], encapsulation: 2, changeDetection: 0 });
3134
+ i0.ɵɵadvance();
3135
+ i0.ɵɵproperty("Visible", ctx.ShowPanelManager)("Entity", ctx.EffectiveEntityInfo)("Compiled", ctx.PanelManagerCompiled)("StockGrids", ctx.PanelManagerStockGrids)("FullCustomForm", !!(ctx.fc == null ? null : ctx.fc.OwnsEntireFormBody))("TitleByKey", ctx.PanelManagerTitles)("Related", ctx.PanelManagerRelated)("Provider", ctx.ProviderToUse)("Variants", ctx.EffectiveVariants)("CurrentFormID", ctx.EffectiveCurrentVariantID)("RecordKey", ctx.PanelManagerRecordKey);
3136
+ } }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, i2.RecordChangesComponent, i3.ListManagementDialogComponent, i4.RecordTagsComponent, i5.RecordAttachmentsComponent, i6.MjFormToolbarComponent, i7.MjSectionManagerComponent, i8.MjPanelManagerComponent, i9.MjIsaRelatedPanelComponent, i10.FormPanelSlotComponent, i11.FormContributionsComponent], styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"], encapsulation: 2, changeDetection: 0 });
2338
3137
  }
2339
3138
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjRecordFormContainerComponent, [{
2340
3139
  type: Component,
2341
- args: [{ standalone: false, selector: 'mj-record-form-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator], template: "<!-- ============================================\n BEFORE-TOOLBAR SLOT\n ============================================ -->\n<ng-content select=\"[before-toolbar]\"></ng-content>\n\n<!-- ============================================\n TOOLBAR (bridges FormComponent state \u2192 toolbar inputs)\n Hidden entirely when Config.Toolbar === null (dialog/slide-in surfaces).\n ============================================ -->\n@if (EffectiveShowToolbar) {\n<mj-form-toolbar\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [UserCanEdit]=\"EffectiveUserCanEdit\"\n [UserCanDelete]=\"EffectiveUserCanDelete\"\n [IsFavorite]=\"EffectiveIsFavorite\"\n [FavoriteInitDone]=\"EffectiveFavoriteInitDone\"\n [IsDirty]=\"EffectiveIsDirty\"\n [DirtyFieldNames]=\"EffectiveDirtyFieldNames\"\n [ListCount]=\"ListCount\"\n [TagCount]=\"TagCount\"\n [AttachmentCount]=\"AttachmentCount\"\n [AttachmentsAvailable]=\"AttachmentsAvailable\"\n [IsAttachmentsPanelOpen]=\"ShowAttachmentsPanel\"\n [VersionCount]=\"VersionCount\"\n [EntityInfo]=\"EffectiveEntityInfo\"\n [Config]=\"EffectiveToolbarConfig\"\n [IsSaving]=\"EffectiveIsSaving\"\n [IsRefreshing]=\"EffectiveIsRefreshing\"\n [VisibleSectionCount]=\"VisibleSectionCount\"\n [TotalSectionCount]=\"TotalSectionCount\"\n [ExpandedSectionCount]=\"ExpandedSectionCount\"\n [SearchFilter]=\"EffectiveSearchFilter\"\n [ShowEmptyFields]=\"EffectiveShowEmptyFields\"\n [WidthMode]=\"EffectiveWidthMode\"\n [HasCustomSectionOrder]=\"EffectiveHasCustomSectionOrder\"\n [ChromeLayout]=\"ChromeLayout\"\n [Variants]=\"EffectiveVariants\"\n [CurrentVariantID]=\"EffectiveCurrentVariantID\"\n [RegisteredItems]=\"EffectiveRegisteredToolbarItems\"\n [ItemOverrides]=\"EffectiveToolbarItemOverrides\"\n [FormComponent]=\"fc\"\n (Navigate)=\"OnNavigate($event)\"\n (EditModeChange)=\"OnEditModeChange($event)\"\n (BeforeSave)=\"BeforeSave.emit($event)\"\n (SaveRequested)=\"OnSaveRequested()\"\n (BeforeCancel)=\"BeforeCancel.emit($event)\"\n (CancelRequested)=\"OnCancelRequested()\"\n (BeforeDelete)=\"BeforeDelete.emit($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (BeforeRefresh)=\"BeforeRefresh.emit($event)\"\n (RefreshRequested)=\"OnRefreshRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (BeforeHistoryView)=\"BeforeHistoryView.emit($event)\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (BeforeListManagement)=\"BeforeListManagement.emit($event)\"\n (ListManagementRequested)=\"OnListManagementRequested()\"\n (ShowChangesRequested)=\"OnShowChangesRequested()\"\n (CustomButtonClick)=\"CustomButtonClick.emit($event)\"\n (ToolbarItemClick)=\"ToolbarItemClick.emit($event)\"\n (FilterChange)=\"OnFilterChange($event)\"\n (ExpandAllRequested)=\"OnExpandAll()\"\n (CollapseAllRequested)=\"OnCollapseAll()\"\n (ShowEmptyFieldsChange)=\"OnShowEmptyFieldsChange($event)\"\n (WidthModeChange)=\"OnWidthModeChange($event)\"\n (ResetSectionOrderRequested)=\"OnResetSectionOrder()\"\n (ManageSectionsRequested)=\"OnManageSections()\"\n (TagsPanelToggled)=\"OnTagsPanelToggled()\"\n (AttachmentsPanelToggled)=\"OnAttachmentsPanelToggled()\"\n (VariantPicked)=\"OnVariantPicked($event)\">\n</mj-form-toolbar>\n}\n\n<!-- ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n Variant picker is now embedded in <mj-form-toolbar> as a right-side\n button \u2014 see the [Variants]/[CurrentVariantID] inputs + (VariantPicked)\n output on the toolbar above. Inline strip was removed.\n ============================================ -->\n<!-- Persistent polite live region for the section indicators (see FormIndicatorsAnnouncement) -->\n<span class=\"mj-forms-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ FormIndicatorsAnnouncement }}</span>\n\n<div class=\"mj-forms-scroll-area\">\n <div class=\"mj-forms-panels-container\"\n [class.mj-forms-panels--full-width]=\"EffectiveWidthMode === 'full-width'\"\n [class.mj-forms-panels--edit-mode]=\"EffectiveEditMode\"\n [class.mj-forms-panels--has-isa-panel]=\"HasIsaRelatedItems\">\n <!-- Flex row: optional left-nav + form panels + ISA side panel -->\n <div class=\"mj-forms-layout-row\"\n [class.mj-forms-layout--left-nav]=\"ChromeLayout === 'left-nav'\"\n [class.mj-forms-layout--accordion]=\"ChromeLayout === 'accordion'\"\n [class.mj-forms-layout--more]=\"IsChromeMoreActive\">\n @if (ShowChromeRail) {\n <nav class=\"mj-forms-chrome-rail\"\n [class.is-collapsed]=\"ChromeRailCollapsed\"\n [class.is-resizing]=\"RailResizing\"\n [style.width.px]=\"ChromeRailCollapsed ? null : ChromeRailWidthPx\"\n [attr.aria-expanded]=\"!ChromeRailCollapsed\"\n aria-label=\"Form sections\">\n @if (ChromeRailCollapsed) {\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-spine\"\n (click)=\"OnChromeRailExpand()\"\n [attr.aria-label]=\"'Show form sections \u2014 ' + ChromeActiveTitle\"\n [title]=\"'Show sections \u2014 ' + ChromeActiveTitle\">\n <i [class]=\"ChromeActiveIcon\"></i>\n <span class=\"mj-forms-chrome-rail-spine-label\"\n (mouseenter)=\"OnRailLabelHover($event, ChromeActiveTitle)\">{{ ChromeActiveTitle }}</span>\n <!-- Whole-form section indicators: no rail item is visible while collapsed -->\n @let formIndicators = FormIndicators;\n @if (formIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error is-spine\"\n role=\"img\"\n [title]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\"\n [attr.aria-label]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\">{{ formIndicators.ErrorCount }}</span>\n } @else if (formIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning is-spine\"\n role=\"img\"\n [title]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\"\n [attr.aria-label]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\">{{ formIndicators.WarningCount }}</span>\n }\n @if (formIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty is-spine\"\n role=\"img\"\n [title]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"\n [attr.aria-label]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"></span>\n }\n </button>\n } @else {\n <div class=\"mj-forms-chrome-rail-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-valuenow]=\"ChromeRailWidthPx\"\n [attr.aria-valuemin]=\"RailWidthMin\"\n [attr.aria-valuemax]=\"RailWidthMax\"\n title=\"Drag to resize sections\"\n (pointerdown)=\"OnRailResizeStart($event)\"\n (pointermove)=\"OnRailResizeMove($event)\"\n (pointerup)=\"OnRailResizeEnd()\"\n (pointercancel)=\"OnRailResizeEnd()\"></div>\n <div class=\"mj-forms-chrome-rail-toolbar\">\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-pin\"\n [class.is-pinned]=\"ChromeRailPinned\"\n [attr.aria-pressed]=\"ChromeRailPinned\"\n [title]=\"ChromeRailPinned ? 'Unpin sections \u2014 they hide after you switch' : 'Pin sections open'\"\n (click)=\"OnChromeRailPinToggle()\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-collapse\"\n title=\"Hide sections\"\n aria-label=\"Hide form sections\"\n (click)=\"OnChromeRailCollapse()\">\n <i class=\"fa-solid fa-angles-left\"></i>\n </button>\n </div>\n <!-- Rail items scroll on their own when they outgrow the viewport;\n the pin / collapse toolbar above stays put. -->\n <div class=\"mj-forms-chrome-rail-items\">\n @for (group of ChromeFirstClassGroups; track group.Key) {\n <div class=\"mj-forms-chrome-rail-item\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-active]=\"ChromeActiveGroupKey === group.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === group.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === group.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(group).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(group).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(group.Key)\"\n (dragover)=\"OnRailDragOver($event, group.Key)\"\n (dragleave)=\"OnRailDragLeave($event, group.Key)\"\n (drop)=\"OnRailDrop($event, group.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, group.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"group.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, group.Title)\">{{ group.Title }}</span>\n @let groupIndicators = ChromeGroupIndicators(group);\n @if (groupIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"></span>\n }\n @if (groupIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\"\n [attr.aria-label]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.ErrorCount }}\n </span>\n } @else if (groupIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\"\n [attr.aria-label]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.WarningCount }}\n </span>\n }\n @let rowCount = ChromeGroupRowCount(group);\n @if (rowCount != null && rowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ rowCount }}</span>\n }\n </div>\n }\n @if (ChromeMoreFolder; as more) {\n <div class=\"mj-forms-chrome-rail-item is-more-folder\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-expanded]=\"MoreExpanded\"\n [class.has-errors]=\"ChromeGroupIndicators(more).ErrorCount > 0\"\n (click)=\"OnMoreFolderToggle()\"\n (keydown.enter)=\"OnMoreFolderToggle()\"\n (keydown.space)=\"$event.preventDefault(); OnMoreFolderToggle()\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, more.Title)\">{{ more.Title }}</span>\n @let moreIndicators = ChromeGroupIndicators(more);\n @if (moreIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"></span>\n }\n @if (moreIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\"\n [attr.aria-label]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.ErrorCount }}\n </span>\n } @else if (moreIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\"\n [attr.aria-label]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.WarningCount }}\n </span>\n }\n <i class=\"fa-solid mj-forms-chrome-rail-more-toggle\"\n [class.fa-minus]=\"MoreExpanded\"\n [class.fa-plus]=\"!MoreExpanded\"\n aria-hidden=\"true\"></i>\n </div>\n @if (MoreExpanded) {\n <div class=\"mj-forms-chrome-rail-more-tree\">\n @for (child of ChromeMoreItems; track child.Key) {\n <div class=\"mj-forms-chrome-rail-item is-more-child\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-active]=\"ChromeActiveGroupKey === child.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === child.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === child.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(child).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(child).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(child.Key)\"\n (dragover)=\"OnRailDragOver($event, child.Key)\"\n (dragleave)=\"OnRailDragLeave($event, child.Key)\"\n (drop)=\"OnRailDrop($event, child.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, child.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"child.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, child.Title)\">{{ child.Title }}</span>\n @let childIndicators = ChromeGroupIndicators(child);\n @if (childIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"></span>\n }\n @if (childIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\"\n [attr.aria-label]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.ErrorCount }}\n </span>\n } @else if (childIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\"\n [attr.aria-label]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.WarningCount }}\n </span>\n }\n @let childCount = ChromeGroupRowCount(child);\n @if (childCount != null && childCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ childCount }}</span>\n }\n </div>\n }\n </div>\n }\n }\n @let unroutedErrors = UnroutedValidationErrorCount;\n @if (unroutedErrors > 0) {\n <!-- A failed save's errors that no rail item owns. Without this row they were counted\n only on the collapsed spine, so an EXPANDED rail could look clean over a form\n the server had just refused. -->\n <div class=\"mj-forms-chrome-rail-unrouted\"\n role=\"note\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\"\n [title]=\"RailUnroutedErrorTitle(unroutedErrors)\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>\n <span class=\"mj-forms-chrome-rail-label\">Not in a section</span>\n <span class=\"mj-forms-chrome-rail-error is-unrouted\" role=\"img\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\">{{ unroutedErrors }}</span>\n </div>\n }\n </div>\n }\n </nav>\n }\n <!-- All panels in a single flex container \u2014 CSS order drives sequencing -->\n <div class=\"mj-forms-all-panels\">\n <ng-content></ng-content>\n\n <!--\n Fill-in related grids for DisplayInForm relationships the template\n did not bake and no registered panel claimed. Claimed / extra panels\n still mount via mj-form-panel-slot. See plans/form-contributions.md.\n -->\n @if (Record && FormComponent) {\n <mj-form-contributions\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\"\n [FormContext]=\"FormComponent.formContext\"\n [BakedSectionKeys]=\"BakedRelatedSectionKeys\"\n [ShowRelatedEntities]=\"EffectiveShowRelatedEntities\">\n </mj-form-contributions>\n }\n\n <!--\n Container-provided fallback slot. ALWAYS present \u2014 last in document\n order \u2014 so any panel whose registered slot isn't found in the current\n form falls through here via FormSlotCoordinator's chain. Downstream\n consumers that haven't rerun CodeGen against the slot-emitting\n template still see every panel; they just render at the bottom\n instead of at their preferred position.\n -->\n @if (ShowMoreToggle) {\n <div class=\"mj-forms-more-overflow\" [class.is-expanded]=\"MoreExpanded\">\n <button type=\"button\"\n class=\"mj-forms-more-overflow-toggle\"\n (click)=\"OnMoreToggle()\">\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-more-overflow-label\">{{ MoreExpanded ? 'Hide more' : 'More' }}</span>\n @if (!MoreExpanded && MorePreview) {\n <span class=\"mj-forms-more-overflow-preview\">{{ MorePreview }}</span>\n }\n <i class=\"fa-solid\"\n [class.fa-chevron-down]=\"MoreExpanded\"\n [class.fa-chevron-right]=\"!MoreExpanded\"></i>\n </button>\n </div>\n }\n\n @if (Record && FormComponent) {\n <mj-form-panel-slot\n [Entity]=\"Record.EntityInfo.Name\"\n Slot=\"after-everything\"\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\">\n </mj-form-panel-slot>\n }\n\n <!-- Empty state when no sections match search -->\n @if (EffectiveSearchFilter && SearchHasNoMatches) {\n <mj-empty-state class=\"mj-forms-empty-search-state\"\n Variant=\"no-results\"\n Title=\"No sections found\"\n [Message]=\"'No sections match &quot;' + EffectiveSearchFilter + '&quot;. Try a different search term.'\"\n ActionText=\"Clear search\"\n ActionIcon=\"fa-solid fa-rotate-left\"\n ActionVariant=\"flat\"\n (Action)=\"OnFilterChange('')\" />\n }\n </div>\n\n <!-- IS-A Related Records Side Panel -->\n <mj-isa-related-panel\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [Collapsed]=\"EffectiveWidthMode === 'full-width'\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-isa-related-panel>\n </div>\n </div>\n</div>\n\n<!-- ============================================\n RECORD CHANGES DRAWER (shown when history button clicked)\n ============================================ -->\n@if (ShowRecordChanges && EffectiveRecord) {\n <mj-record-changes\n [record]=\"EffectiveRecord\"\n [AllowRestore]=\"EffectiveUserCanEdit\"\n (RestoreRequested)=\"OnRestoreRequested($event)\"\n (dialogClosed)=\"OnRecordChangesClosed()\">\n </mj-record-changes>\n}\n\n<!-- ============================================\n TAGS PANEL (shown when tags button clicked)\n ============================================ -->\n@if (ShowTagsPanel && EffectiveRecord) {\n <mj-record-tags\n [Record]=\"EffectiveRecord\"\n [WidthPx]=\"TagsPanelWidth\"\n (PanelClosed)=\"OnTagsPanelClosed()\"\n (TagCountChanged)=\"OnTagCountChanged($event)\"\n (RecordNavigate)=\"OnTagsRecordNavigate($event)\"\n (WidthChanged)=\"OnTagsPanelWidthChanged($event)\">\n </mj-record-tags>\n}\n\n<!-- ============================================\n ATTACHMENTS PANEL (shown when attachments button clicked)\n ============================================ -->\n@if (ShowAttachmentsPanel && AttachmentsAvailable && EffectiveRecord) {\n <mj-record-attachments\n [Record]=\"EffectiveRecord\"\n [Visible]=\"true\"\n (PanelClosed)=\"OnAttachmentsPanelClosed()\"\n (AttachmentCountChanged)=\"OnAttachmentCountChanged($event)\">\n </mj-record-attachments>\n}\n\n<!-- ============================================\n LIST MANAGEMENT DIALOG (shown when lists button clicked)\n ============================================ -->\n@if (ShowListManagement && EffectiveRecord) {\n <mj-list-management-dialog\n [visible]=\"ShowListManagement\"\n [config]=\"{\n mode: 'manage',\n entityId: EffectiveRecord.EntityInfo.ID,\n entityName: EffectiveRecord.EntityInfo.Name,\n recordIds: [EffectiveRecord.PrimaryKey.Values()[0]],\n allowCreate: true\n }\"\n (complete)=\"OnListManagementComplete($event)\"\n (cancel)=\"OnListManagementClosed()\">\n </mj-list-management-dialog>\n}\n\n<!-- ============================================\n SECTION MANAGER DRAWER (shown when manage-sections button clicked)\n ============================================ -->\n<mj-section-manager\n [Sections]=\"SectionManagerItems\"\n [SectionOrder]=\"SectionManagerOrder\"\n [MoreSectionKeys]=\"SectionManagerMoreKeys\"\n [LockedMoreKeys]=\"SectionManagerLockedMoreKeys\"\n [Visible]=\"ShowSectionManager\"\n (SectionOrderChange)=\"OnSectionOrderChange($event)\"\n (MembershipChange)=\"OnChromeMembershipChange($event)\"\n (ResetRequested)=\"OnSectionManagerReset()\"\n (Closed)=\"OnSectionManagerClosed()\">\n</mj-section-manager>\n", styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 0;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"] }]
3140
+ args: [{ standalone: false, selector: 'mj-record-form-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator], template: "<!-- ============================================\n BEFORE-TOOLBAR SLOT\n ============================================ -->\n<ng-content select=\"[before-toolbar]\"></ng-content>\n\n<!-- ============================================\n TOOLBAR (bridges FormComponent state \u2192 toolbar inputs)\n Hidden entirely when Config.Toolbar === null (dialog/slide-in surfaces).\n ============================================ -->\n@if (EffectiveShowToolbar) {\n<mj-form-toolbar\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [UserCanEdit]=\"EffectiveUserCanEdit\"\n [UserCanDelete]=\"EffectiveUserCanDelete\"\n [IsFavorite]=\"EffectiveIsFavorite\"\n [FavoriteInitDone]=\"EffectiveFavoriteInitDone\"\n [IsDirty]=\"EffectiveIsDirty\"\n [DirtyFieldNames]=\"EffectiveDirtyFieldNames\"\n [ListCount]=\"ListCount\"\n [TagCount]=\"TagCount\"\n [AttachmentCount]=\"AttachmentCount\"\n [AttachmentsAvailable]=\"AttachmentsAvailable\"\n [IsAttachmentsPanelOpen]=\"ShowAttachmentsPanel\"\n [VersionCount]=\"VersionCount\"\n [EntityInfo]=\"EffectiveEntityInfo\"\n [Config]=\"EffectiveToolbarConfig\"\n [IsSaving]=\"EffectiveIsSaving\"\n [IsRefreshing]=\"EffectiveIsRefreshing\"\n [VisibleSectionCount]=\"VisibleSectionCount\"\n [TotalSectionCount]=\"TotalSectionCount\"\n [ExpandedSectionCount]=\"ExpandedSectionCount\"\n [SearchFilter]=\"EffectiveSearchFilter\"\n [ShowEmptyFields]=\"EffectiveShowEmptyFields\"\n [WidthMode]=\"EffectiveWidthMode\"\n [HasCustomSectionOrder]=\"EffectiveHasCustomSectionOrder\"\n [ChromeLayout]=\"ChromeLayout\"\n [Variants]=\"EffectiveVariants\"\n [CurrentVariantID]=\"EffectiveCurrentVariantID\"\n [RegisteredItems]=\"EffectiveRegisteredToolbarItems\"\n [ItemOverrides]=\"EffectiveToolbarItemOverrides\"\n [FormComponent]=\"fc\"\n (Navigate)=\"OnNavigate($event)\"\n (EditModeChange)=\"OnEditModeChange($event)\"\n (BeforeSave)=\"BeforeSave.emit($event)\"\n (SaveRequested)=\"OnSaveRequested()\"\n (BeforeCancel)=\"BeforeCancel.emit($event)\"\n (CancelRequested)=\"OnCancelRequested()\"\n (BeforeDelete)=\"BeforeDelete.emit($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (BeforeRefresh)=\"BeforeRefresh.emit($event)\"\n (RefreshRequested)=\"OnRefreshRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (BeforeHistoryView)=\"BeforeHistoryView.emit($event)\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (BeforeListManagement)=\"BeforeListManagement.emit($event)\"\n (ListManagementRequested)=\"OnListManagementRequested()\"\n (ShowChangesRequested)=\"OnShowChangesRequested()\"\n (CustomButtonClick)=\"CustomButtonClick.emit($event)\"\n (ToolbarItemClick)=\"ToolbarItemClick.emit($event)\"\n (FilterChange)=\"OnFilterChange($event)\"\n (ExpandAllRequested)=\"OnExpandAll()\"\n (CollapseAllRequested)=\"OnCollapseAll()\"\n (ShowEmptyFieldsChange)=\"OnShowEmptyFieldsChange($event)\"\n (WidthModeChange)=\"OnWidthModeChange($event)\"\n (ResetSectionOrderRequested)=\"OnResetSectionOrder()\"\n (ManageSectionsRequested)=\"OnManageSections()\"\n (TagsPanelToggled)=\"OnTagsPanelToggled()\"\n (AttachmentsPanelToggled)=\"OnAttachmentsPanelToggled()\"\n (VariantPicked)=\"OnVariantPicked($event)\">\n</mj-form-toolbar>\n}\n\n<!-- ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n Variant picker is now embedded in <mj-form-toolbar> as a right-side\n button \u2014 see the [Variants]/[CurrentVariantID] inputs + (VariantPicked)\n output on the toolbar above. Inline strip was removed.\n ============================================ -->\n<!-- Persistent polite live region for the section indicators (see FormIndicatorsAnnouncement) -->\n<span class=\"mj-forms-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ FormIndicatorsAnnouncement }}</span>\n\n<!-- ============================================\n POSSIBLE DUPLICATES (entry-time check, new records only)\n Flag only: never blocks a save. A name opens that record through Navigate.\n ============================================ -->\n@if (DuplicateEntryCandidates.length > 0) {\n <mj-alert class=\"mj-forms-duplicate-notice\"\n Variant=\"warning\"\n Size=\"sm\"\n Icon=\"fa-solid fa-clone\"\n Role=\"status\"\n Dismissible\n (Dismissed)=\"OnDuplicateNoticeDismissed()\">\n <span class=\"mj-forms-duplicate-notice-lead\">This may duplicate:</span>\n @for (candidate of DuplicateEntryCandidates; track candidate.RecordID; let last = $last) {\n <button type=\"button\"\n class=\"mj-forms-duplicate-notice-candidate\"\n [title]=\"'Open ' + candidate.DisplayName\"\n (click)=\"OnDuplicateCandidateClick(candidate)\">{{ candidate.DisplayName }}</button>@if (!last) {<span>, </span>}\n }\n </mj-alert>\n}\n\n<div class=\"mj-forms-scroll-area\">\n <div class=\"mj-forms-panels-container\"\n [class.mj-forms-panels--full-width]=\"EffectiveWidthMode === 'full-width'\"\n [class.mj-forms-panels--edit-mode]=\"EffectiveEditMode\"\n [class.mj-forms-panels--has-isa-panel]=\"HasIsaRelatedItems\">\n <!-- Flex row: optional left-nav + form panels + ISA side panel -->\n <div class=\"mj-forms-layout-row\"\n [class.mj-forms-layout--left-nav]=\"ChromeLayout === 'left-nav'\"\n [class.mj-forms-layout--accordion]=\"ChromeLayout === 'accordion'\"\n [class.mj-forms-layout--more]=\"IsChromeMoreActive\">\n @if (ShowChromeRail) {\n <nav class=\"mj-forms-chrome-rail\"\n [class.is-collapsed]=\"ChromeRailCollapsed\"\n [class.is-resizing]=\"RailResizing\"\n [style.width.px]=\"ChromeRailCollapsed ? null : ChromeRailWidthPx\"\n [attr.aria-expanded]=\"!ChromeRailCollapsed\"\n aria-label=\"Form sections\">\n @if (ChromeRailCollapsed) {\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-spine\"\n (click)=\"OnChromeRailExpand()\"\n [attr.aria-label]=\"'Show form sections \u2014 ' + ChromeActiveTitle\"\n [title]=\"'Show sections \u2014 ' + ChromeActiveTitle\">\n <i [class]=\"ChromeActiveIcon\"></i>\n <span class=\"mj-forms-chrome-rail-spine-label\"\n (mouseenter)=\"OnRailLabelHover($event, ChromeActiveTitle)\">{{ ChromeActiveTitle }}</span>\n <!-- Whole-form section indicators: no rail item is visible while collapsed -->\n @let formIndicators = FormIndicators;\n @if (formIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error is-spine\"\n role=\"img\"\n [title]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\"\n [attr.aria-label]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\">{{ formIndicators.ErrorCount }}</span>\n } @else if (formIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning is-spine\"\n role=\"img\"\n [title]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\"\n [attr.aria-label]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\">{{ formIndicators.WarningCount }}</span>\n }\n @if (formIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty is-spine\"\n role=\"img\"\n [title]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"\n [attr.aria-label]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"></span>\n }\n </button>\n } @else {\n <div class=\"mj-forms-chrome-rail-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-valuenow]=\"ChromeRailWidthPx\"\n [attr.aria-valuemin]=\"RailWidthMin\"\n [attr.aria-valuemax]=\"RailWidthMax\"\n title=\"Drag to resize sections\"\n (pointerdown)=\"OnRailResizeStart($event)\"\n (pointermove)=\"OnRailResizeMove($event)\"\n (pointerup)=\"OnRailResizeEnd()\"\n (pointercancel)=\"OnRailResizeEnd()\"></div>\n <div class=\"mj-forms-chrome-rail-toolbar\">\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-pin\"\n [class.is-pinned]=\"ChromeRailPinned\"\n [attr.aria-pressed]=\"ChromeRailPinned\"\n [title]=\"ChromeRailPinned ? 'Unpin sections \u2014 they hide after you switch' : 'Pin sections open'\"\n (click)=\"OnChromeRailPinToggle()\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-collapse\"\n title=\"Hide sections\"\n aria-label=\"Hide form sections\"\n (click)=\"OnChromeRailCollapse()\">\n <i class=\"fa-solid fa-angles-left\"></i>\n </button>\n </div>\n <!-- Rail items scroll on their own when they outgrow the viewport;\n the pin / collapse toolbar above stays put. -->\n <div class=\"mj-forms-chrome-rail-items\">\n @for (group of ChromeFirstClassGroups; track group.Key) {\n <div class=\"mj-forms-chrome-rail-item\"\n role=\"button\"\n tabindex=\"0\"\n [attr.data-rail-key]=\"group.Key\"\n [class.is-active]=\"ChromeActiveGroupKey === group.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === group.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === group.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(group).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(group).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(group.Key)\"\n (dragover)=\"OnRailDragOver($event, group.Key)\"\n (dragleave)=\"OnRailDragLeave($event, group.Key)\"\n (drop)=\"OnRailDrop($event, group.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, group.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"group.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, group.Title)\">{{ group.Title }}</span>\n @let groupIndicators = ChromeGroupIndicators(group);\n @if (groupIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"></span>\n }\n @if (groupIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\"\n [attr.aria-label]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.ErrorCount }}\n </span>\n } @else if (groupIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\"\n [attr.aria-label]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.WarningCount }}\n </span>\n }\n @let rowCount = ChromeGroupRowCount(group);\n @if (rowCount != null && rowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ rowCount }}</span>\n }\n </div>\n }\n @if (ChromeMoreFolder; as more) {\n <div class=\"mj-forms-chrome-rail-item is-more-folder\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-expanded]=\"MoreExpanded\"\n [class.has-errors]=\"ChromeGroupIndicators(more).ErrorCount > 0\"\n (click)=\"OnMoreFolderToggle()\"\n (keydown.enter)=\"OnMoreFolderToggle()\"\n (keydown.space)=\"$event.preventDefault(); OnMoreFolderToggle()\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, more.Title)\">{{ more.Title }}</span>\n @let moreIndicators = ChromeGroupIndicators(more);\n @if (moreIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"></span>\n }\n @if (moreIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\"\n [attr.aria-label]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.ErrorCount }}\n </span>\n } @else if (moreIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\"\n [attr.aria-label]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.WarningCount }}\n </span>\n }\n @if (!MoreExpanded) {\n @let moreRowCount = ChromeMoreRowCount;\n @if (moreRowCount != null && moreRowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ moreRowCount }}</span>\n }\n }\n <i class=\"fa-solid mj-forms-chrome-rail-more-toggle\"\n [class.fa-minus]=\"MoreExpanded\"\n [class.fa-plus]=\"!MoreExpanded\"\n aria-hidden=\"true\"></i>\n </div>\n @if (MoreExpanded) {\n <div class=\"mj-forms-chrome-rail-more-tree\">\n @for (child of ChromeMoreItems; track child.Key) {\n <div class=\"mj-forms-chrome-rail-item is-more-child\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-active]=\"ChromeActiveGroupKey === child.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === child.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === child.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(child).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(child).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(child.Key)\"\n (dragover)=\"OnRailDragOver($event, child.Key)\"\n (dragleave)=\"OnRailDragLeave($event, child.Key)\"\n (drop)=\"OnRailDrop($event, child.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, child.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"child.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, child.Title)\">{{ child.Title }}</span>\n @let childIndicators = ChromeGroupIndicators(child);\n @if (childIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"></span>\n }\n @if (childIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\"\n [attr.aria-label]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.ErrorCount }}\n </span>\n } @else if (childIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\"\n [attr.aria-label]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.WarningCount }}\n </span>\n }\n @let childCount = ChromeGroupRowCount(child);\n @if (childCount != null && childCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ childCount }}</span>\n }\n </div>\n }\n </div>\n }\n }\n @let unroutedErrors = UnroutedValidationErrorCount;\n @if (unroutedErrors > 0) {\n <!-- A failed save's errors that no rail item owns. Without this row they were counted\n only on the collapsed spine, so an EXPANDED rail could look clean over a form\n the server had just refused. -->\n <div class=\"mj-forms-chrome-rail-unrouted\"\n role=\"note\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\"\n [title]=\"RailUnroutedErrorTitle(unroutedErrors)\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>\n <span class=\"mj-forms-chrome-rail-label\">Not in a section</span>\n <span class=\"mj-forms-chrome-rail-error is-unrouted\" role=\"img\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\">{{ unroutedErrors }}</span>\n </div>\n }\n </div>\n }\n </nav>\n }\n <!-- All panels in a single flex container \u2014 CSS order drives sequencing -->\n <div class=\"mj-forms-all-panels\">\n <ng-content></ng-content>\n\n <!--\n Fill-in related grids for DisplayInForm relationships the template\n did not bake and no registered panel claimed. Claimed / extra panels\n still mount via mj-form-panel-slot. See plans/form-contributions.md.\n -->\n @if (Record && FormComponent) {\n <mj-form-contributions\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\"\n [FormContext]=\"FormComponent.formContext\"\n [BakedSectionKeys]=\"BakedRelatedSectionKeys\"\n [ShowRelatedEntities]=\"EffectiveShowRelatedEntities\">\n </mj-form-contributions>\n }\n\n <!--\n Container-provided fallback slot. ALWAYS present \u2014 last in document\n order \u2014 so any panel whose registered slot isn't found in the current\n form falls through here via FormSlotCoordinator's chain. Downstream\n consumers that haven't rerun CodeGen against the slot-emitting\n template still see every panel; they just render at the bottom\n instead of at their preferred position.\n -->\n @if (ShowMoreToggle) {\n <div class=\"mj-forms-more-overflow\" [class.is-expanded]=\"MoreExpanded\">\n <button type=\"button\"\n class=\"mj-forms-more-overflow-toggle\"\n (click)=\"OnMoreToggle()\">\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-more-overflow-label\">{{ MoreExpanded ? 'Hide more' : 'More' }}</span>\n @if (!MoreExpanded && MorePreview) {\n <span class=\"mj-forms-more-overflow-preview\">{{ MorePreview }}</span>\n }\n @if (!MoreExpanded) {\n @let accordionMoreCount = ChromeMoreRowCount;\n @if (accordionMoreCount != null && accordionMoreCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ accordionMoreCount }}</span>\n }\n }\n <i class=\"fa-solid\"\n [class.fa-chevron-down]=\"MoreExpanded\"\n [class.fa-chevron-right]=\"!MoreExpanded\"></i>\n </button>\n </div>\n }\n\n @if (Record && FormComponent) {\n <mj-form-panel-slot\n [Entity]=\"Record.EntityInfo.Name\"\n Slot=\"after-everything\"\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\">\n </mj-form-panel-slot>\n }\n\n <!-- Empty state when no sections match search -->\n @if (EffectiveSearchFilter && SearchHasNoMatches) {\n <mj-empty-state class=\"mj-forms-empty-search-state\"\n Variant=\"no-results\"\n Title=\"No sections found\"\n [Message]=\"'No sections match &quot;' + EffectiveSearchFilter + '&quot;. Try a different search term.'\"\n ActionText=\"Clear search\"\n ActionIcon=\"fa-solid fa-rotate-left\"\n ActionVariant=\"flat\"\n (Action)=\"OnFilterChange('')\" />\n }\n </div>\n\n <!-- IS-A Related Records Side Panel -->\n <mj-isa-related-panel\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [Collapsed]=\"EffectiveWidthMode === 'full-width'\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-isa-related-panel>\n </div>\n </div>\n</div>\n\n<!-- ============================================\n RECORD CHANGES DRAWER (shown when history button clicked)\n ============================================ -->\n@if (ShowRecordChanges && EffectiveRecord) {\n <mj-record-changes\n [record]=\"EffectiveRecord\"\n [AllowRestore]=\"EffectiveUserCanEdit\"\n (RestoreRequested)=\"OnRestoreRequested($event)\"\n (dialogClosed)=\"OnRecordChangesClosed()\">\n </mj-record-changes>\n}\n\n<!-- ============================================\n TAGS PANEL (shown when tags button clicked)\n ============================================ -->\n@if (ShowTagsPanel && EffectiveRecord) {\n <mj-record-tags\n [Record]=\"EffectiveRecord\"\n [WidthPx]=\"TagsPanelWidth\"\n (PanelClosed)=\"OnTagsPanelClosed()\"\n (TagCountChanged)=\"OnTagCountChanged($event)\"\n (RecordNavigate)=\"OnTagsRecordNavigate($event)\"\n (WidthChanged)=\"OnTagsPanelWidthChanged($event)\">\n </mj-record-tags>\n}\n\n<!-- ============================================\n ATTACHMENTS PANEL (shown when attachments button clicked)\n ============================================ -->\n@if (ShowAttachmentsPanel && AttachmentsAvailable && EffectiveRecord) {\n <mj-record-attachments\n [Record]=\"EffectiveRecord\"\n [Visible]=\"true\"\n (PanelClosed)=\"OnAttachmentsPanelClosed()\"\n (AttachmentCountChanged)=\"OnAttachmentCountChanged($event)\">\n </mj-record-attachments>\n}\n\n<!-- ============================================\n LIST MANAGEMENT DIALOG (shown when lists button clicked)\n ============================================ -->\n@if (ShowListManagement && EffectiveRecord) {\n <mj-list-management-dialog\n [visible]=\"ShowListManagement\"\n [config]=\"{\n mode: 'manage',\n entityId: EffectiveRecord.EntityInfo.ID,\n entityName: EffectiveRecord.EntityInfo.Name,\n recordIds: [EffectiveRecord.PrimaryKey.Values()[0]],\n allowCreate: true\n }\"\n (complete)=\"OnListManagementComplete($event)\"\n (cancel)=\"OnListManagementClosed()\">\n </mj-list-management-dialog>\n}\n\n<!-- ============================================\n SECTION MANAGER DRAWER (shown when manage-sections button clicked)\n ============================================ -->\n<mj-section-manager\n [Sections]=\"SectionManagerItems\"\n [SectionOrder]=\"SectionManagerOrder\"\n [MoreSectionKeys]=\"SectionManagerMoreKeys\"\n [LockedMoreKeys]=\"SectionManagerLockedMoreKeys\"\n [Visible]=\"ShowSectionManager\"\n (SectionOrderChange)=\"OnSectionOrderChange($event)\"\n (MembershipChange)=\"OnChromeMembershipChange($event)\"\n (ResetRequested)=\"OnSectionManagerReset()\"\n (Closed)=\"OnSectionManagerClosed()\">\n</mj-section-manager>\n\n<!-- ============================================\n PANEL MANAGER DRAWER \u2014 what is registered on this form, and the switches for it\n ============================================ -->\n<mj-panel-manager\n [Visible]=\"ShowPanelManager\"\n [Entity]=\"EffectiveEntityInfo\"\n [Compiled]=\"PanelManagerCompiled\"\n [StockGrids]=\"PanelManagerStockGrids\"\n [FullCustomForm]=\"!!fc?.OwnsEntireFormBody\"\n [TitleByKey]=\"PanelManagerTitles\"\n [Related]=\"PanelManagerRelated\"\n [Provider]=\"ProviderToUse\"\n [Variants]=\"EffectiveVariants\"\n [CurrentFormID]=\"EffectiveCurrentVariantID\"\n [RecordKey]=\"PanelManagerRecordKey\"\n (Changed)=\"OnPanelManagerChanged()\"\n (FormChosen)=\"OnPanelManagerFormChosen($event)\"\n (Closed)=\"OnPanelManagerClosed()\">\n</mj-panel-manager>\n", styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"] }]
2342
3141
  }], null, { recordChangesDrawer: [{
2343
3142
  type: ViewChild,
2344
3143
  args: [RecordChangesComponent]
@@ -2430,19 +3229,29 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2430
3229
  type: ContentChildren,
2431
3230
  args: [MjCollapsiblePanelComponent, { descendants: true }]
2432
3231
  }] }); })();
2433
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 127 }); })();
2434
- function contributionRailKey(meta) {
2435
- if (meta.contributionKey?.trim()) {
2436
- return meta.contributionKey.trim();
2437
- }
2438
- if (!meta.relatedEntity) {
3232
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 161 }); })();
3233
+ /** The value a form with no entity resolves to. */
3234
+ const NO_RESOLVED_CONTRIBUTIONS = { Winners: [], RailItems: new Map() };
3235
+ /**
3236
+ * Why a winner drawn inside a section has no section to draw in, or null when one hosts it: a
3237
+ * section with its `inSectionKey`, or one drawing a field it claims. Fields are only judged once
3238
+ * the form has drawn some.
3239
+ */
3240
+ function unhostedSectionClaim(meta, sections, drawn) {
3241
+ if (!ContributionDrawsInSection(meta))
2439
3242
  return null;
2440
- }
2441
- const derived = meta.relatedEntity.split(':').pop()?.trim();
2442
- if (!derived) {
3243
+ const placedIn = PlacedInSectionKey(meta);
3244
+ const claimed = (meta.replacesFieldNames ?? []).map((name) => name.trim()).filter((name) => name.length > 0);
3245
+ if (placedIn && sections.has(placedIn))
3246
+ return null;
3247
+ if (claimed.some((name) => drawn.has(name)))
2443
3248
  return null;
3249
+ if (!placedIn) {
3250
+ return drawn.size === 0 ? null : { Claim: `stands in for ${claimed.join(', ')}`, Missing: 'draws none of those fields' };
2444
3251
  }
2445
- return derived.charAt(0).toLowerCase() + derived.slice(1).replace(/\s+/g, '');
3252
+ return claimed.length === 0
3253
+ ? { Claim: `is placed in section "${placedIn}"`, Missing: 'has no section with that key' }
3254
+ : { Claim: `stands in for ${claimed.join(', ')} in section "${placedIn}"`, Missing: 'has neither that section nor any of those fields' };
2446
3255
  }
2447
3256
  function ReadRegisteredInclusion(raw) {
2448
3257
  if (raw === 'Primary' || raw === 'More' || raw === 'None') {