@memberjunction/ng-base-forms 6.2.0-edge.5 → 6.2.0-edge.7
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/README.md +195 -2
- package/dist/lib/apply/form-placement-preview.component.d.ts.map +1 -1
- package/dist/lib/apply/form-placement-preview.component.js +1 -0
- package/dist/lib/apply/form-placement-preview.component.js.map +1 -1
- package/dist/lib/base-form-component.d.ts +23 -1
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +54 -10
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/chrome/form-composition-snapshot.d.ts +52 -0
- package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -1
- package/dist/lib/chrome/form-composition-snapshot.js +4 -0
- package/dist/lib/chrome/form-composition-snapshot.js.map +1 -1
- package/dist/lib/container/record-form-container.component.d.ts +107 -1
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
- package/dist/lib/container/record-form-container.component.js +1495 -316
- package/dist/lib/container/record-form-container.component.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +159 -14
- package/dist/lib/field/form-field.component.d.ts.map +1 -1
- package/dist/lib/field/form-field.component.js +1360 -469
- package/dist/lib/field/form-field.component.js.map +1 -1
- package/dist/lib/form-record-refresh.coordinator.d.ts +124 -0
- package/dist/lib/form-record-refresh.coordinator.d.ts.map +1 -1
- package/dist/lib/form-record-refresh.coordinator.js +93 -13
- package/dist/lib/form-record-refresh.coordinator.js.map +1 -1
- package/dist/lib/host/entity-form-host.component.d.ts +104 -2
- package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
- package/dist/lib/host/entity-form-host.component.js +272 -34
- package/dist/lib/host/entity-form-host.component.js.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.js +1 -0
- package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-card.component.js +7 -4
- package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-panel.component.js +1 -2
- package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
- package/dist/lib/links/record-link-utils.d.ts +83 -0
- package/dist/lib/links/record-link-utils.d.ts.map +1 -0
- package/dist/lib/links/record-link-utils.js +232 -0
- package/dist/lib/links/record-link-utils.js.map +1 -0
- package/dist/lib/links/record-link.component.d.ts +50 -0
- package/dist/lib/links/record-link.component.d.ts.map +1 -0
- package/dist/lib/links/record-link.component.js +319 -0
- package/dist/lib/links/record-link.component.js.map +1 -0
- package/dist/lib/links/record-link.directive.d.ts +94 -0
- package/dist/lib/links/record-link.directive.d.ts.map +1 -0
- package/dist/lib/links/record-link.directive.js +277 -0
- package/dist/lib/links/record-link.directive.js.map +1 -0
- package/dist/lib/links/record-links-drawer.component.d.ts +21 -0
- package/dist/lib/links/record-links-drawer.component.d.ts.map +1 -0
- package/dist/lib/links/record-links-drawer.component.js +61 -0
- package/dist/lib/links/record-links-drawer.component.js.map +1 -0
- package/dist/lib/links/record-links.component.d.ts +255 -0
- package/dist/lib/links/record-links.component.d.ts.map +1 -0
- package/dist/lib/links/record-links.component.js +1546 -0
- package/dist/lib/links/record-links.component.js.map +1 -0
- package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-field-panel-slot.component.js +3 -1
- package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -1
- package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-panel-slot.component.js +6 -0
- package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
- package/dist/lib/preview-popover/record-preview-popover.component.d.ts +194 -0
- package/dist/lib/preview-popover/record-preview-popover.component.d.ts.map +1 -0
- package/dist/lib/preview-popover/record-preview-popover.component.js +1084 -0
- package/dist/lib/preview-popover/record-preview-popover.component.js.map +1 -0
- package/dist/lib/preview-popover/record-preview-popover.service.d.ts +105 -0
- package/dist/lib/preview-popover/record-preview-popover.service.d.ts.map +1 -0
- package/dist/lib/preview-popover/record-preview-popover.service.js +278 -0
- package/dist/lib/preview-popover/record-preview-popover.service.js.map +1 -0
- package/dist/lib/resolver/form-resolver.service.d.ts +44 -1
- package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
- package/dist/lib/resolver/form-resolver.service.js +51 -3
- package/dist/lib/resolver/form-resolver.service.js.map +1 -1
- package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts +21 -0
- package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts.map +1 -0
- package/dist/lib/toolbar/actions/record-links-toolbar-action.js +90 -0
- package/dist/lib/toolbar/actions/record-links-toolbar-action.js.map +1 -0
- package/dist/lib/toolbar/base-form-toolbar-action.d.ts +189 -0
- package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -0
- package/dist/lib/toolbar/base-form-toolbar-action.js +274 -0
- package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -0
- package/dist/lib/toolbar/form-toolbar.component.d.ts +21 -1
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.js +295 -195
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
- package/dist/lib/types/form-toolbar-item.js.map +1 -1
- package/dist/lib/types/toolbar-config.d.ts +4 -0
- package/dist/lib/types/toolbar-config.d.ts.map +1 -1
- package/dist/lib/types/toolbar-config.js +6 -0
- package/dist/lib/types/toolbar-config.js.map +1 -1
- package/dist/module.d.ts +19 -14
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +39 -6
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +9 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +9 -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, LogError, RunView } from '@memberjunction/core';
|
|
3
|
-
import { EscapeSQLString, UUIDsEqual } from '@memberjunction/global';
|
|
2
|
+
import { BaseEntity, CompositeKey, KeyValuePair, LogError, RunView } from '@memberjunction/core';
|
|
3
|
+
import { EscapeSQLString, MJGlobal, 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';
|
|
@@ -15,6 +15,9 @@ import { FormSlotCoordinator } from '../panel-slot/form-slot-coordinator.service
|
|
|
15
15
|
import { BuildFormCompositionSnapshot } from '../chrome/form-composition-snapshot';
|
|
16
16
|
import { FormCompositionRegistry } from '../chrome/form-composition-registry';
|
|
17
17
|
import { FormPanelAdminService } from '../panel-manager/form-panel-admin.service';
|
|
18
|
+
import { TOOLBAR_PINS_SETTING_KEY, DEFAULT_PINNED_TOOLBAR_ACTIONS } from '../toolbar/form-toolbar.component';
|
|
19
|
+
import { ResolveFormToolbarActionsForEntity, } from '../toolbar/base-form-toolbar-action';
|
|
20
|
+
import { RecordLinksToolbarAction } from '../toolbar/actions/record-links-toolbar-action';
|
|
18
21
|
import { FormChromeCoordinator } from '../chrome/form-chrome-coordinator.service';
|
|
19
22
|
import { ResolveFormChrome, OrderChromeGroups, OrderMoreSectionKeys, MoveChromeGroupInSectionOrder, OverlayChromeSectionOrder } from '../chrome/resolve-form-chrome';
|
|
20
23
|
import { LoadFormChromeRules } from '../chrome/load-form-chrome-rules';
|
|
@@ -28,7 +31,7 @@ import { FORM_PLACEMENT_PREVIEW } from '../panel-slot/placement-preview';
|
|
|
28
31
|
import { ContributionDrawsInSection, ContributionHiddenSectionKeys, IsWildcardPlaceClaim, PlacedInSectionKey, ReplacedSectionKeys, ResolveContributionKey, ResolveFormContributionWinners, ResolveFormContributions, StripJoinFieldBrackets, } from '../panel-slot/form-contribution';
|
|
29
32
|
import { IsFormSectionHidden } from '../types/entity-form-config';
|
|
30
33
|
import { ApplyFormCountResults, BuildFormCountPlan, FormCountPlanParams, ResolveEmptySectionBehavior, } from '../section-counts/form-section-counts';
|
|
31
|
-
import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
|
|
34
|
+
import { FormRecordRefreshCoordinator, } from '../form-record-refresh.coordinator';
|
|
32
35
|
import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
|
|
33
36
|
import { FormSectionIndicatorCoordinator } from '../section-indicators/form-section-indicator-coordinator.service';
|
|
34
37
|
import { DescribeSectionDirty, DescribeSectionErrors, DescribeSectionWarnings, SumSectionIndicators, TallyValidationErrors, } from '../section-indicators/form-section-indicators';
|
|
@@ -44,104 +47,255 @@ import * as i8 from "../panel-manager/panel-manager.component";
|
|
|
44
47
|
import * as i9 from "../isa-related-panel/isa-related-panel.component";
|
|
45
48
|
import * as i10 from "../panel-slot/form-panel-slot.component";
|
|
46
49
|
import * as i11 from "../panel-slot/form-contributions.component";
|
|
50
|
+
import * as i12 from "../links/record-links.component";
|
|
47
51
|
const _c0 = [[["", "before-toolbar", ""]], "*"];
|
|
48
52
|
const _c1 = ["[before-toolbar]", "*"];
|
|
49
53
|
const _c2 = a0 => [a0];
|
|
50
54
|
const _c3 = (a0, a1, a2) => ({ mode: "manage", entityId: a0, entityName: a1, recordIds: a2, allowCreate: true });
|
|
51
|
-
const _forTrack0 = ($index, $item) => $item.
|
|
52
|
-
const _forTrack1 = ($index, $item) => $item.
|
|
55
|
+
const _forTrack0 = ($index, $item) => $item.FieldName;
|
|
56
|
+
const _forTrack1 = ($index, $item) => $item.RecordID;
|
|
57
|
+
const _forTrack2 = ($index, $item) => $item.Key;
|
|
53
58
|
function MjRecordFormContainerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
54
59
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
55
|
-
i0.ɵɵelementStart(0, "mj-form-toolbar",
|
|
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)); });
|
|
60
|
+
i0.ɵɵelementStart(0, "mj-form-toolbar", 22);
|
|
61
|
+
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()); })("LinksRequest", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_LinksRequest_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnToggleRecordLinks()); })("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()); })("AskAIRequested", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_AskAIRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAskAIRequested()); })("ActionPinChanged", function MjRecordFormContainerComponent_Conditional_1_Template_mj_form_toolbar_ActionPinChanged_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnToolbarActionPinChanged($event)); })("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)); });
|
|
57
62
|
i0.ɵɵelementEnd();
|
|
58
63
|
} if (rf & 2) {
|
|
59
64
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
60
|
-
i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("EditMode", ctx_r1.EffectiveEditMode)("UserCanEdit", ctx_r1.EffectiveUserCanEdit)("UserCanDelete", ctx_r1.EffectiveUserCanDelete)("IsFavorite", ctx_r1.EffectiveIsFavorite)("FavoriteInitDone", ctx_r1.EffectiveFavoriteInitDone)("IsDirty", ctx_r1.EffectiveIsDirty)("DirtyFieldNames", ctx_r1.EffectiveDirtyFieldNames)("ListCount", ctx_r1.ListCount)("TagCount", ctx_r1.TagCount)("AttachmentCount", ctx_r1.AttachmentCount)("AttachmentsAvailable", ctx_r1.AttachmentsAvailable)("IsAttachmentsPanelOpen", ctx_r1.ShowAttachmentsPanel)("VersionCount", ctx_r1.VersionCount)("EntityInfo", ctx_r1.EffectiveEntityInfo)("Config", ctx_r1.EffectiveToolbarConfig)("IsSaving", ctx_r1.EffectiveIsSaving)("IsRefreshing", ctx_r1.EffectiveIsRefreshing)("VisibleSectionCount", ctx_r1.VisibleSectionCount)("TotalSectionCount", ctx_r1.TotalSectionCount)("ExpandedSectionCount", ctx_r1.ExpandedSectionCount)("SearchFilter", ctx_r1.EffectiveSearchFilter)("ShowEmptyFields", ctx_r1.EffectiveShowEmptyFields)("WidthMode", ctx_r1.EffectiveWidthMode)("HasCustomSectionOrder", ctx_r1.EffectiveHasCustomSectionOrder)("ChromeLayout", ctx_r1.ChromeLayout)("Variants", ctx_r1.EffectiveVariants)("CurrentVariantID", ctx_r1.EffectiveCurrentVariantID)("RegisteredItems", ctx_r1.EffectiveRegisteredToolbarItems)("ItemOverrides", ctx_r1.EffectiveToolbarItemOverrides)("FormComponent", ctx_r1.fc);
|
|
65
|
+
i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("EditMode", ctx_r1.EffectiveEditMode)("UserCanEdit", ctx_r1.EffectiveUserCanEdit)("UserCanDelete", ctx_r1.EffectiveUserCanDelete)("IsFavorite", ctx_r1.EffectiveIsFavorite)("FavoriteInitDone", ctx_r1.EffectiveFavoriteInitDone)("IsDirty", ctx_r1.EffectiveIsDirty)("DirtyFieldNames", ctx_r1.EffectiveDirtyFieldNames)("ListCount", ctx_r1.ListCount)("TagCount", ctx_r1.TagCount)("LinksOpen", ctx_r1.ShowRecordLinks)("LinkCount", ctx_r1.LinkCount)("ConflictCount", ctx_r1.ConflictCount)("AttachmentCount", ctx_r1.AttachmentCount)("AttachmentsAvailable", ctx_r1.AttachmentsAvailable)("IsAttachmentsPanelOpen", ctx_r1.ShowAttachmentsPanel)("VersionCount", ctx_r1.VersionCount)("EntityInfo", ctx_r1.EffectiveEntityInfo)("Config", ctx_r1.EffectiveToolbarConfig)("IsSaving", ctx_r1.EffectiveIsSaving)("IsRefreshing", ctx_r1.EffectiveIsRefreshing)("VisibleSectionCount", ctx_r1.VisibleSectionCount)("TotalSectionCount", ctx_r1.TotalSectionCount)("ExpandedSectionCount", ctx_r1.ExpandedSectionCount)("SearchFilter", ctx_r1.EffectiveSearchFilter)("ShowEmptyFields", ctx_r1.EffectiveShowEmptyFields)("WidthMode", ctx_r1.EffectiveWidthMode)("HasCustomSectionOrder", ctx_r1.EffectiveHasCustomSectionOrder)("ChromeLayout", ctx_r1.ChromeLayout)("Variants", ctx_r1.EffectiveVariants)("CurrentVariantID", ctx_r1.EffectiveCurrentVariantID)("RegisteredItems", ctx_r1.EffectiveRegisteredToolbarItems)("ItemOverrides", ctx_r1.EffectiveToolbarItemOverrides)("FormComponent", ctx_r1.fc);
|
|
61
66
|
} }
|
|
62
|
-
function
|
|
67
|
+
function MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
69
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "button", 38);
|
|
70
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnStepVersionPreview(1)); });
|
|
71
|
+
i0.ɵɵelement(2, "i", 39);
|
|
72
|
+
i0.ɵɵtext(3, " Older ");
|
|
73
|
+
i0.ɵɵelementEnd();
|
|
74
|
+
i0.ɵɵelementStart(4, "span", 40);
|
|
75
|
+
i0.ɵɵtext(5);
|
|
76
|
+
i0.ɵɵelementEnd();
|
|
77
|
+
i0.ɵɵelementStart(6, "button", 41);
|
|
78
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnStepVersionPreview(-1)); });
|
|
79
|
+
i0.ɵɵtext(7, " Newer ");
|
|
80
|
+
i0.ɵɵelement(8, "i", 42);
|
|
81
|
+
i0.ɵɵelementEnd()();
|
|
82
|
+
} if (rf & 2) {
|
|
83
|
+
const preview_r5 = i0.ɵɵnextContext();
|
|
84
|
+
i0.ɵɵadvance();
|
|
85
|
+
i0.ɵɵproperty("disabled", (preview_r5.CurrentIndex ?? 0) >= (preview_r5.TotalRestoreableCount ?? 1) - 1);
|
|
86
|
+
i0.ɵɵadvance(4);
|
|
87
|
+
i0.ɵɵtextInterpolate2(" ", (preview_r5.TotalRestoreableCount ?? 1) - (preview_r5.CurrentIndex ?? 0), " / ", preview_r5.TotalRestoreableCount ?? 1, " ");
|
|
88
|
+
i0.ɵɵadvance();
|
|
89
|
+
i0.ɵɵproperty("disabled", (preview_r5.CurrentIndex ?? 0) <= 0);
|
|
90
|
+
} }
|
|
91
|
+
function MjRecordFormContainerComponent_Conditional_2_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
93
|
+
i0.ɵɵelementStart(0, "button", 43);
|
|
94
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Conditional_18_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRestorePreviewedVersion()); });
|
|
95
|
+
i0.ɵɵelement(1, "i", 44);
|
|
96
|
+
i0.ɵɵtext(2, " Restore This Version... ");
|
|
97
|
+
i0.ɵɵelementEnd();
|
|
98
|
+
} }
|
|
99
|
+
function MjRecordFormContainerComponent_Conditional_2_Conditional_22_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
100
|
+
i0.ɵɵelementStart(0, "span", 45)(1, "span", 47);
|
|
101
|
+
i0.ɵɵtext(2);
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
i0.ɵɵelementStart(3, "strong", 48);
|
|
104
|
+
i0.ɵɵtext(4);
|
|
105
|
+
i0.ɵɵelementEnd();
|
|
106
|
+
i0.ɵɵelementStart(5, "span", 49);
|
|
107
|
+
i0.ɵɵtext(6);
|
|
108
|
+
i0.ɵɵelementEnd()();
|
|
109
|
+
} if (rf & 2) {
|
|
110
|
+
const diff_r7 = ctx.$implicit;
|
|
111
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
112
|
+
i0.ɵɵproperty("title", (diff_r7.DisplayName || diff_r7.FieldName) + ": " + ctx_r1.FormatPreviewDiffValue(diff_r7.HistoricalValue) + " (Current live: " + ctx_r1.FormatPreviewDiffValue(diff_r7.CurrentLiveValue) + ")");
|
|
113
|
+
i0.ɵɵadvance(2);
|
|
114
|
+
i0.ɵɵtextInterpolate1("", diff_r7.DisplayName || diff_r7.FieldName, ":");
|
|
115
|
+
i0.ɵɵadvance(2);
|
|
116
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormatPreviewDiffValue(diff_r7.HistoricalValue));
|
|
117
|
+
i0.ɵɵadvance(2);
|
|
118
|
+
i0.ɵɵtextInterpolate1("\u2190 Live: ", ctx_r1.FormatPreviewDiffValue(diff_r7.CurrentLiveValue));
|
|
119
|
+
} }
|
|
120
|
+
function MjRecordFormContainerComponent_Conditional_2_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
121
|
+
i0.ɵɵelementStart(0, "span", 46);
|
|
122
|
+
i0.ɵɵtext(1);
|
|
123
|
+
i0.ɵɵelementEnd();
|
|
124
|
+
} if (rf & 2) {
|
|
125
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
126
|
+
i0.ɵɵadvance();
|
|
127
|
+
i0.ɵɵtextInterpolate1(" +", ctx_r1.PreviewChangedFieldChips.length - 6, " more ");
|
|
128
|
+
} }
|
|
129
|
+
function MjRecordFormContainerComponent_Conditional_2_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
130
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
131
|
+
i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_2_Conditional_22_For_2_Template, 7, 4, "span", 45, _forTrack0);
|
|
132
|
+
i0.ɵɵconditionalCreate(3, MjRecordFormContainerComponent_Conditional_2_Conditional_22_Conditional_3_Template, 2, 1, "span", 46);
|
|
133
|
+
i0.ɵɵelementEnd();
|
|
134
|
+
} if (rf & 2) {
|
|
135
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
136
|
+
i0.ɵɵadvance();
|
|
137
|
+
i0.ɵɵrepeater(ctx_r1.PreviewChangedFieldChips.slice(0, 6));
|
|
138
|
+
i0.ɵɵadvance(2);
|
|
139
|
+
i0.ɵɵconditional(ctx_r1.PreviewChangedFieldChips.length > 6 ? 3 : -1);
|
|
140
|
+
} }
|
|
141
|
+
function MjRecordFormContainerComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
142
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
143
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "div", 23)(2, "div", 24)(3, "span", 25);
|
|
144
|
+
i0.ɵɵelement(4, "i", 26);
|
|
145
|
+
i0.ɵɵtext(5, " Time-Travel Preview ");
|
|
146
|
+
i0.ɵɵelementEnd();
|
|
147
|
+
i0.ɵɵelementStart(6, "span", 27)(7, "strong");
|
|
148
|
+
i0.ɵɵtext(8);
|
|
149
|
+
i0.ɵɵelementEnd();
|
|
150
|
+
i0.ɵɵelementStart(9, "span", 28);
|
|
151
|
+
i0.ɵɵtext(10);
|
|
152
|
+
i0.ɵɵelementEnd()();
|
|
153
|
+
i0.ɵɵelementStart(11, "span", 29);
|
|
154
|
+
i0.ɵɵtext(12);
|
|
155
|
+
i0.ɵɵelementEnd()();
|
|
156
|
+
i0.ɵɵelementStart(13, "div", 30);
|
|
157
|
+
i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_2_Conditional_14_Template, 9, 4, "div", 31);
|
|
158
|
+
i0.ɵɵelementStart(15, "button", 32);
|
|
159
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnReopenHistoryFromPreview()); });
|
|
160
|
+
i0.ɵɵelement(16, "i", 33);
|
|
161
|
+
i0.ɵɵtext(17, " Timeline ");
|
|
162
|
+
i0.ɵɵelementEnd();
|
|
163
|
+
i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_2_Conditional_18_Template, 3, 0, "button", 34);
|
|
164
|
+
i0.ɵɵelementStart(19, "button", 35);
|
|
165
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExitVersionPreview()); });
|
|
166
|
+
i0.ɵɵelement(20, "i", 36);
|
|
167
|
+
i0.ɵɵtext(21, " Exit Preview ");
|
|
168
|
+
i0.ɵɵelementEnd()()();
|
|
169
|
+
i0.ɵɵconditionalCreate(22, MjRecordFormContainerComponent_Conditional_2_Conditional_22_Template, 4, 1, "div", 37);
|
|
170
|
+
i0.ɵɵelementEnd();
|
|
171
|
+
} if (rf & 2) {
|
|
172
|
+
const preview_r5 = ctx;
|
|
173
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
174
|
+
i0.ɵɵadvance(8);
|
|
175
|
+
i0.ɵɵtextInterpolate(preview_r5.VersionLabel);
|
|
176
|
+
i0.ɵɵadvance(2);
|
|
177
|
+
i0.ɵɵtextInterpolate1("by ", preview_r5.UserName);
|
|
178
|
+
i0.ɵɵadvance(2);
|
|
179
|
+
i0.ɵɵtextInterpolate2(" ", preview_r5.DiffCount ?? 0, " ", (preview_r5.DiffCount ?? 0) === 1 ? "field differs" : "fields differ", " from live ");
|
|
180
|
+
i0.ɵɵadvance(2);
|
|
181
|
+
i0.ɵɵconditional((preview_r5.TotalRestoreableCount ?? 0) > 1 ? 14 : -1);
|
|
182
|
+
i0.ɵɵadvance(4);
|
|
183
|
+
i0.ɵɵconditional(ctx_r1.EffectiveUserCanEdit && (preview_r5.DiffCount ?? 0) > 0 ? 18 : -1);
|
|
184
|
+
i0.ɵɵadvance(4);
|
|
185
|
+
i0.ɵɵconditional(ctx_r1.PreviewChangedFieldChips.length > 0 ? 22 : -1);
|
|
186
|
+
} }
|
|
187
|
+
function MjRecordFormContainerComponent_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
188
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
189
|
+
i0.ɵɵelementStart(0, "button", 54);
|
|
190
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_5_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnReloadFromRemotePill()); });
|
|
191
|
+
i0.ɵɵtext(1, " Reload ");
|
|
192
|
+
i0.ɵɵelementEnd();
|
|
193
|
+
} }
|
|
194
|
+
function MjRecordFormContainerComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
196
|
+
i0.ɵɵelementStart(0, "div", 50);
|
|
197
|
+
i0.ɵɵelement(1, "i");
|
|
198
|
+
i0.ɵɵelementStart(2, "span", 51);
|
|
199
|
+
i0.ɵɵtext(3);
|
|
200
|
+
i0.ɵɵelementEnd();
|
|
201
|
+
i0.ɵɵconditionalCreate(4, MjRecordFormContainerComponent_Conditional_5_Conditional_4_Template, 2, 0, "button", 52);
|
|
202
|
+
i0.ɵɵelementStart(5, "button", 53);
|
|
203
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_5_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDismissRemoteUpdatePill()); });
|
|
204
|
+
i0.ɵɵelement(6, "i", 36);
|
|
205
|
+
i0.ɵɵelementEnd()();
|
|
206
|
+
} if (rf & 2) {
|
|
207
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
208
|
+
i0.ɵɵclassProp("mj-forms-remote-update-pill--warning", ctx_r1.RemoteUpdatePill.Kind === "stale-while-editing");
|
|
209
|
+
i0.ɵɵadvance();
|
|
210
|
+
i0.ɵɵclassMap(ctx_r1.RemoteUpdatePill.Kind === "refreshed" ? "fa-solid fa-bolt mj-forms-remote-update-pill-icon" : "fa-solid fa-arrows-rotate mj-forms-remote-update-pill-icon");
|
|
211
|
+
i0.ɵɵadvance(2);
|
|
212
|
+
i0.ɵɵtextInterpolate(ctx_r1.RemoteUpdatePill.Summary);
|
|
213
|
+
i0.ɵɵadvance();
|
|
214
|
+
i0.ɵɵconditional(ctx_r1.RemoteUpdatePill.Kind === "stale-while-editing" ? 4 : -1);
|
|
215
|
+
} }
|
|
216
|
+
function MjRecordFormContainerComponent_Conditional_6_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
63
217
|
i0.ɵɵelementStart(0, "span");
|
|
64
218
|
i0.ɵɵtext(1, ", ");
|
|
65
219
|
i0.ɵɵelementEnd();
|
|
66
220
|
} }
|
|
67
|
-
function
|
|
68
|
-
const
|
|
69
|
-
i0.ɵɵelementStart(0, "button",
|
|
70
|
-
i0.ɵɵlistener("click", function
|
|
221
|
+
function MjRecordFormContainerComponent_Conditional_6_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
222
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
223
|
+
i0.ɵɵelementStart(0, "button", 57);
|
|
224
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_6_For_4_Template_button_click_0_listener() { const candidate_r12 = i0.ɵɵrestoreView(_r11).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnDuplicateCandidateClick(candidate_r12)); });
|
|
71
225
|
i0.ɵɵtext(1);
|
|
72
226
|
i0.ɵɵelementEnd();
|
|
73
|
-
i0.ɵɵconditionalCreate(2,
|
|
227
|
+
i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_6_For_4_Conditional_2_Template, 2, 0, "span");
|
|
74
228
|
} if (rf & 2) {
|
|
75
|
-
const
|
|
76
|
-
const ɵ$
|
|
77
|
-
const ɵ$
|
|
78
|
-
i0.ɵɵproperty("title", "Open " +
|
|
229
|
+
const candidate_r12 = ctx.$implicit;
|
|
230
|
+
const ɵ$index_106_r13 = ctx.$index;
|
|
231
|
+
const ɵ$count_106_r14 = ctx.$count;
|
|
232
|
+
i0.ɵɵproperty("title", "Open " + candidate_r12.DisplayName);
|
|
79
233
|
i0.ɵɵadvance();
|
|
80
|
-
i0.ɵɵtextInterpolate(
|
|
234
|
+
i0.ɵɵtextInterpolate(candidate_r12.DisplayName);
|
|
81
235
|
i0.ɵɵadvance();
|
|
82
|
-
i0.ɵɵconditional(!(ɵ$
|
|
236
|
+
i0.ɵɵconditional(!(ɵ$index_106_r13 === ɵ$count_106_r14 - 1) ? 2 : -1);
|
|
83
237
|
} }
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
i0.ɵɵelementStart(0, "mj-alert",
|
|
87
|
-
i0.ɵɵlistener("Dismissed", function
|
|
88
|
-
i0.ɵɵelementStart(1, "span",
|
|
238
|
+
function MjRecordFormContainerComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
239
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
240
|
+
i0.ɵɵelementStart(0, "mj-alert", 55);
|
|
241
|
+
i0.ɵɵlistener("Dismissed", function MjRecordFormContainerComponent_Conditional_6_Template_mj_alert_Dismissed_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDuplicateNoticeDismissed()); });
|
|
242
|
+
i0.ɵɵelementStart(1, "span", 56);
|
|
89
243
|
i0.ɵɵtext(2, "This may duplicate:");
|
|
90
244
|
i0.ɵɵelementEnd();
|
|
91
|
-
i0.ɵɵrepeaterCreate(3,
|
|
245
|
+
i0.ɵɵrepeaterCreate(3, MjRecordFormContainerComponent_Conditional_6_For_4_Template, 3, 3, null, null, _forTrack1);
|
|
92
246
|
i0.ɵɵelementEnd();
|
|
93
247
|
} if (rf & 2) {
|
|
94
248
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
95
249
|
i0.ɵɵadvance(3);
|
|
96
250
|
i0.ɵɵrepeater(ctx_r1.DuplicateEntryCandidates);
|
|
97
251
|
} }
|
|
98
|
-
function
|
|
99
|
-
i0.ɵɵelementStart(0, "span",
|
|
252
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
253
|
+
i0.ɵɵelementStart(0, "span", 62);
|
|
100
254
|
i0.ɵɵtext(1);
|
|
101
255
|
i0.ɵɵelementEnd();
|
|
102
256
|
} if (rf & 2) {
|
|
103
257
|
i0.ɵɵnextContext();
|
|
104
|
-
const
|
|
258
|
+
const formIndicators_r16 = i0.ɵɵreadContextLet(4);
|
|
105
259
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
106
|
-
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(
|
|
107
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(
|
|
260
|
+
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(formIndicators_r16.ErrorCount, "this record"));
|
|
261
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(formIndicators_r16.ErrorCount, "this record"));
|
|
108
262
|
i0.ɵɵadvance();
|
|
109
|
-
i0.ɵɵtextInterpolate(
|
|
263
|
+
i0.ɵɵtextInterpolate(formIndicators_r16.ErrorCount);
|
|
110
264
|
} }
|
|
111
|
-
function
|
|
112
|
-
i0.ɵɵelementStart(0, "span",
|
|
265
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
266
|
+
i0.ɵɵelementStart(0, "span", 63);
|
|
113
267
|
i0.ɵɵtext(1);
|
|
114
268
|
i0.ɵɵelementEnd();
|
|
115
269
|
} if (rf & 2) {
|
|
116
270
|
i0.ɵɵnextContext();
|
|
117
|
-
const
|
|
271
|
+
const formIndicators_r16 = i0.ɵɵreadContextLet(4);
|
|
118
272
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
119
|
-
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(
|
|
120
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(
|
|
273
|
+
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(formIndicators_r16.WarningCount, "this record"));
|
|
274
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(formIndicators_r16.WarningCount, "this record"));
|
|
121
275
|
i0.ɵɵadvance();
|
|
122
|
-
i0.ɵɵtextInterpolate(
|
|
276
|
+
i0.ɵɵtextInterpolate(formIndicators_r16.WarningCount);
|
|
123
277
|
} }
|
|
124
|
-
function
|
|
125
|
-
i0.ɵɵelement(0, "span",
|
|
278
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
279
|
+
i0.ɵɵelement(0, "span", 64);
|
|
126
280
|
} if (rf & 2) {
|
|
127
281
|
i0.ɵɵnextContext();
|
|
128
|
-
const
|
|
282
|
+
const formIndicators_r16 = i0.ɵɵreadContextLet(4);
|
|
129
283
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
130
|
-
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(
|
|
131
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(
|
|
284
|
+
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(formIndicators_r16.DirtyCount, "this record"));
|
|
285
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(formIndicators_r16.DirtyCount, "this record"));
|
|
132
286
|
} }
|
|
133
|
-
function
|
|
134
|
-
const
|
|
135
|
-
i0.ɵɵelementStart(0, "button",
|
|
136
|
-
i0.ɵɵlistener("click", function
|
|
287
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
288
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
289
|
+
i0.ɵɵelementStart(0, "button", 60);
|
|
290
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailExpand()); });
|
|
137
291
|
i0.ɵɵelement(1, "i");
|
|
138
|
-
i0.ɵɵelementStart(2, "span",
|
|
139
|
-
i0.ɵɵlistener("mouseenter", function
|
|
292
|
+
i0.ɵɵelementStart(2, "span", 61);
|
|
293
|
+
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template_span_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, ctx_r1.ChromeActiveTitle)); });
|
|
140
294
|
i0.ɵɵtext(3);
|
|
141
295
|
i0.ɵɵelementEnd();
|
|
142
296
|
i0.ɵɵdeclareLet(4);
|
|
143
|
-
i0.ɵɵconditionalCreate(5,
|
|
144
|
-
i0.ɵɵconditionalCreate(7,
|
|
297
|
+
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_5_Template, 2, 3, "span", 62)(6, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_6_Template, 2, 3, "span", 63);
|
|
298
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Conditional_7_Template, 1, 2, "span", 64);
|
|
145
299
|
i0.ɵɵelementEnd();
|
|
146
300
|
} if (rf & 2) {
|
|
147
301
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -152,290 +306,290 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_1_Template(rf,
|
|
|
152
306
|
i0.ɵɵadvance(2);
|
|
153
307
|
i0.ɵɵtextInterpolate(ctx_r1.ChromeActiveTitle);
|
|
154
308
|
i0.ɵɵadvance();
|
|
155
|
-
const
|
|
309
|
+
const formIndicators_r17 = i0.ɵɵstoreLet(ctx_r1.FormIndicators);
|
|
156
310
|
i0.ɵɵadvance();
|
|
157
|
-
i0.ɵɵconditional(
|
|
311
|
+
i0.ɵɵconditional(formIndicators_r17.ErrorCount > 0 ? 5 : formIndicators_r17.WarningCount > 0 ? 6 : -1);
|
|
158
312
|
i0.ɵɵadvance(2);
|
|
159
|
-
i0.ɵɵconditional(
|
|
313
|
+
i0.ɵɵconditional(formIndicators_r17.DirtyCount > 0 ? 7 : -1);
|
|
160
314
|
} }
|
|
161
|
-
function
|
|
162
|
-
const
|
|
163
|
-
i0.ɵɵelementStart(0, "span",
|
|
164
|
-
i0.ɵɵlistener("dragstart", function
|
|
165
|
-
i0.ɵɵelement(1, "i",
|
|
315
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
316
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
317
|
+
i0.ɵɵelementStart(0, "span", 81);
|
|
318
|
+
i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r21); const group_r20 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, group_r20.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
|
|
319
|
+
i0.ɵɵelement(1, "i", 82);
|
|
166
320
|
i0.ɵɵelementEnd();
|
|
167
321
|
} }
|
|
168
|
-
function
|
|
169
|
-
i0.ɵɵelement(0, "span",
|
|
322
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
323
|
+
i0.ɵɵelement(0, "span", 77);
|
|
170
324
|
} if (rf & 2) {
|
|
171
|
-
const
|
|
172
|
-
const
|
|
325
|
+
const group_r20 = i0.ɵɵnextContext().$implicit;
|
|
326
|
+
const groupIndicators_r22 = i0.ɵɵreadContextLet(5);
|
|
173
327
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
174
|
-
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(
|
|
175
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(
|
|
328
|
+
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(groupIndicators_r22.DirtyCount, group_r20.Title));
|
|
329
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(groupIndicators_r22.DirtyCount, group_r20.Title));
|
|
176
330
|
} }
|
|
177
|
-
function
|
|
178
|
-
i0.ɵɵelementStart(0, "span",
|
|
179
|
-
i0.ɵɵelement(1, "i",
|
|
331
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
332
|
+
i0.ɵɵelementStart(0, "span", 78);
|
|
333
|
+
i0.ɵɵelement(1, "i", 83);
|
|
180
334
|
i0.ɵɵtext(2);
|
|
181
335
|
i0.ɵɵelementEnd();
|
|
182
336
|
} if (rf & 2) {
|
|
183
|
-
const
|
|
184
|
-
const
|
|
337
|
+
const group_r20 = i0.ɵɵnextContext().$implicit;
|
|
338
|
+
const groupIndicators_r22 = i0.ɵɵreadContextLet(5);
|
|
185
339
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
186
|
-
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(
|
|
187
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(
|
|
340
|
+
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(groupIndicators_r22.ErrorCount, group_r20.Title));
|
|
341
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(groupIndicators_r22.ErrorCount, group_r20.Title));
|
|
188
342
|
i0.ɵɵadvance(2);
|
|
189
|
-
i0.ɵɵtextInterpolate1("",
|
|
343
|
+
i0.ɵɵtextInterpolate1("", groupIndicators_r22.ErrorCount, " ");
|
|
190
344
|
} }
|
|
191
|
-
function
|
|
192
|
-
i0.ɵɵelementStart(0, "span",
|
|
193
|
-
i0.ɵɵelement(1, "i",
|
|
345
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
346
|
+
i0.ɵɵelementStart(0, "span", 79);
|
|
347
|
+
i0.ɵɵelement(1, "i", 84);
|
|
194
348
|
i0.ɵɵtext(2);
|
|
195
349
|
i0.ɵɵelementEnd();
|
|
196
350
|
} if (rf & 2) {
|
|
197
|
-
const
|
|
198
|
-
const
|
|
351
|
+
const group_r20 = i0.ɵɵnextContext().$implicit;
|
|
352
|
+
const groupIndicators_r22 = i0.ɵɵreadContextLet(5);
|
|
199
353
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
200
|
-
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(
|
|
201
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(
|
|
354
|
+
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(groupIndicators_r22.WarningCount, group_r20.Title));
|
|
355
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(groupIndicators_r22.WarningCount, group_r20.Title));
|
|
202
356
|
i0.ɵɵadvance(2);
|
|
203
|
-
i0.ɵɵtextInterpolate1("",
|
|
357
|
+
i0.ɵɵtextInterpolate1("", groupIndicators_r22.WarningCount, " ");
|
|
204
358
|
} }
|
|
205
|
-
function
|
|
206
|
-
i0.ɵɵelementStart(0, "span",
|
|
359
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
360
|
+
i0.ɵɵelementStart(0, "span", 80);
|
|
207
361
|
i0.ɵɵtext(1);
|
|
208
362
|
i0.ɵɵelementEnd();
|
|
209
363
|
} if (rf & 2) {
|
|
210
364
|
i0.ɵɵnextContext();
|
|
211
|
-
const
|
|
365
|
+
const rowCount_r23 = i0.ɵɵreadContextLet(9);
|
|
212
366
|
i0.ɵɵadvance();
|
|
213
|
-
i0.ɵɵtextInterpolate(
|
|
367
|
+
i0.ɵɵtextInterpolate(rowCount_r23);
|
|
214
368
|
} }
|
|
215
|
-
function
|
|
216
|
-
const
|
|
217
|
-
i0.ɵɵelementStart(0, "div",
|
|
218
|
-
i0.ɵɵlistener("click", function
|
|
219
|
-
i0.ɵɵconditionalCreate(1,
|
|
369
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
370
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
371
|
+
i0.ɵɵelementStart(0, "div", 74);
|
|
372
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_click_0_listener() { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r20.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_keydown_enter_0_listener() { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r20.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_keydown_space_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(group_r20.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_dragover_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, group_r20.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_dragleave_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, group_r20.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_div_drop_0_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, group_r20.Key)); });
|
|
373
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_1_Template, 2, 0, "span", 75);
|
|
220
374
|
i0.ɵɵelement(2, "i");
|
|
221
|
-
i0.ɵɵelementStart(3, "span",
|
|
222
|
-
i0.ɵɵlistener("mouseenter", function
|
|
375
|
+
i0.ɵɵelementStart(3, "span", 76);
|
|
376
|
+
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template_span_mouseenter_3_listener($event) { const group_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, group_r20.Title)); });
|
|
223
377
|
i0.ɵɵtext(4);
|
|
224
378
|
i0.ɵɵelementEnd();
|
|
225
379
|
i0.ɵɵdeclareLet(5);
|
|
226
|
-
i0.ɵɵconditionalCreate(6,
|
|
227
|
-
i0.ɵɵconditionalCreate(7,
|
|
380
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_6_Template, 1, 2, "span", 77);
|
|
381
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_7_Template, 3, 3, "span", 78)(8, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_8_Template, 3, 3, "span", 79);
|
|
228
382
|
i0.ɵɵdeclareLet(9);
|
|
229
|
-
i0.ɵɵconditionalCreate(10,
|
|
383
|
+
i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Conditional_10_Template, 2, 1, "span", 80);
|
|
230
384
|
i0.ɵɵelementEnd();
|
|
231
385
|
} if (rf & 2) {
|
|
232
|
-
const
|
|
386
|
+
const group_r20 = ctx.$implicit;
|
|
233
387
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
234
|
-
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey ===
|
|
235
|
-
i0.ɵɵattribute("data-rail-key",
|
|
388
|
+
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === group_r20.Key)("is-drag-over", ctx_r1.RailDragOverKey === group_r20.Key)("has-errors", ctx_r1.ChromeGroupIndicators(group_r20).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(group_r20).DirtyCount > 0);
|
|
389
|
+
i0.ɵɵattribute("data-rail-key", group_r20.Key)("aria-current", ctx_r1.ChromeActiveGroupKey === group_r20.Key ? "page" : null);
|
|
236
390
|
i0.ɵɵadvance();
|
|
237
391
|
i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
|
|
238
392
|
i0.ɵɵadvance();
|
|
239
|
-
i0.ɵɵclassMap(
|
|
393
|
+
i0.ɵɵclassMap(group_r20.Icon);
|
|
240
394
|
i0.ɵɵadvance(2);
|
|
241
|
-
i0.ɵɵtextInterpolate(
|
|
395
|
+
i0.ɵɵtextInterpolate(group_r20.Title);
|
|
242
396
|
i0.ɵɵadvance();
|
|
243
|
-
const
|
|
397
|
+
const groupIndicators_r24 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(group_r20));
|
|
244
398
|
i0.ɵɵadvance();
|
|
245
|
-
i0.ɵɵconditional(
|
|
399
|
+
i0.ɵɵconditional(groupIndicators_r24.DirtyCount > 0 ? 6 : -1);
|
|
246
400
|
i0.ɵɵadvance();
|
|
247
|
-
i0.ɵɵconditional(
|
|
401
|
+
i0.ɵɵconditional(groupIndicators_r24.ErrorCount > 0 ? 7 : groupIndicators_r24.WarningCount > 0 ? 8 : -1);
|
|
248
402
|
i0.ɵɵadvance(2);
|
|
249
|
-
const
|
|
403
|
+
const rowCount_r25 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(group_r20));
|
|
250
404
|
i0.ɵɵadvance();
|
|
251
|
-
i0.ɵɵconditional(
|
|
405
|
+
i0.ɵɵconditional(rowCount_r25 != null && rowCount_r25 > 0 ? 10 : -1);
|
|
252
406
|
} }
|
|
253
|
-
function
|
|
254
|
-
i0.ɵɵelement(0, "span",
|
|
407
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
408
|
+
i0.ɵɵelement(0, "span", 77);
|
|
255
409
|
} if (rf & 2) {
|
|
256
|
-
const
|
|
257
|
-
const
|
|
410
|
+
const more_r27 = i0.ɵɵnextContext();
|
|
411
|
+
const moreIndicators_r28 = i0.ɵɵreadContextLet(5);
|
|
258
412
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
259
|
-
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(
|
|
260
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(
|
|
413
|
+
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(moreIndicators_r28.DirtyCount, more_r27.Title));
|
|
414
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(moreIndicators_r28.DirtyCount, more_r27.Title));
|
|
261
415
|
} }
|
|
262
|
-
function
|
|
263
|
-
i0.ɵɵelementStart(0, "span",
|
|
264
|
-
i0.ɵɵelement(1, "i",
|
|
416
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
417
|
+
i0.ɵɵelementStart(0, "span", 78);
|
|
418
|
+
i0.ɵɵelement(1, "i", 83);
|
|
265
419
|
i0.ɵɵtext(2);
|
|
266
420
|
i0.ɵɵelementEnd();
|
|
267
421
|
} if (rf & 2) {
|
|
268
|
-
const
|
|
269
|
-
const
|
|
422
|
+
const more_r27 = i0.ɵɵnextContext();
|
|
423
|
+
const moreIndicators_r28 = i0.ɵɵreadContextLet(5);
|
|
270
424
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
271
|
-
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(
|
|
272
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(
|
|
425
|
+
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(moreIndicators_r28.ErrorCount, more_r27.Title));
|
|
426
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(moreIndicators_r28.ErrorCount, more_r27.Title));
|
|
273
427
|
i0.ɵɵadvance(2);
|
|
274
|
-
i0.ɵɵtextInterpolate1("",
|
|
428
|
+
i0.ɵɵtextInterpolate1("", moreIndicators_r28.ErrorCount, " ");
|
|
275
429
|
} }
|
|
276
|
-
function
|
|
277
|
-
i0.ɵɵelementStart(0, "span",
|
|
278
|
-
i0.ɵɵelement(1, "i",
|
|
430
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
431
|
+
i0.ɵɵelementStart(0, "span", 79);
|
|
432
|
+
i0.ɵɵelement(1, "i", 84);
|
|
279
433
|
i0.ɵɵtext(2);
|
|
280
434
|
i0.ɵɵelementEnd();
|
|
281
435
|
} if (rf & 2) {
|
|
282
|
-
const
|
|
283
|
-
const
|
|
436
|
+
const more_r27 = i0.ɵɵnextContext();
|
|
437
|
+
const moreIndicators_r28 = i0.ɵɵreadContextLet(5);
|
|
284
438
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
285
|
-
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(
|
|
286
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(
|
|
439
|
+
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(moreIndicators_r28.WarningCount, more_r27.Title));
|
|
440
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(moreIndicators_r28.WarningCount, more_r27.Title));
|
|
287
441
|
i0.ɵɵadvance(2);
|
|
288
|
-
i0.ɵɵtextInterpolate1("",
|
|
442
|
+
i0.ɵɵtextInterpolate1("", moreIndicators_r28.WarningCount, " ");
|
|
289
443
|
} }
|
|
290
|
-
function
|
|
291
|
-
i0.ɵɵelementStart(0, "span",
|
|
444
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
445
|
+
i0.ɵɵelementStart(0, "span", 89);
|
|
292
446
|
i0.ɵɵtext(1);
|
|
293
447
|
i0.ɵɵelementEnd();
|
|
294
448
|
} if (rf & 2) {
|
|
295
449
|
i0.ɵɵnextContext();
|
|
296
|
-
const
|
|
450
|
+
const moreRowCount_r29 = i0.ɵɵreadContextLet(0);
|
|
297
451
|
i0.ɵɵadvance();
|
|
298
|
-
i0.ɵɵtextInterpolate(
|
|
452
|
+
i0.ɵɵtextInterpolate(moreRowCount_r29);
|
|
299
453
|
} }
|
|
300
|
-
function
|
|
454
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
301
455
|
i0.ɵɵdeclareLet(0);
|
|
302
|
-
i0.ɵɵconditionalCreate(1,
|
|
456
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Conditional_1_Template, 2, 1, "span", 89);
|
|
303
457
|
} if (rf & 2) {
|
|
304
|
-
const
|
|
458
|
+
const moreRowCount_r30 = i0.ɵɵstoreLet(i0.ɵɵnextContext(4).ChromeMoreRowCount);
|
|
305
459
|
i0.ɵɵadvance();
|
|
306
|
-
i0.ɵɵconditional(
|
|
460
|
+
i0.ɵɵconditional(moreRowCount_r30 != null && moreRowCount_r30 > 0 ? 1 : -1);
|
|
307
461
|
} }
|
|
308
|
-
function
|
|
309
|
-
const
|
|
310
|
-
i0.ɵɵelementStart(0, "span",
|
|
311
|
-
i0.ɵɵlistener("dragstart", function
|
|
312
|
-
i0.ɵɵelement(1, "i",
|
|
462
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
463
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
464
|
+
i0.ɵɵelementStart(0, "span", 81);
|
|
465
|
+
i0.ɵɵlistener("dragstart", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragstart_0_listener($event) { i0.ɵɵrestoreView(_r33); const child_r32 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragStart($event, child_r32.Key)); })("dragend", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_dragend_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnRailDragEnd()); })("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template_span_click_0_listener($event) { return $event.stopPropagation(); });
|
|
466
|
+
i0.ɵɵelement(1, "i", 82);
|
|
313
467
|
i0.ɵɵelementEnd();
|
|
314
468
|
} }
|
|
315
|
-
function
|
|
316
|
-
i0.ɵɵelement(0, "span",
|
|
469
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
470
|
+
i0.ɵɵelement(0, "span", 77);
|
|
317
471
|
} if (rf & 2) {
|
|
318
|
-
const
|
|
319
|
-
const
|
|
472
|
+
const child_r32 = i0.ɵɵnextContext().$implicit;
|
|
473
|
+
const childIndicators_r34 = i0.ɵɵreadContextLet(5);
|
|
320
474
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
321
|
-
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(
|
|
322
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(
|
|
475
|
+
i0.ɵɵproperty("title", ctx_r1.RailDirtyTitle(childIndicators_r34.DirtyCount, child_r32.Title));
|
|
476
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailDirtyTitle(childIndicators_r34.DirtyCount, child_r32.Title));
|
|
323
477
|
} }
|
|
324
|
-
function
|
|
325
|
-
i0.ɵɵelementStart(0, "span",
|
|
326
|
-
i0.ɵɵelement(1, "i",
|
|
478
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
479
|
+
i0.ɵɵelementStart(0, "span", 78);
|
|
480
|
+
i0.ɵɵelement(1, "i", 83);
|
|
327
481
|
i0.ɵɵtext(2);
|
|
328
482
|
i0.ɵɵelementEnd();
|
|
329
483
|
} if (rf & 2) {
|
|
330
|
-
const
|
|
331
|
-
const
|
|
484
|
+
const child_r32 = i0.ɵɵnextContext().$implicit;
|
|
485
|
+
const childIndicators_r34 = i0.ɵɵreadContextLet(5);
|
|
332
486
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
333
|
-
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(
|
|
334
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(
|
|
487
|
+
i0.ɵɵproperty("title", ctx_r1.RailErrorTitle(childIndicators_r34.ErrorCount, child_r32.Title));
|
|
488
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailErrorTitle(childIndicators_r34.ErrorCount, child_r32.Title));
|
|
335
489
|
i0.ɵɵadvance(2);
|
|
336
|
-
i0.ɵɵtextInterpolate1("",
|
|
490
|
+
i0.ɵɵtextInterpolate1("", childIndicators_r34.ErrorCount, " ");
|
|
337
491
|
} }
|
|
338
|
-
function
|
|
339
|
-
i0.ɵɵelementStart(0, "span",
|
|
340
|
-
i0.ɵɵelement(1, "i",
|
|
492
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
493
|
+
i0.ɵɵelementStart(0, "span", 79);
|
|
494
|
+
i0.ɵɵelement(1, "i", 84);
|
|
341
495
|
i0.ɵɵtext(2);
|
|
342
496
|
i0.ɵɵelementEnd();
|
|
343
497
|
} if (rf & 2) {
|
|
344
|
-
const
|
|
345
|
-
const
|
|
498
|
+
const child_r32 = i0.ɵɵnextContext().$implicit;
|
|
499
|
+
const childIndicators_r34 = i0.ɵɵreadContextLet(5);
|
|
346
500
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
347
|
-
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(
|
|
348
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(
|
|
501
|
+
i0.ɵɵproperty("title", ctx_r1.RailWarningTitle(childIndicators_r34.WarningCount, child_r32.Title));
|
|
502
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailWarningTitle(childIndicators_r34.WarningCount, child_r32.Title));
|
|
349
503
|
i0.ɵɵadvance(2);
|
|
350
|
-
i0.ɵɵtextInterpolate1("",
|
|
504
|
+
i0.ɵɵtextInterpolate1("", childIndicators_r34.WarningCount, " ");
|
|
351
505
|
} }
|
|
352
|
-
function
|
|
353
|
-
i0.ɵɵelementStart(0, "span",
|
|
506
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
507
|
+
i0.ɵɵelementStart(0, "span", 80);
|
|
354
508
|
i0.ɵɵtext(1);
|
|
355
509
|
i0.ɵɵelementEnd();
|
|
356
510
|
} if (rf & 2) {
|
|
357
511
|
i0.ɵɵnextContext();
|
|
358
|
-
const
|
|
512
|
+
const childCount_r35 = i0.ɵɵreadContextLet(9);
|
|
359
513
|
i0.ɵɵadvance();
|
|
360
|
-
i0.ɵɵtextInterpolate(
|
|
514
|
+
i0.ɵɵtextInterpolate(childCount_r35);
|
|
361
515
|
} }
|
|
362
|
-
function
|
|
363
|
-
const
|
|
364
|
-
i0.ɵɵelementStart(0, "div",
|
|
365
|
-
i0.ɵɵlistener("click", function
|
|
366
|
-
i0.ɵɵconditionalCreate(1,
|
|
516
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
517
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
518
|
+
i0.ɵɵelementStart(0, "div", 91);
|
|
519
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_click_0_listener() { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r32.Key)); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_enter_0_listener() { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r32.Key)); })("keydown.space", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_keydown_space_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnChromeGroupActivate(child_r32.Key)); })("dragover", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragover_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragOver($event, child_r32.Key)); })("dragleave", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_dragleave_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDragLeave($event, child_r32.Key)); })("drop", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_div_drop_0_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailDrop($event, child_r32.Key)); });
|
|
520
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_1_Template, 2, 0, "span", 75);
|
|
367
521
|
i0.ɵɵelement(2, "i");
|
|
368
|
-
i0.ɵɵelementStart(3, "span",
|
|
369
|
-
i0.ɵɵlistener("mouseenter", function
|
|
522
|
+
i0.ɵɵelementStart(3, "span", 76);
|
|
523
|
+
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template_span_mouseenter_3_listener($event) { const child_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, child_r32.Title)); });
|
|
370
524
|
i0.ɵɵtext(4);
|
|
371
525
|
i0.ɵɵelementEnd();
|
|
372
526
|
i0.ɵɵdeclareLet(5);
|
|
373
|
-
i0.ɵɵconditionalCreate(6,
|
|
374
|
-
i0.ɵɵconditionalCreate(7,
|
|
527
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_6_Template, 1, 2, "span", 77);
|
|
528
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_7_Template, 3, 3, "span", 78)(8, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_8_Template, 3, 3, "span", 79);
|
|
375
529
|
i0.ɵɵdeclareLet(9);
|
|
376
|
-
i0.ɵɵconditionalCreate(10,
|
|
530
|
+
i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Conditional_10_Template, 2, 1, "span", 80);
|
|
377
531
|
i0.ɵɵelementEnd();
|
|
378
532
|
} if (rf & 2) {
|
|
379
|
-
const
|
|
533
|
+
const child_r32 = ctx.$implicit;
|
|
380
534
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
381
|
-
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey ===
|
|
382
|
-
i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey ===
|
|
535
|
+
i0.ɵɵclassProp("is-active", ctx_r1.ChromeActiveGroupKey === child_r32.Key)("is-drag-over", ctx_r1.RailDragOverKey === child_r32.Key)("has-errors", ctx_r1.ChromeGroupIndicators(child_r32).ErrorCount > 0)("is-dirty", ctx_r1.ChromeGroupIndicators(child_r32).DirtyCount > 0);
|
|
536
|
+
i0.ɵɵattribute("aria-current", ctx_r1.ChromeActiveGroupKey === child_r32.Key ? "page" : null);
|
|
383
537
|
i0.ɵɵadvance();
|
|
384
538
|
i0.ɵɵconditional(ctx_r1.ChromeReorderAllowed ? 1 : -1);
|
|
385
539
|
i0.ɵɵadvance();
|
|
386
|
-
i0.ɵɵclassMap(
|
|
540
|
+
i0.ɵɵclassMap(child_r32.Icon);
|
|
387
541
|
i0.ɵɵadvance(2);
|
|
388
|
-
i0.ɵɵtextInterpolate(
|
|
542
|
+
i0.ɵɵtextInterpolate(child_r32.Title);
|
|
389
543
|
i0.ɵɵadvance();
|
|
390
|
-
const
|
|
544
|
+
const childIndicators_r36 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(child_r32));
|
|
391
545
|
i0.ɵɵadvance();
|
|
392
|
-
i0.ɵɵconditional(
|
|
546
|
+
i0.ɵɵconditional(childIndicators_r36.DirtyCount > 0 ? 6 : -1);
|
|
393
547
|
i0.ɵɵadvance();
|
|
394
|
-
i0.ɵɵconditional(
|
|
548
|
+
i0.ɵɵconditional(childIndicators_r36.ErrorCount > 0 ? 7 : childIndicators_r36.WarningCount > 0 ? 8 : -1);
|
|
395
549
|
i0.ɵɵadvance(2);
|
|
396
|
-
const
|
|
550
|
+
const childCount_r37 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupRowCount(child_r32));
|
|
397
551
|
i0.ɵɵadvance();
|
|
398
|
-
i0.ɵɵconditional(
|
|
552
|
+
i0.ɵɵconditional(childCount_r37 != null && childCount_r37 > 0 ? 10 : -1);
|
|
399
553
|
} }
|
|
400
|
-
function
|
|
401
|
-
i0.ɵɵelementStart(0, "div",
|
|
402
|
-
i0.ɵɵrepeaterCreate(1,
|
|
554
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
555
|
+
i0.ɵɵelementStart(0, "div", 88);
|
|
556
|
+
i0.ɵɵrepeaterCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_For_2_Template, 11, 18, "div", 90, _forTrack2);
|
|
403
557
|
i0.ɵɵelementEnd();
|
|
404
558
|
} if (rf & 2) {
|
|
405
559
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
406
560
|
i0.ɵɵadvance();
|
|
407
561
|
i0.ɵɵrepeater(ctx_r1.ChromeMoreItems);
|
|
408
562
|
} }
|
|
409
|
-
function
|
|
410
|
-
const
|
|
411
|
-
i0.ɵɵelementStart(0, "div",
|
|
412
|
-
i0.ɵɵlistener("click", function
|
|
413
|
-
i0.ɵɵelement(1, "span",
|
|
414
|
-
i0.ɵɵelementStart(3, "span",
|
|
415
|
-
i0.ɵɵlistener("mouseenter", function
|
|
563
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
564
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
565
|
+
i0.ɵɵelementStart(0, "div", 85);
|
|
566
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.enter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); })("keydown.space", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_div_keydown_space_0_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); $event.preventDefault(); return i0.ɵɵresetView(ctx_r1.OnMoreFolderToggle()); });
|
|
567
|
+
i0.ɵɵelement(1, "span", 86)(2, "i");
|
|
568
|
+
i0.ɵɵelementStart(3, "span", 76);
|
|
569
|
+
i0.ɵɵlistener("mouseenter", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template_span_mouseenter_3_listener($event) { const more_r27 = i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnRailLabelHover($event, more_r27.Title)); });
|
|
416
570
|
i0.ɵɵtext(4);
|
|
417
571
|
i0.ɵɵelementEnd();
|
|
418
572
|
i0.ɵɵdeclareLet(5);
|
|
419
|
-
i0.ɵɵconditionalCreate(6,
|
|
420
|
-
i0.ɵɵconditionalCreate(7,
|
|
421
|
-
i0.ɵɵconditionalCreate(9,
|
|
422
|
-
i0.ɵɵelement(10, "i",
|
|
573
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_6_Template, 1, 2, "span", 77);
|
|
574
|
+
i0.ɵɵconditionalCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_7_Template, 3, 3, "span", 78)(8, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_8_Template, 3, 3, "span", 79);
|
|
575
|
+
i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_9_Template, 2, 2);
|
|
576
|
+
i0.ɵɵelement(10, "i", 87);
|
|
423
577
|
i0.ɵɵelementEnd();
|
|
424
|
-
i0.ɵɵconditionalCreate(11,
|
|
578
|
+
i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Conditional_11_Template, 3, 0, "div", 88);
|
|
425
579
|
} if (rf & 2) {
|
|
426
|
-
const
|
|
580
|
+
const more_r27 = ctx;
|
|
427
581
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
428
|
-
i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(
|
|
582
|
+
i0.ɵɵclassProp("is-expanded", ctx_r1.MoreExpanded)("has-errors", ctx_r1.ChromeGroupIndicators(more_r27).ErrorCount > 0);
|
|
429
583
|
i0.ɵɵadvance(2);
|
|
430
584
|
i0.ɵɵclassMap(ctx_r1.MoreExpanded ? "fa-solid fa-folder-open" : "fa-solid fa-folder");
|
|
431
585
|
i0.ɵɵadvance(2);
|
|
432
|
-
i0.ɵɵtextInterpolate(
|
|
586
|
+
i0.ɵɵtextInterpolate(more_r27.Title);
|
|
433
587
|
i0.ɵɵadvance();
|
|
434
|
-
const
|
|
588
|
+
const moreIndicators_r38 = i0.ɵɵstoreLet(ctx_r1.ChromeGroupIndicators(more_r27));
|
|
435
589
|
i0.ɵɵadvance();
|
|
436
|
-
i0.ɵɵconditional(
|
|
590
|
+
i0.ɵɵconditional(moreIndicators_r38.DirtyCount > 0 ? 6 : -1);
|
|
437
591
|
i0.ɵɵadvance();
|
|
438
|
-
i0.ɵɵconditional(
|
|
592
|
+
i0.ɵɵconditional(moreIndicators_r38.ErrorCount > 0 ? 7 : moreIndicators_r38.WarningCount > 0 ? 8 : -1);
|
|
439
593
|
i0.ɵɵadvance(2);
|
|
440
594
|
i0.ɵɵconditional(!ctx_r1.MoreExpanded ? 9 : -1);
|
|
441
595
|
i0.ɵɵadvance();
|
|
@@ -443,44 +597,44 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Conditional_
|
|
|
443
597
|
i0.ɵɵadvance();
|
|
444
598
|
i0.ɵɵconditional(ctx_r1.MoreExpanded ? 11 : -1);
|
|
445
599
|
} }
|
|
446
|
-
function
|
|
447
|
-
i0.ɵɵelementStart(0, "div",
|
|
448
|
-
i0.ɵɵelement(1, "span",
|
|
449
|
-
i0.ɵɵelementStart(3, "span",
|
|
600
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
601
|
+
i0.ɵɵelementStart(0, "div", 73);
|
|
602
|
+
i0.ɵɵelement(1, "span", 86)(2, "i", 83);
|
|
603
|
+
i0.ɵɵelementStart(3, "span", 92);
|
|
450
604
|
i0.ɵɵtext(4, "Not in a section");
|
|
451
605
|
i0.ɵɵelementEnd();
|
|
452
|
-
i0.ɵɵelementStart(5, "span",
|
|
606
|
+
i0.ɵɵelementStart(5, "span", 93);
|
|
453
607
|
i0.ɵɵtext(6);
|
|
454
608
|
i0.ɵɵelementEnd()();
|
|
455
609
|
} if (rf & 2) {
|
|
456
610
|
i0.ɵɵnextContext();
|
|
457
|
-
const
|
|
611
|
+
const unroutedErrors_r39 = i0.ɵɵreadContextLet(10);
|
|
458
612
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
459
|
-
i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(
|
|
460
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(
|
|
613
|
+
i0.ɵɵproperty("title", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r39));
|
|
614
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r39));
|
|
461
615
|
i0.ɵɵadvance(5);
|
|
462
|
-
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(
|
|
616
|
+
i0.ɵɵattribute("aria-label", ctx_r1.RailUnroutedErrorTitle(unroutedErrors_r39));
|
|
463
617
|
i0.ɵɵadvance();
|
|
464
|
-
i0.ɵɵtextInterpolate(
|
|
618
|
+
i0.ɵɵtextInterpolate(unroutedErrors_r39);
|
|
465
619
|
} }
|
|
466
|
-
function
|
|
467
|
-
const
|
|
468
|
-
i0.ɵɵelementStart(0, "div",
|
|
469
|
-
i0.ɵɵlistener("pointerdown", function
|
|
620
|
+
function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
621
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
622
|
+
i0.ɵɵelementStart(0, "div", 65);
|
|
623
|
+
i0.ɵɵlistener("pointerdown", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointerdown_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeStart($event)); })("pointermove", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointermove_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeMove($event)); })("pointerup", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointerup_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); })("pointercancel", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_div_pointercancel_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnRailResizeEnd()); });
|
|
470
624
|
i0.ɵɵelementEnd();
|
|
471
|
-
i0.ɵɵelementStart(1, "div",
|
|
472
|
-
i0.ɵɵlistener("click", function
|
|
473
|
-
i0.ɵɵelement(3, "i",
|
|
625
|
+
i0.ɵɵelementStart(1, "div", 66)(2, "button", 67);
|
|
626
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailPinToggle()); });
|
|
627
|
+
i0.ɵɵelement(3, "i", 68);
|
|
474
628
|
i0.ɵɵelementEnd();
|
|
475
|
-
i0.ɵɵelementStart(4, "button",
|
|
476
|
-
i0.ɵɵlistener("click", function
|
|
477
|
-
i0.ɵɵelement(5, "i",
|
|
629
|
+
i0.ɵɵelementStart(4, "button", 69);
|
|
630
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnChromeRailCollapse()); });
|
|
631
|
+
i0.ɵɵelement(5, "i", 70);
|
|
478
632
|
i0.ɵɵelementEnd()();
|
|
479
|
-
i0.ɵɵelementStart(6, "div",
|
|
480
|
-
i0.ɵɵrepeaterCreate(7,
|
|
481
|
-
i0.ɵɵconditionalCreate(9,
|
|
633
|
+
i0.ɵɵelementStart(6, "div", 71);
|
|
634
|
+
i0.ɵɵrepeaterCreate(7, MjRecordFormContainerComponent_Conditional_10_Conditional_2_For_8_Template, 11, 19, "div", 72, _forTrack2);
|
|
635
|
+
i0.ɵɵconditionalCreate(9, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_9_Template, 12, 16);
|
|
482
636
|
i0.ɵɵdeclareLet(10);
|
|
483
|
-
i0.ɵɵconditionalCreate(11,
|
|
637
|
+
i0.ɵɵconditionalCreate(11, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Conditional_11_Template, 7, 4, "div", 73);
|
|
484
638
|
i0.ɵɵelementEnd();
|
|
485
639
|
} if (rf & 2) {
|
|
486
640
|
let tmp_9_0;
|
|
@@ -495,13 +649,13 @@ function MjRecordFormContainerComponent_Conditional_8_Conditional_2_Template(rf,
|
|
|
495
649
|
i0.ɵɵadvance(2);
|
|
496
650
|
i0.ɵɵconditional((tmp_9_0 = ctx_r1.ChromeMoreFolder) ? 9 : -1, tmp_9_0);
|
|
497
651
|
i0.ɵɵadvance();
|
|
498
|
-
const
|
|
652
|
+
const unroutedErrors_r40 = i0.ɵɵstoreLet(ctx_r1.UnroutedValidationErrorCount);
|
|
499
653
|
i0.ɵɵadvance();
|
|
500
|
-
i0.ɵɵconditional(
|
|
654
|
+
i0.ɵɵconditional(unroutedErrors_r40 > 0 ? 11 : -1);
|
|
501
655
|
} }
|
|
502
|
-
function
|
|
503
|
-
i0.ɵɵelementStart(0, "nav",
|
|
504
|
-
i0.ɵɵconditionalCreate(1,
|
|
656
|
+
function MjRecordFormContainerComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
657
|
+
i0.ɵɵelementStart(0, "nav", 58);
|
|
658
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_10_Conditional_1_Template, 8, 8, "button", 59)(2, MjRecordFormContainerComponent_Conditional_10_Conditional_2_Template, 12, 10);
|
|
505
659
|
i0.ɵɵelementEnd();
|
|
506
660
|
} if (rf & 2) {
|
|
507
661
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -511,14 +665,14 @@ function MjRecordFormContainerComponent_Conditional_8_Template(rf, ctx) { if (rf
|
|
|
511
665
|
i0.ɵɵadvance();
|
|
512
666
|
i0.ɵɵconditional(ctx_r1.ChromeRailCollapsed ? 1 : 2);
|
|
513
667
|
} }
|
|
514
|
-
function
|
|
515
|
-
i0.ɵɵelement(0, "mj-form-contributions",
|
|
668
|
+
function MjRecordFormContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
669
|
+
i0.ɵɵelement(0, "mj-form-contributions", 10);
|
|
516
670
|
} if (rf & 2) {
|
|
517
671
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
518
672
|
i0.ɵɵproperty("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent)("FormContext", ctx_r1.FormComponent.formContext)("BakedSectionKeys", ctx_r1.BakedRelatedSectionKeys)("ShowRelatedEntities", ctx_r1.EffectiveShowRelatedEntities);
|
|
519
673
|
} }
|
|
520
|
-
function
|
|
521
|
-
i0.ɵɵelementStart(0, "span",
|
|
674
|
+
function MjRecordFormContainerComponent_Conditional_14_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
675
|
+
i0.ɵɵelementStart(0, "span", 97);
|
|
522
676
|
i0.ɵɵtext(1);
|
|
523
677
|
i0.ɵɵelementEnd();
|
|
524
678
|
} if (rf & 2) {
|
|
@@ -526,35 +680,35 @@ function MjRecordFormContainerComponent_Conditional_12_Conditional_5_Template(rf
|
|
|
526
680
|
i0.ɵɵadvance();
|
|
527
681
|
i0.ɵɵtextInterpolate(ctx_r1.MorePreview);
|
|
528
682
|
} }
|
|
529
|
-
function
|
|
530
|
-
i0.ɵɵelementStart(0, "span",
|
|
683
|
+
function MjRecordFormContainerComponent_Conditional_14_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
684
|
+
i0.ɵɵelementStart(0, "span", 89);
|
|
531
685
|
i0.ɵɵtext(1);
|
|
532
686
|
i0.ɵɵelementEnd();
|
|
533
687
|
} if (rf & 2) {
|
|
534
688
|
i0.ɵɵnextContext();
|
|
535
|
-
const
|
|
689
|
+
const accordionMoreCount_r42 = i0.ɵɵreadContextLet(0);
|
|
536
690
|
i0.ɵɵadvance();
|
|
537
|
-
i0.ɵɵtextInterpolate(
|
|
691
|
+
i0.ɵɵtextInterpolate(accordionMoreCount_r42);
|
|
538
692
|
} }
|
|
539
|
-
function
|
|
693
|
+
function MjRecordFormContainerComponent_Conditional_14_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
540
694
|
i0.ɵɵdeclareLet(0);
|
|
541
|
-
i0.ɵɵconditionalCreate(1,
|
|
695
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_14_Conditional_6_Conditional_1_Template, 2, 1, "span", 89);
|
|
542
696
|
} if (rf & 2) {
|
|
543
|
-
const
|
|
697
|
+
const accordionMoreCount_r43 = i0.ɵɵstoreLet(i0.ɵɵnextContext(2).ChromeMoreRowCount);
|
|
544
698
|
i0.ɵɵadvance();
|
|
545
|
-
i0.ɵɵconditional(
|
|
699
|
+
i0.ɵɵconditional(accordionMoreCount_r43 != null && accordionMoreCount_r43 > 0 ? 1 : -1);
|
|
546
700
|
} }
|
|
547
|
-
function
|
|
548
|
-
const
|
|
549
|
-
i0.ɵɵelementStart(0, "div",
|
|
550
|
-
i0.ɵɵlistener("click", function
|
|
701
|
+
function MjRecordFormContainerComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
702
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
703
|
+
i0.ɵɵelementStart(0, "div", 94)(1, "button", 95);
|
|
704
|
+
i0.ɵɵlistener("click", function MjRecordFormContainerComponent_Conditional_14_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r41); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnMoreToggle()); });
|
|
551
705
|
i0.ɵɵelement(2, "i");
|
|
552
|
-
i0.ɵɵelementStart(3, "span",
|
|
706
|
+
i0.ɵɵelementStart(3, "span", 96);
|
|
553
707
|
i0.ɵɵtext(4);
|
|
554
708
|
i0.ɵɵelementEnd();
|
|
555
|
-
i0.ɵɵconditionalCreate(5,
|
|
556
|
-
i0.ɵɵconditionalCreate(6,
|
|
557
|
-
i0.ɵɵelement(7, "i",
|
|
709
|
+
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_14_Conditional_5_Template, 2, 1, "span", 97);
|
|
710
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_14_Conditional_6_Template, 2, 2);
|
|
711
|
+
i0.ɵɵelement(7, "i", 98);
|
|
558
712
|
i0.ɵɵelementEnd()();
|
|
559
713
|
} if (rf & 2) {
|
|
560
714
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -570,57 +724,69 @@ function MjRecordFormContainerComponent_Conditional_12_Template(rf, ctx) { if (r
|
|
|
570
724
|
i0.ɵɵadvance();
|
|
571
725
|
i0.ɵɵclassProp("fa-chevron-down", ctx_r1.MoreExpanded)("fa-chevron-right", !ctx_r1.MoreExpanded);
|
|
572
726
|
} }
|
|
573
|
-
function
|
|
574
|
-
i0.ɵɵelement(0, "mj-form-panel-slot",
|
|
727
|
+
function MjRecordFormContainerComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
728
|
+
i0.ɵɵelement(0, "mj-form-panel-slot", 12);
|
|
575
729
|
} if (rf & 2) {
|
|
576
730
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
577
731
|
i0.ɵɵproperty("Entity", ctx_r1.Record.EntityInfo.Name)("Record", ctx_r1.Record)("FormComponent", ctx_r1.FormComponent);
|
|
578
732
|
} }
|
|
579
|
-
function
|
|
580
|
-
const
|
|
581
|
-
i0.ɵɵelementStart(0, "mj-empty-state",
|
|
582
|
-
i0.ɵɵlistener("Action", function
|
|
733
|
+
function MjRecordFormContainerComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
734
|
+
const _r44 = i0.ɵɵgetCurrentView();
|
|
735
|
+
i0.ɵɵelementStart(0, "mj-empty-state", 99);
|
|
736
|
+
i0.ɵɵlistener("Action", function MjRecordFormContainerComponent_Conditional_16_Template_mj_empty_state_Action_0_listener() { i0.ɵɵrestoreView(_r44); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFilterChange("")); });
|
|
583
737
|
i0.ɵɵelementEnd();
|
|
584
738
|
} if (rf & 2) {
|
|
585
739
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
586
740
|
i0.ɵɵproperty("Message", "No sections match \"" + ctx_r1.EffectiveSearchFilter + "\". Try a different search term.");
|
|
587
741
|
} }
|
|
588
|
-
function
|
|
589
|
-
const
|
|
590
|
-
i0.ɵɵelementStart(0, "mj-record-changes",
|
|
591
|
-
i0.ɵɵlistener("RestoreRequested", function
|
|
742
|
+
function MjRecordFormContainerComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
743
|
+
const _r45 = i0.ɵɵgetCurrentView();
|
|
744
|
+
i0.ɵɵelementStart(0, "mj-record-changes", 100);
|
|
745
|
+
i0.ɵɵlistener("PreviewVersionSelected", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_changes_PreviewVersionSelected_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnPreviewVersionSelected($event)); })("RestoreRequested", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_changes_RestoreRequested_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRestoreRequested($event)); })("dialogClosed", function MjRecordFormContainerComponent_Conditional_18_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordChangesClosed()); });
|
|
592
746
|
i0.ɵɵelementEnd();
|
|
593
747
|
} if (rf & 2) {
|
|
594
748
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
595
|
-
i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit);
|
|
749
|
+
i0.ɵɵproperty("record", ctx_r1.EffectiveRecord)("AllowRestore", ctx_r1.EffectiveUserCanEdit)("PreviewedChangeID", (ctx_r1.ActiveVersionPreview == null ? null : ctx_r1.ActiveVersionPreview.ChangeID) ?? null);
|
|
596
750
|
} }
|
|
597
|
-
function
|
|
598
|
-
const
|
|
599
|
-
i0.ɵɵelementStart(0, "mj-record-tags",
|
|
600
|
-
i0.ɵɵlistener("PanelClosed", function
|
|
751
|
+
function MjRecordFormContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
752
|
+
const _r46 = i0.ɵɵgetCurrentView();
|
|
753
|
+
i0.ɵɵelementStart(0, "mj-record-tags", 101);
|
|
754
|
+
i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelClosed()); })("TagCountChanged", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_TagCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagCountChanged($event)); })("RecordNavigate", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_RecordNavigate_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsRecordNavigate($event)); })("WidthChanged", function MjRecordFormContainerComponent_Conditional_19_Template_mj_record_tags_WidthChanged_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnTagsPanelWidthChanged($event)); });
|
|
601
755
|
i0.ɵɵelementEnd();
|
|
602
756
|
} if (rf & 2) {
|
|
603
757
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
604
758
|
i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("WidthPx", ctx_r1.TagsPanelWidth);
|
|
605
759
|
} }
|
|
606
|
-
function
|
|
607
|
-
const
|
|
608
|
-
i0.ɵɵelementStart(0, "mj-record-
|
|
609
|
-
i0.ɵɵlistener("
|
|
760
|
+
function MjRecordFormContainerComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
761
|
+
const _r47 = i0.ɵɵgetCurrentView();
|
|
762
|
+
i0.ɵɵelementStart(0, "mj-record-links", 102);
|
|
763
|
+
i0.ɵɵlistener("Close", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_Close_0_listener() { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordLinksClosed()); })("LinkCountChange", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_LinkCountChange_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnLinkCountChanged($event)); })("LinksSummaryChange", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_LinksSummaryChange_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnLinksSummaryChanged($event)); })("Navigate", function MjRecordFormContainerComponent_Conditional_20_Template_mj_record_links_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnNavigate($event)); });
|
|
764
|
+
i0.ɵɵelementEnd();
|
|
765
|
+
} if (rf & 2) {
|
|
766
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
767
|
+
i0.ɵɵproperty("Provider", ctx_r1.Provider)("Record", ctx_r1.EffectiveRecord)("Mode", "drawer")("IsOpen", ctx_r1.ShowRecordLinks);
|
|
768
|
+
} }
|
|
769
|
+
function MjRecordFormContainerComponent_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
770
|
+
const _r48 = i0.ɵɵgetCurrentView();
|
|
771
|
+
i0.ɵɵelementStart(0, "mj-record-attachments", 103);
|
|
772
|
+
i0.ɵɵlistener("PanelClosed", function MjRecordFormContainerComponent_Conditional_21_Template_mj_record_attachments_PanelClosed_0_listener() { i0.ɵɵrestoreView(_r48); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentsPanelClosed()); })("AttachmentCountChanged", function MjRecordFormContainerComponent_Conditional_21_Template_mj_record_attachments_AttachmentCountChanged_0_listener($event) { i0.ɵɵrestoreView(_r48); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnAttachmentCountChanged($event)); });
|
|
610
773
|
i0.ɵɵelementEnd();
|
|
611
774
|
} if (rf & 2) {
|
|
612
775
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
613
776
|
i0.ɵɵproperty("Record", ctx_r1.EffectiveRecord)("Visible", true);
|
|
614
777
|
} }
|
|
615
|
-
function
|
|
616
|
-
const
|
|
617
|
-
i0.ɵɵelementStart(0, "mj-list-management-dialog",
|
|
618
|
-
i0.ɵɵlistener("complete", function
|
|
778
|
+
function MjRecordFormContainerComponent_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
779
|
+
const _r49 = i0.ɵɵgetCurrentView();
|
|
780
|
+
i0.ɵɵelementStart(0, "mj-list-management-dialog", 104);
|
|
781
|
+
i0.ɵɵlistener("complete", function MjRecordFormContainerComponent_Conditional_22_Template_mj_list_management_dialog_complete_0_listener($event) { i0.ɵɵrestoreView(_r49); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementComplete($event)); })("cancel", function MjRecordFormContainerComponent_Conditional_22_Template_mj_list_management_dialog_cancel_0_listener() { i0.ɵɵrestoreView(_r49); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementClosed()); });
|
|
619
782
|
i0.ɵɵelementEnd();
|
|
620
783
|
} if (rf & 2) {
|
|
621
784
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
622
785
|
i0.ɵɵproperty("visible", ctx_r1.ShowListManagement)("config", i0.ɵɵpureFunction3(4, _c3, ctx_r1.EffectiveRecord.EntityInfo.ID, ctx_r1.EffectiveRecord.EntityInfo.Name, i0.ɵɵpureFunction1(2, _c2, ctx_r1.EffectiveRecord.PrimaryKey.Values()[0])));
|
|
623
786
|
} }
|
|
787
|
+
// Ensure built-in RecordLinksToolbarAction is never tree-shaken before ClassFactory registration
|
|
788
|
+
const _BUILTIN_TOOLBAR_ACTIONS = [RecordLinksToolbarAction];
|
|
789
|
+
void _BUILTIN_TOOLBAR_ACTIONS;
|
|
624
790
|
/**
|
|
625
791
|
* Top-level container that composes the toolbar, content slots, and sticky behavior.
|
|
626
792
|
*
|
|
@@ -680,6 +846,11 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
680
846
|
chromeRulesForEntityId = null;
|
|
681
847
|
/** The form whose duplicate-check answers this container already re-renders on. */
|
|
682
848
|
duplicateNoticeWiredFor = null;
|
|
849
|
+
// ---- Cross-tab / remote live update state ----
|
|
850
|
+
RemoteUpdatePill = null;
|
|
851
|
+
remoteUpdatePillTimer = null;
|
|
852
|
+
remoteRefreshInFlight = false;
|
|
853
|
+
lastLocalSaveAt = 0;
|
|
683
854
|
// ---- Internal State ----
|
|
684
855
|
/** Reference to the record changes drawer (when visible) for triggering refresh after save */
|
|
685
856
|
recordChangesDrawer;
|
|
@@ -692,6 +863,21 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
692
863
|
static TAGS_WIDTH_KEY = 'MJ_TagsPanel_Width';
|
|
693
864
|
/** Number of tags on this record */
|
|
694
865
|
TagCount = 0;
|
|
866
|
+
/** Controls visibility of links slide-in drawer */
|
|
867
|
+
ShowRecordLinks = false;
|
|
868
|
+
/** Number of linked records on this record */
|
|
869
|
+
LinkCount = 0;
|
|
870
|
+
/** Structured summary of outgoing + incoming links for the AI agent context */
|
|
871
|
+
LinksSummary = null;
|
|
872
|
+
/** Active historical version being previewed inline across form fields (Time-Travel Preview) */
|
|
873
|
+
ActiveVersionPreview = null;
|
|
874
|
+
activePreviewSourceChange = null;
|
|
875
|
+
liveRecordPreviewStash = null;
|
|
876
|
+
previewableChangesCache = [];
|
|
877
|
+
/** Unique list of field diffs for the active version preview banner chips */
|
|
878
|
+
PreviewChangedFieldChips = [];
|
|
879
|
+
/** Number of active field conflicts during edit mode */
|
|
880
|
+
ConflictCount = 0;
|
|
695
881
|
/** Controls visibility of attachments slide panel */
|
|
696
882
|
ShowAttachmentsPanel = false;
|
|
697
883
|
/** Number of attachments linked to this record */
|
|
@@ -818,6 +1004,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
818
1004
|
AfterLayoutResolved = new EventEmitter();
|
|
819
1005
|
BeforeSectionActivate = new EventEmitter();
|
|
820
1006
|
AfterSectionActivated = new EventEmitter();
|
|
1007
|
+
/** Emitted when the user clicks "Ask AI" in the form toolbar to open the AI overlay with record context */
|
|
1008
|
+
AskAIRequested = new EventEmitter();
|
|
821
1009
|
// ---- Content Children ----
|
|
822
1010
|
Panels;
|
|
823
1011
|
// ---- FormComponent accessor ----
|
|
@@ -900,8 +1088,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
900
1088
|
const registered = this.Fc?.RegisteredToolbarItems && this.Fc.RegisteredToolbarItems.length > 0
|
|
901
1089
|
? this.Fc.RegisteredToolbarItems
|
|
902
1090
|
: this.RegisteredToolbarItems;
|
|
1091
|
+
const pluggable = this.pluggableToolbarItemConfigs(registered);
|
|
903
1092
|
const manage = this.managePanelsToolbarItem();
|
|
904
|
-
return
|
|
1093
|
+
return [
|
|
1094
|
+
...pluggable,
|
|
1095
|
+
...registered,
|
|
1096
|
+
...(manage ? [manage] : []),
|
|
1097
|
+
];
|
|
905
1098
|
}
|
|
906
1099
|
/** Memoised so the toolbar's identity check does not see a new object every pass. */
|
|
907
1100
|
managePanelsItem = null;
|
|
@@ -1184,6 +1377,18 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1184
1377
|
// Watch for changes to record dirty state
|
|
1185
1378
|
this.watchRecordChanges();
|
|
1186
1379
|
this.wireDuplicateEntryCheck();
|
|
1380
|
+
this.wireRemoteRecordInvalidation();
|
|
1381
|
+
this.recordRefresh.ConflictsChanged$.pipe(takeUntil(this.destroy$)).subscribe((conflicts) => {
|
|
1382
|
+
this.ConflictCount = conflicts.size;
|
|
1383
|
+
this.cdr.markForCheck();
|
|
1384
|
+
});
|
|
1385
|
+
this.recordRefresh.VersionPreviewChanged$.pipe(takeUntil(this.destroy$)).subscribe((preview) => {
|
|
1386
|
+
this.ActiveVersionPreview = preview;
|
|
1387
|
+
this.cdr.markForCheck();
|
|
1388
|
+
});
|
|
1389
|
+
this.recordRefresh.SingleFieldRestoreRequested$.pipe(takeUntil(this.destroy$)).subscribe((req) => {
|
|
1390
|
+
void this.onSingleFieldRestoreRequested(req);
|
|
1391
|
+
});
|
|
1187
1392
|
}
|
|
1188
1393
|
/**
|
|
1189
1394
|
* Edit mode and Show Empty Fields both flip `mj-panel-empty` on a panel whose
|
|
@@ -1215,6 +1420,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1215
1420
|
}
|
|
1216
1421
|
ngOnDestroy() {
|
|
1217
1422
|
this.destroyed = true;
|
|
1423
|
+
this.destroyToolbarActions();
|
|
1218
1424
|
// A count or chrome-rule result still in flight then matches nothing and is dropped.
|
|
1219
1425
|
this.countRequestToken++;
|
|
1220
1426
|
this.chromeRulesForEntityId = null;
|
|
@@ -1223,6 +1429,10 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1223
1429
|
clearTimeout(this.chromeResolveTimer);
|
|
1224
1430
|
this.chromeResolveTimer = null;
|
|
1225
1431
|
}
|
|
1432
|
+
if (this.remoteUpdatePillTimer) {
|
|
1433
|
+
clearTimeout(this.remoteUpdatePillTimer);
|
|
1434
|
+
this.remoteUpdatePillTimer = null;
|
|
1435
|
+
}
|
|
1226
1436
|
this.panelNavReset$.next();
|
|
1227
1437
|
this.panelNavReset$.complete();
|
|
1228
1438
|
this.destroy$.next();
|
|
@@ -1710,6 +1920,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
1710
1920
|
HiddenContributionKeys: hiddenContributionKeys,
|
|
1711
1921
|
SlotsPresent: this.Fc?.OwnsEntireFormBody ? [] : this.slots.PresentSlots,
|
|
1712
1922
|
ChromeRuleCount: this.chromeRules.length,
|
|
1923
|
+
RecordState: this.buildAgentRecordState(record),
|
|
1924
|
+
Links: this.LinksSummary ?? undefined,
|
|
1713
1925
|
});
|
|
1714
1926
|
// The builder emits a fixed key order, so equal snapshots have equal JSON.
|
|
1715
1927
|
const json = JSON.stringify(snapshot);
|
|
@@ -2298,6 +2510,9 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2298
2510
|
* All queries run in parallel for performance.
|
|
2299
2511
|
*/
|
|
2300
2512
|
badgeCountsLoaded = false;
|
|
2513
|
+
toolbarActions = [];
|
|
2514
|
+
toolbarActionsEntityName = null;
|
|
2515
|
+
toolbarActionsInitRecord = null;
|
|
2301
2516
|
loadBadgeCounts() {
|
|
2302
2517
|
if (this.badgeCountsLoaded)
|
|
2303
2518
|
return;
|
|
@@ -2307,6 +2522,250 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2307
2522
|
this.badgeCountsLoaded = true;
|
|
2308
2523
|
// Fire and forget — counts land while the form renders; nothing awaits them.
|
|
2309
2524
|
void this.loadFormCounts(record);
|
|
2525
|
+
void this.PrewarmToolbarActions(record);
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* Returns the instantiated {@link BaseFormToolbarAction} plugins matching the active entity.
|
|
2529
|
+
*/
|
|
2530
|
+
GetToolbarActions() {
|
|
2531
|
+
return this.ensureToolbarActions();
|
|
2532
|
+
}
|
|
2533
|
+
ensureToolbarActions() {
|
|
2534
|
+
const entityInfo = this.EffectiveEntityInfo;
|
|
2535
|
+
const entityName = entityInfo?.Name ?? null;
|
|
2536
|
+
if (entityName !== this.toolbarActionsEntityName) {
|
|
2537
|
+
this.destroyToolbarActions();
|
|
2538
|
+
this.toolbarActionsEntityName = entityName;
|
|
2539
|
+
this.toolbarActions = ResolveFormToolbarActionsForEntity(entityInfo);
|
|
2540
|
+
this.toolbarActionsInitRecord = null;
|
|
2541
|
+
}
|
|
2542
|
+
const record = this.EffectiveRecord;
|
|
2543
|
+
if (record && record.EntityInfo && this.toolbarActionsInitRecord !== record) {
|
|
2544
|
+
this.toolbarActionsInitRecord = record;
|
|
2545
|
+
for (const action of this.toolbarActions) {
|
|
2546
|
+
const ctx = this.buildToolbarActionContext(action, record);
|
|
2547
|
+
if (action.IsApplicable(ctx)) {
|
|
2548
|
+
void action.OnInit(ctx);
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
return this.toolbarActions;
|
|
2553
|
+
}
|
|
2554
|
+
destroyToolbarActions() {
|
|
2555
|
+
for (const action of this.toolbarActions) {
|
|
2556
|
+
try {
|
|
2557
|
+
action.OnDestroy();
|
|
2558
|
+
}
|
|
2559
|
+
catch {
|
|
2560
|
+
// Ignore teardown errors
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
this.toolbarActions = [];
|
|
2564
|
+
this.toolbarActionsEntityName = null;
|
|
2565
|
+
this.toolbarActionsInitRecord = null;
|
|
2566
|
+
}
|
|
2567
|
+
pluggableToolbarItemConfigs(explicitItems) {
|
|
2568
|
+
const record = this.EffectiveRecord;
|
|
2569
|
+
const entityInfo = this.EffectiveEntityInfo;
|
|
2570
|
+
if (!record || !entityInfo)
|
|
2571
|
+
return [];
|
|
2572
|
+
const explicitKeys = new Set(explicitItems.map((i) => i.Key.trim().toLowerCase()));
|
|
2573
|
+
const actions = this.ensureToolbarActions();
|
|
2574
|
+
const out = [];
|
|
2575
|
+
for (const action of actions) {
|
|
2576
|
+
const keyLower = action.Metadata.Key.trim().toLowerCase();
|
|
2577
|
+
if (explicitKeys.has(keyLower))
|
|
2578
|
+
continue;
|
|
2579
|
+
if (keyLower === 'links' && this.EffectiveToolbarConfig.ShowLinksButton === false) {
|
|
2580
|
+
continue;
|
|
2581
|
+
}
|
|
2582
|
+
if (keyLower === 'links') {
|
|
2583
|
+
action.IsActive = this.ShowRecordLinks;
|
|
2584
|
+
if (this.LinkCount > 0) {
|
|
2585
|
+
action.Badge = this.LinkCount;
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
const ctx = this.buildToolbarActionContext(action, record);
|
|
2589
|
+
if (!action.IsApplicable(ctx))
|
|
2590
|
+
continue;
|
|
2591
|
+
out.push(action.ToToolbarItemConfig((event) => {
|
|
2592
|
+
const execCtx = this.buildToolbarActionContext(action, this.EffectiveRecord ?? record);
|
|
2593
|
+
return action.OnExecute(execCtx, event);
|
|
2594
|
+
}));
|
|
2595
|
+
}
|
|
2596
|
+
return out;
|
|
2597
|
+
}
|
|
2598
|
+
buildToolbarActionContext(action, recordOverride) {
|
|
2599
|
+
const record = (recordOverride ?? this.EffectiveRecord);
|
|
2600
|
+
const entityInfo = (this.EffectiveEntityInfo ?? record?.EntityInfo);
|
|
2601
|
+
const isPinned = this.IsToolbarActionPinned(action.Metadata.Key);
|
|
2602
|
+
const isVisibleOnBar = action.Metadata.Pinnable === false || isPinned;
|
|
2603
|
+
return {
|
|
2604
|
+
Record: record,
|
|
2605
|
+
EntityInfo: entityInfo,
|
|
2606
|
+
Provider: this.ProviderToUse,
|
|
2607
|
+
EditMode: this.EffectiveEditMode,
|
|
2608
|
+
IsDirty: this.EffectiveIsDirty,
|
|
2609
|
+
IsPinned: isPinned,
|
|
2610
|
+
IsVisibleOnBar: isVisibleOnBar,
|
|
2611
|
+
FormComponent: this.Fc,
|
|
2612
|
+
SetBadge: (badge) => {
|
|
2613
|
+
action.Badge = badge ?? undefined;
|
|
2614
|
+
if (action.Metadata.Key === 'links') {
|
|
2615
|
+
this.LinkCount = typeof badge === 'number' ? badge : 0;
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
SetLoading: (loading) => {
|
|
2619
|
+
action.IsLoading = loading;
|
|
2620
|
+
},
|
|
2621
|
+
SetDisabled: (disabled, reason) => {
|
|
2622
|
+
action.Disabled = disabled;
|
|
2623
|
+
action.DisabledReason = reason;
|
|
2624
|
+
},
|
|
2625
|
+
SetActive: (active) => {
|
|
2626
|
+
action.IsActive = active;
|
|
2627
|
+
},
|
|
2628
|
+
SetRecordLinksDrawerOpen: (open) => {
|
|
2629
|
+
this.ShowRecordLinks = open;
|
|
2630
|
+
},
|
|
2631
|
+
IsRecordLinksDrawerOpen: () => this.ShowRecordLinks,
|
|
2632
|
+
SetLinksSummary: (summary) => {
|
|
2633
|
+
this.LinksSummary = summary;
|
|
2634
|
+
this.LinkCount = summary.TotalCount;
|
|
2635
|
+
this.scheduleChromeResolve();
|
|
2636
|
+
},
|
|
2637
|
+
RequestChangeDetection: () => {
|
|
2638
|
+
this.cdr.markForCheck();
|
|
2639
|
+
},
|
|
2640
|
+
};
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2643
|
+
* Returns true when the given toolbar action key is pinned for the current user
|
|
2644
|
+
* (either in their saved `mj.form.toolbar.pinnedActions` setting or in `DefaultPinnedActions`).
|
|
2645
|
+
*/
|
|
2646
|
+
IsToolbarActionPinned(key) {
|
|
2647
|
+
try {
|
|
2648
|
+
const provider = this.ProviderToUse;
|
|
2649
|
+
const engine = provider
|
|
2650
|
+
? UserInfoEngine.GetProviderInstance(provider, UserInfoEngine)
|
|
2651
|
+
: UserInfoEngine.Instance;
|
|
2652
|
+
const activeEngine = engine?.Loaded ? engine : UserInfoEngine.Instance;
|
|
2653
|
+
const raw = activeEngine?.GetSetting(TOOLBAR_PINS_SETTING_KEY);
|
|
2654
|
+
if (raw) {
|
|
2655
|
+
const parsed = JSON.parse(raw);
|
|
2656
|
+
if (Array.isArray(parsed.Pinned)) {
|
|
2657
|
+
return parsed.Pinned.includes(key);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
catch {
|
|
2662
|
+
// Fall back to default pinned actions
|
|
2663
|
+
}
|
|
2664
|
+
const defaults = this.EffectiveToolbarConfig?.DefaultPinnedActions ?? DEFAULT_PINNED_TOOLBAR_ACTIONS;
|
|
2665
|
+
return defaults.includes(key);
|
|
2666
|
+
}
|
|
2667
|
+
/**
|
|
2668
|
+
* Returns true when the 'links' toolbar action is pinned for the current user.
|
|
2669
|
+
*/
|
|
2670
|
+
IsLinksActionPinned() {
|
|
2671
|
+
return this.IsToolbarActionPinned('links');
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* Invoked when the user pins or unpins an action in `<mj-form-toolbar>`.
|
|
2675
|
+
* Notifies the corresponding {@link BaseFormToolbarAction} via `OnPinStateChanged`.
|
|
2676
|
+
*/
|
|
2677
|
+
OnToolbarActionPinChanged(event) {
|
|
2678
|
+
const record = this.EffectiveRecord;
|
|
2679
|
+
if (!record?.EntityInfo)
|
|
2680
|
+
return;
|
|
2681
|
+
const actions = this.ensureToolbarActions();
|
|
2682
|
+
const matched = actions.find((a) => a.Metadata.Key.toLowerCase() === event.Key.toLowerCase());
|
|
2683
|
+
if (!matched)
|
|
2684
|
+
return;
|
|
2685
|
+
const ctx = this.buildToolbarActionContext(matched, record);
|
|
2686
|
+
void matched.OnPinStateChanged(ctx, event.Pinned);
|
|
2687
|
+
}
|
|
2688
|
+
/**
|
|
2689
|
+
* Runs `OnPrewarm` across all applicable {@link BaseFormToolbarAction} plugins for the active record.
|
|
2690
|
+
*/
|
|
2691
|
+
async PrewarmToolbarActions(record) {
|
|
2692
|
+
if (!record?.EntityInfo)
|
|
2693
|
+
return;
|
|
2694
|
+
const actions = this.ensureToolbarActions();
|
|
2695
|
+
await Promise.all(actions.map(async (action) => {
|
|
2696
|
+
const ctx = this.buildToolbarActionContext(action, record);
|
|
2697
|
+
if (!action.IsApplicable(ctx))
|
|
2698
|
+
return;
|
|
2699
|
+
await action.OnPrewarm(ctx);
|
|
2700
|
+
}));
|
|
2701
|
+
}
|
|
2702
|
+
async prewarmRecordLinks(record) {
|
|
2703
|
+
if (!record?.IsSaved || !record.EntityInfo)
|
|
2704
|
+
return;
|
|
2705
|
+
const actions = this.ensureToolbarActions();
|
|
2706
|
+
const linksAction = actions.find((a) => a.Metadata.Key === 'links');
|
|
2707
|
+
if (linksAction) {
|
|
2708
|
+
const ctx = this.buildToolbarActionContext(linksAction, record);
|
|
2709
|
+
if (linksAction.IsApplicable(ctx)) {
|
|
2710
|
+
await linksAction.OnPrewarm(ctx);
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
buildAgentRecordState(record) {
|
|
2715
|
+
if (!record || !Array.isArray(record.Fields) || record.Fields.length === 0) {
|
|
2716
|
+
return undefined;
|
|
2717
|
+
}
|
|
2718
|
+
const entityInfo = record.EntityInfo;
|
|
2719
|
+
const nameField = entityInfo?.NameField?.Name;
|
|
2720
|
+
const rawDisplayName = nameField
|
|
2721
|
+
? record.Fields.find((f) => f.Name === nameField)?.Value
|
|
2722
|
+
: undefined;
|
|
2723
|
+
const recordDisplayName = rawDisplayName !== null && rawDisplayName !== undefined && String(rawDisplayName).trim().length > 0
|
|
2724
|
+
? String(rawDisplayName).trim()
|
|
2725
|
+
: record.PrimaryKey?.ToConcatenatedString?.() || null;
|
|
2726
|
+
const keyFields = {};
|
|
2727
|
+
let count = 0;
|
|
2728
|
+
for (const field of record.Fields) {
|
|
2729
|
+
if (count >= 16)
|
|
2730
|
+
break;
|
|
2731
|
+
if (field.Name.startsWith('__mj_'))
|
|
2732
|
+
continue;
|
|
2733
|
+
const val = field.Value;
|
|
2734
|
+
if (val === null || val === undefined || val === '')
|
|
2735
|
+
continue;
|
|
2736
|
+
if (typeof val === 'string') {
|
|
2737
|
+
if (val.length > 160) {
|
|
2738
|
+
keyFields[field.Name] = `${val.slice(0, 157)}...`;
|
|
2739
|
+
}
|
|
2740
|
+
else {
|
|
2741
|
+
keyFields[field.Name] = val;
|
|
2742
|
+
}
|
|
2743
|
+
count++;
|
|
2744
|
+
}
|
|
2745
|
+
else if (typeof val === 'number' || typeof val === 'boolean') {
|
|
2746
|
+
keyFields[field.Name] = val;
|
|
2747
|
+
count++;
|
|
2748
|
+
}
|
|
2749
|
+
else if (val instanceof Date && !isNaN(val.getTime())) {
|
|
2750
|
+
keyFields[field.Name] = val.toISOString();
|
|
2751
|
+
count++;
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
return {
|
|
2755
|
+
DisplayName: recordDisplayName,
|
|
2756
|
+
RecordDisplayName: recordDisplayName,
|
|
2757
|
+
EditMode: this.EffectiveEditMode,
|
|
2758
|
+
IsDirty: this.EffectiveIsDirty,
|
|
2759
|
+
Dirty: this.EffectiveIsDirty,
|
|
2760
|
+
DirtyFields: this.EffectiveDirtyFieldNames,
|
|
2761
|
+
DirtyFieldNames: this.EffectiveDirtyFieldNames,
|
|
2762
|
+
HasExternalUpdateConflict: this.ConflictCount > 0,
|
|
2763
|
+
PreviewingHistoricalChangeID: this.ActiveVersionPreview?.ChangeID ?? null,
|
|
2764
|
+
ConflictCount: this.ConflictCount,
|
|
2765
|
+
VersionCount: this.VersionCount,
|
|
2766
|
+
TagCount: this.TagCount,
|
|
2767
|
+
KeyFields: keyFields,
|
|
2768
|
+
};
|
|
2310
2769
|
}
|
|
2311
2770
|
/**
|
|
2312
2771
|
* ONE `RunViews` call for every count the form shows: each related section's
|
|
@@ -2509,6 +2968,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2509
2968
|
* Edit mode change: delegate to FormComponent if available, otherwise re-emit.
|
|
2510
2969
|
*/
|
|
2511
2970
|
OnEditModeChange(editMode) {
|
|
2971
|
+
if (editMode && this.ActiveVersionPreview) {
|
|
2972
|
+
this.OnExitVersionPreview();
|
|
2973
|
+
}
|
|
2974
|
+
if (!editMode) {
|
|
2975
|
+
this.recordRefresh.ClearAllConflicts();
|
|
2976
|
+
}
|
|
2512
2977
|
if (this.Fc) {
|
|
2513
2978
|
if (editMode) {
|
|
2514
2979
|
this.Fc.StartEditMode();
|
|
@@ -2531,11 +2996,15 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2531
2996
|
this.IsSaving = true;
|
|
2532
2997
|
this.cdr.markForCheck();
|
|
2533
2998
|
try {
|
|
2999
|
+
this.lastLocalSaveAt = Date.now();
|
|
2534
3000
|
await this.Fc.SaveRecord(true);
|
|
3001
|
+
this.lastLocalSaveAt = Date.now();
|
|
3002
|
+
this.recordRefresh.ClearAllConflicts();
|
|
2535
3003
|
// After successful save, refresh version count badge and record changes drawer
|
|
2536
3004
|
this.refreshAfterSave();
|
|
2537
3005
|
}
|
|
2538
3006
|
finally {
|
|
3007
|
+
this.lastLocalSaveAt = Date.now();
|
|
2539
3008
|
// Use microtask timing to avoid ExpressionChangedAfterItHasBeenCheckedError
|
|
2540
3009
|
await Promise.resolve();
|
|
2541
3010
|
this.ngZone.run(() => {
|
|
@@ -2568,6 +3037,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2568
3037
|
* Cancel: delegate to FormComponent if available, otherwise re-emit.
|
|
2569
3038
|
*/
|
|
2570
3039
|
OnCancelRequested() {
|
|
3040
|
+
this.recordRefresh.ClearAllConflicts();
|
|
2571
3041
|
if (this.Fc?.CancelEdit) {
|
|
2572
3042
|
this.Fc.CancelEdit();
|
|
2573
3043
|
this.cdr.markForCheck();
|
|
@@ -2613,6 +3083,343 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2613
3083
|
}
|
|
2614
3084
|
this.recordRefresh.Notify(record);
|
|
2615
3085
|
}
|
|
3086
|
+
/**
|
|
3087
|
+
* Listens for cross-tab (`remote-invalidate`) and cross-instance (`save`) BaseEntity events
|
|
3088
|
+
* for the currently open record.
|
|
3089
|
+
*
|
|
3090
|
+
* - When NOT in Edit Mode (and clean): auto-refreshes the record in place, highlights any
|
|
3091
|
+
* changed fields via {@link FormRecordRefreshCoordinator.NotifyRemoteUpdate}, and displays
|
|
3092
|
+
* a non-intrusive slide-in pill that auto-dismisses after a few seconds.
|
|
3093
|
+
* - When IN Edit Mode (or dirty): never overwrites unsaved work; shows a non-intrusive notice
|
|
3094
|
+
* pill offering a one-click Reload action.
|
|
3095
|
+
*/
|
|
3096
|
+
wireRemoteRecordInvalidation() {
|
|
3097
|
+
MJGlobal.Instance.GetEventListener(false)
|
|
3098
|
+
.pipe(takeUntil(this.destroy$))
|
|
3099
|
+
.subscribe((e) => {
|
|
3100
|
+
if (this.destroyed || e.eventCode !== BaseEntity.BaseEventCode)
|
|
3101
|
+
return;
|
|
3102
|
+
const entityEvt = e.args;
|
|
3103
|
+
if (!entityEvt)
|
|
3104
|
+
return;
|
|
3105
|
+
const record = this.EffectiveRecord;
|
|
3106
|
+
if (!record || !record.IsSaved || !record.EntityInfo)
|
|
3107
|
+
return;
|
|
3108
|
+
if (entityEvt.type === 'save' && entityEvt.baseEntity === record) {
|
|
3109
|
+
this.lastLocalSaveAt = Date.now();
|
|
3110
|
+
return;
|
|
3111
|
+
}
|
|
3112
|
+
let matchesCurrentRecord = false;
|
|
3113
|
+
if (entityEvt.type === 'remote-invalidate') {
|
|
3114
|
+
// Ignore server echo from a save that just occurred on this form instance
|
|
3115
|
+
if (Date.now() - this.lastLocalSaveAt < 2000)
|
|
3116
|
+
return;
|
|
3117
|
+
const payload = entityEvt.payload;
|
|
3118
|
+
const eventEntityName = entityEvt.entityName || payload?.entityName;
|
|
3119
|
+
if (!payload || payload.action !== 'save' || !eventEntityName || !payload.primaryKeyValues)
|
|
3120
|
+
return;
|
|
3121
|
+
if (eventEntityName.trim().toLowerCase() !== record.EntityInfo.Name.trim().toLowerCase())
|
|
3122
|
+
return;
|
|
3123
|
+
matchesCurrentRecord = this.matchesRemotePrimaryKey(record, payload.primaryKeyValues);
|
|
3124
|
+
}
|
|
3125
|
+
else if (entityEvt.type === 'save' && entityEvt.baseEntity && entityEvt.baseEntity !== record) {
|
|
3126
|
+
if (entityEvt.baseEntity.EntityInfo?.Name === record.EntityInfo.Name) {
|
|
3127
|
+
matchesCurrentRecord = entityEvt.baseEntity.PrimaryKey.Equals(record.PrimaryKey);
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
if (!matchesCurrentRecord || this.IsSaving || this.remoteRefreshInFlight)
|
|
3131
|
+
return;
|
|
3132
|
+
this.ngZone.run(() => {
|
|
3133
|
+
if (this.EffectiveEditMode || this.EffectiveIsDirty) {
|
|
3134
|
+
void this.PerformLiveEditModeMerge(record);
|
|
3135
|
+
}
|
|
3136
|
+
else {
|
|
3137
|
+
void this.performLiveRemoteRefresh(record);
|
|
3138
|
+
}
|
|
3139
|
+
});
|
|
3140
|
+
});
|
|
3141
|
+
}
|
|
3142
|
+
matchesRemotePrimaryKey(record, primaryKeyValuesRaw) {
|
|
3143
|
+
const trimmed = primaryKeyValuesRaw.trim();
|
|
3144
|
+
if (!trimmed)
|
|
3145
|
+
return false;
|
|
3146
|
+
// MJServer serializes primaryKeyValues as JSON.stringify(entityObject.PrimaryKey.KeyValuePairs)
|
|
3147
|
+
if (trimmed.startsWith('[')) {
|
|
3148
|
+
try {
|
|
3149
|
+
const parsed = JSON.parse(trimmed);
|
|
3150
|
+
if (Array.isArray(parsed) && parsed.length > 0) {
|
|
3151
|
+
const pairs = parsed
|
|
3152
|
+
.filter((kv) => typeof kv?.FieldName === 'string')
|
|
3153
|
+
.map((kv) => new KeyValuePair(kv.FieldName, kv.Value));
|
|
3154
|
+
if (pairs.length > 0) {
|
|
3155
|
+
const incomingKey = CompositeKey.FromKeyValuePairs(pairs);
|
|
3156
|
+
if (incomingKey.Equals(record.PrimaryKey))
|
|
3157
|
+
return true;
|
|
3158
|
+
if (pairs.length === 1 && UUIDsEqual(String(pairs[0].Value ?? ''), String(record.PrimaryKey.Values()))) {
|
|
3159
|
+
return true;
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
catch {
|
|
3165
|
+
// Fall through to URL segment / string comparisons below
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
const incomingFromSegment = CompositeKey.FromURLSegment(record.EntityInfo, trimmed);
|
|
3169
|
+
return (incomingFromSegment.Equals(record.PrimaryKey) ||
|
|
3170
|
+
UUIDsEqual(trimmed, record.PrimaryKey.ToConcatenatedString()) ||
|
|
3171
|
+
UUIDsEqual(trimmed, String(record.PrimaryKey.Values())));
|
|
3172
|
+
}
|
|
3173
|
+
async performLiveRemoteRefresh(record) {
|
|
3174
|
+
if (this.remoteRefreshInFlight || this.destroyed)
|
|
3175
|
+
return;
|
|
3176
|
+
this.remoteRefreshInFlight = true;
|
|
3177
|
+
try {
|
|
3178
|
+
const beforeValues = { ...record.GetAll() };
|
|
3179
|
+
const refreshed = await record.Refresh();
|
|
3180
|
+
if (!refreshed || this.destroyed)
|
|
3181
|
+
return;
|
|
3182
|
+
const afterValues = record.GetAll();
|
|
3183
|
+
const changedFieldSet = new Set();
|
|
3184
|
+
const changedLabels = [];
|
|
3185
|
+
for (const field of record.EntityInfo.Fields) {
|
|
3186
|
+
const beforeVal = beforeValues[field.Name];
|
|
3187
|
+
const afterVal = afterValues[field.Name];
|
|
3188
|
+
const beforeStr = beforeVal instanceof Date ? beforeVal.toISOString() : String(beforeVal ?? '');
|
|
3189
|
+
const afterStr = afterVal instanceof Date ? afterVal.toISOString() : String(afterVal ?? '');
|
|
3190
|
+
if (beforeStr !== afterStr) {
|
|
3191
|
+
changedFieldSet.add(field.Name.toLowerCase());
|
|
3192
|
+
if (field.CodeName) {
|
|
3193
|
+
changedFieldSet.add(field.CodeName.toLowerCase());
|
|
3194
|
+
}
|
|
3195
|
+
if (!field.Name.startsWith('__mj_')) {
|
|
3196
|
+
changedLabels.push(field.DisplayNameOrName);
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
}
|
|
3200
|
+
this.badgeCountsLoaded = false;
|
|
3201
|
+
this.loadBadgeCounts();
|
|
3202
|
+
if (this.ShowRecordChanges && this.recordChangesDrawer) {
|
|
3203
|
+
this.recordChangesDrawer.Refresh();
|
|
3204
|
+
}
|
|
3205
|
+
this.recordRefresh.NotifyRemoteUpdate(record, changedFieldSet);
|
|
3206
|
+
this.scheduleChromeResolve();
|
|
3207
|
+
const summary = changedLabels.length === 1
|
|
3208
|
+
? `Updated live · ${changedLabels[0]} changed`
|
|
3209
|
+
: changedLabels.length > 1
|
|
3210
|
+
? `Updated live · ${changedLabels.slice(0, 2).join(', ')}${changedLabels.length > 2 ? ` +${changedLabels.length - 2} more` : ''} changed`
|
|
3211
|
+
: 'Updated live';
|
|
3212
|
+
this.showRemoteUpdatePill({
|
|
3213
|
+
Kind: 'refreshed',
|
|
3214
|
+
Summary: summary,
|
|
3215
|
+
ChangedFields: changedLabels,
|
|
3216
|
+
}, true);
|
|
3217
|
+
this.Fc?.cdr?.detectChanges();
|
|
3218
|
+
this.cdr.detectChanges();
|
|
3219
|
+
}
|
|
3220
|
+
catch (err) {
|
|
3221
|
+
LogError(`Live form auto-refresh failed for ${record.EntityInfo.Name}: ${err instanceof Error ? err.message : String(err)}`);
|
|
3222
|
+
}
|
|
3223
|
+
finally {
|
|
3224
|
+
this.remoteRefreshInFlight = false;
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
/**
|
|
3228
|
+
* Performs a field-by-field live merge when a remote update arrives while the user is in Edit Mode:
|
|
3229
|
+
* - Clean fields (`!field.Dirty`) whose server value changed are silently auto-merged in place and stay clean.
|
|
3230
|
+
* - Dirty fields (`field.Dirty`) whose current user edit matches the new server value converge cleanly.
|
|
3231
|
+
* - Dirty fields (`field.Dirty`) whose current user edit differs from the new server value preserve the user's
|
|
3232
|
+
* edit, update `OldValue` to the new server baseline, and raise a {@link FormFieldConflict}.
|
|
3233
|
+
*/
|
|
3234
|
+
async PerformLiveEditModeMerge(record) {
|
|
3235
|
+
if (this.remoteRefreshInFlight || this.destroyed)
|
|
3236
|
+
return;
|
|
3237
|
+
this.remoteRefreshInFlight = true;
|
|
3238
|
+
try {
|
|
3239
|
+
const rv = RunView.FromMetadataProvider(this.ProviderToUse);
|
|
3240
|
+
const pk = record.PrimaryKey;
|
|
3241
|
+
const whereClause = typeof pk?.ToWhereClause === 'function'
|
|
3242
|
+
? pk.ToWhereClause()
|
|
3243
|
+
: typeof pk?.WhereClause === 'function'
|
|
3244
|
+
? pk.WhereClause()
|
|
3245
|
+
: '';
|
|
3246
|
+
const result = await rv.RunView({
|
|
3247
|
+
EntityName: record.EntityInfo.Name,
|
|
3248
|
+
ExtraFilter: whereClause,
|
|
3249
|
+
ResultType: 'simple',
|
|
3250
|
+
BypassCache: true,
|
|
3251
|
+
MaxRows: 1,
|
|
3252
|
+
SkipTotalRowCount: true,
|
|
3253
|
+
});
|
|
3254
|
+
if (!result?.Success || !Array.isArray(result.Results) || result.Results.length === 0 || this.destroyed) {
|
|
3255
|
+
return;
|
|
3256
|
+
}
|
|
3257
|
+
const remoteRow = result.Results[0];
|
|
3258
|
+
const changedFieldSet = new Set();
|
|
3259
|
+
const autoMergedPreviousValues = new Map();
|
|
3260
|
+
const conflicts = new Map();
|
|
3261
|
+
const autoMergedLabels = [];
|
|
3262
|
+
const conflictLabels = [];
|
|
3263
|
+
for (const field of record.Fields) {
|
|
3264
|
+
if (!(field.Name in remoteRow)) {
|
|
3265
|
+
continue;
|
|
3266
|
+
}
|
|
3267
|
+
const remoteVal = remoteRow[field.Name];
|
|
3268
|
+
// Always update system timestamp fields (__mj_UpdatedAt, __mj_CreatedAt)
|
|
3269
|
+
if (field.Name.startsWith('__mj_')) {
|
|
3270
|
+
if (this.formatComparableValue(remoteVal) !== this.formatComparableValue(field.Value)) {
|
|
3271
|
+
if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
|
|
3272
|
+
field.ResetNeverSetFlag();
|
|
3273
|
+
}
|
|
3274
|
+
field.Value = remoteVal;
|
|
3275
|
+
field.ResetOldValue();
|
|
3276
|
+
}
|
|
3277
|
+
continue;
|
|
3278
|
+
}
|
|
3279
|
+
const remoteDiffersFromBaseline = this.formatComparableValue(remoteVal) !== this.formatComparableValue(field.OldValue);
|
|
3280
|
+
if (!remoteDiffersFromBaseline) {
|
|
3281
|
+
continue;
|
|
3282
|
+
}
|
|
3283
|
+
if (!field.Dirty) {
|
|
3284
|
+
// Clean locally: silently auto-merge and keep Dirty === false
|
|
3285
|
+
const previousVal = field.Value;
|
|
3286
|
+
autoMergedPreviousValues.set(field.Name.toLowerCase(), previousVal);
|
|
3287
|
+
if (field.CodeName) {
|
|
3288
|
+
autoMergedPreviousValues.set(field.CodeName.toLowerCase(), previousVal);
|
|
3289
|
+
}
|
|
3290
|
+
if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
|
|
3291
|
+
field.ResetNeverSetFlag();
|
|
3292
|
+
}
|
|
3293
|
+
field.Value = remoteVal;
|
|
3294
|
+
field.ResetOldValue();
|
|
3295
|
+
changedFieldSet.add(field.Name.toLowerCase());
|
|
3296
|
+
if (field.CodeName) {
|
|
3297
|
+
changedFieldSet.add(field.CodeName.toLowerCase());
|
|
3298
|
+
}
|
|
3299
|
+
const fieldWithLabel = field;
|
|
3300
|
+
autoMergedLabels.push(field.EntityFieldInfo?.DisplayNameOrName || fieldWithLabel.DisplayNameOrName || field.Name);
|
|
3301
|
+
}
|
|
3302
|
+
else {
|
|
3303
|
+
// Dirty locally: check if user edit converged with remote value
|
|
3304
|
+
if (this.formatComparableValue(field.Value) === this.formatComparableValue(remoteVal)) {
|
|
3305
|
+
field.Value = remoteVal;
|
|
3306
|
+
field.ResetOldValue();
|
|
3307
|
+
this.recordRefresh.ResolveConflict(field.Name);
|
|
3308
|
+
}
|
|
3309
|
+
else {
|
|
3310
|
+
// True conflict: preserve user's edit, update OldValue baseline to remoteVal
|
|
3311
|
+
const previousServerValue = field.OldValue;
|
|
3312
|
+
const userVal = field.Value;
|
|
3313
|
+
field.Value = remoteVal;
|
|
3314
|
+
field.ResetOldValue();
|
|
3315
|
+
field.Value = userVal;
|
|
3316
|
+
const conflict = {
|
|
3317
|
+
fieldName: field.Name,
|
|
3318
|
+
previousServerValue,
|
|
3319
|
+
incomingServerValue: remoteVal,
|
|
3320
|
+
localEditedValue: userVal,
|
|
3321
|
+
};
|
|
3322
|
+
conflicts.set(field.Name.toLowerCase(), conflict);
|
|
3323
|
+
changedFieldSet.add(field.Name.toLowerCase());
|
|
3324
|
+
if (field.CodeName) {
|
|
3325
|
+
changedFieldSet.add(field.CodeName.toLowerCase());
|
|
3326
|
+
}
|
|
3327
|
+
const fieldWithLabel = field;
|
|
3328
|
+
conflictLabels.push(field.EntityFieldInfo?.DisplayNameOrName || fieldWithLabel.DisplayNameOrName || field.Name);
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
if (changedFieldSet.size > 0 || conflicts.size > 0) {
|
|
3333
|
+
this.recordRefresh.NotifyRemoteUpdate(record, changedFieldSet, autoMergedPreviousValues, conflicts);
|
|
3334
|
+
}
|
|
3335
|
+
if (conflictLabels.length > 0 && autoMergedLabels.length > 0) {
|
|
3336
|
+
this.showRemoteUpdatePill({
|
|
3337
|
+
Kind: 'stale-while-editing',
|
|
3338
|
+
Summary: `${autoMergedLabels.length} field${autoMergedLabels.length === 1 ? '' : 's'} updated live · ${conflictLabels.length} ${conflictLabels.length === 1 ? 'conflict needs' : 'conflicts need'} review`,
|
|
3339
|
+
ChangedFields: [...autoMergedLabels, ...conflictLabels],
|
|
3340
|
+
}, false);
|
|
3341
|
+
}
|
|
3342
|
+
else if (conflictLabels.length > 0) {
|
|
3343
|
+
this.showRemoteUpdatePill({
|
|
3344
|
+
Kind: 'stale-while-editing',
|
|
3345
|
+
Summary: `${conflictLabels.length} ${conflictLabels.length === 1 ? 'conflict needs' : 'conflicts need'} review (${conflictLabels.slice(0, 2).join(', ')})`,
|
|
3346
|
+
ChangedFields: conflictLabels,
|
|
3347
|
+
}, false);
|
|
3348
|
+
}
|
|
3349
|
+
else if (autoMergedLabels.length > 0) {
|
|
3350
|
+
const summary = autoMergedLabels.length === 1
|
|
3351
|
+
? `Updated live · ${autoMergedLabels[0]} changed`
|
|
3352
|
+
: `Updated live · ${autoMergedLabels.slice(0, 2).join(', ')}${autoMergedLabels.length > 2 ? ` +${autoMergedLabels.length - 2} more` : ''} changed`;
|
|
3353
|
+
this.showRemoteUpdatePill({
|
|
3354
|
+
Kind: 'refreshed',
|
|
3355
|
+
Summary: summary,
|
|
3356
|
+
ChangedFields: autoMergedLabels,
|
|
3357
|
+
}, true);
|
|
3358
|
+
}
|
|
3359
|
+
this.Fc?.cdr?.detectChanges();
|
|
3360
|
+
this.cdr.detectChanges();
|
|
3361
|
+
}
|
|
3362
|
+
catch (err) {
|
|
3363
|
+
LogError(`Live edit-mode merge failed for ${record.EntityInfo.Name}: ${err instanceof Error ? err.message : String(err)}`);
|
|
3364
|
+
}
|
|
3365
|
+
finally {
|
|
3366
|
+
this.remoteRefreshInFlight = false;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
formatComparableValue(val) {
|
|
3370
|
+
if (val === null || val === undefined) {
|
|
3371
|
+
return '';
|
|
3372
|
+
}
|
|
3373
|
+
if (val instanceof Date) {
|
|
3374
|
+
return isNaN(val.getTime()) ? '' : val.toISOString();
|
|
3375
|
+
}
|
|
3376
|
+
if (typeof val === 'string') {
|
|
3377
|
+
const trimmed = val.trim();
|
|
3378
|
+
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(trimmed)) {
|
|
3379
|
+
const parsed = new Date(trimmed);
|
|
3380
|
+
if (!isNaN(parsed.getTime())) {
|
|
3381
|
+
return parsed.toISOString();
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
return trimmed;
|
|
3385
|
+
}
|
|
3386
|
+
return String(val);
|
|
3387
|
+
}
|
|
3388
|
+
showRemoteUpdatePill(pill, autoDismiss) {
|
|
3389
|
+
if (this.remoteUpdatePillTimer) {
|
|
3390
|
+
clearTimeout(this.remoteUpdatePillTimer);
|
|
3391
|
+
this.remoteUpdatePillTimer = null;
|
|
3392
|
+
}
|
|
3393
|
+
this.RemoteUpdatePill = pill;
|
|
3394
|
+
this.cdr.markForCheck();
|
|
3395
|
+
if (autoDismiss) {
|
|
3396
|
+
this.remoteUpdatePillTimer = setTimeout(() => {
|
|
3397
|
+
this.remoteUpdatePillTimer = null;
|
|
3398
|
+
if (!this.destroyed) {
|
|
3399
|
+
this.RemoteUpdatePill = null;
|
|
3400
|
+
this.cdr.markForCheck();
|
|
3401
|
+
}
|
|
3402
|
+
}, 4500);
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
OnDismissRemoteUpdatePill() {
|
|
3406
|
+
if (this.remoteUpdatePillTimer) {
|
|
3407
|
+
clearTimeout(this.remoteUpdatePillTimer);
|
|
3408
|
+
this.remoteUpdatePillTimer = null;
|
|
3409
|
+
}
|
|
3410
|
+
this.RemoteUpdatePill = null;
|
|
3411
|
+
this.cdr.markForCheck();
|
|
3412
|
+
}
|
|
3413
|
+
async OnReloadFromRemotePill() {
|
|
3414
|
+
this.OnDismissRemoteUpdatePill();
|
|
3415
|
+
const record = this.EffectiveRecord;
|
|
3416
|
+
if (!record)
|
|
3417
|
+
return;
|
|
3418
|
+
if (this.Fc && this.EffectiveEditMode) {
|
|
3419
|
+
this.Fc.EndEditMode();
|
|
3420
|
+
}
|
|
3421
|
+
await this.performLiveRemoteRefresh(record);
|
|
3422
|
+
}
|
|
2616
3423
|
/**
|
|
2617
3424
|
* Delete, Favorite, History, Lists, ShowChanges: always re-emit for host app.
|
|
2618
3425
|
*/
|
|
@@ -2628,6 +3435,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2628
3435
|
this.BeforeHistoryView.emit(beforeEvent);
|
|
2629
3436
|
if (beforeEvent.Cancel)
|
|
2630
3437
|
return;
|
|
3438
|
+
// Ensure live record fields are restored before opening the history/restore drawer
|
|
3439
|
+
this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
|
|
2631
3440
|
// If not cancelled, show built-in record changes drawer
|
|
2632
3441
|
this.ShowRecordChanges = true;
|
|
2633
3442
|
this.cdr.markForCheck();
|
|
@@ -2670,6 +3479,363 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2670
3479
|
this.TagsPanelWidth = width;
|
|
2671
3480
|
UserInfoEngine.Instance.SetSettingDebounced(MjRecordFormContainerComponent.TAGS_WIDTH_KEY, String(width));
|
|
2672
3481
|
}
|
|
3482
|
+
OnToggleRecordLinks() {
|
|
3483
|
+
this.ShowRecordLinks = !this.ShowRecordLinks;
|
|
3484
|
+
this.cdr.detectChanges();
|
|
3485
|
+
}
|
|
3486
|
+
OnRecordLinksClosed() {
|
|
3487
|
+
this.ShowRecordLinks = false;
|
|
3488
|
+
this.cdr.detectChanges();
|
|
3489
|
+
}
|
|
3490
|
+
OnLinkCountChanged(count) {
|
|
3491
|
+
this.LinkCount = count;
|
|
3492
|
+
this.cdr.markForCheck();
|
|
3493
|
+
}
|
|
3494
|
+
OnLinksSummaryChanged(summary) {
|
|
3495
|
+
this.LinksSummary = summary;
|
|
3496
|
+
this.scheduleChromeResolve();
|
|
3497
|
+
this.cdr.markForCheck();
|
|
3498
|
+
}
|
|
3499
|
+
OnAskAIRequested() {
|
|
3500
|
+
// Publish the freshest composition snapshot (including current dirty edits + links) before opening AI
|
|
3501
|
+
this.resolveChrome();
|
|
3502
|
+
this.Fc?.AskAIRequested.emit();
|
|
3503
|
+
this.AskAIRequested.emit();
|
|
3504
|
+
}
|
|
3505
|
+
// ---- In-Form Time-Travel Historical Version Preview ----
|
|
3506
|
+
OnPreviewVersionSelected(event) {
|
|
3507
|
+
if (!event) {
|
|
3508
|
+
this.OnExitVersionPreview();
|
|
3509
|
+
return;
|
|
3510
|
+
}
|
|
3511
|
+
const change = 'Change' in event ? event.Change : event;
|
|
3512
|
+
if (this.recordChangesDrawer) {
|
|
3513
|
+
this.previewableChangesCache = this.recordChangesDrawer.GetPreviewableChanges();
|
|
3514
|
+
}
|
|
3515
|
+
const previewable = this.previewableChangesCache;
|
|
3516
|
+
const currentIndex = 'Change' in event && typeof event.Index === 'number'
|
|
3517
|
+
? event.Index
|
|
3518
|
+
: Math.max(0, previewable.findIndex((c) => UUIDsEqual(c.ID, change.ID)));
|
|
3519
|
+
const totalCount = 'Change' in event && typeof event.TotalCount === 'number'
|
|
3520
|
+
? event.TotalCount
|
|
3521
|
+
: Math.max(1, previewable.length);
|
|
3522
|
+
const record = this.EffectiveRecord;
|
|
3523
|
+
if (!record || !Array.isArray(record.Fields))
|
|
3524
|
+
return;
|
|
3525
|
+
// Close the slide-in Record Changes drawer automatically so the form is 100%
|
|
3526
|
+
// bright, unobstructed, and full-width under the Time-Travel Scrubber Bar.
|
|
3527
|
+
this.ShowRecordChanges = false;
|
|
3528
|
+
if (this.EffectiveEditMode && !this.EffectiveIsDirty) {
|
|
3529
|
+
this.OnEditModeChange(false);
|
|
3530
|
+
}
|
|
3531
|
+
// Restore live baseline first if stepping from one previewed version to another,
|
|
3532
|
+
// then capture a fresh stash of the true live values before rehydrating `record`.
|
|
3533
|
+
if (this.liveRecordPreviewStash) {
|
|
3534
|
+
this.restoreLiveRecordFromPreviewStash(record);
|
|
3535
|
+
}
|
|
3536
|
+
this.liveRecordPreviewStash = new Map();
|
|
3537
|
+
for (const field of record.Fields) {
|
|
3538
|
+
this.liveRecordPreviewStash.set(field.Name, {
|
|
3539
|
+
value: field.Value,
|
|
3540
|
+
oldValue: field.OldValue,
|
|
3541
|
+
});
|
|
3542
|
+
}
|
|
3543
|
+
const parsedSnapshot = {};
|
|
3544
|
+
if (change.FullRecordJSON) {
|
|
3545
|
+
try {
|
|
3546
|
+
const raw = JSON.parse(change.FullRecordJSON);
|
|
3547
|
+
for (const [k, v] of Object.entries(raw)) {
|
|
3548
|
+
parsedSnapshot[k.toLowerCase()] = v;
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
catch {
|
|
3552
|
+
// Fallback to ChangesJSON below
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
if (change.ChangesJSON) {
|
|
3556
|
+
try {
|
|
3557
|
+
const rawChanges = JSON.parse(change.ChangesJSON);
|
|
3558
|
+
for (const [k, v] of Object.entries(rawChanges)) {
|
|
3559
|
+
const fieldKey = (v?.field || k).toLowerCase();
|
|
3560
|
+
if (v && 'newValue' in v) {
|
|
3561
|
+
parsedSnapshot[fieldKey] = v.newValue;
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
catch {
|
|
3566
|
+
// Ignore malformed ChangesJSON
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
// Synthesize calculated composite name fields (e.g. DisplayName / FullName on People)
|
|
3570
|
+
// because FullRecordJSON is captured before SQL Server recomputes computed columns.
|
|
3571
|
+
this.synthesizeCalculatedSnapshotFields(record, parsedSnapshot);
|
|
3572
|
+
const snapshotValues = {};
|
|
3573
|
+
const fieldDiffs = new Map();
|
|
3574
|
+
const diffChips = [];
|
|
3575
|
+
let diffCount = 0;
|
|
3576
|
+
for (const field of record.Fields) {
|
|
3577
|
+
if (field.Name.startsWith('__mj_'))
|
|
3578
|
+
continue;
|
|
3579
|
+
const lowerName = field.Name.toLowerCase();
|
|
3580
|
+
const lowerCode = field.CodeName ? field.CodeName.toLowerCase() : null;
|
|
3581
|
+
const liveBaseline = this.liveRecordPreviewStash.get(field.Name)?.value ?? field.Value;
|
|
3582
|
+
const hasHist = lowerName in parsedSnapshot || (lowerCode !== null && lowerCode in parsedSnapshot);
|
|
3583
|
+
const histVal = hasHist
|
|
3584
|
+
? lowerName in parsedSnapshot
|
|
3585
|
+
? parsedSnapshot[lowerName]
|
|
3586
|
+
: parsedSnapshot[lowerCode]
|
|
3587
|
+
: liveBaseline;
|
|
3588
|
+
snapshotValues[field.Name] = histVal;
|
|
3589
|
+
snapshotValues[lowerName] = histVal;
|
|
3590
|
+
if (field.CodeName) {
|
|
3591
|
+
snapshotValues[field.CodeName] = histVal;
|
|
3592
|
+
}
|
|
3593
|
+
if (lowerCode) {
|
|
3594
|
+
snapshotValues[lowerCode] = histVal;
|
|
3595
|
+
}
|
|
3596
|
+
if (!field.EntityFieldInfo?.IsPrimaryKey) {
|
|
3597
|
+
if (this.formatComparableValue(histVal) !== this.formatComparableValue(liveBaseline)) {
|
|
3598
|
+
const fieldWithLabel = field;
|
|
3599
|
+
const diff = {
|
|
3600
|
+
FieldName: field.Name,
|
|
3601
|
+
DisplayName: field.EntityFieldInfo?.DisplayNameOrName || fieldWithLabel.DisplayNameOrName || field.Name,
|
|
3602
|
+
HistoricalValue: histVal,
|
|
3603
|
+
CurrentLiveValue: liveBaseline,
|
|
3604
|
+
IsChanged: true,
|
|
3605
|
+
};
|
|
3606
|
+
fieldDiffs.set(lowerName, diff);
|
|
3607
|
+
if (lowerCode) {
|
|
3608
|
+
fieldDiffs.set(lowerCode, diff);
|
|
3609
|
+
}
|
|
3610
|
+
diffChips.push(diff);
|
|
3611
|
+
diffCount++;
|
|
3612
|
+
}
|
|
3613
|
+
// Rehydrate the in-memory BaseEntity field (including ReadOnly/calculated fields)
|
|
3614
|
+
// so custom header panels (e.g. PersonHeaderPanel / bizapps-person-identity) and
|
|
3615
|
+
// calculated fields reflect the previewed historical snapshot while keeping Dirty=false.
|
|
3616
|
+
if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
|
|
3617
|
+
field.ResetNeverSetFlag();
|
|
3618
|
+
}
|
|
3619
|
+
field.Value = histVal;
|
|
3620
|
+
if (typeof field.ResetOldValue === 'function') {
|
|
3621
|
+
field.ResetOldValue();
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
const changedAt = change.ChangedAt instanceof Date
|
|
3626
|
+
? change.ChangedAt
|
|
3627
|
+
: new Date(String(change.ChangedAt));
|
|
3628
|
+
const versionLabel = !isNaN(changedAt.getTime())
|
|
3629
|
+
? `${changedAt.toLocaleDateString(undefined, { month: 'short', day: 'numeric', year: 'numeric' })} · ${changedAt.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' })}`
|
|
3630
|
+
: String(change.ChangedAt ?? '');
|
|
3631
|
+
this.activePreviewSourceChange = change;
|
|
3632
|
+
this.PreviewChangedFieldChips = diffChips;
|
|
3633
|
+
this.recordRefresh.SetVersionPreview({
|
|
3634
|
+
ChangeID: change.ID,
|
|
3635
|
+
ChangedAt: changedAt,
|
|
3636
|
+
ChangedByUser: change.User || 'System',
|
|
3637
|
+
UserName: change.User || 'System',
|
|
3638
|
+
VersionLabel: versionLabel,
|
|
3639
|
+
ChangeType: change.Type || 'Update',
|
|
3640
|
+
Type: change.Type || 'Update',
|
|
3641
|
+
Source: change.Source || 'Internal',
|
|
3642
|
+
Summary: change.ChangesDescription || change.Comments || '',
|
|
3643
|
+
Comments: change.ChangesDescription || change.Comments || '',
|
|
3644
|
+
SnapshotValues: snapshotValues,
|
|
3645
|
+
FieldDiffs: fieldDiffs,
|
|
3646
|
+
DiffCount: diffCount,
|
|
3647
|
+
CurrentIndex: currentIndex,
|
|
3648
|
+
TotalRestoreableCount: totalCount,
|
|
3649
|
+
});
|
|
3650
|
+
this.scheduleChromeResolve();
|
|
3651
|
+
this.Fc?.cdr?.markForCheck();
|
|
3652
|
+
this.cdr.markForCheck();
|
|
3653
|
+
}
|
|
3654
|
+
synthesizeCalculatedSnapshotFields(record, parsedSnapshot) {
|
|
3655
|
+
const stash = this.liveRecordPreviewStash;
|
|
3656
|
+
if (!stash)
|
|
3657
|
+
return;
|
|
3658
|
+
const getLive = (name) => {
|
|
3659
|
+
const f = record.Fields.find((fld) => fld.Name.toLowerCase() === name.toLowerCase());
|
|
3660
|
+
if (!f)
|
|
3661
|
+
return '';
|
|
3662
|
+
const val = stash.get(f.Name)?.value ?? f.Value;
|
|
3663
|
+
return val !== null && val !== undefined ? String(val).trim() : '';
|
|
3664
|
+
};
|
|
3665
|
+
const getHist = (name) => {
|
|
3666
|
+
const key = name.toLowerCase();
|
|
3667
|
+
if (key in parsedSnapshot) {
|
|
3668
|
+
const val = parsedSnapshot[key];
|
|
3669
|
+
return val !== null && val !== undefined ? String(val).trim() : '';
|
|
3670
|
+
}
|
|
3671
|
+
return getLive(name);
|
|
3672
|
+
};
|
|
3673
|
+
const hasFirstLast = record.Fields.some((f) => f.Name.toLowerCase() === 'firstname') &&
|
|
3674
|
+
record.Fields.some((f) => f.Name.toLowerCase() === 'lastname');
|
|
3675
|
+
if (!hasFirstLast)
|
|
3676
|
+
return;
|
|
3677
|
+
const liveFirst = getLive('FirstName');
|
|
3678
|
+
const liveMiddle = getLive('MiddleName');
|
|
3679
|
+
const liveLast = getLive('LastName');
|
|
3680
|
+
const liveSuffix = getLive('Suffix');
|
|
3681
|
+
const histFirst = getHist('FirstName');
|
|
3682
|
+
const histMiddle = getHist('MiddleName');
|
|
3683
|
+
const histLast = getHist('LastName');
|
|
3684
|
+
const histSuffix = getHist('Suffix');
|
|
3685
|
+
const namePartsChanged = histFirst !== liveFirst ||
|
|
3686
|
+
histMiddle !== liveMiddle ||
|
|
3687
|
+
histLast !== liveLast ||
|
|
3688
|
+
histSuffix !== liveSuffix;
|
|
3689
|
+
if (!namePartsChanged)
|
|
3690
|
+
return;
|
|
3691
|
+
for (const calcFieldName of ['DisplayName', 'FullName', 'FirstLast']) {
|
|
3692
|
+
const calcField = record.Fields.find((f) => f.Name.toLowerCase() === calcFieldName.toLowerCase());
|
|
3693
|
+
if (!calcField || !calcField.ReadOnly)
|
|
3694
|
+
continue;
|
|
3695
|
+
const calcKey = calcField.Name.toLowerCase();
|
|
3696
|
+
const liveCalcVal = getLive(calcField.Name);
|
|
3697
|
+
const snapshotCalcVal = calcKey in parsedSnapshot && parsedSnapshot[calcKey] != null
|
|
3698
|
+
? String(parsedSnapshot[calcKey]).trim()
|
|
3699
|
+
: '';
|
|
3700
|
+
// If FullRecordJSON still holds the pre-save / live calculated value (or is empty),
|
|
3701
|
+
// synthesize the historical composite name from the historical name parts.
|
|
3702
|
+
if (!snapshotCalcVal || snapshotCalcVal === liveCalcVal) {
|
|
3703
|
+
const liveWithMiddle = [liveFirst, liveMiddle, liveLast, liveSuffix].filter(Boolean).join(' ');
|
|
3704
|
+
const includeMiddle = Boolean(liveMiddle && liveCalcVal === liveWithMiddle);
|
|
3705
|
+
const synthesized = (includeMiddle
|
|
3706
|
+
? [histFirst, histMiddle, histLast, histSuffix]
|
|
3707
|
+
: [histFirst, histLast, histSuffix])
|
|
3708
|
+
.filter(Boolean)
|
|
3709
|
+
.join(' ');
|
|
3710
|
+
if (synthesized) {
|
|
3711
|
+
parsedSnapshot[calcKey] = synthesized;
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
restoreLiveRecordFromPreviewStash(record) {
|
|
3717
|
+
const target = record ?? this.EffectiveRecord;
|
|
3718
|
+
const stash = this.liveRecordPreviewStash;
|
|
3719
|
+
if (!stash || !target || !Array.isArray(target.Fields)) {
|
|
3720
|
+
this.liveRecordPreviewStash = null;
|
|
3721
|
+
return;
|
|
3722
|
+
}
|
|
3723
|
+
for (const field of target.Fields) {
|
|
3724
|
+
const saved = stash.get(field.Name);
|
|
3725
|
+
if (!saved)
|
|
3726
|
+
continue;
|
|
3727
|
+
if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
|
|
3728
|
+
field.ResetNeverSetFlag();
|
|
3729
|
+
}
|
|
3730
|
+
field.Value = saved.oldValue;
|
|
3731
|
+
if (typeof field.ResetOldValue === 'function') {
|
|
3732
|
+
field.ResetOldValue();
|
|
3733
|
+
}
|
|
3734
|
+
if (this.formatComparableValue(saved.value) !== this.formatComparableValue(saved.oldValue)) {
|
|
3735
|
+
if (field.ReadOnly && typeof field.ResetNeverSetFlag === 'function') {
|
|
3736
|
+
field.ResetNeverSetFlag();
|
|
3737
|
+
}
|
|
3738
|
+
field.Value = saved.value;
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
this.liveRecordPreviewStash = null;
|
|
3742
|
+
}
|
|
3743
|
+
FormatPreviewDiffValue(val) {
|
|
3744
|
+
if (val === null || val === undefined || val === '')
|
|
3745
|
+
return '(empty)';
|
|
3746
|
+
if (typeof val === 'boolean')
|
|
3747
|
+
return val ? 'Yes' : 'No';
|
|
3748
|
+
if (val instanceof Date) {
|
|
3749
|
+
return isNaN(val.getTime()) ? '(empty)' : val.toLocaleDateString();
|
|
3750
|
+
}
|
|
3751
|
+
const str = String(val).trim();
|
|
3752
|
+
if (!str)
|
|
3753
|
+
return '(empty)';
|
|
3754
|
+
if (str.length > 36)
|
|
3755
|
+
return `${str.slice(0, 33)}...`;
|
|
3756
|
+
return str;
|
|
3757
|
+
}
|
|
3758
|
+
OnStepVersionPreview(delta) {
|
|
3759
|
+
const preview = this.ActiveVersionPreview;
|
|
3760
|
+
if (!preview)
|
|
3761
|
+
return;
|
|
3762
|
+
const previewable = this.recordChangesDrawer?.GetPreviewableChanges() ?? this.previewableChangesCache;
|
|
3763
|
+
if (previewable.length === 0)
|
|
3764
|
+
return;
|
|
3765
|
+
const nextIndex = (preview.CurrentIndex ?? 0) + delta;
|
|
3766
|
+
if (nextIndex < 0 || nextIndex >= previewable.length)
|
|
3767
|
+
return;
|
|
3768
|
+
const targetChange = previewable[nextIndex];
|
|
3769
|
+
this.OnPreviewVersionSelected({
|
|
3770
|
+
Change: targetChange,
|
|
3771
|
+
Index: nextIndex,
|
|
3772
|
+
TotalCount: previewable.length,
|
|
3773
|
+
});
|
|
3774
|
+
}
|
|
3775
|
+
OnReopenHistoryFromPreview() {
|
|
3776
|
+
this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
|
|
3777
|
+
this.ShowRecordChanges = true;
|
|
3778
|
+
this.Fc?.cdr?.markForCheck();
|
|
3779
|
+
this.cdr.markForCheck();
|
|
3780
|
+
}
|
|
3781
|
+
OnRestorePreviewedVersion() {
|
|
3782
|
+
if (!this.activePreviewSourceChange)
|
|
3783
|
+
return;
|
|
3784
|
+
const targetChange = this.activePreviewSourceChange;
|
|
3785
|
+
this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
|
|
3786
|
+
this.ShowRecordChanges = true;
|
|
3787
|
+
this.cdr.detectChanges();
|
|
3788
|
+
this.recordChangesDrawer?.OpenRestoreForChange(targetChange);
|
|
3789
|
+
}
|
|
3790
|
+
OnExitVersionPreview() {
|
|
3791
|
+
this.restoreLiveRecordFromPreviewStash(this.EffectiveRecord);
|
|
3792
|
+
this.activePreviewSourceChange = null;
|
|
3793
|
+
this.PreviewChangedFieldChips = [];
|
|
3794
|
+
this.recordRefresh.SetVersionPreview(null);
|
|
3795
|
+
this.scheduleChromeResolve();
|
|
3796
|
+
this.Fc?.cdr?.markForCheck();
|
|
3797
|
+
this.cdr.markForCheck();
|
|
3798
|
+
}
|
|
3799
|
+
async onSingleFieldRestoreRequested(req) {
|
|
3800
|
+
const record = this.EffectiveRecord;
|
|
3801
|
+
if (!record || !Array.isArray(record.Fields))
|
|
3802
|
+
return;
|
|
3803
|
+
const targetField = record.Fields.find((f) => f.Name.toLowerCase() === req.FieldName.toLowerCase() ||
|
|
3804
|
+
(f.CodeName && f.CodeName.toLowerCase() === req.FieldName.toLowerCase()));
|
|
3805
|
+
if (!targetField)
|
|
3806
|
+
return;
|
|
3807
|
+
const savedSourceChange = this.activePreviewSourceChange;
|
|
3808
|
+
const savedIndex = this.ActiveVersionPreview?.CurrentIndex;
|
|
3809
|
+
const savedTotal = this.ActiveVersionPreview?.TotalRestoreableCount;
|
|
3810
|
+
// Restore live field baseline before saving the single restored field
|
|
3811
|
+
this.restoreLiveRecordFromPreviewStash(record);
|
|
3812
|
+
const changeId = req.SourceChangeID || req.ChangeID || '';
|
|
3813
|
+
try {
|
|
3814
|
+
targetField.Value = req.HistoricalValue;
|
|
3815
|
+
record.SetRestoreContext(changeId, `Restored ${req.FieldName} from version preview`);
|
|
3816
|
+
try {
|
|
3817
|
+
const saved = await record.Save();
|
|
3818
|
+
if (saved) {
|
|
3819
|
+
this.notificationService.CreateSimpleNotification(`Restored ${targetField.EntityFieldInfo?.DisplayNameOrName || targetField.Name} from historical version`, 'info', 3000);
|
|
3820
|
+
this.loadVersionCount(record);
|
|
3821
|
+
if (savedSourceChange) {
|
|
3822
|
+
this.OnPreviewVersionSelected({
|
|
3823
|
+
Change: savedSourceChange,
|
|
3824
|
+
Index: savedIndex,
|
|
3825
|
+
TotalCount: savedTotal,
|
|
3826
|
+
});
|
|
3827
|
+
}
|
|
3828
|
+
this.cdr.markForCheck();
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
finally {
|
|
3832
|
+
record.ClearRestoreContext();
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
catch (err) {
|
|
3836
|
+
LogError(`Single-field restore failed for ${req.FieldName}: ${err instanceof Error ? err.message : String(err)}`);
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
2673
3839
|
OnAttachmentsPanelToggled() {
|
|
2674
3840
|
this.ShowAttachmentsPanel = !this.ShowAttachmentsPanel;
|
|
2675
3841
|
this.cdr.detectChanges();
|
|
@@ -2718,6 +3884,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
2718
3884
|
const record = this.EffectiveRecord;
|
|
2719
3885
|
if (!record)
|
|
2720
3886
|
return;
|
|
3887
|
+
this.OnExitVersionPreview();
|
|
2721
3888
|
try {
|
|
2722
3889
|
// Apply each selected snapshot field
|
|
2723
3890
|
for (const fv of event.FieldValues) {
|
|
@@ -3075,76 +4242,86 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
3075
4242
|
} if (rf & 2) {
|
|
3076
4243
|
let _t;
|
|
3077
4244
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recordChangesDrawer = _t.first);
|
|
3078
|
-
} }, 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) {
|
|
4245
|
+
} }, 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", AskAIRequested: "AskAIRequested" }, standalone: false, features: [i0.ɵɵProvidersFeature([FormSlotCoordinator, FormChromeCoordinator, FormRecordRefreshCoordinator, FormSectionIndicatorCoordinator, FormFieldEditCoordinator]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 25, vars: 46, consts: [[3, "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "LinksOpen", "LinkCount", "ConflictCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], ["role", "region", "aria-label", "Historical version preview", 1, "mj-forms-version-preview-banner"], ["aria-live", "polite", "aria-atomic", "true", 1, "mj-forms-visually-hidden"], ["role", "status", "aria-live", "polite", 1, "mj-forms-remote-update-pill", 3, "mj-forms-remote-update-pill--warning"], ["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", "PreviewedChangeID"], [3, "Record", "WidthPx"], [3, "Provider", "Record", "Mode", "IsOpen"], [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", "LinksRequest", "AttachmentsPanelToggled", "AskAIRequested", "ActionPinChanged", "VariantPicked", "Record", "EditMode", "UserCanEdit", "UserCanDelete", "IsFavorite", "FavoriteInitDone", "IsDirty", "DirtyFieldNames", "ListCount", "TagCount", "LinksOpen", "LinkCount", "ConflictCount", "AttachmentCount", "AttachmentsAvailable", "IsAttachmentsPanelOpen", "VersionCount", "EntityInfo", "Config", "IsSaving", "IsRefreshing", "VisibleSectionCount", "TotalSectionCount", "ExpandedSectionCount", "SearchFilter", "ShowEmptyFields", "WidthMode", "HasCustomSectionOrder", "ChromeLayout", "Variants", "CurrentVariantID", "RegisteredItems", "ItemOverrides", "FormComponent"], [1, "mj-forms-version-preview-top-row"], [1, "mj-forms-version-preview-main"], [1, "mj-forms-version-preview-badge"], [1, "fa-solid", "fa-clock-rotate-left"], [1, "mj-forms-version-preview-meta"], [1, "mj-forms-version-preview-author"], [1, "mj-forms-version-preview-diff-pill"], [1, "mj-forms-version-preview-actions"], [1, "mj-forms-version-preview-stepper"], ["type", "button", "title", "Reopen the Record Changes history timeline drawer", 1, "mj-forms-version-preview-timeline-btn", 3, "click"], [1, "fa-solid", "fa-list-ul"], ["type", "button", 1, "mj-forms-version-preview-restore-btn"], ["type", "button", 1, "mj-forms-version-preview-exit-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], ["aria-label", "Changed fields in this version", 1, "mj-forms-version-preview-diffs-row"], ["type", "button", "title", "Preview older version", 1, "mj-forms-version-preview-step-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-chevron-left"], [1, "mj-forms-version-preview-step-count"], ["type", "button", "title", "Preview newer version", 1, "mj-forms-version-preview-step-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-chevron-right"], ["type", "button", 1, "mj-forms-version-preview-restore-btn", 3, "click"], [1, "fa-solid", "fa-rotate-left"], [1, "mj-forms-version-preview-field-chip", 3, "title"], [1, "mj-forms-version-preview-field-chip-more"], [1, "mj-forms-version-preview-field-chip-label"], [1, "mj-forms-version-preview-field-chip-hist"], [1, "mj-forms-version-preview-field-chip-live"], ["role", "status", "aria-live", "polite", 1, "mj-forms-remote-update-pill"], [1, "mj-forms-remote-update-pill-text"], ["type", "button", 1, "mj-forms-remote-update-pill-action"], ["type", "button", "title", "Dismiss", "aria-label", "Dismiss notification", 1, "mj-forms-remote-update-pill-close", 3, "click"], ["type", "button", 1, "mj-forms-remote-update-pill-action", 3, "click"], ["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, "PreviewVersionSelected", "RestoreRequested", "dialogClosed", "record", "AllowRestore", "PreviewedChangeID"], [3, "PanelClosed", "TagCountChanged", "RecordNavigate", "WidthChanged", "Record", "WidthPx"], [3, "Close", "LinkCountChange", "LinksSummaryChange", "Navigate", "Provider", "Record", "Mode", "IsOpen"], [3, "PanelClosed", "AttachmentCountChanged", "Record", "Visible"], [3, "complete", "cancel", "visible", "config"]], template: function MjRecordFormContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3079
4246
|
i0.ɵɵprojectionDef(_c0);
|
|
3080
4247
|
i0.ɵɵprojection(0);
|
|
3081
|
-
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1,
|
|
3082
|
-
i0.ɵɵ
|
|
3083
|
-
i0.ɵɵ
|
|
4248
|
+
i0.ɵɵconditionalCreate(1, MjRecordFormContainerComponent_Conditional_1_Template, 1, 34, "mj-form-toolbar", 0);
|
|
4249
|
+
i0.ɵɵconditionalCreate(2, MjRecordFormContainerComponent_Conditional_2_Template, 23, 7, "div", 1);
|
|
4250
|
+
i0.ɵɵelementStart(3, "span", 2);
|
|
4251
|
+
i0.ɵɵtext(4);
|
|
3084
4252
|
i0.ɵɵelementEnd();
|
|
3085
|
-
i0.ɵɵconditionalCreate(
|
|
3086
|
-
i0.ɵɵ
|
|
3087
|
-
i0.ɵɵ
|
|
3088
|
-
i0.ɵɵ
|
|
3089
|
-
i0.ɵɵ
|
|
3090
|
-
i0.ɵɵ
|
|
3091
|
-
i0.ɵɵconditionalCreate(
|
|
3092
|
-
i0.ɵɵconditionalCreate(
|
|
3093
|
-
i0.ɵɵconditionalCreate(
|
|
4253
|
+
i0.ɵɵconditionalCreate(5, MjRecordFormContainerComponent_Conditional_5_Template, 7, 6, "div", 3);
|
|
4254
|
+
i0.ɵɵconditionalCreate(6, MjRecordFormContainerComponent_Conditional_6_Template, 5, 0, "mj-alert", 4);
|
|
4255
|
+
i0.ɵɵelementStart(7, "div", 5)(8, "div", 6)(9, "div", 7);
|
|
4256
|
+
i0.ɵɵconditionalCreate(10, MjRecordFormContainerComponent_Conditional_10_Template, 3, 8, "nav", 8);
|
|
4257
|
+
i0.ɵɵelementStart(11, "div", 9);
|
|
4258
|
+
i0.ɵɵprojection(12, 1);
|
|
4259
|
+
i0.ɵɵconditionalCreate(13, MjRecordFormContainerComponent_Conditional_13_Template, 1, 5, "mj-form-contributions", 10);
|
|
4260
|
+
i0.ɵɵconditionalCreate(14, MjRecordFormContainerComponent_Conditional_14_Template, 8, 11, "div", 11);
|
|
4261
|
+
i0.ɵɵconditionalCreate(15, MjRecordFormContainerComponent_Conditional_15_Template, 1, 3, "mj-form-panel-slot", 12);
|
|
4262
|
+
i0.ɵɵconditionalCreate(16, MjRecordFormContainerComponent_Conditional_16_Template, 1, 1, "mj-empty-state", 13);
|
|
3094
4263
|
i0.ɵɵelementEnd();
|
|
3095
|
-
i0.ɵɵelementStart(
|
|
3096
|
-
i0.ɵɵlistener("Navigate", function
|
|
4264
|
+
i0.ɵɵelementStart(17, "mj-isa-related-panel", 14);
|
|
4265
|
+
i0.ɵɵlistener("Navigate", function MjRecordFormContainerComponent_Template_mj_isa_related_panel_Navigate_17_listener($event) { return ctx.OnNavigate($event); });
|
|
3097
4266
|
i0.ɵɵelementEnd()()()();
|
|
3098
|
-
i0.ɵɵconditionalCreate(
|
|
3099
|
-
i0.ɵɵconditionalCreate(
|
|
3100
|
-
i0.ɵɵconditionalCreate(
|
|
3101
|
-
i0.ɵɵconditionalCreate(
|
|
3102
|
-
i0.ɵɵ
|
|
3103
|
-
i0.ɵɵ
|
|
4267
|
+
i0.ɵɵconditionalCreate(18, MjRecordFormContainerComponent_Conditional_18_Template, 1, 3, "mj-record-changes", 15);
|
|
4268
|
+
i0.ɵɵconditionalCreate(19, MjRecordFormContainerComponent_Conditional_19_Template, 1, 2, "mj-record-tags", 16);
|
|
4269
|
+
i0.ɵɵconditionalCreate(20, MjRecordFormContainerComponent_Conditional_20_Template, 1, 4, "mj-record-links", 17);
|
|
4270
|
+
i0.ɵɵconditionalCreate(21, MjRecordFormContainerComponent_Conditional_21_Template, 1, 2, "mj-record-attachments", 18);
|
|
4271
|
+
i0.ɵɵconditionalCreate(22, MjRecordFormContainerComponent_Conditional_22_Template, 1, 8, "mj-list-management-dialog", 19);
|
|
4272
|
+
i0.ɵɵelementStart(23, "mj-section-manager", 20);
|
|
4273
|
+
i0.ɵɵlistener("SectionOrderChange", function MjRecordFormContainerComponent_Template_mj_section_manager_SectionOrderChange_23_listener($event) { return ctx.OnSectionOrderChange($event); })("MembershipChange", function MjRecordFormContainerComponent_Template_mj_section_manager_MembershipChange_23_listener($event) { return ctx.OnChromeMembershipChange($event); })("ResetRequested", function MjRecordFormContainerComponent_Template_mj_section_manager_ResetRequested_23_listener() { return ctx.OnSectionManagerReset(); })("Closed", function MjRecordFormContainerComponent_Template_mj_section_manager_Closed_23_listener() { return ctx.OnSectionManagerClosed(); });
|
|
3104
4274
|
i0.ɵɵelementEnd();
|
|
3105
|
-
i0.ɵɵelementStart(
|
|
3106
|
-
i0.ɵɵlistener("Changed", function
|
|
4275
|
+
i0.ɵɵelementStart(24, "mj-panel-manager", 21);
|
|
4276
|
+
i0.ɵɵlistener("Changed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Changed_24_listener() { return ctx.OnPanelManagerChanged(); })("FormChosen", function MjRecordFormContainerComponent_Template_mj_panel_manager_FormChosen_24_listener($event) { return ctx.OnPanelManagerFormChosen($event); })("Closed", function MjRecordFormContainerComponent_Template_mj_panel_manager_Closed_24_listener() { return ctx.OnPanelManagerClosed(); });
|
|
3107
4277
|
i0.ɵɵelementEnd();
|
|
3108
4278
|
} if (rf & 2) {
|
|
4279
|
+
let tmp_1_0;
|
|
3109
4280
|
i0.ɵɵadvance();
|
|
3110
4281
|
i0.ɵɵconditional(ctx.EffectiveShowToolbar ? 1 : -1);
|
|
4282
|
+
i0.ɵɵadvance();
|
|
4283
|
+
i0.ɵɵconditional((tmp_1_0 = ctx.ActiveVersionPreview) ? 2 : -1, tmp_1_0);
|
|
3111
4284
|
i0.ɵɵadvance(2);
|
|
3112
4285
|
i0.ɵɵtextInterpolate(ctx.FormIndicatorsAnnouncement);
|
|
3113
4286
|
i0.ɵɵadvance();
|
|
3114
|
-
i0.ɵɵconditional(ctx.
|
|
4287
|
+
i0.ɵɵconditional(ctx.RemoteUpdatePill ? 5 : -1);
|
|
4288
|
+
i0.ɵɵadvance();
|
|
4289
|
+
i0.ɵɵconditional(ctx.DuplicateEntryCandidates.length > 0 ? 6 : -1);
|
|
3115
4290
|
i0.ɵɵadvance(2);
|
|
3116
4291
|
i0.ɵɵclassProp("mj-forms-panels--full-width", ctx.EffectiveWidthMode === "full-width")("mj-forms-panels--edit-mode", ctx.EffectiveEditMode)("mj-forms-panels--has-isa-panel", ctx.HasIsaRelatedItems);
|
|
3117
4292
|
i0.ɵɵadvance();
|
|
3118
4293
|
i0.ɵɵclassProp("mj-forms-layout--left-nav", ctx.ChromeLayout === "left-nav")("mj-forms-layout--accordion", ctx.ChromeLayout === "accordion")("mj-forms-layout--more", ctx.IsChromeMoreActive);
|
|
3119
4294
|
i0.ɵɵadvance();
|
|
3120
|
-
i0.ɵɵconditional(ctx.ShowChromeRail ?
|
|
4295
|
+
i0.ɵɵconditional(ctx.ShowChromeRail ? 10 : -1);
|
|
3121
4296
|
i0.ɵɵadvance(3);
|
|
3122
|
-
i0.ɵɵconditional(ctx.Record && ctx.FormComponent ?
|
|
4297
|
+
i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 13 : -1);
|
|
3123
4298
|
i0.ɵɵadvance();
|
|
3124
|
-
i0.ɵɵconditional(ctx.ShowMoreToggle ?
|
|
4299
|
+
i0.ɵɵconditional(ctx.ShowMoreToggle ? 14 : -1);
|
|
3125
4300
|
i0.ɵɵadvance();
|
|
3126
|
-
i0.ɵɵconditional(ctx.Record && ctx.FormComponent ?
|
|
4301
|
+
i0.ɵɵconditional(ctx.Record && ctx.FormComponent ? 15 : -1);
|
|
3127
4302
|
i0.ɵɵadvance();
|
|
3128
|
-
i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ?
|
|
4303
|
+
i0.ɵɵconditional(ctx.EffectiveSearchFilter && ctx.SearchHasNoMatches ? 16 : -1);
|
|
3129
4304
|
i0.ɵɵadvance();
|
|
3130
4305
|
i0.ɵɵproperty("Record", ctx.EffectiveRecord)("EditMode", ctx.EffectiveEditMode)("Collapsed", ctx.EffectiveWidthMode === "full-width");
|
|
3131
4306
|
i0.ɵɵadvance();
|
|
3132
|
-
i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ?
|
|
4307
|
+
i0.ɵɵconditional(ctx.ShowRecordChanges && ctx.EffectiveRecord ? 18 : -1);
|
|
3133
4308
|
i0.ɵɵadvance();
|
|
3134
|
-
i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ?
|
|
4309
|
+
i0.ɵɵconditional(ctx.ShowTagsPanel && ctx.EffectiveRecord ? 19 : -1);
|
|
3135
4310
|
i0.ɵɵadvance();
|
|
3136
|
-
i0.ɵɵconditional(ctx.
|
|
4311
|
+
i0.ɵɵconditional(ctx.ShowRecordLinks && ctx.EffectiveRecord && ctx.EffectiveRecord.IsSaved ? 20 : -1);
|
|
3137
4312
|
i0.ɵɵadvance();
|
|
3138
|
-
i0.ɵɵconditional(ctx.
|
|
4313
|
+
i0.ɵɵconditional(ctx.ShowAttachmentsPanel && ctx.AttachmentsAvailable && ctx.EffectiveRecord ? 21 : -1);
|
|
4314
|
+
i0.ɵɵadvance();
|
|
4315
|
+
i0.ɵɵconditional(ctx.ShowListManagement && ctx.EffectiveRecord ? 22 : -1);
|
|
3139
4316
|
i0.ɵɵadvance();
|
|
3140
4317
|
i0.ɵɵproperty("Sections", ctx.SectionManagerItems)("SectionOrder", ctx.SectionManagerOrder)("MoreSectionKeys", ctx.SectionManagerMoreKeys)("LockedMoreKeys", ctx.SectionManagerLockedMoreKeys)("Visible", ctx.ShowSectionManager);
|
|
3141
4318
|
i0.ɵɵadvance();
|
|
3142
4319
|
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);
|
|
3143
|
-
} }, 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 });
|
|
4320
|
+
} }, 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, i12.MjRecordLinksComponent], 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/* Slot-mounted panels: <mj-form-panel-slot> and the panel host it mounts are\n both display:contents, so the flex items here are the panel template's root\n elements, two DOM levels down where the child selector above cannot reach.\n Without this a root with overflow other than visible (min-height resolves\n to 0) shrinks to fit the column, clipping a header card to its title row. */\n.mj-forms-layout--left-nav .mj-forms-all-panels > mj-form-panel-slot > * > *: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(0, 0, 0, 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\n/* ====================================================================\n NON-INTRUSIVE LIVE REMOTE UPDATE SLIDE-IN PILL\n ==================================================================== */\n@keyframes mj-remote-pill-slide-in {\n from {\n opacity: 0;\n transform: translateY(-8px) scale(0.97);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n.mj-forms-remote-update-pill {\n position: absolute;\n top: 56px;\n right: 24px;\n z-index: 45;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n border-radius: 999px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface-card));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n box-shadow: var(--mj-shadow-md, 0 4px 14px rgba(0, 0, 0, 0.12));\n color: var(--mj-text-primary);\n font-size: 12.5px;\n font-weight: 500;\n line-height: 1.3;\n animation: mj-remote-pill-slide-in 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n.mj-forms-remote-update-pill--warning {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mj-forms-remote-update-pill-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mj-forms-remote-update-pill--warning .mj-forms-remote-update-pill-icon {\n color: var(--mj-status-warning);\n}\n\n.mj-forms-remote-update-pill-action {\n border: none;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n color: var(--mj-brand-primary);\n font: inherit;\n font-size: 11.5px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n cursor: pointer;\n}\n\n.mj-forms-remote-update-pill-action:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.mj-forms-remote-update-pill-close {\n border: none;\n background: transparent;\n color: var(--mj-text-muted);\n padding: 2px 4px;\n border-radius: 999px;\n cursor: pointer;\n line-height: 1;\n}\n\n.mj-forms-remote-update-pill-close:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n\n/* ====================================================================\n TIME-TRAVEL HISTORICAL VERSION PREVIEW BANNER\n ==================================================================== */\n.mj-forms-version-preview-banner {\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 20px;\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface-elevated));\n border-bottom: 1px solid color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.mj-forms-version-preview-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.mj-forms-version-preview-main {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.mj-forms-version-preview-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-version-preview-meta {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-author {\n color: var(--mj-text-secondary);\n font-size: 12px;\n}\n\n.mj-forms-version-preview-diff-pill {\n padding: 2px 9px;\n border-radius: 999px;\n font-size: 11.5px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-info) 14%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border: 1px solid color-mix(in srgb, var(--mj-status-info) 30%, transparent);\n}\n\n.mj-forms-version-preview-actions {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mj-forms-version-preview-stepper {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px;\n border-radius: 6px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-step-btn {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--mj-text-secondary);\n font-size: 11.5px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n}\n\n.mj-forms-version-preview-step-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-step-btn:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.mj-forms-version-preview-step-count {\n padding: 0 6px;\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-version-preview-timeline-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n}\n\n.mj-forms-version-preview-timeline-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 1px solid var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-version-preview-exit-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-exit-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-diffs-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 6px;\n padding-top: 2px;\n}\n\n.mj-forms-version-preview-field-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 3px 9px;\n border-radius: 6px;\n font-size: 11.5px;\n background: var(--mj-bg-surface);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 28%, var(--mj-border-default));\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-field-chip-label {\n color: var(--mj-text-secondary);\n font-weight: 600;\n}\n\n.mj-forms-version-preview-field-chip-hist {\n color: var(--mj-brand-primary);\n font-weight: 700;\n}\n\n.mj-forms-version-preview-field-chip-live {\n color: var(--mj-text-muted);\n font-size: 11px;\n}\n\n.mj-forms-version-preview-field-chip-more {\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n padding: 2px 6px;\n}\n\n.mj-forms-version-preview-step-btn:focus-visible,\n.mj-forms-version-preview-timeline-btn:focus-visible,\n.mj-forms-version-preview-restore-btn:focus-visible,\n.mj-forms-version-preview-exit-btn:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 1px;\n}\n"], encapsulation: 2, changeDetection: 0 });
|
|
3144
4321
|
}
|
|
3145
4322
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjRecordFormContainerComponent, [{
|
|
3146
4323
|
type: Component,
|
|
3147
|
-
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"] }]
|
|
4324
|
+
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 [LinksOpen]=\"ShowRecordLinks\"\n [LinkCount]=\"LinkCount\"\n [ConflictCount]=\"ConflictCount\"\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 (LinksRequest)=\"OnToggleRecordLinks()\"\n (AttachmentsPanelToggled)=\"OnAttachmentsPanelToggled()\"\n (AskAIRequested)=\"OnAskAIRequested()\"\n (ActionPinChanged)=\"OnToolbarActionPinChanged($event)\"\n (VariantPicked)=\"OnVariantPicked($event)\">\n</mj-form-toolbar>\n}\n\n<!-- ============================================\n TIME-TRAVEL HISTORICAL VERSION PREVIEW BANNER\n Renders above the form when previewing a historical RecordChange snapshot\n ============================================ -->\n@if (ActiveVersionPreview; as preview) {\n <div class=\"mj-forms-version-preview-banner\" role=\"region\" aria-label=\"Historical version preview\">\n <div class=\"mj-forms-version-preview-top-row\">\n <div class=\"mj-forms-version-preview-main\">\n <span class=\"mj-forms-version-preview-badge\">\n <i class=\"fa-solid fa-clock-rotate-left\"></i>\n Time-Travel Preview\n </span>\n <span class=\"mj-forms-version-preview-meta\">\n <strong>{{ preview.VersionLabel }}</strong>\n <span class=\"mj-forms-version-preview-author\">by {{ preview.UserName }}</span>\n </span>\n <span class=\"mj-forms-version-preview-diff-pill\">\n {{ preview.DiffCount ?? 0 }} {{ (preview.DiffCount ?? 0) === 1 ? 'field differs' : 'fields differ' }} from live\n </span>\n </div>\n <div class=\"mj-forms-version-preview-actions\">\n @if ((preview.TotalRestoreableCount ?? 0) > 1) {\n <div class=\"mj-forms-version-preview-stepper\">\n <button type=\"button\"\n class=\"mj-forms-version-preview-step-btn\"\n [disabled]=\"(preview.CurrentIndex ?? 0) >= (preview.TotalRestoreableCount ?? 1) - 1\"\n title=\"Preview older version\"\n (click)=\"OnStepVersionPreview(1)\">\n <i class=\"fa-solid fa-chevron-left\"></i> Older\n </button>\n <span class=\"mj-forms-version-preview-step-count\">\n {{ (preview.TotalRestoreableCount ?? 1) - (preview.CurrentIndex ?? 0) }} / {{ preview.TotalRestoreableCount ?? 1 }}\n </span>\n <button type=\"button\"\n class=\"mj-forms-version-preview-step-btn\"\n [disabled]=\"(preview.CurrentIndex ?? 0) <= 0\"\n title=\"Preview newer version\"\n (click)=\"OnStepVersionPreview(-1)\">\n Newer <i class=\"fa-solid fa-chevron-right\"></i>\n </button>\n </div>\n }\n <button type=\"button\"\n class=\"mj-forms-version-preview-timeline-btn\"\n title=\"Reopen the Record Changes history timeline drawer\"\n (click)=\"OnReopenHistoryFromPreview()\">\n <i class=\"fa-solid fa-list-ul\"></i> Timeline\n </button>\n @if (EffectiveUserCanEdit && (preview.DiffCount ?? 0) > 0) {\n <button type=\"button\"\n class=\"mj-forms-version-preview-restore-btn\"\n (click)=\"OnRestorePreviewedVersion()\">\n <i class=\"fa-solid fa-rotate-left\"></i> Restore This Version...\n </button>\n }\n <button type=\"button\"\n class=\"mj-forms-version-preview-exit-btn\"\n (click)=\"OnExitVersionPreview()\">\n <i class=\"fa-solid fa-xmark\"></i> Exit Preview\n </button>\n </div>\n </div>\n @if (PreviewChangedFieldChips.length > 0) {\n <div class=\"mj-forms-version-preview-diffs-row\" aria-label=\"Changed fields in this version\">\n @for (diff of PreviewChangedFieldChips.slice(0, 6); track diff.FieldName) {\n <span class=\"mj-forms-version-preview-field-chip\"\n [title]=\"(diff.DisplayName || diff.FieldName) + ': ' + FormatPreviewDiffValue(diff.HistoricalValue) + ' (Current live: ' + FormatPreviewDiffValue(diff.CurrentLiveValue) + ')'\">\n <span class=\"mj-forms-version-preview-field-chip-label\">{{ diff.DisplayName || diff.FieldName }}:</span>\n <strong class=\"mj-forms-version-preview-field-chip-hist\">{{ FormatPreviewDiffValue(diff.HistoricalValue) }}</strong>\n <span class=\"mj-forms-version-preview-field-chip-live\">\u2190 Live: {{ FormatPreviewDiffValue(diff.CurrentLiveValue) }}</span>\n </span>\n }\n @if (PreviewChangedFieldChips.length > 6) {\n <span class=\"mj-forms-version-preview-field-chip-more\">\n +{{ PreviewChangedFieldChips.length - 6 }} more\n </span>\n }\n </div>\n }\n </div>\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 NON-INTRUSIVE LIVE REMOTE UPDATE SLIDE-IN PILL\n ============================================ -->\n@if (RemoteUpdatePill) {\n <div class=\"mj-forms-remote-update-pill\"\n [class.mj-forms-remote-update-pill--warning]=\"RemoteUpdatePill.Kind === 'stale-while-editing'\"\n role=\"status\"\n aria-live=\"polite\">\n <i [class]=\"RemoteUpdatePill.Kind === 'refreshed' ? 'fa-solid fa-bolt mj-forms-remote-update-pill-icon' : 'fa-solid fa-arrows-rotate mj-forms-remote-update-pill-icon'\"></i>\n <span class=\"mj-forms-remote-update-pill-text\">{{ RemoteUpdatePill.Summary }}</span>\n @if (RemoteUpdatePill.Kind === 'stale-while-editing') {\n <button type=\"button\"\n class=\"mj-forms-remote-update-pill-action\"\n (click)=\"OnReloadFromRemotePill()\">\n Reload\n </button>\n }\n <button type=\"button\"\n class=\"mj-forms-remote-update-pill-close\"\n title=\"Dismiss\"\n aria-label=\"Dismiss notification\"\n (click)=\"OnDismissRemoteUpdatePill()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n}\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 [PreviewedChangeID]=\"ActiveVersionPreview?.ChangeID ?? null\"\n (PreviewVersionSelected)=\"OnPreviewVersionSelected($event)\"\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 LINKS DRAWER (shown when links button clicked)\n ============================================ -->\n@if (ShowRecordLinks && EffectiveRecord && EffectiveRecord.IsSaved) {\n <mj-record-links\n [Provider]=\"Provider\"\n [Record]=\"EffectiveRecord\"\n [Mode]=\"'drawer'\"\n [IsOpen]=\"ShowRecordLinks\"\n (Close)=\"OnRecordLinksClosed()\"\n (LinkCountChange)=\"OnLinkCountChanged($event)\"\n (LinksSummaryChange)=\"OnLinksSummaryChanged($event)\"\n (Navigate)=\"OnNavigate($event)\">\n </mj-record-links>\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/* Slot-mounted panels: <mj-form-panel-slot> and the panel host it mounts are\n both display:contents, so the flex items here are the panel template's root\n elements, two DOM levels down where the child selector above cannot reach.\n Without this a root with overflow other than visible (min-height resolves\n to 0) shrinks to fit the column, clipping a header card to its title row. */\n.mj-forms-layout--left-nav .mj-forms-all-panels > mj-form-panel-slot > * > *: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(0, 0, 0, 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\n/* ====================================================================\n NON-INTRUSIVE LIVE REMOTE UPDATE SLIDE-IN PILL\n ==================================================================== */\n@keyframes mj-remote-pill-slide-in {\n from {\n opacity: 0;\n transform: translateY(-8px) scale(0.97);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n.mj-forms-remote-update-pill {\n position: absolute;\n top: 56px;\n right: 24px;\n z-index: 45;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n border-radius: 999px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface-card));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n box-shadow: var(--mj-shadow-md, 0 4px 14px rgba(0, 0, 0, 0.12));\n color: var(--mj-text-primary);\n font-size: 12.5px;\n font-weight: 500;\n line-height: 1.3;\n animation: mj-remote-pill-slide-in 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n.mj-forms-remote-update-pill--warning {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mj-forms-remote-update-pill-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mj-forms-remote-update-pill--warning .mj-forms-remote-update-pill-icon {\n color: var(--mj-status-warning);\n}\n\n.mj-forms-remote-update-pill-action {\n border: none;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n color: var(--mj-brand-primary);\n font: inherit;\n font-size: 11.5px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n cursor: pointer;\n}\n\n.mj-forms-remote-update-pill-action:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.mj-forms-remote-update-pill-close {\n border: none;\n background: transparent;\n color: var(--mj-text-muted);\n padding: 2px 4px;\n border-radius: 999px;\n cursor: pointer;\n line-height: 1;\n}\n\n.mj-forms-remote-update-pill-close:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n\n/* ====================================================================\n TIME-TRAVEL HISTORICAL VERSION PREVIEW BANNER\n ==================================================================== */\n.mj-forms-version-preview-banner {\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 20px;\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface-elevated));\n border-bottom: 1px solid color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n color: var(--mj-text-primary);\n font-size: 13px;\n}\n\n.mj-forms-version-preview-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.mj-forms-version-preview-main {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n}\n\n.mj-forms-version-preview-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-version-preview-meta {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-author {\n color: var(--mj-text-secondary);\n font-size: 12px;\n}\n\n.mj-forms-version-preview-diff-pill {\n padding: 2px 9px;\n border-radius: 999px;\n font-size: 11.5px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-info) 14%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border: 1px solid color-mix(in srgb, var(--mj-status-info) 30%, transparent);\n}\n\n.mj-forms-version-preview-actions {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mj-forms-version-preview-stepper {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px;\n border-radius: 6px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-step-btn {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--mj-text-secondary);\n font-size: 11.5px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n}\n\n.mj-forms-version-preview-step-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-step-btn:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.mj-forms-version-preview-step-count {\n padding: 0 6px;\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-version-preview-timeline-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-brand-primary);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n}\n\n.mj-forms-version-preview-timeline-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 1px solid var(--mj-brand-primary);\n}\n\n.mj-forms-version-preview-restore-btn:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-version-preview-exit-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n font-family: inherit;\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-default);\n}\n\n.mj-forms-version-preview-exit-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-diffs-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 6px;\n padding-top: 2px;\n}\n\n.mj-forms-version-preview-field-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 3px 9px;\n border-radius: 6px;\n font-size: 11.5px;\n background: var(--mj-bg-surface);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 28%, var(--mj-border-default));\n color: var(--mj-text-primary);\n}\n\n.mj-forms-version-preview-field-chip-label {\n color: var(--mj-text-secondary);\n font-weight: 600;\n}\n\n.mj-forms-version-preview-field-chip-hist {\n color: var(--mj-brand-primary);\n font-weight: 700;\n}\n\n.mj-forms-version-preview-field-chip-live {\n color: var(--mj-text-muted);\n font-size: 11px;\n}\n\n.mj-forms-version-preview-field-chip-more {\n font-size: 11px;\n font-weight: 600;\n color: var(--mj-text-muted);\n padding: 2px 6px;\n}\n\n.mj-forms-version-preview-step-btn:focus-visible,\n.mj-forms-version-preview-timeline-btn:focus-visible,\n.mj-forms-version-preview-restore-btn:focus-visible,\n.mj-forms-version-preview-exit-btn:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 1px;\n}\n"] }]
|
|
3148
4325
|
}], null, { recordChangesDrawer: [{
|
|
3149
4326
|
type: ViewChild,
|
|
3150
4327
|
args: [RecordChangesComponent]
|
|
@@ -3232,11 +4409,13 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
|
|
|
3232
4409
|
type: Output
|
|
3233
4410
|
}], AfterSectionActivated: [{
|
|
3234
4411
|
type: Output
|
|
4412
|
+
}], AskAIRequested: [{
|
|
4413
|
+
type: Output
|
|
3235
4414
|
}], Panels: [{
|
|
3236
4415
|
type: ContentChildren,
|
|
3237
4416
|
args: [MjCollapsiblePanelComponent, { descendants: true }]
|
|
3238
4417
|
}] }); })();
|
|
3239
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber:
|
|
4418
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjRecordFormContainerComponent, { className: "MjRecordFormContainerComponent", filePath: "src/lib/container/record-form-container.component.ts", lineNumber: 179 }); })();
|
|
3240
4419
|
/** The value a form with no entity resolves to. */
|
|
3241
4420
|
const NO_RESOLVED_CONTRIBUTIONS = { Winners: [], RailItems: new Map() };
|
|
3242
4421
|
/**
|