@memberjunction/ng-base-forms 6.2.0-edge.5 → 6.2.0-edge.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +195 -2
  2. package/dist/lib/base-form-component.d.ts +23 -1
  3. package/dist/lib/base-form-component.d.ts.map +1 -1
  4. package/dist/lib/base-form-component.js +54 -10
  5. package/dist/lib/base-form-component.js.map +1 -1
  6. package/dist/lib/chrome/form-composition-snapshot.d.ts +52 -0
  7. package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -1
  8. package/dist/lib/chrome/form-composition-snapshot.js +4 -0
  9. package/dist/lib/chrome/form-composition-snapshot.js.map +1 -1
  10. package/dist/lib/container/record-form-container.component.d.ts +107 -1
  11. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  12. package/dist/lib/container/record-form-container.component.js +1494 -316
  13. package/dist/lib/container/record-form-container.component.js.map +1 -1
  14. package/dist/lib/field/form-field.component.d.ts +159 -14
  15. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  16. package/dist/lib/field/form-field.component.js +1360 -469
  17. package/dist/lib/field/form-field.component.js.map +1 -1
  18. package/dist/lib/form-record-refresh.coordinator.d.ts +124 -0
  19. package/dist/lib/form-record-refresh.coordinator.d.ts.map +1 -1
  20. package/dist/lib/form-record-refresh.coordinator.js +93 -13
  21. package/dist/lib/form-record-refresh.coordinator.js.map +1 -1
  22. package/dist/lib/host/entity-form-host.component.d.ts +104 -2
  23. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  24. package/dist/lib/host/entity-form-host.component.js +272 -34
  25. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  26. package/dist/lib/isa-related-panel/isa-related-card.component.js +7 -4
  27. package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
  28. package/dist/lib/isa-related-panel/isa-related-panel.component.js +1 -2
  29. package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
  30. package/dist/lib/links/record-link-utils.d.ts +83 -0
  31. package/dist/lib/links/record-link-utils.d.ts.map +1 -0
  32. package/dist/lib/links/record-link-utils.js +232 -0
  33. package/dist/lib/links/record-link-utils.js.map +1 -0
  34. package/dist/lib/links/record-link.component.d.ts +50 -0
  35. package/dist/lib/links/record-link.component.d.ts.map +1 -0
  36. package/dist/lib/links/record-link.component.js +319 -0
  37. package/dist/lib/links/record-link.component.js.map +1 -0
  38. package/dist/lib/links/record-link.directive.d.ts +94 -0
  39. package/dist/lib/links/record-link.directive.d.ts.map +1 -0
  40. package/dist/lib/links/record-link.directive.js +277 -0
  41. package/dist/lib/links/record-link.directive.js.map +1 -0
  42. package/dist/lib/links/record-links-drawer.component.d.ts +21 -0
  43. package/dist/lib/links/record-links-drawer.component.d.ts.map +1 -0
  44. package/dist/lib/links/record-links-drawer.component.js +61 -0
  45. package/dist/lib/links/record-links-drawer.component.js.map +1 -0
  46. package/dist/lib/links/record-links.component.d.ts +249 -0
  47. package/dist/lib/links/record-links.component.d.ts.map +1 -0
  48. package/dist/lib/links/record-links.component.js +1523 -0
  49. package/dist/lib/links/record-links.component.js.map +1 -0
  50. package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -1
  51. package/dist/lib/panel-slot/form-field-panel-slot.component.js +3 -1
  52. package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -1
  53. package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
  54. package/dist/lib/panel-slot/form-panel-slot.component.js +6 -0
  55. package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
  56. package/dist/lib/preview-popover/record-preview-popover.component.d.ts +187 -0
  57. package/dist/lib/preview-popover/record-preview-popover.component.d.ts.map +1 -0
  58. package/dist/lib/preview-popover/record-preview-popover.component.js +1060 -0
  59. package/dist/lib/preview-popover/record-preview-popover.component.js.map +1 -0
  60. package/dist/lib/preview-popover/record-preview-popover.service.d.ts +105 -0
  61. package/dist/lib/preview-popover/record-preview-popover.service.d.ts.map +1 -0
  62. package/dist/lib/preview-popover/record-preview-popover.service.js +278 -0
  63. package/dist/lib/preview-popover/record-preview-popover.service.js.map +1 -0
  64. package/dist/lib/resolver/form-resolver.service.d.ts +44 -1
  65. package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
  66. package/dist/lib/resolver/form-resolver.service.js +51 -3
  67. package/dist/lib/resolver/form-resolver.service.js.map +1 -1
  68. package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts +21 -0
  69. package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts.map +1 -0
  70. package/dist/lib/toolbar/actions/record-links-toolbar-action.js +90 -0
  71. package/dist/lib/toolbar/actions/record-links-toolbar-action.js.map +1 -0
  72. package/dist/lib/toolbar/base-form-toolbar-action.d.ts +189 -0
  73. package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -0
  74. package/dist/lib/toolbar/base-form-toolbar-action.js +274 -0
  75. package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -0
  76. package/dist/lib/toolbar/form-toolbar.component.d.ts +21 -1
  77. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  78. package/dist/lib/toolbar/form-toolbar.component.js +295 -195
  79. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  80. package/dist/lib/types/form-toolbar-item.d.ts +1 -1
  81. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  82. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  83. package/dist/lib/types/toolbar-config.d.ts +4 -0
  84. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  85. package/dist/lib/types/toolbar-config.js +6 -0
  86. package/dist/lib/types/toolbar-config.js.map +1 -1
  87. package/dist/module.d.ts +19 -14
  88. package/dist/module.d.ts.map +1 -1
  89. package/dist/module.js +39 -6
  90. package/dist/module.js.map +1 -1
  91. package/dist/public-api.d.ts +9 -0
  92. package/dist/public-api.d.ts.map +1 -1
  93. package/dist/public-api.js +9 -0
  94. package/dist/public-api.js.map +1 -1
  95. package/package.json +20 -20
@@ -1,19 +1,18 @@
1
1
  import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject, ElementRef, Renderer2, HostBinding } from '@angular/core';
2
2
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
3
- import { EntityFieldTSType, CompositeKey, KeyValuePair, RunView, LogError, CoerceImageSrc, IsInlineImageDataUri, CoerceRawImageBase64ToDataUri, MaxStoredImageChars, MaxInlineImageBytes, FormatByteSize, ParseCssHexColor, PrettyPrintJson, IsDateOnlySQLType, FormatDateOnly } from '@memberjunction/core';
3
+ import { EntityFieldTSType, CompositeKey, RunView, LogError, CoerceImageSrc, IsInlineImageDataUri, CoerceRawImageBase64ToDataUri, MaxStoredImageChars, MaxInlineImageBytes, FormatByteSize, ParseCssHexColor, PrettyPrintJson, IsDateOnlySQLType, FormatDateOnly } from '@memberjunction/core';
4
4
  import { BaseEngineRegistry } from '@memberjunction/core';
5
5
  import { ValidationErrorInfo, HighlightSearchMatches, detectRichTextFormat, UUIDsEqual } from '@memberjunction/global';
6
6
  import { FORM_SECTION_FIELD_HOST, SectionRelevantFormContextChanged } from '../section-indicators/form-section-field-host';
7
7
  import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
8
+ import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
9
+ import { MjRecordPreviewPopoverService } from '../preview-popover/record-preview-popover.service';
10
+ import { ApplyQuickEditToHostRecord, ResolveRecordLinkTarget } from '../links/record-link-utils';
8
11
  import { FormatFKCell, FilterCachedFKRows, QuoteSqlIdList } from './fk-search-utils';
9
12
  import { LinkedFieldOptionsStore } from './linked-field-options';
10
13
  import { ResolveFKLookupStrategy, } from './fk-lookup-strategy';
11
14
  import { CombineFilters, DefaultFKLookupStrategy } from './default-fk-lookup-strategy';
12
15
  import * as i0 from "@angular/core";
13
- import * as i1 from "@angular/common";
14
- import * as i2 from "@memberjunction/ng-markdown";
15
- import * as i3 from "@memberjunction/ng-code-editor";
16
- import * as i4 from "@memberjunction/ng-shared-generic";
17
16
  const _c0 = a0 => ({ $implicit: a0 });
18
17
  const _c1 = () => [];
19
18
  const _forTrack0 = ($index, $item) => $item.FieldName;
@@ -21,46 +20,132 @@ const _forTrack1 = ($index, $item) => $item.Key;
21
20
  const _forTrack2 = ($index, $item) => $item.PrimaryKeyValue;
22
21
  const _forTrack3 = ($index, $item) => $item.Text;
23
22
  const _forTrack4 = ($index, $item) => $item.Message;
23
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
24
+ i0.ɵɵelementStart(0, "span", 14);
25
+ i0.ɵɵelement(1, "i", 15);
26
+ i0.ɵɵtext(2, " Changed ");
27
+ i0.ɵɵelementEnd();
28
+ } }
24
29
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
25
- i0.ɵɵelement(0, "label", 5);
30
+ i0.ɵɵelementStart(0, "div", 6);
31
+ i0.ɵɵelement(1, "label", 13);
32
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Conditional_2_Template, 3, 0, "span", 14);
33
+ i0.ɵɵelementEnd();
26
34
  } if (rf & 2) {
27
35
  const ctx_r0 = i0.ɵɵnextContext(3);
36
+ i0.ɵɵadvance();
28
37
  i0.ɵɵproperty("innerHTML", ctx_r0.HighlightedDisplayName, i0.ɵɵsanitizeHtml);
38
+ i0.ɵɵadvance();
39
+ i0.ɵɵconditional(ctx_r0.HasTimeTravelDiff ? 2 : -1);
29
40
  } }
30
- function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
41
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
42
+ i0.ɵɵelement(0, "i");
43
+ } if (rf & 2) {
44
+ const ctx_r0 = i0.ɵɵnextContext(6);
45
+ i0.ɵɵclassMap(ctx_r0.EffectiveRelatedEntityIcon + " mj-forms-poly-entity-icon");
46
+ } }
47
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
31
48
  const _r2 = i0.ɵɵgetCurrentView();
32
- i0.ɵɵelementStart(0, "a", 12);
33
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnRecordLinkClick($event)); });
49
+ i0.ɵɵelementStart(0, "a", 19);
50
+ i0.ɵɵlistener("Navigate", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template_a_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.Navigate.emit($event)); })("RecordUpdated", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template_a_RecordUpdated_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnLinkedRecordQuickEdited($event)); });
51
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Conditional_1_Template, 1, 2, "i", 20);
52
+ i0.ɵɵelementStart(2, "span");
53
+ i0.ɵɵtext(3);
54
+ i0.ɵɵelementEnd();
55
+ i0.ɵɵelement(4, "i", 21);
56
+ i0.ɵɵelementEnd();
57
+ } if (rf & 2) {
58
+ const ctx_r0 = i0.ɵɵnextContext(5);
59
+ i0.ɵɵproperty("mjRecordLink", ctx_r0.Record)("FieldName", ctx_r0.FieldName)("DisplayName", ctx_r0.FKDisplayName || ctx_r0.FormatValue())("RecordLinksEnabled", ctx_r0.RecordLinksEnabled)("Provider", ctx_r0.ProviderToUse);
60
+ i0.ɵɵattribute("aria-label", "Open " + (ctx_r0.EffectiveRelatedEntityName || "related") + " record: " + (ctx_r0.FKDisplayName || ctx_r0.FormatValue()));
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵconditional(ctx_r0.EffectiveRelatedEntityIcon ? 1 : -1);
63
+ i0.ɵɵadvance(2);
64
+ i0.ɵɵtextInterpolate(ctx_r0.FKDisplayName || ctx_r0.FormatValue());
65
+ } }
66
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
67
+ i0.ɵɵelementStart(0, "span");
34
68
  i0.ɵɵtext(1);
35
69
  i0.ɵɵelementEnd();
70
+ } if (rf & 2) {
71
+ const ctx_r0 = i0.ɵɵnextContext(5);
72
+ i0.ɵɵadvance();
73
+ i0.ɵɵtextInterpolate(ctx_r0.FKDisplayName || ctx_r0.FormatValue());
74
+ } }
75
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
76
+ i0.ɵɵelementStart(0, "span", 24);
77
+ i0.ɵɵtext(1, "Copied ID");
78
+ i0.ɵɵelementEnd();
79
+ } }
80
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
81
+ const _r3 = i0.ɵɵgetCurrentView();
82
+ i0.ɵɵelementStart(0, "button", 22);
83
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnCopyRawID($event)); });
84
+ i0.ɵɵelement(1, "i", 23);
85
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Conditional_2_Template, 2, 0, "span", 24);
86
+ i0.ɵɵelementEnd();
87
+ } if (rf & 2) {
88
+ const ctx_r0 = i0.ɵɵnextContext(5);
89
+ i0.ɵɵclassProp("is-copied", ctx_r0.CopiedRawID);
90
+ i0.ɵɵadvance();
91
+ i0.ɵɵclassMap(ctx_r0.CopiedRawID ? "fa-solid fa-check" : "fa-regular fa-copy");
92
+ i0.ɵɵadvance();
93
+ i0.ɵɵconditional(ctx_r0.CopiedRawID ? 2 : -1);
94
+ } }
95
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
96
+ i0.ɵɵelementStart(0, "span", 16);
97
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template, 5, 8, "a", 17)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_2_Template, 2, 1, "span");
98
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Template, 3, 5, "button", 18);
99
+ i0.ɵɵelementEnd();
36
100
  } if (rf & 2) {
37
101
  const ctx_r0 = i0.ɵɵnextContext(4);
38
102
  i0.ɵɵadvance();
103
+ i0.ɵɵconditional(ctx_r0.RecordLinksEnabled ? 1 : 2);
104
+ i0.ɵɵadvance(2);
105
+ i0.ɵɵconditional(ctx_r0.ShowPolymorphicRawIDBadge ? 3 : -1);
106
+ } }
107
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
108
+ const _r4 = i0.ɵɵgetCurrentView();
109
+ i0.ɵɵelementStart(0, "a", 26);
110
+ i0.ɵɵlistener("Navigate", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_0_Template_a_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.Navigate.emit($event)); })("RecordUpdated", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_0_Template_a_RecordUpdated_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnLinkedRecordQuickEdited($event)); });
111
+ i0.ɵɵtext(1);
112
+ i0.ɵɵelementEnd();
113
+ } if (rf & 2) {
114
+ const ctx_r0 = i0.ɵɵnextContext(5);
115
+ i0.ɵɵproperty("mjRecordLink", ctx_r0.Record)("FieldName", ctx_r0.FieldName)("DisplayName", ctx_r0.FKDisplayName)("RecordLinksEnabled", ctx_r0.RecordLinksEnabled)("Provider", ctx_r0.ProviderToUse);
116
+ i0.ɵɵattribute("aria-label", "Open " + (ctx_r0.EffectiveRelatedEntityName || "related") + " record: " + ctx_r0.FKDisplayName);
117
+ i0.ɵɵadvance();
39
118
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FKDisplayName, " ");
40
119
  } }
41
- function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
120
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
42
121
  i0.ɵɵtext(0);
43
122
  } if (rf & 2) {
44
- const ctx_r0 = i0.ɵɵnextContext(4);
123
+ const ctx_r0 = i0.ɵɵnextContext(5);
45
124
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FKDisplayName, " ");
46
125
  } }
126
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
127
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_0_Template, 2, 7, "a", 25)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_1_Template, 1, 1);
128
+ } if (rf & 2) {
129
+ const ctx_r0 = i0.ɵɵnextContext(4);
130
+ i0.ɵɵconditional(ctx_r0.RecordLinksEnabled ? 0 : 1);
131
+ } }
47
132
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
48
- i0.ɵɵelementStart(0, "span", 7);
49
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Template, 2, 1, "a", 11)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Template, 1, 1);
133
+ i0.ɵɵelementStart(0, "span", 8);
134
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Template, 4, 2, "span", 16)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Template, 2, 1);
50
135
  i0.ɵɵelementEnd();
51
136
  } if (rf & 2) {
52
137
  const ctx_r0 = i0.ɵɵnextContext(3);
53
138
  i0.ɵɵadvance();
54
- i0.ɵɵconditional(ctx_r0.RecordLinksEnabled ? 1 : 2);
139
+ i0.ɵɵconditional(ctx_r0.IsPolymorphicFK ? 1 : 2);
55
140
  } }
56
141
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
57
- i0.ɵɵelement(0, "img", 13);
142
+ i0.ɵɵelement(0, "img", 27);
58
143
  } if (rf & 2) {
59
144
  const ctx_r0 = i0.ɵɵnextContext(4);
60
145
  i0.ɵɵproperty("src", ctx_r0.ImagePreviewSrc, i0.ɵɵsanitizeUrl);
61
146
  } }
62
147
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
63
- i0.ɵɵelementStart(0, "span", 14);
148
+ i0.ɵɵelementStart(0, "span", 28);
64
149
  i0.ɵɵtext(1);
65
150
  i0.ɵɵelementEnd();
66
151
  } if (rf & 2) {
@@ -69,11 +154,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditio
69
154
  i0.ɵɵtextInterpolate1("Inline image (", ctx_r0.ImageValueSizeLabel, ")");
70
155
  } }
71
156
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
72
- const _r3 = i0.ɵɵgetCurrentView();
73
- i0.ɵɵelementStart(0, "a", 16);
74
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnUrlLinkClick($event)); });
157
+ const _r5 = i0.ɵɵgetCurrentView();
158
+ i0.ɵɵelementStart(0, "a", 30);
159
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnUrlLinkClick($event)); });
75
160
  i0.ɵɵtext(1);
76
- i0.ɵɵelement(2, "i", 17);
161
+ i0.ɵɵelement(2, "i", 21);
77
162
  i0.ɵɵelementEnd();
78
163
  } if (rf & 2) {
79
164
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -81,7 +166,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditio
81
166
  i0.ɵɵtextInterpolate1(" ", ctx_r0.ImageUrlDisplay, " ");
82
167
  } }
83
168
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
84
- i0.ɵɵelementStart(0, "span", 7);
169
+ i0.ɵɵelementStart(0, "span", 8);
85
170
  i0.ɵɵtext(1);
86
171
  i0.ɵɵelementEnd();
87
172
  } if (rf & 2) {
@@ -90,9 +175,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditio
90
175
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
91
176
  } }
92
177
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
93
- i0.ɵɵelementStart(0, "div", 8);
94
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_1_Template, 1, 1, "img", 13);
95
- i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_2_Template, 2, 1, "span", 14)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template, 3, 1, "a", 15)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_4_Template, 2, 1, "span", 7);
178
+ i0.ɵɵelementStart(0, "div", 9);
179
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_1_Template, 1, 1, "img", 27);
180
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_2_Template, 2, 1, "span", 28)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template, 3, 1, "a", 29)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_4_Template, 2, 1, "span", 8);
96
181
  i0.ɵɵelementEnd();
97
182
  } if (rf & 2) {
98
183
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -102,9 +187,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template
102
187
  i0.ɵɵconditional(ctx_r0.IsInlineImageValue ? 2 : ctx_r0.ImagePreviewSrc ? 3 : 4);
103
188
  } }
104
189
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
105
- i0.ɵɵelementStart(0, "div", 9);
106
- i0.ɵɵelement(1, "span", 18);
107
- i0.ɵɵelementStart(2, "span", 7);
190
+ i0.ɵɵelementStart(0, "div", 10);
191
+ i0.ɵɵelement(1, "span", 31);
192
+ i0.ɵɵelementStart(2, "span", 8);
108
193
  i0.ɵɵtext(3);
109
194
  i0.ɵɵelementEnd()();
110
195
  } if (rf & 2) {
@@ -115,7 +200,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template
115
200
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
116
201
  } }
117
202
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
118
- i0.ɵɵelementStart(0, "pre", 10);
203
+ i0.ɵɵelementStart(0, "pre", 11);
119
204
  i0.ɵɵtext(1);
120
205
  i0.ɵɵelementEnd();
121
206
  } if (rf & 2) {
@@ -124,11 +209,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template
124
209
  i0.ɵɵtextInterpolate(ctx_r0.JsonDisplayValue);
125
210
  } }
126
211
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template(rf, ctx) { if (rf & 1) {
127
- const _r4 = i0.ɵɵgetCurrentView();
128
- i0.ɵɵelementStart(0, "span", 7)(1, "a", 19);
129
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnEmailLinkClick($event)); });
212
+ const _r6 = i0.ɵɵgetCurrentView();
213
+ i0.ɵɵelementStart(0, "span", 8)(1, "a", 32);
214
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnEmailLinkClick($event)); });
130
215
  i0.ɵɵtext(2);
131
- i0.ɵɵelement(3, "i", 20);
216
+ i0.ɵɵelement(3, "i", 33);
132
217
  i0.ɵɵelementEnd()();
133
218
  } if (rf & 2) {
134
219
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -136,11 +221,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_T
136
221
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
137
222
  } }
138
223
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template(rf, ctx) { if (rf & 1) {
139
- const _r5 = i0.ɵɵgetCurrentView();
140
- i0.ɵɵelementStart(0, "span", 7)(1, "a", 21);
141
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnUrlLinkClick($event)); });
224
+ const _r7 = i0.ɵɵgetCurrentView();
225
+ i0.ɵɵelementStart(0, "span", 8)(1, "a", 34);
226
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnUrlLinkClick($event)); });
142
227
  i0.ɵɵtext(2);
143
- i0.ɵɵelement(3, "i", 17);
228
+ i0.ɵɵelement(3, "i", 21);
144
229
  i0.ɵɵelementEnd()();
145
230
  } if (rf & 2) {
146
231
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -148,14 +233,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_T
148
233
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
149
234
  } }
150
235
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
151
- const _r6 = i0.ɵɵgetCurrentView();
152
- i0.ɵɵelementStart(0, "a", 23);
153
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnRecordLinkClick($event)); });
236
+ const _r8 = i0.ɵɵgetCurrentView();
237
+ i0.ɵɵelementStart(0, "a", 36);
238
+ i0.ɵɵlistener("Navigate", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template_a_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.Navigate.emit($event)); })("RecordUpdated", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template_a_RecordUpdated_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnLinkedRecordQuickEdited($event)); });
154
239
  i0.ɵɵtext(1);
155
- i0.ɵɵelement(2, "i", 17);
240
+ i0.ɵɵelement(2, "i", 21);
156
241
  i0.ɵɵelementEnd();
157
242
  } if (rf & 2) {
158
243
  const ctx_r0 = i0.ɵɵnextContext(5);
244
+ i0.ɵɵproperty("mjRecordLink", ctx_r0.Record)("FieldName", ctx_r0.FieldName)("DisplayName", ctx_r0.FormatValue())("RecordLinksEnabled", ctx_r0.RecordLinksEnabled)("Provider", ctx_r0.ProviderToUse);
159
245
  i0.ɵɵadvance();
160
246
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
161
247
  } }
@@ -166,8 +252,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_C
166
252
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
167
253
  } }
168
254
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Template(rf, ctx) { if (rf & 1) {
169
- i0.ɵɵelementStart(0, "span", 7);
170
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template, 3, 1, "a", 22)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_2_Template, 1, 1);
255
+ i0.ɵɵelementStart(0, "span", 8);
256
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template, 3, 6, "a", 35)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_2_Template, 1, 1);
171
257
  i0.ɵɵelementEnd();
172
258
  } if (rf & 2) {
173
259
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -175,8 +261,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_T
175
261
  i0.ɵɵconditional(ctx_r0.RecordLinksEnabled ? 1 : 2);
176
262
  } }
177
263
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
178
- i0.ɵɵelementStart(0, "span", 7)(1, "div", 28);
179
- i0.ɵɵelement(2, "input", 29);
264
+ i0.ɵɵelementStart(0, "span", 8)(1, "div", 41);
265
+ i0.ɵɵelement(2, "input", 42);
180
266
  i0.ɵɵelementEnd()();
181
267
  } if (rf & 2) {
182
268
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -184,8 +270,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
184
270
  i0.ɵɵproperty("checked", !!ctx_r0.Value);
185
271
  } }
186
272
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
187
- i0.ɵɵelementStart(0, "div", 24);
188
- i0.ɵɵelement(1, "mj-markdown", 30);
273
+ i0.ɵɵelementStart(0, "div", 37);
274
+ i0.ɵɵelement(1, "mj-markdown", 43);
189
275
  i0.ɵɵelementEnd();
190
276
  } if (rf & 2) {
191
277
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -193,15 +279,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
193
279
  i0.ɵɵproperty("data", ctx_r0.FormatValue());
194
280
  } }
195
281
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
196
- i0.ɵɵelement(0, "div", 25);
282
+ i0.ɵɵelement(0, "div", 38);
197
283
  i0.ɵɵpipe(1, "mjSafeRichHtml");
198
284
  } if (rf & 2) {
199
285
  const ctx_r0 = i0.ɵɵnextContext(5);
200
286
  i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, ctx_r0.FormatValue()), i0.ɵɵsanitizeHtml);
201
287
  } }
202
288
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
203
- i0.ɵɵelementStart(0, "div", 26);
204
- i0.ɵɵelement(1, "mj-code-editor", 31);
289
+ i0.ɵɵelementStart(0, "div", 39);
290
+ i0.ɵɵelement(1, "mj-code-editor", 44);
205
291
  i0.ɵɵelementEnd();
206
292
  } if (rf & 2) {
207
293
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -209,7 +295,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
209
295
  i0.ɵɵproperty("value", ctx_r0.FormatValue())("language", ctx_r0.CodeEditorLanguage)("readonly", true);
210
296
  } }
211
297
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
212
- i0.ɵɵelementStart(0, "span", 27);
298
+ i0.ɵɵelementStart(0, "span", 40);
213
299
  i0.ɵɵtext(1);
214
300
  i0.ɵɵelementEnd();
215
301
  } if (rf & 2) {
@@ -218,7 +304,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
218
304
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
219
305
  } }
220
306
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
221
- i0.ɵɵelementStart(0, "span", 7);
307
+ i0.ɵɵelementStart(0, "span", 8);
222
308
  i0.ɵɵtext(1);
223
309
  i0.ɵɵelementEnd();
224
310
  } if (rf & 2) {
@@ -227,50 +313,95 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
227
313
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
228
314
  } }
229
315
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Template(rf, ctx) { if (rf & 1) {
230
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_0_Template, 3, 1, "span", 7)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_1_Template, 2, 1, "div", 24)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_2_Template, 2, 3, "div", 25)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_3_Template, 2, 3, "div", 26)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_4_Template, 2, 1, "span", 27)(5, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_5_Template, 2, 1, "span", 7);
316
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_0_Template, 3, 1, "span", 8)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_1_Template, 2, 1, "div", 37)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_2_Template, 2, 3, "div", 38)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_3_Template, 2, 3, "div", 39)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_4_Template, 2, 1, "span", 40)(5, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_5_Template, 2, 1, "span", 8);
231
317
  } if (rf & 2) {
232
318
  const ctx_r0 = i0.ɵɵnextContext(4);
233
319
  i0.ɵɵconditional(ctx_r0.Type === "checkbox" ? 0 : ctx_r0.RichTextMode === "markdown" ? 1 : ctx_r0.RichTextMode === "html" ? 2 : ctx_r0.RichTextMode === "code" ? 3 : ctx_r0.IsLongText ? 4 : 5);
234
320
  } }
235
321
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Template(rf, ctx) { if (rf & 1) {
236
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template, 4, 1, "span", 7)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template, 4, 1, "span", 7)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Template, 3, 1, "span", 7)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Template, 6, 1);
322
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template, 4, 1, "span", 8)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template, 4, 1, "span", 8)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Template, 3, 1, "span", 8)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Template, 6, 1);
237
323
  } if (rf & 2) {
238
- let tmp_3_0;
324
+ let tmp_4_0;
239
325
  const ctx_r0 = i0.ɵɵnextContext(3);
240
- i0.ɵɵconditional((tmp_3_0 = ctx_r0.LinkType) === "Email" ? 0 : tmp_3_0 === "URL" ? 1 : tmp_3_0 === "Record" ? 2 : 3);
326
+ i0.ɵɵconditional((tmp_4_0 = ctx_r0.LinkType) === "Email" ? 0 : tmp_4_0 === "URL" ? 1 : tmp_4_0 === "Record" ? 2 : 3);
327
+ } }
328
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
329
+ const _r9 = i0.ɵɵgetCurrentView();
330
+ i0.ɵɵelementStart(0, "div", 12)(1, "span", 45);
331
+ i0.ɵɵelement(2, "i", 46);
332
+ i0.ɵɵelementStart(3, "span");
333
+ i0.ɵɵtext(4, "Current live: ");
334
+ i0.ɵɵelementStart(5, "strong");
335
+ i0.ɵɵtext(6);
336
+ i0.ɵɵelementEnd()()();
337
+ i0.ɵɵelementStart(7, "button", 47);
338
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_8_Template_button_click_7_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnRestoreSingleFieldFromPreview($event)); });
339
+ i0.ɵɵelement(8, "i", 48);
340
+ i0.ɵɵelementStart(9, "span");
341
+ i0.ɵɵtext(10, "Restore this field");
342
+ i0.ɵɵelementEnd()()();
343
+ } if (rf & 2) {
344
+ const ctx_r0 = i0.ɵɵnextContext(3);
345
+ i0.ɵɵadvance();
346
+ i0.ɵɵproperty("title", "Current live value: " + ctx_r0.FormattedCurrentLiveValue);
347
+ i0.ɵɵadvance(5);
348
+ i0.ɵɵtextInterpolate(ctx_r0.FormattedCurrentLiveValue);
241
349
  } }
242
350
  function MjFormFieldComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
243
- i0.ɵɵelementStart(0, "div", 4);
244
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Template, 1, 1, "label", 5);
245
- i0.ɵɵelementStart(2, "div", 6);
246
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Template, 3, 1, "span", 7)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template, 5, 2, "div", 8)(5, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template, 4, 3, "div", 9)(6, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template, 2, 1, "pre", 10)(7, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Template, 4, 1);
351
+ i0.ɵɵelementStart(0, "div", 5);
352
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Template, 3, 2, "div", 6);
353
+ i0.ɵɵelementStart(2, "div", 7);
354
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Template, 3, 1, "span", 8)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template, 5, 2, "div", 9)(5, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template, 4, 3, "div", 10)(6, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template, 2, 1, "pre", 11)(7, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Template, 4, 1);
355
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_8_Template, 11, 2, "div", 12);
247
356
  i0.ɵɵelementEnd()();
248
357
  } if (rf & 2) {
249
358
  const ctx_r0 = i0.ɵɵnextContext(2);
250
- i0.ɵɵclassProp("mj-forms-field--no-label", !ctx_r0.ShowLabel)("mj-forms-field--readonly", ctx_r0.EditMode && ctx_r0.IsFieldReadOnly)("mj-forms-field--dirty", ctx_r0.IsDirty);
359
+ i0.ɵɵclassProp("mj-forms-field--no-label", !ctx_r0.ShowLabel)("mj-forms-field--readonly", ctx_r0.EditMode && ctx_r0.IsFieldReadOnly)("mj-forms-field--dirty", ctx_r0.IsDirty)("mj-forms-field--time-travel", ctx_r0.ActiveVersionPreview !== null)("mj-forms-field--time-travel-diff", ctx_r0.HasTimeTravelDiff);
251
360
  i0.ɵɵadvance();
252
361
  i0.ɵɵconditional(ctx_r0.ShowLabel ? 1 : -1);
253
362
  i0.ɵɵadvance(2);
254
363
  i0.ɵɵconditional(ctx_r0.IsFKWithNameField ? 3 : ctx_r0.ExtendedDisplay === "image" ? 4 : ctx_r0.ExtendedDisplay === "color" ? 5 : ctx_r0.ExtendedDisplay === "json" ? 6 : 7);
364
+ i0.ɵɵadvance(5);
365
+ i0.ɵɵconditional(ctx_r0.HasTimeTravelDiff ? 8 : -1);
366
+ } }
367
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
368
+ i0.ɵɵelementContainer(0);
255
369
  } }
256
370
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
257
- i0.ɵɵelement(0, "label", 5);
371
+ i0.ɵɵelementStart(0, "div", 6);
372
+ i0.ɵɵelement(1, "label", 13);
373
+ i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_ng_container_2_Template, 1, 0, "ng-container", 58);
374
+ i0.ɵɵelementEnd();
258
375
  } if (rf & 2) {
259
376
  const ctx_r0 = i0.ɵɵnextContext(3);
377
+ const fieldEditIndicatorsTpl_r10 = i0.ɵɵreference(2);
378
+ i0.ɵɵadvance();
260
379
  i0.ɵɵproperty("innerHTML", ctx_r0.HighlightedDisplayName, i0.ɵɵsanitizeHtml);
380
+ i0.ɵɵadvance();
381
+ i0.ɵɵproperty("ngTemplateOutlet", fieldEditIndicatorsTpl_r10);
261
382
  } }
262
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
263
- i0.ɵɵelement(0, "i", 41);
383
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
384
+ i0.ɵɵelementContainer(0);
264
385
  } }
265
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
266
- const _r8 = i0.ɵɵgetCurrentView();
267
- i0.ɵɵelementStart(0, "button", 48);
268
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_3_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeToggle($event)); });
269
- i0.ɵɵelement(1, "i", 49);
270
- i0.ɵɵelementStart(2, "span", 50);
386
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
387
+ i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_ng_container_0_Template, 1, 0, "ng-container", 58);
388
+ } if (rf & 2) {
389
+ i0.ɵɵnextContext(3);
390
+ const fieldEditIndicatorsTpl_r10 = i0.ɵɵreference(2);
391
+ i0.ɵɵproperty("ngTemplateOutlet", fieldEditIndicatorsTpl_r10);
392
+ } }
393
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
394
+ i0.ɵɵelement(0, "i", 60);
395
+ } }
396
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
397
+ const _r12 = i0.ɵɵgetCurrentView();
398
+ i0.ɵɵelementStart(0, "button", 67);
399
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_3_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeToggle($event)); });
400
+ i0.ɵɵelement(1, "i", 68);
401
+ i0.ɵɵelementStart(2, "span", 69);
271
402
  i0.ɵɵtext(3);
272
403
  i0.ɵɵelementEnd();
273
- i0.ɵɵelement(4, "i", 51);
404
+ i0.ɵɵelement(4, "i", 70);
274
405
  i0.ɵɵelementEnd();
275
406
  } if (rf & 2) {
276
407
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -281,10 +412,10 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
281
412
  i0.ɵɵadvance();
282
413
  i0.ɵɵclassProp("fa-chevron-up", ctx_r0.FKShowScopeMenu)("fa-chevron-down", !ctx_r0.FKShowScopeMenu);
283
414
  } }
284
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
285
- const _r9 = i0.ɵɵgetCurrentView();
286
- i0.ɵɵelementStart(0, "button", 52);
287
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeChange($event)); });
415
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
416
+ const _r13 = i0.ɵɵgetCurrentView();
417
+ i0.ɵɵelementStart(0, "button", 71);
418
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeChange($event)); });
288
419
  i0.ɵɵtext(1);
289
420
  i0.ɵɵelementEnd();
290
421
  } if (rf & 2) {
@@ -293,67 +424,67 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
293
424
  i0.ɵɵadvance();
294
425
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FKScope === "primary" ? ctx_r0.FKScopeLabels.all : ctx_r0.FKScopeLabels.primary, " ");
295
426
  } }
296
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
297
- const _r10 = i0.ɵɵgetCurrentView();
298
- i0.ɵɵelementStart(0, "button", 53);
299
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
300
- i0.ɵɵelement(1, "i", 54);
427
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_5_Template(rf, ctx) { if (rf & 1) {
428
+ const _r14 = i0.ɵɵgetCurrentView();
429
+ i0.ɵɵelementStart(0, "button", 72);
430
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_5_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
431
+ i0.ɵɵelement(1, "i", 73);
301
432
  i0.ɵɵelementEnd();
302
433
  } }
303
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Template(rf, ctx) { if (rf & 1) {
304
- i0.ɵɵelement(0, "i", 46);
434
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
435
+ i0.ɵɵelement(0, "i", 65);
305
436
  } }
306
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
437
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
307
438
  i0.ɵɵelementContainer(0);
308
439
  } }
309
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
310
- i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 64);
440
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
441
+ i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 83);
311
442
  } if (rf & 2) {
312
- const f_r11 = i0.ɵɵnextContext().$implicit;
443
+ const f_r15 = i0.ɵɵnextContext().$implicit;
313
444
  i0.ɵɵnextContext(2);
314
- const scopeRow_r12 = i0.ɵɵreference(3);
315
- i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r12)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r11));
445
+ const scopeRow_r16 = i0.ɵɵreference(3);
446
+ i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r15));
316
447
  } }
317
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
318
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_Template, 1, 4, "ng-container");
448
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
449
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Conditional_0_Template, 1, 4, "ng-container");
319
450
  } if (rf & 2) {
320
- const f_r11 = ctx.$implicit;
321
- i0.ɵɵconditional(f_r11.Group === "shown" ? 0 : -1);
451
+ const f_r15 = ctx.$implicit;
452
+ i0.ɵɵconditional(f_r15.Group === "shown" ? 0 : -1);
322
453
  } }
323
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
454
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
324
455
  i0.ɵɵelementContainer(0);
325
456
  } }
326
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
327
- i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 64);
457
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
458
+ i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 83);
328
459
  } if (rf & 2) {
329
- const f_r13 = i0.ɵɵnextContext().$implicit;
460
+ const f_r17 = i0.ɵɵnextContext().$implicit;
330
461
  i0.ɵɵnextContext(3);
331
- const scopeRow_r12 = i0.ɵɵreference(3);
332
- i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r12)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r13));
462
+ const scopeRow_r16 = i0.ɵɵreference(3);
463
+ i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r17));
333
464
  } }
334
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
335
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_Template, 1, 4, "ng-container");
465
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
466
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_Template, 1, 4, "ng-container");
336
467
  } if (rf & 2) {
337
- const f_r13 = ctx.$implicit;
338
- i0.ɵɵconditional(f_r13.Group === "other" ? 0 : -1);
468
+ const f_r17 = ctx.$implicit;
469
+ i0.ɵɵconditional(f_r17.Group === "other" ? 0 : -1);
339
470
  } }
340
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
341
- i0.ɵɵelement(0, "div", 65);
342
- i0.ɵɵelementStart(1, "div", 63);
471
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
472
+ i0.ɵɵelement(0, "div", 84);
473
+ i0.ɵɵelementStart(1, "div", 82);
343
474
  i0.ɵɵtext(2, "Other fields");
344
475
  i0.ɵɵelementEnd();
345
- i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Template, 1, 1, null, null, _forTrack0);
476
+ i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Template, 1, 1, null, null, _forTrack0);
346
477
  } if (rf & 2) {
347
478
  const ctx_r0 = i0.ɵɵnextContext(6);
348
479
  i0.ɵɵadvance(3);
349
480
  i0.ɵɵrepeater(ctx_r0.FKSearchableFields);
350
481
  } }
351
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
352
- i0.ɵɵelementStart(0, "div", 62)(1, "div", 63);
482
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
483
+ i0.ɵɵelementStart(0, "div", 81)(1, "div", 82);
353
484
  i0.ɵɵtext(2, "Columns shown");
354
485
  i0.ɵɵelementEnd();
355
- i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Template, 1, 1, null, null, _forTrack0);
356
- i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_Template, 5, 0);
486
+ i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Template, 1, 1, null, null, _forTrack0);
487
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_Template, 5, 0);
357
488
  i0.ɵɵelementEnd();
358
489
  } if (rf & 2) {
359
490
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -363,72 +494,72 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
363
494
  i0.ɵɵadvance(2);
364
495
  i0.ɵɵconditional(ctx_r0.FKHasOtherSearchableFields ? 5 : -1);
365
496
  } }
366
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
367
- const _r16 = i0.ɵɵgetCurrentView();
368
- i0.ɵɵelementStart(0, "button", 71);
369
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r16); const f_r15 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r15.FieldName, -1)); });
370
- i0.ɵɵelement(1, "i", 72);
497
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
498
+ const _r20 = i0.ɵɵgetCurrentView();
499
+ i0.ɵɵelementStart(0, "button", 90);
500
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_2_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r20); const f_r19 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r19.FieldName, -1)); });
501
+ i0.ɵɵelement(1, "i", 91);
371
502
  i0.ɵɵelementEnd();
372
- i0.ɵɵelementStart(2, "button", 73);
373
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template_button_mousedown_2_listener($event) { i0.ɵɵrestoreView(_r16); const f_r15 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r15.FieldName, 1)); });
374
- i0.ɵɵelement(3, "i", 74);
503
+ i0.ɵɵelementStart(2, "button", 92);
504
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_2_Template_button_mousedown_2_listener($event) { i0.ɵɵrestoreView(_r20); const f_r19 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r19.FieldName, 1)); });
505
+ i0.ɵɵelement(3, "i", 93);
375
506
  i0.ɵɵelementEnd();
376
507
  } if (rf & 2) {
377
- const f_r15 = i0.ɵɵnextContext().$implicit;
508
+ const f_r19 = i0.ɵɵnextContext().$implicit;
378
509
  const ctx_r0 = i0.ɵɵnextContext(5);
379
- i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnUp(f_r15.FieldName));
510
+ i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnUp(f_r19.FieldName));
380
511
  i0.ɵɵadvance(2);
381
- i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnDown(f_r15.FieldName));
512
+ i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnDown(f_r19.FieldName));
382
513
  } }
383
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
384
- const _r17 = i0.ɵɵgetCurrentView();
385
- i0.ɵɵelementStart(0, "button", 75);
386
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_7_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r17); const f_r15 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKColumnToggle($event, f_r15)); });
387
- i0.ɵɵelement(1, "i", 76);
514
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
515
+ const _r21 = i0.ɵɵgetCurrentView();
516
+ i0.ɵɵelementStart(0, "button", 94);
517
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_7_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r21); const f_r19 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKColumnToggle($event, f_r19)); });
518
+ i0.ɵɵelement(1, "i", 95);
388
519
  i0.ɵɵelementEnd();
389
520
  } if (rf & 2) {
390
- const f_r15 = i0.ɵɵnextContext().$implicit;
521
+ const f_r19 = i0.ɵɵnextContext().$implicit;
391
522
  const ctx_r0 = i0.ɵɵnextContext(5);
392
- i0.ɵɵclassProp("mj-fk-col-toggle--on", ctx_r0.IsFKColumnVisible(f_r15));
393
- i0.ɵɵproperty("title", ctx_r0.IsFKColumnVisible(f_r15) ? "Hide this column" : "Show as a column");
523
+ i0.ɵɵclassProp("mj-fk-col-toggle--on", ctx_r0.IsFKColumnVisible(f_r19));
524
+ i0.ɵɵproperty("title", ctx_r0.IsFKColumnVisible(f_r19) ? "Hide this column" : "Show as a column");
394
525
  i0.ɵɵadvance();
395
- i0.ɵɵclassProp("fa-eye", ctx_r0.IsFKColumnVisible(f_r15))("fa-eye-slash", !ctx_r0.IsFKColumnVisible(f_r15));
526
+ i0.ɵɵclassProp("fa-eye", ctx_r0.IsFKColumnVisible(f_r19))("fa-eye-slash", !ctx_r0.IsFKColumnVisible(f_r19));
396
527
  } }
397
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Template(rf, ctx) { if (rf & 1) {
398
- const _r14 = i0.ɵɵgetCurrentView();
399
- i0.ɵɵelementStart(0, "div", 66);
400
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Template_div_mousedown_0_listener($event) { const f_r15 = i0.ɵɵrestoreView(_r14).$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKScopeSelect($event, f_r15)); });
401
- i0.ɵɵelementStart(1, "span", 67);
402
- i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template, 4, 2);
528
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Template(rf, ctx) { if (rf & 1) {
529
+ const _r18 = i0.ɵɵgetCurrentView();
530
+ i0.ɵɵelementStart(0, "div", 85);
531
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Template_div_mousedown_0_listener($event) { const f_r19 = i0.ɵɵrestoreView(_r18).$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKScopeSelect($event, f_r19)); });
532
+ i0.ɵɵelementStart(1, "span", 86);
533
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_2_Template, 4, 2);
403
534
  i0.ɵɵelementEnd();
404
535
  i0.ɵɵelement(3, "i");
405
- i0.ɵɵelementStart(4, "span", 68);
536
+ i0.ɵɵelementStart(4, "span", 87);
406
537
  i0.ɵɵtext(5);
407
538
  i0.ɵɵelementEnd();
408
- i0.ɵɵelementStart(6, "span", 69);
409
- i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_7_Template, 2, 7, "button", 70);
539
+ i0.ɵɵelementStart(6, "span", 88);
540
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_7_Template, 2, 7, "button", 89);
410
541
  i0.ɵɵelementEnd()();
411
542
  } if (rf & 2) {
412
- const f_r15 = ctx.$implicit;
543
+ const f_r19 = ctx.$implicit;
413
544
  const ctx_r0 = i0.ɵɵnextContext(5);
414
- i0.ɵɵclassProp("mj-fk-scope-mi--on", ctx_r0.IsFKScopeActive(f_r15));
545
+ i0.ɵɵclassProp("mj-fk-scope-mi--on", ctx_r0.IsFKScopeActive(f_r19));
415
546
  i0.ɵɵadvance(2);
416
- i0.ɵɵconditional(f_r15.Group === "shown" ? 2 : -1);
547
+ i0.ɵɵconditional(f_r19.Group === "shown" ? 2 : -1);
417
548
  i0.ɵɵadvance();
418
- i0.ɵɵclassMap(f_r15.Icon + " mj-fk-scope-mi-icon");
549
+ i0.ɵɵclassMap(f_r19.Icon + " mj-fk-scope-mi-icon");
419
550
  i0.ɵɵadvance(2);
420
- i0.ɵɵtextInterpolate(f_r15.Label);
551
+ i0.ɵɵtextInterpolate(f_r19.Label);
421
552
  i0.ɵɵadvance(2);
422
- i0.ɵɵconditional(ctx_r0.CanToggleFKColumn(f_r15) ? 7 : -1);
553
+ i0.ɵɵconditional(ctx_r0.CanToggleFKColumn(f_r19) ? 7 : -1);
423
554
  } }
424
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
425
- i0.ɵɵelement(0, "i", 84);
555
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
556
+ i0.ɵɵelement(0, "i", 103);
426
557
  } if (rf & 2) {
427
558
  const ctx_r0 = i0.ɵɵnextContext(6);
428
559
  i0.ɵɵclassMap(ctx_r0.FKSelectedSuggestion.Icon);
429
560
  } }
430
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_8_Template(rf, ctx) { if (rf & 1) {
431
- i0.ɵɵelementStart(0, "span", 82);
561
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Conditional_8_Template(rf, ctx) { if (rf & 1) {
562
+ i0.ɵɵelementStart(0, "span", 101);
432
563
  i0.ɵɵtext(1);
433
564
  i0.ɵɵelementEnd();
434
565
  } if (rf & 2) {
@@ -436,21 +567,21 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
436
567
  i0.ɵɵadvance();
437
568
  i0.ɵɵtextInterpolate(ctx_r0.FKSelectedSuggestion.ExtraColumns[0].Value);
438
569
  } }
439
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
440
- const _r18 = i0.ɵɵgetCurrentView();
441
- i0.ɵɵelementStart(0, "div", 57)(1, "div", 77);
442
- i0.ɵɵelement(2, "i", 78);
570
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
571
+ const _r22 = i0.ɵɵgetCurrentView();
572
+ i0.ɵɵelementStart(0, "div", 76)(1, "div", 96);
573
+ i0.ɵɵelement(2, "i", 97);
443
574
  i0.ɵɵelementStart(3, "span");
444
575
  i0.ɵɵtext(4, "Currently selected");
445
576
  i0.ɵɵelementEnd()();
446
- i0.ɵɵelementStart(5, "div", 79);
447
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template_div_mousedown_5_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(ctx_r0.FKSelectedSuggestion, $event)); });
448
- i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_6_Template, 1, 2, "i", 80);
449
- i0.ɵɵelement(7, "span", 81);
450
- i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_8_Template, 2, 1, "span", 82);
451
- i0.ɵɵelementStart(9, "button", 83);
452
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template_button_mousedown_9_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
453
- i0.ɵɵelement(10, "i", 54);
577
+ i0.ɵɵelementStart(5, "div", 98);
578
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template_div_mousedown_5_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(ctx_r0.FKSelectedSuggestion, $event)); });
579
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Conditional_6_Template, 1, 2, "i", 99);
580
+ i0.ɵɵelement(7, "span", 100);
581
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Conditional_8_Template, 2, 1, "span", 101);
582
+ i0.ɵɵelementStart(9, "button", 102);
583
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template_button_mousedown_9_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
584
+ i0.ɵɵelement(10, "i", 73);
454
585
  i0.ɵɵelementEnd()()();
455
586
  } if (rf & 2) {
456
587
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -461,174 +592,174 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
461
592
  i0.ɵɵadvance();
462
593
  i0.ɵɵconditional(ctx_r0.FKSelectedSuggestion.ExtraColumns.length && ctx_r0.FKSelectedSuggestion.ExtraColumns[0].Value ? 8 : -1);
463
594
  } }
464
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_5_Template(rf, ctx) { if (rf & 1) {
465
- i0.ɵɵelementStart(0, "div", 58);
466
- i0.ɵɵelement(1, "i", 85);
595
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_5_Template(rf, ctx) { if (rf & 1) {
596
+ i0.ɵɵelementStart(0, "div", 77);
597
+ i0.ɵɵelement(1, "i", 104);
467
598
  i0.ɵɵelementStart(2, "span");
468
599
  i0.ɵɵtext(3, "Searching\u2026");
469
600
  i0.ɵɵelementEnd()();
470
601
  } }
471
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_6_Template(rf, ctx) { if (rf & 1) {
472
- i0.ɵɵelementStart(0, "div", 59);
473
- i0.ɵɵelement(1, "i", 86);
602
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_6_Template(rf, ctx) { if (rf & 1) {
603
+ i0.ɵɵelementStart(0, "div", 78);
604
+ i0.ɵɵelement(1, "i", 105);
474
605
  i0.ɵɵelementStart(2, "span");
475
606
  i0.ɵɵtext(3, "No matches");
476
607
  i0.ɵɵelementEnd()();
477
608
  } }
478
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
479
- i0.ɵɵelement(0, "div", 89);
609
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
610
+ i0.ɵɵelement(0, "div", 108);
480
611
  } }
481
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template(rf, ctx) { if (rf & 1) {
482
- const _r19 = i0.ɵɵgetCurrentView();
483
- i0.ɵɵelementStart(0, "div", 91);
484
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template_div_mousedown_0_listener($event) { const col_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKHeaderSort($event, col_r20)); });
485
- i0.ɵɵelementStart(1, "span", 92);
612
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_5_Template(rf, ctx) { if (rf & 1) {
613
+ const _r23 = i0.ɵɵgetCurrentView();
614
+ i0.ɵɵelementStart(0, "div", 110);
615
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_5_Template_div_mousedown_0_listener($event) { const col_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKHeaderSort($event, col_r24)); });
616
+ i0.ɵɵelementStart(1, "span", 111);
486
617
  i0.ɵɵtext(2);
487
618
  i0.ɵɵelementEnd();
488
619
  i0.ɵɵelement(3, "i");
489
- i0.ɵɵelementStart(4, "span", 93);
490
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template_span_mousedown_4_listener($event) { const col_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKColResizeStart($event, col_r20)); });
620
+ i0.ɵɵelementStart(4, "span", 112);
621
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_5_Template_span_mousedown_4_listener($event) { const col_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKColResizeStart($event, col_r24)); });
491
622
  i0.ɵɵelementEnd()();
492
623
  } if (rf & 2) {
493
- const col_r20 = ctx.$implicit;
494
- const ɵ$index_252_r21 = ctx.$index;
624
+ const col_r24 = ctx.$implicit;
625
+ const ɵ$index_319_r25 = ctx.$index;
495
626
  const ctx_r0 = i0.ɵɵnextContext(6);
496
- i0.ɵɵproperty("title", "Click to sort by " + ctx_r0.FKColumnHeaders[ɵ$index_252_r21]);
627
+ i0.ɵɵproperty("title", "Click to sort by " + ctx_r0.FKColumnHeaders[ɵ$index_319_r25]);
497
628
  i0.ɵɵadvance(2);
498
- i0.ɵɵtextInterpolate(ctx_r0.FKColumnHeaders[ɵ$index_252_r21]);
629
+ i0.ɵɵtextInterpolate(ctx_r0.FKColumnHeaders[ɵ$index_319_r25]);
499
630
  i0.ɵɵadvance();
500
- i0.ɵɵclassMap(ctx_r0.FKSortIcon(col_r20));
631
+ i0.ɵɵclassMap(ctx_r0.FKSortIcon(col_r24));
501
632
  } }
502
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
503
- i0.ɵɵelementStart(0, "div", 96);
504
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Conditional_0_Template_div_mousedown_0_listener($event) { return $event.preventDefault(); });
633
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
634
+ i0.ɵɵelementStart(0, "div", 115);
635
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_Conditional_0_Template_div_mousedown_0_listener($event) { return $event.preventDefault(); });
505
636
  i0.ɵɵtext(1);
506
637
  i0.ɵɵelementEnd();
507
638
  } if (rf & 2) {
508
- const group_r22 = i0.ɵɵnextContext().$implicit;
639
+ const group_r26 = i0.ɵɵnextContext().$implicit;
509
640
  i0.ɵɵadvance();
510
- i0.ɵɵtextInterpolate(group_r22.Label);
641
+ i0.ɵɵtextInterpolate(group_r26.Label);
511
642
  } }
512
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
643
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
513
644
  i0.ɵɵelement(0, "i");
514
645
  } if (rf & 2) {
515
- const suggestion_r24 = i0.ɵɵnextContext(2).$implicit;
516
- i0.ɵɵclassMap(suggestion_r24.Icon);
646
+ const suggestion_r28 = i0.ɵɵnextContext(2).$implicit;
647
+ i0.ɵɵclassMap(suggestion_r28.Icon);
517
648
  } }
518
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
519
- i0.ɵɵelementStart(0, "div", 98);
520
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Conditional_1_Template, 1, 2, "i", 99);
649
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
650
+ i0.ɵɵelementStart(0, "div", 117);
651
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Conditional_1_Template, 1, 2, "i", 20);
521
652
  i0.ɵɵelementEnd();
522
653
  } if (rf & 2) {
523
- const suggestion_r24 = i0.ɵɵnextContext().$implicit;
654
+ const suggestion_r28 = i0.ɵɵnextContext().$implicit;
524
655
  i0.ɵɵadvance();
525
- i0.ɵɵconditional(suggestion_r24.Icon ? 1 : -1);
656
+ i0.ɵɵconditional(suggestion_r28.Icon ? 1 : -1);
526
657
  } }
527
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
528
- i0.ɵɵelement(0, "i", 103);
658
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
659
+ i0.ɵɵelement(0, "i", 121);
529
660
  } }
530
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_For_5_Template(rf, ctx) { if (rf & 1) {
531
- i0.ɵɵelementStart(0, "span", 108);
661
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_For_5_Template(rf, ctx) { if (rf & 1) {
662
+ i0.ɵɵelementStart(0, "span", 126);
532
663
  i0.ɵɵtext(1);
533
664
  i0.ɵɵelementEnd();
534
665
  } if (rf & 2) {
535
- const chip_r25 = ctx.$implicit;
536
- i0.ɵɵclassProp("mj-fk-chip--info", chip_r25.Tone === "info")("mj-fk-chip--warn", chip_r25.Tone === "warn");
666
+ const chip_r29 = ctx.$implicit;
667
+ i0.ɵɵclassProp("mj-fk-chip--info", chip_r29.Tone === "info")("mj-fk-chip--warn", chip_r29.Tone === "warn");
537
668
  i0.ɵɵadvance();
538
- i0.ɵɵtextInterpolate(chip_r25.Text);
669
+ i0.ɵɵtextInterpolate(chip_r29.Text);
539
670
  } }
540
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
541
- i0.ɵɵelementStart(0, "span", 107);
671
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
672
+ i0.ɵɵelementStart(0, "span", 125);
542
673
  i0.ɵɵtext(1);
543
674
  i0.ɵɵelementEnd();
544
675
  } if (rf & 2) {
545
- const suggestion_r24 = i0.ɵɵnextContext(3).$implicit;
676
+ const suggestion_r28 = i0.ɵɵnextContext(3).$implicit;
546
677
  i0.ɵɵadvance();
547
- i0.ɵɵtextInterpolate(suggestion_r24.Secondary);
678
+ i0.ɵɵtextInterpolate(suggestion_r28.Secondary);
548
679
  } }
549
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
550
- i0.ɵɵelementStart(0, "div", 102);
551
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_1_Template, 1, 0, "i", 103);
552
- i0.ɵɵelementStart(2, "span", 104);
553
- i0.ɵɵelement(3, "span", 105);
554
- i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_For_5_Template, 2, 5, "span", 106, _forTrack3);
680
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
681
+ i0.ɵɵelementStart(0, "div", 120);
682
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_1_Template, 1, 0, "i", 121);
683
+ i0.ɵɵelementStart(2, "span", 122);
684
+ i0.ɵɵelement(3, "span", 123);
685
+ i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_For_5_Template, 2, 5, "span", 124, _forTrack3);
555
686
  i0.ɵɵelementEnd();
556
- i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_6_Template, 2, 1, "span", 107);
687
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_6_Template, 2, 1, "span", 125);
557
688
  i0.ɵɵelementEnd();
558
689
  } if (rf & 2) {
559
- const ctx_r25 = i0.ɵɵnextContext();
560
- const col_r27 = ctx_r25.$implicit;
561
- const ɵ$index_276_r28 = ctx_r25.$index;
562
- const ɵ$count_276_r29 = ctx_r25.$count;
563
- const suggestion_r24 = i0.ɵɵnextContext().$implicit;
690
+ const ctx_r29 = i0.ɵɵnextContext();
691
+ const col_r31 = ctx_r29.$implicit;
692
+ const ɵ$index_343_r32 = ctx_r29.$index;
693
+ const ɵ$count_343_r33 = ctx_r29.$count;
694
+ const suggestion_r28 = i0.ɵɵnextContext().$implicit;
564
695
  const ctx_r0 = i0.ɵɵnextContext(7);
565
- i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r27, ɵ$index_276_r28 === ɵ$count_276_r29 - 1));
696
+ i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r31, ɵ$index_343_r32 === ɵ$count_343_r33 - 1));
566
697
  i0.ɵɵadvance();
567
- i0.ɵɵconditional(ctx_r0.IsFKRowSelected(suggestion_r24) ? 1 : -1);
698
+ i0.ɵɵconditional(ctx_r0.IsFKRowSelected(suggestion_r28) ? 1 : -1);
568
699
  i0.ɵɵadvance(2);
569
- i0.ɵɵproperty("innerHTML", suggestion_r24.HighlightedName, i0.ɵɵsanitizeHtml);
700
+ i0.ɵɵproperty("innerHTML", suggestion_r28.HighlightedName, i0.ɵɵsanitizeHtml);
570
701
  i0.ɵɵadvance();
571
- i0.ɵɵrepeater(suggestion_r24.Chips ?? i0.ɵɵpureFunction0(5, _c1));
702
+ i0.ɵɵrepeater(suggestion_r28.Chips ?? i0.ɵɵpureFunction0(5, _c1));
572
703
  i0.ɵɵadvance(2);
573
- i0.ɵɵconditional(suggestion_r24.Secondary ? 6 : -1);
704
+ i0.ɵɵconditional(suggestion_r28.Secondary ? 6 : -1);
574
705
  } }
575
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
576
- i0.ɵɵelementStart(0, "div", 109);
577
- i0.ɵɵelement(1, "span", 105);
706
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
707
+ i0.ɵɵelementStart(0, "div", 127);
708
+ i0.ɵɵelement(1, "span", 123);
578
709
  i0.ɵɵelementEnd();
579
710
  } if (rf & 2) {
580
- let tmp_39_0;
581
711
  let tmp_40_0;
582
- const ctx_r25 = i0.ɵɵnextContext();
583
- const col_r27 = ctx_r25.$implicit;
584
- const ɵ$index_276_r28 = ctx_r25.$index;
585
- const ɵ$count_276_r29 = ctx_r25.$count;
586
- const suggestion_r24 = i0.ɵɵnextContext().$implicit;
712
+ let tmp_41_0;
713
+ const ctx_r29 = i0.ɵɵnextContext();
714
+ const col_r31 = ctx_r29.$implicit;
715
+ const ɵ$index_343_r32 = ctx_r29.$index;
716
+ const ɵ$count_343_r33 = ctx_r29.$count;
717
+ const suggestion_r28 = i0.ɵɵnextContext().$implicit;
587
718
  const ctx_r0 = i0.ɵɵnextContext(7);
588
- i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r27, ɵ$index_276_r28 === ɵ$count_276_r29 - 1));
589
- i0.ɵɵproperty("title", ((tmp_39_0 = ctx_r0.FKCellFor(suggestion_r24, col_r27)) == null ? null : tmp_39_0.Value) || "");
719
+ i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r31, ɵ$index_343_r32 === ɵ$count_343_r33 - 1));
720
+ i0.ɵɵproperty("title", ((tmp_40_0 = ctx_r0.FKCellFor(suggestion_r28, col_r31)) == null ? null : tmp_40_0.Value) || "");
590
721
  i0.ɵɵadvance();
591
- i0.ɵɵproperty("innerHTML", ((tmp_40_0 = ctx_r0.FKCellFor(suggestion_r24, col_r27)) == null ? null : tmp_40_0.HighlightedValue) || "", i0.ɵɵsanitizeHtml);
722
+ i0.ɵɵproperty("innerHTML", ((tmp_41_0 = ctx_r0.FKCellFor(suggestion_r28, col_r31)) == null ? null : tmp_41_0.HighlightedValue) || "", i0.ɵɵsanitizeHtml);
592
723
  } }
593
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Template(rf, ctx) { if (rf & 1) {
594
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Template, 7, 6, "div", 100)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_1_Template, 2, 4, "div", 101);
724
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Template(rf, ctx) { if (rf & 1) {
725
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Template, 7, 6, "div", 118)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_1_Template, 2, 4, "div", 119);
595
726
  } if (rf & 2) {
596
- const col_r27 = ctx.$implicit;
727
+ const col_r31 = ctx.$implicit;
597
728
  const ctx_r0 = i0.ɵɵnextContext(8);
598
- i0.ɵɵconditional(col_r27 === ctx_r0.FKNameField ? 0 : 1);
729
+ i0.ɵɵconditional(col_r31 === ctx_r0.FKNameField ? 0 : 1);
599
730
  } }
600
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template(rf, ctx) { if (rf & 1) {
601
- const _r23 = i0.ɵɵgetCurrentView();
602
- i0.ɵɵelementStart(0, "div", 97);
603
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template_div_mousedown_0_listener($event) { const suggestion_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(suggestion_r24, $event)); })("mouseenter", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template_div_mouseenter_0_listener() { const suggestion_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.FKActiveIndex = ctx_r0.FKIndexOf(suggestion_r24)); });
604
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Template, 2, 1, "div", 98);
605
- i0.ɵɵrepeaterCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
731
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Template(rf, ctx) { if (rf & 1) {
732
+ const _r27 = i0.ɵɵgetCurrentView();
733
+ i0.ɵɵelementStart(0, "div", 116);
734
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Template_div_mousedown_0_listener($event) { const suggestion_r28 = i0.ɵɵrestoreView(_r27).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(suggestion_r28, $event)); })("mouseenter", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Template_div_mouseenter_0_listener() { const suggestion_r28 = i0.ɵɵrestoreView(_r27).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.FKActiveIndex = ctx_r0.FKIndexOf(suggestion_r28)); });
735
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Template, 2, 1, "div", 117);
736
+ i0.ɵɵrepeaterCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_For_3_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
606
737
  i0.ɵɵelementEnd();
607
738
  } if (rf & 2) {
608
- const suggestion_r24 = ctx.$implicit;
739
+ const suggestion_r28 = ctx.$implicit;
609
740
  const ctx_r0 = i0.ɵɵnextContext(7);
610
- i0.ɵɵclassProp("mj-fk-grid-row--active", ctx_r0.FKIndexOf(suggestion_r24) === ctx_r0.FKActiveIndex)("mj-fk-grid-row--selected", ctx_r0.IsFKRowSelected(suggestion_r24));
741
+ i0.ɵɵclassProp("mj-fk-grid-row--active", ctx_r0.FKIndexOf(suggestion_r28) === ctx_r0.FKActiveIndex)("mj-fk-grid-row--selected", ctx_r0.IsFKRowSelected(suggestion_r28));
611
742
  i0.ɵɵadvance();
612
743
  i0.ɵɵconditional(ctx_r0.FKHasIconColumn ? 1 : -1);
613
744
  i0.ɵɵadvance();
614
745
  i0.ɵɵrepeater(ctx_r0.FKColumnFields);
615
746
  } }
616
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Template(rf, ctx) { if (rf & 1) {
617
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Conditional_0_Template, 2, 1, "div", 94);
618
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template, 4, 5, "div", 95, _forTrack2);
747
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_Template(rf, ctx) { if (rf & 1) {
748
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_Conditional_0_Template, 2, 1, "div", 113);
749
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_For_2_Template, 4, 5, "div", 114, _forTrack2);
619
750
  } if (rf & 2) {
620
- const group_r22 = ctx.$implicit;
751
+ const group_r26 = ctx.$implicit;
621
752
  const ctx_r0 = i0.ɵɵnextContext(6);
622
- i0.ɵɵconditional(group_r22.Label && ctx_r0.FKSuggestionsInGroup(group_r22.Key).length > 0 ? 0 : -1);
753
+ i0.ɵɵconditional(group_r26.Label && ctx_r0.FKSuggestionsInGroup(group_r26.Key).length > 0 ? 0 : -1);
623
754
  i0.ɵɵadvance();
624
- i0.ɵɵrepeater(ctx_r0.FKSuggestionsInGroup(group_r22.Key));
755
+ i0.ɵɵrepeater(ctx_r0.FKSuggestionsInGroup(group_r26.Key));
625
756
  } }
626
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Template(rf, ctx) { if (rf & 1) {
627
- i0.ɵɵelementStart(0, "div", 60)(1, "div", 87)(2, "div", 88);
628
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Conditional_3_Template, 1, 0, "div", 89);
629
- i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template, 5, 4, "div", 90, i0.ɵɵrepeaterTrackByIdentity);
757
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_Template(rf, ctx) { if (rf & 1) {
758
+ i0.ɵɵelementStart(0, "div", 79)(1, "div", 106)(2, "div", 107);
759
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_Conditional_3_Template, 1, 0, "div", 108);
760
+ i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_5_Template, 5, 4, "div", 109, i0.ɵɵrepeaterTrackByIdentity);
630
761
  i0.ɵɵelementEnd();
631
- i0.ɵɵrepeaterCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Template, 3, 1, null, null, _forTrack1);
762
+ i0.ɵɵrepeaterCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_Template, 3, 1, null, null, _forTrack1);
632
763
  i0.ɵɵelementEnd()();
633
764
  } if (rf & 2) {
634
765
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -641,12 +772,12 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
641
772
  i0.ɵɵadvance(2);
642
773
  i0.ɵɵrepeater(ctx_r0.FKGroups);
643
774
  } }
644
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_8_Template(rf, ctx) { if (rf & 1) {
645
- const _r30 = i0.ɵɵgetCurrentView();
646
- i0.ɵɵelementStart(0, "button", 110);
647
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_8_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKCreateNew($event)); });
648
- i0.ɵɵelement(1, "i", 111);
649
- i0.ɵɵelementStart(2, "span", 112);
775
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Template(rf, ctx) { if (rf & 1) {
776
+ const _r34 = i0.ɵɵgetCurrentView();
777
+ i0.ɵɵelementStart(0, "button", 128);
778
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKCreateNew($event)); });
779
+ i0.ɵɵelement(1, "i", 129);
780
+ i0.ɵɵelementStart(2, "span", 130);
650
781
  i0.ɵɵtext(3);
651
782
  i0.ɵɵelementEnd()();
652
783
  } if (rf & 2) {
@@ -655,15 +786,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
655
786
  i0.ɵɵadvance(3);
656
787
  i0.ɵɵtextInterpolate(ctx_r0.FKCreateLabel);
657
788
  } }
658
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Template(rf, ctx) { if (rf & 1) {
659
- i0.ɵɵelementStart(0, "div", 55);
660
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Template, 6, 3, "div", 56);
661
- i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Template, 8, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
662
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template, 11, 3, "div", 57);
663
- i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_5_Template, 4, 0, "div", 58);
664
- i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_6_Template, 4, 0, "div", 59);
665
- i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Template, 8, 3, "div", 60);
666
- i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_8_Template, 4, 2, "button", 61);
789
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Template(rf, ctx) { if (rf & 1) {
790
+ i0.ɵɵelementStart(0, "div", 74);
791
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Template, 6, 3, "div", 75);
792
+ i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Template, 8, 7, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
793
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template, 11, 3, "div", 76);
794
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_5_Template, 4, 0, "div", 77);
795
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_6_Template, 4, 0, "div", 78);
796
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_Template, 8, 3, "div", 79);
797
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Template, 4, 2, "button", 80);
667
798
  i0.ɵɵelementEnd();
668
799
  } if (rf & 2) {
669
800
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -682,17 +813,17 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
682
813
  i0.ɵɵadvance();
683
814
  i0.ɵɵconditional(ctx_r0.CanCreateFK ? 8 : -1);
684
815
  } }
685
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
686
- const _r7 = i0.ɵɵgetCurrentView();
687
- i0.ɵɵelementStart(0, "div", 40);
688
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_1_Template, 1, 0, "i", 41);
689
- i0.ɵɵelementStart(2, "input", 42);
690
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_focus_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_blur_2_listener() { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKBlur()); })("keydown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKKeydown($event)); });
816
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
817
+ const _r11 = i0.ɵɵgetCurrentView();
818
+ i0.ɵɵelementStart(0, "div", 59);
819
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template, 1, 0, "i", 60);
820
+ i0.ɵɵelementStart(2, "input", 61);
821
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_focus_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_blur_2_listener() { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKBlur()); })("keydown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKKeydown($event)); });
691
822
  i0.ɵɵelementEnd();
692
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_3_Template, 5, 8, "button", 43);
693
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template, 2, 2, "button", 44);
694
- i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template, 2, 0, "button", 45)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Template, 1, 0, "i", 46);
695
- i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Template, 9, 11, "div", 47);
823
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_3_Template, 5, 8, "button", 62);
824
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template, 2, 2, "button", 63);
825
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_5_Template, 2, 0, "button", 64)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_6_Template, 1, 0, "i", 65);
826
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Template, 9, 11, "div", 66);
696
827
  i0.ɵɵelementEnd();
697
828
  } if (rf & 2) {
698
829
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -711,18 +842,18 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template
711
842
  i0.ɵɵadvance(2);
712
843
  i0.ɵɵconditional(ctx_r0.ShowFKDropdown ? 7 : -1);
713
844
  } }
714
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
715
- i0.ɵɵelement(0, "img", 13);
845
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
846
+ i0.ɵɵelement(0, "img", 27);
716
847
  } if (rf & 2) {
717
848
  const ctx_r0 = i0.ɵɵnextContext(4);
718
849
  i0.ɵɵproperty("src", ctx_r0.ImagePreviewSrc, i0.ɵɵsanitizeUrl);
719
850
  } }
720
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
721
- i0.ɵɵelementStart(0, "div", 113);
722
- i0.ɵɵelement(1, "i", 121);
851
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_2_Template(rf, ctx) { if (rf & 1) {
852
+ i0.ɵɵelementStart(0, "div", 131);
853
+ i0.ɵɵelement(1, "i", 139);
723
854
  i0.ɵɵelementEnd();
724
855
  } }
725
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
856
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
726
857
  i0.ɵɵelementStart(0, "span");
727
858
  i0.ɵɵtext(1);
728
859
  i0.ɵɵelementEnd();
@@ -731,34 +862,34 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
731
862
  i0.ɵɵadvance();
732
863
  i0.ɵɵtextInterpolate1("Inline image (", ctx_r0.ImageValueSizeLabel, ")");
733
864
  } }
734
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template(rf, ctx) { if (rf & 1) {
735
- const _r33 = i0.ɵɵgetCurrentView();
736
- i0.ɵɵelementStart(0, "button", 122);
737
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnImageClear()); });
865
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_13_Template(rf, ctx) { if (rf & 1) {
866
+ const _r37 = i0.ɵɵgetCurrentView();
867
+ i0.ɵɵelementStart(0, "button", 140);
868
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnImageClear()); });
738
869
  i0.ɵɵtext(1, "Clear");
739
870
  i0.ɵɵelementEnd();
740
871
  } }
741
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
742
- const _r31 = i0.ɵɵgetCurrentView();
743
- i0.ɵɵelementStart(0, "div", 34);
744
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template, 1, 1, "img", 13)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_2_Template, 2, 0, "div", 113);
745
- i0.ɵɵelementStart(3, "div", 14);
746
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template, 2, 1, "span");
747
- i0.ɵɵelementStart(5, "span", 114);
872
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
873
+ const _r35 = i0.ɵɵgetCurrentView();
874
+ i0.ɵɵelementStart(0, "div", 51);
875
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_1_Template, 1, 1, "img", 27)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_2_Template, 2, 0, "div", 131);
876
+ i0.ɵɵelementStart(3, "div", 28);
877
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_4_Template, 2, 1, "span");
878
+ i0.ɵɵelementStart(5, "span", 132);
748
879
  i0.ɵɵtext(6);
749
880
  i0.ɵɵelementEnd()();
750
- i0.ɵɵelementStart(7, "div", 115)(8, "input", 116, 1);
751
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_change_8_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageFileSelected($event)); });
881
+ i0.ɵɵelementStart(7, "div", 133)(8, "input", 134, 2);
882
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_change_8_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageFileSelected($event)); });
752
883
  i0.ɵɵelementEnd();
753
- i0.ɵɵelementStart(10, "button", 117);
754
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r31); const imageFileInput_r32 = i0.ɵɵreference(9); return i0.ɵɵresetView(imageFileInput_r32.click()); });
755
- i0.ɵɵelement(11, "i", 118);
884
+ i0.ɵɵelementStart(10, "button", 135);
885
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r35); const imageFileInput_r36 = i0.ɵɵreference(9); return i0.ɵɵresetView(imageFileInput_r36.click()); });
886
+ i0.ɵɵelement(11, "i", 136);
756
887
  i0.ɵɵtext(12);
757
888
  i0.ɵɵelementEnd();
758
- i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template, 2, 0, "button", 119);
889
+ i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_13_Template, 2, 0, "button", 137);
759
890
  i0.ɵɵelementEnd();
760
- i0.ɵɵelementStart(14, "input", 120);
761
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_input_14_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageUrlInput($event)); });
891
+ i0.ɵɵelementStart(14, "input", 138);
892
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_14_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageUrlInput($event)); });
762
893
  i0.ɵɵelementEnd()();
763
894
  } if (rf & 2) {
764
895
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -775,13 +906,13 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template
775
906
  i0.ɵɵadvance();
776
907
  i0.ɵɵproperty("value", ctx_r0.ImageUrlInputValue);
777
908
  } }
778
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
779
- const _r34 = i0.ɵɵgetCurrentView();
780
- i0.ɵɵelementStart(0, "div", 35)(1, "input", 123);
781
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnColorPickerInput($event)); });
909
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
910
+ const _r38 = i0.ɵɵgetCurrentView();
911
+ i0.ɵɵelementStart(0, "div", 52)(1, "input", 141);
912
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnColorPickerInput($event)); });
782
913
  i0.ɵɵelementEnd();
783
- i0.ɵɵelementStart(2, "input", 124);
784
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
914
+ i0.ɵɵelementStart(2, "input", 142);
915
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
785
916
  i0.ɵɵelementEnd()();
786
917
  } if (rf & 2) {
787
918
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -791,86 +922,86 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template
791
922
  i0.ɵɵadvance();
792
923
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
793
924
  } }
794
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
795
- const _r35 = i0.ɵɵgetCurrentView();
796
- i0.ɵɵelementStart(0, "textarea", 125);
797
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_textarea_blur_0_listener() { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnJsonBlur()); });
925
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
926
+ const _r39 = i0.ɵɵgetCurrentView();
927
+ i0.ɵɵelementStart(0, "textarea", 143);
928
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template_textarea_blur_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnJsonBlur()); });
798
929
  i0.ɵɵelementEnd();
799
930
  } if (rf & 2) {
800
931
  const ctx_r0 = i0.ɵɵnextContext(3);
801
932
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
802
933
  } }
803
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
804
- const _r36 = i0.ɵɵgetCurrentView();
805
- i0.ɵɵelementStart(0, "mj-code-editor", 126);
806
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template_mj_code_editor_change_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnCodeEditorChange($event)); });
934
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
935
+ const _r40 = i0.ɵɵgetCurrentView();
936
+ i0.ɵɵelementStart(0, "mj-code-editor", 144);
937
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template_mj_code_editor_change_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnCodeEditorChange($event)); });
807
938
  i0.ɵɵelementEnd();
808
939
  } if (rf & 2) {
809
940
  const ctx_r0 = i0.ɵɵnextContext(3);
810
941
  i0.ɵɵproperty("value", ctx_r0.FormatValue())("language", ctx_r0.CodeEditorLanguage);
811
942
  } }
812
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template(rf, ctx) { if (rf & 1) {
813
- const _r37 = i0.ɵɵgetCurrentView();
814
- i0.ɵɵelementStart(0, "input", 131);
815
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
943
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_0_Template(rf, ctx) { if (rf & 1) {
944
+ const _r41 = i0.ɵɵgetCurrentView();
945
+ i0.ɵɵelementStart(0, "input", 149);
946
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_0_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
816
947
  i0.ɵɵelementEnd();
817
948
  } if (rf & 2) {
818
949
  const ctx_r0 = i0.ɵɵnextContext(4);
819
950
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
820
951
  } }
821
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template(rf, ctx) { if (rf & 1) {
822
- const _r38 = i0.ɵɵgetCurrentView();
823
- i0.ɵɵelementStart(0, "textarea", 132);
824
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
952
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_1_Template(rf, ctx) { if (rf & 1) {
953
+ const _r42 = i0.ɵɵgetCurrentView();
954
+ i0.ɵɵelementStart(0, "textarea", 150);
955
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_1_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r42); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
825
956
  i0.ɵɵelementEnd();
826
957
  } if (rf & 2) {
827
958
  const ctx_r0 = i0.ɵɵnextContext(4);
828
959
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
829
960
  } }
830
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template(rf, ctx) { if (rf & 1) {
831
- const _r39 = i0.ɵɵgetCurrentView();
832
- i0.ɵɵelementStart(0, "input", 133);
833
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnNumberChange($event)); });
961
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_2_Template(rf, ctx) { if (rf & 1) {
962
+ const _r43 = i0.ɵɵgetCurrentView();
963
+ i0.ɵɵelementStart(0, "input", 151);
964
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnNumberChange($event)); });
834
965
  i0.ɵɵelementEnd();
835
966
  } if (rf & 2) {
836
967
  const ctx_r0 = i0.ɵɵnextContext(4);
837
968
  i0.ɵɵproperty("value", ctx_r0.Value);
838
969
  } }
839
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template(rf, ctx) { if (rf & 1) {
840
- const _r40 = i0.ɵɵgetCurrentView();
841
- i0.ɵɵelementStart(0, "input", 134);
842
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnDateChange($event)); });
970
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_3_Template(rf, ctx) { if (rf & 1) {
971
+ const _r44 = i0.ɵɵgetCurrentView();
972
+ i0.ɵɵelementStart(0, "input", 152);
973
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnDateChange($event)); });
843
974
  i0.ɵɵelementEnd();
844
975
  } if (rf & 2) {
845
976
  const ctx_r0 = i0.ɵɵnextContext(4);
846
977
  i0.ɵɵproperty("value", ctx_r0.DateInputValue);
847
978
  } }
848
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template(rf, ctx) { if (rf & 1) {
849
- const _r41 = i0.ɵɵgetCurrentView();
850
- i0.ɵɵelementStart(0, "div", 28)(1, "input", 135);
851
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnCheckboxChange($event)); });
979
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_4_Template(rf, ctx) { if (rf & 1) {
980
+ const _r45 = i0.ɵɵgetCurrentView();
981
+ i0.ɵɵelementStart(0, "div", 41)(1, "input", 153);
982
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_4_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnCheckboxChange($event)); });
852
983
  i0.ɵɵelementEnd()();
853
984
  } if (rf & 2) {
854
985
  const ctx_r0 = i0.ɵɵnextContext(4);
855
986
  i0.ɵɵadvance();
856
987
  i0.ɵɵproperty("checked", !!ctx_r0.Value);
857
988
  } }
858
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
859
- const _r43 = i0.ɵɵgetCurrentView();
860
- i0.ɵɵelementStart(0, "div", 142);
861
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template_div_mousedown_0_listener($event) { const option_r44 = i0.ɵɵrestoreView(_r43).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnSelectOptionClick(option_r44, $event)); });
989
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
990
+ const _r47 = i0.ɵɵgetCurrentView();
991
+ i0.ɵɵelementStart(0, "div", 160);
992
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_For_2_Template_div_mousedown_0_listener($event) { const option_r48 = i0.ɵɵrestoreView(_r47).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnSelectOptionClick(option_r48, $event)); });
862
993
  i0.ɵɵtext(1);
863
994
  i0.ɵɵelementEnd();
864
995
  } if (rf & 2) {
865
- const option_r44 = ctx.$implicit;
996
+ const option_r48 = ctx.$implicit;
866
997
  const ctx_r0 = i0.ɵɵnextContext(6);
867
- i0.ɵɵclassProp("mj-fk-option--selected", ctx_r0.FormatValue() === option_r44);
998
+ i0.ɵɵclassProp("mj-fk-option--selected", ctx_r0.FormatValue() === option_r48);
868
999
  i0.ɵɵadvance();
869
- i0.ɵɵtextInterpolate1(" ", option_r44, " ");
1000
+ i0.ɵɵtextInterpolate1(" ", option_r48, " ");
870
1001
  } }
871
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
872
- i0.ɵɵelementStart(0, "div", 140);
873
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template, 2, 3, "div", 141, i0.ɵɵrepeaterTrackByIdentity);
1002
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1003
+ i0.ɵɵelementStart(0, "div", 158);
1004
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_For_2_Template, 2, 3, "div", 159, i0.ɵɵrepeaterTrackByIdentity);
874
1005
  i0.ɵɵelementEnd();
875
1006
  } if (rf & 2) {
876
1007
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -879,16 +1010,16 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_C
879
1010
  i0.ɵɵadvance();
880
1011
  i0.ɵɵrepeater(ctx_r0.PossibleValues);
881
1012
  } }
882
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template(rf, ctx) { if (rf & 1) {
883
- const _r42 = i0.ɵɵgetCurrentView();
884
- i0.ɵɵelementStart(0, "div", 136);
885
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r42); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerClick($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template_div_blur_0_listener() { i0.ɵɵrestoreView(_r42); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerBlur()); });
886
- i0.ɵɵelementStart(1, "span", 137);
1013
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Template(rf, ctx) { if (rf & 1) {
1014
+ const _r46 = i0.ɵɵgetCurrentView();
1015
+ i0.ɵɵelementStart(0, "div", 154);
1016
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerClick($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Template_div_blur_0_listener() { i0.ɵɵrestoreView(_r46); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerBlur()); });
1017
+ i0.ɵɵelementStart(1, "span", 155);
887
1018
  i0.ɵɵtext(2);
888
1019
  i0.ɵɵelementEnd();
889
- i0.ɵɵelement(3, "i", 138);
1020
+ i0.ɵɵelement(3, "i", 156);
890
1021
  i0.ɵɵelementEnd();
891
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_Template, 3, 3, "div", 139);
1022
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_Template, 3, 3, "div", 157);
892
1023
  } if (rf & 2) {
893
1024
  const ctx_r0 = i0.ɵɵnextContext(4);
894
1025
  i0.ɵɵadvance();
@@ -900,20 +1031,20 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_T
900
1031
  i0.ɵɵadvance();
901
1032
  i0.ɵɵconditional(ctx_r0.ShowSelectDropdown && ctx_r0.PossibleValues.length > 0 ? 4 : -1);
902
1033
  } }
903
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
904
- const _r46 = i0.ɵɵgetCurrentView();
905
- i0.ɵɵelementStart(0, "div", 142);
906
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template_div_mousedown_0_listener($event) { const option_r47 = i0.ɵɵrestoreView(_r46).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnValueListSelect(option_r47, $event)); });
1034
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
1035
+ const _r50 = i0.ɵɵgetCurrentView();
1036
+ i0.ɵɵelementStart(0, "div", 160);
1037
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_For_2_Template_div_mousedown_0_listener($event) { const option_r51 = i0.ɵɵrestoreView(_r50).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnValueListSelect(option_r51, $event)); });
907
1038
  i0.ɵɵtext(1);
908
1039
  i0.ɵɵelementEnd();
909
1040
  } if (rf & 2) {
910
- const option_r47 = ctx.$implicit;
1041
+ const option_r51 = ctx.$implicit;
911
1042
  i0.ɵɵadvance();
912
- i0.ɵɵtextInterpolate1(" ", option_r47, " ");
1043
+ i0.ɵɵtextInterpolate1(" ", option_r51, " ");
913
1044
  } }
914
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
915
- i0.ɵɵelementStart(0, "div", 140);
916
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template, 2, 1, "div", 144, i0.ɵɵrepeaterTrackByIdentity);
1045
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1046
+ i0.ɵɵelementStart(0, "div", 158);
1047
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_For_2_Template, 2, 1, "div", 162, i0.ɵɵrepeaterTrackByIdentity);
917
1048
  i0.ɵɵelementEnd();
918
1049
  } if (rf & 2) {
919
1050
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -922,13 +1053,13 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_C
922
1053
  i0.ɵɵadvance();
923
1054
  i0.ɵɵrepeater(ctx_r0.FilteredPossibleValues);
924
1055
  } }
925
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template(rf, ctx) { if (rf & 1) {
926
- const _r45 = i0.ɵɵgetCurrentView();
927
- i0.ɵɵelementStart(0, "div", 40)(1, "input", 143);
928
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_blur_1_listener() { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListBlur()); });
1056
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Template(rf, ctx) { if (rf & 1) {
1057
+ const _r49 = i0.ɵɵgetCurrentView();
1058
+ i0.ɵɵelementStart(0, "div", 59)(1, "input", 161);
1059
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r49); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r49); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Template_input_blur_1_listener() { i0.ɵɵrestoreView(_r49); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListBlur()); });
929
1060
  i0.ɵɵelementEnd();
930
- i0.ɵɵelement(2, "i", 46);
931
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_Template, 3, 3, "div", 139);
1061
+ i0.ɵɵelement(2, "i", 65);
1062
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_Template, 3, 3, "div", 157);
932
1063
  i0.ɵɵelementEnd();
933
1064
  } if (rf & 2) {
934
1065
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -937,102 +1068,206 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_T
937
1068
  i0.ɵɵadvance(2);
938
1069
  i0.ɵɵconditional(ctx_r0.ShowValueListDropdown && ctx_r0.FilteredPossibleValues.length > 0 ? 3 : -1);
939
1070
  } }
940
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template(rf, ctx) { if (rf & 1) {
941
- const _r48 = i0.ɵɵgetCurrentView();
942
- i0.ɵɵelementStart(0, "input", 145);
943
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r48); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
1071
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_7_Template(rf, ctx) { if (rf & 1) {
1072
+ const _r52 = i0.ɵɵgetCurrentView();
1073
+ i0.ɵɵelementStart(0, "input", 163);
1074
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_7_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r52); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
944
1075
  i0.ɵɵelementEnd();
945
1076
  } if (rf & 2) {
946
1077
  const ctx_r0 = i0.ɵɵnextContext(4);
947
1078
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
948
1079
  } }
949
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
950
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template, 1, 1, "input", 127)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template, 1, 1, "textarea", 128)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template, 1, 1, "input", 129)(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template, 1, 1, "input", 130)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template, 2, 1, "div", 28)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template, 5, 6)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template, 4, 2, "div", 40)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template, 1, 1, "input", 127);
1080
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
1081
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_0_Template, 1, 1, "input", 145)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_1_Template, 1, 1, "textarea", 146)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_2_Template, 1, 1, "input", 147)(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_3_Template, 1, 1, "input", 148)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_4_Template, 2, 1, "div", 41)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Template, 5, 6)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Template, 4, 2, "div", 59)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_7_Template, 1, 1, "input", 145);
951
1082
  } if (rf & 2) {
952
- let tmp_3_0;
1083
+ let tmp_4_0;
953
1084
  const ctx_r0 = i0.ɵɵnextContext(3);
954
- i0.ɵɵconditional((tmp_3_0 = ctx_r0.Type) === "textbox" ? 0 : tmp_3_0 === "textarea" ? 1 : tmp_3_0 === "number" ? 2 : tmp_3_0 === "datepicker" ? 3 : tmp_3_0 === "checkbox" ? 4 : tmp_3_0 === "select" ? 5 : tmp_3_0 === "autocomplete" ? 6 : 7);
1085
+ i0.ɵɵconditional((tmp_4_0 = ctx_r0.Type) === "textbox" ? 0 : tmp_4_0 === "textarea" ? 1 : tmp_4_0 === "number" ? 2 : tmp_4_0 === "datepicker" ? 3 : tmp_4_0 === "checkbox" ? 4 : tmp_4_0 === "select" ? 5 : tmp_4_0 === "autocomplete" ? 6 : 7);
955
1086
  } }
956
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_For_2_Template(rf, ctx) { if (rf & 1) {
957
- i0.ɵɵelementStart(0, "div", 146);
958
- i0.ɵɵelement(1, "i", 147);
1087
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
1088
+ i0.ɵɵelementStart(0, "div", 164);
1089
+ i0.ɵɵelement(1, "i", 165);
959
1090
  i0.ɵɵelementStart(2, "span");
960
1091
  i0.ɵɵtext(3);
961
1092
  i0.ɵɵelementEnd()();
962
1093
  } if (rf & 2) {
963
- const error_r49 = ctx.$implicit;
1094
+ const error_r53 = ctx.$implicit;
964
1095
  i0.ɵɵadvance(3);
965
- i0.ɵɵtextInterpolate(error_r49.Message);
1096
+ i0.ɵɵtextInterpolate(error_r53.Message);
966
1097
  } }
967
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
968
- i0.ɵɵelementStart(0, "div", 38);
969
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_For_2_Template, 4, 1, "div", 146, _forTrack4);
1098
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
1099
+ i0.ɵɵelementStart(0, "div", 55);
1100
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template, 4, 1, "div", 164, _forTrack4);
970
1101
  i0.ɵɵelementEnd();
971
1102
  } if (rf & 2) {
972
1103
  const ctx_r0 = i0.ɵɵnextContext(3);
973
1104
  i0.ɵɵadvance();
974
1105
  i0.ɵɵrepeater(ctx_r0.DisplayErrors);
975
1106
  } }
976
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
977
- i0.ɵɵelementStart(0, "div", 146);
978
- i0.ɵɵelement(1, "i", 148);
1107
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1) {
1108
+ i0.ɵɵelementStart(0, "div", 164);
1109
+ i0.ɵɵelement(1, "i", 166);
979
1110
  i0.ɵɵelementStart(2, "span");
980
1111
  i0.ɵɵtext(3);
981
1112
  i0.ɵɵelementEnd()();
982
1113
  } if (rf & 2) {
983
- const warning_r50 = ctx.$implicit;
1114
+ const warning_r54 = ctx.$implicit;
984
1115
  i0.ɵɵadvance(3);
985
- i0.ɵɵtextInterpolate(warning_r50.Message);
1116
+ i0.ɵɵtextInterpolate(warning_r54.Message);
986
1117
  } }
987
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
988
- i0.ɵɵelementStart(0, "div", 39);
989
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template, 4, 1, "div", 146, _forTrack4);
1118
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
1119
+ i0.ɵɵelementStart(0, "div", 56);
1120
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_For_2_Template, 4, 1, "div", 164, _forTrack4);
990
1121
  i0.ɵɵelementEnd();
991
1122
  } if (rf & 2) {
992
1123
  const ctx_r0 = i0.ɵɵnextContext(3);
993
1124
  i0.ɵɵadvance();
994
1125
  i0.ɵɵrepeater(ctx_r0.DisplayWarnings);
995
1126
  } }
996
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
997
- i0.ɵɵelementStart(0, "div", 39)(1, "div", 146);
998
- i0.ɵɵelement(2, "i", 148);
1127
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
1128
+ i0.ɵɵelementStart(0, "div", 56)(1, "div", 164);
1129
+ i0.ɵɵelement(2, "i", 166);
999
1130
  i0.ɵɵelementStart(3, "span");
1000
1131
  i0.ɵɵtext(4, "This field holds a value that is not a readable date, so the box above is empty. Saving now will replace it.");
1001
1132
  i0.ɵɵelementEnd()()();
1002
1133
  } }
1134
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template(rf, ctx) { if (rf & 1) {
1135
+ const _r55 = i0.ɵɵgetCurrentView();
1136
+ i0.ɵɵelementStart(0, "div", 57)(1, "div", 167);
1137
+ i0.ɵɵelement(2, "i", 166);
1138
+ i0.ɵɵelementStart(3, "span");
1139
+ i0.ɵɵtext(4, "Updated in another session while you were editing");
1140
+ i0.ɵɵelementEnd()();
1141
+ i0.ɵɵelementStart(5, "div", 168)(6, "div", 169)(7, "span", 170);
1142
+ i0.ɵɵtext(8, "Your edit");
1143
+ i0.ɵɵelementEnd();
1144
+ i0.ɵɵelementStart(9, "span", 171);
1145
+ i0.ɵɵtext(10);
1146
+ i0.ɵɵelementEnd()();
1147
+ i0.ɵɵelementStart(11, "div", 172)(12, "span", 170);
1148
+ i0.ɵɵtext(13, "New value");
1149
+ i0.ɵɵelementEnd();
1150
+ i0.ɵɵelementStart(14, "span", 171);
1151
+ i0.ɵɵtext(15);
1152
+ i0.ɵɵelementEnd()()();
1153
+ i0.ɵɵelementStart(16, "div", 173)(17, "button", 174);
1154
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r55); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AcceptLocalConflictValue($event)); });
1155
+ i0.ɵɵelement(18, "i", 175);
1156
+ i0.ɵɵelementStart(19, "span");
1157
+ i0.ɵɵtext(20, "Keep mine");
1158
+ i0.ɵɵelementEnd()();
1159
+ i0.ɵɵelementStart(21, "button", 176);
1160
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template_button_click_21_listener($event) { i0.ɵɵrestoreView(_r55); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AcceptRemoteConflictValue($event)); });
1161
+ i0.ɵɵelement(22, "i", 177);
1162
+ i0.ɵɵelementStart(23, "span");
1163
+ i0.ɵɵtext(24, "Use new value");
1164
+ i0.ɵɵelementEnd()()()();
1165
+ } if (rf & 2) {
1166
+ const ctx_r0 = i0.ɵɵnextContext(3);
1167
+ i0.ɵɵadvance(10);
1168
+ i0.ɵɵtextInterpolate(ctx_r0.FormatFieldValue(ctx_r0.ActiveConflict.localEditedValue));
1169
+ i0.ɵɵadvance(5);
1170
+ i0.ɵɵtextInterpolate(ctx_r0.FormatFieldValue(ctx_r0.ActiveConflict.incomingServerValue));
1171
+ } }
1003
1172
  function MjFormFieldComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1004
- i0.ɵɵelementStart(0, "div", 32);
1005
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_Template, 1, 1, "label", 5);
1006
- i0.ɵɵelementStart(2, "div", 6);
1007
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template, 8, 14, "div", 33)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template, 15, 6, "div", 34)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template, 3, 3, "div", 35)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template, 1, 1, "textarea", 36)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template, 1, 2, "mj-code-editor", 37)(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template, 8, 1);
1173
+ i0.ɵɵelementStart(0, "div", 49);
1174
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_Template, 3, 2, "div", 6);
1175
+ i0.ɵɵelementStart(2, "div", 7);
1176
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template, 1, 1, "ng-container");
1177
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template, 8, 14, "div", 50)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template, 15, 6, "div", 51)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template, 3, 3, "div", 52)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template, 1, 1, "textarea", 53)(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template, 1, 2, "mj-code-editor", 54)(9, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template, 8, 1);
1008
1178
  i0.ɵɵelementEnd();
1009
- i0.ɵɵconditionalCreate(9, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template, 3, 0, "div", 38);
1010
- i0.ɵɵconditionalCreate(10, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template, 3, 0, "div", 39);
1011
- i0.ɵɵconditionalCreate(11, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Template, 5, 0, "div", 39);
1179
+ i0.ɵɵconditionalCreate(10, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template, 3, 0, "div", 55);
1180
+ i0.ɵɵconditionalCreate(11, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Template, 3, 0, "div", 56);
1181
+ i0.ɵɵconditionalCreate(12, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_12_Template, 5, 0, "div", 56);
1182
+ i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template, 25, 2, "div", 57);
1012
1183
  i0.ɵɵelementEnd();
1013
1184
  } if (rf & 2) {
1014
1185
  const ctx_r0 = i0.ɵɵnextContext(2);
1015
- i0.ɵɵclassProp("mj-forms-field--no-label", !ctx_r0.ShowLabel)("mj-forms-field--dirty", ctx_r0.IsDirty)("mj-forms-field--required-empty", ctx_r0.IsRequiredEmpty)("mj-forms-field--has-error", ctx_r0.ShowErrors)("mj-forms-field--has-warning", ctx_r0.ShowWarnings || ctx_r0.StoredDateIsUnreadable);
1186
+ i0.ɵɵclassProp("mj-forms-field--no-label", !ctx_r0.ShowLabel)("mj-forms-field--dirty", ctx_r0.IsDirty)("mj-forms-field--conflict", ctx_r0.ActiveConflict !== null)("mj-forms-field--required-empty", ctx_r0.IsRequiredEmpty)("mj-forms-field--has-error", ctx_r0.ShowErrors)("mj-forms-field--has-warning", ctx_r0.ShowWarnings || ctx_r0.StoredDateIsUnreadable);
1016
1187
  i0.ɵɵadvance();
1017
1188
  i0.ɵɵconditional(ctx_r0.ShowLabel ? 1 : -1);
1018
1189
  i0.ɵɵadvance(2);
1019
- i0.ɵɵconditional(ctx_r0.HasRelatedEntity ? 3 : ctx_r0.ExtendedDisplay === "image" ? 4 : ctx_r0.ExtendedDisplay === "color" ? 5 : ctx_r0.ExtendedDisplay === "json" ? 6 : ctx_r0.EditRichTextMode !== "plain" ? 7 : 8);
1190
+ i0.ɵɵconditional(!ctx_r0.ShowLabel ? 3 : -1);
1191
+ i0.ɵɵadvance();
1192
+ i0.ɵɵconditional(ctx_r0.HasRelatedEntity ? 4 : ctx_r0.ExtendedDisplay === "image" ? 5 : ctx_r0.ExtendedDisplay === "color" ? 6 : ctx_r0.ExtendedDisplay === "json" ? 7 : ctx_r0.EditRichTextMode !== "plain" ? 8 : 9);
1020
1193
  i0.ɵɵadvance(6);
1021
- i0.ɵɵconditional(ctx_r0.DisplayErrors.length > 0 ? 9 : -1);
1194
+ i0.ɵɵconditional(ctx_r0.DisplayErrors.length > 0 ? 10 : -1);
1195
+ i0.ɵɵadvance();
1196
+ i0.ɵɵconditional(ctx_r0.DisplayWarnings.length > 0 ? 11 : -1);
1022
1197
  i0.ɵɵadvance();
1023
- i0.ɵɵconditional(ctx_r0.DisplayWarnings.length > 0 ? 10 : -1);
1198
+ i0.ɵɵconditional(ctx_r0.StoredDateIsUnreadable ? 12 : -1);
1024
1199
  i0.ɵɵadvance();
1025
- i0.ɵɵconditional(ctx_r0.StoredDateIsUnreadable ? 11 : -1);
1200
+ i0.ɵɵconditional(ctx_r0.ActiveConflict ? 13 : -1);
1026
1201
  } }
1027
1202
  function MjFormFieldComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1028
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Template, 8, 8, "div", 2);
1029
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Template, 12, 15, "div", 3);
1203
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Template, 9, 13, "div", 3);
1204
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Template, 14, 19, "div", 4);
1030
1205
  } if (rf & 2) {
1031
1206
  const ctx_r0 = i0.ɵɵnextContext();
1032
1207
  i0.ɵɵconditional((!ctx_r0.EditMode || ctx_r0.IsFieldReadOnly) && !ctx_r0.ShouldHideField ? 0 : -1);
1033
1208
  i0.ɵɵadvance();
1034
1209
  i0.ɵɵconditional(ctx_r0.EditMode && !ctx_r0.IsFieldReadOnly ? 1 : -1);
1035
1210
  } }
1211
+ function MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1212
+ const _r57 = i0.ɵɵgetCurrentView();
1213
+ i0.ɵɵelementStart(0, "div", 183)(1, "div", 184);
1214
+ i0.ɵɵtext(2, "Original value");
1215
+ i0.ɵɵelementEnd();
1216
+ i0.ɵɵelementStart(3, "div", 185);
1217
+ i0.ɵɵtext(4);
1218
+ i0.ɵɵelementEnd();
1219
+ i0.ɵɵelementStart(5, "button", 186);
1220
+ i0.ɵɵlistener("click", function MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template_button_click_5_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.RestoreOriginalValue($event)); });
1221
+ i0.ɵɵelement(6, "i", 187);
1222
+ i0.ɵɵelementStart(7, "span");
1223
+ i0.ɵɵtext(8, "Restore");
1224
+ i0.ɵɵelementEnd()()();
1225
+ } if (rf & 2) {
1226
+ const ctx_r0 = i0.ɵɵnextContext(3);
1227
+ i0.ɵɵadvance(4);
1228
+ i0.ɵɵtextInterpolate(ctx_r0.FormattedOriginalValue);
1229
+ } }
1230
+ function MjFormFieldComponent_ng_template_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1231
+ const _r56 = i0.ɵɵgetCurrentView();
1232
+ i0.ɵɵelementStart(0, "div", 180);
1233
+ i0.ɵɵlistener("mouseenter", function MjFormFieldComponent_ng_template_1_Conditional_0_Template_div_mouseenter_0_listener() { i0.ɵɵrestoreView(_r56); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.ShowOriginalValuePopover = true); })("mouseleave", function MjFormFieldComponent_ng_template_1_Conditional_0_Template_div_mouseleave_0_listener() { i0.ɵɵrestoreView(_r56); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.ShowOriginalValuePopover = false); });
1234
+ i0.ɵɵelementStart(1, "button", 181);
1235
+ i0.ɵɵlistener("click", function MjFormFieldComponent_ng_template_1_Conditional_0_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r56); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.ToggleOriginalValuePopover($event)); });
1236
+ i0.ɵɵelement(2, "i", 182);
1237
+ i0.ɵɵelementEnd();
1238
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template, 9, 1, "div", 183);
1239
+ i0.ɵɵelementEnd();
1240
+ } if (rf & 2) {
1241
+ const ctx_r0 = i0.ɵɵnextContext(2);
1242
+ i0.ɵɵadvance();
1243
+ i0.ɵɵattribute("aria-expanded", ctx_r0.ShowOriginalValuePopover);
1244
+ i0.ɵɵadvance(2);
1245
+ i0.ɵɵconditional(ctx_r0.ShowOriginalValuePopover ? 3 : -1);
1246
+ } }
1247
+ function MjFormFieldComponent_ng_template_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1248
+ i0.ɵɵelementStart(0, "span", 179);
1249
+ i0.ɵɵelement(1, "i", 188);
1250
+ i0.ɵɵelementStart(2, "span");
1251
+ i0.ɵɵtext(3, "Updated live");
1252
+ i0.ɵɵelementEnd();
1253
+ i0.ɵɵelementStart(4, "span", 189);
1254
+ i0.ɵɵtext(5);
1255
+ i0.ɵɵelementEnd()();
1256
+ } if (rf & 2) {
1257
+ const ctx_r0 = i0.ɵɵnextContext(2);
1258
+ i0.ɵɵproperty("title", "Previously: " + ctx_r0.FormattedAutoMergedPreviousValue);
1259
+ i0.ɵɵadvance(5);
1260
+ i0.ɵɵtextInterpolate1("Previously: ", ctx_r0.FormattedAutoMergedPreviousValue);
1261
+ } }
1262
+ function MjFormFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1263
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_ng_template_1_Conditional_0_Template, 4, 2, "div", 178);
1264
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_ng_template_1_Conditional_1_Template, 6, 2, "span", 179);
1265
+ } if (rf & 2) {
1266
+ const ctx_r0 = i0.ɵɵnextContext();
1267
+ i0.ɵɵconditional(ctx_r0.EditMode && ctx_r0.IsFieldDirty && !ctx_r0.ActiveConflict ? 0 : -1);
1268
+ i0.ɵɵadvance();
1269
+ i0.ɵɵconditional(ctx_r0.EditMode && ctx_r0.AutoMergedPreviousValue !== undefined && !ctx_r0.ActiveConflict ? 1 : -1);
1270
+ } }
1036
1271
  /**
1037
1272
  * Rows a foreign-key lookup returns by default. Module scope because the `FKMaxRows` input's
1038
1273
  * initializer runs before the component's own statics are available.
@@ -1095,12 +1330,119 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1095
1330
  * rendered outside a record form.
1096
1331
  */
1097
1332
  fieldEdits = inject(FormFieldEditCoordinator, { optional: true });
1333
+ recordRefresh = inject(FormRecordRefreshCoordinator, { optional: true });
1334
+ previewPopoverService = inject(MjRecordPreviewPopoverService, { optional: true });
1335
+ _coordinatorSubs = [];
1336
+ _remoteHighlightTimer = null;
1337
+ _lastPolymorphicEntityRef = undefined;
1338
+ /**
1339
+ * Brief visual highlight applied when this field's value was updated remotely
1340
+ * (e.g. saved in another browser tab) and auto-refreshed on the open form.
1341
+ */
1342
+ IsRemotelyUpdated = false;
1343
+ /**
1344
+ * Host class applied when this field has an unresolved remote edit conflict.
1345
+ */
1346
+ get HasActiveConflict() {
1347
+ return this.ActiveConflict !== null;
1348
+ }
1349
+ /** Whether the original-value popover is currently open */
1350
+ ShowOriginalValuePopover = false;
1351
+ /** Previous server value when this clean field was auto-merged live during edit mode */
1352
+ AutoMergedPreviousValue = undefined;
1353
+ /** Active remote edit conflict for this field, if any */
1354
+ ActiveConflict = null;
1355
+ /** Active In-Form Time-Travel version preview state, if any */
1356
+ ActiveVersionPreview = null;
1357
+ /**
1358
+ * Host class applied when this field's value in the previewed historical version
1359
+ * differs from the current live record value.
1360
+ */
1361
+ get HasTimeTravelDiff() {
1362
+ return this.VersionPreviewDiff !== null && this.VersionPreviewDiff.IsChanged !== false;
1363
+ }
1364
+ /** Whether the FK record hover preview popover is currently open */
1365
+ ShowFKHoverPreview = false;
1366
+ /** Viewport anchor rectangle for the FK record hover preview popover */
1367
+ FKHoverAnchorRect = null;
1368
+ /** Target CompositeKey for the FK record hover preview popover */
1369
+ FKHoverTargetKey = null;
1370
+ _hoverPreviewOpenTimer = null;
1371
+ _hoverPreviewCloseTimer = null;
1098
1372
  constructor() {
1099
1373
  super();
1100
1374
  // Registered at construction (the creation pass), not in a lifecycle hook: the section's host
1101
1375
  // bindings read its field set during the first update pass, and a registration landing
1102
1376
  // mid-pass would change an already-checked binding.
1103
1377
  this.sectionHost?.RegisterField(this);
1378
+ if (this.fieldEdits) {
1379
+ this._coordinatorSubs.push(this.fieldEdits.Edited$.subscribe(edit => {
1380
+ const entityIdField = this.FieldInfo?.EntityIDFieldName?.trim();
1381
+ if (entityIdField && edit.FieldName.trim().toLowerCase() === entityIdField.toLowerCase()) {
1382
+ this.onPolymorphicSiblingEntityChanged();
1383
+ }
1384
+ }));
1385
+ }
1386
+ if (this.recordRefresh) {
1387
+ this.ActiveVersionPreview = this.recordRefresh.ActiveVersionPreview;
1388
+ this._coordinatorSubs.push(this.recordRefresh.RemoteUpdated$.subscribe(evt => {
1389
+ if (!this.Record || evt.record !== this.Record)
1390
+ return;
1391
+ // Invalidate cached FK label & rich-text format so refreshed values render immediately
1392
+ this._resolvedFKName = undefined;
1393
+ this._resolvedFKValue = undefined;
1394
+ this._resolvedFKEntityRef = undefined;
1395
+ this._detectCacheValue = null;
1396
+ this.sectionHost?.NotifyFieldChanged(this);
1397
+ const ownFieldLower = (this.FieldName || '').trim().toLowerCase();
1398
+ const fieldInfoNameLower = (this.FieldInfo?.Name || '').trim().toLowerCase();
1399
+ const siblingEntityFieldLower = (this.FieldInfo?.EntityIDFieldName || '').trim().toLowerCase();
1400
+ // Check for auto-merged clean field baseline
1401
+ if (evt.autoMergedPreviousValues) {
1402
+ if (ownFieldLower && evt.autoMergedPreviousValues.has(ownFieldLower)) {
1403
+ this.AutoMergedPreviousValue = evt.autoMergedPreviousValues.get(ownFieldLower);
1404
+ }
1405
+ else if (fieldInfoNameLower && evt.autoMergedPreviousValues.has(fieldInfoNameLower)) {
1406
+ this.AutoMergedPreviousValue = evt.autoMergedPreviousValues.get(fieldInfoNameLower);
1407
+ }
1408
+ }
1409
+ // Check for dirty-field conflict
1410
+ if (evt.conflicts) {
1411
+ const conflict = (ownFieldLower ? evt.conflicts.get(ownFieldLower) : undefined) ??
1412
+ (fieldInfoNameLower ? evt.conflicts.get(fieldInfoNameLower) : undefined);
1413
+ if (conflict) {
1414
+ this.ActiveConflict = conflict;
1415
+ this.ShowOriginalValuePopover = false;
1416
+ }
1417
+ }
1418
+ if ((ownFieldLower && evt.changedFieldNames.has(ownFieldLower)) ||
1419
+ (fieldInfoNameLower && evt.changedFieldNames.has(fieldInfoNameLower)) ||
1420
+ (siblingEntityFieldLower && evt.changedFieldNames.has(siblingEntityFieldLower))) {
1421
+ this.triggerRemoteUpdateHighlight();
1422
+ }
1423
+ else {
1424
+ this.cdr.detectChanges();
1425
+ }
1426
+ }), this.recordRefresh.ConflictsChanged$.subscribe(conflicts => {
1427
+ const ownFieldLower = (this.FieldName || '').trim().toLowerCase();
1428
+ const fieldInfoNameLower = (this.FieldInfo?.Name || '').trim().toLowerCase();
1429
+ const current = (ownFieldLower ? conflicts.get(ownFieldLower) : undefined) ??
1430
+ (fieldInfoNameLower ? conflicts.get(fieldInfoNameLower) : undefined) ??
1431
+ null;
1432
+ if (this.ActiveConflict !== current) {
1433
+ this.ActiveConflict = current;
1434
+ this.cdr.markForCheck();
1435
+ }
1436
+ }), this.recordRefresh.VersionPreviewChanged$.subscribe(preview => {
1437
+ this.ActiveVersionPreview = preview;
1438
+ this._resolvedFKName = undefined;
1439
+ this._resolvedFKValue = undefined;
1440
+ this._resolvedFKEntityRef = undefined;
1441
+ this._detectCacheValue = null;
1442
+ this.sectionHost?.NotifyFieldChanged(this);
1443
+ this.cdr.markForCheck();
1444
+ }));
1445
+ }
1104
1446
  }
1105
1447
  /** This component's host element — what a section uses to confirm the field is inside it. */
1106
1448
  get HostElement() {
@@ -1145,6 +1487,13 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1145
1487
  }
1146
1488
  }
1147
1489
  get Type() {
1490
+ // Polymorphic FK columns (where EntityField.EntityIDFieldName is populated) are often
1491
+ // wide nvarchar(450..700) columns so they can store composite keys; CodeGen emits
1492
+ // Type="textarea" for wide strings, but a polymorphic FK should render as a single-line
1493
+ // FK picker / smart link rather than a multi-line textarea.
1494
+ if (this._type === 'textarea' && this.IsPolymorphicFK) {
1495
+ return 'textbox';
1496
+ }
1148
1497
  return this._type;
1149
1498
  }
1150
1499
  _type = 'textbox';
@@ -1206,8 +1555,9 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1206
1555
  * `GetDeniedReadFields` walks every field on the entity and aggregates permissions across the
1207
1556
  * user's roles. `ngOnChanges` clears the memo when `Record` or `FieldName` changes.
1208
1557
  *
1209
- * Fails OPEN — on a missing entity, missing user, or an entity with field security switched
1210
- * off — matching `BaseEntity`'s own gate. A form that hid fields because no user had resolved
1558
+ * Fails OPEN — on a missing entity, missing user, or an entity field security does not apply
1559
+ * to (its own flag off and, for an IS-A child, every ancestor's flag off too) — matching
1560
+ * `BaseEntity`'s own gate. A form that hid fields because no user had resolved
1211
1561
  * yet would be worse than one that shows them, since the server is the real boundary.
1212
1562
  */
1213
1563
  get IsFieldReadableByUser() {
@@ -1218,7 +1568,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1218
1568
  }
1219
1569
  computeIsFieldReadableByUser() {
1220
1570
  const entityInfo = this.Record?.EntityInfo;
1221
- if (!entityInfo?.EnableFieldLevelSecurity) {
1571
+ if (!entityInfo?.FieldLevelSecurityApplies) {
1222
1572
  return true; // one boolean for the overwhelming majority of entities
1223
1573
  }
1224
1574
  const user = this.ProviderToUse?.CurrentUser;
@@ -1251,27 +1601,96 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1251
1601
  get HighlightedDisplayName() {
1252
1602
  return HighlightSearchMatches(this.DisplayName, this.FormContext?.sectionFilter ?? '', 'mj-forms-search-highlight');
1253
1603
  }
1254
- /** Current field value */
1604
+ /** Current field value (or historical snapshot value when in Time-Travel version preview mode) */
1255
1605
  get Value() {
1606
+ if (this.ActiveVersionPreview) {
1607
+ const snapshot = this.ActiveVersionPreview.SnapshotValues ?? this.ActiveVersionPreview.Snapshot;
1608
+ if (snapshot) {
1609
+ const fieldInfoName = this.FieldInfo?.Name;
1610
+ if (fieldInfoName && Object.prototype.hasOwnProperty.call(snapshot, fieldInfoName)) {
1611
+ return snapshot[fieldInfoName];
1612
+ }
1613
+ if (fieldInfoName && Object.prototype.hasOwnProperty.call(snapshot, fieldInfoName.toLowerCase())) {
1614
+ return snapshot[fieldInfoName.toLowerCase()];
1615
+ }
1616
+ if (this.FieldName && Object.prototype.hasOwnProperty.call(snapshot, this.FieldName)) {
1617
+ return snapshot[this.FieldName];
1618
+ }
1619
+ if (this.FieldName && Object.prototype.hasOwnProperty.call(snapshot, this.FieldName.toLowerCase())) {
1620
+ return snapshot[this.FieldName.toLowerCase()];
1621
+ }
1622
+ }
1623
+ const diff = this.VersionPreviewDiff;
1624
+ if (diff) {
1625
+ return diff.HistoricalValue;
1626
+ }
1627
+ }
1256
1628
  return this.Record?.Get(this.FieldName);
1257
1629
  }
1258
1630
  /** Set field value, mark touched, run validation, and emit change event */
1259
1631
  set Value(newValue) {
1260
- if (!this.Record)
1632
+ if (!this.Record || this.ActiveVersionPreview)
1261
1633
  return;
1262
1634
  const oldValue = this.Record.Get(this.FieldName);
1263
1635
  this.Record.Set(this.FieldName, newValue);
1636
+ this.AutoMergedPreviousValue = undefined;
1264
1637
  this.markTouched();
1265
1638
  this.runFieldValidation();
1266
1639
  this.ValueChange.emit({ FieldName: this.FieldName, OldValue: oldValue, NewValue: newValue });
1267
1640
  this.fieldEdits?.Notify({ FieldName: this.FieldName });
1641
+ this.cdr.markForCheck();
1268
1642
  }
1269
- /** Whether this field is read-only based on entity metadata */
1643
+ /** Whether this field is read-only based on entity metadata or active Time-Travel preview */
1270
1644
  get IsFieldReadOnly() {
1645
+ if (this.ActiveVersionPreview !== null)
1646
+ return true;
1271
1647
  if (!this.FieldInfo)
1272
1648
  return false;
1273
1649
  return this.FieldInfo.ReadOnly || !this.IsFieldWritableByUser;
1274
1650
  }
1651
+ /**
1652
+ * Diff descriptor for this field when In-Form Time-Travel version preview is active.
1653
+ */
1654
+ get VersionPreviewDiff() {
1655
+ const preview = this.ActiveVersionPreview;
1656
+ const diffMap = preview?.FieldDiffs ?? preview?.ChangedFields;
1657
+ if (!diffMap)
1658
+ return null;
1659
+ const ownLower = (this.FieldName || '').trim().toLowerCase();
1660
+ const infoLower = (this.FieldInfo?.Name || '').trim().toLowerCase();
1661
+ return (ownLower ? diffMap.get(ownLower) : undefined)
1662
+ ?? (infoLower ? diffMap.get(infoLower) : undefined)
1663
+ ?? null;
1664
+ }
1665
+ /**
1666
+ * Formatted representation of the current live record value (shown in the Time-Travel comparison bar).
1667
+ */
1668
+ get FormattedCurrentLiveValue() {
1669
+ const diff = this.VersionPreviewDiff;
1670
+ if (!diff)
1671
+ return 'Empty';
1672
+ return this.FormatFieldValue(diff.CurrentLiveValue);
1673
+ }
1674
+ /**
1675
+ * Request restoring only this single field from the active Time-Travel historical version.
1676
+ */
1677
+ OnRestoreSingleFieldFromPreview(event) {
1678
+ event.stopPropagation();
1679
+ event.preventDefault();
1680
+ const preview = this.ActiveVersionPreview;
1681
+ const diff = this.VersionPreviewDiff;
1682
+ if (!preview || !diff || !this.recordRefresh) {
1683
+ return;
1684
+ }
1685
+ this.recordRefresh.RequestRestoreSingleField({
1686
+ FieldName: this.FieldInfo?.Name || this.FieldName,
1687
+ HistoricalValue: diff.HistoricalValue,
1688
+ SourceChangeID: preview.ChangeID,
1689
+ ChangeID: preview.ChangeID,
1690
+ ChangedAt: preview.ChangedAt,
1691
+ ChangedByUser: preview.ChangedByUser ?? preview.UserName ?? ''
1692
+ });
1693
+ }
1275
1694
  /**
1276
1695
  * Whether field-level security permits the current user to WRITE this field, against the verb
1277
1696
  * that actually applies to the record in hand: Create on a new record, Update on a saved one.
@@ -1308,7 +1727,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1308
1727
  }
1309
1728
  computeIsFieldWritableByUser() {
1310
1729
  const entityInfo = this.Record?.EntityInfo;
1311
- if (!entityInfo?.EnableFieldLevelSecurity) {
1730
+ if (!entityInfo?.FieldLevelSecurityApplies) {
1312
1731
  return true; // one boolean for the overwhelming majority of entities
1313
1732
  }
1314
1733
  const user = this.ProviderToUse?.CurrentUser;
@@ -1323,9 +1742,157 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1323
1742
  get IsDirty() {
1324
1743
  if (!this.Record || !this.Record.IsSaved)
1325
1744
  return false;
1326
- const field = this.Record.Fields?.find(f => f.Name === this.FieldName);
1745
+ return this.IsFieldDirty;
1746
+ }
1747
+ /**
1748
+ * Whether the underlying EntityField is currently marked dirty (modified compared to its baseline `OldValue`).
1749
+ */
1750
+ get IsFieldDirty() {
1751
+ const field = this.getEntityField();
1327
1752
  return field?.Dirty ?? false;
1328
1753
  }
1754
+ /**
1755
+ * Formatted representation of the field's baseline `OldValue` (or `'Empty'` when null/empty).
1756
+ */
1757
+ get FormattedOriginalValue() {
1758
+ const field = this.getEntityField();
1759
+ return this.FormatFieldValue(field?.OldValue);
1760
+ }
1761
+ /**
1762
+ * Formatted representation of `AutoMergedPreviousValue` (when a clean field was updated live during Edit Mode).
1763
+ */
1764
+ get FormattedAutoMergedPreviousValue() {
1765
+ return this.FormatFieldValue(this.AutoMergedPreviousValue);
1766
+ }
1767
+ /**
1768
+ * Formats an arbitrary field value cleanly for display in original-value popovers and conflict cards.
1769
+ * Returns `'Empty'` when the value is null, undefined, or blank string.
1770
+ */
1771
+ FormatFieldValue(val) {
1772
+ if (val === null || val === undefined) {
1773
+ return 'Empty';
1774
+ }
1775
+ if (val instanceof Date) {
1776
+ if (isNaN(val.getTime())) {
1777
+ return 'Empty';
1778
+ }
1779
+ return this.isDateOnlyField ? FormatDateOnly(val) : val.toLocaleString();
1780
+ }
1781
+ const str = String(val);
1782
+ return str.trim() === '' ? 'Empty' : str;
1783
+ }
1784
+ /**
1785
+ * Toggle the floating Original Value popover on a modified field.
1786
+ */
1787
+ ToggleOriginalValuePopover(event) {
1788
+ event?.stopPropagation();
1789
+ this.ShowOriginalValuePopover = !this.ShowOriginalValuePopover;
1790
+ this.cdr.markForCheck();
1791
+ }
1792
+ /**
1793
+ * Restore this field's value back to its baseline `OldValue`, clearing its dirty state
1794
+ * and notifying the form's field-edit coordinator.
1795
+ */
1796
+ RestoreOriginalValue(event) {
1797
+ event?.stopPropagation();
1798
+ event?.preventDefault();
1799
+ const field = this.getEntityField();
1800
+ if (!field) {
1801
+ return;
1802
+ }
1803
+ const previousCurrentValue = this.Record?.Get ? this.Record.Get(this.FieldName) : field.Value;
1804
+ const originalValue = field.OldValue;
1805
+ if (typeof this.Record?.Set === 'function') {
1806
+ this.Record.Set(this.FieldName, originalValue);
1807
+ }
1808
+ field.Value = originalValue;
1809
+ this._fkInputText = null;
1810
+ this._resolvedFKName = undefined;
1811
+ this._resolvedFKValue = undefined;
1812
+ this.ShowOriginalValuePopover = false;
1813
+ this.runFieldValidation();
1814
+ this.ValueChange.emit({
1815
+ FieldName: this.FieldName,
1816
+ OldValue: previousCurrentValue,
1817
+ NewValue: originalValue
1818
+ });
1819
+ this.fieldEdits?.Notify({ FieldName: this.FieldName });
1820
+ this.sectionHost?.NotifyFieldChanged(this);
1821
+ this.cdr.markForCheck();
1822
+ }
1823
+ /**
1824
+ * Resolve an active conflict by keeping the user's local edit (`localEditedValue`) while
1825
+ * ensuring the field's baseline `OldValue` matches the incoming server value.
1826
+ */
1827
+ AcceptLocalConflictValue(event) {
1828
+ event?.stopPropagation();
1829
+ const conflict = this.ActiveConflict;
1830
+ if (!conflict) {
1831
+ return;
1832
+ }
1833
+ const field = this.getEntityField();
1834
+ const localValue = conflict.localEditedValue;
1835
+ if (field) {
1836
+ field.Value = conflict.incomingServerValue;
1837
+ field.ResetOldValue?.();
1838
+ field.Value = localValue;
1839
+ }
1840
+ if (typeof this.Record?.Set === 'function') {
1841
+ this.Record.Set(this.FieldName, localValue);
1842
+ }
1843
+ this.ActiveConflict = null;
1844
+ this.recordRefresh?.ResolveConflict(this.FieldName);
1845
+ this.sectionHost?.NotifyFieldChanged(this);
1846
+ this.cdr.markForCheck();
1847
+ }
1848
+ /**
1849
+ * Resolve an active conflict by adopting the new server value (`incomingServerValue`),
1850
+ * resetting the field's baseline `OldValue`, and notifying the field-edit coordinator.
1851
+ */
1852
+ AcceptRemoteConflictValue(event) {
1853
+ event?.stopPropagation();
1854
+ const conflict = this.ActiveConflict;
1855
+ if (!conflict) {
1856
+ return;
1857
+ }
1858
+ const previousLocal = conflict.localEditedValue;
1859
+ const incomingVal = conflict.incomingServerValue;
1860
+ const field = this.getEntityField();
1861
+ if (typeof this.Record?.Set === 'function') {
1862
+ this.Record.Set(this.FieldName, incomingVal);
1863
+ }
1864
+ if (field) {
1865
+ field.Value = incomingVal;
1866
+ field.ResetOldValue?.();
1867
+ }
1868
+ this._fkInputText = null;
1869
+ this._resolvedFKName = undefined;
1870
+ this._resolvedFKValue = undefined;
1871
+ this.ActiveConflict = null;
1872
+ this.runFieldValidation();
1873
+ this.ValueChange.emit({
1874
+ FieldName: this.FieldName,
1875
+ OldValue: previousLocal,
1876
+ NewValue: incomingVal
1877
+ });
1878
+ this.fieldEdits?.Notify({ FieldName: this.FieldName });
1879
+ this.recordRefresh?.ResolveConflict(this.FieldName);
1880
+ this.sectionHost?.NotifyFieldChanged(this);
1881
+ this.cdr.markForCheck();
1882
+ }
1883
+ getEntityField() {
1884
+ if (!this.Record || !this.FieldName) {
1885
+ return undefined;
1886
+ }
1887
+ const recWithGetter = this.Record;
1888
+ if (typeof recWithGetter.GetFieldByName === 'function') {
1889
+ const byMethod = recWithGetter.GetFieldByName(this.FieldName);
1890
+ if (byMethod) {
1891
+ return byMethod;
1892
+ }
1893
+ }
1894
+ return this.Record.Fields?.find(f => f.Name.trim().toLowerCase() === this.FieldName.trim().toLowerCase());
1895
+ }
1329
1896
  /** Whether this field is required (not nullable) */
1330
1897
  get IsRequired() {
1331
1898
  return this.FieldInfo?.AllowsNull === false;
@@ -1494,7 +2061,9 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1494
2061
  return true;
1495
2062
  if (this.FormContext?.hiddenFieldNames?.includes(this.FieldName))
1496
2063
  return true;
1497
- if (this.EditMode)
2064
+ if (this.HasTimeTravelDiff)
2065
+ return false;
2066
+ if (this.EditMode && !this.ActiveVersionPreview)
1498
2067
  return false;
1499
2068
  if (!this.HideWhenEmptyInReadOnlyMode)
1500
2069
  return false;
@@ -1513,13 +2082,108 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1513
2082
  }
1514
2083
  return [];
1515
2084
  }
1516
- /** Whether this field has a related entity (foreign key) */
2085
+ /**
2086
+ * Whether this field is a polymorphic foreign key (configured via the hard metadata link
2087
+ * `EntityField.EntityIDFieldName` pointing at a sibling column on the same entity that
2088
+ * stores the target `EntityID` or entity name). Never falls back to field-name heuristics.
2089
+ */
2090
+ get IsPolymorphicFK() {
2091
+ const entityIdField = this.FieldInfo?.EntityIDFieldName;
2092
+ return typeof entityIdField === 'string' && entityIdField.trim().length > 0;
2093
+ }
2094
+ /**
2095
+ * Reads the raw value of the sibling `EntityIDFieldName` column on the bound record.
2096
+ */
2097
+ get polymorphicEntityRefValue() {
2098
+ const entityIdFieldName = this.FieldInfo?.EntityIDFieldName?.trim();
2099
+ if (!entityIdFieldName || !this.Record)
2100
+ return null;
2101
+ const snap = this.ActiveVersionPreview?.SnapshotValues ?? this.ActiveVersionPreview?.Snapshot;
2102
+ const raw = snap && Object.prototype.hasOwnProperty.call(snap, entityIdFieldName)
2103
+ ? snap[entityIdFieldName]
2104
+ : this.Record.Get(entityIdFieldName);
2105
+ if (raw == null)
2106
+ return null;
2107
+ const str = String(raw).trim();
2108
+ return str.length > 0 ? str : null;
2109
+ }
2110
+ /**
2111
+ * Resolves the target `EntityInfo` for a polymorphic FK field using the sibling
2112
+ * `EntityIDFieldName` value (supports both UUID `EntityID` and entity `Name`).
2113
+ */
2114
+ resolvePolymorphicTargetEntityInfo() {
2115
+ const entityRef = this.polymorphicEntityRefValue;
2116
+ if (!entityRef)
2117
+ return undefined;
2118
+ const md = this.ProviderToUse;
2119
+ if (!md)
2120
+ return undefined;
2121
+ return md.EntityByID(entityRef) ?? md.EntityByName(entityRef);
2122
+ }
2123
+ /** Effective related entity name (static FK `RelatedEntity` or polymorphic target entity name). */
2124
+ get EffectiveRelatedEntityName() {
2125
+ const re = this.FieldInfo?.RelatedEntity;
2126
+ if (re != null && re.trim().length > 0)
2127
+ return re;
2128
+ return this.resolvePolymorphicTargetEntityInfo()?.Name ?? null;
2129
+ }
2130
+ /** Effective related entity icon for polymorphic FK link rendering. */
2131
+ get EffectiveRelatedEntityIcon() {
2132
+ const targetEntity = this.getRelatedEntityInfo();
2133
+ return targetEntity?.Icon || null;
2134
+ }
2135
+ CopiedRawID = false;
2136
+ copyRawIDTimer = null;
2137
+ /** Whether to show the subtle copy-ID button beside a resolved FK / polymorphic FK link. */
2138
+ get ShowPolymorphicRawIDBadge() {
2139
+ if (!this.HasRelatedEntity)
2140
+ return false;
2141
+ const displayName = this.FKDisplayName;
2142
+ const rawVal = this.FormatValue().trim();
2143
+ return !!displayName && !!rawVal && displayName !== rawVal;
2144
+ }
2145
+ /** Compact display string for the raw polymorphic RecordID badge (e.g., `44FA6C…1E324C`). */
2146
+ get CompactPolymorphicRawID() {
2147
+ const rawVal = this.FormatValue().trim();
2148
+ if (rawVal.length <= 16)
2149
+ return rawVal;
2150
+ return `${rawVal.slice(0, 6)}…${rawVal.slice(-6)}`;
2151
+ }
2152
+ OnCopyRawID(event) {
2153
+ event.preventDefault();
2154
+ event.stopPropagation();
2155
+ const rawVal = this.FormatValue().trim();
2156
+ if (!rawVal)
2157
+ return;
2158
+ try {
2159
+ if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
2160
+ void navigator.clipboard.writeText(rawVal);
2161
+ }
2162
+ }
2163
+ catch {
2164
+ // Ignore clipboard errors in restricted environments
2165
+ }
2166
+ this.CopiedRawID = true;
2167
+ this.cdr.markForCheck();
2168
+ if (this.copyRawIDTimer) {
2169
+ clearTimeout(this.copyRawIDTimer);
2170
+ }
2171
+ this.copyRawIDTimer = setTimeout(() => {
2172
+ this.copyRawIDTimer = null;
2173
+ this.CopiedRawID = false;
2174
+ this.cdr.markForCheck();
2175
+ }, 1500);
2176
+ }
2177
+ /** Whether this field has a related entity (static foreign key or resolved polymorphic foreign key) */
1517
2178
  get HasRelatedEntity() {
1518
2179
  const re = this.FieldInfo?.RelatedEntity;
1519
- return re != null && re.length > 0;
2180
+ if (re != null && re.length > 0)
2181
+ return true;
2182
+ return this.IsPolymorphicFK && this.resolvePolymorphicTargetEntityInfo() != null;
1520
2183
  }
1521
2184
  /**
1522
- * For FK fields, returns the human-readable name to display instead of the raw ID.
2185
+ * For FK fields (including polymorphic FK fields via `EntityIDFieldName`), returns the
2186
+ * human-readable name to display instead of the raw ID.
1523
2187
  *
1524
2188
  * Resolution order:
1525
2189
  * 1. If `RelatedEntityNameFieldMap` exists, read the name from the joined field on the record (sync).
@@ -1542,9 +2206,29 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1542
2206
  // right: that path reads the related record, which has its own permissions.
1543
2207
  const nameFieldMap = this.FieldInfo?.RelatedEntityNameFieldMap;
1544
2208
  if (nameFieldMap && this.Record.EntityInfo?.IsFieldReadableByUser(nameFieldMap, this.ProviderToUse?.CurrentUser)) {
1545
- const val = this.Record.Get(nameFieldMap);
1546
- if (val != null && val !== '')
1547
- return String(val);
2209
+ if (this.ActiveVersionPreview) {
2210
+ const snap = this.ActiveVersionPreview.SnapshotValues ?? this.ActiveVersionPreview.Snapshot;
2211
+ if (snap && Object.prototype.hasOwnProperty.call(snap, nameFieldMap)) {
2212
+ const snapVal = snap[nameFieldMap];
2213
+ if (snapVal != null && snapVal !== '')
2214
+ return String(snapVal);
2215
+ }
2216
+ else if (!this.HasTimeTravelDiff) {
2217
+ const val = this.Record.Get(nameFieldMap);
2218
+ if (val != null && val !== '')
2219
+ return String(val);
2220
+ }
2221
+ }
2222
+ else {
2223
+ const val = this.Record.Get(nameFieldMap);
2224
+ if (val != null && val !== '')
2225
+ return String(val);
2226
+ }
2227
+ }
2228
+ const currentEntityRef = this.IsPolymorphicFK ? this.polymorphicEntityRefValue : null;
2229
+ if (this._resolvedFKValue !== fkValue || (this.IsPolymorphicFK && this._resolvedFKEntityRef !== currentEntityRef)) {
2230
+ this._resolvedFKName = undefined;
2231
+ this._fkNameLoading = false;
1548
2232
  }
1549
2233
  // Async fallback: resolved via GetEntityRecordName
1550
2234
  if (this._resolvedFKName !== undefined) {
@@ -1555,22 +2239,33 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1555
2239
  return null; // will render once resolved
1556
2240
  }
1557
2241
  /**
1558
- * Whether this FK field should display the related entity name
1559
- * with a hyperlink instead of the raw ID value.
2242
+ * Whether this FK field should display the related entity name (or polymorphic target link)
2243
+ * with a hyperlink instead of plain text.
1560
2244
  */
1561
2245
  get IsFKWithNameField() {
1562
- return this.HasRelatedEntity && this.FKDisplayName != null;
2246
+ if (!this.HasRelatedEntity)
2247
+ return false;
2248
+ const displayName = this.FKDisplayName;
2249
+ if (displayName != null)
2250
+ return true;
2251
+ if (this.IsPolymorphicFK) {
2252
+ const val = this.Value;
2253
+ return val != null && String(val).trim().length > 0;
2254
+ }
2255
+ return false;
1563
2256
  }
1564
2257
  // ---- Async FK name resolution ----
1565
2258
  /** Cached result from GetEntityRecordName. undefined = not yet resolved. */
1566
2259
  _resolvedFKName = undefined;
1567
2260
  /** Tracks which FK value we resolved so we can invalidate on record change */
1568
2261
  _resolvedFKValue = undefined;
2262
+ /** Tracks which polymorphic sibling EntityID value we resolved against */
2263
+ _resolvedFKEntityRef = undefined;
1569
2264
  /** Whether an async lookup is in flight */
1570
2265
  _fkNameLoading = false;
1571
2266
  /**
1572
- * Asynchronously resolves the display name for an FK field that lacks
1573
- * a RelatedEntityNameFieldMap by calling Metadata.GetEntityRecordName.
2267
+ * Asynchronously resolves the display name for an FK field (or polymorphic FK field)
2268
+ * that lacks a RelatedEntityNameFieldMap by calling Metadata.GetEntityRecordName.
1574
2269
  */
1575
2270
  resolveFKNameAsync() {
1576
2271
  if (this._fkNameLoading)
@@ -1579,26 +2274,98 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1579
2274
  if (fkValue == null || fkValue === '')
1580
2275
  return;
1581
2276
  const fieldInfo = this.FieldInfo;
1582
- if (!fieldInfo?.RelatedEntity || !fieldInfo?.RelatedEntityFieldName)
2277
+ if (!fieldInfo)
1583
2278
  return;
2279
+ const relatedEntity = this.getRelatedEntityInfo();
2280
+ const relatedEntityName = relatedEntity?.Name || fieldInfo.RelatedEntity;
2281
+ if (!relatedEntityName)
2282
+ return;
2283
+ let pk;
2284
+ if (this.IsPolymorphicFK) {
2285
+ pk = CompositeKey.FromURLSegment(relatedEntity, String(fkValue));
2286
+ }
2287
+ else {
2288
+ const pkFieldName = fieldInfo.RelatedEntityFieldName || relatedEntity?.FirstPrimaryKey?.Name; // first-pk-ok: foreign-key target, single-column by design (polymorphic FKs take the FromURLSegment branch)
2289
+ if (!pkFieldName)
2290
+ return;
2291
+ pk = new CompositeKey([{
2292
+ FieldName: pkFieldName,
2293
+ Value: fkValue
2294
+ }]);
2295
+ }
2296
+ const currentEntityRef = this.IsPolymorphicFK ? this.polymorphicEntityRefValue : null;
1584
2297
  this._fkNameLoading = true;
1585
2298
  this._resolvedFKValue = fkValue;
1586
- const pk = new CompositeKey([{
1587
- FieldName: fieldInfo.RelatedEntityFieldName,
1588
- Value: fkValue
1589
- }]);
2299
+ this._resolvedFKEntityRef = currentEntityRef;
1590
2300
  const md = this.ProviderToUse;
1591
- md.GetEntityRecordName(fieldInfo.RelatedEntity, pk)
2301
+ md.GetEntityRecordName(relatedEntityName, pk)
1592
2302
  .then(name => {
2303
+ if (this._destroyed)
2304
+ return;
1593
2305
  this._resolvedFKName = name || null;
1594
2306
  this._fkNameLoading = false;
1595
2307
  this.cdr.markForCheck();
2308
+ Promise.resolve().then(() => {
2309
+ if (!this._destroyed) {
2310
+ this.cdr.detectChanges();
2311
+ }
2312
+ });
1596
2313
  })
1597
2314
  .catch(() => {
2315
+ if (this._destroyed)
2316
+ return;
1598
2317
  this._resolvedFKName = null;
1599
2318
  this._fkNameLoading = false;
1600
2319
  });
1601
2320
  }
2321
+ /**
2322
+ * Called when the sibling `EntityIDFieldName` field is edited on the form.
2323
+ * Re-scopes the polymorphic FK picker to the newly selected target entity.
2324
+ */
2325
+ onPolymorphicSiblingEntityChanged() {
2326
+ const newRef = this.polymorphicEntityRefValue;
2327
+ const prevRef = this._lastPolymorphicEntityRef;
2328
+ this._lastPolymorphicEntityRef = newRef;
2329
+ this._fkColumnPlan = null;
2330
+ this._fkStrategy = null;
2331
+ this._fkStrategyIsRegistered = false;
2332
+ this._fkPrefKey = null;
2333
+ this._fkColWidths = {};
2334
+ this._resolvedFKName = undefined;
2335
+ this._resolvedFKValue = undefined;
2336
+ this._resolvedFKEntityRef = undefined;
2337
+ this._fkNameLoading = false;
2338
+ this.FKSuggestions = [];
2339
+ this._fkSuggestionsNatural = [];
2340
+ this.FKGroups = [];
2341
+ this.FKSearchableFields = [];
2342
+ this.closeFKDropdown();
2343
+ if (this.EditMode && prevRef !== undefined && prevRef !== newRef) {
2344
+ this._fkInputText = null;
2345
+ this.FKIsMatched = false;
2346
+ if (this.Value != null && this.Value !== '') {
2347
+ this.Value = null;
2348
+ }
2349
+ }
2350
+ this.cdr.markForCheck();
2351
+ }
2352
+ /**
2353
+ * Briefly illuminates this field when its value was updated by a remote/cross-tab save.
2354
+ */
2355
+ triggerRemoteUpdateHighlight() {
2356
+ if (this._remoteHighlightTimer) {
2357
+ clearTimeout(this._remoteHighlightTimer);
2358
+ }
2359
+ this.IsRemotelyUpdated = true;
2360
+ this.cdr.detectChanges();
2361
+ this._remoteHighlightTimer = setTimeout(() => {
2362
+ this._remoteHighlightTimer = null;
2363
+ if (!this._destroyed) {
2364
+ this.IsRemotelyUpdated = false;
2365
+ this.cdr.detectChanges();
2366
+ }
2367
+ }, 2600);
2368
+ }
1602
2369
  // ============================================
1603
2370
  // DROPDOWN POSITIONING (shared by FK, value list, select)
1604
2371
  // ============================================
@@ -1960,14 +2727,18 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1960
2727
  return UUIDsEqual(String(v), String(pk));
1961
2728
  }
1962
2729
  /**
1963
- * Resolves the related `EntityInfo` for this FK field via the instance provider
1964
- * (multi-provider safe — never the global `Metadata`).
2730
+ * Resolves the related `EntityInfo` for this FK field (or polymorphic FK field)
2731
+ * via the instance provider (multi-provider safe — never the global `Metadata`).
1965
2732
  */
1966
2733
  getRelatedEntityInfo() {
1967
2734
  const relatedName = this.FieldInfo?.RelatedEntity;
1968
- if (!relatedName)
1969
- return undefined;
1970
- return this.ProviderToUse.EntityByName(relatedName);
2735
+ if (relatedName && relatedName.trim().length > 0) {
2736
+ return this.ProviderToUse.EntityByName(relatedName);
2737
+ }
2738
+ if (this.IsPolymorphicFK) {
2739
+ return this.resolvePolymorphicTargetEntityInfo();
2740
+ }
2741
+ return undefined;
1971
2742
  }
1972
2743
  /**
1973
2744
  * The lookup strategy for this field: a registration for `<HostEntity>.<FieldName>`, else one
@@ -1976,7 +2747,8 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1976
2747
  */
1977
2748
  resolveStrategy() {
1978
2749
  if (!this._fkStrategy) {
1979
- const registered = ResolveFKLookupStrategy(this.Record?.EntityInfo?.Name ?? '', this.FieldName, this.FieldInfo?.RelatedEntity ?? '');
2750
+ const relatedName = this.getRelatedEntityInfo()?.Name ?? this.FieldInfo?.RelatedEntity ?? '';
2751
+ const registered = ResolveFKLookupStrategy(this.Record?.EntityInfo?.Name ?? '', this.FieldName, relatedName);
1980
2752
  this._fkStrategyIsRegistered = registered !== null;
1981
2753
  this._fkStrategy = registered ?? new DefaultFKLookupStrategy();
1982
2754
  }
@@ -2039,7 +2811,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2039
2811
  * cannot honour it, and the answer must not depend on which engines a page happened to load.
2040
2812
  */
2041
2813
  getCachedRecordsForRelatedEntity() {
2042
- const relatedName = this.FieldInfo?.RelatedEntity;
2814
+ const relatedName = this.getRelatedEntityInfo()?.Name ?? this.FieldInfo?.RelatedEntity;
2043
2815
  if (!relatedName || this.hasCustomStrategy() || this.hasFKScoping())
2044
2816
  return null;
2045
2817
  const registry = BaseEngineRegistry.Instance;
@@ -2816,6 +3588,9 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2816
3588
  this._fkInputText = suggestion.DisplayName;
2817
3589
  this.Value = suggestion.PrimaryKeyValue;
2818
3590
  this.FKIsMatched = true;
3591
+ this._resolvedFKName = suggestion.DisplayName;
3592
+ this._resolvedFKValue = suggestion.PrimaryKeyValue;
3593
+ this._resolvedFKEntityRef = this.IsPolymorphicFK ? this.polymorphicEntityRefValue : null;
2819
3594
  this.closeFKDropdown();
2820
3595
  // Update virtual name field for visual consistency after save
2821
3596
  const nameFieldMap = this.FieldInfo?.RelatedEntityNameFieldMap;
@@ -2859,7 +3634,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2859
3634
  OnFKCreateNew(event) {
2860
3635
  event.preventDefault(); // don't blur the input before we capture the query
2861
3636
  const plan = this.buildColumnPlan();
2862
- const relatedEntity = this.FieldInfo?.RelatedEntity;
3637
+ const relatedEntity = this.getRelatedEntityInfo()?.Name || this.FieldInfo?.RelatedEntity;
2863
3638
  if (!plan || !relatedEntity)
2864
3639
  return;
2865
3640
  const query = this._fkQuery.trim();
@@ -2898,6 +3673,9 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2898
3673
  this._fkInputText = name;
2899
3674
  this.Value = pk;
2900
3675
  this.FKIsMatched = true;
3676
+ this._resolvedFKName = name;
3677
+ this._resolvedFKValue = pk;
3678
+ this._resolvedFKEntityRef = this.IsPolymorphicFK ? this.polymorphicEntityRefValue : null;
2901
3679
  const nameFieldMap = this.FieldInfo?.RelatedEntityNameFieldMap;
2902
3680
  if (nameFieldMap)
2903
3681
  this.Record.Set(nameFieldMap, name);
@@ -2943,8 +3721,8 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2943
3721
  */
2944
3722
  async searchRelatedEntity(query) {
2945
3723
  const plan = this.buildColumnPlan();
2946
- const fieldInfo = this.FieldInfo;
2947
- if (!plan || !fieldInfo?.RelatedEntity)
3724
+ const relatedEntity = this.getRelatedEntityInfo();
3725
+ if (!plan || !relatedEntity)
2948
3726
  return;
2949
3727
  this._fkQuery = query;
2950
3728
  const seq = ++this._fkSearchSeq;
@@ -3301,8 +4079,9 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3301
4079
  }
3302
4080
  FormatValue() {
3303
4081
  const val = this.Value;
3304
- if (val === null || val === undefined)
3305
- return '';
4082
+ if (val === null || val === undefined || val === '') {
4083
+ return this.HasTimeTravelDiff ? '(Empty in this version)' : '';
4084
+ }
3306
4085
  if (val instanceof Date) {
3307
4086
  /**
3308
4087
  * A DATE-ONLY VALUE IS NOT AN INSTANT, AND toLocaleString() TREATS IT AS ONE.
@@ -3385,6 +4164,8 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3385
4164
  this.FKScope = 'primary';
3386
4165
  this._resolvedFKName = undefined;
3387
4166
  this._resolvedFKValue = undefined;
4167
+ this._resolvedFKEntityRef = undefined;
4168
+ this._lastPolymorphicEntityRef = this.IsPolymorphicFK ? this.polymorphicEntityRefValue : undefined;
3388
4169
  this._fkNameLoading = false;
3389
4170
  // Reset validation state for new record
3390
4171
  this._touched = false;
@@ -3398,6 +4179,9 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3398
4179
  if (changes['EditMode'] && !this.EditMode) {
3399
4180
  this._touched = false;
3400
4181
  this._fieldErrors = [];
4182
+ this.ShowOriginalValuePopover = false;
4183
+ this.AutoMergedPreviousValue = undefined;
4184
+ this.ActiveConflict = null;
3401
4185
  }
3402
4186
  // Re-snapshot the edit-mode rendering decision whenever edit mode toggles
3403
4187
  if (changes['EditMode']) {
@@ -3408,6 +4192,15 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3408
4192
  }
3409
4193
  ngOnDestroy() {
3410
4194
  this._destroyed = true;
4195
+ for (const sub of this._coordinatorSubs) {
4196
+ sub.unsubscribe();
4197
+ }
4198
+ this._coordinatorSubs = [];
4199
+ if (this._remoteHighlightTimer) {
4200
+ clearTimeout(this._remoteHighlightTimer);
4201
+ this._remoteHighlightTimer = null;
4202
+ }
4203
+ this.clearHoverPreviewTimers();
3411
4204
  this.sectionHost?.UnregisterField(this);
3412
4205
  // Retire the sequence too, not just the debounce: a lookup still in flight would otherwise
3413
4206
  // land on a destroyed component, reopen the panel and re-arm document listeners with no
@@ -3426,29 +4219,116 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3426
4219
  }
3427
4220
  // ---- Navigation Handlers ----
3428
4221
  /**
3429
- * Handle click on a record FK link in read-only mode.
4222
+ * Handle click on a record FK link (or polymorphic FK link) in read-only mode.
3430
4223
  */
3431
4224
  OnRecordLinkClick(event) {
3432
4225
  event.preventDefault();
3433
4226
  event.stopPropagation();
3434
- if (!this.FieldInfo || !this.Record)
3435
- return;
3436
- const relatedEntityName = this.FieldInfo.RelatedEntity;
3437
- if (!relatedEntityName)
3438
- return;
3439
- const fkValue = this.Value;
3440
- if (!fkValue)
4227
+ const target = ResolveRecordLinkTarget({
4228
+ Record: this.Record,
4229
+ FieldName: this.FieldName,
4230
+ Provider: this.ProviderToUse
4231
+ });
4232
+ if (!target)
3441
4233
  return;
3442
- // Build a CompositeKey for the FK target record using the related entity's PK field
3443
- const relatedFieldName = this.FieldInfo.RelatedEntityFieldName || 'ID';
3444
- const targetKey = new CompositeKey([new KeyValuePair(relatedFieldName, fkValue)]);
3445
4234
  this.Navigate.emit({
3446
4235
  Kind: 'record',
3447
- EntityName: relatedEntityName,
3448
- PrimaryKey: targetKey,
4236
+ EntityName: target.EntityName,
4237
+ PrimaryKey: target.PrimaryKey,
3449
4238
  OpenInNewTab: event.ctrlKey || event.metaKey
3450
4239
  });
3451
4240
  }
4241
+ /**
4242
+ * Propagate inline Quick Edit updates from the linked record preview popover back onto this field's
4243
+ * resolved display name and companion virtual name field on `this.Record`.
4244
+ */
4245
+ OnLinkedRecordQuickEdited(event) {
4246
+ const target = ResolveRecordLinkTarget({
4247
+ Record: this.Record,
4248
+ FieldName: this.FieldName,
4249
+ Provider: this.ProviderToUse
4250
+ });
4251
+ const updatedName = ApplyQuickEditToHostRecord(this.Record, target, event.UpdatedFields);
4252
+ if (updatedName) {
4253
+ this._resolvedFKName = updatedName;
4254
+ }
4255
+ this.cdr.markForCheck();
4256
+ }
4257
+ /**
4258
+ * Open the `<mj-record-preview-popover>` hover card via the shared `MjRecordPreviewPopoverService`.
4259
+ */
4260
+ OnFKLinkMouseEnter(event) {
4261
+ if (!this.RecordLinksEnabled || !this.FieldInfo || !this.Record)
4262
+ return;
4263
+ const anchorEl = event.currentTarget;
4264
+ if (!anchorEl)
4265
+ return;
4266
+ const target = ResolveRecordLinkTarget({
4267
+ Record: this.Record,
4268
+ FieldName: this.FieldName,
4269
+ DisplayName: this.FKDisplayName || this.FormatValue(),
4270
+ Provider: this.ProviderToUse
4271
+ });
4272
+ if (!target)
4273
+ return;
4274
+ const r = anchorEl.getBoundingClientRect();
4275
+ this.FKHoverAnchorRect = {
4276
+ top: r.top,
4277
+ bottom: r.bottom,
4278
+ left: r.left,
4279
+ right: r.right,
4280
+ width: r.width,
4281
+ height: r.height
4282
+ };
4283
+ this.FKHoverTargetKey = target.PrimaryKey;
4284
+ this.ShowFKHoverPreview = true;
4285
+ this.previewPopoverService?.RequestOpen({
4286
+ SourceID: `form-field-${this.FieldName}`,
4287
+ EntityName: target.EntityName,
4288
+ PrimaryKey: target.PrimaryKey,
4289
+ RecordID: target.RecordID,
4290
+ DisplayName: target.DisplayName || this.FKDisplayName || this.FormatValue(),
4291
+ AnchorElement: anchorEl,
4292
+ AnchorRect: this.FKHoverAnchorRect,
4293
+ Provider: this.ProviderToUse,
4294
+ OnNavigate: (navEvent) => this.OnPreviewCardNavigate(navEvent),
4295
+ OnRecordUpdated: (updatedEvent) => this.OnLinkedRecordQuickEdited(updatedEvent)
4296
+ });
4297
+ }
4298
+ /**
4299
+ * Schedule closing the FK hover preview popover when the pointer leaves the link.
4300
+ */
4301
+ OnFKLinkMouseLeave() {
4302
+ this.ShowFKHoverPreview = false;
4303
+ this.previewPopoverService?.RequestClose(`form-field-${this.FieldName}`);
4304
+ }
4305
+ /** Keep the hover preview card open while the pointer is inside the card. */
4306
+ OnPreviewCardMouseEnter() {
4307
+ this.clearHoverPreviewTimers();
4308
+ }
4309
+ /** Close the hover preview card when the pointer leaves the card. */
4310
+ OnPreviewCardMouseLeave() {
4311
+ this.OnFKLinkMouseLeave();
4312
+ }
4313
+ /** Forward navigation from the hover preview card and close it. */
4314
+ OnPreviewCardNavigate(navEvent) {
4315
+ this.clearHoverPreviewTimers();
4316
+ this.ShowFKHoverPreview = false;
4317
+ this.previewPopoverService?.CloseImmediately(`form-field-${this.FieldName}`);
4318
+ this.Navigate.emit(navEvent);
4319
+ this.cdr.markForCheck();
4320
+ }
4321
+ clearHoverPreviewTimers() {
4322
+ if (this._hoverPreviewOpenTimer) {
4323
+ clearTimeout(this._hoverPreviewOpenTimer);
4324
+ this._hoverPreviewOpenTimer = null;
4325
+ }
4326
+ if (this._hoverPreviewCloseTimer) {
4327
+ clearTimeout(this._hoverPreviewCloseTimer);
4328
+ this._hoverPreviewCloseTimer = null;
4329
+ }
4330
+ this.previewPopoverService?.CloseImmediately(`form-field-${this.FieldName}`);
4331
+ }
3452
4332
  /**
3453
4333
  * Handle click on an email link in read-only mode.
3454
4334
  */
@@ -3671,23 +4551,34 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3671
4551
  return this.DateInputValue === '';
3672
4552
  }
3673
4553
  static ɵfac = function MjFormFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MjFormFieldComponent)(); };
3674
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormFieldComponent, selectors: [["mj-form-field"]], hostVars: 2, hostBindings: function MjFormFieldComponent_HostBindings(rf, ctx) { if (rf & 2) {
4554
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormFieldComponent, selectors: [["mj-form-field"]], hostVars: 8, hostBindings: function MjFormFieldComponent_HostBindings(rf, ctx) { if (rf & 2) {
3675
4555
  i0.ɵɵattribute("data-field-name", ctx.HostFieldName)("data-field-label", ctx.HostFieldLabel);
3676
- } }, inputs: { Record: "Record", EditMode: "EditMode", FieldName: "FieldName", Type: "Type", LinkType: "LinkType", ShowLabel: "ShowLabel", FormContext: "FormContext", _deprecatedRecord: [0, "record", "_deprecatedRecord"], _deprecatedFormContext: [0, "formContext", "_deprecatedFormContext"], HideWhenEmptyInReadOnlyMode: "HideWhenEmptyInReadOnlyMode", DisplayNameOverride: "DisplayNameOverride", PossibleValuesOverride: "PossibleValuesOverride", FKDropdownMaxWidth: "FKDropdownMaxWidth", FKHighlightMatches: "FKHighlightMatches", AllowFKCreate: "AllowFKCreate", FKCreatePresentation: "FKCreatePresentation", FKExtraFilter: "FKExtraFilter", FKOrderBy: "FKOrderBy", FKMaxRows: "FKMaxRows", FKLookupOptions: "FKLookupOptions" }, outputs: { ValueChange: "ValueChange", Navigate: "Navigate" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["scopeRow", ""], ["imageFileInput", ""], [1, "mj-forms-field", 3, "mj-forms-field--no-label", "mj-forms-field--readonly", "mj-forms-field--dirty"], [1, "mj-forms-field", "mj-forms-field--editing", 3, "mj-forms-field--no-label", "mj-forms-field--dirty", "mj-forms-field--required-empty", "mj-forms-field--has-error", "mj-forms-field--has-warning"], [1, "mj-forms-field"], [1, "mj-forms-field-label", 3, "innerHTML"], [1, "mj-forms-field-control"], [1, "mj-forms-field-value"], [1, "mj-forms-image"], [1, "mj-forms-color"], [1, "mj-forms-json"], ["title", "View related record", 1, "mj-forms-field-link", "mj-forms-field-link--fk"], ["title", "View related record", 1, "mj-forms-field-link", "mj-forms-field-link--fk", 3, "click"], ["alt", "", 1, "mj-forms-image-preview", 3, "src"], [1, "mj-forms-image-meta"], ["title", "Open image", 1, "mj-forms-field-link"], ["title", "Open image", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-arrow-up-right-from-square", "mj-forms-field-link-icon"], [1, "mj-forms-color-swatch"], ["title", "Send email", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-envelope", "mj-forms-field-link-icon"], ["title", "Open link", 1, "mj-forms-field-link", 3, "click"], ["title", "View related record", 1, "mj-forms-field-link"], ["title", "View related record", 1, "mj-forms-field-link", 3, "click"], [1, "mj-forms-field-value", "mj-forms-field-value--rich"], [1, "mj-forms-field-value", "mj-forms-field-value--rich", 3, "innerHTML"], [1, "mj-forms-field-value", "mj-forms-field-value--code"], [1, "mj-forms-field-value", "mj-forms-field-value--long"], [1, "mj-forms-field-checkbox"], ["type", "checkbox", "disabled", "", 3, "checked"], [3, "data"], [3, "value", "language", "readonly"], [1, "mj-forms-field", "mj-forms-field--editing"], [1, "mj-fk-search", 3, "mj-fk-search--matched", "mj-fk-search--scoped", "mj-fk-search--toggle"], [1, "mj-forms-image", "mj-forms-image--edit"], [1, "mj-forms-color", "mj-forms-color--edit"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "value"], [1, "mj-forms-field-input--code", 3, "value", "language"], [1, "mj-forms-field-validation", "mj-forms-field-validation--error"], [1, "mj-forms-field-validation", "mj-forms-field-validation--warning"], [1, "mj-fk-search"], ["title", "Linked record", 1, "fa-solid", "fa-link", "mj-fk-link-icon"], ["type", "text", "placeholder", "Search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "keydown", "value"], [1, "mj-fk-scope-pill", 3, "mj-fk-scope-pill--open", "title"], ["type", "button", 1, "mj-fk-scope-toggle", 3, "title"], ["title", "Clear", 1, "mj-fk-clear"], [1, "fa-solid", "fa-magnifying-glass", "mj-fk-search-icon"], [1, "mj-fk-dropdown", "mj-fk-dropdown--multi", 3, "ngStyle", "mj-fk-dropdown--above", "mj-fk-dropdown--scope-open"], [1, "mj-fk-scope-pill", 3, "mousedown", "title"], [1, "fa-solid", "fa-magnifying-glass", "mj-fk-scope-pill-icon"], [1, "mj-fk-scope-pill-label"], [1, "fa-solid", "mj-fk-scope-pill-caret"], ["type", "button", 1, "mj-fk-scope-toggle", 3, "mousedown", "title"], ["title", "Clear", 1, "mj-fk-clear", 3, "mousedown"], [1, "fa-solid", "fa-xmark"], [1, "mj-fk-dropdown", "mj-fk-dropdown--multi", 3, "ngStyle"], [1, "mj-fk-scope-menu", 3, "mj-fk-scope-menu--bottom"], [1, "mj-fk-current"], [1, "mj-fk-status"], [1, "mj-fk-status", "mj-fk-status--empty"], [1, "mj-fk-options"], ["type", "button", 1, "mj-fk-create-footer", 3, "title"], [1, "mj-fk-scope-menu"], [1, "mj-fk-scope-grp"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "mj-fk-scope-divider"], [1, "mj-fk-scope-mi", 3, "mousedown"], [1, "mj-fk-col-reorder"], [1, "mj-fk-scope-mi-label"], [1, "mj-fk-col-eye-slot"], ["type", "button", 1, "mj-fk-col-toggle", 3, "mj-fk-col-toggle--on", "title"], ["type", "button", "title", "Move column up", 1, "mj-fk-col-move", "mj-fk-col-move--up", 3, "mousedown", "disabled"], [1, "fa-solid", "fa-chevron-up"], ["type", "button", "title", "Move column down", 1, "mj-fk-col-move", "mj-fk-col-move--down", 3, "mousedown", "disabled"], [1, "fa-solid", "fa-chevron-down"], ["type", "button", 1, "mj-fk-col-toggle", 3, "mousedown", "title"], [1, "fa-solid"], [1, "mj-fk-current-head"], [1, "fa-solid", "fa-circle-check"], ["title", "Keep this selection", 1, "mj-fk-current-row", 3, "mousedown"], [1, "mj-fk-current-icon", 3, "class"], [1, "mj-fk-current-name", 3, "innerHTML"], [1, "mj-fk-current-detail"], ["type", "button", "title", "Clear selection", 1, "mj-fk-current-clear", 3, "mousedown"], [1, "mj-fk-current-icon"], [1, "fa-solid", "fa-circle-notch", "fa-spin"], [1, "fa-solid", "fa-magnifying-glass"], [1, "mj-fk-grid"], [1, "mj-fk-grid-row", "mj-fk-grid-row--header"], [1, "mj-fk-hcell", "mj-fk-hcell--icon"], [1, "mj-fk-hcell", 3, "title"], [1, "mj-fk-hcell", 3, "mousedown", "title"], [1, "mj-fk-hcell-label"], ["title", "Drag to resize", 1, "mj-fk-resizer", 3, "mousedown"], [1, "mj-fk-grid-row", "mj-fk-group-head"], [1, "mj-fk-grid-row", 3, "mj-fk-grid-row--active", "mj-fk-grid-row--selected"], [1, "mj-fk-grid-row", "mj-fk-group-head", 3, "mousedown"], [1, "mj-fk-grid-row", 3, "mousedown", "mouseenter"], [1, "mj-fk-cell", "mj-fk-cell--icon"], [3, "class"], [1, "mj-fk-cell", "mj-fk-cell--name", 3, "mj-fk-cell--fill"], [1, "mj-fk-cell", 3, "mj-fk-cell--fill", "title"], [1, "mj-fk-cell", "mj-fk-cell--name"], ["title", "Currently selected", 1, "fa-solid", "fa-check", "mj-fk-selected-check"], [1, "mj-fk-name-line"], [3, "innerHTML"], [1, "mj-fk-chip", 3, "mj-fk-chip--info", "mj-fk-chip--warn"], [1, "mj-fk-secondary"], [1, "mj-fk-chip"], [1, "mj-fk-cell", 3, "title"], ["type", "button", 1, "mj-fk-create-footer", 3, "mousedown", "title"], [1, "fa-solid", "fa-plus", "mj-fk-create-icon"], [1, "mj-fk-create-label"], ["aria-hidden", "true", 1, "mj-forms-image-preview", "mj-forms-image-preview--empty"], [1, "mj-forms-image-hint"], [1, "mj-forms-image-actions"], ["type", "file", "accept", "image/png,image/jpeg,image/gif,image/webp,image/svg+xml", 1, "mj-forms-image-file", 3, "change"], ["type", "button", 1, "mj-forms-image-btn", 3, "click"], [1, "fa-solid", "fa-upload"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost"], ["type", "text", "placeholder", "https://\u2026 or paste a data URI", 1, "mj-forms-field-input", 3, "input", "value"], [1, "fa-regular", "fa-image"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost", 3, "click"], ["type", "color", 1, "mj-forms-color-picker", 3, "input", "value"], ["type", "text", "placeholder", "#RRGGBB", 1, "mj-forms-field-input", "mj-forms-color-hex", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "input", "blur", "value"], [1, "mj-forms-field-input--code", 3, "change", "value", "language"], ["type", "text", 1, "mj-forms-field-input", 3, "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "value"], ["type", "text", 1, "mj-forms-field-input", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "input", "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "change", "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "change", "value"], ["type", "checkbox", 3, "change", "checked"], ["tabindex", "0", 1, "mj-custom-select-trigger", 3, "click", "blur"], [1, "mj-custom-select-value"], [1, "fa-solid", "fa-chevron-down", "mj-custom-select-chevron"], [1, "mj-fk-dropdown", 3, "ngStyle", "mj-fk-dropdown--above"], [1, "mj-fk-dropdown", 3, "ngStyle"], [1, "mj-fk-option", 3, "mj-fk-option--selected"], [1, "mj-fk-option", 3, "mousedown"], ["type", "text", "placeholder", "Type to search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "value"], [1, "mj-fk-option"], ["type", "text", 1, "mj-forms-field-input", 3, "change", "value"], [1, "mj-forms-field-validation-item"], [1, "fa-solid", "fa-circle-exclamation"], [1, "fa-solid", "fa-triangle-exclamation"]], template: function MjFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
4556
+ i0.ɵɵclassProp("mj-forms-field--remotely-updated", ctx.IsRemotelyUpdated)("mj-forms-field--conflict", ctx.HasActiveConflict)("mj-forms-field--time-travel-diff", ctx.HasTimeTravelDiff);
4557
+ } }, inputs: { Record: "Record", EditMode: "EditMode", FieldName: "FieldName", Type: "Type", LinkType: "LinkType", ShowLabel: "ShowLabel", FormContext: "FormContext", _deprecatedRecord: [0, "record", "_deprecatedRecord"], _deprecatedFormContext: [0, "formContext", "_deprecatedFormContext"], HideWhenEmptyInReadOnlyMode: "HideWhenEmptyInReadOnlyMode", DisplayNameOverride: "DisplayNameOverride", PossibleValuesOverride: "PossibleValuesOverride", FKDropdownMaxWidth: "FKDropdownMaxWidth", FKHighlightMatches: "FKHighlightMatches", AllowFKCreate: "AllowFKCreate", FKCreatePresentation: "FKCreatePresentation", FKExtraFilter: "FKExtraFilter", FKOrderBy: "FKOrderBy", FKMaxRows: "FKMaxRows", FKLookupOptions: "FKLookupOptions" }, outputs: { ValueChange: "ValueChange", Navigate: "Navigate" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: [["fieldEditIndicatorsTpl", ""], ["scopeRow", ""], ["imageFileInput", ""], [1, "mj-forms-field", 3, "mj-forms-field--no-label", "mj-forms-field--readonly", "mj-forms-field--dirty", "mj-forms-field--time-travel", "mj-forms-field--time-travel-diff"], [1, "mj-forms-field", "mj-forms-field--editing", 3, "mj-forms-field--no-label", "mj-forms-field--dirty", "mj-forms-field--conflict", "mj-forms-field--required-empty", "mj-forms-field--has-error", "mj-forms-field--has-warning"], [1, "mj-forms-field"], [1, "mj-forms-field-label-row"], [1, "mj-forms-field-control"], [1, "mj-forms-field-value"], [1, "mj-forms-image"], [1, "mj-forms-color"], [1, "mj-forms-json"], ["role", "status", 1, "mj-forms-time-travel-bar"], [1, "mj-forms-field-label", 3, "innerHTML"], ["title", "This field's value at the previewed historical version differs from the current live record", 1, "mj-forms-time-travel-badge"], ["aria-hidden", "true", 1, "fa-solid", "fa-clock-rotate-left"], [1, "mj-forms-poly-fk-read"], [1, "mj-forms-field-link", "mj-forms-field-link--fk", "mj-forms-field-link--poly", 3, "mjRecordLink", "FieldName", "DisplayName", "RecordLinksEnabled", "Provider"], ["type", "button", "aria-label", "Copy Record ID", 1, "mj-forms-copy-id-btn", 3, "is-copied"], [1, "mj-forms-field-link", "mj-forms-field-link--fk", "mj-forms-field-link--poly", 3, "Navigate", "RecordUpdated", "mjRecordLink", "FieldName", "DisplayName", "RecordLinksEnabled", "Provider"], [3, "class"], [1, "fa-solid", "fa-arrow-up-right-from-square", "mj-forms-field-link-icon"], ["type", "button", "aria-label", "Copy Record ID", 1, "mj-forms-copy-id-btn", 3, "click"], ["aria-hidden", "true"], [1, "mj-forms-copy-id-btn__feedback"], [1, "mj-forms-field-link", "mj-forms-field-link--fk", 3, "mjRecordLink", "FieldName", "DisplayName", "RecordLinksEnabled", "Provider"], [1, "mj-forms-field-link", "mj-forms-field-link--fk", 3, "Navigate", "RecordUpdated", "mjRecordLink", "FieldName", "DisplayName", "RecordLinksEnabled", "Provider"], ["alt", "", 1, "mj-forms-image-preview", 3, "src"], [1, "mj-forms-image-meta"], ["title", "Open image", 1, "mj-forms-field-link"], ["title", "Open image", 1, "mj-forms-field-link", 3, "click"], [1, "mj-forms-color-swatch"], ["title", "Send email", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-envelope", "mj-forms-field-link-icon"], ["title", "Open link", 1, "mj-forms-field-link", 3, "click"], ["title", "View related record", 1, "mj-forms-field-link", 3, "mjRecordLink", "FieldName", "DisplayName", "RecordLinksEnabled", "Provider"], ["title", "View related record", 1, "mj-forms-field-link", 3, "Navigate", "RecordUpdated", "mjRecordLink", "FieldName", "DisplayName", "RecordLinksEnabled", "Provider"], [1, "mj-forms-field-value", "mj-forms-field-value--rich"], [1, "mj-forms-field-value", "mj-forms-field-value--rich", 3, "innerHTML"], [1, "mj-forms-field-value", "mj-forms-field-value--code"], [1, "mj-forms-field-value", "mj-forms-field-value--long"], [1, "mj-forms-field-checkbox"], ["type", "checkbox", "disabled", "", 3, "checked"], [3, "data"], [3, "value", "language", "readonly"], [1, "mj-forms-time-travel-current", 3, "title"], ["aria-hidden", "true", 1, "fa-solid", "fa-bolt"], ["type", "button", "title", "Restore only this field to its value from this historical version", 1, "mj-forms-time-travel-restore-btn", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-rotate-left"], [1, "mj-forms-field", "mj-forms-field--editing"], [1, "mj-fk-search", 3, "mj-fk-search--matched", "mj-fk-search--scoped", "mj-fk-search--toggle"], [1, "mj-forms-image", "mj-forms-image--edit"], [1, "mj-forms-color", "mj-forms-color--edit"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "value"], [1, "mj-forms-field-input--code", 3, "value", "language"], [1, "mj-forms-field-validation", "mj-forms-field-validation--error"], [1, "mj-forms-field-validation", "mj-forms-field-validation--warning"], ["role", "alert", 1, "mj-forms-field__conflict-card"], [4, "ngTemplateOutlet"], [1, "mj-fk-search"], ["title", "Linked record", 1, "fa-solid", "fa-link", "mj-fk-link-icon"], ["type", "text", "placeholder", "Search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "keydown", "value"], [1, "mj-fk-scope-pill", 3, "mj-fk-scope-pill--open", "title"], ["type", "button", 1, "mj-fk-scope-toggle", 3, "title"], ["title", "Clear", 1, "mj-fk-clear"], [1, "fa-solid", "fa-magnifying-glass", "mj-fk-search-icon"], [1, "mj-fk-dropdown", "mj-fk-dropdown--multi", 3, "ngStyle", "mj-fk-dropdown--above", "mj-fk-dropdown--scope-open"], [1, "mj-fk-scope-pill", 3, "mousedown", "title"], [1, "fa-solid", "fa-magnifying-glass", "mj-fk-scope-pill-icon"], [1, "mj-fk-scope-pill-label"], [1, "fa-solid", "mj-fk-scope-pill-caret"], ["type", "button", 1, "mj-fk-scope-toggle", 3, "mousedown", "title"], ["title", "Clear", 1, "mj-fk-clear", 3, "mousedown"], [1, "fa-solid", "fa-xmark"], [1, "mj-fk-dropdown", "mj-fk-dropdown--multi", 3, "ngStyle"], [1, "mj-fk-scope-menu", 3, "mj-fk-scope-menu--bottom"], [1, "mj-fk-current"], [1, "mj-fk-status"], [1, "mj-fk-status", "mj-fk-status--empty"], [1, "mj-fk-options"], ["type", "button", 1, "mj-fk-create-footer", 3, "title"], [1, "mj-fk-scope-menu"], [1, "mj-fk-scope-grp"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "mj-fk-scope-divider"], [1, "mj-fk-scope-mi", 3, "mousedown"], [1, "mj-fk-col-reorder"], [1, "mj-fk-scope-mi-label"], [1, "mj-fk-col-eye-slot"], ["type", "button", 1, "mj-fk-col-toggle", 3, "mj-fk-col-toggle--on", "title"], ["type", "button", "title", "Move column up", 1, "mj-fk-col-move", "mj-fk-col-move--up", 3, "mousedown", "disabled"], [1, "fa-solid", "fa-chevron-up"], ["type", "button", "title", "Move column down", 1, "mj-fk-col-move", "mj-fk-col-move--down", 3, "mousedown", "disabled"], [1, "fa-solid", "fa-chevron-down"], ["type", "button", 1, "mj-fk-col-toggle", 3, "mousedown", "title"], [1, "fa-solid"], [1, "mj-fk-current-head"], [1, "fa-solid", "fa-circle-check"], ["title", "Keep this selection", 1, "mj-fk-current-row", 3, "mousedown"], [1, "mj-fk-current-icon", 3, "class"], [1, "mj-fk-current-name", 3, "innerHTML"], [1, "mj-fk-current-detail"], ["type", "button", "title", "Clear selection", 1, "mj-fk-current-clear", 3, "mousedown"], [1, "mj-fk-current-icon"], [1, "fa-solid", "fa-circle-notch", "fa-spin"], [1, "fa-solid", "fa-magnifying-glass"], [1, "mj-fk-grid"], [1, "mj-fk-grid-row", "mj-fk-grid-row--header"], [1, "mj-fk-hcell", "mj-fk-hcell--icon"], [1, "mj-fk-hcell", 3, "title"], [1, "mj-fk-hcell", 3, "mousedown", "title"], [1, "mj-fk-hcell-label"], ["title", "Drag to resize", 1, "mj-fk-resizer", 3, "mousedown"], [1, "mj-fk-grid-row", "mj-fk-group-head"], [1, "mj-fk-grid-row", 3, "mj-fk-grid-row--active", "mj-fk-grid-row--selected"], [1, "mj-fk-grid-row", "mj-fk-group-head", 3, "mousedown"], [1, "mj-fk-grid-row", 3, "mousedown", "mouseenter"], [1, "mj-fk-cell", "mj-fk-cell--icon"], [1, "mj-fk-cell", "mj-fk-cell--name", 3, "mj-fk-cell--fill"], [1, "mj-fk-cell", 3, "mj-fk-cell--fill", "title"], [1, "mj-fk-cell", "mj-fk-cell--name"], ["title", "Currently selected", 1, "fa-solid", "fa-check", "mj-fk-selected-check"], [1, "mj-fk-name-line"], [3, "innerHTML"], [1, "mj-fk-chip", 3, "mj-fk-chip--info", "mj-fk-chip--warn"], [1, "mj-fk-secondary"], [1, "mj-fk-chip"], [1, "mj-fk-cell", 3, "title"], ["type", "button", 1, "mj-fk-create-footer", 3, "mousedown", "title"], [1, "fa-solid", "fa-plus", "mj-fk-create-icon"], [1, "mj-fk-create-label"], ["aria-hidden", "true", 1, "mj-forms-image-preview", "mj-forms-image-preview--empty"], [1, "mj-forms-image-hint"], [1, "mj-forms-image-actions"], ["type", "file", "accept", "image/png,image/jpeg,image/gif,image/webp,image/svg+xml", 1, "mj-forms-image-file", 3, "change"], ["type", "button", 1, "mj-forms-image-btn", 3, "click"], [1, "fa-solid", "fa-upload"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost"], ["type", "text", "placeholder", "https://\u2026 or paste a data URI", 1, "mj-forms-field-input", 3, "input", "value"], [1, "fa-regular", "fa-image"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost", 3, "click"], ["type", "color", 1, "mj-forms-color-picker", 3, "input", "value"], ["type", "text", "placeholder", "#RRGGBB", 1, "mj-forms-field-input", "mj-forms-color-hex", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "input", "blur", "value"], [1, "mj-forms-field-input--code", 3, "change", "value", "language"], ["type", "text", 1, "mj-forms-field-input", 3, "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "value"], ["type", "text", 1, "mj-forms-field-input", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "input", "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "change", "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "change", "value"], ["type", "checkbox", 3, "change", "checked"], ["tabindex", "0", 1, "mj-custom-select-trigger", 3, "click", "blur"], [1, "mj-custom-select-value"], [1, "fa-solid", "fa-chevron-down", "mj-custom-select-chevron"], [1, "mj-fk-dropdown", 3, "ngStyle", "mj-fk-dropdown--above"], [1, "mj-fk-dropdown", 3, "ngStyle"], [1, "mj-fk-option", 3, "mj-fk-option--selected"], [1, "mj-fk-option", 3, "mousedown"], ["type", "text", "placeholder", "Type to search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "value"], [1, "mj-fk-option"], ["type", "text", 1, "mj-forms-field-input", 3, "change", "value"], [1, "mj-forms-field-validation-item"], [1, "fa-solid", "fa-circle-exclamation"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "mj-forms-field__conflict-header"], [1, "mj-forms-field__conflict-comparison"], [1, "mj-forms-field__conflict-col", "mj-forms-field__conflict-col--local"], [1, "mj-forms-field__conflict-col-label"], [1, "mj-forms-field__conflict-col-value"], [1, "mj-forms-field__conflict-col", "mj-forms-field__conflict-col--remote"], [1, "mj-forms-field__conflict-actions"], ["type", "button", 1, "mj-forms-field__conflict-btn", "mj-forms-field__conflict-btn--keep", 3, "click"], [1, "fa-solid", "fa-check"], ["type", "button", 1, "mj-forms-field__conflict-btn", "mj-forms-field__conflict-btn--use-remote", 3, "click"], [1, "fa-solid", "fa-arrow-down-long"], [1, "mj-forms-field__history-wrap"], [1, "mj-forms-field__auto-merged-badge", 3, "title"], [1, "mj-forms-field__history-wrap", 3, "mouseenter", "mouseleave"], ["type", "button", "title", "Original value", "aria-label", "Original value", 1, "mj-forms-field__history-trigger", 3, "click"], [1, "fa-solid", "fa-clock-rotate-left"], ["role", "dialog", "aria-label", "Original value", 1, "mj-forms-field__history-popover"], [1, "mj-forms-field__history-popover-header"], [1, "mj-forms-field__history-popover-value"], ["type", "button", 1, "mj-forms-field__restore-btn", 3, "click"], [1, "fa-solid", "fa-rotate-left"], [1, "fa-solid", "fa-bolt"], [1, "mj-forms-field__auto-merged-tooltip"]], template: function MjFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
3677
4558
  i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Template, 2, 2);
4559
+ i0.ɵɵtemplate(1, MjFormFieldComponent_ng_template_1_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
3678
4560
  } if (rf & 2) {
3679
4561
  i0.ɵɵconditional(!ctx.IsClaimedByContribution && !ctx.IsFieldDeprecatedOrDisabled && ctx.IsFieldReadableByUser && ctx.Record && (ctx.Record.IsSaved || !ctx.IsFieldReadOnly) && !ctx.ShouldHideField ? 0 : -1);
3680
- } }, dependencies: [i1.NgTemplateOutlet, i1.NgStyle, i2.MarkdownComponent, i3.CodeEditorComponent, i4.MJSafeRichHtmlPipe], styles: ["\n\n\n[_nghost-%COMP%] {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n\n\n.mj-forms-field--no-label[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n}\n\n\n.mj-forms-field--editing[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 6px;\n margin: 0 -8px;\n padding: 8px 8px;\n}\n\n\n\n\n.mj-forms-field-label[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n padding-top: 2px;\n word-break: break-word;\n}\n\n\n\n\n.mj-forms-field-control[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-field-control[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n\n\n\n.mj-forms-field--dirty[_ngcontent-%COMP%] .mj-forms-field-label[_ngcontent-%COMP%]::after {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--mj-status-warning);\n margin-left: 6px;\n vertical-align: middle;\n}\n\n\n\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%]:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-custom-select-trigger[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n}\n\n\n\n\n.mj-forms-field-value[_ngcontent-%COMP%] {\n font-size: 14px;\n color: var(--mj-text-primary);\n min-height: 24px;\n display: flex;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n.mj-forms-field-value--long[_ngcontent-%COMP%] {\n white-space: pre-line;\n max-height: 300px;\n overflow: auto;\n}\n\n\n.mj-forms-field-value--rich[_ngcontent-%COMP%] {\n display: block;\n align-items: initial;\n max-height: 480px;\n overflow: auto;\n width: 100%;\n}\n\n\n.mj-forms-field-value--code[_ngcontent-%COMP%] {\n display: block;\n align-items: initial;\n width: 100%;\n}\n\n.mj-forms-field-value--code[_ngcontent-%COMP%] mj-code-editor[_ngcontent-%COMP%], \n.mj-forms-field-input--code[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n min-height: 160px;\n max-height: 480px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius, 4px);\n overflow: auto;\n}\n\n\n.mj-forms-field--readonly[_ngcontent-%COMP%] {\n opacity: 0.7;\n}\n\n.mj-forms-field--readonly[_ngcontent-%COMP%] .mj-forms-field-value[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n}\n\n\n\n\n.mj-forms-field-link[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-brand-primary);\n cursor: pointer;\n font-weight: 400;\n font-size: 14px;\n transition: color var(--mj-transition-base);\n text-decoration: none;\n}\n\n.mj-forms-field-link[_ngcontent-%COMP%]:hover {\n color: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-field-link-icon[_ngcontent-%COMP%] {\n font-size: 11px;\n opacity: 0;\n transition: opacity var(--mj-transition-base);\n}\n\n.mj-forms-field-link[_ngcontent-%COMP%]:hover .mj-forms-field-link-icon[_ngcontent-%COMP%] {\n opacity: 1;\n}\n\n\n.mj-forms-field-link--fk[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 400;\n}\n\n\n\n\n.mj-forms-field-input[_ngcontent-%COMP%] {\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-forms-field-input[_ngcontent-%COMP%]:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-forms-field-input[_ngcontent-%COMP%]::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n\n.mj-forms-field-input--textarea[_ngcontent-%COMP%] {\n resize: vertical;\n min-height: 60px;\n border: 1.5px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 8px 10px;\n background: var(--mj-bg-surface);\n font-family: inherit;\n}\n\n.mj-forms-field-input--textarea[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n background: var(--mj-bg-surface);\n padding: 8px 10px;\n border-radius: 6px;\n}\n\n\n.mj-forms-field-input--number[_ngcontent-%COMP%] {\n max-width: 200px;\n}\n\n\n.mj-forms-field-input--date[_ngcontent-%COMP%] {\n max-width: 220px;\n}\n\n\n\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] {\n appearance: none;\n width: 18px;\n height: 18px;\n border: 2px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n position: relative;\n transition: all var(--mj-transition-base) ease;\n flex-shrink: 0;\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:checked {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:checked::after {\n content: '';\n position: absolute;\n left: 5px;\n top: 1px;\n width: 5px;\n height: 9px;\n border: solid var(--mj-text-inverse);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n\n\n\n.mj-custom-select-trigger[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n cursor: pointer;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-custom-select-trigger[_ngcontent-%COMP%]:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-custom-select-value[_ngcontent-%COMP%] {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-custom-select-value--placeholder[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-custom-select-chevron[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted);\n transition: transform var(--mj-transition-base) ease;\n flex-shrink: 0;\n margin-left: 8px;\n}\n\n.mj-custom-select-chevron--open[_ngcontent-%COMP%] {\n transform: rotate(180deg);\n}\n\n\n\n\n.mj-fk-search[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 28px;\n}\n\n.mj-fk-search-icon[_ngcontent-%COMP%] {\n position: absolute;\n right: 4px;\n color: var(--mj-text-muted);\n font-size: 12px;\n pointer-events: none;\n}\n\n.mj-fk-clear[_ngcontent-%COMP%] {\n position: absolute;\n right: 2px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 11px;\n padding: 4px 6px;\n line-height: 1;\n border-radius: 3px;\n transition: all var(--mj-transition-base);\n}\n\n.mj-fk-clear[_ngcontent-%COMP%]:hover {\n color: var(--mj-status-error);\n background: color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n\n\n.mj-fk-search--matched[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom: 2px solid var(--mj-brand-primary);\n}\n\n\n\n.mj-fk-link-icon[_ngcontent-%COMP%] {\n position: absolute;\n right: 26px;\n color: var(--mj-brand-primary);\n font-size: 10px;\n pointer-events: none;\n z-index: 1;\n}\n\n\n.mj-forms-field-input--linked[_ngcontent-%COMP%] {\n padding-right: 46px;\n}\n\n\n\n\n\n.mj-fk-search--scoped[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 150px;\n}\n\n.mj-fk-scope-pill[_ngcontent-%COMP%] {\n position: absolute;\n right: 30px;\n \n top: 50%;\n transform: translateY(-50%);\n display: inline-flex;\n align-items: center;\n gap: 5px;\n max-width: 120px;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n \n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: background var(--mj-transition-base), border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-pill[_ngcontent-%COMP%]:hover, \n.mj-fk-scope-pill--open[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n\n\n\n.mj-fk-search--toggle[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 178px;\n}\n\n.mj-fk-search--scoped.mj-fk-search--toggle[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 306px;\n}\n\n.mj-fk-search--scoped[_ngcontent-%COMP%] .mj-fk-scope-toggle[_ngcontent-%COMP%] {\n right: 158px;\n}\n\n.mj-fk-scope-toggle[_ngcontent-%COMP%] {\n position: absolute;\n right: 30px;\n top: 50%;\n transform: translateY(-50%);\n max-width: 140px;\n overflow: hidden;\n text-overflow: ellipsis;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-toggle[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n\n\n.mj-fk-grid-row.mj-fk-group-head[_ngcontent-%COMP%] {\n display: block;\n grid-column: 1 / -1;\n padding: 8px 12px 2px;\n font-size: var(--mj-text-xs);\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n cursor: default;\n}\n\n\n.mj-fk-name-line[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.mj-fk-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n font-size: var(--mj-text-xs);\n font-weight: 600;\n color: var(--mj-text-muted);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n padding: 1px 6px;\n white-space: nowrap;\n}\n\n.mj-fk-chip--info[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-chip--warn[_ngcontent-%COMP%] {\n border-color: var(--mj-status-warning);\n color: var(--mj-text-secondary);\n}\n\n\n\n.mj-fk-secondary[_ngcontent-%COMP%] {\n display: block;\n flex-basis: 100%;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-icon[_ngcontent-%COMP%] {\n font-size: 9px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-pill-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-caret[_ngcontent-%COMP%] {\n font-size: 8px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n\n\n\n.mj-fk-scope-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: 4px;\n right: 8px;\n z-index: 5;\n min-width: 180px;\n max-width: calc(100vw - 24px);\n max-height: 260px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n box-shadow: var(--mj-shadow-lg);\n padding: 5px;\n animation: _ngcontent-%COMP%_mj-dropdown-in 120ms ease;\n}\n\n\n\n.mj-fk-scope-menu--bottom[_ngcontent-%COMP%] {\n top: auto;\n bottom: 4px;\n}\n\n.mj-fk-scope-grp[_ngcontent-%COMP%] {\n font-size: 10px;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-text-muted);\n padding: 7px 10px 4px;\n font-weight: 700;\n}\n\n.mj-fk-scope-mi[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 7px 10px;\n font-size: 13px;\n border-radius: 5px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-fk-scope-mi[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-scope-mi--on[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n\n\n.mj-fk-col-reorder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 22px;\n flex-shrink: 0;\n}\n\n.mj-fk-col-move[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 10px;\n padding: 0;\n background: transparent;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 8px;\n opacity: 0; \n transition: opacity var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-mi[_ngcontent-%COMP%]:hover .mj-fk-col-move[_ngcontent-%COMP%]:not(:disabled) {\n opacity: 0.8;\n}\n\n.mj-fk-col-move[_ngcontent-%COMP%]:hover:not(:disabled) {\n opacity: 1;\n color: var(--mj-brand-primary);\n}\n\n\n.mj-fk-col-move[_ngcontent-%COMP%]:disabled {\n opacity: 0 !important;\n cursor: default;\n}\n\n.mj-fk-scope-mi-icon[_ngcontent-%COMP%] {\n width: 14px;\n font-size: 11px;\n opacity: 0.75;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-mi-label[_ngcontent-%COMP%] {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n\n.mj-fk-col-eye-slot[_ngcontent-%COMP%] {\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n\n.mj-fk-col-toggle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-col-toggle[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-col-toggle--on[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-scope-divider[_ngcontent-%COMP%] {\n height: 1px;\n background: var(--mj-border-subtle);\n margin: 4px 6px;\n}\n\n\n\n@media (max-width: 560px) {\n .mj-fk-search--scoped[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 116px;\n }\n .mj-fk-scope-pill[_ngcontent-%COMP%] {\n max-width: 88px;\n }\n .mj-fk-scope-menu[_ngcontent-%COMP%] {\n min-width: 160px;\n }\n .mj-fk-scope-mi[_ngcontent-%COMP%] {\n padding: 10px 10px;\n }\n}\n\n\n\n\n.mj-fk-dropdown[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n animation: _ngcontent-%COMP%_mj-dropdown-in 150ms ease;\n}\n\n.mj-fk-dropdown--above[_ngcontent-%COMP%] {\n animation: _ngcontent-%COMP%_mj-dropdown-in-above 150ms ease;\n}\n\n.mj-fk-option[_ngcontent-%COMP%] {\n padding: 10px 14px;\n font-size: 14px;\n color: var(--mj-text-primary);\n cursor: pointer;\n transition: background var(--mj-transition-base);\n border-radius: 6px;\n}\n\n.mj-fk-option[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n}\n\n.mj-fk-option--selected[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-option--selected[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n\n\n\n\n.mj-fk-dropdown--multi[_ngcontent-%COMP%] {\n padding: 4px;\n \n\n overflow: hidden;\n max-height: none;\n}\n\n\n\n\n.mj-fk-dropdown--multi[_ngcontent-%COMP%] .mj-fk-options[_ngcontent-%COMP%] {\n overflow: auto;\n max-height: 260px;\n}\n\n\n\n.mj-fk-dropdown--scope-open[_ngcontent-%COMP%] {\n overflow: visible;\n}\n\n\n\n\n\n\n.mj-fk-grid[_ngcontent-%COMP%] {\n display: grid;\n width: 100%;\n min-width: max-content;\n align-items: stretch;\n}\n\n\n\n\n.mj-fk-grid-row[_ngcontent-%COMP%] {\n display: contents;\n}\n\n\n.mj-fk-hcell[_ngcontent-%COMP%] {\n position: sticky;\n top: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 7px 12px;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-elevated);\n border-bottom: 1px solid var(--mj-border-default);\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n\n.mj-fk-hcell[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-hcell--icon[_ngcontent-%COMP%] {\n cursor: default;\n padding: 7px 8px;\n}\n\n.mj-fk-hcell--icon[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-elevated);\n}\n\n.mj-fk-hcell-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-sort-icon[_ngcontent-%COMP%] {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n\n.mj-fk-sort-icon--idle[_ngcontent-%COMP%] {\n opacity: 0.35;\n}\n\n\n.mj-fk-cell[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: 8px 12px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 320px;\n cursor: pointer;\n}\n\n\n\n.mj-fk-cell--fill[_ngcontent-%COMP%] {\n max-width: none;\n}\n\n\n\n.mj-fk-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.mj-fk-cell--icon[_ngcontent-%COMP%] {\n justify-content: center;\n padding: 8px;\n max-width: none;\n color: var(--mj-text-muted);\n font-size: 13px;\n}\n\n.mj-fk-cell--name[_ngcontent-%COMP%] {\n font-weight: 500;\n font-size: 14px;\n color: var(--mj-text-primary);\n gap: 6px;\n \n flex-wrap: wrap;\n}\n\n.mj-fk-selected-check[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 11px;\n flex-shrink: 0;\n}\n\n\n\n.mj-fk-grid-row--active[_ngcontent-%COMP%] > .mj-fk-cell[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n}\n\n\n\n.mj-fk-grid-row--selected[_ngcontent-%COMP%] > .mj-fk-cell[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 6%, transparent);\n}\n\n.mj-fk-grid-row--selected[_ngcontent-%COMP%] > .mj-fk-cell--name[_ngcontent-%COMP%] {\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n\n\n\n\n.mj-fk-cell--name[_ngcontent-%COMP%] .mj-forms-search-highlight, \n.mj-fk-cell[_ngcontent-%COMP%] .mj-forms-search-highlight {\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n\n.mj-fk-resizer[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n right: 0;\n width: 7px;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n}\n\n.mj-fk-resizer[_ngcontent-%COMP%]::after {\n content: '';\n position: absolute;\n top: 20%;\n right: 2px;\n width: 2px;\n height: 60%;\n background: transparent;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-hcell[_ngcontent-%COMP%]:hover .mj-fk-resizer[_ngcontent-%COMP%]::after, \n.mj-fk-resizer[_ngcontent-%COMP%]:hover::after {\n background: var(--mj-border-strong);\n}\n\n\n.mj-fk-status[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 14px;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-status[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.mj-fk-status--empty[_ngcontent-%COMP%] {\n font-style: italic;\n}\n\n\n\n.mj-fk-create-footer[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 9px;\n width: 100%;\n padding: 10px 14px;\n background: var(--mj-bg-surface-card);\n border: none;\n border-top: 1px solid var(--mj-border-default);\n color: var(--mj-brand-primary);\n font-size: 13px;\n font-weight: 600;\n font-family: inherit;\n text-align: left;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-create-footer[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-create-icon[_ngcontent-%COMP%] {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n.mj-fk-create-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n\n\n\n.mj-fk-current[_ngcontent-%COMP%] {\n border-bottom: 1px solid var(--mj-border-default);\n background: color-mix(in srgb, var(--mj-brand-primary) 7%, var(--mj-bg-surface-card));\n animation: _ngcontent-%COMP%_mj-fk-current-in 220ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n@keyframes _ngcontent-%COMP%_mj-fk-current-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mj-fk-current-head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 8px 12px 3px;\n font-size: 10px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-current-head[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 10px;\n}\n\n.mj-fk-current-row[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 6px 12px 10px;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n\n.mj-fk-current-row[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: 0;\n top: 4px;\n bottom: 8px;\n width: 3px;\n border-radius: 0 2px 2px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-fk-current-row[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-fk-current-icon[_ngcontent-%COMP%] {\n flex-shrink: 0;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-current-name[_ngcontent-%COMP%] {\n font-weight: 600;\n font-size: 14px;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-detail[_ngcontent-%COMP%] {\n font-size: 13px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-clear[_ngcontent-%COMP%] {\n margin-left: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-current-clear[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n@keyframes _ngcontent-%COMP%_mj-dropdown-in {\n from { opacity: 0; transform: translateY(-4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@keyframes _ngcontent-%COMP%_mj-dropdown-in-above {\n from { opacity: 0; transform: translateY(4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n\n\n\n.mj-forms-field-label[_ngcontent-%COMP%] .mj-forms-search-highlight {\n \n\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n\n\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%]:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-status-error);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-custom-select-trigger[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n\n\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%]:focus {\n background: color-mix(in srgb, var(--mj-status-warning) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-status-warning);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-warning) 8%, transparent);\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-custom-select-trigger[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n\n\n\n.mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 2;\n display: flex;\n flex-direction: column;\n gap: 2px;\n margin-top: -2px;\n overflow: hidden;\n animation: _ngcontent-%COMP%_mj-validation-slide-in 200ms ease-out;\n}\n\n.mj-forms-field-validation-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n font-size: 12px;\n line-height: 1.4;\n padding: 3px 0 1px;\n}\n\n.mj-forms-field-validation-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n margin-top: 2px;\n flex-shrink: 0;\n}\n\n\n.mj-forms-field-validation--error[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n.mj-forms-field-validation--error[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n\n.mj-forms-field-validation--warning[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] {\n color: var(--mj-status-warning-text);\n}\n\n.mj-forms-field-validation--warning[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n}\n\n\n\n\n.mj-forms-image[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-image-preview[_ngcontent-%COMP%] {\n width: 72px;\n height: 72px;\n object-fit: cover;\n object-position: center;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n display: block;\n}\n\n.mj-forms-image-preview--empty[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 22px;\n}\n\n.mj-forms-image-meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-image-hint[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n}\n\n.mj-forms-image-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-image-file[_ngcontent-%COMP%] {\n display: none;\n}\n\n.mj-forms-image-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n font-family: inherit;\n font-weight: 600;\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 25%, transparent);\n border-radius: 6px;\n padding: 4px 10px;\n cursor: pointer;\n}\n\n.mj-forms-image-btn[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, transparent);\n}\n\n.mj-forms-image-btn--ghost[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n background: transparent;\n border-color: var(--mj-border-default);\n font-weight: 500;\n}\n\n.mj-forms-image--edit[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.mj-forms-color[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n}\n\n.mj-forms-color-swatch[_ngcontent-%COMP%] {\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n}\n\n.mj-forms-color-picker[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n padding: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n flex: 0 0 auto;\n}\n\n.mj-forms-color-hex[_ngcontent-%COMP%] {\n max-width: 160px;\n}\n\n.mj-forms-json[_ngcontent-%COMP%] {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 12.5px;\n line-height: 1.45;\n white-space: pre-wrap;\n word-break: break-word;\n margin: 0;\n max-height: 360px;\n overflow: auto;\n width: 100%;\n}\n\n@keyframes _ngcontent-%COMP%_mj-validation-slide-in {\n from {\n opacity: 0;\n max-height: 0;\n transform: translateY(-4px);\n }\n to {\n opacity: 1;\n max-height: 100px;\n transform: translateY(0);\n }\n}\n\n\n\n\n\n.mj-forms-field--no-label[_ngcontent-%COMP%] .mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 1;\n}\n\n@media (max-width: 640px) {\n .mj-forms-field[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n\n .mj-forms-field-label[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n\n .mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 1;\n }\n}"], changeDetection: 0 });
4562
+ } }, styles: ["\n\n\n[_nghost-%COMP%] {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n\n\n.mj-forms-field--no-label[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n}\n\n\n.mj-forms-field--editing[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 6px;\n margin: 0 -8px;\n padding: 8px 8px;\n}\n\n\n\n\n.mj-forms-field-label[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n padding-top: 2px;\n word-break: break-word;\n}\n\n\n\n\n.mj-forms-field-control[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-field-control[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n}\n\n\n\n\n.mj-forms-field--dirty[_ngcontent-%COMP%] .mj-forms-field-label[_ngcontent-%COMP%]::after {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--mj-status-warning);\n margin-left: 6px;\n vertical-align: middle;\n}\n\n\n\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%]:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-custom-select-trigger[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty[_ngcontent-%COMP%] .mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n}\n\n\n\n\n.mj-forms-field-value[_ngcontent-%COMP%] {\n font-size: 14px;\n color: var(--mj-text-primary);\n min-height: 24px;\n display: flex;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n.mj-forms-field-value--long[_ngcontent-%COMP%] {\n white-space: pre-line;\n max-height: 300px;\n overflow: auto;\n}\n\n\n.mj-forms-field-value--rich[_ngcontent-%COMP%] {\n display: block;\n align-items: initial;\n max-height: 480px;\n overflow: auto;\n width: 100%;\n}\n\n\n.mj-forms-field-value--code[_ngcontent-%COMP%] {\n display: block;\n align-items: initial;\n width: 100%;\n}\n\n.mj-forms-field-value--code[_ngcontent-%COMP%] mj-code-editor[_ngcontent-%COMP%], \n.mj-forms-field-input--code[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n min-height: 160px;\n max-height: 480px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius, 4px);\n overflow: auto;\n}\n\n\n.mj-forms-field--readonly[_ngcontent-%COMP%] {\n opacity: 0.7;\n}\n\n.mj-forms-field--readonly[_ngcontent-%COMP%] .mj-forms-field-value[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n}\n\n\n\n\n.mj-forms-field-link[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-brand-primary);\n cursor: pointer;\n font-weight: 400;\n font-size: 14px;\n transition: color var(--mj-transition-base);\n text-decoration: none;\n}\n\n.mj-forms-field-link[_ngcontent-%COMP%]:hover {\n color: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-field-link-icon[_ngcontent-%COMP%] {\n font-size: 11px;\n opacity: 0;\n transition: opacity var(--mj-transition-base);\n}\n\n.mj-forms-field-link[_ngcontent-%COMP%]:hover .mj-forms-field-link-icon[_ngcontent-%COMP%] {\n opacity: 1;\n}\n\n\n.mj-forms-field-link--fk[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 400;\n}\n\n\n\n\n.mj-forms-field-input[_ngcontent-%COMP%] {\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-forms-field-input[_ngcontent-%COMP%]:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-forms-field-input[_ngcontent-%COMP%]::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n\n.mj-forms-field-input--textarea[_ngcontent-%COMP%] {\n resize: vertical;\n min-height: 60px;\n border: 1.5px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 8px 10px;\n background: var(--mj-bg-surface);\n font-family: inherit;\n}\n\n.mj-forms-field-input--textarea[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n background: var(--mj-bg-surface);\n padding: 8px 10px;\n border-radius: 6px;\n}\n\n\n.mj-forms-field-input--number[_ngcontent-%COMP%] {\n max-width: 200px;\n}\n\n\n.mj-forms-field-input--date[_ngcontent-%COMP%] {\n max-width: 220px;\n}\n\n\n\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] {\n appearance: none;\n width: 18px;\n height: 18px;\n border: 2px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n position: relative;\n transition: all var(--mj-transition-base) ease;\n flex-shrink: 0;\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:checked {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:checked::after {\n content: '';\n position: absolute;\n left: 5px;\n top: 1px;\n width: 5px;\n height: 9px;\n border: solid var(--mj-text-inverse);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.mj-forms-field-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n\n\n\n.mj-custom-select-trigger[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n cursor: pointer;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-custom-select-trigger[_ngcontent-%COMP%]:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-custom-select-value[_ngcontent-%COMP%] {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-custom-select-value--placeholder[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-custom-select-chevron[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted);\n transition: transform var(--mj-transition-base) ease;\n flex-shrink: 0;\n margin-left: 8px;\n}\n\n.mj-custom-select-chevron--open[_ngcontent-%COMP%] {\n transform: rotate(180deg);\n}\n\n\n\n\n.mj-fk-search[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 28px;\n}\n\n.mj-fk-search-icon[_ngcontent-%COMP%] {\n position: absolute;\n right: 4px;\n color: var(--mj-text-muted);\n font-size: 12px;\n pointer-events: none;\n}\n\n.mj-fk-clear[_ngcontent-%COMP%] {\n position: absolute;\n right: 2px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 11px;\n padding: 4px 6px;\n line-height: 1;\n border-radius: 3px;\n transition: all var(--mj-transition-base);\n}\n\n.mj-fk-clear[_ngcontent-%COMP%]:hover {\n color: var(--mj-status-error);\n background: color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n\n\n.mj-fk-search--matched[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom: 2px solid var(--mj-brand-primary);\n}\n\n\n\n.mj-fk-link-icon[_ngcontent-%COMP%] {\n position: absolute;\n right: 26px;\n color: var(--mj-brand-primary);\n font-size: 10px;\n pointer-events: none;\n z-index: 1;\n}\n\n\n.mj-forms-field-input--linked[_ngcontent-%COMP%] {\n padding-right: 46px;\n}\n\n\n\n\n\n.mj-fk-search--scoped[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 150px;\n}\n\n.mj-fk-scope-pill[_ngcontent-%COMP%] {\n position: absolute;\n right: 30px;\n \n top: 50%;\n transform: translateY(-50%);\n display: inline-flex;\n align-items: center;\n gap: 5px;\n max-width: 120px;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n \n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: background var(--mj-transition-base), border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-pill[_ngcontent-%COMP%]:hover, \n.mj-fk-scope-pill--open[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n\n\n\n.mj-fk-search--toggle[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 178px;\n}\n\n.mj-fk-search--scoped.mj-fk-search--toggle[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 306px;\n}\n\n.mj-fk-search--scoped[_ngcontent-%COMP%] .mj-fk-scope-toggle[_ngcontent-%COMP%] {\n right: 158px;\n}\n\n.mj-fk-scope-toggle[_ngcontent-%COMP%] {\n position: absolute;\n right: 30px;\n top: 50%;\n transform: translateY(-50%);\n max-width: 140px;\n overflow: hidden;\n text-overflow: ellipsis;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-toggle[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n\n\n.mj-fk-grid-row.mj-fk-group-head[_ngcontent-%COMP%] {\n display: block;\n grid-column: 1 / -1;\n padding: 8px 12px 2px;\n font-size: var(--mj-text-xs);\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n cursor: default;\n}\n\n\n.mj-fk-name-line[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.mj-fk-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n font-size: var(--mj-text-xs);\n font-weight: 600;\n color: var(--mj-text-muted);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n padding: 1px 6px;\n white-space: nowrap;\n}\n\n.mj-fk-chip--info[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-chip--warn[_ngcontent-%COMP%] {\n border-color: var(--mj-status-warning);\n color: var(--mj-text-secondary);\n}\n\n\n\n.mj-fk-secondary[_ngcontent-%COMP%] {\n display: block;\n flex-basis: 100%;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-icon[_ngcontent-%COMP%] {\n font-size: 9px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-pill-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-caret[_ngcontent-%COMP%] {\n font-size: 8px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n\n\n\n.mj-fk-scope-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: 4px;\n right: 8px;\n z-index: 5;\n min-width: 180px;\n max-width: calc(100vw - 24px);\n max-height: 260px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n box-shadow: var(--mj-shadow-lg);\n padding: 5px;\n animation: _ngcontent-%COMP%_mj-dropdown-in 120ms ease;\n}\n\n\n\n.mj-fk-scope-menu--bottom[_ngcontent-%COMP%] {\n top: auto;\n bottom: 4px;\n}\n\n.mj-fk-scope-grp[_ngcontent-%COMP%] {\n font-size: 10px;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-text-muted);\n padding: 7px 10px 4px;\n font-weight: 700;\n}\n\n.mj-fk-scope-mi[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 7px 10px;\n font-size: 13px;\n border-radius: 5px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-fk-scope-mi[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-scope-mi--on[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n\n\n.mj-fk-col-reorder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 22px;\n flex-shrink: 0;\n}\n\n.mj-fk-col-move[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 10px;\n padding: 0;\n background: transparent;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 8px;\n opacity: 0; \n transition: opacity var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-mi[_ngcontent-%COMP%]:hover .mj-fk-col-move[_ngcontent-%COMP%]:not(:disabled) {\n opacity: 0.8;\n}\n\n.mj-fk-col-move[_ngcontent-%COMP%]:hover:not(:disabled) {\n opacity: 1;\n color: var(--mj-brand-primary);\n}\n\n\n.mj-fk-col-move[_ngcontent-%COMP%]:disabled {\n opacity: 0 !important;\n cursor: default;\n}\n\n.mj-fk-scope-mi-icon[_ngcontent-%COMP%] {\n width: 14px;\n font-size: 11px;\n opacity: 0.75;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-mi-label[_ngcontent-%COMP%] {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n\n.mj-fk-col-eye-slot[_ngcontent-%COMP%] {\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n\n.mj-fk-col-toggle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-col-toggle[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-col-toggle--on[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-scope-divider[_ngcontent-%COMP%] {\n height: 1px;\n background: var(--mj-border-subtle);\n margin: 4px 6px;\n}\n\n\n\n@media (max-width: 560px) {\n .mj-fk-search--scoped[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n padding-right: 116px;\n }\n .mj-fk-scope-pill[_ngcontent-%COMP%] {\n max-width: 88px;\n }\n .mj-fk-scope-menu[_ngcontent-%COMP%] {\n min-width: 160px;\n }\n .mj-fk-scope-mi[_ngcontent-%COMP%] {\n padding: 10px 10px;\n }\n}\n\n\n\n\n.mj-fk-dropdown[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n animation: _ngcontent-%COMP%_mj-dropdown-in 150ms ease;\n}\n\n.mj-fk-dropdown--above[_ngcontent-%COMP%] {\n animation: _ngcontent-%COMP%_mj-dropdown-in-above 150ms ease;\n}\n\n.mj-fk-option[_ngcontent-%COMP%] {\n padding: 10px 14px;\n font-size: 14px;\n color: var(--mj-text-primary);\n cursor: pointer;\n transition: background var(--mj-transition-base);\n border-radius: 6px;\n}\n\n.mj-fk-option[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n}\n\n.mj-fk-option--selected[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-option--selected[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n\n\n\n\n.mj-fk-dropdown--multi[_ngcontent-%COMP%] {\n padding: 4px;\n \n\n overflow: hidden;\n max-height: none;\n}\n\n\n\n\n.mj-fk-dropdown--multi[_ngcontent-%COMP%] .mj-fk-options[_ngcontent-%COMP%] {\n overflow: auto;\n max-height: 260px;\n}\n\n\n\n.mj-fk-dropdown--scope-open[_ngcontent-%COMP%] {\n overflow: visible;\n}\n\n\n\n\n\n\n.mj-fk-grid[_ngcontent-%COMP%] {\n display: grid;\n width: 100%;\n min-width: max-content;\n align-items: stretch;\n}\n\n\n\n\n.mj-fk-grid-row[_ngcontent-%COMP%] {\n display: contents;\n}\n\n\n.mj-fk-hcell[_ngcontent-%COMP%] {\n position: sticky;\n top: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 7px 12px;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-elevated);\n border-bottom: 1px solid var(--mj-border-default);\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n\n.mj-fk-hcell[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-hcell--icon[_ngcontent-%COMP%] {\n cursor: default;\n padding: 7px 8px;\n}\n\n.mj-fk-hcell--icon[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-elevated);\n}\n\n.mj-fk-hcell-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-sort-icon[_ngcontent-%COMP%] {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n\n.mj-fk-sort-icon--idle[_ngcontent-%COMP%] {\n opacity: 0.35;\n}\n\n\n.mj-fk-cell[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: 8px 12px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 320px;\n cursor: pointer;\n}\n\n\n\n.mj-fk-cell--fill[_ngcontent-%COMP%] {\n max-width: none;\n}\n\n\n\n.mj-fk-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.mj-fk-cell--icon[_ngcontent-%COMP%] {\n justify-content: center;\n padding: 8px;\n max-width: none;\n color: var(--mj-text-muted);\n font-size: 13px;\n}\n\n.mj-fk-cell--name[_ngcontent-%COMP%] {\n font-weight: 500;\n font-size: 14px;\n color: var(--mj-text-primary);\n gap: 6px;\n \n flex-wrap: wrap;\n}\n\n.mj-fk-selected-check[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 11px;\n flex-shrink: 0;\n}\n\n\n\n.mj-fk-grid-row--active[_ngcontent-%COMP%] > .mj-fk-cell[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n}\n\n\n\n.mj-fk-grid-row--selected[_ngcontent-%COMP%] > .mj-fk-cell[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 6%, transparent);\n}\n\n.mj-fk-grid-row--selected[_ngcontent-%COMP%] > .mj-fk-cell--name[_ngcontent-%COMP%] {\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n\n\n\n\n.mj-fk-cell--name[_ngcontent-%COMP%] .mj-forms-search-highlight, \n.mj-fk-cell[_ngcontent-%COMP%] .mj-forms-search-highlight {\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n\n.mj-fk-resizer[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n right: 0;\n width: 7px;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n}\n\n.mj-fk-resizer[_ngcontent-%COMP%]::after {\n content: '';\n position: absolute;\n top: 20%;\n right: 2px;\n width: 2px;\n height: 60%;\n background: transparent;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-hcell[_ngcontent-%COMP%]:hover .mj-fk-resizer[_ngcontent-%COMP%]::after, \n.mj-fk-resizer[_ngcontent-%COMP%]:hover::after {\n background: var(--mj-border-strong);\n}\n\n\n.mj-fk-status[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 14px;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-status[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.mj-fk-status--empty[_ngcontent-%COMP%] {\n font-style: italic;\n}\n\n\n\n.mj-fk-create-footer[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 9px;\n width: 100%;\n padding: 10px 14px;\n background: var(--mj-bg-surface-card);\n border: none;\n border-top: 1px solid var(--mj-border-default);\n color: var(--mj-brand-primary);\n font-size: 13px;\n font-weight: 600;\n font-family: inherit;\n text-align: left;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-create-footer[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-create-icon[_ngcontent-%COMP%] {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n.mj-fk-create-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n\n\n\n.mj-fk-current[_ngcontent-%COMP%] {\n border-bottom: 1px solid var(--mj-border-default);\n background: color-mix(in srgb, var(--mj-brand-primary) 7%, var(--mj-bg-surface-card));\n animation: _ngcontent-%COMP%_mj-fk-current-in 220ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n@keyframes _ngcontent-%COMP%_mj-fk-current-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mj-fk-current-head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 8px 12px 3px;\n font-size: 10px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-current-head[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 10px;\n}\n\n.mj-fk-current-row[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 6px 12px 10px;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n\n.mj-fk-current-row[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: 0;\n top: 4px;\n bottom: 8px;\n width: 3px;\n border-radius: 0 2px 2px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-fk-current-row[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-fk-current-icon[_ngcontent-%COMP%] {\n flex-shrink: 0;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-current-name[_ngcontent-%COMP%] {\n font-weight: 600;\n font-size: 14px;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-detail[_ngcontent-%COMP%] {\n font-size: 13px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-clear[_ngcontent-%COMP%] {\n margin-left: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-current-clear[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n@keyframes _ngcontent-%COMP%_mj-dropdown-in {\n from { opacity: 0; transform: translateY(-4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@keyframes _ngcontent-%COMP%_mj-dropdown-in-above {\n from { opacity: 0; transform: translateY(4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n\n\n\n.mj-forms-field-label[_ngcontent-%COMP%] .mj-forms-search-highlight {\n \n\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n\n\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%]:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-status-error);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-custom-select-trigger[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error[_ngcontent-%COMP%] .mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n\n\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%]:focus {\n background: color-mix(in srgb, var(--mj-status-warning) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-forms-field-input--textarea[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-status-warning);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-warning) 8%, transparent);\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-custom-select-trigger[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning[_ngcontent-%COMP%] .mj-fk-search[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n\n\n\n.mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 2;\n display: flex;\n flex-direction: column;\n gap: 2px;\n margin-top: -2px;\n overflow: hidden;\n animation: _ngcontent-%COMP%_mj-validation-slide-in 200ms ease-out;\n}\n\n.mj-forms-field-validation-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n font-size: 12px;\n line-height: 1.4;\n padding: 3px 0 1px;\n}\n\n.mj-forms-field-validation-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n margin-top: 2px;\n flex-shrink: 0;\n}\n\n\n.mj-forms-field-validation--error[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n.mj-forms-field-validation--error[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n\n.mj-forms-field-validation--warning[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] {\n color: var(--mj-status-warning-text);\n}\n\n.mj-forms-field-validation--warning[_ngcontent-%COMP%] .mj-forms-field-validation-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n}\n\n\n\n\n.mj-forms-image[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-image-preview[_ngcontent-%COMP%] {\n width: 72px;\n height: 72px;\n object-fit: cover;\n object-position: center;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n display: block;\n}\n\n.mj-forms-image-preview--empty[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 22px;\n}\n\n.mj-forms-image-meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-image-hint[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n}\n\n.mj-forms-image-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-image-file[_ngcontent-%COMP%] {\n display: none;\n}\n\n.mj-forms-image-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n font-family: inherit;\n font-weight: 600;\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 25%, transparent);\n border-radius: 6px;\n padding: 4px 10px;\n cursor: pointer;\n}\n\n.mj-forms-image-btn[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, transparent);\n}\n\n.mj-forms-image-btn--ghost[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n background: transparent;\n border-color: var(--mj-border-default);\n font-weight: 500;\n}\n\n.mj-forms-image--edit[_ngcontent-%COMP%] .mj-forms-field-input[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.mj-forms-color[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n}\n\n.mj-forms-color-swatch[_ngcontent-%COMP%] {\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n}\n\n.mj-forms-color-picker[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n padding: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n flex: 0 0 auto;\n}\n\n.mj-forms-color-hex[_ngcontent-%COMP%] {\n max-width: 160px;\n}\n\n.mj-forms-json[_ngcontent-%COMP%] {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 12.5px;\n line-height: 1.45;\n white-space: pre-wrap;\n word-break: break-word;\n margin: 0;\n max-height: 360px;\n overflow: auto;\n width: 100%;\n}\n\n@keyframes _ngcontent-%COMP%_mj-validation-slide-in {\n from {\n opacity: 0;\n max-height: 0;\n transform: translateY(-4px);\n }\n to {\n opacity: 1;\n max-height: 100px;\n transform: translateY(0);\n }\n}\n\n\n\n\n\n.mj-forms-field--no-label[_ngcontent-%COMP%] .mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 1;\n}\n\n@media (max-width: 640px) {\n .mj-forms-field[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n\n .mj-forms-field-label[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n\n .mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 1;\n }\n}\n\n\n\n\n.mj-forms-poly-fk-read[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mj-forms-field-link--poly[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mj-forms-poly-entity-icon[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-brand-primary);\n opacity: 0.85;\n}\n\n.mj-forms-copy-id-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px 6px;\n border-radius: var(--mj-radius-sm, 4px);\n background: transparent;\n border: 1px solid transparent;\n color: var(--mj-text-muted);\n font-size: 11px;\n line-height: 1.2;\n cursor: pointer;\n opacity: 0;\n transition: opacity 140ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;\n}\n\n.mj-forms-field[_ngcontent-%COMP%]:hover .mj-forms-copy-id-btn[_ngcontent-%COMP%], \n.mj-forms-copy-id-btn[_ngcontent-%COMP%]:focus-visible, \n.mj-forms-copy-id-btn.is-copied[_ngcontent-%COMP%] {\n opacity: 0.75;\n}\n\n.mj-forms-copy-id-btn[_ngcontent-%COMP%]:hover {\n opacity: 1;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-border-subtle);\n}\n\n.mj-forms-copy-id-btn.is-copied[_ngcontent-%COMP%] {\n opacity: 1;\n color: var(--mj-status-success);\n background: color-mix(in srgb, var(--mj-status-success) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-status-success) 35%, var(--mj-border-subtle));\n}\n\n.mj-forms-copy-id-btn__feedback[_ngcontent-%COMP%] {\n font-size: 10px;\n font-weight: 600;\n}\n\n@keyframes _ngcontent-%COMP%_mj-field-remote-pulse {\n 0% {\n background-color: color-mix(in srgb, var(--mj-brand-primary) 18%, transparent);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 28%, transparent);\n }\n 70% {\n background-color: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n }\n 100% {\n background-color: transparent;\n box-shadow: none;\n }\n}\n\nmj-form-field.mj-forms-field--remotely-updated[_ngcontent-%COMP%] .mj-forms-field[_ngcontent-%COMP%] {\n border-radius: var(--mj-radius-sm, 6px);\n animation: _ngcontent-%COMP%_mj-field-remote-pulse 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n\n\n\n.mj-forms-field-label-row[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n\n.mj-forms-field__history-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.mj-forms-field__history-trigger[_ngcontent-%COMP%] {\n width: 22px;\n height: 22px;\n border-radius: 5px;\n border: 1px solid transparent;\n background: transparent;\n color: var(--mj-status-warning, #f59e0b);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n cursor: pointer;\n padding: 0;\n transition: background 0.15s ease, border-color 0.15s ease;\n}\n\n.mj-forms-field__history-trigger[_ngcontent-%COMP%]:hover, \n.mj-forms-field__history-trigger[_ngcontent-%COMP%]:focus-visible {\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 14%, transparent);\n border-color: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 35%, transparent);\n}\n\n.mj-forms-field__history-popover[_ngcontent-%COMP%] {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n min-width: 200px;\n max-width: 300px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-bg-surface, #ffffff);\n border: 1px solid var(--mj-border-default, #cbd5e1);\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);\n z-index: 1000;\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.mj-forms-field__history-popover-header[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mj-forms-field__history-popover-value[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary, #0f172a);\n word-break: break-word;\n padding: 4px 8px;\n border-radius: 5px;\n background: var(--mj-bg-surface-card, #f8fafc);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mj-forms-field__restore-btn[_ngcontent-%COMP%] {\n align-self: flex-start;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 10px;\n border-radius: 5px;\n border: 1px solid var(--mj-border-default, #cbd5e1);\n background: var(--mj-bg-surface, #ffffff);\n color: var(--mj-brand-primary, #3b82f6);\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n transition: background 0.15s ease, border-color 0.15s ease;\n}\n\n.mj-forms-field__restore-btn[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 10%, transparent);\n border-color: var(--mj-brand-primary, #3b82f6);\n}\n\n\n\n\n.mj-forms-field__auto-merged-badge[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-success, #10b981) 14%, transparent);\n color: var(--mj-status-success-text, #059669);\n border: 1px solid color-mix(in srgb, var(--mj-status-success, #10b981) 30%, transparent);\n flex: 0 0 auto;\n}\n\n.mj-forms-field__auto-merged-tooltip[_ngcontent-%COMP%] {\n display: none;\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n white-space: nowrap;\n padding: 4px 8px;\n border-radius: 6px;\n font-size: 11px;\n font-weight: 500;\n background: var(--mj-bg-surface, #ffffff);\n color: var(--mj-text-secondary, #475569);\n border: 1px solid var(--mj-border-default, #cbd5e1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n}\n\n.mj-forms-field__auto-merged-badge[_ngcontent-%COMP%]:hover .mj-forms-field__auto-merged-tooltip[_ngcontent-%COMP%] {\n display: block;\n}\n\n\n\n\n.mj-forms-field--conflict[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 6%, transparent);\n border-radius: 8px;\n padding: 8px;\n margin: 2px -8px;\n}\n\n.mj-forms-field__conflict-card[_ngcontent-%COMP%] {\n grid-column: 2;\n margin-top: 6px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-bg-surface, #ffffff);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning, #f59e0b) 45%, transparent);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mj-forms-field--no-label[_ngcontent-%COMP%] .mj-forms-field__conflict-card[_ngcontent-%COMP%] {\n grid-column: 1;\n}\n\n.mj-forms-field__conflict-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-status-warning-text, #b45309);\n}\n\n.mj-forms-field__conflict-comparison[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 8px;\n}\n\n.mj-forms-field__conflict-col[_ngcontent-%COMP%] {\n padding: 6px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card, #f8fafc);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mj-forms-field__conflict-col--remote[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 35%, transparent);\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 5%, var(--mj-bg-surface, #ffffff));\n}\n\n.mj-forms-field__conflict-col-label[_ngcontent-%COMP%] {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mj-forms-field__conflict-col-value[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary, #0f172a);\n word-break: break-word;\n}\n\n.mj-forms-field__conflict-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-field__conflict-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n border: 1px solid var(--mj-border-default, #cbd5e1);\n background: var(--mj-bg-surface, #ffffff);\n color: var(--mj-text-primary, #0f172a);\n transition: all 0.15s ease;\n}\n\n.mj-forms-field__conflict-btn--keep[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary, #3b82f6);\n border-color: var(--mj-brand-primary, #3b82f6);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-field__conflict-btn--use-remote[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n\n\n\n.mj-forms-field--time-travel-diff[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 8%, var(--mj-bg-surface));\n border-left: 3px solid var(--mj-status-warning);\n border-radius: 6px;\n padding: 6px 10px;\n margin: 2px -10px;\n}\n\n.mj-forms-time-travel-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n background: color-mix(in srgb, var(--mj-status-warning) 16%, var(--mj-bg-surface));\n color: var(--mj-status-warning-text, var(--mj-status-warning));\n border: 1px solid color-mix(in srgb, var(--mj-status-warning) 35%, transparent);\n}\n\n.mj-forms-time-travel-bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 6px;\n padding: 5px 8px;\n border-radius: 6px;\n background: color-mix(in srgb, var(--mj-bg-surface-sunken) 85%, var(--mj-bg-surface));\n border: 1px dashed var(--mj-border-default);\n font-size: 11px;\n}\n\n.mj-forms-time-travel-current[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n color: var(--mj-text-secondary);\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-forms-time-travel-current[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-size: 10px;\n}\n\n.mj-forms-time-travel-current[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n font-weight: 600;\n}\n\n.mj-forms-time-travel-restore-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 3px 8px;\n border-radius: 5px;\n font-size: 11px;\n font-weight: 600;\n font-family: inherit;\n cursor: pointer;\n color: var(--mj-brand-primary);\n background: var(--mj-bg-surface);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, transparent);\n transition: background 120ms ease, border-color 120ms ease;\n}\n\n.mj-forms-time-travel-restore-btn[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-time-travel-restore-btn[_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 1px;\n}"], changeDetection: 0 });
3681
4563
  }
3682
4564
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjFormFieldComponent, [{
3683
4565
  type: Component,
3684
- args: [{ standalone: false, selector: 'mj-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n IsFieldReadableByUser comes before every expression that touches the record. BaseEntity.Get()\n throws for a field the user cannot read, so Value, ShouldHideField and the FK resolution are\n only safe once it has short-circuited. A denied field renders nothing at all.\n\n IsClaimedByContribution may precede it because it reads only the form context: a field a\n panel stands in for is not drawn, in either mode.\n-->\n@if (!IsClaimedByContribution && !IsFieldDeprecatedOrDisabled && IsFieldReadableByUser && Record && (Record.IsSaved || !IsFieldReadOnly) && !ShouldHideField) {\n <!-- READ-ONLY MODE -->\n @if ((!EditMode || IsFieldReadOnly) && !ShouldHideField) {\n <div class=\"mj-forms-field\" [class.mj-forms-field--no-label]=\"!ShowLabel\" [class.mj-forms-field--readonly]=\"EditMode && IsFieldReadOnly\" [class.mj-forms-field--dirty]=\"IsDirty\">\n @if (ShowLabel) {\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n }\n <div class=\"mj-forms-field-control\">\n <!-- FK fields with a mapped name field: show the name as a hyperlink -->\n @if (IsFKWithNameField) {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link mj-forms-field-link--fk\" (click)=\"OnRecordLinkClick($event)\" title=\"View related record\">\n {{ FKDisplayName }}\n </a>\n } @else {\n {{ FKDisplayName }}\n }\n </span>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n }\n @if (IsInlineImageValue) {\n <span class=\"mj-forms-image-meta\">Inline image ({{ ImageValueSizeLabel }})</span>\n } @else if (ImagePreviewSrc) {\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open image\">\n {{ ImageUrlDisplay }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color\">\n <span class=\"mj-forms-color-swatch\" [style.background-color]=\"ColorSwatchValue\"></span>\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <pre class=\"mj-forms-json\">{{ JsonDisplayValue }}</pre>\n }\n @else {\n @switch (LinkType) {\n @case ('Email') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnEmailLinkClick($event)\" title=\"Send email\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-envelope mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('URL') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open link\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('Record') {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link\" (click)=\"OnRecordLinkClick($event)\" title=\"View related record\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n {{ FormatValue() }}\n }\n </span>\n }\n @default {\n @if (Type === 'checkbox') {\n <span class=\"mj-forms-field-value\">\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\" [checked]=\"!!Value\" disabled>\n </div>\n </span>\n }\n @else if (RichTextMode === 'markdown') {\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\">\n <mj-markdown [data]=\"FormatValue()\"></mj-markdown>\n </div>\n }\n @else if (RichTextMode === 'html') {\n <!-- XSS: the mjSafeRichHtml pipe sanitizes with DOMPurify (HTML + SVG profiles)\n and then bypasses Angular's redundant re-sanitize. DOMPurify strips <script>,\n on* handlers, javascript:/data: URLs and <foreignObject> while KEEPING safe\n inline SVG + styles \u2014 richer than Angular's built-in sanitizer, still safe for\n untrusted content. -->\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\" [innerHTML]=\"FormatValue() | mjSafeRichHtml\"></div>\n }\n @else if (RichTextMode === 'code') {\n <div class=\"mj-forms-field-value mj-forms-field-value--code\">\n <mj-code-editor [value]=\"FormatValue()\" [language]=\"CodeEditorLanguage\" [readonly]=\"true\"></mj-code-editor>\n </div>\n }\n @else if (IsLongText) {\n <span class=\"mj-forms-field-value mj-forms-field-value--long\">{{ FormatValue() }}</span>\n }\n @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n }\n }\n }\n </div>\n </div>\n }\n\n <!-- EDIT MODE -->\n @if (EditMode && !IsFieldReadOnly) {\n <div class=\"mj-forms-field mj-forms-field--editing\" [class.mj-forms-field--no-label]=\"!ShowLabel\" [class.mj-forms-field--dirty]=\"IsDirty\" [class.mj-forms-field--required-empty]=\"IsRequiredEmpty\" [class.mj-forms-field--has-error]=\"ShowErrors\" [class.mj-forms-field--has-warning]=\"ShowWarnings || StoredDateIsUnreadable\">\n @if (ShowLabel) {\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n }\n <div class=\"mj-forms-field-control\">\n <!-- Foreign Key fields get custom search autocomplete -->\n @if (HasRelatedEntity) {\n <div class=\"mj-fk-search\"\n [class.mj-fk-search--matched]=\"FKHasLinkedValue\"\n [class.mj-fk-search--scoped]=\"FKFocused && FKSearchableFields.length > 1\"\n [class.mj-fk-search--toggle]=\"FKFocused && !!FKScopeLabels\">\n @if (FKHasLinkedValue && !(FKFocused && FKSearchableFields.length > 1)) {\n <i class=\"fa-solid fa-link mj-fk-link-icon\" title=\"Linked record\"></i>\n }\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [class.mj-forms-field-input--linked]=\"FKHasLinkedValue\"\n [value]=\"FKSearchText\"\n (input)=\"OnFKInput($event)\"\n (focus)=\"OnFKFocus($event)\"\n (blur)=\"OnFKBlur()\"\n (keydown)=\"OnFKKeydown($event)\"\n placeholder=\"Search...\">\n\n <!-- Scope pill: only while focused, only when there's more than one searchable field.\n The menu itself lives INSIDE the results dropdown (below) so it overlays the\n list and rides the same above/below flip. -->\n @if (FKFocused && FKSearchableFields.length > 1) {\n <button class=\"mj-fk-scope-pill\"\n [class.mj-fk-scope-pill--open]=\"FKShowScopeMenu\"\n (mousedown)=\"OnFKScopeToggle($event)\"\n [title]=\"'Searching ' + FKSearchFieldLabel + ' \u2014 click to change'\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-scope-pill-icon\"></i>\n <span class=\"mj-fk-scope-pill-label\">{{ FKSearchFieldLabel }}</span>\n <i class=\"fa-solid mj-fk-scope-pill-caret\" [class.fa-chevron-up]=\"FKShowScopeMenu\" [class.fa-chevron-down]=\"!FKShowScopeMenu\"></i>\n </button>\n }\n\n <!-- Population toggle: only when the resolved lookup strategy offers a second\n population (e.g. customers vs the whole directory). -->\n @if (FKFocused && FKScopeLabels) {\n <button type=\"button\" class=\"mj-fk-scope-toggle\"\n (mousedown)=\"OnFKScopeChange($event)\"\n [title]=\"'Showing ' + (FKScope === 'primary' ? FKScopeLabels.primary : FKScopeLabels.all) + ' \u2014 click to switch'\">\n {{ FKScope === 'primary' ? FKScopeLabels.all : FKScopeLabels.primary }}\n </button>\n }\n\n @if (FKSearchText) {\n <button class=\"mj-fk-clear\" (mousedown)=\"OnFKClearClick($event)\" title=\"Clear\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n } @else {\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n }\n @if (ShowFKDropdown) {\n <div class=\"mj-fk-dropdown mj-fk-dropdown--multi\"\n [ngStyle]=\"DropdownPositionStyle\"\n [class.mj-fk-dropdown--above]=\"OpenAbove\"\n [class.mj-fk-dropdown--scope-open]=\"FKShowScopeMenu\">\n\n <!-- Scope (search-field) picker + column toggles \u2014 overlays the list, anchored to the pill edge.\n Click a row to SEARCH that field; click the eye to SHOW/HIDE it as a column. -->\n @if (FKShowScopeMenu) {\n <div class=\"mj-fk-scope-menu\" [class.mj-fk-scope-menu--bottom]=\"OpenAbove\">\n <div class=\"mj-fk-scope-grp\">Columns shown</div>\n @for (f of FKSearchableFields; track f.FieldName) {\n @if (f.Group === 'shown') {\n <ng-container *ngTemplateOutlet=\"scopeRow; context: { $implicit: f }\"></ng-container>\n }\n }\n @if (FKHasOtherSearchableFields) {\n <div class=\"mj-fk-scope-divider\"></div>\n <div class=\"mj-fk-scope-grp\">Other fields</div>\n @for (f of FKSearchableFields; track f.FieldName) {\n @if (f.Group === 'other') {\n <ng-container *ngTemplateOutlet=\"scopeRow; context: { $implicit: f }\"></ng-container>\n }\n }\n }\n </div>\n }\n\n <!-- Shared scope-menu row, fixed-slot layout for clean alignment:\n [reorder \u25B2\u25BC \u2014 hover-reveal] [icon] [label] [eye].\n Click the row = search this field; the active search row is shown bold+accent. -->\n <ng-template #scopeRow let-f>\n <div class=\"mj-fk-scope-mi\"\n [class.mj-fk-scope-mi--on]=\"IsFKScopeActive(f)\"\n (mousedown)=\"OnFKScopeSelect($event, f)\">\n <span class=\"mj-fk-col-reorder\">\n @if (f.Group === 'shown') {\n <button type=\"button\" class=\"mj-fk-col-move mj-fk-col-move--up\" [disabled]=\"!CanMoveFKColumnUp(f.FieldName)\"\n (mousedown)=\"MoveFKColumn($event, f.FieldName, -1)\" title=\"Move column up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button type=\"button\" class=\"mj-fk-col-move mj-fk-col-move--down\" [disabled]=\"!CanMoveFKColumnDown(f.FieldName)\"\n (mousedown)=\"MoveFKColumn($event, f.FieldName, 1)\" title=\"Move column down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n }\n </span>\n <i [class]=\"f.Icon + ' mj-fk-scope-mi-icon'\"></i>\n <span class=\"mj-fk-scope-mi-label\">{{ f.Label }}</span>\n <span class=\"mj-fk-col-eye-slot\">\n @if (CanToggleFKColumn(f)) {\n <button type=\"button\" class=\"mj-fk-col-toggle\"\n [class.mj-fk-col-toggle--on]=\"IsFKColumnVisible(f)\"\n (mousedown)=\"OnFKColumnToggle($event, f)\"\n [title]=\"IsFKColumnVisible(f) ? 'Hide this column' : 'Show as a column'\">\n <i class=\"fa-solid\" [class.fa-eye]=\"IsFKColumnVisible(f)\" [class.fa-eye-slash]=\"!IsFKColumnVisible(f)\"></i>\n </button>\n }\n </span>\n </div>\n </ng-template>\n\n <!-- Pinned \"currently selected\" \u2014 sticky at the top while browsing, so you can\n keep it or pick another without clearing first. -->\n @if (FKSelectedSuggestion && !FKLoading) {\n <div class=\"mj-fk-current\">\n <div class=\"mj-fk-current-head\">\n <i class=\"fa-solid fa-circle-check\"></i>\n <span>Currently selected</span>\n </div>\n <div class=\"mj-fk-current-row\" (mousedown)=\"OnFKSelectItem(FKSelectedSuggestion, $event)\" title=\"Keep this selection\">\n @if (FKSelectedSuggestion.Icon) { <i class=\"mj-fk-current-icon\" [class]=\"FKSelectedSuggestion.Icon\"></i> }\n <span class=\"mj-fk-current-name\" [innerHTML]=\"FKSelectedSuggestion.HighlightedName\"></span>\n @if (FKSelectedSuggestion.ExtraColumns.length && FKSelectedSuggestion.ExtraColumns[0].Value) {\n <span class=\"mj-fk-current-detail\">{{ FKSelectedSuggestion.ExtraColumns[0].Value }}</span>\n }\n <button type=\"button\" class=\"mj-fk-current-clear\" (mousedown)=\"OnFKClearClick($event)\" title=\"Clear selection\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n </div>\n }\n\n @if (FKLoading) {\n <div class=\"mj-fk-status\">\n <i class=\"fa-solid fa-circle-notch fa-spin\"></i>\n <span>Searching\u2026</span>\n </div>\n }\n @if (!FKLoading && FKNoMatches) {\n <div class=\"mj-fk-status mj-fk-status--empty\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n <span>No matches</span>\n </div>\n }\n @if (!FKLoading && FKSuggestions.length > 0) {\n <div class=\"mj-fk-options\">\n <div class=\"mj-fk-grid\" [style.grid-template-columns]=\"FKGridTemplateColumns\">\n <!-- Header row: click to sort, drag the right edge to resize.\n (Column reorder lives in the field-selector menu, not here.) -->\n <div class=\"mj-fk-grid-row mj-fk-grid-row--header\">\n @if (FKHasIconColumn) {\n <div class=\"mj-fk-hcell mj-fk-hcell--icon\"></div>\n }\n @for (col of FKColumnFields; track col; let i = $index) {\n <div class=\"mj-fk-hcell\"\n (mousedown)=\"OnFKHeaderSort($event, col)\"\n [title]=\"'Click to sort by ' + FKColumnHeaders[i]\">\n <span class=\"mj-fk-hcell-label\">{{ FKColumnHeaders[i] }}</span>\n <i [class]=\"FKSortIcon(col)\"></i>\n <span class=\"mj-fk-resizer\" (mousedown)=\"OnFKColResizeStart($event, col)\" title=\"Drag to resize\"></span>\n </div>\n }\n </div>\n <!-- Data rows, under their group's header. A strategy that returns one\n unlabelled group renders exactly as before. -->\n @for (group of FKGroups; track group.Key) {\n @if (group.Label && FKSuggestionsInGroup(group.Key).length > 0) {\n <div class=\"mj-fk-grid-row mj-fk-group-head\" (mousedown)=\"$event.preventDefault()\">{{ group.Label }}</div>\n }\n @for (suggestion of FKSuggestionsInGroup(group.Key); track suggestion.PrimaryKeyValue) {\n <div class=\"mj-fk-grid-row\"\n [class.mj-fk-grid-row--active]=\"FKIndexOf(suggestion) === FKActiveIndex\"\n [class.mj-fk-grid-row--selected]=\"IsFKRowSelected(suggestion)\"\n (mousedown)=\"OnFKSelectItem(suggestion, $event)\"\n (mouseenter)=\"FKActiveIndex = FKIndexOf(suggestion)\">\n @if (FKHasIconColumn) {\n <div class=\"mj-fk-cell mj-fk-cell--icon\">\n @if (suggestion.Icon) { <i [class]=\"suggestion.Icon\"></i> }\n </div>\n }\n @for (col of FKColumnFields; track col; let last = $last) {\n @if (col === FKNameField) {\n <div class=\"mj-fk-cell mj-fk-cell--name\" [class.mj-fk-cell--fill]=\"FKColumnFillsTrack(col, last)\">\n @if (IsFKRowSelected(suggestion)) {\n <i class=\"fa-solid fa-check mj-fk-selected-check\" title=\"Currently selected\"></i>\n }\n <span class=\"mj-fk-name-line\">\n <span [innerHTML]=\"suggestion.HighlightedName\"></span>\n @for (chip of suggestion.Chips ?? []; track chip.Text) {\n <span class=\"mj-fk-chip\"\n [class.mj-fk-chip--info]=\"chip.Tone === 'info'\"\n [class.mj-fk-chip--warn]=\"chip.Tone === 'warn'\">{{ chip.Text }}</span>\n }\n </span>\n @if (suggestion.Secondary) {\n <span class=\"mj-fk-secondary\">{{ suggestion.Secondary }}</span>\n }\n </div>\n } @else {\n <div class=\"mj-fk-cell\" [class.mj-fk-cell--fill]=\"FKColumnFillsTrack(col, last)\" [title]=\"FKCellFor(suggestion, col)?.Value || ''\">\n <span [innerHTML]=\"FKCellFor(suggestion, col)?.HighlightedValue || ''\"></span>\n </div>\n }\n }\n </div>\n }\n }\n </div>\n </div>\n }\n\n <!-- Sticky \"create new\" footer \u2014 always visible at the bottom (no scrolling),\n prefilled with the typed text. Gated on create permission. -->\n @if (CanCreateFK) {\n <button type=\"button\" class=\"mj-fk-create-footer\" (mousedown)=\"OnFKCreateNew($event)\" [title]=\"FKCreateLabel\">\n <i class=\"fa-solid fa-plus mj-fk-create-icon\"></i>\n <span class=\"mj-fk-create-label\">{{ FKCreateLabel }}</span>\n </button>\n }\n </div>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image mj-forms-image--edit\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n } @else {\n <div class=\"mj-forms-image-preview mj-forms-image-preview--empty\" aria-hidden=\"true\">\n <i class=\"fa-regular fa-image\"></i>\n </div>\n }\n <div class=\"mj-forms-image-meta\">\n @if (IsInlineImageValue) {\n <span>Inline image ({{ ImageValueSizeLabel }})</span>\n }\n <span class=\"mj-forms-image-hint\">Max {{ ImageMaxSizeLabel }}</span>\n </div>\n <div class=\"mj-forms-image-actions\">\n <input #imageFileInput type=\"file\" accept=\"image/png,image/jpeg,image/gif,image/webp,image/svg+xml\"\n class=\"mj-forms-image-file\" (change)=\"OnImageFileSelected($event)\">\n <button type=\"button\" class=\"mj-forms-image-btn\" (click)=\"imageFileInput.click()\">\n <i class=\"fa-solid fa-upload\"></i>\n {{ ImagePreviewSrc ? 'Replace' : 'Upload' }}\n </button>\n @if (ImagePreviewSrc) {\n <button type=\"button\" class=\"mj-forms-image-btn mj-forms-image-btn--ghost\" (click)=\"OnImageClear()\">Clear</button>\n }\n </div>\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"ImageUrlInputValue\"\n (input)=\"OnImageUrlInput($event)\"\n placeholder=\"https://\u2026 or paste a data URI\">\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color mj-forms-color--edit\">\n <input type=\"color\"\n class=\"mj-forms-color-picker\"\n [value]=\"ColorPickerValue\"\n (input)=\"OnColorPickerInput($event)\"\n [attr.aria-label]=\"DisplayName + ' color'\">\n <input type=\"text\"\n class=\"mj-forms-field-input mj-forms-color-hex\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n placeholder=\"#RRGGBB\">\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea mj-forms-json\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n (blur)=\"OnJsonBlur()\"></textarea>\n }\n @else if (EditRichTextMode !== 'plain') {\n <!-- Markdown / HTML / Code long-text: edit raw with a syntax-highlighted code editor -->\n <mj-code-editor\n class=\"mj-forms-field-input--code\"\n [value]=\"FormatValue()\"\n [language]=\"CodeEditorLanguage\"\n (change)=\"OnCodeEditorChange($event)\"></mj-code-editor>\n }\n @else {\n @switch (Type) {\n @case ('textbox') {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\">\n }\n @case ('textarea') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"></textarea>\n }\n @case ('number') {\n <input type=\"number\"\n class=\"mj-forms-field-input mj-forms-field-input--number\"\n [value]=\"Value\"\n (change)=\"OnNumberChange($event)\">\n }\n @case ('datepicker') {\n <input type=\"date\"\n class=\"mj-forms-field-input mj-forms-field-input--date\"\n [value]=\"DateInputValue\"\n (change)=\"OnDateChange($event)\">\n }\n @case ('checkbox') {\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\"\n [checked]=\"!!Value\"\n (change)=\"OnCheckboxChange($event)\">\n </div>\n }\n @case ('select') {\n <div class=\"mj-custom-select-trigger\"\n tabindex=\"0\"\n (click)=\"OnSelectTriggerClick($event)\"\n (blur)=\"OnSelectTriggerBlur()\">\n <span class=\"mj-custom-select-value\" [class.mj-custom-select-value--placeholder]=\"!FormatValue()\">\n {{ FormatValue() || '-- Select --' }}\n </span>\n <i class=\"fa-solid fa-chevron-down mj-custom-select-chevron\" [class.mj-custom-select-chevron--open]=\"ShowSelectDropdown\"></i>\n </div>\n @if (ShowSelectDropdown && PossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of PossibleValues; track option) {\n <div class=\"mj-fk-option\" [class.mj-fk-option--selected]=\"FormatValue() === option\" (mousedown)=\"OnSelectOptionClick(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n }\n @case ('autocomplete') {\n <div class=\"mj-fk-search\">\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnValueListInput($event)\"\n (focus)=\"OnValueListFocus($event)\"\n (blur)=\"OnValueListBlur()\"\n placeholder=\"Type to search...\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n @if (ShowValueListDropdown && FilteredPossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of FilteredPossibleValues; track option) {\n <div class=\"mj-fk-option\" (mousedown)=\"OnValueListSelect(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n </div>\n }\n @default {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (change)=\"OnInputChange($event)\">\n }\n }\n }\n </div>\n <!-- Inline validation messages -->\n @if (DisplayErrors.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--error\">\n @for (error of DisplayErrors; track error.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>{{ error.Message }}</span>\n </div>\n }\n </div>\n }\n @if (DisplayWarnings.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n @for (warning of DisplayWarnings; track warning.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ warning.Message }}</span>\n </div>\n }\n </div>\n }\n <!--\n An unreadable stored value renders as an EMPTY date box, identical to a field that\n was never set - and the next save writes that emptiness over whatever is stored. The\n element cannot display the bad value itself, so the warning sits with the other validation messages, beneath the control.\n -->\n @if (StoredDateIsUnreadable) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>This field holds a value that is not a readable date, so the box above is\n empty. Saving now will replace it.</span>\n </div>\n </div>\n }\n </div>\n }\n}\n", styles: ["/* ============================================\n FORM FIELD - Shared styles for read and edit\n ============================================ */\n:host {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n/* No label (e.g. a generated section holding a single field, whose section title names it):\n the control takes the whole row instead of falling into the label column. */\n.mj-forms-field--no-label {\n grid-template-columns: 1fr;\n}\n\n/* Subtle row hover in edit mode */\n.mj-forms-field--editing:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 6px;\n margin: 0 -8px;\n padding: 8px 8px;\n}\n\n/* ============================================\n LABEL\n ============================================ */\n.mj-forms-field-label {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n padding-top: 2px;\n word-break: break-word;\n}\n\n/* ============================================\n FIELD CONTROL WRAPPER (value + dirty dot)\n ============================================ */\n.mj-forms-field-control {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-field-control > * {\n flex: 1;\n min-width: 0;\n}\n\n/* ============================================\n DIRTY INDICATOR (solid amber dot after label)\n ============================================ */\n.mj-forms-field--dirty .mj-forms-field-label::after {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--mj-status-warning);\n margin-left: 6px;\n vertical-align: middle;\n}\n\n/* ============================================\n REQUIRED FIELD - red underline when empty\n ============================================ */\n.mj-forms-field--required-empty .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty .mj-forms-field-input:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty .mj-custom-select-trigger {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty .mj-fk-search .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n}\n\n/* ============================================\n READ-ONLY VALUE\n ============================================ */\n.mj-forms-field-value {\n font-size: 14px;\n color: var(--mj-text-primary);\n min-height: 24px;\n display: flex;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n.mj-forms-field-value--long {\n white-space: pre-line;\n max-height: 300px;\n overflow: auto;\n}\n\n/* Rich (markdown / html) read-only rendering \u2014 let content flow as a block, not a flex row */\n.mj-forms-field-value--rich {\n display: block;\n align-items: initial;\n max-height: 480px;\n overflow: auto;\n width: 100%;\n}\n\n/* Code read-only / edit rendering \u2014 the embedded code editor needs an explicit height */\n.mj-forms-field-value--code {\n display: block;\n align-items: initial;\n width: 100%;\n}\n\n.mj-forms-field-value--code mj-code-editor,\n.mj-forms-field-input--code {\n display: block;\n width: 100%;\n min-height: 160px;\n max-height: 480px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius, 4px);\n overflow: auto;\n}\n\n/* Read-only fields in edit mode */\n.mj-forms-field--readonly {\n opacity: 0.7;\n}\n\n.mj-forms-field--readonly .mj-forms-field-value {\n color: var(--mj-text-secondary);\n}\n\n/* ============================================\n LINKS (FK, email, URL)\n ============================================ */\n.mj-forms-field-link {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-brand-primary);\n cursor: pointer;\n font-weight: 400;\n font-size: 14px;\n transition: color var(--mj-transition-base);\n text-decoration: none;\n}\n\n.mj-forms-field-link:hover {\n color: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-field-link-icon {\n font-size: 11px;\n opacity: 0;\n transition: opacity var(--mj-transition-base);\n}\n\n.mj-forms-field-link:hover .mj-forms-field-link-icon {\n opacity: 1;\n}\n\n/* FK fields showing entity name instead of raw ID */\n.mj-forms-field-link--fk {\n font-size: 14px;\n font-weight: 400;\n}\n\n/* ============================================\n EDIT MODE INPUTS - Clean underline style\n ============================================ */\n.mj-forms-field-input {\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-forms-field-input:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-forms-field-input::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n/* Textarea variant */\n.mj-forms-field-input--textarea {\n resize: vertical;\n min-height: 60px;\n border: 1.5px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 8px 10px;\n background: var(--mj-bg-surface);\n font-family: inherit;\n}\n\n.mj-forms-field-input--textarea:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n background: var(--mj-bg-surface);\n padding: 8px 10px;\n border-radius: 6px;\n}\n\n/* Number input - narrower */\n.mj-forms-field-input--number {\n max-width: 200px;\n}\n\n/* Date input - narrower */\n.mj-forms-field-input--date {\n max-width: 220px;\n}\n\n/* ============================================\n CHECKBOX (custom styled)\n ============================================ */\n.mj-forms-field-checkbox {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"] {\n appearance: none;\n width: 18px;\n height: 18px;\n border: 2px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n position: relative;\n transition: all var(--mj-transition-base) ease;\n flex-shrink: 0;\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"]:checked {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"]:checked::after {\n content: '';\n position: absolute;\n left: 5px;\n top: 1px;\n width: 5px;\n height: 9px;\n border: solid var(--mj-text-inverse);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"]:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n/* ============================================\n CUSTOM SELECT DROPDOWN (replaces native <select>)\n ============================================ */\n.mj-custom-select-trigger {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n cursor: pointer;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-custom-select-trigger:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-custom-select-value {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-custom-select-value--placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-custom-select-chevron {\n font-size: 11px;\n color: var(--mj-text-muted);\n transition: transform var(--mj-transition-base) ease;\n flex-shrink: 0;\n margin-left: 8px;\n}\n\n.mj-custom-select-chevron--open {\n transform: rotate(180deg);\n}\n\n/* ============================================\n FK SEARCH (custom autocomplete)\n ============================================ */\n.mj-fk-search {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mj-fk-search .mj-forms-field-input {\n padding-right: 28px;\n}\n\n.mj-fk-search-icon {\n position: absolute;\n right: 4px;\n color: var(--mj-text-muted);\n font-size: 12px;\n pointer-events: none;\n}\n\n.mj-fk-clear {\n position: absolute;\n right: 2px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 11px;\n padding: 4px 6px;\n line-height: 1;\n border-radius: 3px;\n transition: all var(--mj-transition-base);\n}\n\n.mj-fk-clear:hover {\n color: var(--mj-status-error);\n background: color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n/* Linked state: solid accent underline + a leading chain icon, so it's obvious the\n field holds a resolved record reference rather than free-typed text. */\n.mj-fk-search--matched .mj-forms-field-input {\n border-bottom: 2px solid var(--mj-brand-primary);\n}\n\n/* Linked indicator sits on the RIGHT (just left of the clear button) so it never\n interrupts left-to-right reading of the value or overlaps the text. */\n.mj-fk-link-icon {\n position: absolute;\n right: 26px;\n color: var(--mj-brand-primary);\n font-size: 10px;\n pointer-events: none;\n z-index: 1;\n}\n\n/* Make room on the right for the link icon + the clear button. */\n.mj-forms-field-input--linked {\n padding-right: 46px;\n}\n\n/* ============================================\n SCOPE PILL + FIELD-PICKER MENU (search-field scope)\n ============================================ */\n/* When the pill is showing, reserve room on the right of the input for it. */\n.mj-fk-search--scoped .mj-forms-field-input {\n padding-right: 150px;\n}\n\n.mj-fk-scope-pill {\n position: absolute;\n right: 30px;\n /* Vertically centered in the input so it clears the focus underline below. */\n top: 50%;\n transform: translateY(-50%);\n display: inline-flex;\n align-items: center;\n gap: 5px;\n max-width: 120px;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n /* Kept short so it clears the input's focus underline without making the row taller. */\n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: background var(--mj-transition-base), border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-pill:hover,\n.mj-fk-scope-pill--open {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n/* Population toggle (\"All organizations\" / \"Customers\"). Sits where the search-field pill\n would, or left of the pill when both show; the input reserves room for it so it never covers\n typed text. Same visual family as the pill. */\n.mj-fk-search--toggle .mj-forms-field-input {\n padding-right: 178px;\n}\n\n.mj-fk-search--scoped.mj-fk-search--toggle .mj-forms-field-input {\n padding-right: 306px;\n}\n\n.mj-fk-search--scoped .mj-fk-scope-toggle {\n right: 158px;\n}\n\n.mj-fk-scope-toggle {\n position: absolute;\n right: 30px;\n top: 50%;\n transform: translateY(-50%);\n max-width: 140px;\n overflow: hidden;\n text-overflow: ellipsis;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-toggle:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n/* Group header inside the results grid \u2014 spans every column, never selectable. Rows are\n `display: contents`, so the header needs a box of its own to be a grid item at all. */\n.mj-fk-grid-row.mj-fk-group-head {\n display: block;\n grid-column: 1 / -1;\n padding: 8px 12px 2px;\n font-size: var(--mj-text-xs);\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n cursor: default;\n}\n\n/* Name plus its chips on one line, so the second line sits directly beneath the name. */\n.mj-fk-name-line {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.mj-fk-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n font-size: var(--mj-text-xs);\n font-weight: 600;\n color: var(--mj-text-muted);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n padding: 1px 6px;\n white-space: nowrap;\n}\n\n.mj-fk-chip--info {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-chip--warn {\n border-color: var(--mj-status-warning);\n color: var(--mj-text-secondary);\n}\n\n/* The disambiguating second line \u2014 city and state, a website, a count. Takes the whole row of\n the wrapping name cell, so it lands beneath the name rather than beside the chips. */\n.mj-fk-secondary {\n display: block;\n flex-basis: 100%;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-icon {\n font-size: 9px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-pill-label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-caret {\n font-size: 8px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n/* The menu is rendered INSIDE the results dropdown panel so it overlays the list\n (correct z-order, no extra real estate) and rides the dropdown's above/below\n flip. Anchored to the dropdown's top-right \u2014 right under the pill. */\n.mj-fk-scope-menu {\n position: absolute;\n top: 4px;\n right: 8px;\n z-index: 5;\n min-width: 180px;\n max-width: calc(100vw - 24px);\n max-height: 260px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n box-shadow: var(--mj-shadow-lg);\n padding: 5px;\n animation: mj-dropdown-in 120ms ease;\n}\n\n/* When the dropdown opens ABOVE the input, anchor the menu to its bottom edge so it\n stays next to the pill (which is at the input/dropdown boundary). */\n.mj-fk-scope-menu--bottom {\n top: auto;\n bottom: 4px;\n}\n\n.mj-fk-scope-grp {\n font-size: 10px;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-text-muted);\n padding: 7px 10px 4px;\n font-weight: 700;\n}\n\n.mj-fk-scope-mi {\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 7px 10px;\n font-size: 13px;\n border-radius: 5px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-fk-scope-mi:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-scope-mi--on {\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n/* Fixed-width LEFT slot: a compact stacked up/down reorder control that reveals on row\n hover. Reserved (same width) on every row so the field icons + labels stay aligned. */\n.mj-fk-col-reorder {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 22px;\n flex-shrink: 0;\n}\n\n.mj-fk-col-move {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 10px;\n padding: 0;\n background: transparent;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 8px;\n opacity: 0; /* hover-reveal for a clean resting state */\n transition: opacity var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-mi:hover .mj-fk-col-move:not(:disabled) {\n opacity: 0.8;\n}\n\n.mj-fk-col-move:hover:not(:disabled) {\n opacity: 1;\n color: var(--mj-brand-primary);\n}\n\n/* End-of-range arrows stay hidden (slot still reserved) rather than greyed. */\n.mj-fk-col-move:disabled {\n opacity: 0 !important;\n cursor: default;\n}\n\n.mj-fk-scope-mi-icon {\n width: 14px;\n font-size: 11px;\n opacity: 0.75;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-mi-label {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Fixed-width RIGHT slot so the eye (or its empty space, for the name row) aligns. */\n.mj-fk-col-eye-slot {\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Eye toggle: show/hide a field as a grid column (independent of search scope). */\n.mj-fk-col-toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-col-toggle:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-col-toggle--on {\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-scope-divider {\n height: 1px;\n background: var(--mj-border-subtle);\n margin: 4px 6px;\n}\n\n/* Narrow / mobile screens: shrink the pill + its reserved space, give menu rows a\n larger touch target, and keep the menu within the viewport. */\n@media (max-width: 560px) {\n .mj-fk-search--scoped .mj-forms-field-input {\n padding-right: 116px;\n }\n .mj-fk-scope-pill {\n max-width: 88px;\n }\n .mj-fk-scope-menu {\n min-width: 160px;\n }\n .mj-fk-scope-mi {\n padding: 10px 10px;\n }\n}\n\n/* ============================================\n FLOATING DROPDOWN PANEL (position: fixed via ngStyle)\n ============================================ */\n.mj-fk-dropdown {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n animation: mj-dropdown-in 150ms ease;\n}\n\n.mj-fk-dropdown--above {\n animation: mj-dropdown-in-above 150ms ease;\n}\n\n.mj-fk-option {\n padding: 10px 14px;\n font-size: 14px;\n color: var(--mj-text-primary);\n cursor: pointer;\n transition: background var(--mj-transition-base);\n border-radius: 6px;\n}\n\n.mj-fk-option:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n}\n\n.mj-fk-option--selected {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-option--selected:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n/* ============================================\n MULTI-COLUMN FK DROPDOWN \u2014 aligned mini-grid (icon + name + extra cols)\n with sortable headers and horizontal scroll.\n ============================================ */\n.mj-fk-dropdown--multi {\n padding: 4px;\n /* The inner .mj-fk-options is the single scroll container (both axes) so the\n sticky header anchors correctly; the dropdown just clips to its rounded border. */\n overflow: hidden;\n max-height: none;\n}\n\n/* Single scroll region (both axes) for the grid: vertical for long lists, horizontal\n when many DefaultInView columns make rows wider than the dropdown. Being the sole\n scroller lets the sticky column headers anchor to its top edge. */\n.mj-fk-dropdown--multi .mj-fk-options {\n overflow: auto;\n max-height: 260px;\n}\n\n/* While the scope menu is open it must escape the panel's clip (the inner\n .mj-fk-options keeps its own scroll, so the grid still behaves). */\n.mj-fk-dropdown--scope-open {\n overflow: visible;\n}\n\n/* One CSS grid spans the header + all data rows so every column lines up.\n grid-template-columns is supplied inline from FKGridTemplateColumns.\n `width: 100%` (with `min-width: max-content`) lets the last column's `1fr` track\n absorb leftover width, while still overflowing \u2192 horizontal scroll when the columns\n are collectively wider than the dropdown. */\n.mj-fk-grid {\n display: grid;\n width: 100%;\n min-width: max-content;\n align-items: stretch;\n}\n\n/* Rows are layout-transparent so their cells become direct grid items (this is\n what makes columns align across rows). The row element still exists for click\n handling and for the active-state selector below. */\n.mj-fk-grid-row {\n display: contents;\n}\n\n/* Header cells: sticky to the top of the vertical scroll, clickable to sort. */\n.mj-fk-hcell {\n position: sticky;\n top: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 7px 12px;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-elevated);\n border-bottom: 1px solid var(--mj-border-default);\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n\n.mj-fk-hcell:hover {\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-hcell--icon {\n cursor: default;\n padding: 7px 8px;\n}\n\n.mj-fk-hcell--icon:hover {\n background: var(--mj-bg-surface-elevated);\n}\n\n.mj-fk-hcell-label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-sort-icon {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n/* Idle (unsorted) columns show a faded sort glyph to signal sortability. */\n.mj-fk-sort-icon--idle {\n opacity: 0.35;\n}\n\n/* Data cells */\n.mj-fk-cell {\n display: flex;\n align-items: center;\n padding: 8px 12px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 320px;\n cursor: pointer;\n}\n\n/* The fill column (last, or a user-resized one) drops the default content cap so its\n cells stretch to the full track width that the header already occupies. */\n.mj-fk-cell--fill {\n max-width: none;\n}\n\n/* Wrapping span keeps the highlighted text+<mark> as one inline run (so flex\n doesn't strip the space next to the mark) while still truncating with ellipsis. */\n.mj-fk-cell > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.mj-fk-cell--icon {\n justify-content: center;\n padding: 8px;\n max-width: none;\n color: var(--mj-text-muted);\n font-size: 13px;\n}\n\n.mj-fk-cell--name {\n font-weight: 500;\n font-size: 14px;\n color: var(--mj-text-primary);\n gap: 6px;\n /* Lets a strategy's second line wrap beneath the name. */\n flex-wrap: wrap;\n}\n\n.mj-fk-selected-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n flex-shrink: 0;\n}\n\n/* Active (keyboard / hover) row \u2014 painted on the cells, since the row box is\n removed by display:contents. The child combinator still matches. */\n.mj-fk-grid-row--active > .mj-fk-cell {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n}\n\n/* Currently-linked row \u2014 a subtle persistent tint so the user sees which record\n is selected when they reopen the list (stacks under the brighter active tint). */\n.mj-fk-grid-row--selected > .mj-fk-cell {\n background: color-mix(in srgb, var(--mj-brand-primary) 6%, transparent);\n}\n\n.mj-fk-grid-row--selected > .mj-fk-cell--name {\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n/* Matched-substring highlight inside the name column */\n/* ::ng-deep (not :global, which Angular's emulated encapsulation ignores) so the\n style reaches the <mark> injected via [innerHTML]. Color comes from the shared\n theme token so light/dark/white-label all control it centrally. */\n.mj-fk-cell--name ::ng-deep .mj-forms-search-highlight,\n.mj-fk-cell ::ng-deep .mj-forms-search-highlight {\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n/* Column resize handle \u2014 thin grab strip on the right edge of each header cell. */\n.mj-fk-resizer {\n position: absolute;\n top: 0;\n right: 0;\n width: 7px;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n}\n\n.mj-fk-resizer::after {\n content: '';\n position: absolute;\n top: 20%;\n right: 2px;\n width: 2px;\n height: 60%;\n background: transparent;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-hcell:hover .mj-fk-resizer::after,\n.mj-fk-resizer:hover::after {\n background: var(--mj-border-strong);\n}\n\n/* Loading / empty status rows */\n.mj-fk-status {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 14px;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-status i {\n font-size: 12px;\n}\n\n.mj-fk-status--empty {\n font-style: italic;\n}\n\n/* Sticky \"create new\" footer \u2014 sits below the (scrolling) options as a direct child of\n the dropdown panel, so it's always visible regardless of list length. */\n.mj-fk-create-footer {\n display: flex;\n align-items: center;\n gap: 9px;\n width: 100%;\n padding: 10px 14px;\n background: var(--mj-bg-surface-card);\n border: none;\n border-top: 1px solid var(--mj-border-default);\n color: var(--mj-brand-primary);\n font-size: 13px;\n font-weight: 600;\n font-family: inherit;\n text-align: left;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-create-footer:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-create-icon {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n.mj-fk-create-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* ============================================\n PINNED \"CURRENTLY SELECTED\" SECTION\n ============================================ */\n.mj-fk-current {\n border-bottom: 1px solid var(--mj-border-default);\n background: color-mix(in srgb, var(--mj-brand-primary) 7%, var(--mj-bg-surface-card));\n animation: mj-fk-current-in 220ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n@keyframes mj-fk-current-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mj-fk-current-head {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 8px 12px 3px;\n font-size: 10px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-current-head i {\n font-size: 10px;\n}\n\n.mj-fk-current-row {\n position: relative;\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 6px 12px 10px;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n/* Accent bar on the left for a bit of sizzle. */\n.mj-fk-current-row::before {\n content: '';\n position: absolute;\n left: 0;\n top: 4px;\n bottom: 8px;\n width: 3px;\n border-radius: 0 2px 2px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-fk-current-row:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-fk-current-icon {\n flex-shrink: 0;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-current-name {\n font-weight: 600;\n font-size: 14px;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-detail {\n font-size: 13px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-clear {\n margin-left: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-current-clear:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n@keyframes mj-dropdown-in {\n from { opacity: 0; transform: translateY(-4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@keyframes mj-dropdown-in-above {\n from { opacity: 0; transform: translateY(4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n/* ============================================\n SEARCH HIGHLIGHTING\n ============================================ */\n.mj-forms-field-label ::ng-deep .mj-forms-search-highlight {\n /* Shared search-highlight theme token. ::ng-deep (not :global) so it reaches\n innerHTML content. */\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n/* ============================================\n VALIDATION ERROR STATE\n ============================================ */\n.mj-forms-field--has-error .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error .mj-forms-field-input:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error .mj-forms-field-input--textarea {\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error .mj-forms-field-input--textarea:focus {\n border-color: var(--mj-status-error);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n.mj-forms-field--has-error .mj-custom-select-trigger {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error .mj-fk-search .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n/* ============================================\n VALIDATION WARNING STATE\n ============================================ */\n.mj-forms-field--has-warning .mj-forms-field-input {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning .mj-forms-field-input:focus {\n background: color-mix(in srgb, var(--mj-status-warning) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning .mj-forms-field-input--textarea {\n border-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning .mj-forms-field-input--textarea:focus {\n border-color: var(--mj-status-warning);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-warning) 8%, transparent);\n}\n\n.mj-forms-field--has-warning .mj-custom-select-trigger {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning .mj-fk-search .mj-forms-field-input {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n/* ============================================\n VALIDATION MESSAGE AREA\n ============================================ */\n.mj-forms-field-validation {\n grid-column: 2;\n display: flex;\n flex-direction: column;\n gap: 2px;\n margin-top: -2px;\n overflow: hidden;\n animation: mj-validation-slide-in 200ms ease-out;\n}\n\n.mj-forms-field-validation-item {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n font-size: 12px;\n line-height: 1.4;\n padding: 3px 0 1px;\n}\n\n.mj-forms-field-validation-item i {\n font-size: 11px;\n margin-top: 2px;\n flex-shrink: 0;\n}\n\n/* Error message colors */\n.mj-forms-field-validation--error .mj-forms-field-validation-item {\n color: var(--mj-status-error);\n}\n\n.mj-forms-field-validation--error .mj-forms-field-validation-item i {\n color: var(--mj-status-error);\n}\n\n/* Warning message colors */\n.mj-forms-field-validation--warning .mj-forms-field-validation-item {\n color: var(--mj-status-warning-text);\n}\n\n.mj-forms-field-validation--warning .mj-forms-field-validation-item i {\n color: var(--mj-status-warning);\n}\n\n/* ============================================\n IMAGE / COLOR / JSON EXTENDED TYPES\n ============================================ */\n.mj-forms-image {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-image-preview {\n width: 72px;\n height: 72px;\n object-fit: cover;\n object-position: center;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n display: block;\n}\n\n.mj-forms-image-preview--empty {\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 22px;\n}\n\n.mj-forms-image-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-image-hint {\n color: var(--mj-text-muted);\n}\n\n.mj-forms-image-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-image-file {\n display: none;\n}\n\n.mj-forms-image-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n font-family: inherit;\n font-weight: 600;\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 25%, transparent);\n border-radius: 6px;\n padding: 4px 10px;\n cursor: pointer;\n}\n\n.mj-forms-image-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, transparent);\n}\n\n.mj-forms-image-btn--ghost {\n color: var(--mj-text-secondary);\n background: transparent;\n border-color: var(--mj-border-default);\n font-weight: 500;\n}\n\n.mj-forms-image--edit .mj-forms-field-input {\n width: 100%;\n}\n\n.mj-forms-color {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n}\n\n.mj-forms-color-swatch {\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n}\n\n.mj-forms-color-picker {\n width: 32px;\n height: 32px;\n padding: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n flex: 0 0 auto;\n}\n\n.mj-forms-color-hex {\n max-width: 160px;\n}\n\n.mj-forms-json {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 12.5px;\n line-height: 1.45;\n white-space: pre-wrap;\n word-break: break-word;\n margin: 0;\n max-height: 360px;\n overflow: auto;\n width: 100%;\n}\n\n@keyframes mj-validation-slide-in {\n from {\n opacity: 0;\n max-height: 0;\n transform: translateY(-4px);\n }\n to {\n opacity: 1;\n max-height: 100px;\n transform: translateY(0);\n }\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n/* With no label column, validation messages sit under the control in the only column. */\n.mj-forms-field--no-label .mj-forms-field-validation {\n grid-column: 1;\n}\n\n@media (max-width: 640px) {\n .mj-forms-field {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n\n .mj-forms-field-label {\n font-size: 12px;\n }\n\n .mj-forms-field-validation {\n grid-column: 1;\n }\n}\n"] }]
4566
+ args: [{ standalone: false, selector: 'mj-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n IsFieldReadableByUser comes before every expression that touches the record. BaseEntity.Get()\n throws for a field the user cannot read, so Value, ShouldHideField and the FK resolution are\n only safe once it has short-circuited. A denied field renders nothing at all.\n\n IsClaimedByContribution may precede it because it reads only the form context: a field a\n panel stands in for is not drawn, in either mode.\n-->\n@if (!IsClaimedByContribution && !IsFieldDeprecatedOrDisabled && IsFieldReadableByUser && Record && (Record.IsSaved || !IsFieldReadOnly) && !ShouldHideField) {\n <!-- READ-ONLY MODE -->\n @if ((!EditMode || IsFieldReadOnly) && !ShouldHideField) {\n <div class=\"mj-forms-field\" [class.mj-forms-field--no-label]=\"!ShowLabel\" [class.mj-forms-field--readonly]=\"EditMode && IsFieldReadOnly\" [class.mj-forms-field--dirty]=\"IsDirty\" [class.mj-forms-field--time-travel]=\"ActiveVersionPreview !== null\" [class.mj-forms-field--time-travel-diff]=\"HasTimeTravelDiff\">\n @if (ShowLabel) {\n <div class=\"mj-forms-field-label-row\">\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n @if (HasTimeTravelDiff) {\n <span class=\"mj-forms-time-travel-badge\" title=\"This field's value at the previewed historical version differs from the current live record\">\n <i class=\"fa-solid fa-clock-rotate-left\" aria-hidden=\"true\"></i>\n Changed\n </span>\n }\n </div>\n }\n <div class=\"mj-forms-field-control\">\n <!-- FK fields with a mapped or resolved name: show the name as a hyperlink -->\n @if (IsFKWithNameField) {\n <span class=\"mj-forms-field-value\">\n @if (IsPolymorphicFK) {\n <span class=\"mj-forms-poly-fk-read\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link mj-forms-field-link--fk mj-forms-field-link--poly\"\n [mjRecordLink]=\"Record\"\n [FieldName]=\"FieldName\"\n [DisplayName]=\"FKDisplayName || FormatValue()\"\n [RecordLinksEnabled]=\"RecordLinksEnabled\"\n [Provider]=\"ProviderToUse\"\n (Navigate)=\"Navigate.emit($event)\"\n (RecordUpdated)=\"OnLinkedRecordQuickEdited($event)\"\n [attr.aria-label]=\"'Open ' + (EffectiveRelatedEntityName || 'related') + ' record: ' + (FKDisplayName || FormatValue())\">\n @if (EffectiveRelatedEntityIcon) {\n <i [class]=\"EffectiveRelatedEntityIcon + ' mj-forms-poly-entity-icon'\"></i>\n }\n <span>{{ FKDisplayName || FormatValue() }}</span>\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n <span>{{ FKDisplayName || FormatValue() }}</span>\n }\n @if (ShowPolymorphicRawIDBadge) {\n <button\n type=\"button\"\n class=\"mj-forms-copy-id-btn\"\n [class.is-copied]=\"CopiedRawID\"\n (click)=\"OnCopyRawID($event)\"\n aria-label=\"Copy Record ID\">\n <i [class]=\"CopiedRawID ? 'fa-solid fa-check' : 'fa-regular fa-copy'\" aria-hidden=\"true\"></i>\n @if (CopiedRawID) {\n <span class=\"mj-forms-copy-id-btn__feedback\">Copied ID</span>\n }\n </button>\n }\n </span>\n } @else {\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link mj-forms-field-link--fk\"\n [mjRecordLink]=\"Record\"\n [FieldName]=\"FieldName\"\n [DisplayName]=\"FKDisplayName\"\n [RecordLinksEnabled]=\"RecordLinksEnabled\"\n [Provider]=\"ProviderToUse\"\n (Navigate)=\"Navigate.emit($event)\"\n (RecordUpdated)=\"OnLinkedRecordQuickEdited($event)\"\n [attr.aria-label]=\"'Open ' + (EffectiveRelatedEntityName || 'related') + ' record: ' + FKDisplayName\">\n {{ FKDisplayName }}\n </a>\n } @else {\n {{ FKDisplayName }}\n }\n }\n </span>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n }\n @if (IsInlineImageValue) {\n <span class=\"mj-forms-image-meta\">Inline image ({{ ImageValueSizeLabel }})</span>\n } @else if (ImagePreviewSrc) {\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open image\">\n {{ ImageUrlDisplay }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color\">\n <span class=\"mj-forms-color-swatch\" [style.background-color]=\"ColorSwatchValue\"></span>\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <pre class=\"mj-forms-json\">{{ JsonDisplayValue }}</pre>\n }\n @else {\n @switch (LinkType) {\n @case ('Email') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnEmailLinkClick($event)\" title=\"Send email\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-envelope mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('URL') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open link\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('Record') {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link\"\n [mjRecordLink]=\"Record\"\n [FieldName]=\"FieldName\"\n [DisplayName]=\"FormatValue()\"\n [RecordLinksEnabled]=\"RecordLinksEnabled\"\n [Provider]=\"ProviderToUse\"\n (Navigate)=\"Navigate.emit($event)\"\n (RecordUpdated)=\"OnLinkedRecordQuickEdited($event)\"\n title=\"View related record\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n {{ FormatValue() }}\n }\n </span>\n }\n @default {\n @if (Type === 'checkbox') {\n <span class=\"mj-forms-field-value\">\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\" [checked]=\"!!Value\" disabled>\n </div>\n </span>\n }\n @else if (RichTextMode === 'markdown') {\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\">\n <mj-markdown [data]=\"FormatValue()\"></mj-markdown>\n </div>\n }\n @else if (RichTextMode === 'html') {\n <!-- XSS: the mjSafeRichHtml pipe sanitizes with DOMPurify (HTML + SVG profiles)\n and then bypasses Angular's redundant re-sanitize. DOMPurify strips <script>,\n on* handlers, javascript:/data: URLs and <foreignObject> while KEEPING safe\n inline SVG + styles \u2014 richer than Angular's built-in sanitizer, still safe for\n untrusted content. -->\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\" [innerHTML]=\"FormatValue() | mjSafeRichHtml\"></div>\n }\n @else if (RichTextMode === 'code') {\n <div class=\"mj-forms-field-value mj-forms-field-value--code\">\n <mj-code-editor [value]=\"FormatValue()\" [language]=\"CodeEditorLanguage\" [readonly]=\"true\"></mj-code-editor>\n </div>\n }\n @else if (IsLongText) {\n <span class=\"mj-forms-field-value mj-forms-field-value--long\">{{ FormatValue() }}</span>\n }\n @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n }\n }\n }\n @if (HasTimeTravelDiff) {\n <div class=\"mj-forms-time-travel-bar\" role=\"status\">\n <span class=\"mj-forms-time-travel-current\" [title]=\"'Current live value: ' + FormattedCurrentLiveValue\">\n <i class=\"fa-solid fa-bolt\" aria-hidden=\"true\"></i>\n <span>Current live: <strong>{{ FormattedCurrentLiveValue }}</strong></span>\n </span>\n <button\n type=\"button\"\n class=\"mj-forms-time-travel-restore-btn\"\n (click)=\"OnRestoreSingleFieldFromPreview($event)\"\n title=\"Restore only this field to its value from this historical version\">\n <i class=\"fa-solid fa-rotate-left\" aria-hidden=\"true\"></i>\n <span>Restore this field</span>\n </button>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- EDIT MODE -->\n @if (EditMode && !IsFieldReadOnly) {\n <div class=\"mj-forms-field mj-forms-field--editing\" [class.mj-forms-field--no-label]=\"!ShowLabel\" [class.mj-forms-field--dirty]=\"IsDirty\" [class.mj-forms-field--conflict]=\"ActiveConflict !== null\" [class.mj-forms-field--required-empty]=\"IsRequiredEmpty\" [class.mj-forms-field--has-error]=\"ShowErrors\" [class.mj-forms-field--has-warning]=\"ShowWarnings || StoredDateIsUnreadable\">\n @if (ShowLabel) {\n <div class=\"mj-forms-field-label-row\">\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n <ng-container *ngTemplateOutlet=\"fieldEditIndicatorsTpl\"></ng-container>\n </div>\n }\n <div class=\"mj-forms-field-control\">\n @if (!ShowLabel) {\n <ng-container *ngTemplateOutlet=\"fieldEditIndicatorsTpl\"></ng-container>\n }\n <!-- Foreign Key fields get custom search autocomplete -->\n @if (HasRelatedEntity) {\n <div class=\"mj-fk-search\"\n [class.mj-fk-search--matched]=\"FKHasLinkedValue\"\n [class.mj-fk-search--scoped]=\"FKFocused && FKSearchableFields.length > 1\"\n [class.mj-fk-search--toggle]=\"FKFocused && !!FKScopeLabels\">\n @if (FKHasLinkedValue && !(FKFocused && FKSearchableFields.length > 1)) {\n <i class=\"fa-solid fa-link mj-fk-link-icon\" title=\"Linked record\"></i>\n }\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [class.mj-forms-field-input--linked]=\"FKHasLinkedValue\"\n [value]=\"FKSearchText\"\n (input)=\"OnFKInput($event)\"\n (focus)=\"OnFKFocus($event)\"\n (blur)=\"OnFKBlur()\"\n (keydown)=\"OnFKKeydown($event)\"\n placeholder=\"Search...\">\n\n <!-- Scope pill: only while focused, only when there's more than one searchable field.\n The menu itself lives INSIDE the results dropdown (below) so it overlays the\n list and rides the same above/below flip. -->\n @if (FKFocused && FKSearchableFields.length > 1) {\n <button class=\"mj-fk-scope-pill\"\n [class.mj-fk-scope-pill--open]=\"FKShowScopeMenu\"\n (mousedown)=\"OnFKScopeToggle($event)\"\n [title]=\"'Searching ' + FKSearchFieldLabel + ' \u2014 click to change'\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-scope-pill-icon\"></i>\n <span class=\"mj-fk-scope-pill-label\">{{ FKSearchFieldLabel }}</span>\n <i class=\"fa-solid mj-fk-scope-pill-caret\" [class.fa-chevron-up]=\"FKShowScopeMenu\" [class.fa-chevron-down]=\"!FKShowScopeMenu\"></i>\n </button>\n }\n\n <!-- Population toggle: only when the resolved lookup strategy offers a second\n population (e.g. customers vs the whole directory). -->\n @if (FKFocused && FKScopeLabels) {\n <button type=\"button\" class=\"mj-fk-scope-toggle\"\n (mousedown)=\"OnFKScopeChange($event)\"\n [title]=\"'Showing ' + (FKScope === 'primary' ? FKScopeLabels.primary : FKScopeLabels.all) + ' \u2014 click to switch'\">\n {{ FKScope === 'primary' ? FKScopeLabels.all : FKScopeLabels.primary }}\n </button>\n }\n\n @if (FKSearchText) {\n <button class=\"mj-fk-clear\" (mousedown)=\"OnFKClearClick($event)\" title=\"Clear\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n } @else {\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n }\n @if (ShowFKDropdown) {\n <div class=\"mj-fk-dropdown mj-fk-dropdown--multi\"\n [ngStyle]=\"DropdownPositionStyle\"\n [class.mj-fk-dropdown--above]=\"OpenAbove\"\n [class.mj-fk-dropdown--scope-open]=\"FKShowScopeMenu\">\n\n <!-- Scope (search-field) picker + column toggles \u2014 overlays the list, anchored to the pill edge.\n Click a row to SEARCH that field; click the eye to SHOW/HIDE it as a column. -->\n @if (FKShowScopeMenu) {\n <div class=\"mj-fk-scope-menu\" [class.mj-fk-scope-menu--bottom]=\"OpenAbove\">\n <div class=\"mj-fk-scope-grp\">Columns shown</div>\n @for (f of FKSearchableFields; track f.FieldName) {\n @if (f.Group === 'shown') {\n <ng-container *ngTemplateOutlet=\"scopeRow; context: { $implicit: f }\"></ng-container>\n }\n }\n @if (FKHasOtherSearchableFields) {\n <div class=\"mj-fk-scope-divider\"></div>\n <div class=\"mj-fk-scope-grp\">Other fields</div>\n @for (f of FKSearchableFields; track f.FieldName) {\n @if (f.Group === 'other') {\n <ng-container *ngTemplateOutlet=\"scopeRow; context: { $implicit: f }\"></ng-container>\n }\n }\n }\n </div>\n }\n\n <!-- Shared scope-menu row, fixed-slot layout for clean alignment:\n [reorder \u25B2\u25BC \u2014 hover-reveal] [icon] [label] [eye].\n Click the row = search this field; the active search row is shown bold+accent. -->\n <ng-template #scopeRow let-f>\n <div class=\"mj-fk-scope-mi\"\n [class.mj-fk-scope-mi--on]=\"IsFKScopeActive(f)\"\n (mousedown)=\"OnFKScopeSelect($event, f)\">\n <span class=\"mj-fk-col-reorder\">\n @if (f.Group === 'shown') {\n <button type=\"button\" class=\"mj-fk-col-move mj-fk-col-move--up\" [disabled]=\"!CanMoveFKColumnUp(f.FieldName)\"\n (mousedown)=\"MoveFKColumn($event, f.FieldName, -1)\" title=\"Move column up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button type=\"button\" class=\"mj-fk-col-move mj-fk-col-move--down\" [disabled]=\"!CanMoveFKColumnDown(f.FieldName)\"\n (mousedown)=\"MoveFKColumn($event, f.FieldName, 1)\" title=\"Move column down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n }\n </span>\n <i [class]=\"f.Icon + ' mj-fk-scope-mi-icon'\"></i>\n <span class=\"mj-fk-scope-mi-label\">{{ f.Label }}</span>\n <span class=\"mj-fk-col-eye-slot\">\n @if (CanToggleFKColumn(f)) {\n <button type=\"button\" class=\"mj-fk-col-toggle\"\n [class.mj-fk-col-toggle--on]=\"IsFKColumnVisible(f)\"\n (mousedown)=\"OnFKColumnToggle($event, f)\"\n [title]=\"IsFKColumnVisible(f) ? 'Hide this column' : 'Show as a column'\">\n <i class=\"fa-solid\" [class.fa-eye]=\"IsFKColumnVisible(f)\" [class.fa-eye-slash]=\"!IsFKColumnVisible(f)\"></i>\n </button>\n }\n </span>\n </div>\n </ng-template>\n\n <!-- Pinned \"currently selected\" \u2014 sticky at the top while browsing, so you can\n keep it or pick another without clearing first. -->\n @if (FKSelectedSuggestion && !FKLoading) {\n <div class=\"mj-fk-current\">\n <div class=\"mj-fk-current-head\">\n <i class=\"fa-solid fa-circle-check\"></i>\n <span>Currently selected</span>\n </div>\n <div class=\"mj-fk-current-row\" (mousedown)=\"OnFKSelectItem(FKSelectedSuggestion, $event)\" title=\"Keep this selection\">\n @if (FKSelectedSuggestion.Icon) { <i class=\"mj-fk-current-icon\" [class]=\"FKSelectedSuggestion.Icon\"></i> }\n <span class=\"mj-fk-current-name\" [innerHTML]=\"FKSelectedSuggestion.HighlightedName\"></span>\n @if (FKSelectedSuggestion.ExtraColumns.length && FKSelectedSuggestion.ExtraColumns[0].Value) {\n <span class=\"mj-fk-current-detail\">{{ FKSelectedSuggestion.ExtraColumns[0].Value }}</span>\n }\n <button type=\"button\" class=\"mj-fk-current-clear\" (mousedown)=\"OnFKClearClick($event)\" title=\"Clear selection\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n </div>\n }\n\n @if (FKLoading) {\n <div class=\"mj-fk-status\">\n <i class=\"fa-solid fa-circle-notch fa-spin\"></i>\n <span>Searching\u2026</span>\n </div>\n }\n @if (!FKLoading && FKNoMatches) {\n <div class=\"mj-fk-status mj-fk-status--empty\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n <span>No matches</span>\n </div>\n }\n @if (!FKLoading && FKSuggestions.length > 0) {\n <div class=\"mj-fk-options\">\n <div class=\"mj-fk-grid\" [style.grid-template-columns]=\"FKGridTemplateColumns\">\n <!-- Header row: click to sort, drag the right edge to resize.\n (Column reorder lives in the field-selector menu, not here.) -->\n <div class=\"mj-fk-grid-row mj-fk-grid-row--header\">\n @if (FKHasIconColumn) {\n <div class=\"mj-fk-hcell mj-fk-hcell--icon\"></div>\n }\n @for (col of FKColumnFields; track col; let i = $index) {\n <div class=\"mj-fk-hcell\"\n (mousedown)=\"OnFKHeaderSort($event, col)\"\n [title]=\"'Click to sort by ' + FKColumnHeaders[i]\">\n <span class=\"mj-fk-hcell-label\">{{ FKColumnHeaders[i] }}</span>\n <i [class]=\"FKSortIcon(col)\"></i>\n <span class=\"mj-fk-resizer\" (mousedown)=\"OnFKColResizeStart($event, col)\" title=\"Drag to resize\"></span>\n </div>\n }\n </div>\n <!-- Data rows, under their group's header. A strategy that returns one\n unlabelled group renders exactly as before. -->\n @for (group of FKGroups; track group.Key) {\n @if (group.Label && FKSuggestionsInGroup(group.Key).length > 0) {\n <div class=\"mj-fk-grid-row mj-fk-group-head\" (mousedown)=\"$event.preventDefault()\">{{ group.Label }}</div>\n }\n @for (suggestion of FKSuggestionsInGroup(group.Key); track suggestion.PrimaryKeyValue) {\n <div class=\"mj-fk-grid-row\"\n [class.mj-fk-grid-row--active]=\"FKIndexOf(suggestion) === FKActiveIndex\"\n [class.mj-fk-grid-row--selected]=\"IsFKRowSelected(suggestion)\"\n (mousedown)=\"OnFKSelectItem(suggestion, $event)\"\n (mouseenter)=\"FKActiveIndex = FKIndexOf(suggestion)\">\n @if (FKHasIconColumn) {\n <div class=\"mj-fk-cell mj-fk-cell--icon\">\n @if (suggestion.Icon) { <i [class]=\"suggestion.Icon\"></i> }\n </div>\n }\n @for (col of FKColumnFields; track col; let last = $last) {\n @if (col === FKNameField) {\n <div class=\"mj-fk-cell mj-fk-cell--name\" [class.mj-fk-cell--fill]=\"FKColumnFillsTrack(col, last)\">\n @if (IsFKRowSelected(suggestion)) {\n <i class=\"fa-solid fa-check mj-fk-selected-check\" title=\"Currently selected\"></i>\n }\n <span class=\"mj-fk-name-line\">\n <span [innerHTML]=\"suggestion.HighlightedName\"></span>\n @for (chip of suggestion.Chips ?? []; track chip.Text) {\n <span class=\"mj-fk-chip\"\n [class.mj-fk-chip--info]=\"chip.Tone === 'info'\"\n [class.mj-fk-chip--warn]=\"chip.Tone === 'warn'\">{{ chip.Text }}</span>\n }\n </span>\n @if (suggestion.Secondary) {\n <span class=\"mj-fk-secondary\">{{ suggestion.Secondary }}</span>\n }\n </div>\n } @else {\n <div class=\"mj-fk-cell\" [class.mj-fk-cell--fill]=\"FKColumnFillsTrack(col, last)\" [title]=\"FKCellFor(suggestion, col)?.Value || ''\">\n <span [innerHTML]=\"FKCellFor(suggestion, col)?.HighlightedValue || ''\"></span>\n </div>\n }\n }\n </div>\n }\n }\n </div>\n </div>\n }\n\n <!-- Sticky \"create new\" footer \u2014 always visible at the bottom (no scrolling),\n prefilled with the typed text. Gated on create permission. -->\n @if (CanCreateFK) {\n <button type=\"button\" class=\"mj-fk-create-footer\" (mousedown)=\"OnFKCreateNew($event)\" [title]=\"FKCreateLabel\">\n <i class=\"fa-solid fa-plus mj-fk-create-icon\"></i>\n <span class=\"mj-fk-create-label\">{{ FKCreateLabel }}</span>\n </button>\n }\n </div>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image mj-forms-image--edit\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n } @else {\n <div class=\"mj-forms-image-preview mj-forms-image-preview--empty\" aria-hidden=\"true\">\n <i class=\"fa-regular fa-image\"></i>\n </div>\n }\n <div class=\"mj-forms-image-meta\">\n @if (IsInlineImageValue) {\n <span>Inline image ({{ ImageValueSizeLabel }})</span>\n }\n <span class=\"mj-forms-image-hint\">Max {{ ImageMaxSizeLabel }}</span>\n </div>\n <div class=\"mj-forms-image-actions\">\n <input #imageFileInput type=\"file\" accept=\"image/png,image/jpeg,image/gif,image/webp,image/svg+xml\"\n class=\"mj-forms-image-file\" (change)=\"OnImageFileSelected($event)\">\n <button type=\"button\" class=\"mj-forms-image-btn\" (click)=\"imageFileInput.click()\">\n <i class=\"fa-solid fa-upload\"></i>\n {{ ImagePreviewSrc ? 'Replace' : 'Upload' }}\n </button>\n @if (ImagePreviewSrc) {\n <button type=\"button\" class=\"mj-forms-image-btn mj-forms-image-btn--ghost\" (click)=\"OnImageClear()\">Clear</button>\n }\n </div>\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"ImageUrlInputValue\"\n (input)=\"OnImageUrlInput($event)\"\n placeholder=\"https://\u2026 or paste a data URI\">\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color mj-forms-color--edit\">\n <input type=\"color\"\n class=\"mj-forms-color-picker\"\n [value]=\"ColorPickerValue\"\n (input)=\"OnColorPickerInput($event)\"\n [attr.aria-label]=\"DisplayName + ' color'\">\n <input type=\"text\"\n class=\"mj-forms-field-input mj-forms-color-hex\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n placeholder=\"#RRGGBB\">\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea mj-forms-json\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n (blur)=\"OnJsonBlur()\"></textarea>\n }\n @else if (EditRichTextMode !== 'plain') {\n <!-- Markdown / HTML / Code long-text: edit raw with a syntax-highlighted code editor -->\n <mj-code-editor\n class=\"mj-forms-field-input--code\"\n [value]=\"FormatValue()\"\n [language]=\"CodeEditorLanguage\"\n (change)=\"OnCodeEditorChange($event)\"></mj-code-editor>\n }\n @else {\n @switch (Type) {\n @case ('textbox') {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\">\n }\n @case ('textarea') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"></textarea>\n }\n @case ('number') {\n <input type=\"number\"\n class=\"mj-forms-field-input mj-forms-field-input--number\"\n [value]=\"Value\"\n (change)=\"OnNumberChange($event)\">\n }\n @case ('datepicker') {\n <input type=\"date\"\n class=\"mj-forms-field-input mj-forms-field-input--date\"\n [value]=\"DateInputValue\"\n (change)=\"OnDateChange($event)\">\n }\n @case ('checkbox') {\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\"\n [checked]=\"!!Value\"\n (change)=\"OnCheckboxChange($event)\">\n </div>\n }\n @case ('select') {\n <div class=\"mj-custom-select-trigger\"\n tabindex=\"0\"\n (click)=\"OnSelectTriggerClick($event)\"\n (blur)=\"OnSelectTriggerBlur()\">\n <span class=\"mj-custom-select-value\" [class.mj-custom-select-value--placeholder]=\"!FormatValue()\">\n {{ FormatValue() || '-- Select --' }}\n </span>\n <i class=\"fa-solid fa-chevron-down mj-custom-select-chevron\" [class.mj-custom-select-chevron--open]=\"ShowSelectDropdown\"></i>\n </div>\n @if (ShowSelectDropdown && PossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of PossibleValues; track option) {\n <div class=\"mj-fk-option\" [class.mj-fk-option--selected]=\"FormatValue() === option\" (mousedown)=\"OnSelectOptionClick(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n }\n @case ('autocomplete') {\n <div class=\"mj-fk-search\">\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnValueListInput($event)\"\n (focus)=\"OnValueListFocus($event)\"\n (blur)=\"OnValueListBlur()\"\n placeholder=\"Type to search...\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n @if (ShowValueListDropdown && FilteredPossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of FilteredPossibleValues; track option) {\n <div class=\"mj-fk-option\" (mousedown)=\"OnValueListSelect(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n </div>\n }\n @default {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (change)=\"OnInputChange($event)\">\n }\n }\n }\n </div>\n <!-- Inline validation messages -->\n @if (DisplayErrors.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--error\">\n @for (error of DisplayErrors; track error.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>{{ error.Message }}</span>\n </div>\n }\n </div>\n }\n @if (DisplayWarnings.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n @for (warning of DisplayWarnings; track warning.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ warning.Message }}</span>\n </div>\n }\n </div>\n }\n <!--\n An unreadable stored value renders as an EMPTY date box, identical to a field that\n was never set - and the next save writes that emptiness over whatever is stored. The\n element cannot display the bad value itself, so the warning sits with the other validation messages, beneath the control.\n -->\n @if (StoredDateIsUnreadable) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>This field holds a value that is not a readable date, so the box above is\n empty. Saving now will replace it.</span>\n </div>\n </div>\n }\n <!-- Inline Conflict Resolution Card -->\n @if (ActiveConflict) {\n <div class=\"mj-forms-field__conflict-card\" role=\"alert\">\n <div class=\"mj-forms-field__conflict-header\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>Updated in another session while you were editing</span>\n </div>\n <div class=\"mj-forms-field__conflict-comparison\">\n <div class=\"mj-forms-field__conflict-col mj-forms-field__conflict-col--local\">\n <span class=\"mj-forms-field__conflict-col-label\">Your edit</span>\n <span class=\"mj-forms-field__conflict-col-value\">{{ FormatFieldValue(ActiveConflict.localEditedValue) }}</span>\n </div>\n <div class=\"mj-forms-field__conflict-col mj-forms-field__conflict-col--remote\">\n <span class=\"mj-forms-field__conflict-col-label\">New value</span>\n <span class=\"mj-forms-field__conflict-col-value\">{{ FormatFieldValue(ActiveConflict.incomingServerValue) }}</span>\n </div>\n </div>\n <div class=\"mj-forms-field__conflict-actions\">\n <button type=\"button\"\n class=\"mj-forms-field__conflict-btn mj-forms-field__conflict-btn--keep\"\n (click)=\"AcceptLocalConflictValue($event)\">\n <i class=\"fa-solid fa-check\"></i>\n <span>Keep mine</span>\n </button>\n <button type=\"button\"\n class=\"mj-forms-field__conflict-btn mj-forms-field__conflict-btn--use-remote\"\n (click)=\"AcceptRemoteConflictValue($event)\">\n <i class=\"fa-solid fa-arrow-down-long\"></i>\n <span>Use new value</span>\n </button>\n </div>\n </div>\n }\n </div>\n }\n}\n\n<!-- Shared template for edit-mode field indicators (Original Value Popover & Auto-Merged Badge) -->\n<ng-template #fieldEditIndicatorsTpl>\n @if (EditMode && IsFieldDirty && !ActiveConflict) {\n <div class=\"mj-forms-field__history-wrap\"\n (mouseenter)=\"ShowOriginalValuePopover = true\"\n (mouseleave)=\"ShowOriginalValuePopover = false\">\n <button type=\"button\"\n class=\"mj-forms-field__history-trigger\"\n title=\"Original value\"\n aria-label=\"Original value\"\n [attr.aria-expanded]=\"ShowOriginalValuePopover\"\n (click)=\"ToggleOriginalValuePopover($event)\">\n <i class=\"fa-solid fa-clock-rotate-left\"></i>\n </button>\n @if (ShowOriginalValuePopover) {\n <div class=\"mj-forms-field__history-popover\" role=\"dialog\" aria-label=\"Original value\">\n <div class=\"mj-forms-field__history-popover-header\">Original value</div>\n <div class=\"mj-forms-field__history-popover-value\">{{ FormattedOriginalValue }}</div>\n <button type=\"button\"\n class=\"mj-forms-field__restore-btn\"\n (click)=\"RestoreOriginalValue($event)\">\n <i class=\"fa-solid fa-rotate-left\"></i>\n <span>Restore</span>\n </button>\n </div>\n }\n </div>\n }\n @if (EditMode && AutoMergedPreviousValue !== undefined && !ActiveConflict) {\n <span class=\"mj-forms-field__auto-merged-badge\"\n [title]=\"'Previously: ' + FormattedAutoMergedPreviousValue\">\n <i class=\"fa-solid fa-bolt\"></i>\n <span>Updated live</span>\n <span class=\"mj-forms-field__auto-merged-tooltip\">Previously: {{ FormattedAutoMergedPreviousValue }}</span>\n </span>\n }\n</ng-template>\n", styles: ["/* ============================================\n FORM FIELD - Shared styles for read and edit\n ============================================ */\n:host {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n/* No label (e.g. a generated section holding a single field, whose section title names it):\n the control takes the whole row instead of falling into the label column. */\n.mj-forms-field--no-label {\n grid-template-columns: 1fr;\n}\n\n/* Subtle row hover in edit mode */\n.mj-forms-field--editing:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 6px;\n margin: 0 -8px;\n padding: 8px 8px;\n}\n\n/* ============================================\n LABEL\n ============================================ */\n.mj-forms-field-label {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n padding-top: 2px;\n word-break: break-word;\n}\n\n/* ============================================\n FIELD CONTROL WRAPPER (value + dirty dot)\n ============================================ */\n.mj-forms-field-control {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-field-control > * {\n flex: 1;\n min-width: 0;\n}\n\n/* ============================================\n DIRTY INDICATOR (solid amber dot after label)\n ============================================ */\n.mj-forms-field--dirty .mj-forms-field-label::after {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--mj-status-warning);\n margin-left: 6px;\n vertical-align: middle;\n}\n\n/* ============================================\n REQUIRED FIELD - red underline when empty\n ============================================ */\n.mj-forms-field--required-empty .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty .mj-forms-field-input:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty .mj-custom-select-trigger {\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--required-empty .mj-fk-search .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n}\n\n/* ============================================\n READ-ONLY VALUE\n ============================================ */\n.mj-forms-field-value {\n font-size: 14px;\n color: var(--mj-text-primary);\n min-height: 24px;\n display: flex;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n.mj-forms-field-value--long {\n white-space: pre-line;\n max-height: 300px;\n overflow: auto;\n}\n\n/* Rich (markdown / html) read-only rendering \u2014 let content flow as a block, not a flex row */\n.mj-forms-field-value--rich {\n display: block;\n align-items: initial;\n max-height: 480px;\n overflow: auto;\n width: 100%;\n}\n\n/* Code read-only / edit rendering \u2014 the embedded code editor needs an explicit height */\n.mj-forms-field-value--code {\n display: block;\n align-items: initial;\n width: 100%;\n}\n\n.mj-forms-field-value--code mj-code-editor,\n.mj-forms-field-input--code {\n display: block;\n width: 100%;\n min-height: 160px;\n max-height: 480px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius, 4px);\n overflow: auto;\n}\n\n/* Read-only fields in edit mode */\n.mj-forms-field--readonly {\n opacity: 0.7;\n}\n\n.mj-forms-field--readonly .mj-forms-field-value {\n color: var(--mj-text-secondary);\n}\n\n/* ============================================\n LINKS (FK, email, URL)\n ============================================ */\n.mj-forms-field-link {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--mj-brand-primary);\n cursor: pointer;\n font-weight: 400;\n font-size: 14px;\n transition: color var(--mj-transition-base);\n text-decoration: none;\n}\n\n.mj-forms-field-link:hover {\n color: var(--mj-brand-primary-hover);\n}\n\n.mj-forms-field-link-icon {\n font-size: 11px;\n opacity: 0;\n transition: opacity var(--mj-transition-base);\n}\n\n.mj-forms-field-link:hover .mj-forms-field-link-icon {\n opacity: 1;\n}\n\n/* FK fields showing entity name instead of raw ID */\n.mj-forms-field-link--fk {\n font-size: 14px;\n font-weight: 400;\n}\n\n/* ============================================\n EDIT MODE INPUTS - Clean underline style\n ============================================ */\n.mj-forms-field-input {\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-forms-field-input:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-forms-field-input::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n/* Textarea variant */\n.mj-forms-field-input--textarea {\n resize: vertical;\n min-height: 60px;\n border: 1.5px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 8px 10px;\n background: var(--mj-bg-surface);\n font-family: inherit;\n}\n\n.mj-forms-field-input--textarea:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n background: var(--mj-bg-surface);\n padding: 8px 10px;\n border-radius: 6px;\n}\n\n/* Number input - narrower */\n.mj-forms-field-input--number {\n max-width: 200px;\n}\n\n/* Date input - narrower */\n.mj-forms-field-input--date {\n max-width: 220px;\n}\n\n/* ============================================\n CHECKBOX (custom styled)\n ============================================ */\n.mj-forms-field-checkbox {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"] {\n appearance: none;\n width: 18px;\n height: 18px;\n border: 2px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n position: relative;\n transition: all var(--mj-transition-base) ease;\n flex-shrink: 0;\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"]:checked {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"]:checked::after {\n content: '';\n position: absolute;\n left: 5px;\n top: 1px;\n width: 5px;\n height: 9px;\n border: solid var(--mj-text-inverse);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.mj-forms-field-checkbox input[type=\"checkbox\"]:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n/* ============================================\n CUSTOM SELECT DROPDOWN (replaces native <select>)\n ============================================ */\n.mj-custom-select-trigger {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n font-family: inherit;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-bottom: 1.5px solid var(--mj-border-default);\n padding: 4px 0;\n width: 100%;\n cursor: pointer;\n outline: none;\n transition: border-color var(--mj-transition-base) ease,\n background var(--mj-transition-base) ease;\n}\n\n.mj-custom-select-trigger:focus {\n border-bottom-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-radius: 4px 4px 0 0;\n padding: 4px 6px;\n}\n\n.mj-custom-select-value {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-custom-select-value--placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-custom-select-chevron {\n font-size: 11px;\n color: var(--mj-text-muted);\n transition: transform var(--mj-transition-base) ease;\n flex-shrink: 0;\n margin-left: 8px;\n}\n\n.mj-custom-select-chevron--open {\n transform: rotate(180deg);\n}\n\n/* ============================================\n FK SEARCH (custom autocomplete)\n ============================================ */\n.mj-fk-search {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mj-fk-search .mj-forms-field-input {\n padding-right: 28px;\n}\n\n.mj-fk-search-icon {\n position: absolute;\n right: 4px;\n color: var(--mj-text-muted);\n font-size: 12px;\n pointer-events: none;\n}\n\n.mj-fk-clear {\n position: absolute;\n right: 2px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 11px;\n padding: 4px 6px;\n line-height: 1;\n border-radius: 3px;\n transition: all var(--mj-transition-base);\n}\n\n.mj-fk-clear:hover {\n color: var(--mj-status-error);\n background: color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n/* Linked state: solid accent underline + a leading chain icon, so it's obvious the\n field holds a resolved record reference rather than free-typed text. */\n.mj-fk-search--matched .mj-forms-field-input {\n border-bottom: 2px solid var(--mj-brand-primary);\n}\n\n/* Linked indicator sits on the RIGHT (just left of the clear button) so it never\n interrupts left-to-right reading of the value or overlaps the text. */\n.mj-fk-link-icon {\n position: absolute;\n right: 26px;\n color: var(--mj-brand-primary);\n font-size: 10px;\n pointer-events: none;\n z-index: 1;\n}\n\n/* Make room on the right for the link icon + the clear button. */\n.mj-forms-field-input--linked {\n padding-right: 46px;\n}\n\n/* ============================================\n SCOPE PILL + FIELD-PICKER MENU (search-field scope)\n ============================================ */\n/* When the pill is showing, reserve room on the right of the input for it. */\n.mj-fk-search--scoped .mj-forms-field-input {\n padding-right: 150px;\n}\n\n.mj-fk-scope-pill {\n position: absolute;\n right: 30px;\n /* Vertically centered in the input so it clears the focus underline below. */\n top: 50%;\n transform: translateY(-50%);\n display: inline-flex;\n align-items: center;\n gap: 5px;\n max-width: 120px;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n /* Kept short so it clears the input's focus underline without making the row taller. */\n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: background var(--mj-transition-base), border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-pill:hover,\n.mj-fk-scope-pill--open {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n/* Population toggle (\"All organizations\" / \"Customers\"). Sits where the search-field pill\n would, or left of the pill when both show; the input reserves room for it so it never covers\n typed text. Same visual family as the pill. */\n.mj-fk-search--toggle .mj-forms-field-input {\n padding-right: 178px;\n}\n\n.mj-fk-search--scoped.mj-fk-search--toggle .mj-forms-field-input {\n padding-right: 306px;\n}\n\n.mj-fk-search--scoped .mj-fk-scope-toggle {\n right: 158px;\n}\n\n.mj-fk-scope-toggle {\n position: absolute;\n right: 30px;\n top: 50%;\n transform: translateY(-50%);\n max-width: 140px;\n overflow: hidden;\n text-overflow: ellipsis;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n color: var(--mj-text-secondary);\n font-size: 10.5px;\n font-weight: 600;\n font-family: inherit;\n padding: 1px 7px;\n border-radius: 999px;\n cursor: pointer;\n white-space: nowrap;\n line-height: 1.35;\n transition: border-color var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-toggle:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-primary);\n}\n\n/* Group header inside the results grid \u2014 spans every column, never selectable. Rows are\n `display: contents`, so the header needs a box of its own to be a grid item at all. */\n.mj-fk-grid-row.mj-fk-group-head {\n display: block;\n grid-column: 1 / -1;\n padding: 8px 12px 2px;\n font-size: var(--mj-text-xs);\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n cursor: default;\n}\n\n/* Name plus its chips on one line, so the second line sits directly beneath the name. */\n.mj-fk-name-line {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.mj-fk-chip {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n font-size: var(--mj-text-xs);\n font-weight: 600;\n color: var(--mj-text-muted);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n padding: 1px 6px;\n white-space: nowrap;\n}\n\n.mj-fk-chip--info {\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-chip--warn {\n border-color: var(--mj-status-warning);\n color: var(--mj-text-secondary);\n}\n\n/* The disambiguating second line \u2014 city and state, a website, a count. Takes the whole row of\n the wrapping name cell, so it lands beneath the name rather than beside the chips. */\n.mj-fk-secondary {\n display: block;\n flex-basis: 100%;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-icon {\n font-size: 9px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-pill-label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-scope-pill-caret {\n font-size: 8px;\n opacity: 0.7;\n flex-shrink: 0;\n}\n\n/* The menu is rendered INSIDE the results dropdown panel so it overlays the list\n (correct z-order, no extra real estate) and rides the dropdown's above/below\n flip. Anchored to the dropdown's top-right \u2014 right under the pill. */\n.mj-fk-scope-menu {\n position: absolute;\n top: 4px;\n right: 8px;\n z-index: 5;\n min-width: 180px;\n max-width: calc(100vw - 24px);\n max-height: 260px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n box-shadow: var(--mj-shadow-lg);\n padding: 5px;\n animation: mj-dropdown-in 120ms ease;\n}\n\n/* When the dropdown opens ABOVE the input, anchor the menu to its bottom edge so it\n stays next to the pill (which is at the input/dropdown boundary). */\n.mj-fk-scope-menu--bottom {\n top: auto;\n bottom: 4px;\n}\n\n.mj-fk-scope-grp {\n font-size: 10px;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-text-muted);\n padding: 7px 10px 4px;\n font-weight: 700;\n}\n\n.mj-fk-scope-mi {\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 7px 10px;\n font-size: 13px;\n border-radius: 5px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-fk-scope-mi:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-scope-mi--on {\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n/* Fixed-width LEFT slot: a compact stacked up/down reorder control that reveals on row\n hover. Reserved (same width) on every row so the field icons + labels stay aligned. */\n.mj-fk-col-reorder {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 22px;\n flex-shrink: 0;\n}\n\n.mj-fk-col-move {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 10px;\n padding: 0;\n background: transparent;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 8px;\n opacity: 0; /* hover-reveal for a clean resting state */\n transition: opacity var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-scope-mi:hover .mj-fk-col-move:not(:disabled) {\n opacity: 0.8;\n}\n\n.mj-fk-col-move:hover:not(:disabled) {\n opacity: 1;\n color: var(--mj-brand-primary);\n}\n\n/* End-of-range arrows stay hidden (slot still reserved) rather than greyed. */\n.mj-fk-col-move:disabled {\n opacity: 0 !important;\n cursor: default;\n}\n\n.mj-fk-scope-mi-icon {\n width: 14px;\n font-size: 11px;\n opacity: 0.75;\n flex-shrink: 0;\n}\n\n.mj-fk-scope-mi-label {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Fixed-width RIGHT slot so the eye (or its empty space, for the name row) aligns. */\n.mj-fk-col-eye-slot {\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Eye toggle: show/hide a field as a grid column (independent of search scope). */\n.mj-fk-col-toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-col-toggle:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-secondary);\n}\n\n.mj-fk-col-toggle--on {\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-scope-divider {\n height: 1px;\n background: var(--mj-border-subtle);\n margin: 4px 6px;\n}\n\n/* Narrow / mobile screens: shrink the pill + its reserved space, give menu rows a\n larger touch target, and keep the menu within the viewport. */\n@media (max-width: 560px) {\n .mj-fk-search--scoped .mj-forms-field-input {\n padding-right: 116px;\n }\n .mj-fk-scope-pill {\n max-width: 88px;\n }\n .mj-fk-scope-menu {\n min-width: 160px;\n }\n .mj-fk-scope-mi {\n padding: 10px 10px;\n }\n}\n\n/* ============================================\n FLOATING DROPDOWN PANEL (position: fixed via ngStyle)\n ============================================ */\n.mj-fk-dropdown {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n animation: mj-dropdown-in 150ms ease;\n}\n\n.mj-fk-dropdown--above {\n animation: mj-dropdown-in-above 150ms ease;\n}\n\n.mj-fk-option {\n padding: 10px 14px;\n font-size: 14px;\n color: var(--mj-text-primary);\n cursor: pointer;\n transition: background var(--mj-transition-base);\n border-radius: 6px;\n}\n\n.mj-fk-option:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n}\n\n.mj-fk-option--selected {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-option--selected:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n/* ============================================\n MULTI-COLUMN FK DROPDOWN \u2014 aligned mini-grid (icon + name + extra cols)\n with sortable headers and horizontal scroll.\n ============================================ */\n.mj-fk-dropdown--multi {\n padding: 4px;\n /* The inner .mj-fk-options is the single scroll container (both axes) so the\n sticky header anchors correctly; the dropdown just clips to its rounded border. */\n overflow: hidden;\n max-height: none;\n}\n\n/* Single scroll region (both axes) for the grid: vertical for long lists, horizontal\n when many DefaultInView columns make rows wider than the dropdown. Being the sole\n scroller lets the sticky column headers anchor to its top edge. */\n.mj-fk-dropdown--multi .mj-fk-options {\n overflow: auto;\n max-height: 260px;\n}\n\n/* While the scope menu is open it must escape the panel's clip (the inner\n .mj-fk-options keeps its own scroll, so the grid still behaves). */\n.mj-fk-dropdown--scope-open {\n overflow: visible;\n}\n\n/* One CSS grid spans the header + all data rows so every column lines up.\n grid-template-columns is supplied inline from FKGridTemplateColumns.\n `width: 100%` (with `min-width: max-content`) lets the last column's `1fr` track\n absorb leftover width, while still overflowing \u2192 horizontal scroll when the columns\n are collectively wider than the dropdown. */\n.mj-fk-grid {\n display: grid;\n width: 100%;\n min-width: max-content;\n align-items: stretch;\n}\n\n/* Rows are layout-transparent so their cells become direct grid items (this is\n what makes columns align across rows). The row element still exists for click\n handling and for the active-state selector below. */\n.mj-fk-grid-row {\n display: contents;\n}\n\n/* Header cells: sticky to the top of the vertical scroll, clickable to sort. */\n.mj-fk-hcell {\n position: sticky;\n top: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 7px 12px;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-elevated);\n border-bottom: 1px solid var(--mj-border-default);\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n}\n\n.mj-fk-hcell:hover {\n color: var(--mj-text-secondary);\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-hcell--icon {\n cursor: default;\n padding: 7px 8px;\n}\n\n.mj-fk-hcell--icon:hover {\n background: var(--mj-bg-surface-elevated);\n}\n\n.mj-fk-hcell-label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-sort-icon {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n/* Idle (unsorted) columns show a faded sort glyph to signal sortability. */\n.mj-fk-sort-icon--idle {\n opacity: 0.35;\n}\n\n/* Data cells */\n.mj-fk-cell {\n display: flex;\n align-items: center;\n padding: 8px 12px;\n font-size: 13px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 320px;\n cursor: pointer;\n}\n\n/* The fill column (last, or a user-resized one) drops the default content cap so its\n cells stretch to the full track width that the header already occupies. */\n.mj-fk-cell--fill {\n max-width: none;\n}\n\n/* Wrapping span keeps the highlighted text+<mark> as one inline run (so flex\n doesn't strip the space next to the mark) while still truncating with ellipsis. */\n.mj-fk-cell > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.mj-fk-cell--icon {\n justify-content: center;\n padding: 8px;\n max-width: none;\n color: var(--mj-text-muted);\n font-size: 13px;\n}\n\n.mj-fk-cell--name {\n font-weight: 500;\n font-size: 14px;\n color: var(--mj-text-primary);\n gap: 6px;\n /* Lets a strategy's second line wrap beneath the name. */\n flex-wrap: wrap;\n}\n\n.mj-fk-selected-check {\n color: var(--mj-brand-primary);\n font-size: 11px;\n flex-shrink: 0;\n}\n\n/* Active (keyboard / hover) row \u2014 painted on the cells, since the row box is\n removed by display:contents. The child combinator still matches. */\n.mj-fk-grid-row--active > .mj-fk-cell {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n}\n\n/* Currently-linked row \u2014 a subtle persistent tint so the user sees which record\n is selected when they reopen the list (stacks under the brighter active tint). */\n.mj-fk-grid-row--selected > .mj-fk-cell {\n background: color-mix(in srgb, var(--mj-brand-primary) 6%, transparent);\n}\n\n.mj-fk-grid-row--selected > .mj-fk-cell--name {\n font-weight: 600;\n color: var(--mj-brand-primary);\n}\n\n/* Matched-substring highlight inside the name column */\n/* ::ng-deep (not :global, which Angular's emulated encapsulation ignores) so the\n style reaches the <mark> injected via [innerHTML]. Color comes from the shared\n theme token so light/dark/white-label all control it centrally. */\n.mj-fk-cell--name ::ng-deep .mj-forms-search-highlight,\n.mj-fk-cell ::ng-deep .mj-forms-search-highlight {\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n/* Column resize handle \u2014 thin grab strip on the right edge of each header cell. */\n.mj-fk-resizer {\n position: absolute;\n top: 0;\n right: 0;\n width: 7px;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n}\n\n.mj-fk-resizer::after {\n content: '';\n position: absolute;\n top: 20%;\n right: 2px;\n width: 2px;\n height: 60%;\n background: transparent;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-hcell:hover .mj-fk-resizer::after,\n.mj-fk-resizer:hover::after {\n background: var(--mj-border-strong);\n}\n\n/* Loading / empty status rows */\n.mj-fk-status {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 14px;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-status i {\n font-size: 12px;\n}\n\n.mj-fk-status--empty {\n font-style: italic;\n}\n\n/* Sticky \"create new\" footer \u2014 sits below the (scrolling) options as a direct child of\n the dropdown panel, so it's always visible regardless of list length. */\n.mj-fk-create-footer {\n display: flex;\n align-items: center;\n gap: 9px;\n width: 100%;\n padding: 10px 14px;\n background: var(--mj-bg-surface-card);\n border: none;\n border-top: 1px solid var(--mj-border-default);\n color: var(--mj-brand-primary);\n font-size: 13px;\n font-weight: 600;\n font-family: inherit;\n text-align: left;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n.mj-fk-create-footer:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-fk-create-icon {\n font-size: 11px;\n flex-shrink: 0;\n}\n\n.mj-fk-create-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* ============================================\n PINNED \"CURRENTLY SELECTED\" SECTION\n ============================================ */\n.mj-fk-current {\n border-bottom: 1px solid var(--mj-border-default);\n background: color-mix(in srgb, var(--mj-brand-primary) 7%, var(--mj-bg-surface-card));\n animation: mj-fk-current-in 220ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n@keyframes mj-fk-current-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mj-fk-current-head {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 8px 12px 3px;\n font-size: 10px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: var(--mj-brand-primary);\n}\n\n.mj-fk-current-head i {\n font-size: 10px;\n}\n\n.mj-fk-current-row {\n position: relative;\n display: flex;\n align-items: center;\n gap: 9px;\n padding: 6px 12px 10px;\n cursor: pointer;\n transition: background var(--mj-transition-base);\n}\n\n/* Accent bar on the left for a bit of sizzle. */\n.mj-fk-current-row::before {\n content: '';\n position: absolute;\n left: 0;\n top: 4px;\n bottom: 8px;\n width: 3px;\n border-radius: 0 2px 2px 0;\n background: var(--mj-brand-primary);\n}\n\n.mj-fk-current-row:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-fk-current-icon {\n flex-shrink: 0;\n font-size: 13px;\n color: var(--mj-text-muted);\n}\n\n.mj-fk-current-name {\n font-weight: 600;\n font-size: 14px;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-detail {\n font-size: 13px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mj-fk-current-clear {\n margin-left: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n flex-shrink: 0;\n background: transparent;\n border: none;\n border-radius: 4px;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: 12px;\n transition: background var(--mj-transition-base), color var(--mj-transition-base);\n}\n\n.mj-fk-current-clear:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n@keyframes mj-dropdown-in {\n from { opacity: 0; transform: translateY(-4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@keyframes mj-dropdown-in-above {\n from { opacity: 0; transform: translateY(4px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n/* ============================================\n SEARCH HIGHLIGHTING\n ============================================ */\n.mj-forms-field-label ::ng-deep .mj-forms-search-highlight {\n /* Shared search-highlight theme token. ::ng-deep (not :global) so it reaches\n innerHTML content. */\n background-color: var(--mj-search-highlight-bg);\n color: var(--mj-search-highlight-text);\n border-radius: 2px;\n padding: 0 1px;\n font-weight: 600;\n}\n\n/* ============================================\n VALIDATION ERROR STATE\n ============================================ */\n.mj-forms-field--has-error .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error .mj-forms-field-input:focus {\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error .mj-forms-field-input--textarea {\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-field--has-error .mj-forms-field-input--textarea:focus {\n border-color: var(--mj-status-error);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 8%, transparent);\n}\n\n.mj-forms-field--has-error .mj-custom-select-trigger {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-error .mj-fk-search .mj-forms-field-input {\n border-bottom-color: var(--mj-status-error);\n border-bottom-width: 2px;\n}\n\n/* ============================================\n VALIDATION WARNING STATE\n ============================================ */\n.mj-forms-field--has-warning .mj-forms-field-input {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning .mj-forms-field-input:focus {\n background: color-mix(in srgb, var(--mj-status-warning) 5%, var(--mj-bg-surface));\n border-bottom-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning .mj-forms-field-input--textarea {\n border-color: var(--mj-status-warning);\n}\n\n.mj-forms-field--has-warning .mj-forms-field-input--textarea:focus {\n border-color: var(--mj-status-warning);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-warning) 8%, transparent);\n}\n\n.mj-forms-field--has-warning .mj-custom-select-trigger {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n.mj-forms-field--has-warning .mj-fk-search .mj-forms-field-input {\n border-bottom-color: var(--mj-status-warning);\n border-bottom-width: 2px;\n}\n\n/* ============================================\n VALIDATION MESSAGE AREA\n ============================================ */\n.mj-forms-field-validation {\n grid-column: 2;\n display: flex;\n flex-direction: column;\n gap: 2px;\n margin-top: -2px;\n overflow: hidden;\n animation: mj-validation-slide-in 200ms ease-out;\n}\n\n.mj-forms-field-validation-item {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n font-size: 12px;\n line-height: 1.4;\n padding: 3px 0 1px;\n}\n\n.mj-forms-field-validation-item i {\n font-size: 11px;\n margin-top: 2px;\n flex-shrink: 0;\n}\n\n/* Error message colors */\n.mj-forms-field-validation--error .mj-forms-field-validation-item {\n color: var(--mj-status-error);\n}\n\n.mj-forms-field-validation--error .mj-forms-field-validation-item i {\n color: var(--mj-status-error);\n}\n\n/* Warning message colors */\n.mj-forms-field-validation--warning .mj-forms-field-validation-item {\n color: var(--mj-status-warning-text);\n}\n\n.mj-forms-field-validation--warning .mj-forms-field-validation-item i {\n color: var(--mj-status-warning);\n}\n\n/* ============================================\n IMAGE / COLOR / JSON EXTENDED TYPES\n ============================================ */\n.mj-forms-image {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n min-width: 0;\n}\n\n.mj-forms-image-preview {\n width: 72px;\n height: 72px;\n object-fit: cover;\n object-position: center;\n border-radius: 8px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n display: block;\n}\n\n.mj-forms-image-preview--empty {\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 22px;\n}\n\n.mj-forms-image-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-image-hint {\n color: var(--mj-text-muted);\n}\n\n.mj-forms-image-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-image-file {\n display: none;\n}\n\n.mj-forms-image-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n font-family: inherit;\n font-weight: 600;\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 25%, transparent);\n border-radius: 6px;\n padding: 4px 10px;\n cursor: pointer;\n}\n\n.mj-forms-image-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, transparent);\n}\n\n.mj-forms-image-btn--ghost {\n color: var(--mj-text-secondary);\n background: transparent;\n border-color: var(--mj-border-default);\n font-weight: 500;\n}\n\n.mj-forms-image--edit .mj-forms-field-input {\n width: 100%;\n}\n\n.mj-forms-color {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n}\n\n.mj-forms-color-swatch {\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n}\n\n.mj-forms-color-picker {\n width: 32px;\n height: 32px;\n padding: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n background: transparent;\n cursor: pointer;\n flex: 0 0 auto;\n}\n\n.mj-forms-color-hex {\n max-width: 160px;\n}\n\n.mj-forms-json {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 12.5px;\n line-height: 1.45;\n white-space: pre-wrap;\n word-break: break-word;\n margin: 0;\n max-height: 360px;\n overflow: auto;\n width: 100%;\n}\n\n@keyframes mj-validation-slide-in {\n from {\n opacity: 0;\n max-height: 0;\n transform: translateY(-4px);\n }\n to {\n opacity: 1;\n max-height: 100px;\n transform: translateY(0);\n }\n}\n\n/* ============================================\n RESPONSIVE\n ============================================ */\n/* With no label column, validation messages sit under the control in the only column. */\n.mj-forms-field--no-label .mj-forms-field-validation {\n grid-column: 1;\n}\n\n@media (max-width: 640px) {\n .mj-forms-field {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n\n .mj-forms-field-label {\n font-size: 12px;\n }\n\n .mj-forms-field-validation {\n grid-column: 1;\n }\n}\n\n/* ============================================\n POLYMORPHIC FK SMART LINK & REMOTE UPDATE HIGHLIGHT\n ============================================ */\n.mj-forms-poly-fk-read {\n display: inline-flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mj-forms-field-link--poly {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mj-forms-poly-entity-icon {\n font-size: 12px;\n color: var(--mj-brand-primary);\n opacity: 0.85;\n}\n\n.mj-forms-copy-id-btn {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px 6px;\n border-radius: var(--mj-radius-sm, 4px);\n background: transparent;\n border: 1px solid transparent;\n color: var(--mj-text-muted);\n font-size: 11px;\n line-height: 1.2;\n cursor: pointer;\n opacity: 0;\n transition: opacity 140ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;\n}\n\n.mj-forms-field:hover .mj-forms-copy-id-btn,\n.mj-forms-copy-id-btn:focus-visible,\n.mj-forms-copy-id-btn.is-copied {\n opacity: 0.75;\n}\n\n.mj-forms-copy-id-btn:hover {\n opacity: 1;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken);\n border-color: var(--mj-border-subtle);\n}\n\n.mj-forms-copy-id-btn.is-copied {\n opacity: 1;\n color: var(--mj-status-success);\n background: color-mix(in srgb, var(--mj-status-success) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-status-success) 35%, var(--mj-border-subtle));\n}\n\n.mj-forms-copy-id-btn__feedback {\n font-size: 10px;\n font-weight: 600;\n}\n\n@keyframes mj-field-remote-pulse {\n 0% {\n background-color: color-mix(in srgb, var(--mj-brand-primary) 18%, transparent);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 28%, transparent);\n }\n 70% {\n background-color: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--mj-brand-primary) 12%, transparent);\n }\n 100% {\n background-color: transparent;\n box-shadow: none;\n }\n}\n\nmj-form-field.mj-forms-field--remotely-updated .mj-forms-field {\n border-radius: var(--mj-radius-sm, 6px);\n animation: mj-field-remote-pulse 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n}\n\n/* ============================================\n FIELD LABEL ROW & QUIET ORIGINAL-VALUE POPOVER\n ============================================ */\n.mj-forms-field-label-row {\n display: inline-flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n\n.mj-forms-field__history-wrap {\n position: relative;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.mj-forms-field__history-trigger {\n width: 22px;\n height: 22px;\n border-radius: 5px;\n border: 1px solid transparent;\n background: transparent;\n color: var(--mj-status-warning, #f59e0b);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n cursor: pointer;\n padding: 0;\n transition: background 0.15s ease, border-color 0.15s ease;\n}\n\n.mj-forms-field__history-trigger:hover,\n.mj-forms-field__history-trigger:focus-visible {\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 14%, transparent);\n border-color: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 35%, transparent);\n}\n\n.mj-forms-field__history-popover {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n min-width: 200px;\n max-width: 300px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-bg-surface, #ffffff);\n border: 1px solid var(--mj-border-default, #cbd5e1);\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);\n z-index: 1000;\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.mj-forms-field__history-popover-header {\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mj-forms-field__history-popover-value {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary, #0f172a);\n word-break: break-word;\n padding: 4px 8px;\n border-radius: 5px;\n background: var(--mj-bg-surface-card, #f8fafc);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mj-forms-field__restore-btn {\n align-self: flex-start;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 10px;\n border-radius: 5px;\n border: 1px solid var(--mj-border-default, #cbd5e1);\n background: var(--mj-bg-surface, #ffffff);\n color: var(--mj-brand-primary, #3b82f6);\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n transition: background 0.15s ease, border-color 0.15s ease;\n}\n\n.mj-forms-field__restore-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 10%, transparent);\n border-color: var(--mj-brand-primary, #3b82f6);\n}\n\n/* ============================================\n AUTO-MERGED CLEAN FIELD BADGE\n ============================================ */\n.mj-forms-field__auto-merged-badge {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-success, #10b981) 14%, transparent);\n color: var(--mj-status-success-text, #059669);\n border: 1px solid color-mix(in srgb, var(--mj-status-success, #10b981) 30%, transparent);\n flex: 0 0 auto;\n}\n\n.mj-forms-field__auto-merged-tooltip {\n display: none;\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n white-space: nowrap;\n padding: 4px 8px;\n border-radius: 6px;\n font-size: 11px;\n font-weight: 500;\n background: var(--mj-bg-surface, #ffffff);\n color: var(--mj-text-secondary, #475569);\n border: 1px solid var(--mj-border-default, #cbd5e1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n}\n\n.mj-forms-field__auto-merged-badge:hover .mj-forms-field__auto-merged-tooltip {\n display: block;\n}\n\n/* ============================================\n INLINE CONFLICT RESOLUTION CARD\n ============================================ */\n.mj-forms-field--conflict {\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 6%, transparent);\n border-radius: 8px;\n padding: 8px;\n margin: 2px -8px;\n}\n\n.mj-forms-field__conflict-card {\n grid-column: 2;\n margin-top: 6px;\n padding: 10px 12px;\n border-radius: 8px;\n background: var(--mj-bg-surface, #ffffff);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning, #f59e0b) 45%, transparent);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mj-forms-field--no-label .mj-forms-field__conflict-card {\n grid-column: 1;\n}\n\n.mj-forms-field__conflict-header {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-status-warning-text, #b45309);\n}\n\n.mj-forms-field__conflict-comparison {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 8px;\n}\n\n.mj-forms-field__conflict-col {\n padding: 6px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card, #f8fafc);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mj-forms-field__conflict-col--remote {\n border-color: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 35%, transparent);\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 5%, var(--mj-bg-surface, #ffffff));\n}\n\n.mj-forms-field__conflict-col-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mj-forms-field__conflict-col-value {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary, #0f172a);\n word-break: break-word;\n}\n\n.mj-forms-field__conflict-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mj-forms-field__conflict-btn {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 5px 10px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n border: 1px solid var(--mj-border-default, #cbd5e1);\n background: var(--mj-bg-surface, #ffffff);\n color: var(--mj-text-primary, #0f172a);\n transition: all 0.15s ease;\n}\n\n.mj-forms-field__conflict-btn--keep {\n background: var(--mj-brand-primary, #3b82f6);\n border-color: var(--mj-brand-primary, #3b82f6);\n color: var(--mj-text-inverse);\n}\n\n.mj-forms-field__conflict-btn--use-remote:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n/* ============================================\n IN-FORM TIME-TRAVEL VERSION PREVIEW\n ============================================ */\n.mj-forms-field--time-travel-diff {\n background: color-mix(in srgb, var(--mj-status-warning) 8%, var(--mj-bg-surface));\n border-left: 3px solid var(--mj-status-warning);\n border-radius: 6px;\n padding: 6px 10px;\n margin: 2px -10px;\n}\n\n.mj-forms-time-travel-badge {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n background: color-mix(in srgb, var(--mj-status-warning) 16%, var(--mj-bg-surface));\n color: var(--mj-status-warning-text, var(--mj-status-warning));\n border: 1px solid color-mix(in srgb, var(--mj-status-warning) 35%, transparent);\n}\n\n.mj-forms-time-travel-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 6px;\n padding: 5px 8px;\n border-radius: 6px;\n background: color-mix(in srgb, var(--mj-bg-surface-sunken) 85%, var(--mj-bg-surface));\n border: 1px dashed var(--mj-border-default);\n font-size: 11px;\n}\n\n.mj-forms-time-travel-current {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n color: var(--mj-text-secondary);\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-forms-time-travel-current i {\n color: var(--mj-status-warning);\n font-size: 10px;\n}\n\n.mj-forms-time-travel-current strong {\n color: var(--mj-text-primary);\n font-weight: 600;\n}\n\n.mj-forms-time-travel-restore-btn {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 3px 8px;\n border-radius: 5px;\n font-size: 11px;\n font-weight: 600;\n font-family: inherit;\n cursor: pointer;\n color: var(--mj-brand-primary);\n background: var(--mj-bg-surface);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, transparent);\n transition: background 120ms ease, border-color 120ms ease;\n}\n\n.mj-forms-time-travel-restore-btn:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-time-travel-restore-btn:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 1px;\n}\n\n\n"] }]
3685
4567
  }], () => [], { HostFieldName: [{
3686
4568
  type: HostBinding,
3687
4569
  args: ['attr.data-field-name']
3688
4570
  }], HostFieldLabel: [{
3689
4571
  type: HostBinding,
3690
4572
  args: ['attr.data-field-label']
4573
+ }], IsRemotelyUpdated: [{
4574
+ type: HostBinding,
4575
+ args: ['class.mj-forms-field--remotely-updated']
4576
+ }], HasActiveConflict: [{
4577
+ type: HostBinding,
4578
+ args: ['class.mj-forms-field--conflict']
4579
+ }], HasTimeTravelDiff: [{
4580
+ type: HostBinding,
4581
+ args: ['class.mj-forms-field--time-travel-diff']
3691
4582
  }], Record: [{
3692
4583
  type: Input
3693
4584
  }], EditMode: [{
@@ -3735,5 +4626,5 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3735
4626
  }], FKLookupOptions: [{
3736
4627
  type: Input
3737
4628
  }] }); })();
3738
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormFieldComponent, { className: "MjFormFieldComponent", filePath: "src/lib/field/form-field.component.ts", lineNumber: 172 }); })();
4629
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormFieldComponent, { className: "MjFormFieldComponent", filePath: "src/lib/field/form-field.component.ts", lineNumber: 188 }); })();
3739
4630
  //# sourceMappingURL=form-field.component.js.map