@memberjunction/ng-base-forms 6.2.0-edge.2 → 6.2.0-edge.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apply/form-placement-dialog.component.d.ts +266 -0
- package/dist/lib/apply/form-placement-dialog.component.d.ts.map +1 -0
- package/dist/lib/apply/form-placement-dialog.component.js +1522 -0
- package/dist/lib/apply/form-placement-dialog.component.js.map +1 -0
- package/dist/lib/apply/form-placement-order.d.ts +37 -0
- package/dist/lib/apply/form-placement-order.d.ts.map +1 -0
- package/dist/lib/apply/form-placement-order.js +111 -0
- package/dist/lib/apply/form-placement-order.js.map +1 -0
- package/dist/lib/apply/form-placement-preview.component.d.ts +112 -0
- package/dist/lib/apply/form-placement-preview.component.d.ts.map +1 -0
- package/dist/lib/apply/form-placement-preview.component.js +346 -0
- package/dist/lib/apply/form-placement-preview.component.js.map +1 -0
- package/dist/lib/apply/form-placement-text.d.ts +61 -0
- package/dist/lib/apply/form-placement-text.d.ts.map +1 -0
- package/dist/lib/apply/form-placement-text.js +279 -0
- package/dist/lib/apply/form-placement-text.js.map +1 -0
- package/dist/lib/apply/form-placement.d.ts +320 -0
- package/dist/lib/apply/form-placement.d.ts.map +1 -0
- package/dist/lib/apply/form-placement.js +432 -0
- package/dist/lib/apply/form-placement.js.map +1 -0
- package/dist/lib/apply/form-slot-probe.service.d.ts +121 -0
- package/dist/lib/apply/form-slot-probe.service.d.ts.map +1 -0
- package/dist/lib/apply/form-slot-probe.service.js +264 -0
- package/dist/lib/apply/form-slot-probe.service.js.map +1 -0
- package/dist/lib/base-form-component-internals.d.ts +11 -0
- package/dist/lib/base-form-component-internals.d.ts.map +1 -0
- package/dist/lib/base-form-component-internals.js +33 -0
- package/dist/lib/base-form-component-internals.js.map +1 -0
- package/dist/lib/base-form-component.d.ts +132 -1
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +228 -19
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/chrome/form-chrome.d.ts +90 -0
- package/dist/lib/chrome/form-chrome.d.ts.map +1 -1
- package/dist/lib/chrome/form-chrome.js +142 -2
- package/dist/lib/chrome/form-chrome.js.map +1 -1
- package/dist/lib/chrome/form-composition-registry.d.ts +34 -0
- package/dist/lib/chrome/form-composition-registry.d.ts.map +1 -0
- package/dist/lib/chrome/form-composition-registry.js +56 -0
- package/dist/lib/chrome/form-composition-registry.js.map +1 -0
- package/dist/lib/chrome/form-composition-snapshot.d.ts +151 -0
- package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -0
- package/dist/lib/chrome/form-composition-snapshot.js +137 -0
- package/dist/lib/chrome/form-composition-snapshot.js.map +1 -0
- package/dist/lib/chrome/resolve-form-chrome.d.ts +15 -0
- package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
- package/dist/lib/chrome/resolve-form-chrome.js +31 -2
- package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
- package/dist/lib/container/record-form-container.component.d.ts +241 -5
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
- package/dist/lib/container/record-form-container.component.js +977 -249
- package/dist/lib/container/record-form-container.component.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +17 -0
- package/dist/lib/field/form-field.component.d.ts.map +1 -1
- package/dist/lib/field/form-field.component.js +41 -5
- package/dist/lib/field/form-field.component.js.map +1 -1
- package/dist/lib/form-state.service.d.ts +5 -0
- package/dist/lib/form-state.service.d.ts.map +1 -1
- package/dist/lib/form-state.service.js +6 -1
- package/dist/lib/form-state.service.js.map +1 -1
- package/dist/lib/host/entity-form-host.component.d.ts +16 -1
- package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
- package/dist/lib/host/entity-form-host.component.js +27 -6
- package/dist/lib/host/entity-form-host.component.js.map +1 -1
- package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts +24 -0
- package/dist/lib/interactive-form/form-panel-host-props.builder.d.ts.map +1 -0
- package/dist/lib/interactive-form/form-panel-host-props.builder.js +99 -0
- package/dist/lib/interactive-form/form-panel-host-props.builder.js.map +1 -0
- package/dist/lib/interactive-form/interactive-form-panel.component.d.ts +109 -0
- package/dist/lib/interactive-form/interactive-form-panel.component.d.ts.map +1 -0
- package/dist/lib/interactive-form/interactive-form-panel.component.js +424 -0
- package/dist/lib/interactive-form/interactive-form-panel.component.js.map +1 -0
- package/dist/lib/interactive-form/interactive-form.component.d.ts +2 -0
- package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.js +4 -5
- package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.d.ts +69 -1
- package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.js +148 -12
- package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
- package/dist/lib/panel-manager/form-audience.d.ts +46 -0
- package/dist/lib/panel-manager/form-audience.d.ts.map +1 -0
- package/dist/lib/panel-manager/form-audience.js +34 -0
- package/dist/lib/panel-manager/form-audience.js.map +1 -0
- package/dist/lib/panel-manager/form-panel-admin.service.d.ts +150 -0
- package/dist/lib/panel-manager/form-panel-admin.service.d.ts.map +1 -0
- package/dist/lib/panel-manager/form-panel-admin.service.js +433 -0
- package/dist/lib/panel-manager/form-panel-admin.service.js.map +1 -0
- package/dist/lib/panel-manager/form-panel-inventory.d.ts +255 -0
- package/dist/lib/panel-manager/form-panel-inventory.d.ts.map +1 -0
- package/dist/lib/panel-manager/form-panel-inventory.js +293 -0
- package/dist/lib/panel-manager/form-panel-inventory.js.map +1 -0
- package/dist/lib/panel-manager/panel-manager.component.d.ts +232 -0
- package/dist/lib/panel-manager/panel-manager.component.d.ts.map +1 -0
- package/dist/lib/panel-manager/panel-manager.component.js +1112 -0
- package/dist/lib/panel-manager/panel-manager.component.js.map +1 -0
- package/dist/lib/panel-slot/base-contribution-panel.d.ts +40 -0
- package/dist/lib/panel-slot/base-contribution-panel.d.ts.map +1 -0
- package/dist/lib/panel-slot/base-contribution-panel.js +55 -0
- package/dist/lib/panel-slot/base-contribution-panel.js.map +1 -0
- package/dist/lib/panel-slot/base-form-panel.d.ts +116 -8
- package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
- package/dist/lib/panel-slot/base-form-panel.js +76 -5
- package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
- package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts +29 -0
- package/dist/lib/panel-slot/collect-form-contribution-registrations.d.ts.map +1 -0
- package/dist/lib/panel-slot/collect-form-contribution-registrations.js +214 -0
- package/dist/lib/panel-slot/collect-form-contribution-registrations.js.map +1 -0
- package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts +6 -3
- package/dist/lib/panel-slot/collect-form-panel-registrations.d.ts.map +1 -1
- package/dist/lib/panel-slot/collect-form-panel-registrations.js +8 -14
- package/dist/lib/panel-slot/collect-form-panel-registrations.js.map +1 -1
- package/dist/lib/panel-slot/form-contribution.d.ts +170 -7
- package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-contribution.js +245 -71
- package/dist/lib/panel-slot/form-contribution.js.map +1 -1
- package/dist/lib/panel-slot/form-contributions.component.d.ts +16 -5
- package/dist/lib/panel-slot/form-contributions.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-contributions.component.js +43 -7
- package/dist/lib/panel-slot/form-contributions.component.js.map +1 -1
- package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts +66 -0
- package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -0
- package/dist/lib/panel-slot/form-field-panel-slot.component.js +190 -0
- package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -0
- package/dist/lib/panel-slot/form-panel-slot.component.d.ts +52 -16
- package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-panel-slot.component.js +190 -66
- package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
- package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +11 -0
- package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-slot-coordinator.service.js +17 -0
- package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
- package/dist/lib/panel-slot/merge-panel-validation.d.ts +7 -0
- package/dist/lib/panel-slot/merge-panel-validation.d.ts.map +1 -0
- package/dist/lib/panel-slot/merge-panel-validation.js +16 -0
- package/dist/lib/panel-slot/merge-panel-validation.js.map +1 -0
- package/dist/lib/panel-slot/mount-form-contribution.d.ts +15 -0
- package/dist/lib/panel-slot/mount-form-contribution.d.ts.map +1 -0
- package/dist/lib/panel-slot/mount-form-contribution.js +37 -0
- package/dist/lib/panel-slot/mount-form-contribution.js.map +1 -0
- package/dist/lib/panel-slot/panel-hides.d.ts +35 -0
- package/dist/lib/panel-slot/panel-hides.d.ts.map +1 -0
- package/dist/lib/panel-slot/panel-hides.js +111 -0
- package/dist/lib/panel-slot/panel-hides.js.map +1 -0
- package/dist/lib/panel-slot/placement-preview-panel.component.d.ts +16 -0
- package/dist/lib/panel-slot/placement-preview-panel.component.d.ts.map +1 -0
- package/dist/lib/panel-slot/placement-preview-panel.component.js +112 -0
- package/dist/lib/panel-slot/placement-preview-panel.component.js.map +1 -0
- package/dist/lib/panel-slot/placement-preview.d.ts +57 -0
- package/dist/lib/panel-slot/placement-preview.d.ts.map +1 -0
- package/dist/lib/panel-slot/placement-preview.js +86 -0
- package/dist/lib/panel-slot/placement-preview.js.map +1 -0
- package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
- package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.js +10 -3
- package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
- package/dist/lib/panel-slot/slot-order.d.ts +19 -0
- package/dist/lib/panel-slot/slot-order.d.ts.map +1 -0
- package/dist/lib/panel-slot/slot-order.js +53 -0
- package/dist/lib/panel-slot/slot-order.js.map +1 -0
- package/dist/lib/resolver/form-resolver.service.d.ts +4 -2
- package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
- package/dist/lib/resolver/form-resolver.service.js +18 -8
- package/dist/lib/resolver/form-resolver.service.js.map +1 -1
- package/dist/lib/resolver/form-variants.d.ts +28 -0
- package/dist/lib/resolver/form-variants.d.ts.map +1 -0
- package/dist/lib/resolver/form-variants.js +40 -0
- package/dist/lib/resolver/form-variants.js.map +1 -0
- package/dist/lib/section-counts/form-section-counts.d.ts +99 -0
- package/dist/lib/section-counts/form-section-counts.d.ts.map +1 -0
- package/dist/lib/section-counts/form-section-counts.js +223 -0
- package/dist/lib/section-counts/form-section-counts.js.map +1 -0
- package/dist/lib/toolbar/form-toolbar.component.d.ts +7 -0
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.js +194 -128
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
- package/dist/lib/types/form-types.d.ts +8 -0
- package/dist/lib/types/form-types.d.ts.map +1 -1
- package/dist/lib/types/form-types.js.map +1 -1
- package/dist/module.d.ts +29 -23
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +43 -5
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +20 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +21 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +20 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject, NgZone, ContentChildren, ViewChild, ViewEncapsulation, ElementRef } from '@angular/core';
|
|
2
|
-
import { CompositeKey, RunView } from '@memberjunction/core';
|
|
3
|
-
import { UUIDsEqual } from '@memberjunction/global';
|
|
2
|
+
import { CompositeKey, LogError, RunView } from '@memberjunction/core';
|
|
3
|
+
import { EscapeSQLString, UUIDsEqual } from '@memberjunction/global';
|
|
4
4
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
5
5
|
import { UserInfoEngine } from '@memberjunction/core-entities';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
@@ -12,15 +12,22 @@ import { BeforeHistoryViewEventArgs, BeforeListManagementEventArgs, BeforeLayout
|
|
|
12
12
|
import { RecordChangesComponent } from '@memberjunction/ng-record-changes';
|
|
13
13
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
14
14
|
import { FormSlotCoordinator } from '../panel-slot/form-slot-coordinator.service';
|
|
15
|
+
import { BuildFormCompositionSnapshot } from '../chrome/form-composition-snapshot';
|
|
16
|
+
import { FormCompositionRegistry } from '../chrome/form-composition-registry';
|
|
17
|
+
import { FormPanelAdminService } from '../panel-manager/form-panel-admin.service';
|
|
15
18
|
import { FormChromeCoordinator } from '../chrome/form-chrome-coordinator.service';
|
|
16
19
|
import { ResolveFormChrome, OrderChromeGroups, OrderMoreSectionKeys, MoveChromeGroupInSectionOrder, OverlayChromeSectionOrder } from '../chrome/resolve-form-chrome';
|
|
17
20
|
import { LoadFormChromeRules } from '../chrome/load-form-chrome-rules';
|
|
18
|
-
import { MORE_SECTION_KEY, HumanizeEntityTitle, IsAlwaysMoreSection, IsDetailsSectionKey, DetailsCardEdges } from '../chrome/form-chrome';
|
|
21
|
+
import { MORE_SECTION_KEY, HumanizeEntityTitle, IsAlwaysMoreSection, IsDetailsSectionKey, DetailsCardEdges, ReplacedSectionChromeGroup, RailGroupSectionKeys, DefaultContributionChromeGroup, SectionDrawingAnyField } from '../chrome/form-chrome';
|
|
19
22
|
import { ClampRailWidth, FORM_CHROME_RAIL_PINNED_DEFAULT, FORM_CHROME_RAIL_WIDTH_DEFAULT, FORM_CHROME_RAIL_WIDTH_MAX, FORM_CHROME_RAIL_WIDTH_MIN, ParseRailPinnedSetting, ParseRailWidthSetting, SerializeRailPinnedSetting, SerializeRailWidthSetting, ShouldPersistChromeActiveGroup, UnsavedLeadGroupKey, } from '../chrome/form-chrome-rail-pref';
|
|
20
23
|
import { ApplyClippedTitle } from '../chrome/clipped-title';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
24
|
+
import { DETAILS_SECTION_KEY } from '../chrome/form-chrome';
|
|
25
|
+
import { CollectFormContributionRegistrations } from '../panel-slot/collect-form-contribution-registrations';
|
|
26
|
+
import { HiddenPanelKeys, PanelHideKey } from '../panel-slot/panel-hides';
|
|
27
|
+
import { FORM_PLACEMENT_PREVIEW } from '../panel-slot/placement-preview';
|
|
28
|
+
import { ContributionDrawsInSection, ContributionHiddenSectionKeys, IsWildcardPlaceClaim, PlacedInSectionKey, ReplacedSectionKeys, ResolveContributionKey, ResolveFormContributionWinners, ResolveFormContributions, StripJoinFieldBrackets, } from '../panel-slot/form-contribution';
|
|
23
29
|
import { IsFormSectionHidden } from '../types/entity-form-config';
|
|
30
|
+
import { ApplyFormCountResults, BuildFormCountPlan, FormCountPlanParams, ResolveEmptySectionBehavior, } from '../section-counts/form-section-counts';
|
|
24
31
|
import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
|
|
25
32
|
import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
|
|
26
33
|
import { FormSectionIndicatorCoordinator } from '../section-indicators/form-section-indicator-coordinator.service';
|
|
@@ -33,9 +40,10 @@ import * as i4 from "@memberjunction/ng-record-tags";
|
|
|
33
40
|
import * as i5 from "@memberjunction/ng-file-storage";
|
|
34
41
|
import * as i6 from "../toolbar/form-toolbar.component";
|
|
35
42
|
import * as i7 from "../section-manager/section-manager.component";
|
|
36
|
-
import * as i8 from "../
|
|
37
|
-
import * as i9 from "../panel
|
|
38
|
-
import * as i10 from "../panel-slot/form-
|
|
43
|
+
import * as i8 from "../panel-manager/panel-manager.component";
|
|
44
|
+
import * as i9 from "../isa-related-panel/isa-related-panel.component";
|
|
45
|
+
import * as i10 from "../panel-slot/form-panel-slot.component";
|
|
46
|
+
import * as i11 from "../panel-slot/form-contributions.component";
|
|
39
47
|
const _c0 = [[["", "before-toolbar", ""]], "*"];
|
|
40
48
|
const _c1 = ["[before-toolbar]", "*"];
|
|
41
49
|
const _c2 = a0 => [a0];
|
|
@@ -44,7 +52,7 @@ const _forTrack0 = ($index, $item) => $item.RecordID;
|
|
|
44
52
|
const _forTrack1 = ($index, $item) => $item.Key;
|
|
45
53
|
function MjRecordFormContainerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
46
54
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
47
|
-
i0.ɵɵelementStart(0, "mj-form-toolbar",
|
|
55
|
+
i0.ɵɵelementStart(0, "mj-form-toolbar", 19);
|
|
48
56
|
i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNavigate($event)); })("EditModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_EditModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnEditModeChange($event)); })("BeforeSave", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeSave_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeSave.emit($event)); })("SaveRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_SaveRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnSaveRequested()); })("BeforeCancel", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeCancel_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeCancel.emit($event)); })("CancelRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CancelRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancelRequested()); })("BeforeDelete", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeDelete_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeDelete.emit($event)); })("DeleteRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_DeleteRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteRequested()); })("BeforeRefresh", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeRefresh_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeRefresh.emit($event)); })("RefreshRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_RefreshRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRefreshRequested()); })("FavoriteToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FavoriteToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFavoriteToggled()); })("BeforeHistoryView", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeHistoryView_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeHistoryView.emit($event)); })("HistoryRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_HistoryRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHistoryRequested()); })("BeforeListManagement", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_BeforeListManagement_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.BeforeListManagement.emit($event)); })("ListManagementRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ListManagementRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementRequested()); })("ShowChangesRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowChangesRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowChangesRequested()); })("CustomButtonClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CustomButtonClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CustomButtonClick.emit($event)); })("ToolbarItemClick", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ToolbarItemClick_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToolbarItemClick.emit($event)); })("FilterChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_FilterChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange($event)); })("ExpandAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ExpandAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); })("CollapseAllRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_CollapseAllRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCollapseAll()); })("ShowEmptyFieldsChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ShowEmptyFieldsChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnShowEmptyFieldsChange($event)); })("WidthModeChange", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_WidthModeChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnWidthModeChange($event)); })("ResetSectionOrderRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ResetSectionOrderRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); })("ManageSectionsRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ManageSectionsRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnManageSections()); })("TagsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_TagsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelToggled()); })("AttachmentsPanelToggled", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_AttachmentsPanelToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelToggled()); })("VariantPicked", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_VariantPicked_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnVariantPicked($event)); });
|
|
49
57
|
i0.ɵɵelementEnd();
|
|
50
58
|
} if (rf & 2) {
|
|
@@ -58,7 +66,7 @@ function MjRecordFormContainerComponent_Conditional_4_For_4_Conditional_2_Templa
|
|
|
58
66
|
} }
|
|
59
67
|
function MjRecordFormContainerComponent_Conditional_4_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
60
68
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
61
|
-
i0.ɵɵelementStart(0, "button",
|
|
69
|
+
i0.ɵɵelementStart(0, "button", 22);
|
|
62
70
|
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_4_For_4_Template_button_click_0_listener() { const candidate_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnDuplicateCandidateClick(candidate_r5)); });
|
|
63
71
|
i0.ɵɵtext(1);
|
|
64
72
|
i0.ɵɵelementEnd();
|
|
@@ -75,9 +83,9 @@ function MjRecordFormContainerComponent_Conditional_4_For_4_Template(rf, ctx) {
|
|
|
75
83
|
} }
|
|
76
84
|
function MjRecordFormContainerComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
77
85
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
78
|
-
i0.ɵɵelementStart(0, "mj-alert",
|
|
86
|
+
i0.ɵɵelementStart(0, "mj-alert", 20);
|
|
79
87
|
i0.ɵɵlistener("Dismissed", function MjRecordFormContainerComponent_Conditional_4_Template_mj_alert_Dismissed_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDuplicateNoticeDismissed()); });
|
|
80
|
-
i0.ɵɵelementStart(1, "span",
|
|
88
|
+
i0.ɵɵelementStart(1, "span", 21);
|
|
81
89
|
i0.ɵɵtext(2, "This may duplicate:");
|
|
82
90
|
i0.ɵɵelementEnd();
|
|
83
91
|
i0.ɵɵrepeaterCreate(3, MjRecordFormContainerComponent_Conditional_4_For_4_Template, 3, 3, null, null, _forTrack0);
|
|
@@ -88,7 +96,7 @@ function MjRecordFormContainerComponent_Conditional_4_Template(rf, ctx) { if (rf
|
|
|
88
96
|
i0.ɵɵrepeater(ctx_r1.DuplicateEntryCandidates);
|
|
89
97
|
} }
|
|
90
98
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
91
|
-
i0.ɵɵelementStart(0, "span",
|
|
99
|
+
i0.ɵɵelementStart(0, "span", 27);
|
|
92
100
|
i0.ɵɵtext(1);
|
|
93
101
|
i0.ɵɵelementEnd();
|
|
94
102
|
} if (rf & 2) {
|
|
@@ -101,7 +109,7 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_
|
|
|
101
109
|
i0.ɵɵtextInterpolate(formIndicators_r9.ErrorCount);
|
|
102
110
|
} }
|
|
103
111
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
104
|
-
i0.ɵɵelementStart(0, "span",
|
|
112
|
+
i0.ɵɵelementStart(0, "span", 28);
|
|
105
113
|
i0.ɵɵtext(1);
|
|
106
114
|
i0.ɵɵelementEnd();
|
|
107
115
|
} if (rf & 2) {
|
|
@@ -114,7 +122,7 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_
|
|
|
114
122
|
i0.ɵɵtextInterpolate(formIndicators_r9.WarningCount);
|
|
115
123
|
} }
|
|
116
124
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
-
i0.ɵɵelement(0, "span",
|
|
125
|
+
i0.ɵɵelement(0, "span", 29);
|
|
118
126
|
} if (rf & 2) {
|
|
119
127
|
i0.ɵɵnextContext();
|
|
120
128
|
const formIndicators_r9 = i0.ɵɵreadContextLet(4);
|
|
@@ -124,16 +132,16 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_
|
|
|
124
132
|
} }
|
|
125
133
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
126
134
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
127
|
-
i0.ɵɵelementStart(0, "button",
|
|
135
|
+
i0.ɵɵelementStart(0, "button", 25);
|
|
128
136
|
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailExpand()); });
|
|
129
137
|
i0.ɵɵelement(1, "i");
|
|
130
|
-
i0.ɵɵelementStart(2, "span",
|
|
138
|
+
i0.ɵɵelementStart(2, "span", 26);
|
|
131
139
|
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template_span_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, ctx_r1.ChromeActiveTitle)); });
|
|
132
140
|
i0.ɵɵtext(3);
|
|
133
141
|
i0.ɵɵelementEnd();
|
|
134
142
|
i0.ɵɵdeclareLet(4);
|
|
135
|
-
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template, 2, 3, "span",
|
|
136
|
-
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template, 1, 2, "span",
|
|
143
|
+
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_5_Template, 2, 3, "span", 27)(6, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_6_Template, 2, 3, "span", 28);
|
|
144
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Conditional_7_Template, 1, 2, "span", 29);
|
|
137
145
|
i0.ɵɵelementEnd();
|
|
138
146
|
} if (rf & 2) {
|
|
139
147
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -152,13 +160,13 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf,
|
|
|
152
160
|
} }
|
|
153
161
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
154
162
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
155
|
-
i0.ɵɵelementStart(0, "span",
|
|
163
|
+
i0.ɵɵelementStart(0, "span", 46);
|
|
156
164
|
i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r14); const group_r13 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, group_r13.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
|
|
157
|
-
i0.ɵɵelement(1, "i",
|
|
165
|
+
i0.ɵɵelement(1, "i", 47);
|
|
158
166
|
i0.ɵɵelementEnd();
|
|
159
167
|
} }
|
|
160
168
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
-
i0.ɵɵelement(0, "span",
|
|
169
|
+
i0.ɵɵelement(0, "span", 42);
|
|
162
170
|
} if (rf & 2) {
|
|
163
171
|
const group_r13 = i0.ɵɵnextContext().$implicit;
|
|
164
172
|
const groupIndicators_r15 = i0.ɵɵreadContextLet(5);
|
|
@@ -167,8 +175,8 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Condit
|
|
|
167
175
|
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r15.DirtyCount, group_r13.Title));
|
|
168
176
|
} }
|
|
169
177
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
170
|
-
i0.ɵɵelementStart(0, "span",
|
|
171
|
-
i0.ɵɵelement(1, "i",
|
|
178
|
+
i0.ɵɵelementStart(0, "span", 43);
|
|
179
|
+
i0.ɵɵelement(1, "i", 48);
|
|
172
180
|
i0.ɵɵtext(2);
|
|
173
181
|
i0.ɵɵelementEnd();
|
|
174
182
|
} if (rf & 2) {
|
|
@@ -181,8 +189,8 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Condit
|
|
|
181
189
|
i0.ɵɵtextInterpolate1("", groupIndicators_r15.ErrorCount, " ");
|
|
182
190
|
} }
|
|
183
191
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
184
|
-
i0.ɵɵelementStart(0, "span",
|
|
185
|
-
i0.ɵɵelement(1, "i",
|
|
192
|
+
i0.ɵɵelementStart(0, "span", 44);
|
|
193
|
+
i0.ɵɵelement(1, "i", 49);
|
|
186
194
|
i0.ɵɵtext(2);
|
|
187
195
|
i0.ɵɵelementEnd();
|
|
188
196
|
} if (rf & 2) {
|
|
@@ -195,7 +203,7 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Condit
|
|
|
195
203
|
i0.ɵɵtextInterpolate1("", groupIndicators_r15.WarningCount, " ");
|
|
196
204
|
} }
|
|
197
205
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
198
|
-
i0.ɵɵelementStart(0, "span",
|
|
206
|
+
i0.ɵɵelementStart(0, "span", 45);
|
|
199
207
|
i0.ɵɵtext(1);
|
|
200
208
|
i0.ɵɵelementEnd();
|
|
201
209
|
} if (rf & 2) {
|
|
@@ -206,25 +214,25 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Condit
|
|
|
206
214
|
} }
|
|
207
215
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
208
216
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
209
|
-
i0.ɵɵelementStart(0, "div",
|
|
217
|
+
i0.ɵɵelementStart(0, "div", 39);
|
|
210
218
|
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_click_0_listener() { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_keydown_enter_0_listener() { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_keydown_space_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r13.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_dragover_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, group_r13.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_dragleave_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, group_r13.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_div_drop_0_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, group_r13.Key)); });
|
|
211
|
-
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span",
|
|
219
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 40);
|
|
212
220
|
i0.ɵɵelement(2, "i");
|
|
213
|
-
i0.ɵɵelementStart(3, "span",
|
|
221
|
+
i0.ɵɵelementStart(3, "span", 41);
|
|
214
222
|
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template_span_mouseenter_3_listener($event) { const group_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, group_r13.Title)); });
|
|
215
223
|
i0.ɵɵtext(4);
|
|
216
224
|
i0.ɵɵelementEnd();
|
|
217
225
|
i0.ɵɵdeclareLet(5);
|
|
218
|
-
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span",
|
|
219
|
-
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span",
|
|
226
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 42);
|
|
227
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 44);
|
|
220
228
|
i0.ɵɵdeclareLet(9);
|
|
221
|
-
i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span",
|
|
229
|
+
i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 45);
|
|
222
230
|
i0.ɵɵelementEnd();
|
|
223
231
|
} if (rf & 2) {
|
|
224
232
|
const group_r13 = ctx.$implicit;
|
|
225
233
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
226
234
|
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === group_r13.Key)("is-drag-over", ctx_r1.RailDragOverKey === group_r13.Key)("has-errors", ctx_r1.ChromeGroupIndicators(group_r13).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(group_r13).DirtyCount > 0);
|
|
227
|
-
i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === group_r13.Key ? "page" : null);
|
|
235
|
+
i0.ɵɵattribute("data-rail-key", group_r13.Key)("aria-current", ctx_r1.ChromeActiveGroupKey === group_r13.Key ? "page" : null);
|
|
228
236
|
i0.ɵɵadvance();
|
|
229
237
|
i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
|
|
230
238
|
i0.ɵɵadvance();
|
|
@@ -243,7 +251,7 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Templa
|
|
|
243
251
|
i0.ɵɵconditional(rowCount_r18 != null && rowCount_r18 > 0 ? 10 : -1);
|
|
244
252
|
} }
|
|
245
253
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
246
|
-
i0.ɵɵelement(0, "span",
|
|
254
|
+
i0.ɵɵelement(0, "span", 42);
|
|
247
255
|
} if (rf & 2) {
|
|
248
256
|
const more_r20 = i0.ɵɵnextContext();
|
|
249
257
|
const moreIndicators_r21 = i0.ɵɵreadContextLet(5);
|
|
@@ -252,8 +260,8 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
|
|
|
252
260
|
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r21.DirtyCount, more_r20.Title));
|
|
253
261
|
} }
|
|
254
262
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
255
|
-
i0.ɵɵelementStart(0, "span",
|
|
256
|
-
i0.ɵɵelement(1, "i",
|
|
263
|
+
i0.ɵɵelementStart(0, "span", 43);
|
|
264
|
+
i0.ɵɵelement(1, "i", 48);
|
|
257
265
|
i0.ɵɵtext(2);
|
|
258
266
|
i0.ɵɵelementEnd();
|
|
259
267
|
} if (rf & 2) {
|
|
@@ -266,8 +274,8 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
|
|
|
266
274
|
i0.ɵɵtextInterpolate1("", moreIndicators_r21.ErrorCount, " ");
|
|
267
275
|
} }
|
|
268
276
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
269
|
-
i0.ɵɵelementStart(0, "span",
|
|
270
|
-
i0.ɵɵelement(1, "i",
|
|
277
|
+
i0.ɵɵelementStart(0, "span", 44);
|
|
278
|
+
i0.ɵɵelement(1, "i", 49);
|
|
271
279
|
i0.ɵɵtext(2);
|
|
272
280
|
i0.ɵɵelementEnd();
|
|
273
281
|
} if (rf & 2) {
|
|
@@ -279,101 +287,119 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
|
|
|
279
287
|
i0.ɵɵadvance(2);
|
|
280
288
|
i0.ɵɵtextInterpolate1("", moreIndicators_r21.WarningCount, " ");
|
|
281
289
|
} }
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
i0.ɵɵ
|
|
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);
|
|
290
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
291
|
+
i0.ɵɵelementStart(0, "span", 54);
|
|
292
|
+
i0.ɵɵtext(1);
|
|
287
293
|
i0.ɵɵelementEnd();
|
|
294
|
+
} if (rf & 2) {
|
|
295
|
+
i0.ɵɵnextContext();
|
|
296
|
+
const moreRowCount_r22 = i0.ɵɵreadContextLet(0);
|
|
297
|
+
i0.ɵɵadvance();
|
|
298
|
+
i0.ɵɵtextInterpolate(moreRowCount_r22);
|
|
288
299
|
} }
|
|
289
|
-
function
|
|
290
|
-
i0.ɵɵ
|
|
300
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
301
|
+
i0.ɵɵdeclareLet(0);
|
|
302
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template, 2, 1, "span", 54);
|
|
291
303
|
} if (rf & 2) {
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
|
|
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));
|
|
304
|
+
const moreRowCount_r23 = i0.ɵɵstoreLet(i0.ɵɵnextContext(4).ChromeMoreRowCount);
|
|
305
|
+
i0.ɵɵadvance();
|
|
306
|
+
i0.ɵɵconditional(moreRowCount_r23 != null && moreRowCount_r23 > 0 ? 1 : -1);
|
|
297
307
|
} }
|
|
298
|
-
function
|
|
299
|
-
i0.ɵɵ
|
|
308
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
309
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
310
|
+
i0.ɵɵelementStart(0, "span", 46);
|
|
311
|
+
i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r26); const child_r25 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r25.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
|
|
300
312
|
i0.ɵɵelement(1, "i", 47);
|
|
301
|
-
i0.ɵɵtext(2);
|
|
302
313
|
i0.ɵɵelementEnd();
|
|
314
|
+
} }
|
|
315
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
316
|
+
i0.ɵɵelement(0, "span", 42);
|
|
303
317
|
} if (rf & 2) {
|
|
304
|
-
const
|
|
305
|
-
const
|
|
318
|
+
const child_r25 = i0.ɵɵnextContext().$implicit;
|
|
319
|
+
const childIndicators_r27 = i0.ɵɵreadContextLet(5);
|
|
306
320
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
307
|
-
i0.ɵɵproperty("title", ctx_r1.
|
|
308
|
-
i0.ɵɵattribute("aria-label", ctx_r1.
|
|
309
|
-
i0.ɵɵadvance(2);
|
|
310
|
-
i0.ɵɵtextInterpolate1("", childIndicators_r25.ErrorCount, " ");
|
|
321
|
+
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r27.DirtyCount, child_r25.Title));
|
|
322
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r27.DirtyCount, child_r25.Title));
|
|
311
323
|
} }
|
|
312
|
-
function
|
|
324
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
313
325
|
i0.ɵɵelementStart(0, "span", 43);
|
|
314
326
|
i0.ɵɵelement(1, "i", 48);
|
|
315
327
|
i0.ɵɵtext(2);
|
|
316
328
|
i0.ɵɵelementEnd();
|
|
317
329
|
} if (rf & 2) {
|
|
318
|
-
const
|
|
319
|
-
const
|
|
330
|
+
const child_r25 = i0.ɵɵnextContext().$implicit;
|
|
331
|
+
const childIndicators_r27 = i0.ɵɵreadContextLet(5);
|
|
320
332
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
321
|
-
i0.ɵɵproperty("title", ctx_r1.
|
|
322
|
-
i0.ɵɵattribute("aria-label", ctx_r1.
|
|
333
|
+
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r27.ErrorCount, child_r25.Title));
|
|
334
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r27.ErrorCount, child_r25.Title));
|
|
323
335
|
i0.ɵɵadvance(2);
|
|
324
|
-
i0.ɵɵtextInterpolate1("",
|
|
336
|
+
i0.ɵɵtextInterpolate1("", childIndicators_r27.ErrorCount, " ");
|
|
325
337
|
} }
|
|
326
|
-
function
|
|
338
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
327
339
|
i0.ɵɵelementStart(0, "span", 44);
|
|
340
|
+
i0.ɵɵelement(1, "i", 49);
|
|
341
|
+
i0.ɵɵtext(2);
|
|
342
|
+
i0.ɵɵelementEnd();
|
|
343
|
+
} if (rf & 2) {
|
|
344
|
+
const child_r25 = i0.ɵɵnextContext().$implicit;
|
|
345
|
+
const childIndicators_r27 = i0.ɵɵreadContextLet(5);
|
|
346
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
347
|
+
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r27.WarningCount, child_r25.Title));
|
|
348
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r27.WarningCount, child_r25.Title));
|
|
349
|
+
i0.ɵɵadvance(2);
|
|
350
|
+
i0.ɵɵtextInterpolate1("", childIndicators_r27.WarningCount, " ");
|
|
351
|
+
} }
|
|
352
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
353
|
+
i0.ɵɵelementStart(0, "span", 45);
|
|
328
354
|
i0.ɵɵtext(1);
|
|
329
355
|
i0.ɵɵelementEnd();
|
|
330
356
|
} if (rf & 2) {
|
|
331
357
|
i0.ɵɵnextContext();
|
|
332
|
-
const
|
|
358
|
+
const childCount_r28 = i0.ɵɵreadContextLet(9);
|
|
333
359
|
i0.ɵɵadvance();
|
|
334
|
-
i0.ɵɵtextInterpolate(
|
|
360
|
+
i0.ɵɵtextInterpolate(childCount_r28);
|
|
335
361
|
} }
|
|
336
|
-
function
|
|
337
|
-
const
|
|
338
|
-
i0.ɵɵelementStart(0, "div",
|
|
339
|
-
i0.ɵɵlistener("click", function
|
|
340
|
-
i0.ɵɵconditionalCreate(1,
|
|
362
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
363
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
364
|
+
i0.ɵɵelementStart(0, "div", 56);
|
|
365
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_click_0_listener() { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_enter_0_listener() { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_space_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r25.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragover_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r25.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragleave_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r25.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_drop_0_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r25.Key)); });
|
|
366
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template, 2, 0, "span", 40);
|
|
341
367
|
i0.ɵɵelement(2, "i");
|
|
342
|
-
i0.ɵɵelementStart(3, "span",
|
|
343
|
-
i0.ɵɵlistener("mouseenter", function
|
|
368
|
+
i0.ɵɵelementStart(3, "span", 41);
|
|
369
|
+
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template_span_mouseenter_3_listener($event) { const child_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r25.Title)); });
|
|
344
370
|
i0.ɵɵtext(4);
|
|
345
371
|
i0.ɵɵelementEnd();
|
|
346
372
|
i0.ɵɵdeclareLet(5);
|
|
347
|
-
i0.ɵɵconditionalCreate(6,
|
|
348
|
-
i0.ɵɵconditionalCreate(7,
|
|
373
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template, 1, 2, "span", 42);
|
|
374
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template, 3, 3, "span", 44);
|
|
349
375
|
i0.ɵɵdeclareLet(9);
|
|
350
|
-
i0.ɵɵconditionalCreate(10,
|
|
376
|
+
i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template, 2, 1, "span", 45);
|
|
351
377
|
i0.ɵɵelementEnd();
|
|
352
378
|
} if (rf & 2) {
|
|
353
|
-
const
|
|
379
|
+
const child_r25 = ctx.$implicit;
|
|
354
380
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
355
|
-
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey ===
|
|
356
|
-
i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey ===
|
|
381
|
+
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r25.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r25.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r25).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r25).DirtyCount > 0);
|
|
382
|
+
i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r25.Key ? "page" : null);
|
|
357
383
|
i0.ɵɵadvance();
|
|
358
384
|
i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
|
|
359
385
|
i0.ɵɵadvance();
|
|
360
|
-
i0.ɵɵclassMap(
|
|
386
|
+
i0.ɵɵclassMap(child_r25.Icon);
|
|
361
387
|
i0.ɵɵadvance(2);
|
|
362
|
-
i0.ɵɵtextInterpolate(
|
|
388
|
+
i0.ɵɵtextInterpolate(child_r25.Title);
|
|
363
389
|
i0.ɵɵadvance();
|
|
364
|
-
const
|
|
390
|
+
const childIndicators_r29 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r25));
|
|
365
391
|
i0.ɵɵadvance();
|
|
366
|
-
i0.ɵɵconditional(
|
|
392
|
+
i0.ɵɵconditional(childIndicators_r29.DirtyCount > 0 ? 6 : -1);
|
|
367
393
|
i0.ɵɵadvance();
|
|
368
|
-
i0.ɵɵconditional(
|
|
394
|
+
i0.ɵɵconditional(childIndicators_r29.ErrorCount > 0 ? 7 : childIndicators_r29.WarningCount > 0 ? 8 : -1);
|
|
369
395
|
i0.ɵɵadvance(2);
|
|
370
|
-
const
|
|
396
|
+
const childCount_r30 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r25));
|
|
371
397
|
i0.ɵɵadvance();
|
|
372
|
-
i0.ɵɵconditional(
|
|
398
|
+
i0.ɵɵconditional(childCount_r30 != null && childCount_r30 > 0 ? 10 : -1);
|
|
373
399
|
} }
|
|
374
|
-
function
|
|
375
|
-
i0.ɵɵelementStart(0, "div",
|
|
376
|
-
i0.ɵɵrepeaterCreate(1,
|
|
400
|
+
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
401
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
402
|
+
i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_For_2_Template, 11, 18, "div", 55, _forTrack1);
|
|
377
403
|
i0.ɵɵelementEnd();
|
|
378
404
|
} if (rf & 2) {
|
|
379
405
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
@@ -382,19 +408,20 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
|
|
|
382
408
|
} }
|
|
383
409
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
384
410
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
385
|
-
i0.ɵɵelementStart(0, "div",
|
|
411
|
+
i0.ɵɵelementStart(0, "div", 50);
|
|
386
412
|
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.space", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_div_keydown_space_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); });
|
|
387
|
-
i0.ɵɵelement(1, "span",
|
|
388
|
-
i0.ɵɵelementStart(3, "span",
|
|
413
|
+
i0.ɵɵelement(1, "span", 51)(2, "i");
|
|
414
|
+
i0.ɵɵelementStart(3, "span", 41);
|
|
389
415
|
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template_span_mouseenter_3_listener($event) { const more_r20 = i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, more_r20.Title)); });
|
|
390
416
|
i0.ɵɵtext(4);
|
|
391
417
|
i0.ɵɵelementEnd();
|
|
392
418
|
i0.ɵɵdeclareLet(5);
|
|
393
|
-
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span",
|
|
394
|
-
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span",
|
|
395
|
-
i0.ɵɵ
|
|
419
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 42);
|
|
420
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 43)(8, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 44);
|
|
421
|
+
i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_9_Template, 2, 2);
|
|
422
|
+
i0.ɵɵelement(10, "i", 52);
|
|
396
423
|
i0.ɵɵelementEnd();
|
|
397
|
-
i0.ɵɵconditionalCreate(
|
|
424
|
+
i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Conditional_11_Template, 3, 0, "div", 53);
|
|
398
425
|
} if (rf & 2) {
|
|
399
426
|
const more_r20 = ctx;
|
|
400
427
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
@@ -404,54 +431,56 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
|
|
|
404
431
|
i0.ɵɵadvance(2);
|
|
405
432
|
i0.ɵɵtextInterpolate(more_r20.Title);
|
|
406
433
|
i0.ɵɵadvance();
|
|
407
|
-
const
|
|
434
|
+
const moreIndicators_r31 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r20));
|
|
408
435
|
i0.ɵɵadvance();
|
|
409
|
-
i0.ɵɵconditional(
|
|
436
|
+
i0.ɵɵconditional(moreIndicators_r31.DirtyCount > 0 ? 6 : -1);
|
|
410
437
|
i0.ɵɵadvance();
|
|
411
|
-
i0.ɵɵconditional(
|
|
438
|
+
i0.ɵɵconditional(moreIndicators_r31.ErrorCount > 0 ? 7 : moreIndicators_r31.WarningCount > 0 ? 8 : -1);
|
|
412
439
|
i0.ɵɵadvance(2);
|
|
440
|
+
i0.ɵɵconditional(!ctx_r1.MoreExpanded ? 9 : -1);
|
|
441
|
+
i0.ɵɵadvance();
|
|
413
442
|
i0.ɵɵclassProp("fa-minus", ctx_r1.MoreExpanded)("fa-plus", !ctx_r1.MoreExpanded);
|
|
414
443
|
i0.ɵɵadvance();
|
|
415
|
-
i0.ɵɵconditional(ctx_r1.MoreExpanded ?
|
|
444
|
+
i0.ɵɵconditional(ctx_r1.MoreExpanded ? 11 : -1);
|
|
416
445
|
} }
|
|
417
446
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
418
|
-
i0.ɵɵelementStart(0, "div",
|
|
419
|
-
i0.ɵɵelement(1, "span",
|
|
420
|
-
i0.ɵɵelementStart(3, "span",
|
|
447
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
448
|
+
i0.ɵɵelement(1, "span", 51)(2, "i", 48);
|
|
449
|
+
i0.ɵɵelementStart(3, "span", 57);
|
|
421
450
|
i0.ɵɵtext(4, "Not in a section");
|
|
422
451
|
i0.ɵɵelementEnd();
|
|
423
|
-
i0.ɵɵelementStart(5, "span",
|
|
452
|
+
i0.ɵɵelementStart(5, "span", 58);
|
|
424
453
|
i0.ɵɵtext(6);
|
|
425
454
|
i0.ɵɵelementEnd()();
|
|
426
455
|
} if (rf & 2) {
|
|
427
456
|
i0.ɵɵnextContext();
|
|
428
|
-
const
|
|
457
|
+
const unroutedErrors_r32 = i0.ɵɵreadContextLet(10);
|
|
429
458
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
430
|
-
i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(
|
|
431
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(
|
|
459
|
+
i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
|
|
460
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
|
|
432
461
|
i0.ɵɵadvance(5);
|
|
433
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(
|
|
462
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r32));
|
|
434
463
|
i0.ɵɵadvance();
|
|
435
|
-
i0.ɵɵtextInterpolate(
|
|
464
|
+
i0.ɵɵtextInterpolate(unroutedErrors_r32);
|
|
436
465
|
} }
|
|
437
466
|
function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
438
467
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
439
|
-
i0.ɵɵelementStart(0, "div",
|
|
468
|
+
i0.ɵɵelementStart(0, "div", 30);
|
|
440
469
|
i0.ɵɵlistener("pointerdown", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointerdown_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeStart($event)); })("pointermove", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeMove($event)); })("pointerup", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); })("pointercancel", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); });
|
|
441
470
|
i0.ɵɵelementEnd();
|
|
442
|
-
i0.ɵɵelementStart(1, "div",
|
|
471
|
+
i0.ɵɵelementStart(1, "div", 31)(2, "button", 32);
|
|
443
472
|
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailPinToggle()); });
|
|
444
|
-
i0.ɵɵelement(3, "i",
|
|
473
|
+
i0.ɵɵelement(3, "i", 33);
|
|
445
474
|
i0.ɵɵelementEnd();
|
|
446
|
-
i0.ɵɵelementStart(4, "button",
|
|
475
|
+
i0.ɵɵelementStart(4, "button", 34);
|
|
447
476
|
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailCollapse()); });
|
|
448
|
-
i0.ɵɵelement(5, "i",
|
|
477
|
+
i0.ɵɵelement(5, "i", 35);
|
|
449
478
|
i0.ɵɵelementEnd()();
|
|
450
|
-
i0.ɵɵelementStart(6, "div",
|
|
451
|
-
i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template, 11,
|
|
452
|
-
i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template,
|
|
479
|
+
i0.ɵɵelementStart(6, "div", 36);
|
|
480
|
+
i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_8_Conditional_2_For_8_Template, 11, 19, "div", 37, _forTrack1);
|
|
481
|
+
i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_9_Template, 12, 16);
|
|
453
482
|
i0.ɵɵdeclareLet(10);
|
|
454
|
-
i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template, 7, 4, "div",
|
|
483
|
+
i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_11_Template, 7, 4, "div", 38);
|
|
455
484
|
i0.ɵɵelementEnd();
|
|
456
485
|
} if (rf & 2) {
|
|
457
486
|
let tmp_9_0;
|
|
@@ -466,13 +495,13 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf,
|
|
|
466
495
|
i0.ɵɵadvance(2);
|
|
467
496
|
i0.ɵɵconditional((tmp_9_0 = ctx_r1.ChromeMoreFolder) ? 9 : -1, tmp_9_0);
|
|
468
497
|
i0.ɵɵadvance();
|
|
469
|
-
const
|
|
498
|
+
const unroutedErrors_r33 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
|
|
470
499
|
i0.ɵɵadvance();
|
|
471
|
-
i0.ɵɵconditional(
|
|
500
|
+
i0.ɵɵconditional(unroutedErrors_r33 > 0 ? 11 : -1);
|
|
472
501
|
} }
|
|
473
502
|
function MjRecordFormContainerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
474
|
-
i0.ɵɵelementStart(0, "nav",
|
|
475
|
-
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template, 8, 8, "button",
|
|
503
|
+
i0.ɵɵelementStart(0, "nav", 23);
|
|
504
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template, 8, 8, "button", 24)(2, MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template, 12, 10);
|
|
476
505
|
i0.ɵɵelementEnd();
|
|
477
506
|
} if (rf & 2) {
|
|
478
507
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -489,7 +518,7 @@ function MjRecordFormContainerComponent_Conditional_11_Template(rf, ctx) { if (r
|
|
|
489
518
|
i0.ɵɵproperty("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent)("FormContext", ctx_r1.FormComponent.formContext)("BakedSectionKeys", ctx_r1.BakedRelatedSectionKeys)("ShowRelatedEntities", ctx_r1.EffectiveShowRelatedEntities);
|
|
490
519
|
} }
|
|
491
520
|
function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
492
|
-
i0.ɵɵelementStart(0, "span",
|
|
521
|
+
i0.ɵɵelementStart(0, "span", 62);
|
|
493
522
|
i0.ɵɵtext(1);
|
|
494
523
|
i0.ɵɵelementEnd();
|
|
495
524
|
} if (rf & 2) {
|
|
@@ -497,16 +526,35 @@ function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf
|
|
|
497
526
|
i0.ɵɵadvance();
|
|
498
527
|
i0.ɵɵtextInterpolate(ctx_r1.MorePreview);
|
|
499
528
|
} }
|
|
529
|
+
function MjRecordFormContainerComponent_Conditional_12_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
530
|
+
i0.ɵɵelementStart(0, "span", 54);
|
|
531
|
+
i0.ɵɵtext(1);
|
|
532
|
+
i0.ɵɵelementEnd();
|
|
533
|
+
} if (rf & 2) {
|
|
534
|
+
i0.ɵɵnextContext();
|
|
535
|
+
const accordionMoreCount_r35 = i0.ɵɵreadContextLet(0);
|
|
536
|
+
i0.ɵɵadvance();
|
|
537
|
+
i0.ɵɵtextInterpolate(accordionMoreCount_r35);
|
|
538
|
+
} }
|
|
539
|
+
function MjRecordFormContainerComponent_Conditional_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
540
|
+
i0.ɵɵdeclareLet(0);
|
|
541
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_12_Conditional_6_Conditional_1_Template, 2, 1, "span", 54);
|
|
542
|
+
} if (rf & 2) {
|
|
543
|
+
const accordionMoreCount_r36 = i0.ɵɵstoreLet(i0.ɵɵnextContext(2).ChromeMoreRowCount);
|
|
544
|
+
i0.ɵɵadvance();
|
|
545
|
+
i0.ɵɵconditional(accordionMoreCount_r36 != null && accordionMoreCount_r36 > 0 ? 1 : -1);
|
|
546
|
+
} }
|
|
500
547
|
function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
501
|
-
const
|
|
502
|
-
i0.ɵɵelementStart(0, "div",
|
|
503
|
-
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
548
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
549
|
+
i0.ɵɵelementStart(0, "div", 59)(1, "button", 60);
|
|
550
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
|
|
504
551
|
i0.ɵɵelement(2, "i");
|
|
505
|
-
i0.ɵɵelementStart(3, "span",
|
|
552
|
+
i0.ɵɵelementStart(3, "span", 61);
|
|
506
553
|
i0.ɵɵtext(4);
|
|
507
554
|
i0.ɵɵelementEnd();
|
|
508
|
-
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template, 2, 1, "span",
|
|
509
|
-
i0.ɵɵ
|
|
555
|
+
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template, 2, 1, "span", 62);
|
|
556
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_12_Conditional_6_Template, 2, 2);
|
|
557
|
+
i0.ɵɵelement(7, "i", 63);
|
|
510
558
|
i0.ɵɵelementEnd()();
|
|
511
559
|
} if (rf & 2) {
|
|
512
560
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -518,6 +566,8 @@ function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (r
|
|
|
518
566
|
i0.ɵɵadvance();
|
|
519
567
|
i0.ɵɵconditional(!ctx_r1.MoreExpanded && ctx_r1.MorePreview ? 5 : -1);
|
|
520
568
|
i0.ɵɵadvance();
|
|
569
|
+
i0.ɵɵconditional(!ctx_r1.MoreExpanded ? 6 : -1);
|
|
570
|
+
i0.ɵɵadvance();
|
|
521
571
|
i0.ɵɵclassProp("fa-chevron-down", ctx_r1.MoreExpanded)("fa-chevron-right", !ctx_r1.MoreExpanded);
|
|
522
572
|
} }
|
|
523
573
|
function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -527,45 +577,45 @@ function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (r
|
|
|
527
577
|
i0.ɵɵproperty("Entity", ctx_r1.Record.EntityInfo.Name)("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent);
|
|
528
578
|
} }
|
|
529
579
|
function MjRecordFormContainerComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
530
|
-
const
|
|
531
|
-
i0.ɵɵelementStart(0, "mj-empty-state",
|
|
532
|
-
i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_14_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(
|
|
580
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
581
|
+
i0.ɵɵelementStart(0, "mj-empty-state", 64);
|
|
582
|
+
i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_14_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
|
|
533
583
|
i0.ɵɵelementEnd();
|
|
534
584
|
} if (rf & 2) {
|
|
535
585
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
536
586
|
i0.ɵɵproperty("Message", "No sections match \"" + ctx_r1.EffectiveSearchFilter + "\". Try a different search term.");
|
|
537
587
|
} }
|
|
538
588
|
function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
539
|
-
const
|
|
540
|
-
i0.ɵɵelementStart(0, "mj-record-changes",
|
|
541
|
-
i0.ɵɵlistener("RestoreRequested", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(
|
|
589
|
+
const _r38 = i0.ɵɵgetCurrentView();
|
|
590
|
+
i0.ɵɵelementStart(0, "mj-record-changes", 65);
|
|
591
|
+
i0.ɵɵlistener("RestoreRequested", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRestoreRequested($event)); })("dialogClosed", function MjRecordFormContainerComponent_Conditional_16_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
|
|
542
592
|
i0.ɵɵelementEnd();
|
|
543
593
|
} if (rf & 2) {
|
|
544
594
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
545
595
|
i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit);
|
|
546
596
|
} }
|
|
547
597
|
function MjRecordFormContainerComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
548
|
-
const
|
|
549
|
-
i0.ɵɵelementStart(0, "mj-record-tags",
|
|
550
|
-
i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(
|
|
598
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
599
|
+
i0.ɵɵelementStart(0, "mj-record-tags", 66);
|
|
600
|
+
i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelClosed()); })("TagCountChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_TagCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagCountChanged($event)); })("RecordNavigate", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_RecordNavigate_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsRecordNavigate($event)); })("WidthChanged", function MjRecordFormContainerComponent_Conditional_17_Template_mj_record_tags_WidthChanged_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
|
|
551
601
|
i0.ɵɵelementEnd();
|
|
552
602
|
} if (rf & 2) {
|
|
553
603
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
554
604
|
i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("WidthPx", ctx_r1.TagsPanelWidth);
|
|
555
605
|
} }
|
|
556
606
|
function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
557
|
-
const
|
|
558
|
-
i0.ɵɵelementStart(0, "mj-record-attachments",
|
|
559
|
-
i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(
|
|
607
|
+
const _r40 = i0.ɵɵgetCurrentView();
|
|
608
|
+
i0.ɵɵelementStart(0, "mj-record-attachments", 67);
|
|
609
|
+
i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r40); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelClosed()); })("AttachmentCountChanged", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_attachments_AttachmentCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
|
|
560
610
|
i0.ɵɵelementEnd();
|
|
561
611
|
} if (rf & 2) {
|
|
562
612
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
563
613
|
i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("Visible", true);
|
|
564
614
|
} }
|
|
565
615
|
function MjRecordFormContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
566
|
-
const
|
|
567
|
-
i0.ɵɵelementStart(0, "mj-list-management-dialog",
|
|
568
|
-
i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(
|
|
616
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
617
|
+
i0.ɵɵelementStart(0, "mj-list-management-dialog", 68);
|
|
618
|
+
i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementComplete($event)); })("cancel", function MjRecordFormContainerComponent_Conditional_19_Template_mj_list_management_dialog_cancel_0_listener() { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
|
|
569
619
|
i0.ɵɵelementEnd();
|
|
570
620
|
} if (rf & 2) {
|
|
571
621
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -608,9 +658,17 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
608
658
|
chrome = inject(FormChromeCoordinator);
|
|
609
659
|
sectionIndicators = inject(FormSectionIndicatorCoordinator);
|
|
610
660
|
slots = inject(FormSlotCoordinator);
|
|
661
|
+
panelAdmin = inject(FormPanelAdminService);
|
|
611
662
|
recordRefresh = inject(FormRecordRefreshCoordinator);
|
|
612
663
|
fieldEdits = inject(FormFieldEditCoordinator);
|
|
613
664
|
host = inject((ElementRef));
|
|
665
|
+
/** The placement dialog's unsaved panel, when this form is the dialog's preview. */
|
|
666
|
+
placementPreview = inject(FORM_PLACEMENT_PREVIEW, { optional: true });
|
|
667
|
+
compositionRegistry = inject(FormCompositionRegistry);
|
|
668
|
+
/** The last snapshot published, as JSON, and the form it was published on. */
|
|
669
|
+
lastComposition = null;
|
|
670
|
+
/** Set in ngOnDestroy, so a late async result schedules nothing and draws nothing. */
|
|
671
|
+
destroyed = false;
|
|
614
672
|
destroy$ = new Subject();
|
|
615
673
|
panelNavReset$ = new Subject();
|
|
616
674
|
chromeResolveTimer = null;
|
|
@@ -640,6 +698,16 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
640
698
|
AttachmentCount = 0;
|
|
641
699
|
/** Number of tracked record change versions for this record */
|
|
642
700
|
VersionCount = 0;
|
|
701
|
+
// ---- Section counts (one batched round trip per saved record) ----
|
|
702
|
+
/** What was requested for the current record; null until a saved record loads. */
|
|
703
|
+
countPlan = null;
|
|
704
|
+
countPhase = 'none';
|
|
705
|
+
/** Bumped per request so a slow response for a previous record is ignored. */
|
|
706
|
+
countRequestToken = 0;
|
|
707
|
+
/** Sections seen with rows this session — never hidden or moved when they empty out (no yank). */
|
|
708
|
+
stickySectionKeys = new Set();
|
|
709
|
+
/** Last resolved `whenEmpty` outcome, applied by chrome + DOM visibility. */
|
|
710
|
+
emptySectionBehavior = new Map();
|
|
643
711
|
/** Controls visibility of list management dialog */
|
|
644
712
|
ShowListManagement = false;
|
|
645
713
|
/** Controls visibility of section manager drawer */
|
|
@@ -829,10 +897,39 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
829
897
|
return ResolveFormToolbarConfig(this.ToolbarConfig ?? DEFAULT_TOOLBAR_CONFIG, this.Fc?.Config);
|
|
830
898
|
}
|
|
831
899
|
get EffectiveRegisteredToolbarItems() {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
900
|
+
const registered = this.Fc?.RegisteredToolbarItems && this.Fc.RegisteredToolbarItems.length > 0
|
|
901
|
+
? this.Fc.RegisteredToolbarItems
|
|
902
|
+
: this.RegisteredToolbarItems;
|
|
903
|
+
const manage = this.managePanelsToolbarItem();
|
|
904
|
+
return manage ? [...registered, manage] : [...registered];
|
|
905
|
+
}
|
|
906
|
+
/** Memoised so the toolbar's identity check does not see a new object every pass. */
|
|
907
|
+
managePanelsItem = null;
|
|
908
|
+
/**
|
|
909
|
+
* The way back out of applying a panel.
|
|
910
|
+
*
|
|
911
|
+
* Offered only when the form carries a contribution someone could switch or remove.
|
|
912
|
+
* Registering it as an overflow toolbar item rather than adding a button to the toolbar
|
|
913
|
+
* keeps the toolbar's own list of actions unchanged, and a form that declares its own
|
|
914
|
+
* items keeps them — this is appended, never substituted.
|
|
915
|
+
*/
|
|
916
|
+
managePanelsToolbarItem() {
|
|
917
|
+
if (!this.HasManageablePanels)
|
|
918
|
+
return null;
|
|
919
|
+
if (!this.managePanelsItem) {
|
|
920
|
+
this.managePanelsItem = {
|
|
921
|
+
Key: 'manage-form-panels',
|
|
922
|
+
Text: 'Manage this form',
|
|
923
|
+
Description: 'Choose your form, hide panels you do not need, and manage the ones you added',
|
|
924
|
+
Icon: 'fa-solid fa-layer-group',
|
|
925
|
+
// Beside the section controls: this acts on the form's chrome, not on the record.
|
|
926
|
+
Placement: 'right',
|
|
927
|
+
Mode: 'both',
|
|
928
|
+
Order: 80,
|
|
929
|
+
OnClick: () => this.OnManagePanels(),
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
return this.managePanelsItem;
|
|
836
933
|
}
|
|
837
934
|
get EffectiveToolbarItemOverrides() {
|
|
838
935
|
if (this.Fc?.ToolbarItemOverrides && this.Fc.ToolbarItemOverrides.size > 0) {
|
|
@@ -901,6 +998,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
901
998
|
.map((panel) => panel.SectionKey);
|
|
902
999
|
}
|
|
903
1000
|
get EffectiveShowRelatedEntities() {
|
|
1001
|
+
if (this.Fc?.OwnsEntireFormBody)
|
|
1002
|
+
return false;
|
|
904
1003
|
return this.Fc?.Config?.ShowRelatedEntities !== false;
|
|
905
1004
|
}
|
|
906
1005
|
get ChromeLayout() {
|
|
@@ -1062,6 +1161,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1062
1161
|
this.slots.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
1063
1162
|
this.scheduleChromeResolve();
|
|
1064
1163
|
});
|
|
1164
|
+
// The placement dialog's preview re-mounts its panel in a slot without any of the
|
|
1165
|
+
// triggers above firing. On a railed form the panel shows only on the tab its key
|
|
1166
|
+
// belongs to, so the rail is worked out again or the panel belongs to none.
|
|
1167
|
+
this.placementPreview?.Changed$.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
1168
|
+
this.scheduleChromeResolve();
|
|
1169
|
+
});
|
|
1065
1170
|
// A section registering / leaving, or reporting an edit, changes what the rail
|
|
1066
1171
|
// shows; the container is OnPush, so re-read on the next pass rather than on the
|
|
1067
1172
|
// 200ms dirty poll below.
|
|
@@ -1103,6 +1208,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1103
1208
|
this.scheduleChromeResolve();
|
|
1104
1209
|
}
|
|
1105
1210
|
ngOnDestroy() {
|
|
1211
|
+
this.destroyed = true;
|
|
1212
|
+
// A count or chrome-rule result still in flight then matches nothing and is dropped.
|
|
1213
|
+
this.countRequestToken++;
|
|
1214
|
+
this.chromeRulesForEntityId = null;
|
|
1215
|
+
this.compositionRegistry.Remove(this);
|
|
1106
1216
|
if (this.chromeResolveTimer) {
|
|
1107
1217
|
clearTimeout(this.chromeResolveTimer);
|
|
1108
1218
|
this.chromeResolveTimer = null;
|
|
@@ -1188,6 +1298,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1188
1298
|
RailWarningTitle(count, where) {
|
|
1189
1299
|
return DescribeSectionWarnings(count, where);
|
|
1190
1300
|
}
|
|
1301
|
+
/** Sum of the row counts of every section in More (shown on the collapsed folder). */
|
|
1302
|
+
get ChromeMoreRowCount() {
|
|
1303
|
+
const keys = this.chrome.Spec.MoreSectionKeys;
|
|
1304
|
+
if (keys.length === 0)
|
|
1305
|
+
return undefined;
|
|
1306
|
+
return this.ChromeGroupRowCount({ Key: MORE_SECTION_KEY, Title: 'More', Icon: '', SectionKeys: keys, IsMore: true });
|
|
1307
|
+
}
|
|
1191
1308
|
ChromeGroupRowCount(group) {
|
|
1192
1309
|
if (!this.Fc?.GetSectionRowCount)
|
|
1193
1310
|
return undefined;
|
|
@@ -1336,6 +1453,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1336
1453
|
this.cdr.detectChanges();
|
|
1337
1454
|
}
|
|
1338
1455
|
scheduleChromeResolve() {
|
|
1456
|
+
if (this.destroyed)
|
|
1457
|
+
return;
|
|
1339
1458
|
if (this.chromeResolveTimer) {
|
|
1340
1459
|
clearTimeout(this.chromeResolveTimer);
|
|
1341
1460
|
}
|
|
@@ -1343,9 +1462,52 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1343
1462
|
this.chromeResolveTimer = null;
|
|
1344
1463
|
this.resolveChrome();
|
|
1345
1464
|
this.applyChromeVisibility();
|
|
1465
|
+
this.showPreviewedPanelTab();
|
|
1346
1466
|
this.cdr.markForCheck();
|
|
1347
1467
|
}, 0);
|
|
1348
1468
|
}
|
|
1469
|
+
/**
|
|
1470
|
+
* On the placement dialog's preview, show the tab where the previewed panel can be seen.
|
|
1471
|
+
*
|
|
1472
|
+
* The preview is read-only and exists to show that panel, so the tab it opens on — the user's
|
|
1473
|
+
* saved tab for the real form — is the wrong one whenever the panel lives elsewhere. Which tab
|
|
1474
|
+
* holds what is this container's own decision, so it is answered here rather than guessed at
|
|
1475
|
+
* from outside. A More child is its own rail item, so it is shown by its key.
|
|
1476
|
+
*/
|
|
1477
|
+
showPreviewedPanelTab() {
|
|
1478
|
+
if (!this.placementPreview?.Registration || this.chrome.Spec.Layout !== 'left-nav')
|
|
1479
|
+
return;
|
|
1480
|
+
const groups = this.chrome.Spec.Groups;
|
|
1481
|
+
const key = this.previewedPanelSectionKey();
|
|
1482
|
+
const group = key ? groups.find((g) => g.Key === key || g.SectionKeys.includes(key)) : undefined;
|
|
1483
|
+
const target = group
|
|
1484
|
+
? (group.IsMore ? key : group.Key)
|
|
1485
|
+
: (groups.find((g) => g.Key === DETAILS_SECTION_KEY) ?? groups.find((g) => !g.IsMore))?.Key;
|
|
1486
|
+
if (target && target !== this.chrome.ActiveGroupKey)
|
|
1487
|
+
this.OnChromeGroupActivate(target);
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* The section whose tab shows the previewed panel.
|
|
1491
|
+
*
|
|
1492
|
+
* A panel that stands in for fields draws inside the section holding them. A panel draws as
|
|
1493
|
+
* its own section. A bare strip draws no section, so the one it replaces is where its effect
|
|
1494
|
+
* shows; with nothing replaced it sits above every tab and there is no section to name.
|
|
1495
|
+
*/
|
|
1496
|
+
previewedPanelSectionKey() {
|
|
1497
|
+
const reg = this.placementPreview?.Registration;
|
|
1498
|
+
if (!reg)
|
|
1499
|
+
return null;
|
|
1500
|
+
const mark = this.host.nativeElement.querySelector('[data-placement-preview]');
|
|
1501
|
+
const inSection = mark?.parentElement?.closest('mj-collapsible-panel[data-section-key]');
|
|
1502
|
+
if (inSection)
|
|
1503
|
+
return inSection.getAttribute('data-section-key');
|
|
1504
|
+
const bare = (reg.Presentation ?? reg.Metadata.presentation) === 'bare';
|
|
1505
|
+
// A bare strip that replaces blocks is a member of their tab under its own key; one that
|
|
1506
|
+
// replaces nothing sits above every tab and names no section.
|
|
1507
|
+
if (!bare || ReplacedSectionKeys(reg.Metadata).length > 0)
|
|
1508
|
+
return reg.Metadata.contributionKey ?? null;
|
|
1509
|
+
return null;
|
|
1510
|
+
}
|
|
1349
1511
|
loadChromeRulesIfNeeded() {
|
|
1350
1512
|
const entityId = this.EffectiveEntityInfo?.ID ?? null;
|
|
1351
1513
|
if (!entityId || this.chromeRulesForEntityId === entityId)
|
|
@@ -1355,6 +1517,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1355
1517
|
}
|
|
1356
1518
|
async loadChromeRules(entityId) {
|
|
1357
1519
|
const rules = await LoadFormChromeRules(entityId, this.ProviderToUse);
|
|
1520
|
+
// Also false once the container is destroyed (ngOnDestroy clears the id).
|
|
1358
1521
|
if (this.chromeRulesForEntityId !== entityId)
|
|
1359
1522
|
return;
|
|
1360
1523
|
this.chromeRules = rules;
|
|
@@ -1365,18 +1528,22 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1365
1528
|
if (!entity)
|
|
1366
1529
|
return;
|
|
1367
1530
|
this.loadChromeRulesIfNeeded();
|
|
1531
|
+
// Read once for this resolve; every step below uses the same hidden sections and panels.
|
|
1532
|
+
const hidden = this.contributionHiddenSectionKeys();
|
|
1533
|
+
const panels = this.chromePanelSnapshots(hidden);
|
|
1368
1534
|
const result = ResolveFormChrome({
|
|
1369
1535
|
Entity: entity,
|
|
1370
|
-
Panels:
|
|
1536
|
+
Panels: panels,
|
|
1371
1537
|
RelatedSchemaByEntityId: this.buildRelatedSchemaMap(entity),
|
|
1372
1538
|
InboundRelationshipCountByEntityId: this.buildInboundRelationshipCounts(),
|
|
1373
|
-
HiddenSectionKeys: [...
|
|
1539
|
+
HiddenSectionKeys: [...hidden],
|
|
1374
1540
|
ContributionSectionKeys: this.contributionSectionKeys(),
|
|
1375
|
-
ContributionChromeGroupByKey: this.contributionChromeGroupByKey(),
|
|
1541
|
+
ContributionChromeGroupByKey: this.contributionChromeGroupByKey(panels),
|
|
1376
1542
|
ContributionInclusionByKey: this.contributionInclusionByKey(),
|
|
1377
1543
|
ContributionSortKeyByKey: this.contributionSortKeyByKey(),
|
|
1378
1544
|
ChromeRules: this.chromeRules,
|
|
1379
1545
|
IncludeUnbakedRelated: this.EffectiveShowRelatedEntities,
|
|
1546
|
+
EmptySectionBehavior: this.refreshEmptySectionBehavior(),
|
|
1380
1547
|
Membership: {
|
|
1381
1548
|
moreSectionKeys: this.Fc?.getMoreSectionKeys?.() ?? [],
|
|
1382
1549
|
firstClassSectionKeys: this.Fc?.getFirstClassSectionKeys?.() ?? [],
|
|
@@ -1392,6 +1559,162 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1392
1559
|
this.expandActiveGroupSections(this.chrome.ActiveGroupKey);
|
|
1393
1560
|
}
|
|
1394
1561
|
this.AfterLayoutResolved.emit(new AfterLayoutResolvedEventArgs(result.Spec.Layout));
|
|
1562
|
+
if (this.Fc)
|
|
1563
|
+
this.Fc.ChromeLayout = result.Spec.Layout;
|
|
1564
|
+
this.warnUnmatchedReplaceKeys();
|
|
1565
|
+
this.warnUnmatchedFieldClaims();
|
|
1566
|
+
this.publishCompositionSnapshot(result.Spec, panels);
|
|
1567
|
+
}
|
|
1568
|
+
warnedReplaceKeys = new Set();
|
|
1569
|
+
warnedFieldClaims = new Set();
|
|
1570
|
+
/**
|
|
1571
|
+
* Contributions that may act on this form. Empty when the form suppresses them — a
|
|
1572
|
+
* full custom entity form owns its body, so nothing may mount on it, claim one of its
|
|
1573
|
+
* sections, or hide a related grid it would otherwise show.
|
|
1574
|
+
*/
|
|
1575
|
+
formContributionRegistrations() {
|
|
1576
|
+
if (this.Fc?.OwnsEntireFormBody)
|
|
1577
|
+
return [];
|
|
1578
|
+
return CollectFormContributionRegistrations(this.EffectiveEntityInfo, this.ProviderToUse, { Preview: this.placementPreview });
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* This form's contributions after the one collapse every renderer shares: the winner per key,
|
|
1582
|
+
* and the winners the rail files. The rail, the counts, the chrome groups and the warnings all
|
|
1583
|
+
* read this value, so they agree with the slots about which panel holds a key.
|
|
1584
|
+
*/
|
|
1585
|
+
resolvedContributions() {
|
|
1586
|
+
const entityName = this.EffectiveEntityInfo?.Name;
|
|
1587
|
+
return entityName
|
|
1588
|
+
? ResolveFormContributionWinners(entityName, this.formContributionRegistrations())
|
|
1589
|
+
: NO_RESOLVED_CONTRIBUTIONS;
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* A section a winner stands in for that this form does not draw hides nothing, and the
|
|
1593
|
+
* contribution mounts beside the section it meant to replace. Section keys are not a
|
|
1594
|
+
* closed set (custom forms invent their own), so this is validated and reported rather
|
|
1595
|
+
* than restricted. A rail tab's key is a tab claim, and matches when the tab has sections.
|
|
1596
|
+
* Wildcard panels are skipped: they act on every form, so most forms lack what they name.
|
|
1597
|
+
*/
|
|
1598
|
+
warnUnmatchedReplaceKeys() {
|
|
1599
|
+
const entity = this.EffectiveEntityInfo;
|
|
1600
|
+
if (!entity)
|
|
1601
|
+
return;
|
|
1602
|
+
const present = this.presentSectionKeys();
|
|
1603
|
+
const tabMembers = this.railTabMembership();
|
|
1604
|
+
for (const reg of this.resolvedContributions().Winners) {
|
|
1605
|
+
if (reg.Metadata.entity === '*')
|
|
1606
|
+
continue;
|
|
1607
|
+
const tabKey = reg.Metadata.replacesSectionKey?.trim();
|
|
1608
|
+
for (const key of ReplacedSectionKeys(reg.Metadata)) {
|
|
1609
|
+
if (present.has(key) || this.warnedReplaceKeys.has(key))
|
|
1610
|
+
continue;
|
|
1611
|
+
if (key === tabKey && tabMembers(key).length > 0)
|
|
1612
|
+
continue;
|
|
1613
|
+
this.warnedReplaceKeys.add(key);
|
|
1614
|
+
const id = ResolveContributionKey(reg.Metadata) || reg.RowID || 'unknown';
|
|
1615
|
+
console.warn(`[mj-record-form-container] contribution ${id} replaces section "${key}", but the ` +
|
|
1616
|
+
`${entity.Name} form has no section or tab with that key. Nothing was hidden.`);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* A winner drawn inside a section that no section on this form hosts renders nowhere at all.
|
|
1622
|
+
*
|
|
1623
|
+
* Unlike a section claim, which still mounts beside the section it meant to replace, such a
|
|
1624
|
+
* panel is mounted by the section named by its `inSectionKey` or drawing one of its claimed
|
|
1625
|
+
* fields — so when there is none, the panel is simply absent. That is a worse silence than a
|
|
1626
|
+
* misplaced panel, which is why it is reported separately. Wildcard panels are skipped.
|
|
1627
|
+
*/
|
|
1628
|
+
warnUnmatchedFieldClaims() {
|
|
1629
|
+
const entity = this.EffectiveEntityInfo;
|
|
1630
|
+
if (!entity)
|
|
1631
|
+
return;
|
|
1632
|
+
const drawn = new Set();
|
|
1633
|
+
for (const panel of this.allChromePanels()) {
|
|
1634
|
+
for (const field of panel.ClaimableFields)
|
|
1635
|
+
drawn.add(field.Name);
|
|
1636
|
+
}
|
|
1637
|
+
const sections = this.presentSectionKeys();
|
|
1638
|
+
if (drawn.size === 0 && sections.size === 0)
|
|
1639
|
+
return;
|
|
1640
|
+
for (const reg of this.resolvedContributions().Winners) {
|
|
1641
|
+
if (reg.Metadata.entity === '*')
|
|
1642
|
+
continue;
|
|
1643
|
+
const reason = unhostedSectionClaim(reg.Metadata, sections, drawn);
|
|
1644
|
+
if (!reason)
|
|
1645
|
+
continue;
|
|
1646
|
+
const id = ResolveContributionKey(reg.Metadata) || reg.RowID || 'unknown';
|
|
1647
|
+
if (this.warnedFieldClaims.has(id))
|
|
1648
|
+
continue;
|
|
1649
|
+
this.warnedFieldClaims.add(id);
|
|
1650
|
+
console.warn(`[mj-record-form-container] contribution ${id} ${reason.Claim}, but the ${entity.Name} form ` +
|
|
1651
|
+
`${reason.Missing}. The panel has no section to render in.`);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
/** Section keys of every panel on the form: the projected ones and the slot-mounted ones. */
|
|
1655
|
+
presentSectionKeys() {
|
|
1656
|
+
return new Set([
|
|
1657
|
+
...this.allChromePanels().map((p) => p.SectionKey),
|
|
1658
|
+
...this.domPanelSnapshots().map((p) => p.SectionKey),
|
|
1659
|
+
]);
|
|
1660
|
+
}
|
|
1661
|
+
/**
|
|
1662
|
+
* Publish what is actually on this form: through `CompositionChanged`, which the record tab
|
|
1663
|
+
* turns into the agent's compact form context, and into the {@link FormCompositionRegistry},
|
|
1664
|
+
* where the apply flow reads the whole snapshot. Every section is listed; the ones the form
|
|
1665
|
+
* does not show are marked hidden. A snapshot equal to the last one published on the same
|
|
1666
|
+
* form is not published again. The placement dialog's preview is not registered: it is not a
|
|
1667
|
+
* form the user has open.
|
|
1668
|
+
*
|
|
1669
|
+
* @param shown The sections the form shows, as the chrome resolve used them.
|
|
1670
|
+
*/
|
|
1671
|
+
publishCompositionSnapshot(spec, shown = this.chromePanelSnapshots()) {
|
|
1672
|
+
const entity = this.EffectiveEntityInfo;
|
|
1673
|
+
const form = this.Fc;
|
|
1674
|
+
if (!entity || !form)
|
|
1675
|
+
return;
|
|
1676
|
+
const shownKeys = new Set(shown.map((p) => p.SectionKey));
|
|
1677
|
+
const panels = this.chromePanelSnapshots(new Set(), true);
|
|
1678
|
+
const hiddenSectionKeys = new Set(panels.map((p) => p.SectionKey).filter((key) => !shownKeys.has(key)));
|
|
1679
|
+
const hiddenContributionKeys = new Set([...this.contributionInclusionByKey()].filter(([, inclusion]) => inclusion === 'None').map(([key]) => key));
|
|
1680
|
+
// With the panels this user hid, marked hidden: the apply flow reads a key's holder from
|
|
1681
|
+
// here, and a hidden panel still holds its key.
|
|
1682
|
+
const registrations = this.Fc?.OwnsEntireFormBody
|
|
1683
|
+
? []
|
|
1684
|
+
: CollectFormContributionRegistrations(entity, this.ProviderToUse, { IncludeHidden: true, Preview: this.placementPreview });
|
|
1685
|
+
const record = form.record;
|
|
1686
|
+
const snapshot = BuildFormCompositionSnapshot({
|
|
1687
|
+
EntityName: entity.Name,
|
|
1688
|
+
RecordPrimaryKey: record?.IsSaved ? record.PrimaryKey.ToURLSegment() : null,
|
|
1689
|
+
FormChoice: {
|
|
1690
|
+
FullCustomForm: form.OwnsEntireFormBody === true,
|
|
1691
|
+
OverrideID: this.EffectiveCurrentVariantID,
|
|
1692
|
+
Label: this.CurrentVariantLabel,
|
|
1693
|
+
},
|
|
1694
|
+
Layout: spec.Layout,
|
|
1695
|
+
Groups: spec.Groups,
|
|
1696
|
+
Panels: panels,
|
|
1697
|
+
HiddenSectionKeys: hiddenSectionKeys,
|
|
1698
|
+
RelatedEntities: this.Fc?.OwnsEntireFormBody ? [] : (entity.RelatedEntities ?? []),
|
|
1699
|
+
IsaChildEntityIDs: (entity.ChildEntities ?? []).map((c) => c.ID),
|
|
1700
|
+
BakedSectionKeys: this.BakedRelatedSectionKeys,
|
|
1701
|
+
Registrations: registrations,
|
|
1702
|
+
HiddenPanelKeys: HiddenPanelKeys(entity.Name),
|
|
1703
|
+
RelatedRoles: spec.RelatedRoles,
|
|
1704
|
+
HiddenContributionKeys: hiddenContributionKeys,
|
|
1705
|
+
SlotsPresent: this.Fc?.OwnsEntireFormBody ? [] : this.slots.PresentSlots,
|
|
1706
|
+
ChromeRuleCount: this.chromeRules.length,
|
|
1707
|
+
});
|
|
1708
|
+
// The builder emits a fixed key order, so equal snapshots have equal JSON.
|
|
1709
|
+
const json = JSON.stringify(snapshot);
|
|
1710
|
+
const last = this.lastComposition;
|
|
1711
|
+
if (last && last.Form === form && last.Json === json)
|
|
1712
|
+
return;
|
|
1713
|
+
this.lastComposition = { Form: form, Json: json };
|
|
1714
|
+
form.CompositionSnapshot = snapshot;
|
|
1715
|
+
if (!this.placementPreview)
|
|
1716
|
+
this.compositionRegistry.Publish(this, snapshot);
|
|
1717
|
+
form.CompositionChanged.emit(snapshot);
|
|
1395
1718
|
}
|
|
1396
1719
|
expandActiveGroupSections(groupKey) {
|
|
1397
1720
|
if (groupKey === MORE_SECTION_KEY)
|
|
@@ -1497,7 +1820,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1497
1820
|
panel.Hidden = !this.chrome.IsAccordionSectionVisible(panel.SectionKey);
|
|
1498
1821
|
}
|
|
1499
1822
|
}
|
|
1500
|
-
this.applyChromeDomVisibility();
|
|
1823
|
+
this.applyChromeDomVisibility(claimed);
|
|
1501
1824
|
}
|
|
1502
1825
|
/**
|
|
1503
1826
|
* Slot-mounted panels are view children of the slot, not ContentChildren
|
|
@@ -1505,16 +1828,23 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1505
1828
|
* coordinator. Toggle host classes on every `mj-collapsible-panel` in
|
|
1506
1829
|
* the live DOM so left-nav hide/show still reaches them.
|
|
1507
1830
|
*/
|
|
1508
|
-
applyChromeDomVisibility() {
|
|
1831
|
+
applyChromeDomVisibility(claimed) {
|
|
1509
1832
|
const host = this.host.nativeElement;
|
|
1510
1833
|
if (!host)
|
|
1511
1834
|
return;
|
|
1512
1835
|
const layout = this.chrome.Spec.Layout;
|
|
1513
1836
|
const detailsKeys = [];
|
|
1837
|
+
const detailsOrder = new Map();
|
|
1838
|
+
// A bare strip that replaces blocks shows only on the tab it belongs to. It is hidden by
|
|
1839
|
+
// its own style because it lives in another component's view, out of this one's CSS.
|
|
1840
|
+
host.querySelectorAll('[data-bare-section-key]').forEach((node) => {
|
|
1841
|
+
const key = node.getAttribute('data-bare-section-key') ?? '';
|
|
1842
|
+
node.style.display = !key || this.isChromeKeyVisible(key, 'default', claimed) ? '' : 'none';
|
|
1843
|
+
});
|
|
1514
1844
|
host.querySelectorAll('mj-collapsible-panel').forEach((node) => {
|
|
1515
1845
|
const key = node.getAttribute('data-section-key') ?? '';
|
|
1516
1846
|
const variant = node.getAttribute('data-variant') ?? 'default';
|
|
1517
|
-
const visible = this.isChromeKeyVisible(key, variant);
|
|
1847
|
+
const visible = this.isChromeKeyVisible(key, variant, claimed);
|
|
1518
1848
|
const inMore = this.chrome.Spec.MoreSectionKeys.includes(key);
|
|
1519
1849
|
node.classList.toggle('mj-chrome-show', layout === 'left-nav' && visible);
|
|
1520
1850
|
node.classList.toggle('mj-chrome-hidden', !visible);
|
|
@@ -1532,12 +1862,16 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1532
1862
|
// excludes it, or it has no renderable content while empty fields are
|
|
1533
1863
|
// hidden) is display: none — it must not hold a card edge, or the
|
|
1534
1864
|
// visible card loses that border, radius and edge padding.
|
|
1535
|
-
if (isDetails && !node.classList.contains('mj-search-hidden'))
|
|
1865
|
+
if (isDetails && !node.classList.contains('mj-search-hidden')) {
|
|
1536
1866
|
detailsKeys.push(key);
|
|
1867
|
+
detailsOrder.set(key, this.visualOrderOf(node, key));
|
|
1868
|
+
}
|
|
1537
1869
|
});
|
|
1538
|
-
// The card's top and bottom edges follow the VISUAL order
|
|
1539
|
-
//
|
|
1540
|
-
|
|
1870
|
+
// The card's top and bottom edges follow the VISUAL order — the CSS `order` each
|
|
1871
|
+
// panel actually carries, not what the form's section list would have given it. A
|
|
1872
|
+
// contribution is in no such list, so asking the form would place every one of them
|
|
1873
|
+
// last and draw the card's top edge under the panel instead of above it.
|
|
1874
|
+
const edges = DetailsCardEdges(detailsKeys, (k) => detailsOrder.get(k) ?? 0);
|
|
1541
1875
|
host.querySelectorAll('mj-collapsible-panel.mj-chrome-details').forEach((node) => {
|
|
1542
1876
|
const key = node.getAttribute('data-section-key') ?? '';
|
|
1543
1877
|
node.classList.toggle('mj-chrome-details-first', key === edges.First);
|
|
@@ -1547,8 +1881,24 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1547
1881
|
node.classList.remove('mj-chrome-details-first', 'mj-chrome-details-last');
|
|
1548
1882
|
});
|
|
1549
1883
|
}
|
|
1550
|
-
|
|
1551
|
-
|
|
1884
|
+
/**
|
|
1885
|
+
* The CSS `order` a panel is laid out with.
|
|
1886
|
+
*
|
|
1887
|
+
* Read from the element, because a panel sets its own: a slot-mounted contribution
|
|
1888
|
+
* orders itself by its slot band, and only the panel knows which. The form's section
|
|
1889
|
+
* list is the fallback for anything that has not bound an order yet.
|
|
1890
|
+
*/
|
|
1891
|
+
visualOrderOf(node, sectionKey) {
|
|
1892
|
+
const inline = node.style?.order;
|
|
1893
|
+
const parsed = inline ? Number(inline) : Number.NaN;
|
|
1894
|
+
if (Number.isFinite(parsed))
|
|
1895
|
+
return parsed;
|
|
1896
|
+
return this.FormComponent?.getSectionDisplayOrder(sectionKey) ?? 0;
|
|
1897
|
+
}
|
|
1898
|
+
isChromeKeyVisible(sectionKey, variant, claimed) {
|
|
1899
|
+
if (claimed.has(sectionKey))
|
|
1900
|
+
return false;
|
|
1901
|
+
if (this.emptySectionBehavior.get(sectionKey) === 'hide')
|
|
1552
1902
|
return false;
|
|
1553
1903
|
if (this.chrome.Spec.Layout === 'accordion') {
|
|
1554
1904
|
return this.chrome.IsAccordionSectionVisible(sectionKey);
|
|
@@ -1558,80 +1908,161 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1558
1908
|
}
|
|
1559
1909
|
return this.chrome.IsFirstClassSectionVisible(sectionKey);
|
|
1560
1910
|
}
|
|
1911
|
+
/** The section keys the rail files contributions by. */
|
|
1561
1912
|
contributionSectionKeys() {
|
|
1562
|
-
return this.
|
|
1913
|
+
return [...this.resolvedContributions().RailItems.keys()];
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* The sections a contribution has claimed a whole rail tab from, across every such claim.
|
|
1917
|
+
*
|
|
1918
|
+
* A rail tab is assembled at render time, so it has no panel a contribution could name
|
|
1919
|
+
* one-to-one. A contribution naming a TAB's key instead means "stand in for that tab",
|
|
1920
|
+
* and this expands it to the sections that tab is made of. Its own panel is left alone,
|
|
1921
|
+
* and so is every other tab on the form.
|
|
1922
|
+
*
|
|
1923
|
+
* No tab is privileged: Details is one key among the rail's, and a contribution may name
|
|
1924
|
+
* any of them.
|
|
1925
|
+
*/
|
|
1926
|
+
railTabSectionKeys() {
|
|
1927
|
+
const claimed = this.claimedRailTabKeys();
|
|
1928
|
+
if (claimed.length === 0)
|
|
1929
|
+
return [];
|
|
1930
|
+
const membersOf = this.railTabMembership();
|
|
1931
|
+
const keys = new Set();
|
|
1932
|
+
for (const tab of claimed) {
|
|
1933
|
+
for (const key of membersOf(tab))
|
|
1934
|
+
keys.add(key);
|
|
1935
|
+
}
|
|
1936
|
+
return [...keys];
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* The sections a rail tab is made of, other than contributions' own, for any tab key. Read
|
|
1940
|
+
* from the live panels rather than the resolved chrome spec, because the spec is computed
|
|
1941
|
+
* FROM the sections a tab claim hides — asking it here would be circular.
|
|
1942
|
+
*/
|
|
1943
|
+
railTabMembership() {
|
|
1944
|
+
const mine = this.contributionSectionKeys();
|
|
1945
|
+
const panels = this.allChromePanels()
|
|
1946
|
+
.filter((panel) => !!panel.SectionKey)
|
|
1947
|
+
.map((panel) => ({
|
|
1948
|
+
SectionKey: panel.SectionKey,
|
|
1949
|
+
SectionName: panel.SectionName,
|
|
1950
|
+
Variant: panel.Variant,
|
|
1951
|
+
}));
|
|
1952
|
+
return (tab) => RailGroupSectionKeys(panels, mine, tab).filter((key) => !mine.includes(key));
|
|
1563
1953
|
}
|
|
1564
|
-
|
|
1954
|
+
/**
|
|
1955
|
+
* Rail tab keys named by a winning contribution's `replacesSectionKey`.
|
|
1956
|
+
*
|
|
1957
|
+
* A key that matches a panel on the form is that panel, not a tab, and is handled by the
|
|
1958
|
+
* ordinary single-section claim. Only a key matching no panel can be a tab's. A wildcard
|
|
1959
|
+
* panel's claim is ignored, as the composer ignores it.
|
|
1960
|
+
*/
|
|
1961
|
+
claimedRailTabKeys() {
|
|
1962
|
+
const panelKeys = new Set(this.allChromePanels().map((panel) => panel.SectionKey));
|
|
1963
|
+
const out = [];
|
|
1964
|
+
for (const reg of this.resolvedContributions().Winners) {
|
|
1965
|
+
if (IsWildcardPlaceClaim(reg.Metadata))
|
|
1966
|
+
continue;
|
|
1967
|
+
const key = reg.Metadata.replacesSectionKey?.trim();
|
|
1968
|
+
if (!key)
|
|
1969
|
+
continue;
|
|
1970
|
+
if (key === DETAILS_SECTION_KEY || key === MORE_SECTION_KEY || !panelKeys.has(key))
|
|
1971
|
+
out.push(key);
|
|
1972
|
+
}
|
|
1973
|
+
return out;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* Which rail item each contribution belongs to.
|
|
1977
|
+
*
|
|
1978
|
+
* An explicit `chromeGroup` wins. Otherwise a contribution that replaces a section
|
|
1979
|
+
* inherits that section's group, because replacing something means standing where it
|
|
1980
|
+
* stood: a panel put in place of a field section belongs in the Details tab that section
|
|
1981
|
+
* was part of, not in a rail item of its own beside it. Without this the replaced section
|
|
1982
|
+
* disappears and the panel surfaces somewhere else, so the form loses a section and gains
|
|
1983
|
+
* a tab and neither is what was asked for. A panel drawn inside a section belongs to that
|
|
1984
|
+
* section's rail item the same way. Anything else goes to the item its slot sits in, unless it
|
|
1985
|
+
* declared an `inclusion` — that is more specific than the slot (see DefaultContributionChromeGroup).
|
|
1986
|
+
*
|
|
1987
|
+
* Derived here rather than written to the row, because which rail item a section belongs
|
|
1988
|
+
* to is a property of the rendered form. The same contribution on an accordion form, or
|
|
1989
|
+
* on a form whose layout later changes, would need a different answer.
|
|
1990
|
+
*/
|
|
1991
|
+
contributionChromeGroupByKey(panels) {
|
|
1565
1992
|
const map = new Map();
|
|
1566
|
-
for (const
|
|
1567
|
-
|
|
1568
|
-
|
|
1993
|
+
for (const [key, reg] of this.resolvedContributions().RailItems) {
|
|
1994
|
+
const meta = reg.Metadata;
|
|
1995
|
+
if (meta.chromeGroup === 'details' || meta.chromeGroup === 'more') {
|
|
1996
|
+
map.set(key, meta.chromeGroup);
|
|
1997
|
+
continue;
|
|
1998
|
+
}
|
|
1999
|
+
const hostSection = ContributionDrawsInSection(meta)
|
|
2000
|
+
? PlacedInSectionKey(meta) || SectionDrawingAnyField(panels, meta.replacesFieldNames ?? [])
|
|
2001
|
+
: undefined;
|
|
2002
|
+
const group = this.groupOfReplacedSection(ReplacedSectionKeys(meta)[0])
|
|
2003
|
+
?? this.groupOfReplacedSection(hostSection)
|
|
2004
|
+
?? DefaultContributionChromeGroup(meta.slot, ReadRegisteredInclusion(meta.inclusion) !== null);
|
|
2005
|
+
if (group)
|
|
2006
|
+
map.set(key, group);
|
|
1569
2007
|
}
|
|
1570
2008
|
return map;
|
|
1571
2009
|
}
|
|
2010
|
+
/**
|
|
2011
|
+
* The rail item a replaced section sat in. Read from the live panels, and from the
|
|
2012
|
+
* slot-mounted ones in the DOM, because a replaced panel is hidden and so is already
|
|
2013
|
+
* out of the resolved chrome spec by the time this is asked.
|
|
2014
|
+
*/
|
|
2015
|
+
groupOfReplacedSection(sectionKey) {
|
|
2016
|
+
if (!sectionKey)
|
|
2017
|
+
return null;
|
|
2018
|
+
const panel = this.allChromePanels().find((p) => p.SectionKey === sectionKey)
|
|
2019
|
+
?? this.domPanelSnapshots().find((p) => p.SectionKey === sectionKey);
|
|
2020
|
+
return ReplacedSectionChromeGroup(sectionKey, panel);
|
|
2021
|
+
}
|
|
1572
2022
|
contributionInclusionByKey() {
|
|
1573
2023
|
const map = new Map();
|
|
1574
|
-
for (const
|
|
1575
|
-
|
|
1576
|
-
|
|
2024
|
+
for (const [key, reg] of this.resolvedContributions().RailItems) {
|
|
2025
|
+
const inclusion = ReadRegisteredInclusion(reg.Metadata.inclusion);
|
|
2026
|
+
if (inclusion)
|
|
2027
|
+
map.set(key, inclusion);
|
|
1577
2028
|
}
|
|
1578
2029
|
return map;
|
|
1579
2030
|
}
|
|
1580
2031
|
contributionSortKeyByKey() {
|
|
1581
2032
|
const map = new Map();
|
|
1582
|
-
for (const
|
|
1583
|
-
|
|
1584
|
-
|
|
2033
|
+
for (const [key, reg] of this.resolvedContributions().RailItems) {
|
|
2034
|
+
const sortKey = reg.Metadata.sortKey;
|
|
2035
|
+
if (typeof sortKey === 'number' && Number.isFinite(sortKey))
|
|
2036
|
+
map.set(key, sortKey);
|
|
1585
2037
|
}
|
|
1586
2038
|
return map;
|
|
1587
2039
|
}
|
|
1588
|
-
/**
|
|
1589
|
-
* Winning registration per contribution key (highest ClassFactory Priority).
|
|
1590
|
-
* Headers are not rail sections.
|
|
1591
|
-
*/
|
|
1592
|
-
contributionRegistrations() {
|
|
1593
|
-
const entityName = this.EffectiveEntityInfo?.Name;
|
|
1594
|
-
if (!entityName)
|
|
1595
|
-
return [];
|
|
1596
|
-
const byKey = new Map();
|
|
1597
|
-
const regs = [...CollectFormPanelRegistrations()].sort((a, b) => (a.Priority ?? 0) - (b.Priority ?? 0));
|
|
1598
|
-
for (const reg of regs) {
|
|
1599
|
-
const meta = reg.Metadata;
|
|
1600
|
-
if (!meta || meta.entity !== entityName)
|
|
1601
|
-
continue;
|
|
1602
|
-
if (meta.contributionKey === 'header')
|
|
1603
|
-
continue;
|
|
1604
|
-
const key = contributionRailKey(meta);
|
|
1605
|
-
if (!key)
|
|
1606
|
-
continue;
|
|
1607
|
-
byKey.set(key, {
|
|
1608
|
-
Key: key,
|
|
1609
|
-
Inclusion: ReadRegisteredInclusion(meta.inclusion),
|
|
1610
|
-
SortKey: typeof meta.sortKey === 'number' && Number.isFinite(meta.sortKey) ? meta.sortKey : null,
|
|
1611
|
-
ChromeGroup: meta.chromeGroup === 'details' || meta.chromeGroup === 'more' ? meta.chromeGroup : null,
|
|
1612
|
-
Priority: reg.Priority ?? 0,
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
return [...byKey.values()];
|
|
1616
|
-
}
|
|
1617
2040
|
contributionHiddenSectionKeys() {
|
|
1618
2041
|
const hidden = this.hiddenChromeSectionKeys();
|
|
1619
2042
|
const entity = this.EffectiveEntityInfo;
|
|
1620
2043
|
if (!entity)
|
|
1621
2044
|
return hidden;
|
|
1622
|
-
const claimed = ContributionHiddenSectionKeys(entity.Name, entity.RelatedEntities ?? [], (entity.ChildEntities ?? []).map((child) => child.ID),
|
|
2045
|
+
const claimed = ContributionHiddenSectionKeys(entity.Name, entity.RelatedEntities ?? [], (entity.ChildEntities ?? []).map((child) => child.ID), this.formContributionRegistrations());
|
|
1623
2046
|
for (const key of claimed)
|
|
1624
2047
|
hidden.add(key);
|
|
2048
|
+
for (const key of this.railTabSectionKeys())
|
|
2049
|
+
hidden.add(key);
|
|
1625
2050
|
return hidden;
|
|
1626
2051
|
}
|
|
1627
|
-
|
|
1628
|
-
|
|
2052
|
+
/**
|
|
2053
|
+
* The sections on the form, once each, in panel order.
|
|
2054
|
+
*
|
|
2055
|
+
* @param skip Section keys to leave out.
|
|
2056
|
+
* @param keepHidden Keep the sections the form's own config hides too, rather than leaving
|
|
2057
|
+
* them out.
|
|
2058
|
+
*/
|
|
2059
|
+
chromePanelSnapshots(skip = this.contributionHiddenSectionKeys(), keepHidden = false) {
|
|
1629
2060
|
const ctx = this.Fc?.formContext;
|
|
1630
2061
|
const byKey = new Map();
|
|
1631
2062
|
const add = (snapshot) => {
|
|
1632
2063
|
if (!snapshot.SectionKey || skip.has(snapshot.SectionKey))
|
|
1633
2064
|
return;
|
|
1634
|
-
if (IsFormSectionHidden(ctx, snapshot.SectionKey, snapshot.Variant))
|
|
2065
|
+
if (!keepHidden && IsFormSectionHidden(ctx, snapshot.SectionKey, snapshot.Variant))
|
|
1635
2066
|
return;
|
|
1636
2067
|
if (!byKey.has(snapshot.SectionKey)) {
|
|
1637
2068
|
byKey.set(snapshot.SectionKey, snapshot);
|
|
@@ -1645,6 +2076,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1645
2076
|
SectionName: panel.SectionName,
|
|
1646
2077
|
Variant: panel.Variant,
|
|
1647
2078
|
Icon: panel.Icon,
|
|
2079
|
+
Fields: panel.ClaimableFields,
|
|
1648
2080
|
});
|
|
1649
2081
|
}
|
|
1650
2082
|
for (const snapshot of this.domPanelSnapshots()) {
|
|
@@ -1671,6 +2103,14 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1671
2103
|
Icon: node.getAttribute('data-icon') || undefined,
|
|
1672
2104
|
});
|
|
1673
2105
|
});
|
|
2106
|
+
// A bare strip that replaces blocks belongs to their tab. It draws no collapsible panel, so
|
|
2107
|
+
// it marks itself; counted here, it keeps a tab whose every block it replaced.
|
|
2108
|
+
host.querySelectorAll('[data-bare-section-key]').forEach((node) => {
|
|
2109
|
+
const sectionKey = node.getAttribute('data-bare-section-key') ?? '';
|
|
2110
|
+
if (!sectionKey)
|
|
2111
|
+
return;
|
|
2112
|
+
out.push({ SectionKey: sectionKey, SectionName: node.getAttribute('data-bare-title') || sectionKey, Variant: 'default' });
|
|
2113
|
+
});
|
|
1674
2114
|
return out;
|
|
1675
2115
|
}
|
|
1676
2116
|
hiddenChromeSectionKeys() {
|
|
@@ -1681,7 +2121,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1681
2121
|
EntityName: entity.Name,
|
|
1682
2122
|
RelatedEntities: entity.RelatedEntities ?? [],
|
|
1683
2123
|
IsaChildEntityIDs: (entity.ChildEntities ?? []).map((child) => child.ID),
|
|
1684
|
-
Registrations:
|
|
2124
|
+
Registrations: this.formContributionRegistrations(),
|
|
1685
2125
|
BakedSectionKeys: this.BakedRelatedSectionKeys,
|
|
1686
2126
|
ShowRelatedEntities: this.EffectiveShowRelatedEntities,
|
|
1687
2127
|
});
|
|
@@ -1716,7 +2156,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1716
2156
|
}
|
|
1717
2157
|
/** Delegates to the pure decision in `form-chrome-rail-pref`, supplying this form's registrations. */
|
|
1718
2158
|
unsavedLeadGroupKey() {
|
|
1719
|
-
|
|
2159
|
+
const railItems = this.resolvedContributions().RailItems;
|
|
2160
|
+
const keyByMetadata = new Map([...railItems].map(([key, reg]) => [reg.Metadata, key]));
|
|
2161
|
+
return UnsavedLeadGroupKey(this.EffectiveEntityInfo?.Name, [...railItems.values()], (meta) => keyByMetadata.get(meta) ?? null);
|
|
1720
2162
|
}
|
|
1721
2163
|
restoreChromePrefs() {
|
|
1722
2164
|
if (ShouldPersistChromeActiveGroup(this.EffectiveRecord?.IsSaved)) {
|
|
@@ -1742,6 +2184,10 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1742
2184
|
this.chromeRailExpanded = this.ChromeRailPinned;
|
|
1743
2185
|
}
|
|
1744
2186
|
persistChromePrefs() {
|
|
2187
|
+
// The placement dialog's preview is a second copy of a form the user may have open.
|
|
2188
|
+
// Browsing its rail must not move the real form's saved tab or rail width.
|
|
2189
|
+
if (this.placementPreview)
|
|
2190
|
+
return;
|
|
1745
2191
|
if (ShouldPersistChromeActiveGroup(this.EffectiveRecord?.IsSaved) && this.chrome.ActiveGroupKey) {
|
|
1746
2192
|
UserInfoEngine.Instance.SetSettingDebounced(this.chromePrefKey('activeGroup'), this.chrome.ActiveGroupKey);
|
|
1747
2193
|
}
|
|
@@ -1760,6 +2206,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1760
2206
|
this.Fc.RecordReady.pipe(takeUntil(this.panelNavReset$)).subscribe(() => {
|
|
1761
2207
|
this.loadBadgeCounts();
|
|
1762
2208
|
});
|
|
2209
|
+
this.Fc.SectionRowCountChanged?.pipe(takeUntil(this.panelNavReset$)).subscribe((e) => {
|
|
2210
|
+
this.onSectionRowCountChanged(e);
|
|
2211
|
+
});
|
|
1763
2212
|
this.Fc.RecordRefreshed.pipe(takeUntil(this.panelNavReset$)).subscribe((e) => {
|
|
1764
2213
|
this.onFormRecordRefreshed(e.Record);
|
|
1765
2214
|
});
|
|
@@ -1850,10 +2299,127 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1850
2299
|
if (!record?.EntityInfo)
|
|
1851
2300
|
return;
|
|
1852
2301
|
this.badgeCountsLoaded = true;
|
|
1853
|
-
// Fire
|
|
1854
|
-
this.
|
|
1855
|
-
|
|
1856
|
-
|
|
2302
|
+
// Fire and forget — counts land while the form renders; nothing awaits them.
|
|
2303
|
+
void this.loadFormCounts(record);
|
|
2304
|
+
}
|
|
2305
|
+
/**
|
|
2306
|
+
* ONE `RunViews` call for every count the form shows: each related section's
|
|
2307
|
+
* rows (badges + `whenEmpty` chrome) and the tag / attachment / version toolbar
|
|
2308
|
+
* badges. All items are `count_only`, which the database provider runs as a
|
|
2309
|
+
* single `UNION ALL` statement. Skipped entirely for unsaved records.
|
|
2310
|
+
*/
|
|
2311
|
+
async loadFormCounts(record) {
|
|
2312
|
+
const plan = this.buildFormCountPlan(record);
|
|
2313
|
+
this.countPlan = plan;
|
|
2314
|
+
this.stickySectionKeys.clear();
|
|
2315
|
+
this.applyBadgeVisibility(plan);
|
|
2316
|
+
const params = FormCountPlanParams(plan);
|
|
2317
|
+
const token = ++this.countRequestToken;
|
|
2318
|
+
if (params.length === 0) {
|
|
2319
|
+
this.countPhase = 'none';
|
|
2320
|
+
this.scheduleChromeResolve();
|
|
2321
|
+
return;
|
|
2322
|
+
}
|
|
2323
|
+
this.countPhase = 'loading';
|
|
2324
|
+
this.scheduleChromeResolve();
|
|
2325
|
+
try {
|
|
2326
|
+
const results = await RunView.FromMetadataProvider(this.ProviderToUse).RunViews(params);
|
|
2327
|
+
if (token !== this.countRequestToken)
|
|
2328
|
+
return;
|
|
2329
|
+
this.applyFormCounts(ApplyFormCountResults(plan, results));
|
|
2330
|
+
this.countPhase = 'loaded';
|
|
2331
|
+
}
|
|
2332
|
+
catch (e) {
|
|
2333
|
+
if (token !== this.countRequestToken)
|
|
2334
|
+
return;
|
|
2335
|
+
// Fail open: every section shows, badges stay at their defaults.
|
|
2336
|
+
LogError(`Form section counts failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
|
|
2337
|
+
this.countPhase = 'failed';
|
|
2338
|
+
}
|
|
2339
|
+
this.scheduleChromeResolve();
|
|
2340
|
+
this.cdr.detectChanges();
|
|
2341
|
+
}
|
|
2342
|
+
buildFormCountPlan(record) {
|
|
2343
|
+
const entity = record.EntityInfo;
|
|
2344
|
+
return BuildFormCountPlan({
|
|
2345
|
+
Record: record,
|
|
2346
|
+
Entity: entity,
|
|
2347
|
+
IsaChildEntityIDs: (entity.ChildEntities ?? []).map((child) => child.ID),
|
|
2348
|
+
HiddenSectionKeys: this.contributionHiddenSectionKeys(),
|
|
2349
|
+
Contributions: this.countContributions(),
|
|
2350
|
+
IncludeAttachments: this.AttachmentsAvailable,
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* The contributions the rail files, with their metadata, for counting. Counts, badges and
|
|
2355
|
+
* whenEmpty key off the section the user sees: `sectionKey` when the panel names one, else
|
|
2356
|
+
* its contribution key.
|
|
2357
|
+
*/
|
|
2358
|
+
countContributions() {
|
|
2359
|
+
return [...this.resolvedContributions().RailItems].map(([key, reg]) => ({
|
|
2360
|
+
SectionKey: reg.Metadata.sectionKey?.trim() || key,
|
|
2361
|
+
Metadata: reg.Metadata,
|
|
2362
|
+
}));
|
|
2363
|
+
}
|
|
2364
|
+
applyBadgeVisibility(plan) {
|
|
2365
|
+
const form = this.Fc;
|
|
2366
|
+
if (!form?.SetSectionBadgeVisible)
|
|
2367
|
+
return;
|
|
2368
|
+
const suppressed = new Set(plan.SuppressedBadgeKeys);
|
|
2369
|
+
for (const target of plan.Sections)
|
|
2370
|
+
form.SetSectionBadgeVisible(target.SectionKey, !suppressed.has(target.SectionKey));
|
|
2371
|
+
for (const key of suppressed)
|
|
2372
|
+
form.SetSectionBadgeVisible(key, false);
|
|
2373
|
+
}
|
|
2374
|
+
applyFormCounts(counts) {
|
|
2375
|
+
const tags = counts.System.get('tags');
|
|
2376
|
+
if (tags !== undefined)
|
|
2377
|
+
this.TagCount = tags;
|
|
2378
|
+
const attachments = counts.System.get('attachments');
|
|
2379
|
+
if (attachments !== undefined)
|
|
2380
|
+
this.AttachmentCount = attachments;
|
|
2381
|
+
const versions = counts.System.get('versions');
|
|
2382
|
+
if (versions !== undefined)
|
|
2383
|
+
this.VersionCount = versions;
|
|
2384
|
+
// Each call fires SectionRowCountChanged → onSectionRowCountChanged; the
|
|
2385
|
+
// chrome re-resolve is debounced, so this is one pass however many sections.
|
|
2386
|
+
for (const [key, count] of counts.Sections)
|
|
2387
|
+
this.Fc?.SetSectionRowCount?.(key, count);
|
|
2388
|
+
}
|
|
2389
|
+
/**
|
|
2390
|
+
* A section's count changed (prefetch, grid load, manual grid refresh, or a
|
|
2391
|
+
* contribution reporting). Re-resolve chrome when it crosses zero for a section
|
|
2392
|
+
* whose `whenEmpty` is not 'show'.
|
|
2393
|
+
*/
|
|
2394
|
+
onSectionRowCountChanged(e) {
|
|
2395
|
+
if (e.RowCount > 0)
|
|
2396
|
+
this.stickySectionKeys.add(e.SectionKey);
|
|
2397
|
+
const target = this.countPlan?.Sections.find((t) => t.SectionKey === e.SectionKey);
|
|
2398
|
+
if (!target || target.WhenEmpty === 'show')
|
|
2399
|
+
return;
|
|
2400
|
+
const crossedZero = e.Previous === undefined || (e.Previous === 0) !== (e.RowCount === 0);
|
|
2401
|
+
if (crossedZero)
|
|
2402
|
+
this.scheduleChromeResolve();
|
|
2403
|
+
}
|
|
2404
|
+
refreshEmptySectionBehavior() {
|
|
2405
|
+
this.emptySectionBehavior = this.computeEmptySectionBehavior();
|
|
2406
|
+
return this.emptySectionBehavior;
|
|
2407
|
+
}
|
|
2408
|
+
/** `whenEmpty` outcome for the current state. Fail open everywhere. */
|
|
2409
|
+
computeEmptySectionBehavior() {
|
|
2410
|
+
const sticky = new Set(this.stickySectionKeys);
|
|
2411
|
+
// Never hide what the user has open in the left-nav rail.
|
|
2412
|
+
const active = this.chrome.ActiveGroupKey;
|
|
2413
|
+
const activeGroup = active ? this.chrome.Spec.Groups.find((g) => g.Key === active && !g.IsMore) : undefined;
|
|
2414
|
+
for (const key of activeGroup?.SectionKeys ?? (active ? [active] : []))
|
|
2415
|
+
sticky.add(key);
|
|
2416
|
+
return ResolveEmptySectionBehavior({
|
|
2417
|
+
Targets: this.countPlan?.Sections ?? [],
|
|
2418
|
+
CountOf: (key) => this.Fc?.PeekSectionRowCount?.(key),
|
|
2419
|
+
Phase: this.countPhase,
|
|
2420
|
+
ShowEmptyFields: this.EffectiveShowEmptyFields,
|
|
2421
|
+
StickyKeys: sticky,
|
|
2422
|
+
});
|
|
1857
2423
|
}
|
|
1858
2424
|
/**
|
|
1859
2425
|
* Queries the count of linked attachments for the current entity + record
|
|
@@ -1866,17 +2432,17 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1866
2432
|
const rv = RunView.FromMetadataProvider(this.ProviderToUse);
|
|
1867
2433
|
const result = await rv.RunView({
|
|
1868
2434
|
EntityName: 'MJ: File Entity Record Links',
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
ResultType: 'simple'
|
|
2435
|
+
ExtraFilter: `EntityID='${EscapeSQLString(record.EntityInfo.ID)}' AND RecordID='${EscapeSQLString(record.PrimaryKey.Values())}'`,
|
|
2436
|
+
ResultType: 'count_only'
|
|
1872
2437
|
});
|
|
1873
|
-
if (result.Success) {
|
|
1874
|
-
this.AttachmentCount = result.
|
|
2438
|
+
if (result.Success && !this.destroyed) {
|
|
2439
|
+
this.AttachmentCount = result.TotalRowCount ?? 0;
|
|
1875
2440
|
this.cdr.detectChanges();
|
|
1876
2441
|
}
|
|
1877
2442
|
}
|
|
1878
|
-
catch {
|
|
1879
|
-
// Non-critical — badge
|
|
2443
|
+
catch (e) {
|
|
2444
|
+
// Non-critical — the badge keeps its last value.
|
|
2445
|
+
LogError(`Toolbar badge count failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
|
|
1880
2446
|
}
|
|
1881
2447
|
}
|
|
1882
2448
|
/**
|
|
@@ -1886,20 +2452,20 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1886
2452
|
async loadTagCount(record) {
|
|
1887
2453
|
try {
|
|
1888
2454
|
const rv = RunView.FromMetadataProvider(this.ProviderToUse);
|
|
1889
|
-
//
|
|
1890
|
-
// so a narrow query here would poison the cache for the subsequent full-field load in the Tags panel.
|
|
2455
|
+
// count_only is never cached, so it cannot poison the Tags panel's full load.
|
|
1891
2456
|
const result = await rv.RunView({
|
|
1892
2457
|
EntityName: 'MJ: Tagged Items',
|
|
1893
|
-
ExtraFilter: `EntityID='${record.EntityInfo.ID}' AND RecordID='${record.PrimaryKey.Values()}'`,
|
|
1894
|
-
ResultType: '
|
|
2458
|
+
ExtraFilter: `EntityID='${EscapeSQLString(record.EntityInfo.ID)}' AND RecordID='${EscapeSQLString(record.PrimaryKey.Values())}'`,
|
|
2459
|
+
ResultType: 'count_only'
|
|
1895
2460
|
});
|
|
1896
|
-
if (result.Success) {
|
|
1897
|
-
this.TagCount = result.
|
|
2461
|
+
if (result.Success && !this.destroyed) {
|
|
2462
|
+
this.TagCount = result.TotalRowCount ?? 0;
|
|
1898
2463
|
this.cdr.detectChanges();
|
|
1899
2464
|
}
|
|
1900
2465
|
}
|
|
1901
|
-
catch {
|
|
1902
|
-
// Non-critical — badge
|
|
2466
|
+
catch (e) {
|
|
2467
|
+
// Non-critical — the badge keeps its last value.
|
|
2468
|
+
LogError(`Toolbar badge count failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
|
|
1903
2469
|
}
|
|
1904
2470
|
}
|
|
1905
2471
|
/**
|
|
@@ -1913,17 +2479,17 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1913
2479
|
const rv = RunView.FromMetadataProvider(this.ProviderToUse);
|
|
1914
2480
|
const result = await rv.RunView({
|
|
1915
2481
|
EntityName: 'MJ: Record Changes',
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
ResultType: 'simple'
|
|
2482
|
+
ExtraFilter: `EntityID='${EscapeSQLString(record.EntityInfo.ID)}' AND RecordID='${EscapeSQLString(record.PrimaryKey.ToConcatenatedString())}'`,
|
|
2483
|
+
ResultType: 'count_only'
|
|
1919
2484
|
});
|
|
1920
|
-
if (result.Success) {
|
|
1921
|
-
this.VersionCount = result.
|
|
2485
|
+
if (result.Success && !this.destroyed) {
|
|
2486
|
+
this.VersionCount = result.TotalRowCount ?? 0;
|
|
1922
2487
|
this.cdr.detectChanges();
|
|
1923
2488
|
}
|
|
1924
2489
|
}
|
|
1925
|
-
catch {
|
|
1926
|
-
// Non-critical — badge
|
|
2490
|
+
catch (e) {
|
|
2491
|
+
// Non-critical — the badge keeps its last value.
|
|
2492
|
+
LogError(`Toolbar badge count failed for ${record.EntityInfo.Name}: ${e instanceof Error ? e.message : String(e)}`);
|
|
1927
2493
|
}
|
|
1928
2494
|
}
|
|
1929
2495
|
// ---- Toolbar Event Handlers ----
|
|
@@ -2345,6 +2911,153 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2345
2911
|
this.ShowSectionManager = false;
|
|
2346
2912
|
this.cdr.markForCheck();
|
|
2347
2913
|
}
|
|
2914
|
+
// ============================================
|
|
2915
|
+
// PANEL MANAGER
|
|
2916
|
+
// ============================================
|
|
2917
|
+
/** Whether the panel manager drawer is open. */
|
|
2918
|
+
ShowPanelManager = false;
|
|
2919
|
+
/**
|
|
2920
|
+
* Whether this form has anything the panel manager could act on.
|
|
2921
|
+
*
|
|
2922
|
+
* Read from every contribution row on the entity, not from the ones currently
|
|
2923
|
+
* rendering. Turning a panel off is a thing the manager does, so gating the way back in
|
|
2924
|
+
* on a panel being on made the door lock behind the user: the last panel switched off
|
|
2925
|
+
* took the button with it and there was no way to switch it on again.
|
|
2926
|
+
*
|
|
2927
|
+
* Still gated rather than always shown. A form that has never carried a contribution
|
|
2928
|
+
* has nothing to switch or remove, and a button that opens an empty drawer teaches the
|
|
2929
|
+
* user the feature is not for them.
|
|
2930
|
+
*/
|
|
2931
|
+
get HasManageablePanels() {
|
|
2932
|
+
return this.panelAdmin.HasRowsForEntity(this.EffectiveEntityInfo);
|
|
2933
|
+
}
|
|
2934
|
+
/**
|
|
2935
|
+
* The drawer's inputs, taken when it opens and after each change it makes.
|
|
2936
|
+
*
|
|
2937
|
+
* Fields, not getters: a getter hands the drawer a new array on every change-detection pass,
|
|
2938
|
+
* which fires its `ngOnChanges` — and its whole rebuild — on every pass while the form is open.
|
|
2939
|
+
*/
|
|
2940
|
+
PanelManagerCompiled = [];
|
|
2941
|
+
PanelManagerStockGrids = [];
|
|
2942
|
+
PanelManagerRelated = [];
|
|
2943
|
+
/** The saved record's key, for the placement dialog's preview. Null for a new record. */
|
|
2944
|
+
PanelManagerRecordKey = null;
|
|
2945
|
+
PanelManagerTitles = new Map();
|
|
2946
|
+
refreshPanelManagerInputs() {
|
|
2947
|
+
this.PanelManagerCompiled = this.buildPanelManagerCompiled();
|
|
2948
|
+
this.PanelManagerStockGrids = this.buildPanelManagerStockGrids();
|
|
2949
|
+
this.PanelManagerRelated = this.buildPanelManagerRelated();
|
|
2950
|
+
this.PanelManagerTitles = this.buildPanelManagerTitles();
|
|
2951
|
+
const record = this.EffectiveRecord;
|
|
2952
|
+
this.PanelManagerRecordKey = record?.IsSaved ? record.PrimaryKey : null;
|
|
2953
|
+
}
|
|
2954
|
+
/**
|
|
2955
|
+
* Compiled panels on this form, for the drawer to list and let the user hide.
|
|
2956
|
+
*
|
|
2957
|
+
* Read with the user's hides included, so a hidden panel is still listed and can be shown
|
|
2958
|
+
* again. A wildcard panel mounts on every form but draws only where it applies, so it is
|
|
2959
|
+
* listed only where it drew something — or where the user has hidden it, which is the only
|
|
2960
|
+
* way to bring it back.
|
|
2961
|
+
*/
|
|
2962
|
+
buildPanelManagerCompiled() {
|
|
2963
|
+
const entity = this.EffectiveEntityInfo;
|
|
2964
|
+
if (!entity)
|
|
2965
|
+
return [];
|
|
2966
|
+
const hidden = new Set(HiddenPanelKeys(entity.Name));
|
|
2967
|
+
const all = CollectFormContributionRegistrations(entity, this.ProviderToUse, { IncludeHidden: true });
|
|
2968
|
+
return all
|
|
2969
|
+
.filter((reg) => reg.Source !== 'metadata')
|
|
2970
|
+
.filter((reg) => {
|
|
2971
|
+
if (reg.Metadata?.entity === entity.Name)
|
|
2972
|
+
return true;
|
|
2973
|
+
if (reg.Metadata?.entity !== '*')
|
|
2974
|
+
return false;
|
|
2975
|
+
const key = PanelHideKey(reg);
|
|
2976
|
+
return !!key && (hidden.has(key) || this.panelDrewHere(key));
|
|
2977
|
+
})
|
|
2978
|
+
.map((reg, index) => {
|
|
2979
|
+
const hideKey = PanelHideKey(reg);
|
|
2980
|
+
return {
|
|
2981
|
+
Key: hideKey ?? `${reg.Metadata.slot}#${index}`,
|
|
2982
|
+
Title: reg.Title || ResolveContributionKey(reg.Metadata) || 'Panel',
|
|
2983
|
+
Slot: reg.Metadata.slot,
|
|
2984
|
+
HideKey: hideKey,
|
|
2985
|
+
};
|
|
2986
|
+
});
|
|
2987
|
+
}
|
|
2988
|
+
/** Whether a mounted panel with this hide key drew anything on this form. */
|
|
2989
|
+
panelDrewHere(hideKey) {
|
|
2990
|
+
const host = this.host.nativeElement;
|
|
2991
|
+
if (!host)
|
|
2992
|
+
return false;
|
|
2993
|
+
const escaped = hideKey.replace(/["\\]/g, '\\$&');
|
|
2994
|
+
const element = host.querySelector(`[data-panel-key="${escaped}"]`);
|
|
2995
|
+
return !!element && element.childElementCount > 0;
|
|
2996
|
+
}
|
|
2997
|
+
/** Grids the container filled in from a relationship, for the same reason. */
|
|
2998
|
+
buildPanelManagerStockGrids() {
|
|
2999
|
+
return this.allChromePanels()
|
|
3000
|
+
.filter((panel) => panel.Variant === 'related-entity' && !!panel.SectionKey)
|
|
3001
|
+
.map((panel) => ({
|
|
3002
|
+
SectionKey: panel.SectionKey,
|
|
3003
|
+
DisplayName: HumanizeEntityTitle(panel.SectionName || panel.SectionKey),
|
|
3004
|
+
}));
|
|
3005
|
+
}
|
|
3006
|
+
/**
|
|
3007
|
+
* Related grids on this entity, so re-placing a panel can still offer to take one over.
|
|
3008
|
+
* A probe cannot supply these: it reports the panels a form drew, not the join fields
|
|
3009
|
+
* behind them.
|
|
3010
|
+
*/
|
|
3011
|
+
buildPanelManagerRelated() {
|
|
3012
|
+
const entity = this.EffectiveEntityInfo;
|
|
3013
|
+
if (!entity)
|
|
3014
|
+
return [];
|
|
3015
|
+
return (entity.RelatedEntities ?? [])
|
|
3016
|
+
.filter((rel) => rel.DisplayInForm)
|
|
3017
|
+
.map((rel) => ({
|
|
3018
|
+
Entity: rel.RelatedEntity,
|
|
3019
|
+
JoinField: StripJoinFieldBrackets(rel.RelatedEntityJoinField),
|
|
3020
|
+
DisplayName: HumanizeEntityTitle(rel.RelatedEntity),
|
|
3021
|
+
}));
|
|
3022
|
+
}
|
|
3023
|
+
/** Titles by section and rail key, so the manager names a claim instead of printing it. */
|
|
3024
|
+
buildPanelManagerTitles() {
|
|
3025
|
+
const map = new Map();
|
|
3026
|
+
for (const panel of this.allChromePanels()) {
|
|
3027
|
+
if (panel.SectionKey)
|
|
3028
|
+
map.set(panel.SectionKey, HumanizeEntityTitle(panel.SectionName || panel.SectionKey));
|
|
3029
|
+
}
|
|
3030
|
+
for (const group of this.chrome.Spec.Groups) {
|
|
3031
|
+
map.set(group.Key, group.Title);
|
|
3032
|
+
}
|
|
3033
|
+
return map;
|
|
3034
|
+
}
|
|
3035
|
+
/** The drawer switched forms: the same path the toolbar picker takes. */
|
|
3036
|
+
OnPanelManagerFormChosen(variantID) {
|
|
3037
|
+
this.ShowPanelManager = false;
|
|
3038
|
+
this.OnVariantPicked(variantID);
|
|
3039
|
+
this.cdr.markForCheck();
|
|
3040
|
+
}
|
|
3041
|
+
OnManagePanels() {
|
|
3042
|
+
this.refreshPanelManagerInputs();
|
|
3043
|
+
this.ShowPanelManager = true;
|
|
3044
|
+
this.cdr.markForCheck();
|
|
3045
|
+
}
|
|
3046
|
+
OnPanelManagerClosed() {
|
|
3047
|
+
this.ShowPanelManager = false;
|
|
3048
|
+
this.cdr.markForCheck();
|
|
3049
|
+
}
|
|
3050
|
+
/**
|
|
3051
|
+
* A panel was switched, hidden, shown or removed. The registration memo is already dropped
|
|
3052
|
+
* by the admin service. The slot hosts mount the new panel set, then the chrome is resolved
|
|
3053
|
+
* again from it.
|
|
3054
|
+
*/
|
|
3055
|
+
OnPanelManagerChanged() {
|
|
3056
|
+
this.slots.NotifyPanelsChanged();
|
|
3057
|
+
this.scheduleChromeResolve();
|
|
3058
|
+
this.refreshPanelManagerInputs();
|
|
3059
|
+
this.cdr.markForCheck();
|
|
3060
|
+
}
|
|
2348
3061
|
static ɵfac = /*@__PURE__*/ (() => { let ɵMjRecordFormContainerComponent_BaseFactory; return function MjRecordFormContainerComponent_Factory(__ngFactoryType__) { return (ɵMjRecordFormContainerComponent_BaseFactory || (ɵMjRecordFormContainerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MjRecordFormContainerComponent)))(__ngFactoryType__ || MjRecordFormContainerComponent); }; })();
|
|
2349
3062
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjRecordFormContainerComponent, selectors: [["mj-record-form-container"]], contentQueries: function MjRecordFormContainerComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
2350
3063
|
i0.ɵɵcontentQuery(dirIndex, MjCollapsiblePanelComponent, 5);
|
|
@@ -2356,7 +3069,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2356
3069
|
} if (rf & 2) {
|
|
2357
3070
|
let _t;
|
|
2358
3071
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recordChangesDrawer = _t.first);
|
|
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:
|
|
3072
|
+
} }, inputs: { Record: "Record", FormComponent: "FormComponent", EntityInfo: "EntityInfo", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", ToolbarConfig: "ToolbarConfig", RegisteredToolbarItems: "RegisteredToolbarItems", ToolbarItemOverrides: "ToolbarItemOverrides", WidthMode: "WidthMode", Variants: "Variants", CurrentVariantID: "CurrentVariantID" }, outputs: { Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", ShowChangesRequested: "ShowChangesRequested", CustomButtonClick: "CustomButtonClick", ToolbarItemClick: "ToolbarItemClick", VariantChange: "VariantChange", BeforeLayoutResolve: "BeforeLayoutResolve", AfterLayoutResolved: "AfterLayoutResolved", BeforeSectionActivate: "BeforeSectionActivate", AfterSectionActivated: "AfterSectionActivated" }, standalone: false, features: [i0.ɵɵProvidersFeature([FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 22, vars: 43, consts: [[3, "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["aria-live", "polite", "aria-atomic", "true", 1, "mj-forms-visually-hidden"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice"], [1, "mj-forms-scroll-area"], [1, "mj-forms-panels-container"], [1, "mj-forms-layout-row"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail", 3, "is-collapsed", "is-resizing", "width"], [1, "mj-forms-all-panels"], [3, "Record", "FormComponent", "FormContext", "BakedSectionKeys", "ShowRelatedEntities"], [1, "mj-forms-more-overflow", 3, "is-expanded"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Message"], [3, "Navigate", "Record", "EditMode", "Collapsed"], [3, "record", "AllowRestore"], [3, "Record", "WidthPx"], [3, "Record", "Visible"], [3, "visible", "config"], [3, "SectionOrderChange", "MembershipChange", "ResetRequested", "Closed", "Sections", "SectionOrder", "MoreSectionKeys", "LockedMoreKeys", "Visible"], [3, "Changed", "FormChosen", "Closed", "Visible", "Entity", "Compiled", "StockGrids", "FullCustomForm", "TitleByKey", "Related", "Provider", "Variants", "CurrentFormID", "RecordKey"], [3, "Navigate", "EditModeChange", "BeforeSave", "SaveRequested", "BeforeCancel", "CancelRequested", "BeforeDelete", "DeleteRequested", "BeforeRefresh", "RefreshRequested", "FavoriteToggled", "BeforeHistoryView", "HistoryRequested", "BeforeListManagement", "ListManagementRequested", "ShowChangesRequested", "CustomButtonClick", "ToolbarItemClick", "FilterChange", "ExpandAllRequested", "CollapseAllRequested", "ShowEmptyFieldsChange", "WidthModeChange", "ResetSectionOrderRequested", "ManageSectionsRequested", "TagsPanelToggled", "AttachmentsPanelToggled", "VariantPicked", "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["Variant", "warning", "Size", "sm", "Icon", "fa-solid fa-clone", "Role", "status", "Dismissible", "", 1, "mj-forms-duplicate-notice", 3, "Dismissed"], [1, "mj-forms-duplicate-notice-lead"], ["type", "button", 1, "mj-forms-duplicate-notice-candidate", 3, "click", "title"], ["aria-label", "Form sections", 1, "mj-forms-chrome-rail"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "title"], ["type", "button", 1, "mj-forms-chrome-rail-spine", 3, "click", "title"], [1, "mj-forms-chrome-rail-spine-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", "is-spine", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", "is-spine", 3, "title"], ["role", "separator", "aria-orientation", "vertical", "title", "Drag to resize sections", 1, "mj-forms-chrome-rail-resizer", 3, "pointerdown", "pointermove", "pointerup", "pointercancel"], [1, "mj-forms-chrome-rail-toolbar"], ["type", "button", 1, "mj-forms-chrome-rail-pin", 3, "click", "title"], [1, "fa-solid", "fa-thumbtack"], ["type", "button", "title", "Hide sections", "aria-label", "Hide form sections", 1, "mj-forms-chrome-rail-collapse", 3, "click"], [1, "fa-solid", "fa-angles-left"], [1, "mj-forms-chrome-rail-items"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "note", 1, "mj-forms-chrome-rail-unrouted", 3, "title"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle"], [1, "mj-forms-chrome-rail-label", 3, "mouseenter"], ["role", "img", 1, "mj-forms-chrome-rail-dirty", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-error", 3, "title"], ["role", "img", 1, "mj-forms-chrome-rail-warning", 3, "title"], [1, "mj-forms-chrome-rail-count"], ["title", "Drag to reorder", "draggable", "true", 1, "mj-forms-chrome-rail-handle", 3, "dragstart", "dragend", "click"], [1, "fa-solid", "fa-grip-vertical"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-folder", 3, "click", "keydown.enter", "keydown.space"], ["aria-hidden", "true", 1, "mj-forms-chrome-rail-handle", "is-spacer"], ["aria-hidden", "true", 1, "fa-solid", "mj-forms-chrome-rail-more-toggle"], [1, "mj-forms-chrome-rail-more-tree"], ["title", "Rows across the sections in More", 1, "mj-forms-chrome-rail-count"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "is-active", "is-drag-over", "has-errors", "is-dirty"], ["role", "button", "tabindex", "0", 1, "mj-forms-chrome-rail-item", "is-more-child", 3, "click", "keydown.enter", "keydown.space", "dragover", "dragleave", "drop"], [1, "mj-forms-chrome-rail-label"], ["role", "img", 1, "mj-forms-chrome-rail-error", "is-unrouted"], [1, "mj-forms-more-overflow"], ["type", "button", 1, "mj-forms-more-overflow-toggle", 3, "click"], [1, "mj-forms-more-overflow-label"], [1, "mj-forms-more-overflow-preview"], [1, "fa-solid"], ["Variant", "no-results", "Title", "No sections found", "ActionText", "Clear search", "ActionIcon", "fa-solid fa-rotate-left", "ActionVariant", "flat", 1, "mj-forms-empty-search-state", 3, "Action", "Message"], [3, "RestoreRequested", "dialogClosed", "record", "AllowRestore"], [3, "PanelClosed", "TagCountChanged", "RecordNavigate", "WidthChanged", "Record", "WidthPx"], [3, "PanelClosed", "AttachmentCountChanged", "Record", "Visible"], [3, "complete", "cancel", "visible", "config"]], template: function MjRecordFormContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2360
3073
|
i0.ɵɵprojectionDef(_c0);
|
|
2361
3074
|
i0.ɵɵprojection(0);
|
|
2362
3075
|
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1, 31, "mj-form-toolbar", 0);
|
|
@@ -2369,7 +3082,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2369
3082
|
i0.ɵɵelementStart(9, "div", 7);
|
|
2370
3083
|
i0.ɵɵprojection(10, 1);
|
|
2371
3084
|
i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_11_Template, 1, 5, "mj-form-contributions", 8);
|
|
2372
|
-
i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template,
|
|
3085
|
+
i0.ɵɵconditionalCreate(12, MjRecordFormContainerComponent_Conditional_12_Template, 8, 11, "div", 9);
|
|
2373
3086
|
i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 3, "mj-form-panel-slot", 10);
|
|
2374
3087
|
i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_14_Template, 1, 1, "mj-empty-state", 11);
|
|
2375
3088
|
i0.ɵɵelementEnd();
|
|
@@ -2383,6 +3096,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2383
3096
|
i0.ɵɵelementStart(20, "mj-section-manager", 17);
|
|
2384
3097
|
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(); });
|
|
2385
3098
|
i0.ɵɵelementEnd();
|
|
3099
|
+
i0.ɵɵelementStart(21, "mj-panel-manager", 18);
|
|
3100
|
+
i0.ɵɵlistener("Changed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Changed_21_listener() { return ctx.OnPanelManagerChanged(); })("FormChosen", function MjRecordFormContainerComponent_Template_mj_panel_manager_FormChosen_21_listener($event) { return ctx.OnPanelManagerFormChosen($event); })("Closed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Closed_21_listener() { return ctx.OnPanelManagerClosed(); });
|
|
3101
|
+
i0.ɵɵelementEnd();
|
|
2386
3102
|
} if (rf & 2) {
|
|
2387
3103
|
i0.ɵɵadvance();
|
|
2388
3104
|
i0.ɵɵconditional(ctx.EffectiveShowToolbar ? 1 : -1);
|
|
@@ -2416,11 +3132,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2416
3132
|
i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 19 : -1);
|
|
2417
3133
|
i0.ɵɵadvance();
|
|
2418
3134
|
i0.ɵɵproperty("Sections", ctx.SectionManagerItems)("SectionOrder", ctx.SectionManagerOrder)("MoreSectionKeys", ctx.SectionManagerMoreKeys)("LockedMoreKeys", ctx.SectionManagerLockedMoreKeys)("Visible", ctx.ShowSectionManager);
|
|
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 });
|
|
3135
|
+
i0.ɵɵadvance();
|
|
3136
|
+
i0.ɵɵproperty("Visible", ctx.ShowPanelManager)("Entity", ctx.EffectiveEntityInfo)("Compiled", ctx.PanelManagerCompiled)("StockGrids", ctx.PanelManagerStockGrids)("FullCustomForm", !!(ctx.fc == null ? null : ctx.fc.OwnsEntireFormBody))("TitleByKey", ctx.PanelManagerTitles)("Related", ctx.PanelManagerRelated)("Provider", ctx.ProviderToUse)("Variants", ctx.EffectiveVariants)("CurrentFormID", ctx.EffectiveCurrentVariantID)("RecordKey", ctx.PanelManagerRecordKey);
|
|
3137
|
+
} }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, i2.RecordChangesComponent, i3.ListManagementDialogComponent, i4.RecordTagsComponent, i5.RecordAttachmentsComponent, i6.MjFormToolbarComponent, i7.MjSectionManagerComponent, i8.MjPanelManagerComponent, i9.MjIsaRelatedPanelComponent, i10.FormPanelSlotComponent, i11.FormContributionsComponent], styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"], encapsulation: 2, changeDetection: 0 });
|
|
2420
3138
|
}
|
|
2421
3139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjRecordFormContainerComponent, [{
|
|
2422
3140
|
type: Component,
|
|
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 "' + EffectiveSearchFilter + '". 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"] }]
|
|
3141
|
+
args: [{ standalone: false, selector: 'mj-record-form-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator], template: "<!-- ============================================\n BEFORE-TOOLBAR SLOT\n ============================================ -->\n<ng-content select=\"[before-toolbar]\"></ng-content>\n\n<!-- ============================================\n TOOLBAR (bridges FormComponent state \u2192 toolbar inputs)\n Hidden entirely when Config.Toolbar === null (dialog/slide-in surfaces).\n ============================================ -->\n@if (EffectiveShowToolbar) {\n<mj-form-toolbar\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [UserCanEdit]=\"EffectiveUserCanEdit\"\n [UserCanDelete]=\"EffectiveUserCanDelete\"\n [IsFavorite]=\"EffectiveIsFavorite\"\n [FavoriteInitDone]=\"EffectiveFavoriteInitDone\"\n [IsDirty]=\"EffectiveIsDirty\"\n [DirtyFieldNames]=\"EffectiveDirtyFieldNames\"\n [ListCount]=\"ListCount\"\n [TagCount]=\"TagCount\"\n [AttachmentCount]=\"AttachmentCount\"\n [AttachmentsAvailable]=\"AttachmentsAvailable\"\n [IsAttachmentsPanelOpen]=\"ShowAttachmentsPanel\"\n [VersionCount]=\"VersionCount\"\n [EntityInfo]=\"EffectiveEntityInfo\"\n [Config]=\"EffectiveToolbarConfig\"\n [IsSaving]=\"EffectiveIsSaving\"\n [IsRefreshing]=\"EffectiveIsRefreshing\"\n [VisibleSectionCount]=\"VisibleSectionCount\"\n [TotalSectionCount]=\"TotalSectionCount\"\n [ExpandedSectionCount]=\"ExpandedSectionCount\"\n [SearchFilter]=\"EffectiveSearchFilter\"\n [ShowEmptyFields]=\"EffectiveShowEmptyFields\"\n [WidthMode]=\"EffectiveWidthMode\"\n [HasCustomSectionOrder]=\"EffectiveHasCustomSectionOrder\"\n [ChromeLayout]=\"ChromeLayout\"\n [Variants]=\"EffectiveVariants\"\n [CurrentVariantID]=\"EffectiveCurrentVariantID\"\n [RegisteredItems]=\"EffectiveRegisteredToolbarItems\"\n [ItemOverrides]=\"EffectiveToolbarItemOverrides\"\n [FormComponent]=\"fc\"\n (Navigate)=\"OnNavigate($event)\"\n (EditModeChange)=\"OnEditModeChange($event)\"\n (BeforeSave)=\"BeforeSave.emit($event)\"\n (SaveRequested)=\"OnSaveRequested()\"\n (BeforeCancel)=\"BeforeCancel.emit($event)\"\n (CancelRequested)=\"OnCancelRequested()\"\n (BeforeDelete)=\"BeforeDelete.emit($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (BeforeRefresh)=\"BeforeRefresh.emit($event)\"\n (RefreshRequested)=\"OnRefreshRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (BeforeHistoryView)=\"BeforeHistoryView.emit($event)\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (BeforeListManagement)=\"BeforeListManagement.emit($event)\"\n (ListManagementRequested)=\"OnListManagementRequested()\"\n (ShowChangesRequested)=\"OnShowChangesRequested()\"\n (CustomButtonClick)=\"CustomButtonClick.emit($event)\"\n (ToolbarItemClick)=\"ToolbarItemClick.emit($event)\"\n (FilterChange)=\"OnFilterChange($event)\"\n (ExpandAllRequested)=\"OnExpandAll()\"\n (CollapseAllRequested)=\"OnCollapseAll()\"\n (ShowEmptyFieldsChange)=\"OnShowEmptyFieldsChange($event)\"\n (WidthModeChange)=\"OnWidthModeChange($event)\"\n (ResetSectionOrderRequested)=\"OnResetSectionOrder()\"\n (ManageSectionsRequested)=\"OnManageSections()\"\n (TagsPanelToggled)=\"OnTagsPanelToggled()\"\n (AttachmentsPanelToggled)=\"OnAttachmentsPanelToggled()\"\n (VariantPicked)=\"OnVariantPicked($event)\">\n</mj-form-toolbar>\n}\n\n<!-- ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n Variant picker is now embedded in <mj-form-toolbar> as a right-side\n button \u2014 see the [Variants]/[CurrentVariantID] inputs + (VariantPicked)\n output on the toolbar above. Inline strip was removed.\n ============================================ -->\n<!-- Persistent polite live region for the section indicators (see FormIndicatorsAnnouncement) -->\n<span class=\"mj-forms-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ FormIndicatorsAnnouncement }}</span>\n\n<!-- ============================================\n POSSIBLE DUPLICATES (entry-time check, new records only)\n Flag only: never blocks a save. A name opens that record through Navigate.\n ============================================ -->\n@if (DuplicateEntryCandidates.length > 0) {\n <mj-alert class=\"mj-forms-duplicate-notice\"\n Variant=\"warning\"\n Size=\"sm\"\n Icon=\"fa-solid fa-clone\"\n Role=\"status\"\n Dismissible\n (Dismissed)=\"OnDuplicateNoticeDismissed()\">\n <span class=\"mj-forms-duplicate-notice-lead\">This may duplicate:</span>\n @for (candidate of DuplicateEntryCandidates; track candidate.RecordID; let last = $last) {\n <button type=\"button\"\n class=\"mj-forms-duplicate-notice-candidate\"\n [title]=\"'Open ' + candidate.DisplayName\"\n (click)=\"OnDuplicateCandidateClick(candidate)\">{{ candidate.DisplayName }}</button>@if (!last) {<span>, </span>}\n }\n </mj-alert>\n}\n\n<div class=\"mj-forms-scroll-area\">\n <div class=\"mj-forms-panels-container\"\n [class.mj-forms-panels--full-width]=\"EffectiveWidthMode === 'full-width'\"\n [class.mj-forms-panels--edit-mode]=\"EffectiveEditMode\"\n [class.mj-forms-panels--has-isa-panel]=\"HasIsaRelatedItems\">\n <!-- Flex row: optional left-nav + form panels + ISA side panel -->\n <div class=\"mj-forms-layout-row\"\n [class.mj-forms-layout--left-nav]=\"ChromeLayout === 'left-nav'\"\n [class.mj-forms-layout--accordion]=\"ChromeLayout === 'accordion'\"\n [class.mj-forms-layout--more]=\"IsChromeMoreActive\">\n @if (ShowChromeRail) {\n <nav class=\"mj-forms-chrome-rail\"\n [class.is-collapsed]=\"ChromeRailCollapsed\"\n [class.is-resizing]=\"RailResizing\"\n [style.width.px]=\"ChromeRailCollapsed ? null : ChromeRailWidthPx\"\n [attr.aria-expanded]=\"!ChromeRailCollapsed\"\n aria-label=\"Form sections\">\n @if (ChromeRailCollapsed) {\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-spine\"\n (click)=\"OnChromeRailExpand()\"\n [attr.aria-label]=\"'Show form sections \u2014 ' + ChromeActiveTitle\"\n [title]=\"'Show sections \u2014 ' + ChromeActiveTitle\">\n <i [class]=\"ChromeActiveIcon\"></i>\n <span class=\"mj-forms-chrome-rail-spine-label\"\n (mouseenter)=\"OnRailLabelHover($event, ChromeActiveTitle)\">{{ ChromeActiveTitle }}</span>\n <!-- Whole-form section indicators: no rail item is visible while collapsed -->\n @let formIndicators = FormIndicators;\n @if (formIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error is-spine\"\n role=\"img\"\n [title]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\"\n [attr.aria-label]=\"RailErrorTitle(formIndicators.ErrorCount, 'this record')\">{{ formIndicators.ErrorCount }}</span>\n } @else if (formIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning is-spine\"\n role=\"img\"\n [title]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\"\n [attr.aria-label]=\"RailWarningTitle(formIndicators.WarningCount, 'this record')\">{{ formIndicators.WarningCount }}</span>\n }\n @if (formIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty is-spine\"\n role=\"img\"\n [title]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"\n [attr.aria-label]=\"RailDirtyTitle(formIndicators.DirtyCount, 'this record')\"></span>\n }\n </button>\n } @else {\n <div class=\"mj-forms-chrome-rail-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-valuenow]=\"ChromeRailWidthPx\"\n [attr.aria-valuemin]=\"RailWidthMin\"\n [attr.aria-valuemax]=\"RailWidthMax\"\n title=\"Drag to resize sections\"\n (pointerdown)=\"OnRailResizeStart($event)\"\n (pointermove)=\"OnRailResizeMove($event)\"\n (pointerup)=\"OnRailResizeEnd()\"\n (pointercancel)=\"OnRailResizeEnd()\"></div>\n <div class=\"mj-forms-chrome-rail-toolbar\">\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-pin\"\n [class.is-pinned]=\"ChromeRailPinned\"\n [attr.aria-pressed]=\"ChromeRailPinned\"\n [title]=\"ChromeRailPinned ? 'Unpin sections \u2014 they hide after you switch' : 'Pin sections open'\"\n (click)=\"OnChromeRailPinToggle()\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n <button type=\"button\"\n class=\"mj-forms-chrome-rail-collapse\"\n title=\"Hide sections\"\n aria-label=\"Hide form sections\"\n (click)=\"OnChromeRailCollapse()\">\n <i class=\"fa-solid fa-angles-left\"></i>\n </button>\n </div>\n <!-- Rail items scroll on their own when they outgrow the viewport;\n the pin / collapse toolbar above stays put. -->\n <div class=\"mj-forms-chrome-rail-items\">\n @for (group of ChromeFirstClassGroups; track group.Key) {\n <div class=\"mj-forms-chrome-rail-item\"\n role=\"button\"\n tabindex=\"0\"\n [attr.data-rail-key]=\"group.Key\"\n [class.is-active]=\"ChromeActiveGroupKey === group.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === group.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === group.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(group).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(group).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(group.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(group.Key)\"\n (dragover)=\"OnRailDragOver($event, group.Key)\"\n (dragleave)=\"OnRailDragLeave($event, group.Key)\"\n (drop)=\"OnRailDrop($event, group.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, group.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"group.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, group.Title)\">{{ group.Title }}</span>\n @let groupIndicators = ChromeGroupIndicators(group);\n @if (groupIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(groupIndicators.DirtyCount, group.Title)\"></span>\n }\n @if (groupIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\"\n [attr.aria-label]=\"RailErrorTitle(groupIndicators.ErrorCount, group.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.ErrorCount }}\n </span>\n } @else if (groupIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\"\n [attr.aria-label]=\"RailWarningTitle(groupIndicators.WarningCount, group.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ groupIndicators.WarningCount }}\n </span>\n }\n @let rowCount = ChromeGroupRowCount(group);\n @if (rowCount != null && rowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ rowCount }}</span>\n }\n </div>\n }\n @if (ChromeMoreFolder; as more) {\n <div class=\"mj-forms-chrome-rail-item is-more-folder\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-expanded]=\"MoreExpanded\"\n [class.has-errors]=\"ChromeGroupIndicators(more).ErrorCount > 0\"\n (click)=\"OnMoreFolderToggle()\"\n (keydown.enter)=\"OnMoreFolderToggle()\"\n (keydown.space)=\"$event.preventDefault(); OnMoreFolderToggle()\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, more.Title)\">{{ more.Title }}</span>\n @let moreIndicators = ChromeGroupIndicators(more);\n @if (moreIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(moreIndicators.DirtyCount, more.Title)\"></span>\n }\n @if (moreIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\"\n [attr.aria-label]=\"RailErrorTitle(moreIndicators.ErrorCount, more.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.ErrorCount }}\n </span>\n } @else if (moreIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\"\n [attr.aria-label]=\"RailWarningTitle(moreIndicators.WarningCount, more.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ moreIndicators.WarningCount }}\n </span>\n }\n @if (!MoreExpanded) {\n @let moreRowCount = ChromeMoreRowCount;\n @if (moreRowCount != null && moreRowCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ moreRowCount }}</span>\n }\n }\n <i class=\"fa-solid mj-forms-chrome-rail-more-toggle\"\n [class.fa-minus]=\"MoreExpanded\"\n [class.fa-plus]=\"!MoreExpanded\"\n aria-hidden=\"true\"></i>\n </div>\n @if (MoreExpanded) {\n <div class=\"mj-forms-chrome-rail-more-tree\">\n @for (child of ChromeMoreItems; track child.Key) {\n <div class=\"mj-forms-chrome-rail-item is-more-child\"\n role=\"button\"\n tabindex=\"0\"\n [class.is-active]=\"ChromeActiveGroupKey === child.Key\"\n [attr.aria-current]=\"ChromeActiveGroupKey === child.Key ? 'page' : null\"\n [class.is-drag-over]=\"RailDragOverKey === child.Key\"\n [class.has-errors]=\"ChromeGroupIndicators(child).ErrorCount > 0\"\n [class.is-dirty]=\"ChromeGroupIndicators(child).DirtyCount > 0\"\n (click)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.enter)=\"OnChromeGroupActivate(child.Key)\"\n (keydown.space)=\"$event.preventDefault(); OnChromeGroupActivate(child.Key)\"\n (dragover)=\"OnRailDragOver($event, child.Key)\"\n (dragleave)=\"OnRailDragLeave($event, child.Key)\"\n (drop)=\"OnRailDrop($event, child.Key)\">\n @if (ChromeReorderAllowed) {\n <span class=\"mj-forms-chrome-rail-handle\"\n title=\"Drag to reorder\"\n draggable=\"true\"\n (dragstart)=\"OnRailDragStart($event, child.Key)\"\n (dragend)=\"OnRailDragEnd()\"\n (click)=\"$event.stopPropagation()\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <i [class]=\"child.Icon\"></i>\n <span class=\"mj-forms-chrome-rail-label\"\n (mouseenter)=\"OnRailLabelHover($event, child.Title)\">{{ child.Title }}</span>\n @let childIndicators = ChromeGroupIndicators(child);\n @if (childIndicators.DirtyCount > 0) {\n <span class=\"mj-forms-chrome-rail-dirty\"\n role=\"img\"\n [title]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"\n [attr.aria-label]=\"RailDirtyTitle(childIndicators.DirtyCount, child.Title)\"></span>\n }\n @if (childIndicators.ErrorCount > 0) {\n <span class=\"mj-forms-chrome-rail-error\"\n role=\"img\"\n [title]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\"\n [attr.aria-label]=\"RailErrorTitle(childIndicators.ErrorCount, child.Title)\">\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.ErrorCount }}\n </span>\n } @else if (childIndicators.WarningCount > 0) {\n <span class=\"mj-forms-chrome-rail-warning\"\n role=\"img\"\n [title]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\"\n [attr.aria-label]=\"RailWarningTitle(childIndicators.WarningCount, child.Title)\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>{{ childIndicators.WarningCount }}\n </span>\n }\n @let childCount = ChromeGroupRowCount(child);\n @if (childCount != null && childCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\">{{ childCount }}</span>\n }\n </div>\n }\n </div>\n }\n }\n @let unroutedErrors = UnroutedValidationErrorCount;\n @if (unroutedErrors > 0) {\n <!-- A failed save's errors that no rail item owns. Without this row they were counted\n only on the collapsed spine, so an EXPANDED rail could look clean over a form\n the server had just refused. -->\n <div class=\"mj-forms-chrome-rail-unrouted\"\n role=\"note\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\"\n [title]=\"RailUnroutedErrorTitle(unroutedErrors)\">\n <span class=\"mj-forms-chrome-rail-handle is-spacer\" aria-hidden=\"true\"></span>\n <i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i>\n <span class=\"mj-forms-chrome-rail-label\">Not in a section</span>\n <span class=\"mj-forms-chrome-rail-error is-unrouted\" role=\"img\"\n [attr.aria-label]=\"RailUnroutedErrorTitle(unroutedErrors)\">{{ unroutedErrors }}</span>\n </div>\n }\n </div>\n }\n </nav>\n }\n <!-- All panels in a single flex container \u2014 CSS order drives sequencing -->\n <div class=\"mj-forms-all-panels\">\n <ng-content></ng-content>\n\n <!--\n Fill-in related grids for DisplayInForm relationships the template\n did not bake and no registered panel claimed. Claimed / extra panels\n still mount via mj-form-panel-slot. See plans/form-contributions.md.\n -->\n @if (Record && FormComponent) {\n <mj-form-contributions\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\"\n [FormContext]=\"FormComponent.formContext\"\n [BakedSectionKeys]=\"BakedRelatedSectionKeys\"\n [ShowRelatedEntities]=\"EffectiveShowRelatedEntities\">\n </mj-form-contributions>\n }\n\n <!--\n Container-provided fallback slot. ALWAYS present \u2014 last in document\n order \u2014 so any panel whose registered slot isn't found in the current\n form falls through here via FormSlotCoordinator's chain. Downstream\n consumers that haven't rerun CodeGen against the slot-emitting\n template still see every panel; they just render at the bottom\n instead of at their preferred position.\n -->\n @if (ShowMoreToggle) {\n <div class=\"mj-forms-more-overflow\" [class.is-expanded]=\"MoreExpanded\">\n <button type=\"button\"\n class=\"mj-forms-more-overflow-toggle\"\n (click)=\"OnMoreToggle()\">\n <i [class]=\"MoreExpanded ? 'fa-solid fa-folder-open' : 'fa-solid fa-folder'\"></i>\n <span class=\"mj-forms-more-overflow-label\">{{ MoreExpanded ? 'Hide more' : 'More' }}</span>\n @if (!MoreExpanded && MorePreview) {\n <span class=\"mj-forms-more-overflow-preview\">{{ MorePreview }}</span>\n }\n @if (!MoreExpanded) {\n @let accordionMoreCount = ChromeMoreRowCount;\n @if (accordionMoreCount != null && accordionMoreCount > 0) {\n <span class=\"mj-forms-chrome-rail-count\" title=\"Rows across the sections in More\">{{ accordionMoreCount }}</span>\n }\n }\n <i class=\"fa-solid\"\n [class.fa-chevron-down]=\"MoreExpanded\"\n [class.fa-chevron-right]=\"!MoreExpanded\"></i>\n </button>\n </div>\n }\n\n @if (Record && FormComponent) {\n <mj-form-panel-slot\n [Entity]=\"Record.EntityInfo.Name\"\n Slot=\"after-everything\"\n [Record]=\"Record\"\n [FormComponent]=\"FormComponent\">\n </mj-form-panel-slot>\n }\n\n <!-- Empty state when no sections match search -->\n @if (EffectiveSearchFilter && SearchHasNoMatches) {\n <mj-empty-state class=\"mj-forms-empty-search-state\"\n Variant=\"no-results\"\n Title=\"No sections found\"\n [Message]=\"'No sections match "' + EffectiveSearchFilter + '". Try a different search term.'\"\n ActionText=\"Clear search\"\n ActionIcon=\"fa-solid fa-rotate-left\"\n ActionVariant=\"flat\"\n (Action)=\"OnFilterChange('')\" />\n }\n </div>\n\n <!-- IS-A Related Records Side Panel -->\n <mj-isa-related-panel\n [Record]=\"EffectiveRecord\"\n [EditMode]=\"EffectiveEditMode\"\n [Collapsed]=\"EffectiveWidthMode === 'full-width'\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-isa-related-panel>\n </div>\n </div>\n</div>\n\n<!-- ============================================\n RECORD CHANGES DRAWER (shown when history button clicked)\n ============================================ -->\n@if (ShowRecordChanges && EffectiveRecord) {\n <mj-record-changes\n [record]=\"EffectiveRecord\"\n [AllowRestore]=\"EffectiveUserCanEdit\"\n (RestoreRequested)=\"OnRestoreRequested($event)\"\n (dialogClosed)=\"OnRecordChangesClosed()\">\n </mj-record-changes>\n}\n\n<!-- ============================================\n TAGS PANEL (shown when tags button clicked)\n ============================================ -->\n@if (ShowTagsPanel && EffectiveRecord) {\n <mj-record-tags\n [Record]=\"EffectiveRecord\"\n [WidthPx]=\"TagsPanelWidth\"\n (PanelClosed)=\"OnTagsPanelClosed()\"\n (TagCountChanged)=\"OnTagCountChanged($event)\"\n (RecordNavigate)=\"OnTagsRecordNavigate($event)\"\n (WidthChanged)=\"OnTagsPanelWidthChanged($event)\">\n </mj-record-tags>\n}\n\n<!-- ============================================\n ATTACHMENTS PANEL (shown when attachments button clicked)\n ============================================ -->\n@if (ShowAttachmentsPanel && AttachmentsAvailable && EffectiveRecord) {\n <mj-record-attachments\n [Record]=\"EffectiveRecord\"\n [Visible]=\"true\"\n (PanelClosed)=\"OnAttachmentsPanelClosed()\"\n (AttachmentCountChanged)=\"OnAttachmentCountChanged($event)\">\n </mj-record-attachments>\n}\n\n<!-- ============================================\n LIST MANAGEMENT DIALOG (shown when lists button clicked)\n ============================================ -->\n@if (ShowListManagement && EffectiveRecord) {\n <mj-list-management-dialog\n [visible]=\"ShowListManagement\"\n [config]=\"{\n mode: 'manage',\n entityId: EffectiveRecord.EntityInfo.ID,\n entityName: EffectiveRecord.EntityInfo.Name,\n recordIds: [EffectiveRecord.PrimaryKey.Values()[0]],\n allowCreate: true\n }\"\n (complete)=\"OnListManagementComplete($event)\"\n (cancel)=\"OnListManagementClosed()\">\n </mj-list-management-dialog>\n}\n\n<!-- ============================================\n SECTION MANAGER DRAWER (shown when manage-sections button clicked)\n ============================================ -->\n<mj-section-manager\n [Sections]=\"SectionManagerItems\"\n [SectionOrder]=\"SectionManagerOrder\"\n [MoreSectionKeys]=\"SectionManagerMoreKeys\"\n [LockedMoreKeys]=\"SectionManagerLockedMoreKeys\"\n [Visible]=\"ShowSectionManager\"\n (SectionOrderChange)=\"OnSectionOrderChange($event)\"\n (MembershipChange)=\"OnChromeMembershipChange($event)\"\n (ResetRequested)=\"OnSectionManagerReset()\"\n (Closed)=\"OnSectionManagerClosed()\">\n</mj-section-manager>\n\n<!-- ============================================\n PANEL MANAGER DRAWER \u2014 what is registered on this form, and the switches for it\n ============================================ -->\n<mj-panel-manager\n [Visible]=\"ShowPanelManager\"\n [Entity]=\"EffectiveEntityInfo\"\n [Compiled]=\"PanelManagerCompiled\"\n [StockGrids]=\"PanelManagerStockGrids\"\n [FullCustomForm]=\"!!fc?.OwnsEntireFormBody\"\n [TitleByKey]=\"PanelManagerTitles\"\n [Related]=\"PanelManagerRelated\"\n [Provider]=\"ProviderToUse\"\n [Variants]=\"EffectiveVariants\"\n [CurrentFormID]=\"EffectiveCurrentVariantID\"\n [RecordKey]=\"PanelManagerRecordKey\"\n (Changed)=\"OnPanelManagerChanged()\"\n (FormChosen)=\"OnPanelManagerFormChosen($event)\"\n (Closed)=\"OnPanelManagerClosed()\">\n</mj-panel-manager>\n", styles: ["/* ============================================\n RECORD FORM CONTAINER \u2014 uses global --mj-* design tokens\n Top-level wrapper: toolbar + scrollable content\n ============================================ */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ViewEncapsulation.None fallback \u2014 ensure the element itself constrains overflow */\nmj-record-form-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n position: relative;\n overflow: hidden;\n}\n\n/* ============================================\n POSSIBLE-DUPLICATE NOTICE (entry-time check on a new record)\n Sits between the toolbar and the scroll area, so it stays in view.\n ============================================ */\n.mj-forms-duplicate-notice {\n flex: 0 0 auto;\n margin: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mj-forms-duplicate-notice-lead {\n margin-right: var(--mj-space-1);\n}\n\n.mj-forms-duplicate-notice-candidate {\n padding: 0;\n border: none;\n background: none;\n font: inherit;\n color: var(--mj-text-link);\n text-decoration: underline;\n cursor: pointer;\n}\n\n.mj-forms-duplicate-notice-candidate:hover {\n color: var(--mj-text-link-hover);\n}\n\n.mj-forms-duplicate-notice-candidate:focus-visible {\n outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);\n outline-offset: 2px;\n border-radius: var(--mj-radius-sm);\n}\n\n/* ============================================\n SCROLL AREA (full-width so mouse wheel works anywhere)\n ============================================ */\n.mj-forms-scroll-area {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n background: var(--mj-bg-page);\n display: flex;\n flex-direction: column;\n min-height: 0;\n}\n\n/* ============================================\n PANELS CONTAINER (centered content within scroll area)\n ============================================ */\n.mj-forms-panels-container {\n padding: 24px 32px 48px;\n max-width: 920px;\n margin: 0 auto;\n width: 100%;\n box-sizing: border-box;\n flex: 1;\n min-height: 0;\n}\n\n/* Widen max-width when ISA side panel is present */\n.mj-forms-panels--has-isa-panel {\n max-width: 1240px;\n}\n\n.mj-forms-panels--full-width {\n max-width: none;\n padding-left: 24px;\n padding-right: 24px;\n}\n\n/* Flex row layout: form panels + optional ISA side panel */\n.mj-forms-layout-row {\n display: flex;\n gap: 20px;\n align-items: flex-start;\n}\n\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav) {\n padding: 16px 20px 24px;\n display: flex;\n flex-direction: column;\n /* Definite height = the scroll-area's client box. min-height: 100% alone\n lets the column grow with content and never gives related grids a\n containing-block height, so Height:auto (100%) on the grid collapses. */\n height: 100%;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* Centered left-nav keeps the form column at the same 920px as accordion,\n plus the rail. Full-width still uses .mj-forms-panels--full-width. */\n.mj-forms-panels-container:has(.mj-forms-layout--left-nav):not(.mj-forms-panels--full-width) {\n max-width: 1160px;\n}\n\n.mj-forms-layout-row.mj-forms-layout--left-nav {\n flex: 1;\n min-height: 0;\n /* Wins over .mj-forms-layout-row { align-items: flex-start } so the\n body column stretches to the rail / viewport instead of hugging content. */\n align-items: stretch;\n gap: 16px;\n}\n\n/* Left-nav: only the active rail item is in the body. Slot-mounted\n panels never inject the container coordinator, so host classes set\n from the container are the hide/show channel that always reaches them. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-hidden,\n.mj-forms-layout--accordion mj-collapsible-panel.mj-chrome-hidden {\n display: none;\n}\n\n/* Selected item: no accordion chrome \u2014 the rail is the header. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-header {\n display: none;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel {\n box-shadow: none;\n border: 0;\n background: transparent;\n border-radius: 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-body--collapsed {\n max-height: none;\n padding: 0;\n opacity: 1;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-show .mj-forms-panel-content {\n max-height: none;\n padding: 0;\n overflow: visible;\n}\n\n/* Details: every field panel shows under ONE rail item, and the rail label\n cannot head several loose field lists \u2014 without a surface the rows float\n on the page background. So the Details panels render as ONE card: each\n panel is a segment (surface + side borders, no radius), and the container\n marks the visual first / last (CSS order, not DOM order) to close the top\n and bottom edges. No per-section headers \u2014 the sections are plain groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel {\n background: var(--mj-bg-surface-card);\n border-left: 1px solid var(--mj-border-default);\n border-right: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first {\n margin-top: 8px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel {\n border-top: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md) var(--mj-radius-md) 0 0;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel {\n border-bottom: 1px solid var(--mj-border-default);\n border-radius: 0 0 var(--mj-radius-md) var(--mj-radius-md);\n box-shadow: var(--mj-shadow-sm);\n}\n\n/* One panel = whole card: both edges on the same element. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first.mj-chrome-details-last .mj-forms-panel {\n border-radius: var(--mj-radius-md);\n}\n\n/* Segment padding: sides always; top / bottom only at the card's edges, and a\n half-step between segments so the groups still read as groups. */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details .mj-forms-panel-content {\n padding: 8px 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-first .mj-forms-panel-content {\n padding-top: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-chrome-details-last .mj-forms-panel-content {\n padding-bottom: 20px;\n}\n\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show {\n /* Content-sized (see RelatedGridHeightPx). Do not flex-fill leftover\n column space \u2014 a form header above the grid can collapse that to 0. */\n flex: 0 0 auto;\n min-height: 0;\n}\n\n/* Accordion related panels use a 400px resizable box. Left-nav grids\n set their own pixel height from row count (RelatedGridHeightPx). */\n.mj-forms-layout--left-nav mj-collapsible-panel.mj-panel--related-entity.mj-chrome-show .mj-forms-panel-content {\n height: auto;\n max-height: none;\n overflow: hidden;\n resize: none;\n}\n\n/* Slot-mounted contributions (heroes, overview strips) are always visible, so\n they sit in the same column as the active rail panel and need rhythm between\n them. Collapsed siblings are `display: none`, so this gap only ever applies\n between items that are actually on screen. Tighter than the accordion's 16px\n because left-nav strips panel chrome and reads as one continuous column.\n `mj-form-panel-slot` and the panel hosts are `display: contents`, so the gap\n lands between the panels' own content boxes rather than around the slot. */\n.mj-forms-layout--left-nav .mj-forms-all-panels {\n gap: 12px;\n min-height: 0;\n overflow-y: auto;\n}\n\n/* Details (field panels) can be taller than the viewport \u2014 scroll inside the\n column. Related grids scroll inside AG Grid instead. */\n.mj-forms-layout--left-nav .mj-forms-all-panels:has(mj-collapsible-panel.mj-chrome-show:not(.mj-panel--related-entity)) {\n overflow-y: auto;\n}\n\n.mj-forms-layout--left-nav .mj-forms-all-panels > *:not(mj-collapsible-panel.mj-panel--related-entity) {\n flex-shrink: 0;\n}\n\n.mj-forms-layout--left-nav .biz-hero {\n margin-bottom: 4px;\n}\n\n/* All panels in a single flex container \u2014 CSS order drives sequencing */\n.mj-forms-all-panels {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n min-width: 0;\n}\n\n/* Hide related entity panels in edit mode (variant host class on mj-collapsible-panel) */\n.mj-forms-panels--edit-mode .mj-panel--related-entity,\n.mj-forms-panels--edit-mode .mj-forms-more-overflow {\n display: none;\n}\n\n/* Detail / More panels sort after the overflow footer */\nmj-collapsible-panel.mj-form-role-detail,\nmj-collapsible-panel.mj-form-role-more {\n order: 8500;\n}\n\n.mj-forms-more-overflow {\n order: 8400;\n display: flex;\n flex-direction: column;\n margin-top: 4px;\n padding-top: 12px;\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mj-forms-more-overflow-toggle {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n padding: 6px 2px;\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n cursor: pointer;\n text-align: left;\n}\n\n.mj-forms-more-overflow-toggle:hover {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-more-overflow-label {\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-more-overflow-preview {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-disabled);\n font-weight: var(--mj-font-normal);\n}\n\n.mj-forms-more-overflow-toggle .fa-chevron-right,\n.mj-forms-more-overflow-toggle .fa-chevron-down {\n margin-left: auto;\n}\n\n.mj-forms-chrome-rail {\n flex: 0 0 auto;\n width: 200px;\n max-width: 360px;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n position: sticky;\n top: 0;\n align-self: stretch;\n min-height: 0;\n padding: 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n}\n\n/* The rail is as tall as the body column; when it has more items than fit,\n the ITEMS scroll (the pin / collapse toolbar above stays fixed). Without\n this the overflow was clipped by the panels container. */\n.mj-forms-chrome-rail-items {\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n}\n\n.mj-forms-chrome-rail.is-resizing {\n user-select: none;\n}\n\n.mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 36px;\n width: 36px;\n min-width: 36px;\n max-width: 36px;\n padding: 8px 0;\n overflow: hidden;\n}\n\n.mj-forms-chrome-rail-resizer {\n position: absolute;\n top: 0;\n right: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 3;\n touch-action: none;\n}\n\n.mj-forms-chrome-rail-resizer::after {\n content: '';\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 3px;\n width: 2px;\n border-radius: 1px;\n background: transparent;\n}\n\n.mj-forms-chrome-rail:hover .mj-forms-chrome-rail-resizer::after,\n.mj-forms-chrome-rail.is-resizing .mj-forms-chrome-rail-resizer::after {\n background: var(--mj-border-strong);\n}\n\n.mj-forms-layout--right-nav .mj-forms-chrome-rail-resizer {\n right: auto;\n left: -4px;\n}\n\n.mj-forms-chrome-rail-spine {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 8px 0;\n border: 0;\n background: transparent;\n color: var(--mj-brand-primary);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-spine:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-forms-chrome-rail-spine > i {\n flex-shrink: 0;\n}\n\n.mj-forms-chrome-rail-spine-label {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.04em;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 100%;\n}\n\n.mj-forms-chrome-rail-toolbar {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 2px;\n padding: 2px 4px 6px;\n}\n\n.mj-forms-chrome-rail-pin,\n.mj-forms-chrome-rail-collapse {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-pin:hover,\n.mj-forms-chrome-rail-collapse:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-pin:not(.is-pinned) i {\n transform: rotate(45deg);\n}\n\n.mj-forms-chrome-rail-pin.is-pinned {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-chrome-rail-item > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-item:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active {\n background: color-mix(in srgb, var(--mj-brand-primary) 16%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-chrome-rail-item.is-active::before {\n content: '';\n position: absolute;\n left: 0;\n top: 6px;\n bottom: 6px;\n width: 3px;\n border-radius: 0 3px 3px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-label {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-item.is-drag-over {\n outline: 1px dashed var(--mj-border-focus);\n outline-offset: -1px;\n}\n\n.mj-forms-chrome-rail-handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 18px;\n margin-left: -4px;\n color: var(--mj-text-muted);\n cursor: grab;\n opacity: 0;\n overflow: hidden;\n flex-shrink: 0;\n transition: opacity var(--mj-transition-base, 0.15s) ease;\n}\n\n.mj-forms-chrome-rail-item:hover .mj-forms-chrome-rail-handle,\n.mj-forms-chrome-rail-item.is-active .mj-forms-chrome-rail-handle {\n opacity: 1;\n}\n\n.mj-forms-chrome-rail-handle.is-spacer {\n opacity: 0;\n pointer-events: none;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-handle:hover {\n color: var(--mj-brand-primary);\n}\n\n.mj-forms-chrome-rail-handle:active {\n cursor: grabbing;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder {\n position: relative;\n margin-top: 14px;\n padding-top: 14px;\n color: var(--mj-text-muted);\n border-radius: 0;\n}\n\n.mj-forms-chrome-rail-item.is-more-folder::before {\n content: '';\n position: absolute;\n top: 0;\n left: 8px;\n right: 8px;\n height: 1px;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--mj-border-strong) 18%,\n var(--mj-border-strong) 82%,\n transparent 100%\n );\n}\n\n.mj-forms-chrome-rail-item.is-more-folder:hover {\n background: transparent;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-item.is-more-folder.is-expanded {\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-chrome-rail-more-toggle {\n margin-left: auto;\n font-size: 10px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-chrome-rail-more-tree {\n margin-left: 22px;\n padding-left: 6px;\n border-left: 1px solid var(--mj-border-subtle);\n}\n\n.mj-forms-chrome-rail-item.is-more-child {\n padding-left: 8px;\n}\n\n.mj-forms-chrome-rail-label {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Related-grid row count. Not rendered at 0 \u2014 an empty grid is not a signal, and a\n grey \"0\" beside the red invalid count reads as one more thing to attend to. */\n.mj-forms-chrome-rail-count {\n min-width: 1.25rem;\n padding: 0 6px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n text-align: center;\n}\n\n/* Screen-reader-only text (the indicators' live region). */\n.mj-forms-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n/* ============================================\n RAIL SECTION INDICATORS\n A rail item says WHICH section holds unsaved edits or an invalid field, read\n live from the panels it fronts (FormSectionIndicatorCoordinator). Same idioms\n as the fields themselves: the 6px amber dot an edited field shows after its\n label, and the error colour a failing field paints its underline in.\n ============================================ */\n.mj-forms-chrome-rail-dirty {\n flex: 0 0 auto;\n width: var(--mj-space-1-5);\n height: var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n background: var(--mj-status-warning);\n}\n\n.mj-forms-chrome-rail-error,\n.mj-forms-chrome-rail-warning {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n min-width: var(--mj-space-5);\n padding: var(--mj-space-px) var(--mj-space-1-5);\n border-radius: var(--mj-radius-full);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n line-height: 1.2;\n text-align: center;\n}\n\n.mj-forms-chrome-rail-error {\n background: var(--mj-status-error);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-chrome-rail-warning {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n border: 1px solid var(--mj-status-warning-border);\n}\n\n.mj-forms-chrome-rail-error i,\n.mj-forms-chrome-rail-warning i {\n font-size: var(--mj-space-2-5);\n}\n\n/* Failures no rail item owns: same row shape as an item, not interactive, error-tinted. */\n.mj-forms-chrome-rail-unrouted {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border-radius: var(--mj-radius-sm);\n color: var(--mj-status-error);\n font-size: var(--mj-text-sm);\n text-align: left;\n cursor: default;\n}\n\n.mj-forms-chrome-rail-unrouted > i {\n width: 1.15em;\n flex-shrink: 0;\n text-align: center;\n color: inherit;\n}\n\n.mj-forms-chrome-rail-unrouted > .mj-forms-chrome-rail-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* The section's icon takes the error colour too, so the item reads as failing\n even before the badge is noticed \u2014 but never the active item's brand tint. */\n.mj-forms-chrome-rail-item.has-errors:not(.is-active) > i {\n color: var(--mj-status-error);\n}\n\n/* Collapsed spine: a column of icon \u2192 badge / dot \u2192 rotated label. */\n.mj-forms-chrome-rail-error.is-spine,\n.mj-forms-chrome-rail-warning.is-spine {\n order: 1;\n padding: 0 var(--mj-space-1);\n min-width: var(--mj-space-5);\n}\n\n.mj-forms-chrome-rail-dirty.is-spine {\n order: 1;\n}\n\n.mj-forms-chrome-rail-spine > .mj-forms-chrome-rail-spine-label {\n order: 2;\n}\n\n@media (max-width: 720px) {\n .mj-forms-layout--left-nav {\n flex-direction: column;\n }\n\n .mj-forms-chrome-rail {\n flex: 1 1 auto;\n width: 100%;\n position: static;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n .mj-forms-chrome-rail-resizer {\n display: none;\n }\n\n .mj-forms-chrome-rail.is-collapsed {\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n max-width: none;\n height: 36px;\n padding: 0;\n }\n\n .mj-forms-chrome-rail-spine {\n flex-direction: row;\n padding: 0 12px;\n }\n\n .mj-forms-chrome-rail-spine-label {\n writing-mode: horizontal-tb;\n transform: none;\n max-height: none;\n }\n\n .mj-forms-chrome-rail-toolbar {\n width: 100%;\n }\n\n .mj-forms-chrome-rail-item {\n width: auto;\n }\n\n /* Phones: the rail is a wrapping row of chips, so the items wrapper must\n wrap too \u2014 a column here stacks one chip per row and grows past the\n rail (no scroll, body pushed out). */\n .mj-forms-chrome-rail-items {\n flex-direction: row;\n flex-wrap: wrap;\n overflow: visible;\n min-height: auto;\n }\n}\n\n/* ============================================\n EMPTY SEARCH STATE\n ============================================ */\n.mj-forms-empty-search-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 80px 24px;\n text-align: center;\n min-height: 400px;\n}\n\n.mj-forms-empty-search-icon {\n width: 80px;\n height: 80px;\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 24px;\n}\n\n.mj-forms-empty-search-icon i {\n font-size: 32px;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-empty-search-title {\n font-size: var(--mj-text-xl);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n margin: 0 0 12px 0;\n}\n\n.mj-forms-empty-search-message {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n max-width: 400px;\n margin: 0;\n}\n\n.mj-forms-empty-search-message strong {\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-forms-empty-search-link {\n color: var(--mj-brand-primary);\n text-decoration: none;\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-empty-search-link:hover {\n text-decoration: underline;\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n@media (max-width: 768px) {\n .mj-forms-panels-container {\n padding: 16px 12px 32px;\n }\n}\n\n/* ====================================================================\n VARIANT PICKER \u2014 between toolbar and form body\n Compact \"Form: <name> \u25BE\" row that appears when more than one variant\n is applicable for the current entity record.\n ==================================================================== */\n\n.mj-form-variant-picker {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 6px 18px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n.mj-form-variant-picker-label {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n.mj-form-variant-picker-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n cursor: pointer;\n outline: none;\n user-select: none;\n min-width: 160px;\n}\n.mj-form-variant-picker-control:hover,\n.mj-form-variant-picker-control:focus,\n.mj-form-variant-picker-control.open {\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n.mj-form-variant-picker-current {\n font-weight: 600;\n flex: 1;\n}\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 50;\n min-width: 280px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md, 8px);\n box-shadow: var(--mj-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));\n padding: 4px;\n max-height: 320px;\n overflow: auto;\n}\n.mj-form-variant-picker-row {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 6px;\n cursor: pointer;\n}\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n}\n.mj-form-variant-picker-row.inactive {\n opacity: 0.7;\n}\n.mj-form-variant-picker-row-main {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1;\n min-width: 0;\n}\n.mj-form-variant-picker-row-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n}\n\n/* Retrospective fix #8 \u2014 visually distinguish the Default row from variants. */\n.mj-form-variant-picker-row.mj-form-variant-picker-default {\n border-bottom: 1px dashed var(--mj-border-default);\n margin-bottom: 4px;\n padding-bottom: 10px;\n}\n.mj-form-variant-picker-default-tag {\n color: var(--mj-text-muted);\n font-weight: 400;\n font-size: 11px;\n margin-left: 4px;\n}\n"] }]
|
|
2424
3142
|
}], null, { recordChangesDrawer: [{
|
|
2425
3143
|
type: ViewChild,
|
|
2426
3144
|
args: [RecordChangesComponent]
|
|
@@ -2512,19 +3230,29 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2512
3230
|
type: ContentChildren,
|
|
2513
3231
|
args: [MjCollapsiblePanelComponent, { descendants: true }]
|
|
2514
3232
|
}] }); })();
|
|
2515
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber:
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
3233
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 161 }); })();
|
|
3234
|
+
/** The value a form with no entity resolves to. */
|
|
3235
|
+
const NO_RESOLVED_CONTRIBUTIONS = { Winners: [], RailItems: new Map() };
|
|
3236
|
+
/**
|
|
3237
|
+
* Why a winner drawn inside a section has no section to draw in, or null when one hosts it: a
|
|
3238
|
+
* section with its `inSectionKey`, or one drawing a field it claims. Fields are only judged once
|
|
3239
|
+
* the form has drawn some.
|
|
3240
|
+
*/
|
|
3241
|
+
function unhostedSectionClaim(meta, sections, drawn) {
|
|
3242
|
+
if (!ContributionDrawsInSection(meta))
|
|
2521
3243
|
return null;
|
|
2522
|
-
|
|
2523
|
-
const
|
|
2524
|
-
if (
|
|
3244
|
+
const placedIn = PlacedInSectionKey(meta);
|
|
3245
|
+
const claimed = (meta.replacesFieldNames ?? []).map((name) => name.trim()).filter((name) => name.length > 0);
|
|
3246
|
+
if (placedIn && sections.has(placedIn))
|
|
3247
|
+
return null;
|
|
3248
|
+
if (claimed.some((name) => drawn.has(name)))
|
|
2525
3249
|
return null;
|
|
3250
|
+
if (!placedIn) {
|
|
3251
|
+
return drawn.size === 0 ? null : { Claim: `stands in for ${claimed.join(', ')}`, Missing: 'draws none of those fields' };
|
|
2526
3252
|
}
|
|
2527
|
-
return
|
|
3253
|
+
return claimed.length === 0
|
|
3254
|
+
? { Claim: `is placed in section "${placedIn}"`, Missing: 'has no section with that key' }
|
|
3255
|
+
: { Claim: `stands in for ${claimed.join(', ')} in section "${placedIn}"`, Missing: 'has neither that section nor any of those fields' };
|
|
2528
3256
|
}
|
|
2529
3257
|
function ReadRegisteredInclusion(raw) {
|
|
2530
3258
|
if (raw === 'Primary' || raw === 'More' || raw === 'None') {
|