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

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 (105) hide show
  1. package/dist/lib/base-form-component.d.ts +34 -0
  2. package/dist/lib/base-form-component.d.ts.map +1 -1
  3. package/dist/lib/base-form-component.js +68 -1
  4. package/dist/lib/base-form-component.js.map +1 -1
  5. package/dist/lib/base-form-section-info.js +5 -5
  6. package/dist/lib/base-form-section-info.js.map +1 -1
  7. package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
  8. package/dist/lib/chrome/resolve-form-chrome.js +22 -12
  9. package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
  10. package/dist/lib/container/record-form-container.component.d.ts +41 -12
  11. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  12. package/dist/lib/container/record-form-container.component.js +476 -378
  13. package/dist/lib/container/record-form-container.component.js.map +1 -1
  14. package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts +150 -0
  15. package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts.map +1 -0
  16. package/dist/lib/duplicate-entry-check/duplicate-entry-check.js +263 -0
  17. package/dist/lib/duplicate-entry-check/duplicate-entry-check.js.map +1 -0
  18. package/dist/lib/explorer-entity-data-grid.component.d.ts +18 -1
  19. package/dist/lib/explorer-entity-data-grid.component.d.ts.map +1 -1
  20. package/dist/lib/explorer-entity-data-grid.component.js +38 -10
  21. package/dist/lib/explorer-entity-data-grid.component.js.map +1 -1
  22. package/dist/lib/field/form-field.component.d.ts +42 -5
  23. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  24. package/dist/lib/field/form-field.component.js +118 -23
  25. package/dist/lib/field/form-field.component.js.map +1 -1
  26. package/dist/lib/form-field-edit.coordinator.d.ts +25 -0
  27. package/dist/lib/form-field-edit.coordinator.d.ts.map +1 -0
  28. package/dist/lib/form-field-edit.coordinator.js +27 -0
  29. package/dist/lib/form-field-edit.coordinator.js.map +1 -0
  30. package/dist/lib/form-state.service.d.ts +58 -0
  31. package/dist/lib/form-state.service.d.ts.map +1 -1
  32. package/dist/lib/form-state.service.js +156 -40
  33. package/dist/lib/form-state.service.js.map +1 -1
  34. package/dist/lib/host/entity-form-host.component.d.ts +10 -2
  35. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  36. package/dist/lib/host/entity-form-host.component.js +24 -8
  37. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  38. package/dist/lib/interactive-form/interactive-form.component.d.ts +16 -4
  39. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  40. package/dist/lib/interactive-form/interactive-form.component.js +38 -12
  41. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  42. package/dist/lib/isa-related-panel/isa-related-card.component.d.ts +3 -3
  43. package/dist/lib/isa-related-panel/isa-related-card.component.js +6 -6
  44. package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
  45. package/dist/lib/isa-related-panel/isa-related-panel.component.d.ts +3 -3
  46. package/dist/lib/isa-related-panel/isa-related-panel.component.js +8 -8
  47. package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
  48. package/dist/lib/overlays/form-slide-in.component.d.ts +2 -0
  49. package/dist/lib/overlays/form-slide-in.component.d.ts.map +1 -1
  50. package/dist/lib/overlays/form-slide-in.component.js +5 -1
  51. package/dist/lib/overlays/form-slide-in.component.js.map +1 -1
  52. package/dist/lib/panel/collapsible-panel.component.d.ts +9 -9
  53. package/dist/lib/panel/collapsible-panel.component.js +23 -23
  54. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  55. package/dist/lib/panel-slot/base-form-panel.d.ts +2 -0
  56. package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
  57. package/dist/lib/panel-slot/base-form-panel.js +5 -1
  58. package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
  59. package/dist/lib/panel-slot/form-contribution.d.ts +12 -0
  60. package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
  61. package/dist/lib/panel-slot/form-contribution.js +43 -10
  62. package/dist/lib/panel-slot/form-contribution.js.map +1 -1
  63. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +10 -0
  64. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
  65. package/dist/lib/panel-slot/form-slot-coordinator.service.js +25 -5
  66. package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
  67. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
  68. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
  69. package/dist/lib/panel-slot/related-entity-grid-panel.component.js +5 -1
  70. package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
  71. package/dist/lib/section-loader-component.d.ts +5 -1
  72. package/dist/lib/section-loader-component.d.ts.map +1 -1
  73. package/dist/lib/section-loader-component.js +13 -5
  74. package/dist/lib/section-loader-component.js.map +1 -1
  75. package/dist/lib/section-manager/section-manager.component.d.ts +2 -2
  76. package/dist/lib/section-manager/section-manager.component.js +6 -6
  77. package/dist/lib/section-manager/section-manager.component.js.map +1 -1
  78. package/dist/lib/toolbar/form-toolbar.component.d.ts +127 -7
  79. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  80. package/dist/lib/toolbar/form-toolbar.component.js +935 -334
  81. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  82. package/dist/lib/types/form-events.d.ts +6 -0
  83. package/dist/lib/types/form-events.d.ts.map +1 -1
  84. package/dist/lib/types/form-events.js +6 -0
  85. package/dist/lib/types/form-events.js.map +1 -1
  86. package/dist/lib/types/form-toolbar-item.d.ts +20 -1
  87. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  88. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  89. package/dist/lib/types/form-types.d.ts +7 -0
  90. package/dist/lib/types/form-types.d.ts.map +1 -1
  91. package/dist/lib/types/form-types.js +5 -1
  92. package/dist/lib/types/form-types.js.map +1 -1
  93. package/dist/lib/types/toolbar-config.d.ts +16 -0
  94. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  95. package/dist/lib/types/toolbar-config.js +3 -0
  96. package/dist/lib/types/toolbar-config.js.map +1 -1
  97. package/dist/module.d.ts +2 -1
  98. package/dist/module.d.ts.map +1 -1
  99. package/dist/module.js +7 -3
  100. package/dist/module.js.map +1 -1
  101. package/dist/public-api.d.ts +2 -0
  102. package/dist/public-api.d.ts.map +1 -1
  103. package/dist/public-api.js +3 -0
  104. package/dist/public-api.js.map +1 -1
  105. package/package.json +20 -18
@@ -22,6 +22,7 @@ import { CollectFormPanelRegistrations } from '../panel-slot/collect-form-panel-
22
22
  import { ContributionHiddenSectionKeys, ResolveFormContributions } from '../panel-slot/form-contribution';
23
23
  import { IsFormSectionHidden } from '../types/entity-form-config';
24
24
  import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
25
+ import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
25
26
  import { FormSectionIndicatorCoordinator } from '../section-indicators/form-section-indicator-coordinator.service';
26
27
  import { DescribeSectionDirty, DescribeSectionErrors, DescribeSectionWarnings, SumSectionIndicators, TallyValidationErrors, } from '../section-indicators/form-section-indicators';
27
28
  import * as i0 from "@angular/core";
@@ -39,63 +40,100 @@ const _c0 = [[["", "before-toolbar", ""]], "*"];
39
40
  const _c1 = ["[before-toolbar]", "*"];
40
41
  const _c2 = a0 => [a0];
41
42
  const _c3 = (a0, a1, a2) => ({ mode: "manage", entityId: a0, entityName: a1, recordIds: a2, allowCreate: true });
42
- const _forTrack0 = ($index, $item) => $item.Key;
43
+ const _forTrack0 = ($index, $item) => $item.RecordID;
44
+ const _forTrack1 = ($index, $item) => $item.Key;
43
45
  function MjRecordFormContainerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
44
46
  const _r1 = i0.ɵɵgetCurrentView();
45
- i0.ɵɵelementStart(0, "mj-form-toolbar", 17);
47
+ i0.ɵɵelementStart(0, "mj-form-toolbar", 18);
46
48
  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
49
  i0.ɵɵelementEnd();
48
50
  } if (rf & 2) {
49
51
  const ctx_r1 = i0.ɵɵnextContext();
50
52
  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
53
  } }
52
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
53
- i0.ɵɵelementStart(0, "span", 22);
54
+ function MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
55
+ i0.ɵɵelementStart(0, "span");
56
+ i0.ɵɵtext(1, ", ");
57
+ i0.ɵɵelementEnd();
58
+ } }
59
+ function MjRecordFormContainerComponent_Conditional_4_For_4_Template(rf, ctx) { if (rf & 1) {
60
+ const _r4 = i0.ɵɵgetCurrentView();
61
+ i0.ɵɵelementStart(0, "button", 21);
62
+ 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)); });
63
+ i0.ɵɵtext(1);
64
+ i0.ɵɵelementEnd();
65
+ i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Template, 2, 0, "span");
66
+ } if (rf & 2) {
67
+ const candidate_r5 = ctx.$implicit;
68
+ const ɵ$index_14_r6 = ctx.$index;
69
+ const ɵ$count_14_r7 = ctx.$count;
70
+ i0.ɵɵproperty("title", "Open " + candidate_r5.DisplayName);
71
+ i0.ɵɵadvance();
72
+ i0.ɵɵtextInterpolate(candidate_r5.DisplayName);
73
+ i0.ɵɵadvance();
74
+ i0.ɵɵconditional(!(ɵ$index_14_r6 === ɵ$count_14_r7 - 1) ? 2 : -1);
75
+ } }
76
+ function MjRecordFormContainerComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
77
+ const _r3 = i0.ɵɵgetCurrentView();
78
+ i0.ɵɵelementStart(0, "mj-alert", 19);
79
+ 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()); });
80
+ i0.ɵɵelementStart(1, "span", 20);
81
+ i0.ɵɵtext(2, "This may duplicate:");
82
+ i0.ɵɵelementEnd();
83
+ i0.ɵɵrepeaterCreate(3, MjRecordFormContainerComponent_Conditional_4_For_4_Template, 3, 3, null, null, _forTrack0);
84
+ i0.ɵɵelementEnd();
85
+ } if (rf & 2) {
86
+ const ctx_r1 = i0.ɵɵnextContext();
87
+ i0.ɵɵadvance(3);
88
+ i0.ɵɵrepeater(ctx_r1.DuplicateEntryCandidates);
89
+ } }
90
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵelementStart(0, "span", 26);
54
92
  i0.ɵɵtext(1);
55
93
  i0.ɵɵelementEnd();
56
94
  } if (rf & 2) {
57
95
  i0.ɵɵnextContext();
58
- const formIndicators_r4 = i0.ɵɵreadContextLet(4);
96
+ const formIndicators_r9 = i0.ɵɵreadContextLet(4);
59
97
  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"));
98
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(formIndicators_r9.ErrorCount, "this record"));
99
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(formIndicators_r9.ErrorCount, "this record"));
62
100
  i0.ɵɵadvance();
63
- i0.ɵɵtextInterpolate(formIndicators_r4.ErrorCount);
101
+ i0.ɵɵtextInterpolate(formIndicators_r9.ErrorCount);
64
102
  } }
65
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
66
- i0.ɵɵelementStart(0, "span", 23);
103
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
104
+ i0.ɵɵelementStart(0, "span", 27);
67
105
  i0.ɵɵtext(1);
68
106
  i0.ɵɵelementEnd();
69
107
  } if (rf & 2) {
70
108
  i0.ɵɵnextContext();
71
- const formIndicators_r4 = i0.ɵɵreadContextLet(4);
109
+ const formIndicators_r9 = i0.ɵɵreadContextLet(4);
72
110
  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"));
111
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(formIndicators_r9.WarningCount, "this record"));
112
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(formIndicators_r9.WarningCount, "this record"));
75
113
  i0.ɵɵadvance();
76
- i0.ɵɵtextInterpolate(formIndicators_r4.WarningCount);
114
+ i0.ɵɵtextInterpolate(formIndicators_r9.WarningCount);
77
115
  } }
78
- function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
79
- i0.ɵɵelement(0, "span", 24);
116
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
117
+ i0.ɵɵelement(0, "span", 28);
80
118
  } if (rf & 2) {
81
119
  i0.ɵɵnextContext();
82
- const formIndicators_r4 = i0.ɵɵreadContextLet(4);
120
+ const formIndicators_r9 = i0.ɵɵreadContextLet(4);
83
121
  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"));
122
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(formIndicators_r9.DirtyCount, "this record"));
123
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(formIndicators_r9.DirtyCount, "this record"));
86
124
  } }
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()); });
125
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
126
+ const _r8 = i0.ɵɵgetCurrentView();
127
+ i0.ɵɵelementStart(0, "button", 24);
128
+ 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
129
  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)); });
130
+ i0.ɵɵelementStart(2, "span", 25);
131
+ 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
132
  i0.ɵɵtext(3);
95
133
  i0.ɵɵelementEnd();
96
134
  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);
135
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template, 2, 3, "span", 26)(6, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template, 2, 3, "span", 27);
136
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template, 1, 2, "span", 28);
99
137
  i0.ɵɵelementEnd();
100
138
  } if (rf & 2) {
101
139
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -106,314 +144,314 @@ function MjRecordFormContainerComponent_Conditional_7_Conditional_1_Template(rf,
106
144
  i0.ɵɵadvance(2);
107
145
  i0.ɵɵtextInterpolate(ctx_r1.ChromeActiveTitle);
108
146
  i0.ɵɵadvance();
109
- const formIndicators_r5 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
147
+ const formIndicators_r10 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
110
148
  i0.ɵɵadvance();
111
- i0.ɵɵconditional(formIndicators_r5.ErrorCount > 0 ? 5 : formIndicators_r5.WarningCount > 0 ? 6 : -1);
149
+ i0.ɵɵconditional(formIndicators_r10.ErrorCount > 0 ? 5 : formIndicators_r10.WarningCount > 0 ? 6 : -1);
112
150
  i0.ɵɵadvance(2);
113
- i0.ɵɵconditional(formIndicators_r5.DirtyCount > 0 ? 7 : -1);
151
+ i0.ɵɵconditional(formIndicators_r10.DirtyCount > 0 ? 7 : -1);
114
152
  } }
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);
153
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
154
+ const _r14 = i0.ɵɵgetCurrentView();
155
+ i0.ɵɵelementStart(0, "span", 45);
156
+ 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(); });
157
+ i0.ɵɵelement(1, "i", 46);
120
158
  i0.ɵɵelementEnd();
121
159
  } }
122
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
123
- i0.ɵɵelement(0, "span", 37);
160
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
161
+ i0.ɵɵelement(0, "span", 41);
124
162
  } if (rf & 2) {
125
- const group_r8 = i0.ɵɵnextContext().$implicit;
126
- const groupIndicators_r10 = i0.ɵɵreadContextLet(5);
163
+ const group_r13 = i0.ɵɵnextContext().$implicit;
164
+ const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
127
165
  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));
166
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
167
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
130
168
  } }
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);
169
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
170
+ i0.ɵɵelementStart(0, "span", 42);
171
+ i0.ɵɵelement(1, "i", 47);
134
172
  i0.ɵɵtext(2);
135
173
  i0.ɵɵelementEnd();
136
174
  } if (rf & 2) {
137
- const group_r8 = i0.ɵɵnextContext().$implicit;
138
- const groupIndicators_r10 = i0.ɵɵreadContextLet(5);
175
+ const group_r13 = i0.ɵɵnextContext().$implicit;
176
+ const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
139
177
  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));
178
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(groupIndicators_r15.ErrorCount, group_r13.Title));
179
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(groupIndicators_r15.ErrorCount, group_r13.Title));
142
180
  i0.ɵɵadvance(2);
143
- i0.ɵɵtextInterpolate1("", groupIndicators_r10.ErrorCount, " ");
181
+ i0.ɵɵtextInterpolate1("", groupIndicators_r15.ErrorCount, " ");
144
182
  } }
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);
183
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
184
+ i0.ɵɵelementStart(0, "span", 43);
185
+ i0.ɵɵelement(1, "i", 48);
148
186
  i0.ɵɵtext(2);
149
187
  i0.ɵɵelementEnd();
150
188
  } if (rf & 2) {
151
- const group_r8 = i0.ɵɵnextContext().$implicit;
152
- const groupIndicators_r10 = i0.ɵɵreadContextLet(5);
189
+ const group_r13 = i0.ɵɵnextContext().$implicit;
190
+ const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
153
191
  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));
192
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(groupIndicators_r15.WarningCount, group_r13.Title));
193
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(groupIndicators_r15.WarningCount, group_r13.Title));
156
194
  i0.ɵɵadvance(2);
157
- i0.ɵɵtextInterpolate1("", groupIndicators_r10.WarningCount, " ");
195
+ i0.ɵɵtextInterpolate1("", groupIndicators_r15.WarningCount, " ");
158
196
  } }
159
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
160
- i0.ɵɵelementStart(0, "span", 40);
197
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
198
+ i0.ɵɵelementStart(0, "span", 44);
161
199
  i0.ɵɵtext(1);
162
200
  i0.ɵɵelementEnd();
163
201
  } if (rf & 2) {
164
202
  i0.ɵɵnextContext();
165
- const rowCount_r11 = i0.ɵɵreadContextLet(9);
203
+ const rowCount_r16 = i0.ɵɵreadContextLet(9);
166
204
  i0.ɵɵadvance();
167
- i0.ɵɵtextInterpolate(rowCount_r11);
205
+ i0.ɵɵtextInterpolate(rowCount_r16);
168
206
  } }
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);
207
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
208
+ const _r12 = i0.ɵɵgetCurrentView();
209
+ i0.ɵɵelementStart(0, "div", 38);
210
+ 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)); });
211
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 39);
174
212
  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)); });
213
+ i0.ɵɵelementStart(3, "span", 40);
214
+ 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
215
  i0.ɵɵtext(4);
178
216
  i0.ɵɵelementEnd();
179
217
  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);
218
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 41);
219
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 42)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 43);
182
220
  i0.ɵɵdeclareLet(9);
183
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_7_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 40);
221
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 44);
184
222
  i0.ɵɵelementEnd();
185
223
  } if (rf & 2) {
186
- const group_r8 = ctx.$implicit;
224
+ const group_r13 = ctx.$implicit;
187
225
  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);
226
+ 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);
227
+ i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === group_r13.Key ? "page" : null);
190
228
  i0.ɵɵadvance();
191
229
  i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
192
230
  i0.ɵɵadvance();
193
- i0.ɵɵclassMap(group_r8.Icon);
231
+ i0.ɵɵclassMap(group_r13.Icon);
194
232
  i0.ɵɵadvance(2);
195
- i0.ɵɵtextInterpolate(group_r8.Title);
233
+ i0.ɵɵtextInterpolate(group_r13.Title);
196
234
  i0.ɵɵadvance();
197
- const groupIndicators_r12 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r8));
235
+ const groupIndicators_r17 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r13));
198
236
  i0.ɵɵadvance();
199
- i0.ɵɵconditional(groupIndicators_r12.DirtyCount > 0 ? 6 : -1);
237
+ i0.ɵɵconditional(groupIndicators_r17.DirtyCount > 0 ? 6 : -1);
200
238
  i0.ɵɵadvance();
201
- i0.ɵɵconditional(groupIndicators_r12.ErrorCount > 0 ? 7 : groupIndicators_r12.WarningCount > 0 ? 8 : -1);
239
+ i0.ɵɵconditional(groupIndicators_r17.ErrorCount > 0 ? 7 : groupIndicators_r17.WarningCount > 0 ? 8 : -1);
202
240
  i0.ɵɵadvance(2);
203
- const rowCount_r13 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r8));
241
+ const rowCount_r18 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r13));
204
242
  i0.ɵɵadvance();
205
- i0.ɵɵconditional(rowCount_r13 != null && rowCount_r13 > 0 ? 10 : -1);
243
+ i0.ɵɵconditional(rowCount_r18 != null && rowCount_r18 > 0 ? 10 : -1);
206
244
  } }
207
- function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
208
- i0.ɵɵelement(0, "span", 37);
245
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
246
+ i0.ɵɵelement(0, "span", 41);
209
247
  } if (rf & 2) {
210
- const more_r15 = i0.ɵɵnextContext();
211
- const moreIndicators_r16 = i0.ɵɵreadContextLet(5);
248
+ const more_r20 = i0.ɵɵnextContext();
249
+ const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
212
250
  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));
251
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
252
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
215
253
  } }
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);
254
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
255
+ i0.ɵɵelementStart(0, "span", 42);
256
+ i0.ɵɵelement(1, "i", 47);
219
257
  i0.ɵɵtext(2);
220
258
  i0.ɵɵelementEnd();
221
259
  } if (rf & 2) {
222
- const more_r15 = i0.ɵɵnextContext();
223
- const moreIndicators_r16 = i0.ɵɵreadContextLet(5);
260
+ const more_r20 = i0.ɵɵnextContext();
261
+ const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
224
262
  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));
263
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(moreIndicators_r21.ErrorCount, more_r20.Title));
264
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(moreIndicators_r21.ErrorCount, more_r20.Title));
227
265
  i0.ɵɵadvance(2);
228
- i0.ɵɵtextInterpolate1("", moreIndicators_r16.ErrorCount, " ");
266
+ i0.ɵɵtextInterpolate1("", moreIndicators_r21.ErrorCount, " ");
229
267
  } }
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);
268
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
269
+ i0.ɵɵelementStart(0, "span", 43);
270
+ i0.ɵɵelement(1, "i", 48);
233
271
  i0.ɵɵtext(2);
234
272
  i0.ɵɵelementEnd();
235
273
  } if (rf & 2) {
236
- const more_r15 = i0.ɵɵnextContext();
237
- const moreIndicators_r16 = i0.ɵɵreadContextLet(5);
274
+ const more_r20 = i0.ɵɵnextContext();
275
+ const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
238
276
  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));
277
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(moreIndicators_r21.WarningCount, more_r20.Title));
278
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(moreIndicators_r21.WarningCount, more_r20.Title));
241
279
  i0.ɵɵadvance(2);
242
- i0.ɵɵtextInterpolate1("", moreIndicators_r16.WarningCount, " ");
280
+ i0.ɵɵtextInterpolate1("", moreIndicators_r21.WarningCount, " ");
243
281
  } }
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);
282
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
283
+ const _r24 = i0.ɵɵgetCurrentView();
284
+ i0.ɵɵelementStart(0, "span", 45);
285
+ i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r24); const child_r23 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r23.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
286
+ i0.ɵɵelement(1, "i", 46);
249
287
  i0.ɵɵelementEnd();
250
288
  } }
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);
289
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
290
+ i0.ɵɵelement(0, "span", 41);
253
291
  } if (rf & 2) {
254
- const child_r18 = i0.ɵɵnextContext().$implicit;
255
- const childIndicators_r20 = i0.ɵɵreadContextLet(5);
292
+ const child_r23 = i0.ɵɵnextContext().$implicit;
293
+ const childIndicators_r25 = i0.ɵɵreadContextLet(5);
256
294
  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));
295
+ i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r25.DirtyCount, child_r23.Title));
296
+ i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r25.DirtyCount, child_r23.Title));
259
297
  } }
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);
298
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
299
+ i0.ɵɵelementStart(0, "span", 42);
300
+ i0.ɵɵelement(1, "i", 47);
263
301
  i0.ɵɵtext(2);
264
302
  i0.ɵɵelementEnd();
265
303
  } if (rf & 2) {
266
- const child_r18 = i0.ɵɵnextContext().$implicit;
267
- const childIndicators_r20 = i0.ɵɵreadContextLet(5);
304
+ const child_r23 = i0.ɵɵnextContext().$implicit;
305
+ const childIndicators_r25 = i0.ɵɵreadContextLet(5);
268
306
  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));
307
+ i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r25.ErrorCount, child_r23.Title));
308
+ i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r25.ErrorCount, child_r23.Title));
271
309
  i0.ɵɵadvance(2);
272
- i0.ɵɵtextInterpolate1("", childIndicators_r20.ErrorCount, " ");
310
+ i0.ɵɵtextInterpolate1("", childIndicators_r25.ErrorCount, " ");
273
311
  } }
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);
312
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
313
+ i0.ɵɵelementStart(0, "span", 43);
314
+ i0.ɵɵelement(1, "i", 48);
277
315
  i0.ɵɵtext(2);
278
316
  i0.ɵɵelementEnd();
279
317
  } if (rf & 2) {
280
- const child_r18 = i0.ɵɵnextContext().$implicit;
281
- const childIndicators_r20 = i0.ɵɵreadContextLet(5);
318
+ const child_r23 = i0.ɵɵnextContext().$implicit;
319
+ const childIndicators_r25 = i0.ɵɵreadContextLet(5);
282
320
  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));
321
+ i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r25.WarningCount, child_r23.Title));
322
+ i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r25.WarningCount, child_r23.Title));
285
323
  i0.ɵɵadvance(2);
286
- i0.ɵɵtextInterpolate1("", childIndicators_r20.WarningCount, " ");
324
+ i0.ɵɵtextInterpolate1("", childIndicators_r25.WarningCount, " ");
287
325
  } }
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);
326
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
327
+ i0.ɵɵelementStart(0, "span", 44);
290
328
  i0.ɵɵtext(1);
291
329
  i0.ɵɵelementEnd();
292
330
  } if (rf & 2) {
293
331
  i0.ɵɵnextContext();
294
- const childCount_r21 = i0.ɵɵreadContextLet(9);
332
+ const childCount_r26 = i0.ɵɵreadContextLet(9);
295
333
  i0.ɵɵadvance();
296
- i0.ɵɵtextInterpolate(childCount_r21);
334
+ i0.ɵɵtextInterpolate(childCount_r26);
297
335
  } }
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);
336
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
337
+ const _r22 = i0.ɵɵgetCurrentView();
338
+ i0.ɵɵelementStart(0, "div", 54);
339
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_click_0_listener() { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r23.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_keydown_enter_0_listener() { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r23.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_keydown_space_0_listener($event) { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r23.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_dragover_0_listener($event) { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r23.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_dragleave_0_listener($event) { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r23.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_div_drop_0_listener($event) { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r23.Key)); });
340
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_1_Template, 2, 0, "span", 39);
303
341
  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)); });
342
+ i0.ɵɵelementStart(3, "span", 40);
343
+ i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template_span_mouseenter_3_listener($event) { const child_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r23.Title)); });
306
344
  i0.ɵɵtext(4);
307
345
  i0.ɵɵelementEnd();
308
346
  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);
347
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_6_Template, 1, 2, "span", 41);
348
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_7_Template, 3, 3, "span", 42)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_8_Template, 3, 3, "span", 43);
311
349
  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);
350
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Conditional_10_Template, 2, 1, "span", 44);
313
351
  i0.ɵɵelementEnd();
314
352
  } if (rf & 2) {
315
- const child_r18 = ctx.$implicit;
353
+ const child_r23 = ctx.$implicit;
316
354
  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);
355
+ i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r23.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r23.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r23).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r23).DirtyCount > 0);
356
+ i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r23.Key ? "page" : null);
319
357
  i0.ɵɵadvance();
320
358
  i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
321
359
  i0.ɵɵadvance();
322
- i0.ɵɵclassMap(child_r18.Icon);
360
+ i0.ɵɵclassMap(child_r23.Icon);
323
361
  i0.ɵɵadvance(2);
324
- i0.ɵɵtextInterpolate(child_r18.Title);
362
+ i0.ɵɵtextInterpolate(child_r23.Title);
325
363
  i0.ɵɵadvance();
326
- const childIndicators_r22 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r18));
364
+ const childIndicators_r27 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r23));
327
365
  i0.ɵɵadvance();
328
- i0.ɵɵconditional(childIndicators_r22.DirtyCount > 0 ? 6 : -1);
366
+ i0.ɵɵconditional(childIndicators_r27.DirtyCount > 0 ? 6 : -1);
329
367
  i0.ɵɵadvance();
330
- i0.ɵɵconditional(childIndicators_r22.ErrorCount > 0 ? 7 : childIndicators_r22.WarningCount > 0 ? 8 : -1);
368
+ i0.ɵɵconditional(childIndicators_r27.ErrorCount > 0 ? 7 : childIndicators_r27.WarningCount > 0 ? 8 : -1);
331
369
  i0.ɵɵadvance(2);
332
- const childCount_r23 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r18));
370
+ const childCount_r28 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r23));
333
371
  i0.ɵɵadvance();
334
- i0.ɵɵconditional(childCount_r23 != null && childCount_r23 > 0 ? 10 : -1);
372
+ i0.ɵɵconditional(childCount_r28 != null && childCount_r28 > 0 ? 10 : -1);
335
373
  } }
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);
374
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_Template(rf, ctx) { if (rf & 1) {
375
+ i0.ɵɵelementStart(0, "div", 52);
376
+ i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_For_2_Template, 11, 18, "div", 53, _forTrack1);
339
377
  i0.ɵɵelementEnd();
340
378
  } if (rf & 2) {
341
379
  const ctx_r1 = i0.ɵɵnextContext(4);
342
380
  i0.ɵɵadvance();
343
381
  i0.ɵɵrepeater(ctx_r1.ChromeMoreItems);
344
382
  } }
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)); });
383
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
384
+ const _r19 = i0.ɵɵgetCurrentView();
385
+ i0.ɵɵelementStart(0, "div", 49);
386
+ 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()); });
387
+ i0.ɵɵelement(1, "span", 50)(2, "i");
388
+ i0.ɵɵelementStart(3, "span", 40);
389
+ 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
390
  i0.ɵɵtext(4);
353
391
  i0.ɵɵelementEnd();
354
392
  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);
393
+ i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 41);
394
+ i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 42)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 43);
395
+ i0.ɵɵelement(9, "i", 51);
358
396
  i0.ɵɵelementEnd();
359
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_9_Conditional_10_Template, 3, 0, "div", 48);
397
+ i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_10_Template, 3, 0, "div", 52);
360
398
  } if (rf & 2) {
361
- const more_r15 = ctx;
399
+ const more_r20 = ctx;
362
400
  const ctx_r1 = i0.ɵɵnextContext(3);
363
- i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r15).ErrorCount > 0);
401
+ i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r20).ErrorCount > 0);
364
402
  i0.ɵɵadvance(2);
365
403
  i0.ɵɵclassMap(ctx_r1.MoreExpanded ? "fa-solid fa-folder-open" : "fa-solid fa-folder");
366
404
  i0.ɵɵadvance(2);
367
- i0.ɵɵtextInterpolate(more_r15.Title);
405
+ i0.ɵɵtextInterpolate(more_r20.Title);
368
406
  i0.ɵɵadvance();
369
- const moreIndicators_r24 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r15));
407
+ const moreIndicators_r29 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r20));
370
408
  i0.ɵɵadvance();
371
- i0.ɵɵconditional(moreIndicators_r24.DirtyCount > 0 ? 6 : -1);
409
+ i0.ɵɵconditional(moreIndicators_r29.DirtyCount > 0 ? 6 : -1);
372
410
  i0.ɵɵadvance();
373
- i0.ɵɵconditional(moreIndicators_r24.ErrorCount > 0 ? 7 : moreIndicators_r24.WarningCount > 0 ? 8 : -1);
411
+ i0.ɵɵconditional(moreIndicators_r29.ErrorCount > 0 ? 7 : moreIndicators_r29.WarningCount > 0 ? 8 : -1);
374
412
  i0.ɵɵadvance(2);
375
413
  i0.ɵɵclassProp("fa-minus", ctx_r1.MoreExpanded)("fa-plus", !ctx_r1.MoreExpanded);
376
414
  i0.ɵɵadvance();
377
415
  i0.ɵɵconditional(ctx_r1.MoreExpanded ? 10 : -1);
378
416
  } }
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);
417
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
418
+ i0.ɵɵelementStart(0, "div", 37);
419
+ i0.ɵɵelement(1, "span", 50)(2, "i", 47);
420
+ i0.ɵɵelementStart(3, "span", 55);
383
421
  i0.ɵɵtext(4, "Not in a section");
384
422
  i0.ɵɵelementEnd();
385
- i0.ɵɵelementStart(5, "span", 52);
423
+ i0.ɵɵelementStart(5, "span", 56);
386
424
  i0.ɵɵtext(6);
387
425
  i0.ɵɵelementEnd()();
388
426
  } if (rf & 2) {
389
427
  i0.ɵɵnextContext();
390
- const unroutedErrors_r25 = i0.ɵɵreadContextLet(10);
428
+ const unroutedErrors_r30 = i0.ɵɵreadContextLet(10);
391
429
  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));
430
+ i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r30));
431
+ i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r30));
394
432
  i0.ɵɵadvance(5);
395
- i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r25));
433
+ i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r30));
396
434
  i0.ɵɵadvance();
397
- i0.ɵɵtextInterpolate(unroutedErrors_r25);
435
+ i0.ɵɵtextInterpolate(unroutedErrors_r30);
398
436
  } }
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()); });
437
+ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
438
+ const _r11 = i0.ɵɵgetCurrentView();
439
+ i0.ɵɵelementStart(0, "div", 29);
440
+ 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
441
  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);
442
+ i0.ɵɵelementStart(1, "div", 30)(2, "button", 31);
443
+ 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()); });
444
+ i0.ɵɵelement(3, "i", 32);
407
445
  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);
446
+ i0.ɵɵelementStart(4, "button", 33);
447
+ 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()); });
448
+ i0.ɵɵelement(5, "i", 34);
411
449
  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);
450
+ i0.ɵɵelementStart(6, "div", 35);
451
+ i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template, 11, 18, "div", 36, _forTrack1);
452
+ i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template, 11, 15);
415
453
  i0.ɵɵdeclareLet(10);
416
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_7_Conditional_2_Conditional_11_Template, 7, 4, "div", 33);
454
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template, 7, 4, "div", 37);
417
455
  i0.ɵɵelementEnd();
418
456
  } if (rf & 2) {
419
457
  let tmp_9_0;
@@ -428,13 +466,13 @@ function MjRecordFormContainerComponent_Conditional_7_Conditional_2_Template(rf,
428
466
  i0.ɵɵadvance(2);
429
467
  i0.ɵɵconditional((tmp_9_0 = ctx_r1.ChromeMoreFolder) ? 9 : -1, tmp_9_0);
430
468
  i0.ɵɵadvance();
431
- const unroutedErrors_r26 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
469
+ const unroutedErrors_r31 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
432
470
  i0.ɵɵadvance();
433
- i0.ɵɵconditional(unroutedErrors_r26 > 0 ? 11 : -1);
471
+ i0.ɵɵconditional(unroutedErrors_r31 > 0 ? 11 : -1);
434
472
  } }
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);
473
+ function MjRecordFormContainerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
474
+ i0.ɵɵelementStart(0, "nav", 22);
475
+ i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template, 8, 8, "button", 23)(2, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template, 12, 10);
438
476
  i0.ɵɵelementEnd();
439
477
  } if (rf & 2) {
440
478
  const ctx_r1 = i0.ɵɵnextContext();
@@ -444,14 +482,14 @@ function MjRecordFormContainerComponent_Conditional_7_Template(rf, ctx) { if (rf
444
482
  i0.ɵɵadvance();
445
483
  i0.ɵɵconditional(ctx_r1.ChromeRailCollapsed ? 1 : 2);
446
484
  } }
447
- function MjRecordFormContainerComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
448
- i0.ɵɵelement(0, "mj-form-contributions", 7);
485
+ function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
486
+ i0.ɵɵelement(0, "mj-form-contributions", 8);
449
487
  } if (rf & 2) {
450
488
  const ctx_r1 = i0.ɵɵnextContext();
451
489
  i0.ɵɵproperty("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent)("FormContext", ctx_r1.FormComponent.formContext)("BakedSectionKeys", ctx_r1.BakedRelatedSectionKeys)("ShowRelatedEntities", ctx_r1.EffectiveShowRelatedEntities);
452
490
  } }
453
- function MjRecordFormContainerComponent_Conditional_11_Conditional_5_Template(rf, ctx) { if (rf & 1) {
454
- i0.ɵɵelementStart(0, "span", 56);
491
+ function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf, ctx) { if (rf & 1) {
492
+ i0.ɵɵelementStart(0, "span", 60);
455
493
  i0.ɵɵtext(1);
456
494
  i0.ɵɵelementEnd();
457
495
  } if (rf & 2) {
@@ -459,16 +497,16 @@ function MjRecordFormContainerComponent_Conditional_11_Conditional_5_Template(rf
459
497
  i0.ɵɵadvance();
460
498
  i0.ɵɵtextInterpolate(ctx_r1.MorePreview);
461
499
  } }
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()); });
500
+ function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
501
+ const _r32 = i0.ɵɵgetCurrentView();
502
+ i0.ɵɵelementStart(0, "div", 57)(1, "button", 58);
503
+ i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
466
504
  i0.ɵɵelement(2, "i");
467
- i0.ɵɵelementStart(3, "span", 55);
505
+ i0.ɵɵelementStart(3, "span", 59);
468
506
  i0.ɵɵtext(4);
469
507
  i0.ɵɵelementEnd();
470
- i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_11_Conditional_5_Template, 2, 1, "span", 56);
471
- i0.ɵɵelement(6, "i", 57);
508
+ i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template, 2, 1, "span", 60);
509
+ i0.ɵɵelement(6, "i", 61);
472
510
  i0.ɵɵelementEnd()();
473
511
  } if (rf & 2) {
474
512
  const ctx_r1 = i0.ɵɵnextContext();
@@ -482,52 +520,52 @@ function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (r
482
520
  i0.ɵɵadvance();
483
521
  i0.ɵɵclassProp("fa-chevron-down", ctx_r1.MoreExpanded)("fa-chevron-right", !ctx_r1.MoreExpanded);
484
522
  } }
485
- function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
486
- i0.ɵɵelement(0, "mj-form-panel-slot", 9);
523
+ function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
524
+ i0.ɵɵelement(0, "mj-form-panel-slot", 10);
487
525
  } if (rf & 2) {
488
526
  const ctx_r1 = i0.ɵɵnextContext();
489
527
  i0.ɵɵproperty("Entity", ctx_r1.Record.EntityInfo.Name)("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent);
490
528
  } }
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("")); });
529
+ function MjRecordFormContainerComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
530
+ const _r33 = i0.ɵɵgetCurrentView();
531
+ i0.ɵɵelementStart(0, "mj-empty-state", 62);
532
+ i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_14_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
495
533
  i0.ɵɵelementEnd();
496
534
  } if (rf & 2) {
497
535
  const ctx_r1 = i0.ɵɵnextContext();
498
536
  i0.ɵɵproperty("Message", "No sections match \"" + ctx_r1.EffectiveSearchFilter + "\". Try a different search term.");
499
537
  } }
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()); });
538
+ function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
539
+ const _r34 = i0.ɵɵgetCurrentView();
540
+ i0.ɵɵelementStart(0, "mj-record-changes", 63);
541
+ i0.ɵɵlistener("RestoreRequested", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r34); 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(_r34); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
504
542
  i0.ɵɵelementEnd();
505
543
  } if (rf & 2) {
506
544
  const ctx_r1 = i0.ɵɵnextContext();
507
545
  i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit);
508
546
  } }
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)); });
547
+ function MjRecordFormContainerComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
548
+ const _r35 = i0.ɵɵgetCurrentView();
549
+ i0.ɵɵelementStart(0, "mj-record-tags", 64);
550
+ i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r35); 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(_r35); 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(_r35); 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(_r35); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
513
551
  i0.ɵɵelementEnd();
514
552
  } if (rf & 2) {
515
553
  const ctx_r1 = i0.ɵɵnextContext();
516
554
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("WidthPx", ctx_r1.TagsPanelWidth);
517
555
  } }
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)); });
556
+ function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
557
+ const _r36 = i0.ɵɵgetCurrentView();
558
+ i0.ɵɵelementStart(0, "mj-record-attachments", 65);
559
+ i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r36); 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(_r36); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
522
560
  i0.ɵɵelementEnd();
523
561
  } if (rf & 2) {
524
562
  const ctx_r1 = i0.ɵɵnextContext();
525
563
  i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("Visible", true);
526
564
  } }
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()); });
565
+ function MjRecordFormContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
566
+ const _r37 = i0.ɵɵgetCurrentView();
567
+ i0.ɵɵelementStart(0, "mj-list-management-dialog", 66);
568
+ i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r37); 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(_r37); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
531
569
  i0.ɵɵelementEnd();
532
570
  } if (rf & 2) {
533
571
  const ctx_r1 = i0.ɵɵnextContext();
@@ -571,6 +609,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
571
609
  sectionIndicators = inject(FormSectionIndicatorCoordinator);
572
610
  slots = inject(FormSlotCoordinator);
573
611
  recordRefresh = inject(FormRecordRefreshCoordinator);
612
+ fieldEdits = inject(FormFieldEditCoordinator);
574
613
  host = inject((ElementRef));
575
614
  destroy$ = new Subject();
576
615
  panelNavReset$ = new Subject();
@@ -581,6 +620,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
581
620
  lastRailSearchFilter = '';
582
621
  chromeRules = [];
583
622
  chromeRulesForEntityId = null;
623
+ /** The form whose duplicate-check answers this container already re-renders on. */
624
+ duplicateNoticeWiredFor = null;
584
625
  // ---- Internal State ----
585
626
  /** Reference to the record changes drawer (when visible) for triggering refresh after save */
586
627
  recordChangesDrawer;
@@ -713,43 +754,47 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
713
754
  Panels;
714
755
  // ---- FormComponent accessor ----
715
756
  /** Typed accessor for the form component reference */
716
- get fc() {
757
+ get Fc() {
717
758
  return this.FormComponent;
718
759
  }
760
+ /** @deprecated Use {@link Fc}. */
761
+ get fc() {
762
+ return this.Fc;
763
+ }
719
764
  // ---- Effective state (bridges FormComponent → toolbar inputs) ----
720
765
  get EffectiveRecord() {
721
- return this.fc?.record ?? this.Record;
766
+ return this.Fc?.record ?? this.Record;
722
767
  }
723
768
  get EffectiveEditMode() {
724
- return this.fc?.EditMode ?? this.EditMode;
769
+ return this.Fc?.EditMode ?? this.EditMode;
725
770
  }
726
771
  get EffectiveUserCanEdit() {
727
- return this.fc?.UserCanEdit ?? this.UserCanEdit;
772
+ return this.Fc?.UserCanEdit ?? this.UserCanEdit;
728
773
  }
729
774
  get EffectiveUserCanDelete() {
730
- return this.fc?.UserCanDelete ?? this.UserCanDelete;
775
+ return this.Fc?.UserCanDelete ?? this.UserCanDelete;
731
776
  }
732
777
  get EffectiveIsFavorite() {
733
- return this.fc?.IsFavorite ?? this.IsFavorite;
778
+ return this.Fc?.IsFavorite ?? this.IsFavorite;
734
779
  }
735
780
  get EffectiveFavoriteInitDone() {
736
- return this.fc?.FavoriteInitDone ?? this.FavoriteInitDone;
781
+ return this.Fc?.FavoriteInitDone ?? this.FavoriteInitDone;
737
782
  }
738
783
  get EffectiveEntityInfo() {
739
- return this.fc?.EntityInfo ?? this.EntityInfo;
784
+ return this.Fc?.EntityInfo ?? this.EntityInfo;
740
785
  }
741
786
  get EffectiveIsDirty() {
742
- if (this.fc) {
787
+ if (this.Fc) {
743
788
  // OR'd with the form's own extra state: a section that owns an editor (a flow canvas, a
744
789
  // designer) holds edits no entity field reflects, and reporting the record clean would let
745
790
  // the navigate-away guard discard them without asking.
746
- return (this.fc.record?.Dirty ?? false) || this.fc.HasAdditionalUnsavedChanges;
791
+ return (this.Fc.record?.Dirty ?? false) || this.Fc.HasAdditionalUnsavedChanges;
747
792
  }
748
793
  return this.IsDirty;
749
794
  }
750
795
  get EffectiveDirtyFieldNames() {
751
- if (this.fc?.record?.Fields) {
752
- return this.fc.record.Fields.filter(f => f.Dirty).map(f => f.Name);
796
+ if (this.Fc?.record?.Fields) {
797
+ return this.Fc.record.Fields.filter(f => f.Dirty).map(f => f.Name);
753
798
  }
754
799
  return this.DirtyFieldNames;
755
800
  }
@@ -757,11 +802,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
757
802
  return this.IsSaving;
758
803
  }
759
804
  get EffectiveIsRefreshing() {
760
- return this.fc?.IsRefreshing ?? this.IsRefreshing;
805
+ return this.Fc?.IsRefreshing ?? this.IsRefreshing;
761
806
  }
762
807
  get EffectiveWidthMode() {
763
- if (this.fc?.getFormWidthMode) {
764
- return this.fc.getFormWidthMode();
808
+ if (this.Fc?.getFormWidthMode) {
809
+ return this.Fc.getFormWidthMode();
765
810
  }
766
811
  return this.WidthMode;
767
812
  }
@@ -772,7 +817,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
772
817
  * Any other value (undefined or a partial config) keeps the toolbar.
773
818
  */
774
819
  get EffectiveShowToolbar() {
775
- return ResolveFormShowToolbar(this.fc?.Config);
820
+ return ResolveFormShowToolbar(this.Fc?.Config);
776
821
  }
777
822
  /**
778
823
  * Effective toolbar config: the bound `ToolbarConfig` (or the default)
@@ -781,36 +826,36 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
781
826
  * yet per-instance toolbar tweaks still take effect through `fc.Config`.
782
827
  */
783
828
  get EffectiveToolbarConfig() {
784
- return ResolveFormToolbarConfig(this.ToolbarConfig ?? DEFAULT_TOOLBAR_CONFIG, this.fc?.Config);
829
+ return ResolveFormToolbarConfig(this.ToolbarConfig ?? DEFAULT_TOOLBAR_CONFIG, this.Fc?.Config);
785
830
  }
786
831
  get EffectiveRegisteredToolbarItems() {
787
- if (this.fc?.RegisteredToolbarItems && this.fc.RegisteredToolbarItems.length > 0) {
788
- return this.fc.RegisteredToolbarItems;
832
+ if (this.Fc?.RegisteredToolbarItems && this.Fc.RegisteredToolbarItems.length > 0) {
833
+ return this.Fc.RegisteredToolbarItems;
789
834
  }
790
835
  return this.RegisteredToolbarItems;
791
836
  }
792
837
  get EffectiveToolbarItemOverrides() {
793
- if (this.fc?.ToolbarItemOverrides && this.fc.ToolbarItemOverrides.size > 0) {
794
- return this.fc.ToolbarItemOverrides;
838
+ if (this.Fc?.ToolbarItemOverrides && this.Fc.ToolbarItemOverrides.size > 0) {
839
+ return this.Fc.ToolbarItemOverrides;
795
840
  }
796
841
  return this.ToolbarItemOverrides;
797
842
  }
798
843
  get EffectiveSearchFilter() {
799
- return this.fc?.searchFilter ?? '';
844
+ return this.Fc?.searchFilter ?? '';
800
845
  }
801
846
  get EffectiveShowEmptyFields() {
802
- return this.fc?.showEmptyFields ?? false;
847
+ return this.Fc?.showEmptyFields ?? false;
803
848
  }
804
849
  get EffectiveHasCustomSectionOrder() {
805
- if (this.fc?.hasCustomSectionOrder) {
806
- return this.fc.hasCustomSectionOrder();
850
+ if (this.Fc?.hasCustomSectionOrder) {
851
+ return this.Fc.hasCustomSectionOrder();
807
852
  }
808
853
  return false;
809
854
  }
810
855
  // ---- Section counts ----
811
856
  get TotalSectionCount() {
812
- if (this.fc?.getTotalSectionCount) {
813
- return this.fc.getTotalSectionCount();
857
+ if (this.Fc?.getTotalSectionCount) {
858
+ return this.Fc.getTotalSectionCount();
814
859
  }
815
860
  return this.Panels?.length ?? 0;
816
861
  }
@@ -821,8 +866,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
821
866
  const fromRail = this.ChromeFirstClassGroups.length + this.ChromeMoreItems.length;
822
867
  return Math.max(fromPanels, fromRail);
823
868
  }
824
- if (this.fc?.getVisibleSectionCount) {
825
- return this.fc.getVisibleSectionCount();
869
+ if (this.Fc?.getVisibleSectionCount) {
870
+ return this.Fc.getVisibleSectionCount();
826
871
  }
827
872
  return this.Panels?.filter((p) => p.IsVisible).length ?? 0;
828
873
  }
@@ -856,7 +901,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
856
901
  .map((panel) => panel.SectionKey);
857
902
  }
858
903
  get EffectiveShowRelatedEntities() {
859
- return this.fc?.Config?.ShowRelatedEntities !== false;
904
+ return this.Fc?.Config?.ShowRelatedEntities !== false;
860
905
  }
861
906
  get ChromeLayout() {
862
907
  return this.chrome.Spec.Layout;
@@ -923,7 +968,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
923
968
  return this.chrome.IsMoreActive;
924
969
  }
925
970
  get ChromeReorderAllowed() {
926
- return this.fc?.formContext?.allowSectionReorder !== false;
971
+ return this.Fc?.formContext?.allowSectionReorder !== false;
927
972
  }
928
973
  get ShowMoreToggle() {
929
974
  return this.chrome.Spec.Layout === 'accordion' && this.ChromeMoreItems.length > 0;
@@ -935,8 +980,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
935
980
  return this.ChromeMoreItems.map((item) => item.Title).join(' · ');
936
981
  }
937
982
  get ExpandedSectionCount() {
938
- if (this.fc?.getExpandedCount) {
939
- return this.fc.getExpandedCount();
983
+ if (this.Fc?.getExpandedCount) {
984
+ return this.Fc.getExpandedCount();
940
985
  }
941
986
  if (!this.Panels)
942
987
  return 0;
@@ -984,8 +1029,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
984
1029
  }
985
1030
  /** Current section order from the form component */
986
1031
  get SectionManagerOrder() {
987
- if (this.fc?.getSectionOrder) {
988
- return this.fc.getSectionOrder();
1032
+ if (this.Fc?.getSectionOrder) {
1033
+ return this.Fc.getSectionOrder();
989
1034
  }
990
1035
  return [];
991
1036
  }
@@ -1005,10 +1050,10 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1005
1050
  if (savedWidth)
1006
1051
  this.TagsPanelWidth = parseInt(savedWidth, 10) || 0;
1007
1052
  // Subscribe to panel Navigate events and relay them
1008
- this.SubscribeToPanelNavigateEvents();
1053
+ this.subscribeToPanelNavigateEvents();
1009
1054
  // Watch for panel changes to update counts and re-subscribe
1010
1055
  this.Panels.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
1011
- this.SubscribeToPanelNavigateEvents();
1056
+ this.subscribeToPanelNavigateEvents();
1012
1057
  this.scheduleChromeResolve();
1013
1058
  this.cdr.markForCheck();
1014
1059
  });
@@ -1023,10 +1068,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1023
1068
  this.sectionIndicators.Changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
1024
1069
  this.cdr.markForCheck();
1025
1070
  });
1026
- this.RestoreChromePrefs();
1071
+ this.restoreChromePrefs();
1027
1072
  this.scheduleChromeResolve();
1028
1073
  // Watch for changes to record dirty state
1029
1074
  this.watchRecordChanges();
1075
+ this.wireDuplicateEntryCheck();
1030
1076
  }
1031
1077
  /**
1032
1078
  * Edit mode and Show Empty Fields both flip `mj-panel-empty` on a panel whose
@@ -1068,7 +1114,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1068
1114
  }
1069
1115
  OnMoreFolderToggle() {
1070
1116
  this.chrome.ToggleMoreFolder();
1071
- this.PersistChromePrefs();
1117
+ this.persistChromePrefs();
1072
1118
  this.cdr.detectChanges();
1073
1119
  }
1074
1120
  // ---- Section indicators on the rail ----
@@ -1099,7 +1145,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1099
1145
  return TallyValidationErrors(this.unroutedValidationErrors()).ErrorCount;
1100
1146
  }
1101
1147
  unroutedValidationErrors() {
1102
- const ctx = this.fc?.formContext;
1148
+ const ctx = this.Fc?.formContext;
1103
1149
  if (!ctx?.showValidation || !ctx.validationErrors?.length)
1104
1150
  return [];
1105
1151
  // Only a section with a rail item may claim: a registered section the chrome dropped
@@ -1143,12 +1189,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1143
1189
  return DescribeSectionWarnings(count, where);
1144
1190
  }
1145
1191
  ChromeGroupRowCount(group) {
1146
- if (!this.fc?.GetSectionRowCount)
1192
+ if (!this.Fc?.GetSectionRowCount)
1147
1193
  return undefined;
1148
1194
  let total = 0;
1149
1195
  let any = false;
1150
1196
  for (const key of group.SectionKeys) {
1151
- const count = this.fc.GetSectionRowCount(key);
1197
+ const count = this.Fc.GetSectionRowCount(key);
1152
1198
  if (count !== undefined) {
1153
1199
  total += count;
1154
1200
  any = true;
@@ -1168,7 +1214,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1168
1214
  if (!this.ChromeRailPinned && previous !== groupKey) {
1169
1215
  this.chromeRailExpanded = false;
1170
1216
  }
1171
- this.PersistChromePrefs();
1217
+ this.persistChromePrefs();
1172
1218
  this.AfterSectionActivated.emit(new AfterSectionActivatedEventArgs(groupKey));
1173
1219
  this.cdr.detectChanges();
1174
1220
  }
@@ -1185,7 +1231,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1185
1231
  if (this.ChromeRailPinned) {
1186
1232
  this.chromeRailExpanded = true;
1187
1233
  }
1188
- this.PersistChromePrefs();
1234
+ this.persistChromePrefs();
1189
1235
  this.cdr.detectChanges();
1190
1236
  }
1191
1237
  OnRailResizeStart(event) {
@@ -1210,7 +1256,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1210
1256
  if (!this.RailResizing)
1211
1257
  return;
1212
1258
  this.RailResizing = false;
1213
- this.PersistChromePrefs();
1259
+ this.persistChromePrefs();
1214
1260
  this.cdr.detectChanges();
1215
1261
  }
1216
1262
  OnRailLabelHover(event, text) {
@@ -1272,8 +1318,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1272
1318
  ];
1273
1319
  const current = OverlayChromeSectionOrder(defaultKeys, this.EffectiveHasCustomSectionOrder ? this.SectionManagerOrder : []);
1274
1320
  const next = MoveChromeGroupInSectionOrder(current, dragged, target);
1275
- if (this.fc?.setSectionOrder) {
1276
- this.fc.setSectionOrder(next);
1321
+ if (this.Fc?.setSectionOrder) {
1322
+ this.Fc.setSectionOrder(next);
1277
1323
  this.cdr.detectChanges();
1278
1324
  }
1279
1325
  }
@@ -1285,7 +1331,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1285
1331
  return;
1286
1332
  this.chrome.ToggleMore(next);
1287
1333
  this.applyChromeVisibility();
1288
- this.PersistChromePrefs();
1334
+ this.persistChromePrefs();
1289
1335
  this.AfterSectionActivated.emit(new AfterSectionActivatedEventArgs(MORE_SECTION_KEY));
1290
1336
  this.cdr.detectChanges();
1291
1337
  }
@@ -1295,7 +1341,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1295
1341
  }
1296
1342
  this.chromeResolveTimer = setTimeout(() => {
1297
1343
  this.chromeResolveTimer = null;
1298
- this.ResolveChrome();
1344
+ this.resolveChrome();
1299
1345
  this.applyChromeVisibility();
1300
1346
  this.cdr.markForCheck();
1301
1347
  }, 0);
@@ -1314,7 +1360,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1314
1360
  this.chromeRules = rules;
1315
1361
  this.scheduleChromeResolve();
1316
1362
  }
1317
- ResolveChrome() {
1363
+ resolveChrome() {
1318
1364
  const entity = this.EffectiveEntityInfo;
1319
1365
  if (!entity)
1320
1366
  return;
@@ -1332,8 +1378,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1332
1378
  ChromeRules: this.chromeRules,
1333
1379
  IncludeUnbakedRelated: this.EffectiveShowRelatedEntities,
1334
1380
  Membership: {
1335
- moreSectionKeys: this.fc?.getMoreSectionKeys?.() ?? [],
1336
- firstClassSectionKeys: this.fc?.getFirstClassSectionKeys?.() ?? [],
1381
+ moreSectionKeys: this.Fc?.getMoreSectionKeys?.() ?? [],
1382
+ firstClassSectionKeys: this.Fc?.getFirstClassSectionKeys?.() ?? [],
1337
1383
  },
1338
1384
  });
1339
1385
  const before = new BeforeLayoutResolveEventArgs(result.Spec.Layout);
@@ -1352,7 +1398,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1352
1398
  return;
1353
1399
  const group = this.chrome.Spec.Groups.find((g) => g.Key === groupKey);
1354
1400
  const keys = group && !group.IsMore ? group.SectionKeys : [groupKey];
1355
- const form = this.fc;
1401
+ const form = this.Fc;
1356
1402
  if (!form?.SetSectionExpanded)
1357
1403
  return;
1358
1404
  for (const key of keys) {
@@ -1580,7 +1626,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1580
1626
  }
1581
1627
  chromePanelSnapshots() {
1582
1628
  const skip = this.contributionHiddenSectionKeys();
1583
- const ctx = this.fc?.formContext;
1629
+ const ctx = this.Fc?.formContext;
1584
1630
  const byKey = new Map();
1585
1631
  const add = (snapshot) => {
1586
1632
  if (!snapshot.SectionKey || skip.has(snapshot.SectionKey))
@@ -1669,10 +1715,10 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1669
1715
  return `mj.formChrome.${name}.${suffix}`;
1670
1716
  }
1671
1717
  /** Delegates to the pure decision in `form-chrome-rail-pref`, supplying this form's registrations. */
1672
- UnsavedLeadGroupKey() {
1718
+ unsavedLeadGroupKey() {
1673
1719
  return UnsavedLeadGroupKey(this.EffectiveEntityInfo?.Name, CollectFormPanelRegistrations(), contributionRailKey);
1674
1720
  }
1675
- RestoreChromePrefs() {
1721
+ restoreChromePrefs() {
1676
1722
  if (ShouldPersistChromeActiveGroup(this.EffectiveRecord?.IsSaved)) {
1677
1723
  const group = UserInfoEngine.Instance.GetSetting(this.chromePrefKey('activeGroup'));
1678
1724
  if (group)
@@ -1682,7 +1728,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1682
1728
  // A new record has no stored position to restore, so without this it opens on the lead
1683
1729
  // group -- which is usually a summary, and a summary of a record with no data is a page of
1684
1730
  // blanks. A contribution can opt out of that by declaring `leadsWhenUnsaved`.
1685
- const lead = this.UnsavedLeadGroupKey();
1731
+ const lead = this.unsavedLeadGroupKey();
1686
1732
  if (lead)
1687
1733
  this.chrome.ActiveGroupKey = lead;
1688
1734
  }
@@ -1695,7 +1741,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1695
1741
  this.ChromeRailWidthPx = ParseRailWidthSetting(UserInfoEngine.Instance.GetSetting(this.chromePrefKey('railWidth')));
1696
1742
  this.chromeRailExpanded = this.ChromeRailPinned;
1697
1743
  }
1698
- PersistChromePrefs() {
1744
+ persistChromePrefs() {
1699
1745
  if (ShouldPersistChromeActiveGroup(this.EffectiveRecord?.IsSaved) && this.chrome.ActiveGroupKey) {
1700
1746
  UserInfoEngine.Instance.SetSettingDebounced(this.chromePrefKey('activeGroup'), this.chrome.ActiveGroupKey);
1701
1747
  }
@@ -1707,15 +1753,15 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1707
1753
  * Subscribes to Navigate events from all child collapsible panels
1708
1754
  * and relays them through this container's Navigate output.
1709
1755
  */
1710
- SubscribeToPanelNavigateEvents() {
1756
+ subscribeToPanelNavigateEvents() {
1711
1757
  this.panelNavReset$.next(); // tear down previous subscriptions
1712
1758
  // Subscribe to RecordReady on the form component — fires once after record is fully initialized
1713
- if (this.fc) {
1714
- this.fc.RecordReady.pipe(takeUntil(this.panelNavReset$)).subscribe(() => {
1715
- this.LoadBadgeCounts();
1759
+ if (this.Fc) {
1760
+ this.Fc.RecordReady.pipe(takeUntil(this.panelNavReset$)).subscribe(() => {
1761
+ this.loadBadgeCounts();
1716
1762
  });
1717
- this.fc.RecordRefreshed.pipe(takeUntil(this.panelNavReset$)).subscribe((e) => {
1718
- this.OnFormRecordRefreshed(e.Record);
1763
+ this.Fc.RecordRefreshed.pipe(takeUntil(this.panelNavReset$)).subscribe((e) => {
1764
+ this.onFormRecordRefreshed(e.Record);
1719
1765
  });
1720
1766
  }
1721
1767
  this.Panels.forEach(panel => {
@@ -1738,6 +1784,43 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1738
1784
  // Cleanup on destroy
1739
1785
  this.destroy$.subscribe(() => clearInterval(checkInterval));
1740
1786
  }
1787
+ /** Forwards field edits to the form component, which runs the entry-time duplicate check for a new record. */
1788
+ wireDuplicateEntryCheck() {
1789
+ this.fieldEdits.Edited$.pipe(takeUntil(this.destroy$)).subscribe(() => this.onFieldEdited());
1790
+ }
1791
+ onFieldEdited() {
1792
+ const form = this.Fc;
1793
+ if (!form)
1794
+ return;
1795
+ form.OnFieldEdited();
1796
+ this.watchDuplicateNotice(form);
1797
+ }
1798
+ /**
1799
+ * Re-renders the possible-duplicate notice whenever the form's check answers. Wired on the first
1800
+ * edit, since only an edit starts a check.
1801
+ */
1802
+ watchDuplicateNotice(form) {
1803
+ if (this.duplicateNoticeWiredFor === form)
1804
+ return;
1805
+ this.duplicateNoticeWiredFor = form;
1806
+ form.DuplicateEntryCheck.Changed$.pipe(takeUntil(this.destroy$)).subscribe(() => this.cdr.markForCheck());
1807
+ }
1808
+ // ---- Possible-duplicate notice ----
1809
+ /**
1810
+ * The existing records to flag as possible duplicates of the new record being entered, or none.
1811
+ * See {@link BaseFormComponent.DuplicateEntryCheck}.
1812
+ */
1813
+ get DuplicateEntryCandidates() {
1814
+ return this.Fc?.ShowDuplicateEntryNotice ? this.Fc.DuplicateEntryCheck.Candidates : [];
1815
+ }
1816
+ /** Opens a flagged record through the form's Navigate event. */
1817
+ OnDuplicateCandidateClick(candidate) {
1818
+ this.Fc?.OpenDuplicateCandidate(candidate);
1819
+ }
1820
+ /** The person dismissed the possible-duplicate notice. */
1821
+ OnDuplicateNoticeDismissed() {
1822
+ this.Fc?.DismissDuplicateNotice();
1823
+ }
1741
1824
  // ---- Badge Count Loading ----
1742
1825
  /**
1743
1826
  * Whether the attachments feature is available for the current record.
@@ -1760,7 +1843,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1760
1843
  * All queries run in parallel for performance.
1761
1844
  */
1762
1845
  badgeCountsLoaded = false;
1763
- LoadBadgeCounts() {
1846
+ loadBadgeCounts() {
1764
1847
  if (this.badgeCountsLoaded)
1765
1848
  return;
1766
1849
  const record = this.EffectiveRecord;
@@ -1768,15 +1851,15 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1768
1851
  return;
1769
1852
  this.badgeCountsLoaded = true;
1770
1853
  // Fire queries in parallel — no await needed, they update state async
1771
- this.LoadTagCount(record);
1772
- this.LoadVersionCount(record);
1773
- this.LoadAttachmentCount(record);
1854
+ this.loadTagCount(record);
1855
+ this.loadVersionCount(record);
1856
+ this.loadAttachmentCount(record);
1774
1857
  }
1775
1858
  /**
1776
1859
  * Queries the count of linked attachments for the current entity + record
1777
1860
  * and updates the AttachmentCount badge on the toolbar.
1778
1861
  */
1779
- async LoadAttachmentCount(record) {
1862
+ async loadAttachmentCount(record) {
1780
1863
  if (!this.AttachmentsAvailable)
1781
1864
  return;
1782
1865
  try {
@@ -1800,7 +1883,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1800
1883
  * Queries the count of tagged items for the current entity + record
1801
1884
  * and updates the TagCount badge on the toolbar.
1802
1885
  */
1803
- async LoadTagCount(record) {
1886
+ async loadTagCount(record) {
1804
1887
  try {
1805
1888
  const rv = RunView.FromMetadataProvider(this.ProviderToUse);
1806
1889
  // Don't narrow Fields — the server caches RunView results by entity+filter (ignoring Fields),
@@ -1823,7 +1906,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1823
1906
  * Queries the count of record change entries for the current entity + record
1824
1907
  * and updates the VersionCount badge on the toolbar.
1825
1908
  */
1826
- async LoadVersionCount(record) {
1909
+ async loadVersionCount(record) {
1827
1910
  if (!record.EntityInfo.TrackRecordChanges)
1828
1911
  return;
1829
1912
  try {
@@ -1854,12 +1937,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1854
1937
  * Edit mode change: delegate to FormComponent if available, otherwise re-emit.
1855
1938
  */
1856
1939
  OnEditModeChange(editMode) {
1857
- if (this.fc) {
1940
+ if (this.Fc) {
1858
1941
  if (editMode) {
1859
- this.fc.StartEditMode();
1942
+ this.Fc.StartEditMode();
1860
1943
  }
1861
1944
  else {
1862
- this.fc.EndEditMode();
1945
+ this.Fc.EndEditMode();
1863
1946
  }
1864
1947
  this.cdr.markForCheck();
1865
1948
  }
@@ -1871,14 +1954,14 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1871
1954
  * Save: delegate to FormComponent if available, otherwise re-emit.
1872
1955
  */
1873
1956
  async OnSaveRequested() {
1874
- if (this.fc?.SaveRecord) {
1957
+ if (this.Fc?.SaveRecord) {
1875
1958
  // Mark as saving to prevent double-click
1876
1959
  this.IsSaving = true;
1877
1960
  this.cdr.markForCheck();
1878
1961
  try {
1879
- await this.fc.SaveRecord(true);
1962
+ await this.Fc.SaveRecord(true);
1880
1963
  // After successful save, refresh version count badge and record changes drawer
1881
- this.RefreshAfterSave();
1964
+ this.refreshAfterSave();
1882
1965
  }
1883
1966
  finally {
1884
1967
  // Use microtask timing to avoid ExpressionChangedAfterItHasBeenCheckedError
@@ -1898,12 +1981,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1898
1981
  * The save operation creates a new RecordChange entry server-side, so we need
1899
1982
  * to update the UI to reflect the new version.
1900
1983
  */
1901
- RefreshAfterSave() {
1984
+ refreshAfterSave() {
1902
1985
  const record = this.EffectiveRecord;
1903
1986
  if (!record?.EntityInfo?.TrackRecordChanges)
1904
1987
  return;
1905
1988
  // Refresh version count badge
1906
- this.LoadVersionCount(record);
1989
+ this.loadVersionCount(record);
1907
1990
  // If the record changes drawer is open, refresh it too
1908
1991
  if (this.ShowRecordChanges && this.recordChangesDrawer) {
1909
1992
  this.recordChangesDrawer.Refresh();
@@ -1913,8 +1996,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1913
1996
  * Cancel: delegate to FormComponent if available, otherwise re-emit.
1914
1997
  */
1915
1998
  OnCancelRequested() {
1916
- if (this.fc?.CancelEdit) {
1917
- this.fc.CancelEdit();
1999
+ if (this.Fc?.CancelEdit) {
2000
+ this.Fc.CancelEdit();
1918
2001
  this.cdr.markForCheck();
1919
2002
  }
1920
2003
  else {
@@ -1927,11 +2010,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1927
2010
  * `host.Refresh()` (which calls `RefreshRecord()` directly) still notifies.
1928
2011
  */
1929
2012
  async OnRefreshRequested() {
1930
- if (this.fc?.RefreshRecord) {
2013
+ if (this.Fc?.RefreshRecord) {
1931
2014
  this.IsRefreshing = true;
1932
2015
  this.cdr.markForCheck();
1933
2016
  try {
1934
- await this.fc.RefreshRecord();
2017
+ await this.Fc.RefreshRecord();
1935
2018
  }
1936
2019
  finally {
1937
2020
  await Promise.resolve();
@@ -1950,9 +2033,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1950
2033
  * the record itself (badges, open history drawer) and broadcast to
1951
2034
  * in-form listeners (related grids, IS-A panel, custom panels).
1952
2035
  */
1953
- OnFormRecordRefreshed(record) {
2036
+ onFormRecordRefreshed(record) {
1954
2037
  this.badgeCountsLoaded = false;
1955
- this.LoadBadgeCounts();
2038
+ this.loadBadgeCounts();
1956
2039
  if (this.ShowRecordChanges && this.recordChangesDrawer) {
1957
2040
  this.recordChangesDrawer.Refresh();
1958
2041
  }
@@ -2001,7 +2084,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2001
2084
  // Refresh tag count — tags may have been added/removed while panel was open
2002
2085
  const record = this.EffectiveRecord;
2003
2086
  if (record?.EntityInfo) {
2004
- this.LoadTagCount(record);
2087
+ this.loadTagCount(record);
2005
2088
  }
2006
2089
  }
2007
2090
  /**
@@ -2025,7 +2108,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2025
2108
  // Refresh attachment count — attachments may have been added/removed while panel was open
2026
2109
  const record = this.EffectiveRecord;
2027
2110
  if (record?.EntityInfo) {
2028
- this.LoadAttachmentCount(record);
2111
+ this.loadAttachmentCount(record);
2029
2112
  }
2030
2113
  }
2031
2114
  /**
@@ -2046,7 +2129,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2046
2129
  // Refresh version count — new changes may have occurred
2047
2130
  const record = this.EffectiveRecord;
2048
2131
  if (record?.EntityInfo) {
2049
- this.LoadVersionCount(record);
2132
+ this.loadVersionCount(record);
2050
2133
  }
2051
2134
  }
2052
2135
  /**
@@ -2079,7 +2162,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2079
2162
  const reasonSuffix = event.Reason ? ` — "${event.Reason}"` : '';
2080
2163
  this.notificationService.CreateSimpleNotification(`Restored ${fieldCount} field${fieldCount === 1 ? '' : 's'} from version dated ${new Date(event.ChangedAt).toLocaleDateString()}${reasonSuffix}`, 'info', 3500);
2081
2164
  // Refresh version count — the save just produced a new restore-tagged change.
2082
- this.LoadVersionCount(record);
2165
+ this.loadVersionCount(record);
2083
2166
  this.cdr.markForCheck();
2084
2167
  }
2085
2168
  else {
@@ -2122,8 +2205,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2122
2205
  this.OnListManagementClosed();
2123
2206
  }
2124
2207
  OnShowChangesRequested() {
2125
- if (this.fc?.ShowChanges) {
2126
- this.fc.ShowChanges();
2208
+ if (this.Fc?.ShowChanges) {
2209
+ this.Fc.ShowChanges();
2127
2210
  }
2128
2211
  else {
2129
2212
  this.ShowChangesRequested.emit();
@@ -2131,8 +2214,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2131
2214
  }
2132
2215
  // ---- Section Control Handlers ----
2133
2216
  OnFilterChange(filter) {
2134
- if (this.fc?.onFilterChange) {
2135
- this.fc.onFilterChange(filter);
2217
+ if (this.Fc?.onFilterChange) {
2218
+ this.Fc.onFilterChange(filter);
2136
2219
  if (filter.trim() && this.ChromeMoreItems.length > 0) {
2137
2220
  this.chrome.MoreExpanded = true;
2138
2221
  }
@@ -2142,26 +2225,26 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2142
2225
  }
2143
2226
  }
2144
2227
  OnExpandAll() {
2145
- if (this.fc?.expandAllSections) {
2146
- this.fc.expandAllSections();
2228
+ if (this.Fc?.expandAllSections) {
2229
+ this.Fc.expandAllSections();
2147
2230
  this.cdr.markForCheck();
2148
2231
  }
2149
2232
  }
2150
2233
  OnCollapseAll() {
2151
- if (this.fc?.collapseAllSections) {
2152
- this.fc.collapseAllSections();
2234
+ if (this.Fc?.collapseAllSections) {
2235
+ this.Fc.collapseAllSections();
2153
2236
  this.cdr.markForCheck();
2154
2237
  }
2155
2238
  }
2156
2239
  OnShowEmptyFieldsChange(show) {
2157
- if (this.fc) {
2158
- this.fc.showEmptyFields = show;
2240
+ if (this.Fc) {
2241
+ this.Fc.showEmptyFields = show;
2159
2242
  this.cdr.markForCheck();
2160
2243
  }
2161
2244
  }
2162
2245
  OnWidthModeChange(mode) {
2163
- if (this.fc?.setFormWidthMode) {
2164
- this.fc.setFormWidthMode(mode);
2246
+ if (this.Fc?.setFormWidthMode) {
2247
+ this.Fc.setFormWidthMode(mode);
2165
2248
  this.cdr.markForCheck();
2166
2249
  }
2167
2250
  else {
@@ -2170,8 +2253,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2170
2253
  }
2171
2254
  }
2172
2255
  OnResetSectionOrder() {
2173
- if (this.fc?.resetSectionOrder) {
2174
- this.fc.resetSectionOrder();
2256
+ if (this.Fc?.resetSectionOrder) {
2257
+ this.Fc.resetSectionOrder();
2175
2258
  this.scheduleChromeResolve();
2176
2259
  this.cdr.markForCheck();
2177
2260
  }
@@ -2179,7 +2262,15 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2179
2262
  // ---- Variant picker ----
2180
2263
  /** Whether the variant dropdown menu is currently open. Toggled by the
2181
2264
  * control's click handler; closed on blur or after a row is picked. */
2182
- _variantMenuOpen = false;
2265
+ VariantMenuOpen = false;
2266
+ /** @deprecated Use {@link VariantMenuOpen}. */
2267
+ get _variantMenuOpen() {
2268
+ return this.VariantMenuOpen;
2269
+ }
2270
+ /** @deprecated Use {@link VariantMenuOpen}. */
2271
+ set _variantMenuOpen(value) {
2272
+ this.VariantMenuOpen = value;
2273
+ }
2183
2274
  /**
2184
2275
  * Effective variants — prefer the form component's list (set by the host
2185
2276
  * resolver) when present, fall back to the directly-bound @Input. This
@@ -2188,12 +2279,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2188
2279
  * container reads it through this accessor.
2189
2280
  */
2190
2281
  get EffectiveVariants() {
2191
- return this.fc?.Variants
2282
+ return this.Fc?.Variants
2192
2283
  ?? this.Variants
2193
2284
  ?? [];
2194
2285
  }
2195
2286
  get EffectiveCurrentVariantID() {
2196
- return this.fc?.CurrentVariantID ?? this.CurrentVariantID;
2287
+ return this.Fc?.CurrentVariantID ?? this.CurrentVariantID;
2197
2288
  }
2198
2289
  /** Whether to show the variant picker at all. Hidden when the entity has
2199
2290
  * zero or one applicable variant — there's nothing to switch between. */
@@ -2206,9 +2297,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2206
2297
  return v?.Label ?? 'Default form';
2207
2298
  }
2208
2299
  /** Compact subtitle: scope + status, e.g. "User · Active". */
2209
- variantSubtitle(v) {
2300
+ VariantSubtitle(v) {
2210
2301
  return `${v.Scope} · ${v.Status}`;
2211
2302
  }
2303
+ /** @deprecated Use {@link VariantSubtitle}. */
2304
+ variantSubtitle(v) {
2305
+ return this.VariantSubtitle(v);
2306
+ }
2212
2307
  /**
2213
2308
  * User picked an item from the variant menu. If the host installed a
2214
2309
  * handler via `instance.OnVariantChanged`, call it; otherwise emit the
@@ -2217,8 +2312,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2217
2312
  OnVariantPicked(variantID) {
2218
2313
  if (variantID === this.EffectiveCurrentVariantID)
2219
2314
  return;
2220
- if (this.fc && typeof this.fc.OnVariantChanged === 'function') {
2221
- this.fc.OnVariantChanged(variantID);
2315
+ if (this.Fc && typeof this.Fc.OnVariantChanged === 'function') {
2316
+ this.Fc.OnVariantChanged(variantID);
2222
2317
  }
2223
2318
  else {
2224
2319
  this.VariantChange.emit(variantID);
@@ -2230,15 +2325,15 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2230
2325
  this.cdr.markForCheck();
2231
2326
  }
2232
2327
  OnSectionOrderChange(newOrder) {
2233
- if (this.fc?.setSectionOrder) {
2234
- this.fc.setSectionOrder(newOrder);
2328
+ if (this.Fc?.setSectionOrder) {
2329
+ this.Fc.setSectionOrder(newOrder);
2235
2330
  this.scheduleChromeResolve();
2236
2331
  this.cdr.markForCheck();
2237
2332
  }
2238
2333
  }
2239
2334
  OnChromeMembershipChange(change) {
2240
- if (this.fc?.setChromeMembership) {
2241
- this.fc.setChromeMembership(change.moreSectionKeys, change.firstClassSectionKeys);
2335
+ if (this.Fc?.setChromeMembership) {
2336
+ this.Fc.setChromeMembership(change.moreSectionKeys, change.firstClassSectionKeys);
2242
2337
  this.scheduleChromeResolve();
2243
2338
  this.cdr.markForCheck();
2244
2339
  }
@@ -2261,68 +2356,71 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2261
2356
  } if (rf & 2) {
2262
2357
  let _t;
2263
2358
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recordChangesDrawer = _t.first);
2264
- } }, 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) {
2359
+ } }, 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: 21, vars: 32, 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, "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"], ["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) {
2265
2360
  i0.ɵɵprojectionDef(_c0);
2266
2361
  i0.ɵɵprojection(0);
2267
2362
  i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1, 31, "mj-form-toolbar", 0);
2268
2363
  i0.ɵɵelementStart(2, "span", 1);
2269
2364
  i0.ɵɵtext(3);
2270
2365
  i0.ɵɵelementEnd();
2271
- i0.ɵɵelementStart(4, "div", 2)(5, "div", 3)(6, "div", 4);
2272
- i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_7_Template, 3, 8, "nav", 5);
2273
- i0.ɵɵelementStart(8, "div", 6);
2274
- i0.ɵɵprojection(9, 1);
2275
- i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Template, 1, 5, "mj-form-contributions", 7);
2276
- i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_11_Template, 7, 10, "div", 8);
2277
- i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template, 1, 3, "mj-form-panel-slot", 9);
2278
- i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 1, "mj-empty-state", 10);
2366
+ i0.ɵɵconditionalCreate(4, MjRecordFormContainerComponent_Conditional_4_Template, 5, 0, "mj-alert", 2);
2367
+ i0.ɵɵelementStart(5, "div", 3)(6, "div", 4)(7, "div", 5);
2368
+ i0.ɵɵconditionalCreate(8, MjRecordFormContainerComponent_Conditional_8_Template, 3, 8, "nav", 6);
2369
+ i0.ɵɵelementStart(9, "div", 7);
2370
+ i0.ɵɵprojection(10, 1);
2371
+ i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_11_Template, 1, 5, "mj-form-contributions", 8);
2372
+ i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template, 7, 10, "div", 9);
2373
+ i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 3, "mj-form-panel-slot", 10);
2374
+ i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_14_Template, 1, 1, "mj-empty-state", 11);
2279
2375
  i0.ɵɵelementEnd();
2280
- i0.ɵɵelementStart(14, "mj-isa-related-panel", 11);
2281
- i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_14_listener($event) { return ctx.OnNavigate($event); });
2376
+ i0.ɵɵelementStart(15, "mj-isa-related-panel", 12);
2377
+ i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_15_listener($event) { return ctx.OnNavigate($event); });
2282
2378
  i0.ɵɵelementEnd()()()();
2283
- i0.ɵɵconditionalCreate(15, MjRecordFormContainerComponent_Conditional_15_Template, 1, 2, "mj-record-changes", 12);
2284
- i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 2, "mj-record-tags", 13);
2285
- i0.ɵɵconditionalCreate(17, MjRecordFormContainerComponent_Conditional_17_Template, 1, 2, "mj-record-attachments", 14);
2286
- i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 8, "mj-list-management-dialog", 15);
2287
- i0.ɵɵelementStart(19, "mj-section-manager", 16);
2288
- 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(); });
2379
+ i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 2, "mj-record-changes", 13);
2380
+ i0.ɵɵconditionalCreate(17, MjRecordFormContainerComponent_Conditional_17_Template, 1, 2, "mj-record-tags", 14);
2381
+ i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 2, "mj-record-attachments", 15);
2382
+ i0.ɵɵconditionalCreate(19, MjRecordFormContainerComponent_Conditional_19_Template, 1, 8, "mj-list-management-dialog", 16);
2383
+ i0.ɵɵelementStart(20, "mj-section-manager", 17);
2384
+ 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(); });
2289
2385
  i0.ɵɵelementEnd();
2290
2386
  } if (rf & 2) {
2291
2387
  i0.ɵɵadvance();
2292
2388
  i0.ɵɵconditional(ctx.EffectiveShowToolbar ? 1 : -1);
2293
2389
  i0.ɵɵadvance(2);
2294
2390
  i0.ɵɵtextInterpolate(ctx.FormIndicatorsAnnouncement);
2391
+ i0.ɵɵadvance();
2392
+ i0.ɵɵconditional(ctx.DuplicateEntryCandidates.length > 0 ? 4 : -1);
2295
2393
  i0.ɵɵadvance(2);
2296
2394
  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);
2297
2395
  i0.ɵɵadvance();
2298
2396
  i0.ɵɵclassProp("mj-forms-layout--left-nav", ctx.ChromeLayout === "left-nav")("mj-forms-layout--accordion", ctx.ChromeLayout === "accordion")("mj-forms-layout--more", ctx.IsChromeMoreActive);
2299
2397
  i0.ɵɵadvance();
2300
- i0.ɵɵconditional(ctx.ShowChromeRail ? 7 : -1);
2398
+ i0.ɵɵconditional(ctx.ShowChromeRail ? 8 : -1);
2301
2399
  i0.ɵɵadvance(3);
2302
- i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 10 : -1);
2400
+ i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 11 : -1);
2303
2401
  i0.ɵɵadvance();
2304
- i0.ɵɵconditional(ctx.ShowMoreToggle ? 11 : -1);
2402
+ i0.ɵɵconditional(ctx.ShowMoreToggle ? 12 : -1);
2305
2403
  i0.ɵɵadvance();
2306
- i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 12 : -1);
2404
+ i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 13 : -1);
2307
2405
  i0.ɵɵadvance();
2308
- i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 13 : -1);
2406
+ i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 14 : -1);
2309
2407
  i0.ɵɵadvance();
2310
2408
  i0.ɵɵproperty("Record", ctx.EffectiveRecord)("EditMode", ctx.EffectiveEditMode)("Collapsed", ctx.EffectiveWidthMode === "full-width");
2311
2409
  i0.ɵɵadvance();
2312
- i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 15 : -1);
2410
+ i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 16 : -1);
2313
2411
  i0.ɵɵadvance();
2314
- i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 16 : -1);
2412
+ i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 17 : -1);
2315
2413
  i0.ɵɵadvance();
2316
- i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 17 : -1);
2414
+ i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 18 : -1);
2317
2415
  i0.ɵɵadvance();
2318
- i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 18 : -1);
2416
+ i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 19 : -1);
2319
2417
  i0.ɵɵadvance();
2320
2418
  i0.ɵɵproperty("Sections", ctx.SectionManagerItems)("SectionOrder", ctx.SectionManagerOrder)("MoreSectionKeys", ctx.SectionManagerMoreKeys)("LockedMoreKeys", ctx.SectionManagerLockedMoreKeys)("Visible", ctx.ShowSectionManager);
2321
- } }, 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 });
2419
+ } }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, 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 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.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 });
2322
2420
  }
2323
2421
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjRecordFormContainerComponent, [{
2324
2422
  type: Component,
2325
- 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"] }]
2423
+ 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 [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 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.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"] }]
2326
2424
  }], null, { recordChangesDrawer: [{
2327
2425
  type: ViewChild,
2328
2426
  args: [RecordChangesComponent]
@@ -2414,7 +2512,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2414
2512
  type: ContentChildren,
2415
2513
  args: [MjCollapsiblePanelComponent, { descendants: true }]
2416
2514
  }] }); })();
2417
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 127 }); })();
2515
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 130 }); })();
2418
2516
  function contributionRailKey(meta) {
2419
2517
  if (meta.contributionKey?.trim()) {
2420
2518
  return meta.contributionKey.trim();