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

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 (98) hide show
  1. package/README.md +10 -0
  2. package/dist/lib/apply/form-placement-preview.component.d.ts.map +1 -1
  3. package/dist/lib/apply/form-placement-preview.component.js +1 -0
  4. package/dist/lib/apply/form-placement-preview.component.js.map +1 -1
  5. package/dist/lib/base-form-component.d.ts +15 -2
  6. package/dist/lib/base-form-component.d.ts.map +1 -1
  7. package/dist/lib/base-form-component.js +18 -8
  8. package/dist/lib/base-form-component.js.map +1 -1
  9. package/dist/lib/chrome/form-chrome-coordinator.service.d.ts.map +1 -1
  10. package/dist/lib/chrome/form-chrome-coordinator.service.js +4 -1
  11. package/dist/lib/chrome/form-chrome-coordinator.service.js.map +1 -1
  12. package/dist/lib/chrome/phone-viewport.d.ts +15 -0
  13. package/dist/lib/chrome/phone-viewport.d.ts.map +1 -0
  14. package/dist/lib/chrome/phone-viewport.js +28 -0
  15. package/dist/lib/chrome/phone-viewport.js.map +1 -0
  16. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts +159 -0
  17. package/dist/lib/comments/form-record-comments-coordinator.service.d.ts.map +1 -0
  18. package/dist/lib/comments/form-record-comments-coordinator.service.js +421 -0
  19. package/dist/lib/comments/form-record-comments-coordinator.service.js.map +1 -0
  20. package/dist/lib/comments/record-comments.component.d.ts +205 -0
  21. package/dist/lib/comments/record-comments.component.d.ts.map +1 -0
  22. package/dist/lib/comments/record-comments.component.js +2019 -0
  23. package/dist/lib/comments/record-comments.component.js.map +1 -0
  24. package/dist/lib/container/record-form-container.component.d.ts +47 -1
  25. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  26. package/dist/lib/container/record-form-container.component.js +877 -316
  27. package/dist/lib/container/record-form-container.component.js.map +1 -1
  28. package/dist/lib/field/default-fk-lookup-strategy.d.ts.map +1 -1
  29. package/dist/lib/field/default-fk-lookup-strategy.js +14 -6
  30. package/dist/lib/field/default-fk-lookup-strategy.js.map +1 -1
  31. package/dist/lib/field/fk-lookup-strategy.d.ts +11 -0
  32. package/dist/lib/field/fk-lookup-strategy.d.ts.map +1 -1
  33. package/dist/lib/field/fk-lookup-strategy.js +10 -0
  34. package/dist/lib/field/fk-lookup-strategy.js.map +1 -1
  35. package/dist/lib/field/fk-search-utils.d.ts +17 -0
  36. package/dist/lib/field/fk-search-utils.d.ts.map +1 -1
  37. package/dist/lib/field/fk-search-utils.js +29 -0
  38. package/dist/lib/field/fk-search-utils.js.map +1 -1
  39. package/dist/lib/field/form-field.component.d.ts +35 -1
  40. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  41. package/dist/lib/field/form-field.component.js +631 -446
  42. package/dist/lib/field/form-field.component.js.map +1 -1
  43. package/dist/lib/host/entity-form-host.component.d.ts +6 -0
  44. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  45. package/dist/lib/host/entity-form-host.component.js +17 -3
  46. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  47. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  48. package/dist/lib/interactive-form/interactive-form.component.js +1 -0
  49. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  50. package/dist/lib/links/record-links.component.d.ts +6 -0
  51. package/dist/lib/links/record-links.component.d.ts.map +1 -1
  52. package/dist/lib/links/record-links.component.js +30 -7
  53. package/dist/lib/links/record-links.component.js.map +1 -1
  54. package/dist/lib/panel/collapsible-panel.component.d.ts +5 -0
  55. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  56. package/dist/lib/panel/collapsible-panel.component.js +109 -30
  57. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  58. package/dist/lib/preview-popover/record-preview-popover.component.d.ts +8 -1
  59. package/dist/lib/preview-popover/record-preview-popover.component.d.ts.map +1 -1
  60. package/dist/lib/preview-popover/record-preview-popover.component.js +33 -9
  61. package/dist/lib/preview-popover/record-preview-popover.component.js.map +1 -1
  62. package/dist/lib/related-grid-height.d.ts +2 -2
  63. package/dist/lib/related-grid-height.d.ts.map +1 -1
  64. package/dist/lib/related-grid-height.js +2 -2
  65. package/dist/lib/related-grid-height.js.map +1 -1
  66. package/dist/lib/section-indicators/form-section-indicators.d.ts +4 -0
  67. package/dist/lib/section-indicators/form-section-indicators.d.ts.map +1 -1
  68. package/dist/lib/section-indicators/form-section-indicators.js +15 -1
  69. package/dist/lib/section-indicators/form-section-indicators.js.map +1 -1
  70. package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts +17 -0
  71. package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts.map +1 -0
  72. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js +52 -0
  73. package/dist/lib/toolbar/actions/record-comments-toolbar-action.js.map +1 -0
  74. package/dist/lib/toolbar/base-form-toolbar-action.d.ts +9 -0
  75. package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -1
  76. package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -1
  77. package/dist/lib/toolbar/form-toolbar.component.d.ts +107 -2
  78. package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
  79. package/dist/lib/toolbar/form-toolbar.component.js +927 -415
  80. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  81. package/dist/lib/types/form-toolbar-item.d.ts +1 -1
  82. package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
  83. package/dist/lib/types/form-toolbar-item.js.map +1 -1
  84. package/dist/lib/types/form-types.d.ts +8 -0
  85. package/dist/lib/types/form-types.d.ts.map +1 -1
  86. package/dist/lib/types/form-types.js.map +1 -1
  87. package/dist/lib/types/toolbar-config.d.ts +2 -0
  88. package/dist/lib/types/toolbar-config.d.ts.map +1 -1
  89. package/dist/lib/types/toolbar-config.js.map +1 -1
  90. package/dist/module.d.ts +15 -14
  91. package/dist/module.d.ts.map +1 -1
  92. package/dist/module.js +15 -5
  93. package/dist/module.js.map +1 -1
  94. package/dist/public-api.d.ts +3 -0
  95. package/dist/public-api.d.ts.map +1 -1
  96. package/dist/public-api.js +3 -0
  97. package/dist/public-api.js.map +1 -1
  98. package/package.json +20 -20
@@ -7,8 +7,9 @@ import { FORM_SECTION_FIELD_HOST, SectionRelevantFormContextChanged } from '../s
7
7
  import { FormFieldEditCoordinator } from '../form-field-edit.coordinator';
8
8
  import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
9
9
  import { MjRecordPreviewPopoverService } from '../preview-popover/record-preview-popover.service';
10
+ import { FormRecordCommentsCoordinatorService } from '../comments/form-record-comments-coordinator.service';
10
11
  import { ApplyQuickEditToHostRecord, ResolveRecordLinkTarget } from '../links/record-link-utils';
11
- import { FormatFKCell, FilterCachedFKRows, QuoteSqlIdList } from './fk-search-utils';
12
+ import { FormatFKCell, FilterCachedFKRows, QuoteSqlIdList, FKSearchTimeoutError, WithFKSearchTimeout } from './fk-search-utils';
12
13
  import { LinkedFieldOptionsStore } from './linked-field-options';
13
14
  import { ResolveFKLookupStrategy, } from './fk-lookup-strategy';
14
15
  import { CombineFilters, DefaultFKLookupStrategy } from './default-fk-lookup-strategy';
@@ -20,23 +21,30 @@ const _forTrack1 = ($index, $item) => $item.Key;
20
21
  const _forTrack2 = ($index, $item) => $item.PrimaryKeyValue;
21
22
  const _forTrack3 = ($index, $item) => $item.Text;
22
23
  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);
24
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
25
+ i0.ɵɵelementContainer(0);
26
+ } }
27
+ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
28
+ i0.ɵɵelementStart(0, "span", 16);
29
+ i0.ɵɵelement(1, "i", 17);
26
30
  i0.ɵɵtext(2, " Changed ");
27
31
  i0.ɵɵelementEnd();
28
32
  } }
29
33
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
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);
34
+ i0.ɵɵelementStart(0, "div", 7);
35
+ i0.ɵɵelement(1, "label", 14);
36
+ i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_ng_container_2_Template, 1, 0, "ng-container", 15);
37
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Conditional_3_Template, 3, 0, "span", 16);
33
38
  i0.ɵɵelementEnd();
34
39
  } if (rf & 2) {
35
40
  const ctx_r0 = i0.ɵɵnextContext(3);
41
+ const fieldCommentsBadgeTpl_r2 = i0.ɵɵreference(4);
36
42
  i0.ɵɵadvance();
37
43
  i0.ɵɵproperty("innerHTML", ctx_r0.HighlightedDisplayName, i0.ɵɵsanitizeHtml);
38
44
  i0.ɵɵadvance();
39
- i0.ɵɵconditional(ctx_r0.HasTimeTravelDiff ? 2 : -1);
45
+ i0.ɵɵproperty("ngTemplateOutlet", fieldCommentsBadgeTpl_r2);
46
+ i0.ɵɵadvance();
47
+ i0.ɵɵconditional(ctx_r0.HasTimeTravelDiff ? 3 : -1);
40
48
  } }
41
49
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
42
50
  i0.ɵɵelement(0, "i");
@@ -45,14 +53,14 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditio
45
53
  i0.ɵɵclassMap(ctx_r0.EffectiveRelatedEntityIcon + " mj-forms-poly-entity-icon");
46
54
  } }
47
55
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
48
- const _r2 = i0.ɵɵgetCurrentView();
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);
56
+ const _r3 = i0.ɵɵgetCurrentView();
57
+ i0.ɵɵelementStart(0, "a", 21);
58
+ i0.ɵɵlistener("Navigate", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template_a_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r3); 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(_r3); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnLinkedRecordQuickEdited($event)); });
59
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Conditional_1_Template, 1, 2, "i", 22);
52
60
  i0.ɵɵelementStart(2, "span");
53
61
  i0.ɵɵtext(3);
54
62
  i0.ɵɵelementEnd();
55
- i0.ɵɵelement(4, "i", 21);
63
+ i0.ɵɵelement(4, "i", 23);
56
64
  i0.ɵɵelementEnd();
57
65
  } if (rf & 2) {
58
66
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -73,16 +81,16 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditio
73
81
  i0.ɵɵtextInterpolate(ctx_r0.FKDisplayName || ctx_r0.FormatValue());
74
82
  } }
75
83
  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);
84
+ i0.ɵɵelementStart(0, "span", 26);
77
85
  i0.ɵɵtext(1, "Copied ID");
78
86
  i0.ɵɵelementEnd();
79
87
  } }
80
88
  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);
89
+ const _r4 = i0.ɵɵgetCurrentView();
90
+ i0.ɵɵelementStart(0, "button", 24);
91
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnCopyRawID($event)); });
92
+ i0.ɵɵelement(1, "i", 25);
93
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Conditional_2_Template, 2, 0, "span", 26);
86
94
  i0.ɵɵelementEnd();
87
95
  } if (rf & 2) {
88
96
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -93,9 +101,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditio
93
101
  i0.ɵɵconditional(ctx_r0.CopiedRawID ? 2 : -1);
94
102
  } }
95
103
  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);
104
+ i0.ɵɵelementStart(0, "span", 18);
105
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_1_Template, 5, 8, "a", 19)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_2_Template, 2, 1, "span");
106
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Conditional_3_Template, 3, 5, "button", 20);
99
107
  i0.ɵɵelementEnd();
100
108
  } if (rf & 2) {
101
109
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -105,9 +113,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditio
105
113
  i0.ɵɵconditional(ctx_r0.ShowPolymorphicRawIDBadge ? 3 : -1);
106
114
  } }
107
115
  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)); });
116
+ const _r5 = i0.ɵɵgetCurrentView();
117
+ i0.ɵɵelementStart(0, "a", 28);
118
+ i0.ɵɵlistener("Navigate", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_0_Template_a_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r5); 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(_r5); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnLinkedRecordQuickEdited($event)); });
111
119
  i0.ɵɵtext(1);
112
120
  i0.ɵɵelementEnd();
113
121
  } if (rf & 2) {
@@ -124,14 +132,14 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditio
124
132
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FKDisplayName, " ");
125
133
  } }
126
134
  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);
135
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_0_Template, 2, 7, "a", 27)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Conditional_1_Template, 1, 1);
128
136
  } if (rf & 2) {
129
137
  const ctx_r0 = i0.ɵɵnextContext(4);
130
138
  i0.ɵɵconditional(ctx_r0.RecordLinksEnabled ? 0 : 1);
131
139
  } }
132
140
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 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);
141
+ i0.ɵɵelementStart(0, "span", 9);
142
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_1_Template, 4, 2, "span", 18)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Conditional_2_Template, 2, 1);
135
143
  i0.ɵɵelementEnd();
136
144
  } if (rf & 2) {
137
145
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -139,13 +147,13 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Template
139
147
  i0.ɵɵconditional(ctx_r0.IsPolymorphicFK ? 1 : 2);
140
148
  } }
141
149
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
142
- i0.ɵɵelement(0, "img", 27);
150
+ i0.ɵɵelement(0, "img", 29);
143
151
  } if (rf & 2) {
144
152
  const ctx_r0 = i0.ɵɵnextContext(4);
145
153
  i0.ɵɵproperty("src", ctx_r0.ImagePreviewSrc, i0.ɵɵsanitizeUrl);
146
154
  } }
147
155
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
148
- i0.ɵɵelementStart(0, "span", 28);
156
+ i0.ɵɵelementStart(0, "span", 30);
149
157
  i0.ɵɵtext(1);
150
158
  i0.ɵɵelementEnd();
151
159
  } if (rf & 2) {
@@ -154,11 +162,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditio
154
162
  i0.ɵɵtextInterpolate1("Inline image (", ctx_r0.ImageValueSizeLabel, ")");
155
163
  } }
156
164
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
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)); });
165
+ const _r6 = i0.ɵɵgetCurrentView();
166
+ i0.ɵɵelementStart(0, "a", 32);
167
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnUrlLinkClick($event)); });
160
168
  i0.ɵɵtext(1);
161
- i0.ɵɵelement(2, "i", 21);
169
+ i0.ɵɵelement(2, "i", 23);
162
170
  i0.ɵɵelementEnd();
163
171
  } if (rf & 2) {
164
172
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -166,7 +174,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditio
166
174
  i0.ɵɵtextInterpolate1(" ", ctx_r0.ImageUrlDisplay, " ");
167
175
  } }
168
176
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
169
- i0.ɵɵelementStart(0, "span", 8);
177
+ i0.ɵɵelementStart(0, "span", 9);
170
178
  i0.ɵɵtext(1);
171
179
  i0.ɵɵelementEnd();
172
180
  } if (rf & 2) {
@@ -175,9 +183,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditio
175
183
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
176
184
  } }
177
185
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
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);
186
+ i0.ɵɵelementStart(0, "div", 10);
187
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_1_Template, 1, 1, "img", 29);
188
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_2_Template, 2, 1, "span", 30)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_3_Template, 3, 1, "a", 31)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Conditional_4_Template, 2, 1, "span", 9);
181
189
  i0.ɵɵelementEnd();
182
190
  } if (rf & 2) {
183
191
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -187,9 +195,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template
187
195
  i0.ɵɵconditional(ctx_r0.IsInlineImageValue ? 2 : ctx_r0.ImagePreviewSrc ? 3 : 4);
188
196
  } }
189
197
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
190
- i0.ɵɵelementStart(0, "div", 10);
191
- i0.ɵɵelement(1, "span", 31);
192
- i0.ɵɵelementStart(2, "span", 8);
198
+ i0.ɵɵelementStart(0, "div", 11);
199
+ i0.ɵɵelement(1, "span", 33);
200
+ i0.ɵɵelementStart(2, "span", 9);
193
201
  i0.ɵɵtext(3);
194
202
  i0.ɵɵelementEnd()();
195
203
  } if (rf & 2) {
@@ -200,7 +208,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template
200
208
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
201
209
  } }
202
210
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
203
- i0.ɵɵelementStart(0, "pre", 11);
211
+ i0.ɵɵelementStart(0, "pre", 12);
204
212
  i0.ɵɵtext(1);
205
213
  i0.ɵɵelementEnd();
206
214
  } if (rf & 2) {
@@ -209,11 +217,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template
209
217
  i0.ɵɵtextInterpolate(ctx_r0.JsonDisplayValue);
210
218
  } }
211
219
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template(rf, ctx) { if (rf & 1) {
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)); });
220
+ const _r7 = i0.ɵɵgetCurrentView();
221
+ i0.ɵɵelementStart(0, "span", 9)(1, "a", 34);
222
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnEmailLinkClick($event)); });
215
223
  i0.ɵɵtext(2);
216
- i0.ɵɵelement(3, "i", 33);
224
+ i0.ɵɵelement(3, "i", 35);
217
225
  i0.ɵɵelementEnd()();
218
226
  } if (rf & 2) {
219
227
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -221,11 +229,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_T
221
229
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
222
230
  } }
223
231
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template(rf, ctx) { if (rf & 1) {
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)); });
232
+ const _r8 = i0.ɵɵgetCurrentView();
233
+ i0.ɵɵelementStart(0, "span", 9)(1, "a", 36);
234
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnUrlLinkClick($event)); });
227
235
  i0.ɵɵtext(2);
228
- i0.ɵɵelement(3, "i", 21);
236
+ i0.ɵɵelement(3, "i", 23);
229
237
  i0.ɵɵelementEnd()();
230
238
  } if (rf & 2) {
231
239
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -233,11 +241,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_T
233
241
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
234
242
  } }
235
243
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
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)); });
244
+ const _r9 = i0.ɵɵgetCurrentView();
245
+ i0.ɵɵelementStart(0, "a", 38);
246
+ i0.ɵɵlistener("Navigate", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template_a_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r9); 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(_r9); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnLinkedRecordQuickEdited($event)); });
239
247
  i0.ɵɵtext(1);
240
- i0.ɵɵelement(2, "i", 21);
248
+ i0.ɵɵelement(2, "i", 23);
241
249
  i0.ɵɵelementEnd();
242
250
  } if (rf & 2) {
243
251
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -252,8 +260,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_C
252
260
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FormatValue(), " ");
253
261
  } }
254
262
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Template(rf, ctx) { if (rf & 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);
263
+ i0.ɵɵelementStart(0, "span", 9);
264
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_1_Template, 3, 6, "a", 37)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Conditional_2_Template, 1, 1);
257
265
  i0.ɵɵelementEnd();
258
266
  } if (rf & 2) {
259
267
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -261,8 +269,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_T
261
269
  i0.ɵɵconditional(ctx_r0.RecordLinksEnabled ? 1 : 2);
262
270
  } }
263
271
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
264
- i0.ɵɵelementStart(0, "span", 8)(1, "div", 41);
265
- i0.ɵɵelement(2, "input", 42);
272
+ i0.ɵɵelementStart(0, "span", 9)(1, "div", 43);
273
+ i0.ɵɵelement(2, "input", 44);
266
274
  i0.ɵɵelementEnd()();
267
275
  } if (rf & 2) {
268
276
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -270,8 +278,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
270
278
  i0.ɵɵproperty("checked", !!ctx_r0.Value);
271
279
  } }
272
280
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
273
- i0.ɵɵelementStart(0, "div", 37);
274
- i0.ɵɵelement(1, "mj-markdown", 43);
281
+ i0.ɵɵelementStart(0, "div", 39);
282
+ i0.ɵɵelement(1, "mj-markdown", 45);
275
283
  i0.ɵɵelementEnd();
276
284
  } if (rf & 2) {
277
285
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -279,15 +287,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
279
287
  i0.ɵɵproperty("data", ctx_r0.FormatValue());
280
288
  } }
281
289
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
282
- i0.ɵɵelement(0, "div", 38);
290
+ i0.ɵɵelement(0, "div", 40);
283
291
  i0.ɵɵpipe(1, "mjSafeRichHtml");
284
292
  } if (rf & 2) {
285
293
  const ctx_r0 = i0.ɵɵnextContext(5);
286
294
  i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, ctx_r0.FormatValue()), i0.ɵɵsanitizeHtml);
287
295
  } }
288
296
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
289
- i0.ɵɵelementStart(0, "div", 39);
290
- i0.ɵɵelement(1, "mj-code-editor", 44);
297
+ i0.ɵɵelementStart(0, "div", 41);
298
+ i0.ɵɵelement(1, "mj-code-editor", 46);
291
299
  i0.ɵɵelementEnd();
292
300
  } if (rf & 2) {
293
301
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -295,7 +303,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
295
303
  i0.ɵɵproperty("value", ctx_r0.FormatValue())("language", ctx_r0.CodeEditorLanguage)("readonly", true);
296
304
  } }
297
305
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
298
- i0.ɵɵelementStart(0, "span", 40);
306
+ i0.ɵɵelementStart(0, "span", 42);
299
307
  i0.ɵɵtext(1);
300
308
  i0.ɵɵelementEnd();
301
309
  } if (rf & 2) {
@@ -304,7 +312,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
304
312
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
305
313
  } }
306
314
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
307
- i0.ɵɵelementStart(0, "span", 8);
315
+ i0.ɵɵelementStart(0, "span", 9);
308
316
  i0.ɵɵtext(1);
309
317
  i0.ɵɵelementEnd();
310
318
  } if (rf & 2) {
@@ -313,30 +321,30 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_C
313
321
  i0.ɵɵtextInterpolate(ctx_r0.FormatValue());
314
322
  } }
315
323
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Template(rf, ctx) { if (rf & 1) {
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);
324
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_0_Template, 3, 1, "span", 9)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_1_Template, 2, 1, "div", 39)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_2_Template, 2, 3, "div", 40)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_3_Template, 2, 3, "div", 41)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_4_Template, 2, 1, "span", 42)(5, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Conditional_5_Template, 2, 1, "span", 9);
317
325
  } if (rf & 2) {
318
326
  const ctx_r0 = i0.ɵɵnextContext(4);
319
327
  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);
320
328
  } }
321
329
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Template(rf, ctx) { if (rf & 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);
330
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_0_Template, 4, 1, "span", 9)(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_1_Template, 4, 1, "span", 9)(2, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_2_Template, 3, 1, "span", 9)(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Case_3_Template, 6, 1);
323
331
  } if (rf & 2) {
324
- let tmp_4_0;
332
+ let tmp_5_0;
325
333
  const ctx_r0 = i0.ɵɵnextContext(3);
326
- i0.ɵɵconditional((tmp_4_0 = ctx_r0.LinkType) === "Email" ? 0 : tmp_4_0 === "URL" ? 1 : tmp_4_0 === "Record" ? 2 : 3);
334
+ i0.ɵɵconditional((tmp_5_0 = ctx_r0.LinkType) === "Email" ? 0 : tmp_5_0 === "URL" ? 1 : tmp_5_0 === "Record" ? 2 : 3);
327
335
  } }
328
336
  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);
337
+ const _r10 = i0.ɵɵgetCurrentView();
338
+ i0.ɵɵelementStart(0, "div", 13)(1, "span", 47);
339
+ i0.ɵɵelement(2, "i", 48);
332
340
  i0.ɵɵelementStart(3, "span");
333
341
  i0.ɵɵtext(4, "Current live: ");
334
342
  i0.ɵɵelementStart(5, "strong");
335
343
  i0.ɵɵtext(6);
336
344
  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);
345
+ i0.ɵɵelementStart(7, "button", 49);
346
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_8_Template_button_click_7_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnRestoreSingleFieldFromPreview($event)); });
347
+ i0.ɵɵelement(8, "i", 50);
340
348
  i0.ɵɵelementStart(9, "span");
341
349
  i0.ɵɵtext(10, "Restore this field");
342
350
  i0.ɵɵelementEnd()()();
@@ -348,11 +356,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_8_Template
348
356
  i0.ɵɵtextInterpolate(ctx_r0.FormattedCurrentLiveValue);
349
357
  } }
350
358
  function MjFormFieldComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 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);
359
+ i0.ɵɵelementStart(0, "div", 6);
360
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Template, 4, 3, "div", 7);
361
+ i0.ɵɵelementStart(2, "div", 8);
362
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_3_Template, 3, 1, "span", 9)(4, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_4_Template, 5, 2, "div", 10)(5, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_5_Template, 4, 3, "div", 11)(6, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_6_Template, 2, 1, "pre", 12)(7, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_7_Template, 4, 1);
363
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_8_Template, 11, 2, "div", 13);
356
364
  i0.ɵɵelementEnd()();
357
365
  } if (rf & 2) {
358
366
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -367,41 +375,47 @@ function MjFormFieldComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if
367
375
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
368
376
  i0.ɵɵelementContainer(0);
369
377
  } }
378
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
379
+ i0.ɵɵelementContainer(0);
380
+ } }
370
381
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
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);
382
+ i0.ɵɵelementStart(0, "div", 7);
383
+ i0.ɵɵelement(1, "label", 14);
384
+ i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_ng_container_2_Template, 1, 0, "ng-container", 15)(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_ng_container_3_Template, 1, 0, "ng-container", 15);
374
385
  i0.ɵɵelementEnd();
375
386
  } if (rf & 2) {
376
387
  const ctx_r0 = i0.ɵɵnextContext(3);
377
- const fieldEditIndicatorsTpl_r10 = i0.ɵɵreference(2);
388
+ const fieldEditIndicatorsTpl_r11 = i0.ɵɵreference(2);
389
+ const fieldCommentsBadgeTpl_r2 = i0.ɵɵreference(4);
378
390
  i0.ɵɵadvance();
379
391
  i0.ɵɵproperty("innerHTML", ctx_r0.HighlightedDisplayName, i0.ɵɵsanitizeHtml);
380
392
  i0.ɵɵadvance();
381
- i0.ɵɵproperty("ngTemplateOutlet", fieldEditIndicatorsTpl_r10);
393
+ i0.ɵɵproperty("ngTemplateOutlet", fieldCommentsBadgeTpl_r2);
394
+ i0.ɵɵadvance();
395
+ i0.ɵɵproperty("ngTemplateOutlet", fieldEditIndicatorsTpl_r11);
382
396
  } }
383
397
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
384
398
  i0.ɵɵelementContainer(0);
385
399
  } }
386
400
  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);
401
+ i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_ng_container_0_Template, 1, 0, "ng-container", 15);
388
402
  } if (rf & 2) {
389
403
  i0.ɵɵnextContext(3);
390
- const fieldEditIndicatorsTpl_r10 = i0.ɵɵreference(2);
391
- i0.ɵɵproperty("ngTemplateOutlet", fieldEditIndicatorsTpl_r10);
404
+ const fieldEditIndicatorsTpl_r11 = i0.ɵɵreference(2);
405
+ i0.ɵɵproperty("ngTemplateOutlet", fieldEditIndicatorsTpl_r11);
392
406
  } }
393
407
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
394
- i0.ɵɵelement(0, "i", 60);
408
+ i0.ɵɵelement(0, "i", 61);
395
409
  } }
396
410
  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);
411
+ const _r13 = i0.ɵɵgetCurrentView();
412
+ i0.ɵɵelementStart(0, "button", 68);
413
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_3_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeToggle($event)); });
414
+ i0.ɵɵelement(1, "i", 69);
415
+ i0.ɵɵelementStart(2, "span", 70);
402
416
  i0.ɵɵtext(3);
403
417
  i0.ɵɵelementEnd();
404
- i0.ɵɵelement(4, "i", 70);
418
+ i0.ɵɵelement(4, "i", 71);
405
419
  i0.ɵɵelementEnd();
406
420
  } if (rf & 2) {
407
421
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -413,9 +427,9 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
413
427
  i0.ɵɵclassProp("fa-chevron-up", ctx_r0.FKShowScopeMenu)("fa-chevron-down", !ctx_r0.FKShowScopeMenu);
414
428
  } }
415
429
  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)); });
430
+ const _r14 = i0.ɵɵgetCurrentView();
431
+ i0.ɵɵelementStart(0, "button", 72);
432
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeChange($event)); });
419
433
  i0.ɵɵtext(1);
420
434
  i0.ɵɵelementEnd();
421
435
  } if (rf & 2) {
@@ -425,52 +439,52 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
425
439
  i0.ɵɵtextInterpolate1(" ", ctx_r0.FKScope === "primary" ? ctx_r0.FKScopeLabels.all : ctx_r0.FKScopeLabels.primary, " ");
426
440
  } }
427
441
  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);
442
+ const _r15 = i0.ɵɵgetCurrentView();
443
+ i0.ɵɵelementStart(0, "button", 73);
444
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_5_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
445
+ i0.ɵɵelement(1, "i", 74);
432
446
  i0.ɵɵelementEnd();
433
447
  } }
434
448
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
435
- i0.ɵɵelement(0, "i", 65);
449
+ i0.ɵɵelement(0, "i", 66);
436
450
  } }
437
451
  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) {
438
452
  i0.ɵɵelementContainer(0);
439
453
  } }
440
454
  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);
455
+ 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", 85);
442
456
  } if (rf & 2) {
443
- const f_r15 = i0.ɵɵnextContext().$implicit;
457
+ const f_r16 = i0.ɵɵnextContext().$implicit;
444
458
  i0.ɵɵnextContext(2);
445
- const scopeRow_r16 = i0.ɵɵreference(3);
446
- i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r15));
459
+ const scopeRow_r17 = i0.ɵɵreference(3);
460
+ i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r16));
447
461
  } }
448
462
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
449
463
  i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Conditional_0_Template, 1, 4, "ng-container");
450
464
  } if (rf & 2) {
451
- const f_r15 = ctx.$implicit;
452
- i0.ɵɵconditional(f_r15.Group === "shown" ? 0 : -1);
465
+ const f_r16 = ctx.$implicit;
466
+ i0.ɵɵconditional(f_r16.Group === "shown" ? 0 : -1);
453
467
  } }
454
468
  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) {
455
469
  i0.ɵɵelementContainer(0);
456
470
  } }
457
471
  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);
472
+ 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", 85);
459
473
  } if (rf & 2) {
460
- const f_r17 = i0.ɵɵnextContext().$implicit;
474
+ const f_r18 = i0.ɵɵnextContext().$implicit;
461
475
  i0.ɵɵnextContext(3);
462
- const scopeRow_r16 = i0.ɵɵreference(3);
463
- i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r17));
476
+ const scopeRow_r17 = i0.ɵɵreference(3);
477
+ i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r18));
464
478
  } }
465
479
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
466
480
  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");
467
481
  } if (rf & 2) {
468
- const f_r17 = ctx.$implicit;
469
- i0.ɵɵconditional(f_r17.Group === "other" ? 0 : -1);
482
+ const f_r18 = ctx.$implicit;
483
+ i0.ɵɵconditional(f_r18.Group === "other" ? 0 : -1);
470
484
  } }
471
485
  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);
486
+ i0.ɵɵelement(0, "div", 86);
487
+ i0.ɵɵelementStart(1, "div", 84);
474
488
  i0.ɵɵtext(2, "Other fields");
475
489
  i0.ɵɵelementEnd();
476
490
  i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Conditional_5_For_4_Template, 1, 1, null, null, _forTrack0);
@@ -480,7 +494,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
480
494
  i0.ɵɵrepeater(ctx_r0.FKSearchableFields);
481
495
  } }
482
496
  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);
497
+ i0.ɵɵelementStart(0, "div", 83)(1, "div", 84);
484
498
  i0.ɵɵtext(2, "Columns shown");
485
499
  i0.ɵɵelementEnd();
486
500
  i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_For_4_Template, 1, 1, null, null, _forTrack0);
@@ -495,71 +509,71 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
495
509
  i0.ɵɵconditional(ctx_r0.FKHasOtherSearchableFields ? 5 : -1);
496
510
  } }
497
511
  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);
512
+ const _r21 = i0.ɵɵgetCurrentView();
513
+ i0.ɵɵelementStart(0, "button", 92);
514
+ 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(_r21); const f_r20 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r20.FieldName, -1)); });
515
+ i0.ɵɵelement(1, "i", 93);
502
516
  i0.ɵɵelementEnd();
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);
517
+ i0.ɵɵelementStart(2, "button", 94);
518
+ 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(_r21); const f_r20 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r20.FieldName, 1)); });
519
+ i0.ɵɵelement(3, "i", 95);
506
520
  i0.ɵɵelementEnd();
507
521
  } if (rf & 2) {
508
- const f_r19 = i0.ɵɵnextContext().$implicit;
522
+ const f_r20 = i0.ɵɵnextContext().$implicit;
509
523
  const ctx_r0 = i0.ɵɵnextContext(5);
510
- i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnUp(f_r19.FieldName));
524
+ i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnUp(f_r20.FieldName));
511
525
  i0.ɵɵadvance(2);
512
- i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnDown(f_r19.FieldName));
526
+ i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnDown(f_r20.FieldName));
513
527
  } }
514
528
  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);
529
+ const _r22 = i0.ɵɵgetCurrentView();
530
+ i0.ɵɵelementStart(0, "button", 96);
531
+ 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(_r22); const f_r20 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKColumnToggle($event, f_r20)); });
532
+ i0.ɵɵelement(1, "i", 97);
519
533
  i0.ɵɵelementEnd();
520
534
  } if (rf & 2) {
521
- const f_r19 = i0.ɵɵnextContext().$implicit;
535
+ const f_r20 = i0.ɵɵnextContext().$implicit;
522
536
  const ctx_r0 = i0.ɵɵnextContext(5);
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");
537
+ i0.ɵɵclassProp("mj-fk-col-toggle--on", ctx_r0.IsFKColumnVisible(f_r20));
538
+ i0.ɵɵproperty("title", ctx_r0.IsFKColumnVisible(f_r20) ? "Hide this column" : "Show as a column");
525
539
  i0.ɵɵadvance();
526
- i0.ɵɵclassProp("fa-eye", ctx_r0.IsFKColumnVisible(f_r19))("fa-eye-slash", !ctx_r0.IsFKColumnVisible(f_r19));
540
+ i0.ɵɵclassProp("fa-eye", ctx_r0.IsFKColumnVisible(f_r20))("fa-eye-slash", !ctx_r0.IsFKColumnVisible(f_r20));
527
541
  } }
528
542
  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);
543
+ const _r19 = i0.ɵɵgetCurrentView();
544
+ i0.ɵɵelementStart(0, "div", 87);
545
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Template_div_mousedown_0_listener($event) { const f_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKScopeSelect($event, f_r20)); });
546
+ i0.ɵɵelementStart(1, "span", 88);
533
547
  i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_2_Template, 4, 2);
534
548
  i0.ɵɵelementEnd();
535
549
  i0.ɵɵelement(3, "i");
536
- i0.ɵɵelementStart(4, "span", 87);
550
+ i0.ɵɵelementStart(4, "span", 89);
537
551
  i0.ɵɵtext(5);
538
552
  i0.ɵɵelementEnd();
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);
553
+ i0.ɵɵelementStart(6, "span", 90);
554
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Conditional_7_Template, 2, 7, "button", 91);
541
555
  i0.ɵɵelementEnd()();
542
556
  } if (rf & 2) {
543
- const f_r19 = ctx.$implicit;
557
+ const f_r20 = ctx.$implicit;
544
558
  const ctx_r0 = i0.ɵɵnextContext(5);
545
- i0.ɵɵclassProp("mj-fk-scope-mi--on", ctx_r0.IsFKScopeActive(f_r19));
559
+ i0.ɵɵclassProp("mj-fk-scope-mi--on", ctx_r0.IsFKScopeActive(f_r20));
546
560
  i0.ɵɵadvance(2);
547
- i0.ɵɵconditional(f_r19.Group === "shown" ? 2 : -1);
561
+ i0.ɵɵconditional(f_r20.Group === "shown" ? 2 : -1);
548
562
  i0.ɵɵadvance();
549
- i0.ɵɵclassMap(f_r19.Icon + " mj-fk-scope-mi-icon");
563
+ i0.ɵɵclassMap(f_r20.Icon + " mj-fk-scope-mi-icon");
550
564
  i0.ɵɵadvance(2);
551
- i0.ɵɵtextInterpolate(f_r19.Label);
565
+ i0.ɵɵtextInterpolate(f_r20.Label);
552
566
  i0.ɵɵadvance(2);
553
- i0.ɵɵconditional(ctx_r0.CanToggleFKColumn(f_r19) ? 7 : -1);
567
+ i0.ɵɵconditional(ctx_r0.CanToggleFKColumn(f_r20) ? 7 : -1);
554
568
  } }
555
569
  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);
570
+ i0.ɵɵelement(0, "i", 105);
557
571
  } if (rf & 2) {
558
572
  const ctx_r0 = i0.ɵɵnextContext(6);
559
573
  i0.ɵɵclassMap(ctx_r0.FKSelectedSuggestion.Icon);
560
574
  } }
561
575
  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);
576
+ i0.ɵɵelementStart(0, "span", 103);
563
577
  i0.ɵɵtext(1);
564
578
  i0.ɵɵelementEnd();
565
579
  } if (rf & 2) {
@@ -568,20 +582,20 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
568
582
  i0.ɵɵtextInterpolate(ctx_r0.FKSelectedSuggestion.ExtraColumns[0].Value);
569
583
  } }
570
584
  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);
585
+ const _r23 = i0.ɵɵgetCurrentView();
586
+ i0.ɵɵelementStart(0, "div", 77)(1, "div", 98);
587
+ i0.ɵɵelement(2, "i", 99);
574
588
  i0.ɵɵelementStart(3, "span");
575
589
  i0.ɵɵtext(4, "Currently selected");
576
590
  i0.ɵɵelementEnd()();
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);
591
+ i0.ɵɵelementStart(5, "div", 100);
592
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template_div_mousedown_5_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(ctx_r0.FKSelectedSuggestion, $event)); });
593
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Conditional_6_Template, 1, 2, "i", 101);
594
+ i0.ɵɵelement(7, "span", 102);
595
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Conditional_8_Template, 2, 1, "span", 103);
596
+ i0.ɵɵelementStart(9, "button", 104);
597
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template_button_mousedown_9_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
598
+ i0.ɵɵelement(10, "i", 74);
585
599
  i0.ɵɵelementEnd()()();
586
600
  } if (rf & 2) {
587
601
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -593,173 +607,190 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
593
607
  i0.ɵɵconditional(ctx_r0.FKSelectedSuggestion.ExtraColumns.length && ctx_r0.FKSelectedSuggestion.ExtraColumns[0].Value ? 8 : -1);
594
608
  } }
595
609
  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);
610
+ i0.ɵɵelementStart(0, "div", 78);
611
+ i0.ɵɵelement(1, "i", 106);
598
612
  i0.ɵɵelementStart(2, "span");
599
613
  i0.ɵɵtext(3, "Searching\u2026");
600
614
  i0.ɵɵelementEnd()();
601
615
  } }
602
616
  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);
617
+ const _r24 = i0.ɵɵgetCurrentView();
618
+ i0.ɵɵelementStart(0, "div", 79);
619
+ i0.ɵɵelement(1, "i", 107);
620
+ i0.ɵɵelementStart(2, "span", 108);
621
+ i0.ɵɵtext(3);
622
+ i0.ɵɵelementEnd();
623
+ i0.ɵɵelementStart(4, "button", 109);
624
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_6_Template_button_mousedown_4_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKRetryClick($event)); });
625
+ i0.ɵɵelement(5, "i", 110);
626
+ i0.ɵɵtext(6, " Retry ");
627
+ i0.ɵɵelementEnd()();
628
+ } if (rf & 2) {
629
+ const ctx_r0 = i0.ɵɵnextContext(5);
630
+ i0.ɵɵadvance(3);
631
+ i0.ɵɵtextInterpolate(ctx_r0.FKSearchError);
632
+ } }
633
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_Template(rf, ctx) { if (rf & 1) {
634
+ i0.ɵɵelementStart(0, "div", 80);
635
+ i0.ɵɵelement(1, "i", 111);
605
636
  i0.ɵɵelementStart(2, "span");
606
637
  i0.ɵɵtext(3, "No matches");
607
638
  i0.ɵɵelementEnd()();
608
639
  } }
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);
640
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
641
+ i0.ɵɵelement(0, "div", 114);
611
642
  } }
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);
643
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_5_Template(rf, ctx) { if (rf & 1) {
644
+ const _r25 = i0.ɵɵgetCurrentView();
645
+ i0.ɵɵelementStart(0, "div", 116);
646
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_5_Template_div_mousedown_0_listener($event) { const col_r26 = i0.ɵɵrestoreView(_r25).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKHeaderSort($event, col_r26)); });
647
+ i0.ɵɵelementStart(1, "span", 117);
617
648
  i0.ɵɵtext(2);
618
649
  i0.ɵɵelementEnd();
619
650
  i0.ɵɵelement(3, "i");
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)); });
651
+ i0.ɵɵelementStart(4, "span", 118);
652
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_5_Template_span_mousedown_4_listener($event) { const col_r26 = i0.ɵɵrestoreView(_r25).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKColResizeStart($event, col_r26)); });
622
653
  i0.ɵɵelementEnd()();
623
654
  } if (rf & 2) {
624
- const col_r24 = ctx.$implicit;
625
- const ɵ$index_319_r25 = ctx.$index;
655
+ const col_r26 = ctx.$implicit;
656
+ const ɵ$index_340_r27 = ctx.$index;
626
657
  const ctx_r0 = i0.ɵɵnextContext(6);
627
- i0.ɵɵproperty("title", "Click to sort by " + ctx_r0.FKColumnHeaders[ɵ$index_319_r25]);
658
+ i0.ɵɵproperty("title", "Click to sort by " + ctx_r0.FKColumnHeaders[ɵ$index_340_r27]);
628
659
  i0.ɵɵadvance(2);
629
- i0.ɵɵtextInterpolate(ctx_r0.FKColumnHeaders[ɵ$index_319_r25]);
660
+ i0.ɵɵtextInterpolate(ctx_r0.FKColumnHeaders[ɵ$index_340_r27]);
630
661
  i0.ɵɵadvance();
631
- i0.ɵɵclassMap(ctx_r0.FKSortIcon(col_r24));
662
+ i0.ɵɵclassMap(ctx_r0.FKSortIcon(col_r26));
632
663
  } }
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(); });
664
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
665
+ i0.ɵɵelementStart(0, "div", 121);
666
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_Conditional_0_Template_div_mousedown_0_listener($event) { return $event.preventDefault(); });
636
667
  i0.ɵɵtext(1);
637
668
  i0.ɵɵelementEnd();
638
669
  } if (rf & 2) {
639
- const group_r26 = i0.ɵɵnextContext().$implicit;
670
+ const group_r28 = i0.ɵɵnextContext().$implicit;
640
671
  i0.ɵɵadvance();
641
- i0.ɵɵtextInterpolate(group_r26.Label);
672
+ i0.ɵɵtextInterpolate(group_r28.Label);
642
673
  } }
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) {
674
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
644
675
  i0.ɵɵelement(0, "i");
645
676
  } if (rf & 2) {
646
- const suggestion_r28 = i0.ɵɵnextContext(2).$implicit;
647
- i0.ɵɵclassMap(suggestion_r28.Icon);
677
+ const suggestion_r30 = i0.ɵɵnextContext(2).$implicit;
678
+ i0.ɵɵclassMap(suggestion_r30.Icon);
648
679
  } }
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);
680
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
681
+ i0.ɵɵelementStart(0, "div", 123);
682
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Conditional_1_Conditional_1_Template, 1, 2, "i", 22);
652
683
  i0.ɵɵelementEnd();
653
684
  } if (rf & 2) {
654
- const suggestion_r28 = i0.ɵɵnextContext().$implicit;
685
+ const suggestion_r30 = i0.ɵɵnextContext().$implicit;
655
686
  i0.ɵɵadvance();
656
- i0.ɵɵconditional(suggestion_r28.Icon ? 1 : -1);
687
+ i0.ɵɵconditional(suggestion_r30.Icon ? 1 : -1);
657
688
  } }
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);
689
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
690
+ i0.ɵɵelement(0, "i", 127);
660
691
  } }
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);
692
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_For_5_Template(rf, ctx) { if (rf & 1) {
693
+ i0.ɵɵelementStart(0, "span", 132);
663
694
  i0.ɵɵtext(1);
664
695
  i0.ɵɵelementEnd();
665
696
  } if (rf & 2) {
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");
697
+ const chip_r31 = ctx.$implicit;
698
+ i0.ɵɵclassProp("mj-fk-chip--info", chip_r31.Tone === "info")("mj-fk-chip--warn", chip_r31.Tone === "warn");
668
699
  i0.ɵɵadvance();
669
- i0.ɵɵtextInterpolate(chip_r29.Text);
700
+ i0.ɵɵtextInterpolate(chip_r31.Text);
670
701
  } }
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);
702
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
703
+ i0.ɵɵelementStart(0, "span", 131);
673
704
  i0.ɵɵtext(1);
674
705
  i0.ɵɵelementEnd();
675
706
  } if (rf & 2) {
676
- const suggestion_r28 = i0.ɵɵnextContext(3).$implicit;
707
+ const suggestion_r30 = i0.ɵɵnextContext(3).$implicit;
677
708
  i0.ɵɵadvance();
678
- i0.ɵɵtextInterpolate(suggestion_r28.Secondary);
709
+ i0.ɵɵtextInterpolate(suggestion_r30.Secondary);
679
710
  } }
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);
711
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
712
+ i0.ɵɵelementStart(0, "div", 126);
713
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_Conditional_1_Template, 1, 0, "i", 127);
714
+ i0.ɵɵelementStart(2, "span", 128);
715
+ i0.ɵɵelement(3, "span", 129);
716
+ i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_For_5_Template, 2, 5, "span", 130, _forTrack3);
686
717
  i0.ɵɵelementEnd();
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);
718
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_Conditional_6_Template, 2, 1, "span", 131);
688
719
  i0.ɵɵelementEnd();
689
720
  } if (rf & 2) {
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;
721
+ const ctx_r31 = i0.ɵɵnextContext();
722
+ const col_r33 = ctx_r31.$implicit;
723
+ const ɵ$index_364_r34 = ctx_r31.$index;
724
+ const ɵ$count_364_r35 = ctx_r31.$count;
725
+ const suggestion_r30 = i0.ɵɵnextContext().$implicit;
695
726
  const ctx_r0 = i0.ɵɵnextContext(7);
696
- i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r31, ɵ$index_343_r32 === ɵ$count_343_r33 - 1));
727
+ i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r33, ɵ$index_364_r34 === ɵ$count_364_r35 - 1));
697
728
  i0.ɵɵadvance();
698
- i0.ɵɵconditional(ctx_r0.IsFKRowSelected(suggestion_r28) ? 1 : -1);
729
+ i0.ɵɵconditional(ctx_r0.IsFKRowSelected(suggestion_r30) ? 1 : -1);
699
730
  i0.ɵɵadvance(2);
700
- i0.ɵɵproperty("innerHTML", suggestion_r28.HighlightedName, i0.ɵɵsanitizeHtml);
731
+ i0.ɵɵproperty("innerHTML", suggestion_r30.HighlightedName, i0.ɵɵsanitizeHtml);
701
732
  i0.ɵɵadvance();
702
- i0.ɵɵrepeater(suggestion_r28.Chips ?? i0.ɵɵpureFunction0(5, _c1));
733
+ i0.ɵɵrepeater(suggestion_r30.Chips ?? i0.ɵɵpureFunction0(5, _c1));
703
734
  i0.ɵɵadvance(2);
704
- i0.ɵɵconditional(suggestion_r28.Secondary ? 6 : -1);
735
+ i0.ɵɵconditional(suggestion_r30.Secondary ? 6 : -1);
705
736
  } }
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);
737
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
738
+ i0.ɵɵelementStart(0, "div", 133);
739
+ i0.ɵɵelement(1, "span", 129);
709
740
  i0.ɵɵelementEnd();
710
741
  } if (rf & 2) {
711
- let tmp_40_0;
712
742
  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;
743
+ let tmp_42_0;
744
+ const ctx_r31 = i0.ɵɵnextContext();
745
+ const col_r33 = ctx_r31.$implicit;
746
+ const ɵ$index_364_r34 = ctx_r31.$index;
747
+ const ɵ$count_364_r35 = ctx_r31.$count;
748
+ const suggestion_r30 = i0.ɵɵnextContext().$implicit;
718
749
  const ctx_r0 = i0.ɵɵnextContext(7);
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) || "");
750
+ i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r33, ɵ$index_364_r34 === ɵ$count_364_r35 - 1));
751
+ i0.ɵɵproperty("title", ((tmp_41_0 = ctx_r0.FKCellFor(suggestion_r30, col_r33)) == null ? null : tmp_41_0.Value) || "");
721
752
  i0.ɵɵadvance();
722
- i0.ɵɵproperty("innerHTML", ((tmp_41_0 = ctx_r0.FKCellFor(suggestion_r28, col_r31)) == null ? null : tmp_41_0.HighlightedValue) || "", i0.ɵɵsanitizeHtml);
753
+ i0.ɵɵproperty("innerHTML", ((tmp_42_0 = ctx_r0.FKCellFor(suggestion_r30, col_r33)) == null ? null : tmp_42_0.HighlightedValue) || "", i0.ɵɵsanitizeHtml);
723
754
  } }
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);
755
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Template(rf, ctx) { if (rf & 1) {
756
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_0_Template, 7, 6, "div", 124)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Conditional_1_Template, 2, 4, "div", 125);
726
757
  } if (rf & 2) {
727
- const col_r31 = ctx.$implicit;
758
+ const col_r33 = ctx.$implicit;
728
759
  const ctx_r0 = i0.ɵɵnextContext(8);
729
- i0.ɵɵconditional(col_r31 === ctx_r0.FKNameField ? 0 : 1);
760
+ i0.ɵɵconditional(col_r33 === ctx_r0.FKNameField ? 0 : 1);
730
761
  } }
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);
762
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Template(rf, ctx) { if (rf & 1) {
763
+ const _r29 = i0.ɵɵgetCurrentView();
764
+ i0.ɵɵelementStart(0, "div", 122);
765
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Template_div_mousedown_0_listener($event) { const suggestion_r30 = i0.ɵɵrestoreView(_r29).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(suggestion_r30, $event)); })("mouseenter", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Template_div_mouseenter_0_listener() { const suggestion_r30 = i0.ɵɵrestoreView(_r29).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.FKActiveIndex = ctx_r0.FKIndexOf(suggestion_r30)); });
766
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Conditional_1_Template, 2, 1, "div", 123);
767
+ i0.ɵɵrepeaterCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_For_3_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
737
768
  i0.ɵɵelementEnd();
738
769
  } if (rf & 2) {
739
- const suggestion_r28 = ctx.$implicit;
770
+ const suggestion_r30 = ctx.$implicit;
740
771
  const ctx_r0 = i0.ɵɵnextContext(7);
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));
772
+ i0.ɵɵclassProp("mj-fk-grid-row--active", ctx_r0.FKIndexOf(suggestion_r30) === ctx_r0.FKActiveIndex)("mj-fk-grid-row--selected", ctx_r0.IsFKRowSelected(suggestion_r30));
742
773
  i0.ɵɵadvance();
743
774
  i0.ɵɵconditional(ctx_r0.FKHasIconColumn ? 1 : -1);
744
775
  i0.ɵɵadvance();
745
776
  i0.ɵɵrepeater(ctx_r0.FKColumnFields);
746
777
  } }
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);
778
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_Template(rf, ctx) { if (rf & 1) {
779
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_Conditional_0_Template, 2, 1, "div", 119);
780
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_For_2_Template, 4, 5, "div", 120, _forTrack2);
750
781
  } if (rf & 2) {
751
- const group_r26 = ctx.$implicit;
782
+ const group_r28 = ctx.$implicit;
752
783
  const ctx_r0 = i0.ɵɵnextContext(6);
753
- i0.ɵɵconditional(group_r26.Label && ctx_r0.FKSuggestionsInGroup(group_r26.Key).length > 0 ? 0 : -1);
784
+ i0.ɵɵconditional(group_r28.Label && ctx_r0.FKSuggestionsInGroup(group_r28.Key).length > 0 ? 0 : -1);
754
785
  i0.ɵɵadvance();
755
- i0.ɵɵrepeater(ctx_r0.FKSuggestionsInGroup(group_r26.Key));
786
+ i0.ɵɵrepeater(ctx_r0.FKSuggestionsInGroup(group_r28.Key));
756
787
  } }
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);
788
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Template(rf, ctx) { if (rf & 1) {
789
+ i0.ɵɵelementStart(0, "div", 81)(1, "div", 112)(2, "div", 113);
790
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Conditional_3_Template, 1, 0, "div", 114);
791
+ i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_5_Template, 5, 4, "div", 115, i0.ɵɵrepeaterTrackByIdentity);
761
792
  i0.ɵɵelementEnd();
762
- i0.ɵɵrepeaterCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_For_7_Template, 3, 1, null, null, _forTrack1);
793
+ i0.ɵɵrepeaterCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_For_7_Template, 3, 1, null, null, _forTrack1);
763
794
  i0.ɵɵelementEnd()();
764
795
  } if (rf & 2) {
765
796
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -772,12 +803,12 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
772
803
  i0.ɵɵadvance(2);
773
804
  i0.ɵɵrepeater(ctx_r0.FKGroups);
774
805
  } }
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);
806
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_9_Template(rf, ctx) { if (rf & 1) {
807
+ const _r36 = i0.ɵɵgetCurrentView();
808
+ i0.ɵɵelementStart(0, "button", 134);
809
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_9_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKCreateNew($event)); });
810
+ i0.ɵɵelement(1, "i", 135);
811
+ i0.ɵɵelementStart(2, "span", 136);
781
812
  i0.ɵɵtext(3);
782
813
  i0.ɵɵelementEnd()();
783
814
  } if (rf & 2) {
@@ -787,14 +818,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
787
818
  i0.ɵɵtextInterpolate(ctx_r0.FKCreateLabel);
788
819
  } }
789
820
  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);
821
+ i0.ɵɵelementStart(0, "div", 75);
822
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_1_Template, 6, 3, "div", 76);
823
+ i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_ng_template_2_Template, 8, 7, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
824
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_4_Template, 11, 3, "div", 77);
825
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_5_Template, 4, 0, "div", 78);
826
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_6_Template, 7, 1, "div", 79);
827
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_7_Template, 4, 0, "div", 80);
828
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_8_Template, 8, 3, "div", 81);
829
+ i0.ɵɵconditionalCreate(9, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Conditional_9_Template, 4, 2, "button", 82);
798
830
  i0.ɵɵelementEnd();
799
831
  } if (rf & 2) {
800
832
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -807,23 +839,25 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
807
839
  i0.ɵɵadvance();
808
840
  i0.ɵɵconditional(ctx_r0.FKLoading ? 5 : -1);
809
841
  i0.ɵɵadvance();
810
- i0.ɵɵconditional(!ctx_r0.FKLoading && ctx_r0.FKNoMatches ? 6 : -1);
842
+ i0.ɵɵconditional(!ctx_r0.FKLoading && ctx_r0.FKSearchError ? 6 : -1);
843
+ i0.ɵɵadvance();
844
+ i0.ɵɵconditional(!ctx_r0.FKLoading && ctx_r0.FKNoMatches ? 7 : -1);
811
845
  i0.ɵɵadvance();
812
- i0.ɵɵconditional(!ctx_r0.FKLoading && ctx_r0.FKSuggestions.length > 0 ? 7 : -1);
846
+ i0.ɵɵconditional(!ctx_r0.FKLoading && ctx_r0.FKSuggestions.length > 0 ? 8 : -1);
813
847
  i0.ɵɵadvance();
814
- i0.ɵɵconditional(ctx_r0.CanCreateFK ? 8 : -1);
848
+ i0.ɵɵconditional(ctx_r0.CanCreateFK ? 9 : -1);
815
849
  } }
816
850
  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)); });
851
+ const _r12 = i0.ɵɵgetCurrentView();
852
+ i0.ɵɵelementStart(0, "div", 60);
853
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template, 1, 0, "i", 61);
854
+ i0.ɵɵelementStart(2, "input", 62);
855
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r12); 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(_r12); 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(_r12); 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(_r12); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKKeydown($event)); });
822
856
  i0.ɵɵelementEnd();
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);
857
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_3_Template, 5, 8, "button", 63);
858
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template, 2, 2, "button", 64);
859
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_5_Template, 2, 0, "button", 65)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_6_Template, 1, 0, "i", 66);
860
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_7_Template, 10, 12, "div", 67);
827
861
  i0.ɵɵelementEnd();
828
862
  } if (rf & 2) {
829
863
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -843,14 +877,14 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template
843
877
  i0.ɵɵconditional(ctx_r0.ShowFKDropdown ? 7 : -1);
844
878
  } }
845
879
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
846
- i0.ɵɵelement(0, "img", 27);
880
+ i0.ɵɵelement(0, "img", 29);
847
881
  } if (rf & 2) {
848
882
  const ctx_r0 = i0.ɵɵnextContext(4);
849
883
  i0.ɵɵproperty("src", ctx_r0.ImagePreviewSrc, i0.ɵɵsanitizeUrl);
850
884
  } }
851
885
  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);
886
+ i0.ɵɵelementStart(0, "div", 137);
887
+ i0.ɵɵelement(1, "i", 145);
854
888
  i0.ɵɵelementEnd();
855
889
  } }
856
890
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
@@ -863,33 +897,33 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditio
863
897
  i0.ɵɵtextInterpolate1("Inline image (", ctx_r0.ImageValueSizeLabel, ")");
864
898
  } }
865
899
  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()); });
900
+ const _r39 = i0.ɵɵgetCurrentView();
901
+ i0.ɵɵelementStart(0, "button", 146);
902
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnImageClear()); });
869
903
  i0.ɵɵtext(1, "Clear");
870
904
  i0.ɵɵelementEnd();
871
905
  } }
872
906
  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);
907
+ const _r37 = i0.ɵɵgetCurrentView();
908
+ i0.ɵɵelementStart(0, "div", 53);
909
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_1_Template, 1, 1, "img", 29)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_2_Template, 2, 0, "div", 137);
910
+ i0.ɵɵelementStart(3, "div", 30);
877
911
  i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_4_Template, 2, 1, "span");
878
- i0.ɵɵelementStart(5, "span", 132);
912
+ i0.ɵɵelementStart(5, "span", 138);
879
913
  i0.ɵɵtext(6);
880
914
  i0.ɵɵelementEnd()();
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)); });
915
+ i0.ɵɵelementStart(7, "div", 139)(8, "input", 140, 3);
916
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_change_8_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageFileSelected($event)); });
883
917
  i0.ɵɵelementEnd();
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);
918
+ i0.ɵɵelementStart(10, "button", 141);
919
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r37); const imageFileInput_r38 = i0.ɵɵreference(9); return i0.ɵɵresetView(imageFileInput_r38.click()); });
920
+ i0.ɵɵelement(11, "i", 142);
887
921
  i0.ɵɵtext(12);
888
922
  i0.ɵɵelementEnd();
889
- i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_13_Template, 2, 0, "button", 137);
923
+ i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Conditional_13_Template, 2, 0, "button", 143);
890
924
  i0.ɵɵelementEnd();
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)); });
925
+ i0.ɵɵelementStart(14, "input", 144);
926
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_14_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageUrlInput($event)); });
893
927
  i0.ɵɵelementEnd()();
894
928
  } if (rf & 2) {
895
929
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -907,12 +941,12 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template
907
941
  i0.ɵɵproperty("value", ctx_r0.ImageUrlInputValue);
908
942
  } }
909
943
  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)); });
944
+ const _r40 = i0.ɵɵgetCurrentView();
945
+ i0.ɵɵelementStart(0, "div", 54)(1, "input", 147);
946
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnColorPickerInput($event)); });
913
947
  i0.ɵɵelementEnd();
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)); });
948
+ i0.ɵɵelementStart(2, "input", 148);
949
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
916
950
  i0.ɵɵelementEnd()();
917
951
  } if (rf & 2) {
918
952
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -923,63 +957,63 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template
923
957
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
924
958
  } }
925
959
  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()); });
960
+ const _r41 = i0.ɵɵgetCurrentView();
961
+ i0.ɵɵelementStart(0, "textarea", 149);
962
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r41); 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(_r41); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnJsonBlur()); });
929
963
  i0.ɵɵelementEnd();
930
964
  } if (rf & 2) {
931
965
  const ctx_r0 = i0.ɵɵnextContext(3);
932
966
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
933
967
  } }
934
968
  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)); });
969
+ const _r42 = i0.ɵɵgetCurrentView();
970
+ i0.ɵɵelementStart(0, "mj-code-editor", 150);
971
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template_mj_code_editor_change_0_listener($event) { i0.ɵɵrestoreView(_r42); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnCodeEditorChange($event)); });
938
972
  i0.ɵɵelementEnd();
939
973
  } if (rf & 2) {
940
974
  const ctx_r0 = i0.ɵɵnextContext(3);
941
975
  i0.ɵɵproperty("value", ctx_r0.FormatValue())("language", ctx_r0.CodeEditorLanguage);
942
976
  } }
943
977
  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)); });
978
+ const _r43 = i0.ɵɵgetCurrentView();
979
+ i0.ɵɵelementStart(0, "input", 155);
980
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_0_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
947
981
  i0.ɵɵelementEnd();
948
982
  } if (rf & 2) {
949
983
  const ctx_r0 = i0.ɵɵnextContext(4);
950
984
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
951
985
  } }
952
986
  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)); });
987
+ const _r44 = i0.ɵɵgetCurrentView();
988
+ i0.ɵɵelementStart(0, "textarea", 156);
989
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_1_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
956
990
  i0.ɵɵelementEnd();
957
991
  } if (rf & 2) {
958
992
  const ctx_r0 = i0.ɵɵnextContext(4);
959
993
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
960
994
  } }
961
995
  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)); });
996
+ const _r45 = i0.ɵɵgetCurrentView();
997
+ i0.ɵɵelementStart(0, "input", 157);
998
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnNumberChange($event)); });
965
999
  i0.ɵɵelementEnd();
966
1000
  } if (rf & 2) {
967
1001
  const ctx_r0 = i0.ɵɵnextContext(4);
968
1002
  i0.ɵɵproperty("value", ctx_r0.Value);
969
1003
  } }
970
1004
  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)); });
1005
+ const _r46 = i0.ɵɵgetCurrentView();
1006
+ i0.ɵɵelementStart(0, "input", 158);
1007
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnDateChange($event)); });
974
1008
  i0.ɵɵelementEnd();
975
1009
  } if (rf & 2) {
976
1010
  const ctx_r0 = i0.ɵɵnextContext(4);
977
1011
  i0.ɵɵproperty("value", ctx_r0.DateInputValue);
978
1012
  } }
979
1013
  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)); });
1014
+ const _r47 = i0.ɵɵgetCurrentView();
1015
+ i0.ɵɵelementStart(0, "div", 43)(1, "input", 159);
1016
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_4_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnCheckboxChange($event)); });
983
1017
  i0.ɵɵelementEnd()();
984
1018
  } if (rf & 2) {
985
1019
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -987,21 +1021,21 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_4_T
987
1021
  i0.ɵɵproperty("checked", !!ctx_r0.Value);
988
1022
  } }
989
1023
  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)); });
1024
+ const _r49 = i0.ɵɵgetCurrentView();
1025
+ i0.ɵɵelementStart(0, "div", 166);
1026
+ 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_r50 = i0.ɵɵrestoreView(_r49).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnSelectOptionClick(option_r50, $event)); });
993
1027
  i0.ɵɵtext(1);
994
1028
  i0.ɵɵelementEnd();
995
1029
  } if (rf & 2) {
996
- const option_r48 = ctx.$implicit;
1030
+ const option_r50 = ctx.$implicit;
997
1031
  const ctx_r0 = i0.ɵɵnextContext(6);
998
- i0.ɵɵclassProp("mj-fk-option--selected", ctx_r0.FormatValue() === option_r48);
1032
+ i0.ɵɵclassProp("mj-fk-option--selected", ctx_r0.FormatValue() === option_r50);
999
1033
  i0.ɵɵadvance();
1000
- i0.ɵɵtextInterpolate1(" ", option_r48, " ");
1034
+ i0.ɵɵtextInterpolate1(" ", option_r50, " ");
1001
1035
  } }
1002
1036
  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);
1037
+ i0.ɵɵelementStart(0, "div", 164);
1038
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_For_2_Template, 2, 3, "div", 165, i0.ɵɵrepeaterTrackByIdentity);
1005
1039
  i0.ɵɵelementEnd();
1006
1040
  } if (rf & 2) {
1007
1041
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -1011,15 +1045,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_C
1011
1045
  i0.ɵɵrepeater(ctx_r0.PossibleValues);
1012
1046
  } }
1013
1047
  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);
1048
+ const _r48 = i0.ɵɵgetCurrentView();
1049
+ i0.ɵɵelementStart(0, "div", 160);
1050
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r48); 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(_r48); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerBlur()); });
1051
+ i0.ɵɵelementStart(1, "span", 161);
1018
1052
  i0.ɵɵtext(2);
1019
1053
  i0.ɵɵelementEnd();
1020
- i0.ɵɵelement(3, "i", 156);
1054
+ i0.ɵɵelement(3, "i", 162);
1021
1055
  i0.ɵɵelementEnd();
1022
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_Template, 3, 3, "div", 157);
1056
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_Conditional_4_Template, 3, 3, "div", 163);
1023
1057
  } if (rf & 2) {
1024
1058
  const ctx_r0 = i0.ɵɵnextContext(4);
1025
1059
  i0.ɵɵadvance();
@@ -1032,19 +1066,19 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_5_T
1032
1066
  i0.ɵɵconditional(ctx_r0.ShowSelectDropdown && ctx_r0.PossibleValues.length > 0 ? 4 : -1);
1033
1067
  } }
1034
1068
  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)); });
1069
+ const _r52 = i0.ɵɵgetCurrentView();
1070
+ i0.ɵɵelementStart(0, "div", 166);
1071
+ 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_r53 = i0.ɵɵrestoreView(_r52).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnValueListSelect(option_r53, $event)); });
1038
1072
  i0.ɵɵtext(1);
1039
1073
  i0.ɵɵelementEnd();
1040
1074
  } if (rf & 2) {
1041
- const option_r51 = ctx.$implicit;
1075
+ const option_r53 = ctx.$implicit;
1042
1076
  i0.ɵɵadvance();
1043
- i0.ɵɵtextInterpolate1(" ", option_r51, " ");
1077
+ i0.ɵɵtextInterpolate1(" ", option_r53, " ");
1044
1078
  } }
1045
1079
  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);
1080
+ i0.ɵɵelementStart(0, "div", 164);
1081
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_For_2_Template, 2, 1, "div", 168, i0.ɵɵrepeaterTrackByIdentity);
1048
1082
  i0.ɵɵelementEnd();
1049
1083
  } if (rf & 2) {
1050
1084
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -1054,12 +1088,12 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_C
1054
1088
  i0.ɵɵrepeater(ctx_r0.FilteredPossibleValues);
1055
1089
  } }
1056
1090
  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()); });
1091
+ const _r51 = i0.ɵɵgetCurrentView();
1092
+ i0.ɵɵelementStart(0, "div", 60)(1, "input", 167);
1093
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r51); 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(_r51); 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(_r51); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListBlur()); });
1060
1094
  i0.ɵɵelementEnd();
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);
1095
+ i0.ɵɵelement(2, "i", 66);
1096
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_Conditional_3_Template, 3, 3, "div", 163);
1063
1097
  i0.ɵɵelementEnd();
1064
1098
  } if (rf & 2) {
1065
1099
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -1069,35 +1103,35 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_6_T
1069
1103
  i0.ɵɵconditional(ctx_r0.ShowValueListDropdown && ctx_r0.FilteredPossibleValues.length > 0 ? 3 : -1);
1070
1104
  } }
1071
1105
  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)); });
1106
+ const _r54 = i0.ɵɵgetCurrentView();
1107
+ i0.ɵɵelementStart(0, "input", 169);
1108
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_7_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r54); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
1075
1109
  i0.ɵɵelementEnd();
1076
1110
  } if (rf & 2) {
1077
1111
  const ctx_r0 = i0.ɵɵnextContext(4);
1078
1112
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
1079
1113
  } }
1080
1114
  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);
1115
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_0_Template, 1, 1, "input", 151)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_1_Template, 1, 1, "textarea", 152)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_2_Template, 1, 1, "input", 153)(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_3_Template, 1, 1, "input", 154)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_4_Template, 2, 1, "div", 43)(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", 60)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Case_7_Template, 1, 1, "input", 151);
1082
1116
  } if (rf & 2) {
1083
- let tmp_4_0;
1117
+ let tmp_5_0;
1084
1118
  const ctx_r0 = i0.ɵɵnextContext(3);
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);
1119
+ i0.ɵɵconditional((tmp_5_0 = ctx_r0.Type) === "textbox" ? 0 : tmp_5_0 === "textarea" ? 1 : tmp_5_0 === "number" ? 2 : tmp_5_0 === "datepicker" ? 3 : tmp_5_0 === "checkbox" ? 4 : tmp_5_0 === "select" ? 5 : tmp_5_0 === "autocomplete" ? 6 : 7);
1086
1120
  } }
1087
1121
  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);
1122
+ i0.ɵɵelementStart(0, "div", 170);
1123
+ i0.ɵɵelement(1, "i", 171);
1090
1124
  i0.ɵɵelementStart(2, "span");
1091
1125
  i0.ɵɵtext(3);
1092
1126
  i0.ɵɵelementEnd()();
1093
1127
  } if (rf & 2) {
1094
- const error_r53 = ctx.$implicit;
1128
+ const error_r55 = ctx.$implicit;
1095
1129
  i0.ɵɵadvance(3);
1096
- i0.ɵɵtextInterpolate(error_r53.Message);
1130
+ i0.ɵɵtextInterpolate(error_r55.Message);
1097
1131
  } }
1098
1132
  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);
1133
+ i0.ɵɵelementStart(0, "div", 57);
1134
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template, 4, 1, "div", 170, _forTrack4);
1101
1135
  i0.ɵɵelementEnd();
1102
1136
  } if (rf & 2) {
1103
1137
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -1105,19 +1139,19 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Templat
1105
1139
  i0.ɵɵrepeater(ctx_r0.DisplayErrors);
1106
1140
  } }
1107
1141
  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);
1142
+ i0.ɵɵelementStart(0, "div", 170);
1143
+ i0.ɵɵelement(1, "i", 107);
1110
1144
  i0.ɵɵelementStart(2, "span");
1111
1145
  i0.ɵɵtext(3);
1112
1146
  i0.ɵɵelementEnd()();
1113
1147
  } if (rf & 2) {
1114
- const warning_r54 = ctx.$implicit;
1148
+ const warning_r56 = ctx.$implicit;
1115
1149
  i0.ɵɵadvance(3);
1116
- i0.ɵɵtextInterpolate(warning_r54.Message);
1150
+ i0.ɵɵtextInterpolate(warning_r56.Message);
1117
1151
  } }
1118
1152
  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);
1153
+ i0.ɵɵelementStart(0, "div", 58);
1154
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_For_2_Template, 4, 1, "div", 170, _forTrack4);
1121
1155
  i0.ɵɵelementEnd();
1122
1156
  } if (rf & 2) {
1123
1157
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -1125,40 +1159,40 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Templat
1125
1159
  i0.ɵɵrepeater(ctx_r0.DisplayWarnings);
1126
1160
  } }
1127
1161
  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);
1162
+ i0.ɵɵelementStart(0, "div", 58)(1, "div", 170);
1163
+ i0.ɵɵelement(2, "i", 107);
1130
1164
  i0.ɵɵelementStart(3, "span");
1131
1165
  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.");
1132
1166
  i0.ɵɵelementEnd()()();
1133
1167
  } }
1134
1168
  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);
1169
+ const _r57 = i0.ɵɵgetCurrentView();
1170
+ i0.ɵɵelementStart(0, "div", 59)(1, "div", 172);
1171
+ i0.ɵɵelement(2, "i", 107);
1138
1172
  i0.ɵɵelementStart(3, "span");
1139
1173
  i0.ɵɵtext(4, "Updated in another session while you were editing");
1140
1174
  i0.ɵɵelementEnd()();
1141
- i0.ɵɵelementStart(5, "div", 168)(6, "div", 169)(7, "span", 170);
1175
+ i0.ɵɵelementStart(5, "div", 173)(6, "div", 174)(7, "span", 175);
1142
1176
  i0.ɵɵtext(8, "Your edit");
1143
1177
  i0.ɵɵelementEnd();
1144
- i0.ɵɵelementStart(9, "span", 171);
1178
+ i0.ɵɵelementStart(9, "span", 176);
1145
1179
  i0.ɵɵtext(10);
1146
1180
  i0.ɵɵelementEnd()();
1147
- i0.ɵɵelementStart(11, "div", 172)(12, "span", 170);
1181
+ i0.ɵɵelementStart(11, "div", 177)(12, "span", 175);
1148
1182
  i0.ɵɵtext(13, "New value");
1149
1183
  i0.ɵɵelementEnd();
1150
- i0.ɵɵelementStart(14, "span", 171);
1184
+ i0.ɵɵelementStart(14, "span", 176);
1151
1185
  i0.ɵɵtext(15);
1152
1186
  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);
1187
+ i0.ɵɵelementStart(16, "div", 178)(17, "button", 179);
1188
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AcceptLocalConflictValue($event)); });
1189
+ i0.ɵɵelement(18, "i", 180);
1156
1190
  i0.ɵɵelementStart(19, "span");
1157
1191
  i0.ɵɵtext(20, "Keep mine");
1158
1192
  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);
1193
+ i0.ɵɵelementStart(21, "button", 181);
1194
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template_button_click_21_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AcceptRemoteConflictValue($event)); });
1195
+ i0.ɵɵelement(22, "i", 182);
1162
1196
  i0.ɵɵelementStart(23, "span");
1163
1197
  i0.ɵɵtext(24, "Use new value");
1164
1198
  i0.ɵɵelementEnd()()()();
@@ -1170,16 +1204,16 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Templat
1170
1204
  i0.ɵɵtextInterpolate(ctx_r0.FormatFieldValue(ctx_r0.ActiveConflict.incomingServerValue));
1171
1205
  } }
1172
1206
  function MjFormFieldComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 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);
1207
+ i0.ɵɵelementStart(0, "div", 51);
1208
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_Template, 4, 3, "div", 7);
1209
+ i0.ɵɵelementStart(2, "div", 8);
1176
1210
  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);
1211
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template, 8, 14, "div", 52)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template, 15, 6, "div", 53)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template, 3, 3, "div", 54)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template, 1, 1, "textarea", 55)(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template, 1, 2, "mj-code-editor", 56)(9, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template, 8, 1);
1178
1212
  i0.ɵɵelementEnd();
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);
1213
+ i0.ɵɵconditionalCreate(10, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template, 3, 0, "div", 57);
1214
+ i0.ɵɵconditionalCreate(11, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Template, 3, 0, "div", 58);
1215
+ i0.ɵɵconditionalCreate(12, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_12_Template, 5, 0, "div", 58);
1216
+ i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_13_Template, 25, 2, "div", 59);
1183
1217
  i0.ɵɵelementEnd();
1184
1218
  } if (rf & 2) {
1185
1219
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -1200,8 +1234,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if
1200
1234
  i0.ɵɵconditional(ctx_r0.ActiveConflict ? 13 : -1);
1201
1235
  } }
1202
1236
  function MjFormFieldComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
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);
1237
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_0_Template, 9, 13, "div", 4);
1238
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Template, 14, 19, "div", 5);
1205
1239
  } if (rf & 2) {
1206
1240
  const ctx_r0 = i0.ɵɵnextContext();
1207
1241
  i0.ɵɵconditional((!ctx_r0.EditMode || ctx_r0.IsFieldReadOnly) && !ctx_r0.ShouldHideField ? 0 : -1);
@@ -1209,16 +1243,16 @@ function MjFormFieldComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1209
1243
  i0.ɵɵconditional(ctx_r0.EditMode && !ctx_r0.IsFieldReadOnly ? 1 : -1);
1210
1244
  } }
1211
1245
  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);
1246
+ const _r59 = i0.ɵɵgetCurrentView();
1247
+ i0.ɵɵelementStart(0, "div", 188)(1, "div", 189);
1214
1248
  i0.ɵɵtext(2, "Original value");
1215
1249
  i0.ɵɵelementEnd();
1216
- i0.ɵɵelementStart(3, "div", 185);
1250
+ i0.ɵɵelementStart(3, "div", 190);
1217
1251
  i0.ɵɵtext(4);
1218
1252
  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);
1253
+ i0.ɵɵelementStart(5, "button", 191);
1254
+ i0.ɵɵlistener("click", function MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template_button_click_5_listener($event) { i0.ɵɵrestoreView(_r59); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.RestoreOriginalValue($event)); });
1255
+ i0.ɵɵelement(6, "i", 192);
1222
1256
  i0.ɵɵelementStart(7, "span");
1223
1257
  i0.ɵɵtext(8, "Restore");
1224
1258
  i0.ɵɵelementEnd()()();
@@ -1228,14 +1262,14 @@ function MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template
1228
1262
  i0.ɵɵtextInterpolate(ctx_r0.FormattedOriginalValue);
1229
1263
  } }
1230
1264
  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);
1265
+ const _r58 = i0.ɵɵgetCurrentView();
1266
+ i0.ɵɵelementStart(0, "div", 185);
1267
+ i0.ɵɵlistener("mouseenter", function MjFormFieldComponent_ng_template_1_Conditional_0_Template_div_mouseenter_0_listener() { i0.ɵɵrestoreView(_r58); 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(_r58); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.ShowOriginalValuePopover = false); });
1268
+ i0.ɵɵelementStart(1, "button", 186);
1269
+ i0.ɵɵlistener("click", function MjFormFieldComponent_ng_template_1_Conditional_0_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r58); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.ToggleOriginalValuePopover($event)); });
1270
+ i0.ɵɵelement(2, "i", 187);
1237
1271
  i0.ɵɵelementEnd();
1238
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template, 9, 1, "div", 183);
1272
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_ng_template_1_Conditional_0_Conditional_3_Template, 9, 1, "div", 188);
1239
1273
  i0.ɵɵelementEnd();
1240
1274
  } if (rf & 2) {
1241
1275
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -1245,12 +1279,12 @@ function MjFormFieldComponent_ng_template_1_Conditional_0_Template(rf, ctx) { if
1245
1279
  i0.ɵɵconditional(ctx_r0.ShowOriginalValuePopover ? 3 : -1);
1246
1280
  } }
1247
1281
  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);
1282
+ i0.ɵɵelementStart(0, "span", 184);
1283
+ i0.ɵɵelement(1, "i", 193);
1250
1284
  i0.ɵɵelementStart(2, "span");
1251
1285
  i0.ɵɵtext(3, "Updated live");
1252
1286
  i0.ɵɵelementEnd();
1253
- i0.ɵɵelementStart(4, "span", 189);
1287
+ i0.ɵɵelementStart(4, "span", 194);
1254
1288
  i0.ɵɵtext(5);
1255
1289
  i0.ɵɵelementEnd()();
1256
1290
  } if (rf & 2) {
@@ -1260,19 +1294,63 @@ function MjFormFieldComponent_ng_template_1_Conditional_1_Template(rf, ctx) { if
1260
1294
  i0.ɵɵtextInterpolate1("Previously: ", ctx_r0.FormattedAutoMergedPreviousValue);
1261
1295
  } }
1262
1296
  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);
1297
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_ng_template_1_Conditional_0_Template, 4, 2, "div", 183);
1298
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_ng_template_1_Conditional_1_Template, 6, 2, "span", 184);
1265
1299
  } if (rf & 2) {
1266
1300
  const ctx_r0 = i0.ɵɵnextContext();
1267
1301
  i0.ɵɵconditional(ctx_r0.EditMode && ctx_r0.IsFieldDirty && !ctx_r0.ActiveConflict ? 0 : -1);
1268
1302
  i0.ɵɵadvance();
1269
1303
  i0.ɵɵconditional(ctx_r0.EditMode && ctx_r0.AutoMergedPreviousValue !== undefined && !ctx_r0.ActiveConflict ? 1 : -1);
1270
1304
  } }
1305
+ function MjFormFieldComponent_ng_template_3_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1306
+ const _r60 = i0.ɵɵgetCurrentView();
1307
+ i0.ɵɵelementStart(0, "button", 197);
1308
+ i0.ɵɵlistener("click", function MjFormFieldComponent_ng_template_3_Conditional_0_Conditional_0_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r60); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnOpenFieldComments($event)); });
1309
+ i0.ɵɵelement(1, "i", 198);
1310
+ i0.ɵɵelementStart(2, "span");
1311
+ i0.ɵɵtext(3);
1312
+ i0.ɵɵelementEnd()();
1313
+ } if (rf & 2) {
1314
+ const ctx_r0 = i0.ɵɵnextContext(3);
1315
+ i0.ɵɵproperty("title", ctx_r0.FieldOpenCommentCount + (ctx_r0.FieldOpenCommentCount === 1 ? " open comment" : " open comments") + " on " + ctx_r0.DisplayName);
1316
+ i0.ɵɵattribute("aria-label", ctx_r0.FieldOpenCommentCount + (ctx_r0.FieldOpenCommentCount === 1 ? " open comment" : " open comments") + " on " + ctx_r0.DisplayName);
1317
+ i0.ɵɵadvance(3);
1318
+ i0.ɵɵtextInterpolate(ctx_r0.FieldOpenCommentCount);
1319
+ } }
1320
+ function MjFormFieldComponent_ng_template_3_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1321
+ const _r61 = i0.ɵɵgetCurrentView();
1322
+ i0.ɵɵelementStart(0, "button", 199);
1323
+ i0.ɵɵlistener("click", function MjFormFieldComponent_ng_template_3_Conditional_0_Conditional_1_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r61); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnOpenFieldComments($event)); });
1324
+ i0.ɵɵelement(1, "i", 198);
1325
+ i0.ɵɵelementEnd();
1326
+ } if (rf & 2) {
1327
+ const ctx_r0 = i0.ɵɵnextContext(3);
1328
+ i0.ɵɵproperty("title", "Comment on " + ctx_r0.DisplayName);
1329
+ i0.ɵɵattribute("aria-label", "Comment on " + ctx_r0.DisplayName);
1330
+ } }
1331
+ function MjFormFieldComponent_ng_template_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1332
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_ng_template_3_Conditional_0_Conditional_0_Template, 4, 3, "button", 195)(1, MjFormFieldComponent_ng_template_3_Conditional_0_Conditional_1_Template, 2, 2, "button", 196);
1333
+ } if (rf & 2) {
1334
+ const ctx_r0 = i0.ɵɵnextContext(2);
1335
+ i0.ɵɵconditional(ctx_r0.FieldOpenCommentCount > 0 ? 0 : 1);
1336
+ } }
1337
+ function MjFormFieldComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
1338
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_ng_template_3_Conditional_0_Template, 2, 1);
1339
+ } if (rf & 2) {
1340
+ const ctx_r0 = i0.ɵɵnextContext();
1341
+ i0.ɵɵconditional(ctx_r0.CanCommentOnField ? 0 : -1);
1342
+ } }
1271
1343
  /**
1272
1344
  * Rows a foreign-key lookup returns by default. Module scope because the `FKMaxRows` input's
1273
1345
  * initializer runs before the component's own statics are available.
1274
1346
  */
1275
1347
  const FK_DB_SEARCH_LIMIT = 20;
1348
+ /**
1349
+ * How long the dropdown waits on a lookup before it shows an error with Retry. A lookup normally
1350
+ * answers in well under a second; this bounds the wait when a request is never answered at all
1351
+ * (a gateway timeout, a dropped connection), which otherwise left the field on "Searching…".
1352
+ */
1353
+ const FK_SEARCH_TIMEOUT_MS = 20_000;
1276
1354
  /**
1277
1355
  * Modern form field component that renders entity fields in both read-only and edit modes.
1278
1356
  *
@@ -1332,6 +1410,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1332
1410
  fieldEdits = inject(FormFieldEditCoordinator, { optional: true });
1333
1411
  recordRefresh = inject(FormRecordRefreshCoordinator, { optional: true });
1334
1412
  previewPopoverService = inject(MjRecordPreviewPopoverService, { optional: true });
1413
+ commentsCoordinator = inject(FormRecordCommentsCoordinatorService, { optional: true });
1335
1414
  _coordinatorSubs = [];
1336
1415
  _remoteHighlightTimer = null;
1337
1416
  _lastPolymorphicEntityRef = undefined;
@@ -1443,6 +1522,55 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1443
1522
  this.cdr.markForCheck();
1444
1523
  }));
1445
1524
  }
1525
+ if (this.commentsCoordinator) {
1526
+ this._coordinatorSubs.push(this.commentsCoordinator.Changed$.subscribe(() => {
1527
+ this.sectionHost?.NotifyFieldChanged(this);
1528
+ this.cdr.markForCheck();
1529
+ }));
1530
+ }
1531
+ }
1532
+ /** Number of open (unresolved) anchored comment threads targeting this field. */
1533
+ get FieldOpenCommentCount() {
1534
+ return this.commentsCoordinator?.GetFieldOpenCommentCount(this.FieldName) ?? 0;
1535
+ }
1536
+ /** Whether inline field commenting is available on this field. */
1537
+ get CanCommentOnField() {
1538
+ return Boolean(this.commentsCoordinator &&
1539
+ this.Record?.IsSaved &&
1540
+ this.Record?.EntityInfo?.AllowRecordComments !== false &&
1541
+ this.IsFieldReadableByUser &&
1542
+ this.FieldName);
1543
+ }
1544
+ /** Opens the inline anchored comment popover (or drawer) targeted at this field. */
1545
+ OnOpenFieldComments(event) {
1546
+ event.stopPropagation();
1547
+ event.preventDefault();
1548
+ if (!this.commentsCoordinator || !this.FieldName)
1549
+ return;
1550
+ const btn = event.currentTarget;
1551
+ const rect = btn?.getBoundingClientRect();
1552
+ const hostPanel = this.sectionHost;
1553
+ // Never snapshot restricted (FLS) or encrypted field values into plain AnchorMetadata JSON
1554
+ const isProtectedField = Boolean(this.FieldInfo?.HasFieldPermissions || this.FieldInfo?.Encrypt);
1555
+ const formattedVal = isProtectedField ? '' : this.FormatValue();
1556
+ this.commentsCoordinator.OpenPopoverForTarget({
1557
+ AnchorType: 'Field',
1558
+ AnchorKey: this.FieldName,
1559
+ Label: this.DisplayName,
1560
+ QuotedValue: formattedVal && formattedVal.trim().length > 0 ? formattedVal : undefined,
1561
+ SectionKey: hostPanel?.SectionKey || undefined,
1562
+ SectionDisplayName: hostPanel?.SectionName || undefined,
1563
+ AnchorRect: rect
1564
+ ? {
1565
+ top: rect.top,
1566
+ left: rect.left,
1567
+ right: rect.right,
1568
+ bottom: rect.bottom,
1569
+ width: rect.width,
1570
+ height: rect.height
1571
+ }
1572
+ : undefined
1573
+ });
1446
1574
  }
1447
1575
  /** This component's host element — what a section uses to confirm the field is inside it. */
1448
1576
  get HostElement() {
@@ -2063,6 +2191,8 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2063
2191
  return true;
2064
2192
  if (this.HasTimeTravelDiff)
2065
2193
  return false;
2194
+ if (this.FieldOpenCommentCount > 0)
2195
+ return false;
2066
2196
  if (this.EditMode && !this.ActiveVersionPreview)
2067
2197
  return false;
2068
2198
  if (!this.HideWhenEmptyInReadOnlyMode)
@@ -2413,6 +2543,11 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2413
2543
  FKOrderBy = null;
2414
2544
  /** Rows requested from a lookup. */
2415
2545
  FKMaxRows = FK_DB_SEARCH_LIMIT;
2546
+ /**
2547
+ * Milliseconds a lookup may take before the dropdown shows an error with Retry. Zero or less
2548
+ * waits indefinitely.
2549
+ */
2550
+ FKSearchTimeoutMs = FK_SEARCH_TIMEOUT_MS;
2416
2551
  /**
2417
2552
  * Opaque options handed to the resolved {@link FKLookupStrategy} — e.g.
2418
2553
  * `{ ScopeField: 'BillToOrganizationID' }` to tell a person picker which organization's
@@ -2578,6 +2713,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2578
2713
  this.FKActiveIndex = -1;
2579
2714
  this.FKLoading = false;
2580
2715
  this.FKNoMatches = false;
2716
+ this.FKSearchError = null;
2581
2717
  this._portaledDropdownEl = null;
2582
2718
  this.ShowValueListDropdown = false;
2583
2719
  this.ShowSelectDropdown = false;
@@ -2646,6 +2782,12 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2646
2782
  FKLoading = false;
2647
2783
  /** True when a search completed with zero results (drives the "No matches" row). */
2648
2784
  FKNoMatches = false;
2785
+ /**
2786
+ * Set when the last lookup failed or timed out (drives the error row with Retry). Kept apart
2787
+ * from {@link FKNoMatches}: "No matches" tells the user the record does not exist, which a
2788
+ * failed request does not establish.
2789
+ */
2790
+ FKSearchError = null;
2649
2791
  /** Index of the keyboard-highlighted active suggestion (-1 = none). */
2650
2792
  FKActiveIndex = -1;
2651
2793
  /** Headers for the extra (DefaultInView) columns shown in the dropdown. */
@@ -3092,6 +3234,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3092
3234
  this.FKHasIconColumn = (this.FKSelectedSuggestion?.Icon != null) || suggestions.some(s => s.Icon != null);
3093
3235
  this.FKSuggestions = this.sortSuggestions(suggestions);
3094
3236
  this.FKActiveIndex = this.FKSuggestions.length > 0 ? 0 : -1;
3237
+ this.FKSearchError = null;
3095
3238
  this.FKNoMatches = suggestions.length === 0 && !this.FKSelectedSuggestion;
3096
3239
  // Show the dropdown for rows, a "no matches" state, or just the pinned selection.
3097
3240
  this.ShowFKDropdown = suggestions.length > 0 || this.FKNoMatches || !!this.FKSelectedSuggestion;
@@ -3708,6 +3851,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3708
3851
  this.ShowFKDropdown = false;
3709
3852
  this.FKLoading = false;
3710
3853
  this.FKNoMatches = false;
3854
+ this.FKSearchError = null;
3711
3855
  this.FKActiveIndex = -1;
3712
3856
  this.FKSelectedSuggestion = null;
3713
3857
  this._portaledDropdownEl = null;
@@ -3728,6 +3872,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3728
3872
  const seq = ++this._fkSearchSeq;
3729
3873
  this.FKLoading = true;
3730
3874
  this.FKNoMatches = false;
3875
+ this.FKSearchError = null;
3731
3876
  this.ShowFKDropdown = true;
3732
3877
  if (this._lastFKInputEl) {
3733
3878
  this.updateDropdownPosition(this._lastFKInputEl);
@@ -3740,35 +3885,17 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3740
3885
  this.FKLoading = false;
3741
3886
  return;
3742
3887
  }
3743
- const strategy = this.resolveStrategy();
3744
- // Everything from here to the results is third-party code: this seam exists so an app can
3745
- // supply its own lookup. A strategy that throws must not leave the field spinning forever on
3746
- // an unhandled rejection, so contain it, say so, and fall back to MJ's own rows.
3747
- let groups;
3748
- let recent;
3749
- try {
3750
- this.FKScopeLabels = strategy.ScopeLabels(context);
3751
- // Recent picks only make sense on the browse list; once the user types, what they typed is
3752
- // the better signal than what they picked last week.
3753
- [groups, recent] = await Promise.all([
3754
- strategy.Lookup(context),
3755
- query.trim() ? Promise.resolve([]) : this.loadRecentPicks(context),
3756
- ]);
3757
- }
3758
- catch (err) {
3759
- // Stale: a newer keystroke fired, or the panel was dismissed while this was in flight.
3760
- if (seq !== this._fkSearchSeq)
3761
- return;
3762
- LogError(`FK lookup strategy failed for ${this.Record?.EntityInfo?.Name ?? '?'}.${this.FieldName}: ` +
3763
- `${err instanceof Error ? err.message : String(err)}`);
3764
- [groups, recent] = [await this.fallbackLookup(context), []];
3765
- this.FKScopeLabels = null;
3766
- }
3888
+ const outcome = await this.runLookup(context, query, seq);
3767
3889
  // Stale: a newer keystroke fired, or the panel was dismissed while this was in flight. A
3768
3890
  // dismissed panel stays dismissed — this result must not reopen it.
3769
- if (seq !== this._fkSearchSeq)
3891
+ if (!outcome || seq !== this._fkSearchSeq)
3770
3892
  return;
3771
3893
  this.FKLoading = false;
3894
+ if ('Failure' in outcome) {
3895
+ this.showFKSearchFailure(outcome.Failure);
3896
+ return;
3897
+ }
3898
+ const { Groups: groups, Recent: recent } = outcome;
3772
3899
  // A recent pick the strategy also returned renders once, in the strategy's group.
3773
3900
  const pkOf = (r) => String(r.Values[plan.PkFieldName] ?? '').toLowerCase();
3774
3901
  const offered = new Set(groups.flatMap(g => g.Rows.map(pkOf)));
@@ -3782,17 +3909,72 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3782
3909
  this.applySuggestions(suggestions, plan);
3783
3910
  this.cdr.markForCheck();
3784
3911
  }
3912
+ /**
3913
+ * Run the resolved strategy under the field's timeout. Everything inside is third-party code:
3914
+ * the seam exists so an app can supply its own lookup. A registered strategy that throws falls
3915
+ * back to MJ's own rows; a timeout, or a failure of MJ's own lookup, becomes the error row.
3916
+ * Null when a newer lookup superseded this one before it failed.
3917
+ */
3918
+ async runLookup(context, query, seq) {
3919
+ const strategy = this.resolveStrategy();
3920
+ try {
3921
+ this.FKScopeLabels = strategy.ScopeLabels(context);
3922
+ // Recent picks only make sense on the browse list; once the user types, what they typed is
3923
+ // the better signal than what they picked last week.
3924
+ const [groups, recent] = await WithFKSearchTimeout(Promise.all([
3925
+ strategy.Lookup(context),
3926
+ query.trim() ? Promise.resolve([]) : this.loadRecentPicks(context),
3927
+ ]), this.FKSearchTimeoutMs);
3928
+ return { Groups: groups, Recent: recent };
3929
+ }
3930
+ catch (err) {
3931
+ if (seq !== this._fkSearchSeq)
3932
+ return null;
3933
+ LogError(`FK lookup failed for ${this.Record?.EntityInfo?.Name ?? '?'}.${this.FieldName}: ` +
3934
+ `${err instanceof Error ? err.message : String(err)}`);
3935
+ if (err instanceof FKSearchTimeoutError || !this.hasCustomStrategy()) {
3936
+ return { Failure: this.describeFKSearchFailure(err) };
3937
+ }
3938
+ this.FKScopeLabels = null;
3939
+ return this.fallbackLookup(context);
3940
+ }
3941
+ }
3942
+ /** The error row's text: a timeout says so, anything else is a plain failure. */
3943
+ describeFKSearchFailure(err) {
3944
+ return err instanceof FKSearchTimeoutError ? 'The search took too long.' : 'The search failed.';
3945
+ }
3946
+ /** Replace the dropdown's rows with the error row. The pinned current selection stays. */
3947
+ showFKSearchFailure(message) {
3948
+ this.FKSuggestions = [];
3949
+ this.FKGroups = [];
3950
+ this.FKNoMatches = false;
3951
+ this.FKActiveIndex = -1;
3952
+ this.FKSearchError = message;
3953
+ this.ShowFKDropdown = true;
3954
+ this.cdr.markForCheck();
3955
+ }
3956
+ /**
3957
+ * Re-run the query that failed. `mousedown` with `preventDefault`, like the clear button, so
3958
+ * the input keeps focus and the blur grace period never closes the panel under the click.
3959
+ */
3960
+ OnFKRetryClick(event) {
3961
+ event.preventDefault();
3962
+ event.stopPropagation();
3963
+ this.cancelPendingFKBlur();
3964
+ void this.searchRelatedEntity(this._fkQuery);
3965
+ }
3785
3966
  /**
3786
3967
  * MJ's own rows, used when a registered strategy threw. Contained in turn: if the default
3787
3968
  * cannot answer either, the dropdown shows "no matches" rather than propagating.
3788
3969
  */
3789
3970
  async fallbackLookup(context) {
3790
3971
  try {
3791
- return await new DefaultFKLookupStrategy().Lookup(context);
3972
+ const groups = await WithFKSearchTimeout(new DefaultFKLookupStrategy().Lookup(context), this.FKSearchTimeoutMs);
3973
+ return { Groups: groups, Recent: [] };
3792
3974
  }
3793
3975
  catch (err) {
3794
3976
  LogError(`Default FK lookup also failed for ${this.FieldName}: ${err instanceof Error ? err.message : String(err)}`);
3795
- return [];
3977
+ return { Failure: this.describeFKSearchFailure(err) };
3796
3978
  }
3797
3979
  }
3798
3980
  /**
@@ -4142,6 +4324,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
4142
4324
  this.FKActiveIndex = -1;
4143
4325
  this.FKLoading = false;
4144
4326
  this.FKNoMatches = false;
4327
+ this.FKSearchError = null;
4145
4328
  this.FKColumnHeaders = [];
4146
4329
  this.FKColumnFields = [];
4147
4330
  this.FKSortField = null;
@@ -4554,16 +4737,16 @@ export class MjFormFieldComponent extends BaseAngularComponent {
4554
4737
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormFieldComponent, selectors: [["mj-form-field"]], hostVars: 8, hostBindings: function MjFormFieldComponent_HostBindings(rf, ctx) { if (rf & 2) {
4555
4738
  i0.ɵɵattribute("data-field-name", ctx.HostFieldName)("data-field-label", ctx.HostFieldLabel);
4556
4739
  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) {
4740
+ } }, 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", FKSearchTimeoutMs: "FKSearchTimeoutMs", FKLookupOptions: "FKLookupOptions" }, outputs: { ValueChange: "ValueChange", Navigate: "Navigate" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 5, vars: 1, consts: [["fieldEditIndicatorsTpl", ""], ["fieldCommentsBadgeTpl", ""], ["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"], [4, "ngTemplateOutlet"], ["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"], [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"], ["role", "alert", 1, "mj-fk-status", "mj-fk-status--error"], [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-triangle-exclamation"], [1, "mj-fk-status-text"], ["type", "button", 1, "mj-fk-retry", 3, "mousedown"], [1, "fa-solid", "fa-rotate-right"], [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, "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"], ["type", "button", 1, "mj-forms-field__comment-pill", 3, "title"], ["type", "button", 1, "mj-forms-field__comment-trigger", 3, "title"], ["type", "button", 1, "mj-forms-field__comment-pill", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-regular", "fa-comment-dots"], ["type", "button", 1, "mj-forms-field__comment-trigger", 3, "click", "title"]], template: function MjFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
4558
4741
  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);
4742
+ i0.ɵɵtemplate(1, MjFormFieldComponent_ng_template_1_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, MjFormFieldComponent_ng_template_3_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
4560
4743
  } if (rf & 2) {
4561
4744
  i0.ɵɵconditional(!ctx.IsClaimedByContribution && !ctx.IsFieldDeprecatedOrDisabled && ctx.IsFieldReadableByUser && ctx.Record && (ctx.Record.IsSaved || !ctx.IsFieldReadOnly) && !ctx.ShouldHideField ? 0 : -1);
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 });
4745
+ } }, 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.mj-fk-status--error[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n.mj-fk-status-text[_ngcontent-%COMP%] {\n flex: 1;\n}\n\n.mj-fk-retry[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-primary);\n font: inherit;\n cursor: pointer;\n}\n\n.mj-fk-retry[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\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}\n\n\n\n\n.mj-forms-field__comment-pill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n border-radius: var(--mj-radius-full, 9999px);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, transparent);\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 11px;\n font-weight: 600;\n cursor: pointer;\n line-height: 1.3;\n transition: background-color 120ms ease, border-color 120ms ease;\n}\n\n.mj-forms-field__comment-pill[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 20%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-field__comment-trigger[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border: none;\n border-radius: var(--mj-radius-sm, 5px);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: 12px;\n cursor: pointer;\n opacity: 0;\n transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease;\n}\n\n.mj-forms-field[_ngcontent-%COMP%]:hover .mj-forms-field__comment-trigger[_ngcontent-%COMP%], \n.mj-forms-field[_ngcontent-%COMP%]:focus-within .mj-forms-field__comment-trigger[_ngcontent-%COMP%], \n.mj-forms-field__comment-trigger[_ngcontent-%COMP%]:focus-visible {\n opacity: 1;\n}\n\n.mj-forms-field__comment-trigger[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}"], changeDetection: 0 });
4563
4746
  }
4564
4747
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjFormFieldComponent, [{
4565
4748
  type: Component,
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"] }]
4749
+ 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 <ng-container *ngTemplateOutlet=\"fieldCommentsBadgeTpl\"></ng-container>\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=\"fieldCommentsBadgeTpl\"></ng-container>\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 && FKSearchError) {\n <div class=\"mj-fk-status mj-fk-status--error\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span class=\"mj-fk-status-text\">{{ FKSearchError }}</span>\n <button type=\"button\" class=\"mj-fk-retry\" (mousedown)=\"OnFKRetryClick($event)\">\n <i class=\"fa-solid fa-rotate-right\"></i>\n Retry\n </button>\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\n<!-- Shared template for field-level anchored comments pill / hover trigger -->\n<ng-template #fieldCommentsBadgeTpl>\n @if (CanCommentOnField) {\n @if (FieldOpenCommentCount > 0) {\n <button\n type=\"button\"\n class=\"mj-forms-field__comment-pill\"\n [title]=\"FieldOpenCommentCount + (FieldOpenCommentCount === 1 ? ' open comment' : ' open comments') + ' on ' + DisplayName\"\n [attr.aria-label]=\"FieldOpenCommentCount + (FieldOpenCommentCount === 1 ? ' open comment' : ' open comments') + ' on ' + DisplayName\"\n (click)=\"OnOpenFieldComments($event)\">\n <i class=\"fa-regular fa-comment-dots\" aria-hidden=\"true\"></i>\n <span>{{ FieldOpenCommentCount }}</span>\n </button>\n } @else {\n <button\n type=\"button\"\n class=\"mj-forms-field__comment-trigger\"\n [title]=\"'Comment on ' + DisplayName\"\n [attr.aria-label]=\"'Comment on ' + DisplayName\"\n (click)=\"OnOpenFieldComments($event)\">\n <i class=\"fa-regular fa-comment-dots\" aria-hidden=\"true\"></i>\n </button>\n }\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.mj-fk-status--error {\n color: var(--mj-status-error);\n}\n\n.mj-fk-status-text {\n flex: 1;\n}\n\n.mj-fk-retry {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-primary);\n font: inherit;\n cursor: pointer;\n}\n\n.mj-fk-retry:hover {\n background: var(--mj-bg-surface-hover);\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 FIELD-LEVEL ANCHORED COMMENTS\n ============================================ */\n.mj-forms-field__comment-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 7px;\n border-radius: var(--mj-radius-full, 9999px);\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, transparent);\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 11px;\n font-weight: 600;\n cursor: pointer;\n line-height: 1.3;\n transition: background-color 120ms ease, border-color 120ms ease;\n}\n\n.mj-forms-field__comment-pill:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 20%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-field__comment-trigger {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n border: none;\n border-radius: var(--mj-radius-sm, 5px);\n background: transparent;\n color: var(--mj-text-muted);\n font-size: 12px;\n cursor: pointer;\n opacity: 0;\n transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease;\n}\n\n.mj-forms-field:hover .mj-forms-field__comment-trigger,\n.mj-forms-field:focus-within .mj-forms-field__comment-trigger,\n.mj-forms-field__comment-trigger:focus-visible {\n opacity: 1;\n}\n\n.mj-forms-field__comment-trigger:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}\n\n\n\n"] }]
4567
4750
  }], () => [], { HostFieldName: [{
4568
4751
  type: HostBinding,
4569
4752
  args: ['attr.data-field-name']
@@ -4623,8 +4806,10 @@ export class MjFormFieldComponent extends BaseAngularComponent {
4623
4806
  type: Input
4624
4807
  }], FKMaxRows: [{
4625
4808
  type: Input
4809
+ }], FKSearchTimeoutMs: [{
4810
+ type: Input
4626
4811
  }], FKLookupOptions: [{
4627
4812
  type: Input
4628
4813
  }] }); })();
4629
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormFieldComponent, { className: "MjFormFieldComponent", filePath: "src/lib/field/form-field.component.ts", lineNumber: 188 }); })();
4814
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormFieldComponent, { className: "MjFormFieldComponent", filePath: "src/lib/field/form-field.component.ts", lineNumber: 199 }); })();
4630
4815
  //# sourceMappingURL=form-field.component.js.map