@memberjunction/ng-base-forms 6.1.4 → 6.2.0-edge.1

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 (103) hide show
  1. package/dist/lib/base-form-component.d.ts.map +1 -1
  2. package/dist/lib/base-form-component.js +43 -40
  3. package/dist/lib/base-form-component.js.map +1 -1
  4. package/dist/lib/base-form-section-info.js +5 -5
  5. package/dist/lib/base-form-section-info.js.map +1 -1
  6. package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
  7. package/dist/lib/chrome/resolve-form-chrome.js +22 -12
  8. package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
  9. package/dist/lib/container/record-form-container.component.d.ts +24 -13
  10. package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
  11. package/dist/lib/container/record-form-container.component.js +233 -182
  12. package/dist/lib/container/record-form-container.component.js.map +1 -1
  13. package/dist/lib/explorer-entity-data-grid.component.d.ts +32 -2
  14. package/dist/lib/explorer-entity-data-grid.component.d.ts.map +1 -1
  15. package/dist/lib/explorer-entity-data-grid.component.js +54 -13
  16. package/dist/lib/explorer-entity-data-grid.component.js.map +1 -1
  17. package/dist/lib/field/default-fk-lookup-strategy.d.ts +60 -0
  18. package/dist/lib/field/default-fk-lookup-strategy.d.ts.map +1 -0
  19. package/dist/lib/field/default-fk-lookup-strategy.js +173 -0
  20. package/dist/lib/field/default-fk-lookup-strategy.js.map +1 -0
  21. package/dist/lib/field/fk-lookup-strategy.d.ts +124 -0
  22. package/dist/lib/field/fk-lookup-strategy.d.ts.map +1 -0
  23. package/dist/lib/field/fk-lookup-strategy.js +97 -0
  24. package/dist/lib/field/fk-lookup-strategy.js.map +1 -0
  25. package/dist/lib/field/fk-search-utils.d.ts +33 -2
  26. package/dist/lib/field/fk-search-utils.d.ts.map +1 -1
  27. package/dist/lib/field/fk-search-utils.js +56 -3
  28. package/dist/lib/field/fk-search-utils.js.map +1 -1
  29. package/dist/lib/field/form-field.component.d.ts +166 -11
  30. package/dist/lib/field/form-field.component.d.ts.map +1 -1
  31. package/dist/lib/field/form-field.component.js +742 -338
  32. package/dist/lib/field/form-field.component.js.map +1 -1
  33. package/dist/lib/field/linked-field-options.d.ts +16 -0
  34. package/dist/lib/field/linked-field-options.d.ts.map +1 -1
  35. package/dist/lib/field/linked-field-options.js +17 -0
  36. package/dist/lib/field/linked-field-options.js.map +1 -1
  37. package/dist/lib/form-state.service.d.ts +58 -0
  38. package/dist/lib/form-state.service.d.ts.map +1 -1
  39. package/dist/lib/form-state.service.js +156 -40
  40. package/dist/lib/form-state.service.js.map +1 -1
  41. package/dist/lib/host/entity-form-host.component.d.ts +10 -2
  42. package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
  43. package/dist/lib/host/entity-form-host.component.js +24 -8
  44. package/dist/lib/host/entity-form-host.component.js.map +1 -1
  45. package/dist/lib/interactive-form/interactive-form.component.d.ts +16 -4
  46. package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
  47. package/dist/lib/interactive-form/interactive-form.component.js +38 -12
  48. package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
  49. package/dist/lib/isa-related-panel/isa-related-card.component.d.ts +3 -3
  50. package/dist/lib/isa-related-panel/isa-related-card.component.d.ts.map +1 -1
  51. package/dist/lib/isa-related-panel/isa-related-card.component.js +12 -8
  52. package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
  53. package/dist/lib/isa-related-panel/isa-related-panel.component.d.ts +3 -3
  54. package/dist/lib/isa-related-panel/isa-related-panel.component.d.ts.map +1 -1
  55. package/dist/lib/isa-related-panel/isa-related-panel.component.js +24 -7
  56. package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
  57. package/dist/lib/overlays/form-slide-in.component.d.ts +2 -0
  58. package/dist/lib/overlays/form-slide-in.component.d.ts.map +1 -1
  59. package/dist/lib/overlays/form-slide-in.component.js +5 -1
  60. package/dist/lib/overlays/form-slide-in.component.js.map +1 -1
  61. package/dist/lib/panel/collapsible-panel.component.d.ts +72 -9
  62. package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
  63. package/dist/lib/panel/collapsible-panel.component.js +185 -43
  64. package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
  65. package/dist/lib/panel-slot/base-form-panel.d.ts +2 -0
  66. package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
  67. package/dist/lib/panel-slot/base-form-panel.js +5 -1
  68. package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
  69. package/dist/lib/panel-slot/form-contribution.d.ts +12 -0
  70. package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
  71. package/dist/lib/panel-slot/form-contribution.js +43 -10
  72. package/dist/lib/panel-slot/form-contribution.js.map +1 -1
  73. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +10 -0
  74. package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
  75. package/dist/lib/panel-slot/form-slot-coordinator.service.js +25 -5
  76. package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
  77. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
  78. package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
  79. package/dist/lib/panel-slot/related-entity-grid-panel.component.js +5 -1
  80. package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
  81. package/dist/lib/section-indicators/form-section-field-host.d.ts +53 -0
  82. package/dist/lib/section-indicators/form-section-field-host.d.ts.map +1 -0
  83. package/dist/lib/section-indicators/form-section-field-host.js +23 -0
  84. package/dist/lib/section-indicators/form-section-field-host.js.map +1 -0
  85. package/dist/lib/section-loader-component.d.ts +5 -1
  86. package/dist/lib/section-loader-component.d.ts.map +1 -1
  87. package/dist/lib/section-loader-component.js +13 -5
  88. package/dist/lib/section-loader-component.js.map +1 -1
  89. package/dist/lib/section-manager/section-manager.component.d.ts +2 -2
  90. package/dist/lib/section-manager/section-manager.component.js +6 -6
  91. package/dist/lib/section-manager/section-manager.component.js.map +1 -1
  92. package/dist/lib/toolbar/form-toolbar.component.d.ts +5 -5
  93. package/dist/lib/toolbar/form-toolbar.component.js +22 -22
  94. package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
  95. package/dist/lib/types/form-types.d.ts +2 -0
  96. package/dist/lib/types/form-types.d.ts.map +1 -1
  97. package/dist/lib/types/form-types.js +5 -1
  98. package/dist/lib/types/form-types.js.map +1 -1
  99. package/dist/public-api.d.ts +3 -0
  100. package/dist/public-api.d.ts.map +1 -1
  101. package/dist/public-api.js +3 -0
  102. package/dist/public-api.js.map +1 -1
  103. package/package.json +18 -18
@@ -1,19 +1,25 @@
1
1
  import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject, ElementRef, Renderer2 } from '@angular/core';
2
2
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
3
- import { EntityFieldTSType, CompositeKey, KeyValuePair, RunView, CoerceImageSrc, IsInlineImageDataUri, CoerceRawImageBase64ToDataUri, MaxStoredImageChars, MaxInlineImageBytes, FormatByteSize, ParseCssHexColor, PrettyPrintJson } from '@memberjunction/core';
3
+ import { EntityFieldTSType, CompositeKey, KeyValuePair, RunView, LogError, CoerceImageSrc, IsInlineImageDataUri, CoerceRawImageBase64ToDataUri, MaxStoredImageChars, MaxInlineImageBytes, FormatByteSize, ParseCssHexColor, PrettyPrintJson, IsDateOnlySQLType, FormatDateOnly } from '@memberjunction/core';
4
4
  import { BaseEngineRegistry } from '@memberjunction/core';
5
5
  import { ValidationErrorInfo, HighlightSearchMatches, detectRichTextFormat, UUIDsEqual } from '@memberjunction/global';
6
- import { FormatFKCell, FilterCachedFKRows } from './fk-search-utils';
6
+ import { FORM_SECTION_FIELD_HOST, SectionRelevantFormContextChanged } from '../section-indicators/form-section-field-host';
7
+ import { FormatFKCell, FilterCachedFKRows, QuoteSqlIdList } from './fk-search-utils';
7
8
  import { LinkedFieldOptionsStore } from './linked-field-options';
9
+ import { ResolveFKLookupStrategy, } from './fk-lookup-strategy';
10
+ import { CombineFilters, DefaultFKLookupStrategy } from './default-fk-lookup-strategy';
8
11
  import * as i0 from "@angular/core";
9
12
  import * as i1 from "@angular/common";
10
13
  import * as i2 from "@memberjunction/ng-markdown";
11
14
  import * as i3 from "@memberjunction/ng-code-editor";
12
15
  import * as i4 from "@memberjunction/ng-shared-generic";
13
16
  const _c0 = a0 => ({ $implicit: a0 });
17
+ const _c1 = () => [];
14
18
  const _forTrack0 = ($index, $item) => $item.FieldName;
15
- const _forTrack1 = ($index, $item) => $item.PrimaryKeyValue;
16
- const _forTrack2 = ($index, $item) => $item.Message;
19
+ const _forTrack1 = ($index, $item) => $item.Key;
20
+ const _forTrack2 = ($index, $item) => $item.PrimaryKeyValue;
21
+ const _forTrack3 = ($index, $item) => $item.Text;
22
+ const _forTrack4 = ($index, $item) => $item.Message;
17
23
  function MjFormFieldComponent_Conditional_0_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
18
24
  i0.ɵɵelement(0, "label", 5);
19
25
  } if (rf & 2) {
@@ -257,13 +263,13 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
257
263
  } }
258
264
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
259
265
  const _r8 = i0.ɵɵgetCurrentView();
260
- i0.ɵɵelementStart(0, "button", 47);
266
+ i0.ɵɵelementStart(0, "button", 48);
261
267
  i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_3_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeToggle($event)); });
262
- i0.ɵɵelement(1, "i", 48);
263
- i0.ɵɵelementStart(2, "span", 49);
268
+ i0.ɵɵelement(1, "i", 49);
269
+ i0.ɵɵelementStart(2, "span", 50);
264
270
  i0.ɵɵtext(3);
265
271
  i0.ɵɵelementEnd();
266
- i0.ɵɵelement(4, "i", 50);
272
+ i0.ɵɵelement(4, "i", 51);
267
273
  i0.ɵɵelementEnd();
268
274
  } if (rf & 2) {
269
275
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -276,65 +282,77 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
276
282
  } }
277
283
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
278
284
  const _r9 = i0.ɵɵgetCurrentView();
279
- i0.ɵɵelementStart(0, "button", 51);
280
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
281
- i0.ɵɵelement(1, "i", 52);
285
+ i0.ɵɵelementStart(0, "button", 52);
286
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKScopeChange($event)); });
287
+ i0.ɵɵtext(1);
282
288
  i0.ɵɵelementEnd();
289
+ } if (rf & 2) {
290
+ const ctx_r0 = i0.ɵɵnextContext(4);
291
+ i0.ɵɵproperty("title", "Showing " + (ctx_r0.FKScope === "primary" ? ctx_r0.FKScopeLabels.primary : ctx_r0.FKScopeLabels.all) + " \u2014 click to switch");
292
+ i0.ɵɵadvance();
293
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.FKScope === "primary" ? ctx_r0.FKScopeLabels.all : ctx_r0.FKScopeLabels.primary, " ");
283
294
  } }
284
295
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
285
- i0.ɵɵelement(0, "i", 45);
296
+ const _r10 = i0.ɵɵgetCurrentView();
297
+ i0.ɵɵelementStart(0, "button", 53);
298
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
299
+ i0.ɵɵelement(1, "i", 54);
300
+ i0.ɵɵelementEnd();
286
301
  } }
287
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
302
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Template(rf, ctx) { if (rf & 1) {
303
+ i0.ɵɵelement(0, "i", 46);
304
+ } }
305
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
288
306
  i0.ɵɵelementContainer(0);
289
307
  } }
290
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
291
- i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 62);
308
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
309
+ i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 64);
292
310
  } if (rf & 2) {
293
- const f_r10 = i0.ɵɵnextContext().$implicit;
311
+ const f_r11 = i0.ɵɵnextContext().$implicit;
294
312
  i0.ɵɵnextContext(2);
295
- const scopeRow_r11 = i0.ɵɵreference(3);
296
- i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r11)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r10));
313
+ const scopeRow_r12 = i0.ɵɵreference(3);
314
+ i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r12)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r11));
297
315
  } }
298
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
299
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_For_4_Conditional_0_Template, 1, 4, "ng-container");
316
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
317
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Conditional_0_Template, 1, 4, "ng-container");
300
318
  } if (rf & 2) {
301
- const f_r10 = ctx.$implicit;
302
- i0.ɵɵconditional(f_r10.Group === "shown" ? 0 : -1);
319
+ const f_r11 = ctx.$implicit;
320
+ i0.ɵɵconditional(f_r11.Group === "shown" ? 0 : -1);
303
321
  } }
304
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
322
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
305
323
  i0.ɵɵelementContainer(0);
306
324
  } }
307
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
308
- i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 62);
325
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
326
+ i0.ɵɵtemplate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 64);
309
327
  } if (rf & 2) {
310
- const f_r12 = i0.ɵɵnextContext().$implicit;
328
+ const f_r13 = i0.ɵɵnextContext().$implicit;
311
329
  i0.ɵɵnextContext(3);
312
- const scopeRow_r11 = i0.ɵɵreference(3);
313
- i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r11)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r12));
330
+ const scopeRow_r12 = i0.ɵɵreference(3);
331
+ i0.ɵɵproperty("ngTemplateOutlet", scopeRow_r12)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0, f_r13));
314
332
  } }
315
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
316
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_For_4_Conditional_0_Template, 1, 4, "ng-container");
333
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
334
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Conditional_0_Template, 1, 4, "ng-container");
317
335
  } if (rf & 2) {
318
- const f_r12 = ctx.$implicit;
319
- i0.ɵɵconditional(f_r12.Group === "other" ? 0 : -1);
336
+ const f_r13 = ctx.$implicit;
337
+ i0.ɵɵconditional(f_r13.Group === "other" ? 0 : -1);
320
338
  } }
321
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
322
- i0.ɵɵelement(0, "div", 63);
323
- i0.ɵɵelementStart(1, "div", 61);
339
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
340
+ i0.ɵɵelement(0, "div", 65);
341
+ i0.ɵɵelementStart(1, "div", 63);
324
342
  i0.ɵɵtext(2, "Other fields");
325
343
  i0.ɵɵelementEnd();
326
- i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_For_4_Template, 1, 1, null, null, _forTrack0);
344
+ i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_For_4_Template, 1, 1, null, null, _forTrack0);
327
345
  } if (rf & 2) {
328
346
  const ctx_r0 = i0.ɵɵnextContext(6);
329
347
  i0.ɵɵadvance(3);
330
348
  i0.ɵɵrepeater(ctx_r0.FKSearchableFields);
331
349
  } }
332
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
333
- i0.ɵɵelementStart(0, "div", 60)(1, "div", 61);
350
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
351
+ i0.ɵɵelementStart(0, "div", 62)(1, "div", 63);
334
352
  i0.ɵɵtext(2, "Columns shown");
335
353
  i0.ɵɵelementEnd();
336
- i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_For_4_Template, 1, 1, null, null, _forTrack0);
337
- i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Conditional_5_Template, 5, 0);
354
+ i0.ɵɵrepeaterCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_For_4_Template, 1, 1, null, null, _forTrack0);
355
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Conditional_5_Template, 5, 0);
338
356
  i0.ɵɵelementEnd();
339
357
  } if (rf & 2) {
340
358
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -344,72 +362,72 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
344
362
  i0.ɵɵadvance(2);
345
363
  i0.ɵɵconditional(ctx_r0.FKHasOtherSearchableFields ? 5 : -1);
346
364
  } }
347
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
348
- const _r15 = i0.ɵɵgetCurrentView();
349
- i0.ɵɵelementStart(0, "button", 69);
350
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_2_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r15); const f_r14 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r14.FieldName, -1)); });
351
- i0.ɵɵelement(1, "i", 70);
365
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
366
+ const _r16 = i0.ɵɵgetCurrentView();
367
+ i0.ɵɵelementStart(0, "button", 71);
368
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r16); const f_r15 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r15.FieldName, -1)); });
369
+ i0.ɵɵelement(1, "i", 72);
352
370
  i0.ɵɵelementEnd();
353
- i0.ɵɵelementStart(2, "button", 71);
354
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_2_Template_button_mousedown_2_listener($event) { i0.ɵɵrestoreView(_r15); const f_r14 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r14.FieldName, 1)); });
355
- i0.ɵɵelement(3, "i", 72);
371
+ i0.ɵɵelementStart(2, "button", 73);
372
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template_button_mousedown_2_listener($event) { i0.ɵɵrestoreView(_r16); const f_r15 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.MoveFKColumn($event, f_r15.FieldName, 1)); });
373
+ i0.ɵɵelement(3, "i", 74);
356
374
  i0.ɵɵelementEnd();
357
375
  } if (rf & 2) {
358
- const f_r14 = i0.ɵɵnextContext().$implicit;
376
+ const f_r15 = i0.ɵɵnextContext().$implicit;
359
377
  const ctx_r0 = i0.ɵɵnextContext(5);
360
- i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnUp(f_r14.FieldName));
378
+ i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnUp(f_r15.FieldName));
361
379
  i0.ɵɵadvance(2);
362
- i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnDown(f_r14.FieldName));
380
+ i0.ɵɵproperty("disabled", !ctx_r0.CanMoveFKColumnDown(f_r15.FieldName));
363
381
  } }
364
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
365
- const _r16 = i0.ɵɵgetCurrentView();
366
- i0.ɵɵelementStart(0, "button", 73);
367
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_7_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r16); const f_r14 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKColumnToggle($event, f_r14)); });
368
- i0.ɵɵelement(1, "i", 74);
382
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
383
+ const _r17 = i0.ɵɵgetCurrentView();
384
+ i0.ɵɵelementStart(0, "button", 75);
385
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_7_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r17); const f_r15 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKColumnToggle($event, f_r15)); });
386
+ i0.ɵɵelement(1, "i", 76);
369
387
  i0.ɵɵelementEnd();
370
388
  } if (rf & 2) {
371
- const f_r14 = i0.ɵɵnextContext().$implicit;
389
+ const f_r15 = i0.ɵɵnextContext().$implicit;
372
390
  const ctx_r0 = i0.ɵɵnextContext(5);
373
- i0.ɵɵclassProp("mj-fk-col-toggle--on", ctx_r0.IsFKColumnVisible(f_r14));
374
- i0.ɵɵproperty("title", ctx_r0.IsFKColumnVisible(f_r14) ? "Hide this column" : "Show as a column");
391
+ i0.ɵɵclassProp("mj-fk-col-toggle--on", ctx_r0.IsFKColumnVisible(f_r15));
392
+ i0.ɵɵproperty("title", ctx_r0.IsFKColumnVisible(f_r15) ? "Hide this column" : "Show as a column");
375
393
  i0.ɵɵadvance();
376
- i0.ɵɵclassProp("fa-eye", ctx_r0.IsFKColumnVisible(f_r14))("fa-eye-slash", !ctx_r0.IsFKColumnVisible(f_r14));
377
- } }
378
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Template(rf, ctx) { if (rf & 1) {
379
- const _r13 = i0.ɵɵgetCurrentView();
380
- i0.ɵɵelementStart(0, "div", 64);
381
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Template_div_mousedown_0_listener($event) { const f_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKScopeSelect($event, f_r14)); });
382
- i0.ɵɵelementStart(1, "span", 65);
383
- i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_2_Template, 4, 2);
394
+ i0.ɵɵclassProp("fa-eye", ctx_r0.IsFKColumnVisible(f_r15))("fa-eye-slash", !ctx_r0.IsFKColumnVisible(f_r15));
395
+ } }
396
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Template(rf, ctx) { if (rf & 1) {
397
+ const _r14 = i0.ɵɵgetCurrentView();
398
+ i0.ɵɵelementStart(0, "div", 66);
399
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Template_div_mousedown_0_listener($event) { const f_r15 = i0.ɵɵrestoreView(_r14).$implicit; const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKScopeSelect($event, f_r15)); });
400
+ i0.ɵɵelementStart(1, "span", 67);
401
+ i0.ɵɵconditionalCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_2_Template, 4, 2);
384
402
  i0.ɵɵelementEnd();
385
403
  i0.ɵɵelement(3, "i");
386
- i0.ɵɵelementStart(4, "span", 66);
404
+ i0.ɵɵelementStart(4, "span", 68);
387
405
  i0.ɵɵtext(5);
388
406
  i0.ɵɵelementEnd();
389
- i0.ɵɵelementStart(6, "span", 67);
390
- i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Conditional_7_Template, 2, 7, "button", 68);
407
+ i0.ɵɵelementStart(6, "span", 69);
408
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Conditional_7_Template, 2, 7, "button", 70);
391
409
  i0.ɵɵelementEnd()();
392
410
  } if (rf & 2) {
393
- const f_r14 = ctx.$implicit;
411
+ const f_r15 = ctx.$implicit;
394
412
  const ctx_r0 = i0.ɵɵnextContext(5);
395
- i0.ɵɵclassProp("mj-fk-scope-mi--on", ctx_r0.IsFKScopeActive(f_r14));
413
+ i0.ɵɵclassProp("mj-fk-scope-mi--on", ctx_r0.IsFKScopeActive(f_r15));
396
414
  i0.ɵɵadvance(2);
397
- i0.ɵɵconditional(f_r14.Group === "shown" ? 2 : -1);
415
+ i0.ɵɵconditional(f_r15.Group === "shown" ? 2 : -1);
398
416
  i0.ɵɵadvance();
399
- i0.ɵɵclassMap(f_r14.Icon + " mj-fk-scope-mi-icon");
417
+ i0.ɵɵclassMap(f_r15.Icon + " mj-fk-scope-mi-icon");
400
418
  i0.ɵɵadvance(2);
401
- i0.ɵɵtextInterpolate(f_r14.Label);
419
+ i0.ɵɵtextInterpolate(f_r15.Label);
402
420
  i0.ɵɵadvance(2);
403
- i0.ɵɵconditional(ctx_r0.CanToggleFKColumn(f_r14) ? 7 : -1);
421
+ i0.ɵɵconditional(ctx_r0.CanToggleFKColumn(f_r15) ? 7 : -1);
404
422
  } }
405
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
406
- i0.ɵɵelement(0, "i", 82);
423
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
424
+ i0.ɵɵelement(0, "i", 84);
407
425
  } if (rf & 2) {
408
426
  const ctx_r0 = i0.ɵɵnextContext(6);
409
427
  i0.ɵɵclassMap(ctx_r0.FKSelectedSuggestion.Icon);
410
428
  } }
411
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Conditional_8_Template(rf, ctx) { if (rf & 1) {
412
- i0.ɵɵelementStart(0, "span", 80);
429
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_8_Template(rf, ctx) { if (rf & 1) {
430
+ i0.ɵɵelementStart(0, "span", 82);
413
431
  i0.ɵɵtext(1);
414
432
  i0.ɵɵelementEnd();
415
433
  } if (rf & 2) {
@@ -417,21 +435,21 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
417
435
  i0.ɵɵadvance();
418
436
  i0.ɵɵtextInterpolate(ctx_r0.FKSelectedSuggestion.ExtraColumns[0].Value);
419
437
  } }
420
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Template(rf, ctx) { if (rf & 1) {
421
- const _r17 = i0.ɵɵgetCurrentView();
422
- i0.ɵɵelementStart(0, "div", 55)(1, "div", 75);
423
- i0.ɵɵelement(2, "i", 76);
438
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
439
+ const _r18 = i0.ɵɵgetCurrentView();
440
+ i0.ɵɵelementStart(0, "div", 57)(1, "div", 77);
441
+ i0.ɵɵelement(2, "i", 78);
424
442
  i0.ɵɵelementStart(3, "span");
425
443
  i0.ɵɵtext(4, "Currently selected");
426
444
  i0.ɵɵelementEnd()();
427
- i0.ɵɵelementStart(5, "div", 77);
428
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Template_div_mousedown_5_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(ctx_r0.FKSelectedSuggestion, $event)); });
429
- i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Conditional_6_Template, 1, 2, "i", 78);
430
- i0.ɵɵelement(7, "span", 79);
431
- i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Conditional_8_Template, 2, 1, "span", 80);
432
- i0.ɵɵelementStart(9, "button", 81);
433
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Template_button_mousedown_9_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
434
- i0.ɵɵelement(10, "i", 52);
445
+ i0.ɵɵelementStart(5, "div", 79);
446
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template_div_mousedown_5_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(ctx_r0.FKSelectedSuggestion, $event)); });
447
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_6_Template, 1, 2, "i", 80);
448
+ i0.ɵɵelement(7, "span", 81);
449
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Conditional_8_Template, 2, 1, "span", 82);
450
+ i0.ɵɵelementStart(9, "button", 83);
451
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template_button_mousedown_9_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKClearClick($event)); });
452
+ i0.ɵɵelement(10, "i", 54);
435
453
  i0.ɵɵelementEnd()()();
436
454
  } if (rf & 2) {
437
455
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -442,128 +460,174 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
442
460
  i0.ɵɵadvance();
443
461
  i0.ɵɵconditional(ctx_r0.FKSelectedSuggestion.ExtraColumns.length && ctx_r0.FKSelectedSuggestion.ExtraColumns[0].Value ? 8 : -1);
444
462
  } }
445
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_5_Template(rf, ctx) { if (rf & 1) {
446
- i0.ɵɵelementStart(0, "div", 56);
447
- i0.ɵɵelement(1, "i", 83);
463
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_5_Template(rf, ctx) { if (rf & 1) {
464
+ i0.ɵɵelementStart(0, "div", 58);
465
+ i0.ɵɵelement(1, "i", 85);
448
466
  i0.ɵɵelementStart(2, "span");
449
467
  i0.ɵɵtext(3, "Searching\u2026");
450
468
  i0.ɵɵelementEnd()();
451
469
  } }
452
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_6_Template(rf, ctx) { if (rf & 1) {
453
- i0.ɵɵelementStart(0, "div", 57);
454
- i0.ɵɵelement(1, "i", 84);
470
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_6_Template(rf, ctx) { if (rf & 1) {
471
+ i0.ɵɵelementStart(0, "div", 59);
472
+ i0.ɵɵelement(1, "i", 86);
455
473
  i0.ɵɵelementStart(2, "span");
456
474
  i0.ɵɵtext(3, "No matches");
457
475
  i0.ɵɵelementEnd()();
458
476
  } }
459
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
460
- i0.ɵɵelement(0, "div", 87);
477
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
478
+ i0.ɵɵelement(0, "div", 89);
461
479
  } }
462
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_5_Template(rf, ctx) { if (rf & 1) {
463
- const _r18 = i0.ɵɵgetCurrentView();
464
- i0.ɵɵelementStart(0, "div", 90);
465
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_5_Template_div_mousedown_0_listener($event) { const col_r19 = i0.ɵɵrestoreView(_r18).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKHeaderSort($event, col_r19)); });
466
- i0.ɵɵelementStart(1, "span", 91);
480
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template(rf, ctx) { if (rf & 1) {
481
+ const _r19 = i0.ɵɵgetCurrentView();
482
+ i0.ɵɵelementStart(0, "div", 91);
483
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template_div_mousedown_0_listener($event) { const col_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKHeaderSort($event, col_r20)); });
484
+ i0.ɵɵelementStart(1, "span", 92);
467
485
  i0.ɵɵtext(2);
468
486
  i0.ɵɵelementEnd();
469
487
  i0.ɵɵelement(3, "i");
470
- i0.ɵɵelementStart(4, "span", 92);
471
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_5_Template_span_mousedown_4_listener($event) { const col_r19 = i0.ɵɵrestoreView(_r18).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKColResizeStart($event, col_r19)); });
488
+ i0.ɵɵelementStart(4, "span", 93);
489
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template_span_mousedown_4_listener($event) { const col_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKColResizeStart($event, col_r20)); });
472
490
  i0.ɵɵelementEnd()();
473
491
  } if (rf & 2) {
474
- const col_r19 = ctx.$implicit;
475
- const ɵ$index_248_r20 = ctx.$index;
492
+ const col_r20 = ctx.$implicit;
493
+ const ɵ$index_252_r21 = ctx.$index;
476
494
  const ctx_r0 = i0.ɵɵnextContext(6);
477
- i0.ɵɵproperty("title", "Click to sort by " + ctx_r0.FKColumnHeaders[ɵ$index_248_r20]);
495
+ i0.ɵɵproperty("title", "Click to sort by " + ctx_r0.FKColumnHeaders[ɵ$index_252_r21]);
478
496
  i0.ɵɵadvance(2);
479
- i0.ɵɵtextInterpolate(ctx_r0.FKColumnHeaders[ɵ$index_248_r20]);
497
+ i0.ɵɵtextInterpolate(ctx_r0.FKColumnHeaders[ɵ$index_252_r21]);
480
498
  i0.ɵɵadvance();
481
- i0.ɵɵclassMap(ctx_r0.FKSortIcon(col_r19));
499
+ i0.ɵɵclassMap(ctx_r0.FKSortIcon(col_r20));
482
500
  } }
483
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
501
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
502
+ i0.ɵɵelementStart(0, "div", 96);
503
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Conditional_0_Template_div_mousedown_0_listener($event) { return $event.preventDefault(); });
504
+ i0.ɵɵtext(1);
505
+ i0.ɵɵelementEnd();
506
+ } if (rf & 2) {
507
+ const group_r22 = i0.ɵɵnextContext().$implicit;
508
+ i0.ɵɵadvance();
509
+ i0.ɵɵtextInterpolate(group_r22.Label);
510
+ } }
511
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
484
512
  i0.ɵɵelement(0, "i");
485
513
  } if (rf & 2) {
486
- const suggestion_r22 = i0.ɵɵnextContext(2).$implicit;
487
- i0.ɵɵclassMap(suggestion_r22.Icon);
514
+ const suggestion_r24 = i0.ɵɵnextContext(2).$implicit;
515
+ i0.ɵɵclassMap(suggestion_r24.Icon);
488
516
  } }
489
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
490
- i0.ɵɵelementStart(0, "div", 94);
491
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Conditional_1_Conditional_1_Template, 1, 2, "i", 95);
517
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
518
+ i0.ɵɵelementStart(0, "div", 98);
519
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Conditional_1_Template, 1, 2, "i", 99);
492
520
  i0.ɵɵelementEnd();
493
521
  } if (rf & 2) {
494
- const suggestion_r22 = i0.ɵɵnextContext().$implicit;
522
+ const suggestion_r24 = i0.ɵɵnextContext().$implicit;
495
523
  i0.ɵɵadvance();
496
- i0.ɵɵconditional(suggestion_r22.Icon ? 1 : -1);
524
+ i0.ɵɵconditional(suggestion_r24.Icon ? 1 : -1);
497
525
  } }
498
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
499
- i0.ɵɵelement(0, "i", 99);
526
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
527
+ i0.ɵɵelement(0, "i", 103);
500
528
  } }
501
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
502
- i0.ɵɵelementStart(0, "div", 98);
503
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Conditional_0_Conditional_1_Template, 1, 0, "i", 99);
504
- i0.ɵɵelement(2, "span", 100);
529
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_For_5_Template(rf, ctx) { if (rf & 1) {
530
+ i0.ɵɵelementStart(0, "span", 108);
531
+ i0.ɵɵtext(1);
505
532
  i0.ɵɵelementEnd();
506
533
  } if (rf & 2) {
507
- const ctx_r23 = i0.ɵɵnextContext();
508
- const col_r25 = ctx_r23.$implicit;
509
- const ɵ$index_267_r26 = ctx_r23.$index;
510
- const ɵ$count_267_r27 = ctx_r23.$count;
511
- const suggestion_r22 = i0.ɵɵnextContext().$implicit;
512
- const ctx_r0 = i0.ɵɵnextContext(6);
513
- i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r25, ɵ$index_267_r26 === ɵ$count_267_r27 - 1));
534
+ const chip_r25 = ctx.$implicit;
535
+ i0.ɵɵclassProp("mj-fk-chip--info", chip_r25.Tone === "info")("mj-fk-chip--warn", chip_r25.Tone === "warn");
514
536
  i0.ɵɵadvance();
515
- i0.ɵɵconditional(ctx_r0.IsFKRowSelected(suggestion_r22) ? 1 : -1);
537
+ i0.ɵɵtextInterpolate(chip_r25.Text);
538
+ } }
539
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
540
+ i0.ɵɵelementStart(0, "span", 107);
541
+ i0.ɵɵtext(1);
542
+ i0.ɵɵelementEnd();
543
+ } if (rf & 2) {
544
+ const suggestion_r24 = i0.ɵɵnextContext(3).$implicit;
516
545
  i0.ɵɵadvance();
517
- i0.ɵɵproperty("innerHTML", suggestion_r22.HighlightedName, i0.ɵɵsanitizeHtml);
546
+ i0.ɵɵtextInterpolate(suggestion_r24.Secondary);
518
547
  } }
519
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
520
- i0.ɵɵelementStart(0, "div", 101);
521
- i0.ɵɵelement(1, "span", 100);
548
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
549
+ i0.ɵɵelementStart(0, "div", 102);
550
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_1_Template, 1, 0, "i", 103);
551
+ i0.ɵɵelementStart(2, "span", 104);
552
+ i0.ɵɵelement(3, "span", 105);
553
+ i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_For_5_Template, 2, 5, "span", 106, _forTrack3);
554
+ i0.ɵɵelementEnd();
555
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Conditional_6_Template, 2, 1, "span", 107);
522
556
  i0.ɵɵelementEnd();
523
557
  } if (rf & 2) {
524
- let tmp_30_0;
525
- let tmp_31_0;
526
- const ctx_r23 = i0.ɵɵnextContext();
527
- const col_r25 = ctx_r23.$implicit;
528
- const ɵ$index_267_r26 = ctx_r23.$index;
529
- const ɵ$count_267_r27 = ctx_r23.$count;
530
- const suggestion_r22 = i0.ɵɵnextContext().$implicit;
531
- const ctx_r0 = i0.ɵɵnextContext(6);
532
- i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r25, ɵ$index_267_r26 === ɵ$count_267_r27 - 1));
533
- i0.ɵɵproperty("title", ((tmp_30_0 = ctx_r0.FKCellFor(suggestion_r22, col_r25)) == null ? null : tmp_30_0.Value) || "");
558
+ const ctx_r25 = i0.ɵɵnextContext();
559
+ const col_r27 = ctx_r25.$implicit;
560
+ const ɵ$index_276_r28 = ctx_r25.$index;
561
+ const ɵ$count_276_r29 = ctx_r25.$count;
562
+ const suggestion_r24 = i0.ɵɵnextContext().$implicit;
563
+ const ctx_r0 = i0.ɵɵnextContext(7);
564
+ i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r27, ɵ$index_276_r28 === ɵ$count_276_r29 - 1));
565
+ i0.ɵɵadvance();
566
+ i0.ɵɵconditional(ctx_r0.IsFKRowSelected(suggestion_r24) ? 1 : -1);
567
+ i0.ɵɵadvance(2);
568
+ i0.ɵɵproperty("innerHTML", suggestion_r24.HighlightedName, i0.ɵɵsanitizeHtml);
534
569
  i0.ɵɵadvance();
535
- i0.ɵɵproperty("innerHTML", ((tmp_31_0 = ctx_r0.FKCellFor(suggestion_r22, col_r25)) == null ? null : tmp_31_0.HighlightedValue) || "", i0.ɵɵsanitizeHtml);
570
+ i0.ɵɵrepeater(suggestion_r24.Chips ?? i0.ɵɵpureFunction0(5, _c1));
571
+ i0.ɵɵadvance(2);
572
+ i0.ɵɵconditional(suggestion_r24.Secondary ? 6 : -1);
536
573
  } }
537
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Template(rf, ctx) { if (rf & 1) {
538
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Conditional_0_Template, 3, 4, "div", 96)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Conditional_1_Template, 2, 4, "div", 97);
574
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
575
+ i0.ɵɵelementStart(0, "div", 109);
576
+ i0.ɵɵelement(1, "span", 105);
577
+ i0.ɵɵelementEnd();
539
578
  } if (rf & 2) {
540
- const col_r25 = ctx.$implicit;
579
+ let tmp_39_0;
580
+ let tmp_40_0;
581
+ const ctx_r25 = i0.ɵɵnextContext();
582
+ const col_r27 = ctx_r25.$implicit;
583
+ const ɵ$index_276_r28 = ctx_r25.$index;
584
+ const ɵ$count_276_r29 = ctx_r25.$count;
585
+ const suggestion_r24 = i0.ɵɵnextContext().$implicit;
541
586
  const ctx_r0 = i0.ɵɵnextContext(7);
542
- i0.ɵɵconditional(col_r25 === ctx_r0.FKNameField ? 0 : 1);
587
+ i0.ɵɵclassProp("mj-fk-cell--fill", ctx_r0.FKColumnFillsTrack(col_r27, ɵ$index_276_r28 === ɵ$count_276_r29 - 1));
588
+ i0.ɵɵproperty("title", ((tmp_39_0 = ctx_r0.FKCellFor(suggestion_r24, col_r27)) == null ? null : tmp_39_0.Value) || "");
589
+ i0.ɵɵadvance();
590
+ i0.ɵɵproperty("innerHTML", ((tmp_40_0 = ctx_r0.FKCellFor(suggestion_r24, col_r27)) == null ? null : tmp_40_0.HighlightedValue) || "", i0.ɵɵsanitizeHtml);
591
+ } }
592
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Template(rf, ctx) { if (rf & 1) {
593
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_0_Template, 7, 6, "div", 100)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Conditional_1_Template, 2, 4, "div", 101);
594
+ } if (rf & 2) {
595
+ const col_r27 = ctx.$implicit;
596
+ const ctx_r0 = i0.ɵɵnextContext(8);
597
+ i0.ɵɵconditional(col_r27 === ctx_r0.FKNameField ? 0 : 1);
543
598
  } }
544
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Template(rf, ctx) { if (rf & 1) {
545
- const _r21 = i0.ɵɵgetCurrentView();
546
- i0.ɵɵelementStart(0, "div", 93);
547
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Template_div_mousedown_0_listener($event) { const suggestion_r22 = i0.ɵɵrestoreView(_r21).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(suggestion_r22, $event)); })("mouseenter", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Template_div_mouseenter_0_listener() { const ɵ$index_258_r23 = i0.ɵɵrestoreView(_r21).$index; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.FKActiveIndex = ɵ$index_258_r23); });
548
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Conditional_1_Template, 2, 1, "div", 94);
549
- i0.ɵɵrepeaterCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_For_3_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
599
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template(rf, ctx) { if (rf & 1) {
600
+ const _r23 = i0.ɵɵgetCurrentView();
601
+ i0.ɵɵelementStart(0, "div", 97);
602
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template_div_mousedown_0_listener($event) { const suggestion_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.OnFKSelectItem(suggestion_r24, $event)); })("mouseenter", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template_div_mouseenter_0_listener() { const suggestion_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r0.FKActiveIndex = ctx_r0.FKIndexOf(suggestion_r24)); });
603
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Conditional_1_Template, 2, 1, "div", 98);
604
+ i0.ɵɵrepeaterCreate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_For_3_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
550
605
  i0.ɵɵelementEnd();
551
606
  } if (rf & 2) {
552
- const suggestion_r22 = ctx.$implicit;
553
- const ɵ$index_258_r23 = ctx.$index;
554
- const ctx_r0 = i0.ɵɵnextContext(6);
555
- i0.ɵɵclassProp("mj-fk-grid-row--active", ɵ$index_258_r23 === ctx_r0.FKActiveIndex)("mj-fk-grid-row--selected", ctx_r0.IsFKRowSelected(suggestion_r22));
607
+ const suggestion_r24 = ctx.$implicit;
608
+ const ctx_r0 = i0.ɵɵnextContext(7);
609
+ i0.ɵɵclassProp("mj-fk-grid-row--active", ctx_r0.FKIndexOf(suggestion_r24) === ctx_r0.FKActiveIndex)("mj-fk-grid-row--selected", ctx_r0.IsFKRowSelected(suggestion_r24));
556
610
  i0.ɵɵadvance();
557
611
  i0.ɵɵconditional(ctx_r0.FKHasIconColumn ? 1 : -1);
558
612
  i0.ɵɵadvance();
559
613
  i0.ɵɵrepeater(ctx_r0.FKColumnFields);
560
614
  } }
561
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_Template(rf, ctx) { if (rf & 1) {
562
- i0.ɵɵelementStart(0, "div", 58)(1, "div", 85)(2, "div", 86);
563
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_Conditional_3_Template, 1, 0, "div", 87);
564
- i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_5_Template, 5, 4, "div", 88, i0.ɵɵrepeaterTrackByIdentity);
615
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Template(rf, ctx) { if (rf & 1) {
616
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Conditional_0_Template, 2, 1, "div", 94);
617
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_For_2_Template, 4, 5, "div", 95, _forTrack2);
618
+ } if (rf & 2) {
619
+ const group_r22 = ctx.$implicit;
620
+ const ctx_r0 = i0.ɵɵnextContext(6);
621
+ i0.ɵɵconditional(group_r22.Label && ctx_r0.FKSuggestionsInGroup(group_r22.Key).length > 0 ? 0 : -1);
622
+ i0.ɵɵadvance();
623
+ i0.ɵɵrepeater(ctx_r0.FKSuggestionsInGroup(group_r22.Key));
624
+ } }
625
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Template(rf, ctx) { if (rf & 1) {
626
+ i0.ɵɵelementStart(0, "div", 60)(1, "div", 87)(2, "div", 88);
627
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Conditional_3_Template, 1, 0, "div", 89);
628
+ i0.ɵɵrepeaterCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_5_Template, 5, 4, "div", 90, i0.ɵɵrepeaterTrackByIdentity);
565
629
  i0.ɵɵelementEnd();
566
- i0.ɵɵrepeaterCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_For_7_Template, 4, 5, "div", 89, _forTrack1);
630
+ i0.ɵɵrepeaterCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_For_7_Template, 3, 1, null, null, _forTrack1);
567
631
  i0.ɵɵelementEnd()();
568
632
  } if (rf & 2) {
569
633
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -574,14 +638,14 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
574
638
  i0.ɵɵadvance();
575
639
  i0.ɵɵrepeater(ctx_r0.FKColumnFields);
576
640
  i0.ɵɵadvance(2);
577
- i0.ɵɵrepeater(ctx_r0.FKSuggestions);
578
- } }
579
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_8_Template(rf, ctx) { if (rf & 1) {
580
- const _r28 = i0.ɵɵgetCurrentView();
581
- i0.ɵɵelementStart(0, "button", 102);
582
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_8_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKCreateNew($event)); });
583
- i0.ɵɵelement(1, "i", 103);
584
- i0.ɵɵelementStart(2, "span", 104);
641
+ i0.ɵɵrepeater(ctx_r0.FKGroups);
642
+ } }
643
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_8_Template(rf, ctx) { if (rf & 1) {
644
+ const _r30 = i0.ɵɵgetCurrentView();
645
+ i0.ɵɵelementStart(0, "button", 110);
646
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_8_Template_button_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r0 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r0.OnFKCreateNew($event)); });
647
+ i0.ɵɵelement(1, "i", 111);
648
+ i0.ɵɵelementStart(2, "span", 112);
585
649
  i0.ɵɵtext(3);
586
650
  i0.ɵɵelementEnd()();
587
651
  } if (rf & 2) {
@@ -590,15 +654,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditio
590
654
  i0.ɵɵadvance(3);
591
655
  i0.ɵɵtextInterpolate(ctx_r0.FKCreateLabel);
592
656
  } }
593
- function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Template(rf, ctx) { if (rf & 1) {
594
- i0.ɵɵelementStart(0, "div", 53);
595
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_1_Template, 6, 3, "div", 54);
596
- i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_ng_template_2_Template, 8, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
597
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_4_Template, 11, 3, "div", 55);
598
- i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_5_Template, 4, 0, "div", 56);
599
- i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_6_Template, 4, 0, "div", 57);
600
- i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_7_Template, 8, 3, "div", 58);
601
- i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Conditional_8_Template, 4, 2, "button", 59);
657
+ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Template(rf, ctx) { if (rf & 1) {
658
+ i0.ɵɵelementStart(0, "div", 55);
659
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_1_Template, 6, 3, "div", 56);
660
+ i0.ɵɵtemplate(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_ng_template_2_Template, 8, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
661
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_4_Template, 11, 3, "div", 57);
662
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_5_Template, 4, 0, "div", 58);
663
+ i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_6_Template, 4, 0, "div", 59);
664
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_7_Template, 8, 3, "div", 60);
665
+ i0.ɵɵconditionalCreate(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Conditional_8_Template, 4, 2, "button", 61);
602
666
  i0.ɵɵelementEnd();
603
667
  } if (rf & 2) {
604
668
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -625,12 +689,13 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template
625
689
  i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_focus_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_blur_2_listener() { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKBlur()); })("keydown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnFKKeydown($event)); });
626
690
  i0.ɵɵelementEnd();
627
691
  i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_3_Template, 5, 8, "button", 43);
628
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template, 2, 0, "button", 44)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template, 1, 0, "i", 45);
629
- i0.ɵɵconditionalCreate(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Template, 9, 11, "div", 46);
692
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_4_Template, 2, 2, "button", 44);
693
+ i0.ɵɵconditionalCreate(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_5_Template, 2, 0, "button", 45)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_6_Template, 1, 0, "i", 46);
694
+ i0.ɵɵconditionalCreate(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Conditional_7_Template, 9, 11, "div", 47);
630
695
  i0.ɵɵelementEnd();
631
696
  } if (rf & 2) {
632
697
  const ctx_r0 = i0.ɵɵnextContext(3);
633
- i0.ɵɵclassProp("mj-fk-search--matched", ctx_r0.FKHasLinkedValue)("mj-fk-search--scoped", ctx_r0.FKFocused && ctx_r0.FKSearchableFields.length > 1);
698
+ i0.ɵɵclassProp("mj-fk-search--matched", ctx_r0.FKHasLinkedValue)("mj-fk-search--scoped", ctx_r0.FKFocused && ctx_r0.FKSearchableFields.length > 1)("mj-fk-search--toggle", ctx_r0.FKFocused && !!ctx_r0.FKScopeLabels);
634
699
  i0.ɵɵadvance();
635
700
  i0.ɵɵconditional(ctx_r0.FKHasLinkedValue && !(ctx_r0.FKFocused && ctx_r0.FKSearchableFields.length > 1) ? 1 : -1);
636
701
  i0.ɵɵadvance();
@@ -639,9 +704,11 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template
639
704
  i0.ɵɵadvance();
640
705
  i0.ɵɵconditional(ctx_r0.FKFocused && ctx_r0.FKSearchableFields.length > 1 ? 3 : -1);
641
706
  i0.ɵɵadvance();
642
- i0.ɵɵconditional(ctx_r0.FKSearchText ? 4 : 5);
707
+ i0.ɵɵconditional(ctx_r0.FKFocused && ctx_r0.FKScopeLabels ? 4 : -1);
708
+ i0.ɵɵadvance();
709
+ i0.ɵɵconditional(ctx_r0.FKSearchText ? 5 : 6);
643
710
  i0.ɵɵadvance(2);
644
- i0.ɵɵconditional(ctx_r0.ShowFKDropdown ? 6 : -1);
711
+ i0.ɵɵconditional(ctx_r0.ShowFKDropdown ? 7 : -1);
645
712
  } }
646
713
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
647
714
  i0.ɵɵelement(0, "img", 13);
@@ -650,8 +717,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
650
717
  i0.ɵɵproperty("src", ctx_r0.ImagePreviewSrc, i0.ɵɵsanitizeUrl);
651
718
  } }
652
719
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
653
- i0.ɵɵelementStart(0, "div", 105);
654
- i0.ɵɵelement(1, "i", 113);
720
+ i0.ɵɵelementStart(0, "div", 113);
721
+ i0.ɵɵelement(1, "i", 121);
655
722
  i0.ɵɵelementEnd();
656
723
  } }
657
724
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
@@ -664,33 +731,33 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditio
664
731
  i0.ɵɵtextInterpolate1("Inline image (", ctx_r0.ImageValueSizeLabel, ")");
665
732
  } }
666
733
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template(rf, ctx) { if (rf & 1) {
667
- const _r31 = i0.ɵɵgetCurrentView();
668
- i0.ɵɵelementStart(0, "button", 114);
669
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnImageClear()); });
734
+ const _r33 = i0.ɵɵgetCurrentView();
735
+ i0.ɵɵelementStart(0, "button", 122);
736
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnImageClear()); });
670
737
  i0.ɵɵtext(1, "Clear");
671
738
  i0.ɵɵelementEnd();
672
739
  } }
673
740
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
674
- const _r29 = i0.ɵɵgetCurrentView();
741
+ const _r31 = i0.ɵɵgetCurrentView();
675
742
  i0.ɵɵelementStart(0, "div", 34);
676
- i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template, 1, 1, "img", 13)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_2_Template, 2, 0, "div", 105);
743
+ i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_1_Template, 1, 1, "img", 13)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_2_Template, 2, 0, "div", 113);
677
744
  i0.ɵɵelementStart(3, "div", 14);
678
745
  i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_4_Template, 2, 1, "span");
679
- i0.ɵɵelementStart(5, "span", 106);
746
+ i0.ɵɵelementStart(5, "span", 114);
680
747
  i0.ɵɵtext(6);
681
748
  i0.ɵɵelementEnd()();
682
- i0.ɵɵelementStart(7, "div", 107)(8, "input", 108, 1);
683
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_change_8_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageFileSelected($event)); });
749
+ i0.ɵɵelementStart(7, "div", 115)(8, "input", 116, 1);
750
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_change_8_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageFileSelected($event)); });
684
751
  i0.ɵɵelementEnd();
685
- i0.ɵɵelementStart(10, "button", 109);
686
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r29); const imageFileInput_r30 = i0.ɵɵreference(9); return i0.ɵɵresetView(imageFileInput_r30.click()); });
687
- i0.ɵɵelement(11, "i", 110);
752
+ i0.ɵɵelementStart(10, "button", 117);
753
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r31); const imageFileInput_r32 = i0.ɵɵreference(9); return i0.ɵɵresetView(imageFileInput_r32.click()); });
754
+ i0.ɵɵelement(11, "i", 118);
688
755
  i0.ɵɵtext(12);
689
756
  i0.ɵɵelementEnd();
690
- i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template, 2, 0, "button", 111);
757
+ i0.ɵɵconditionalCreate(13, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Conditional_13_Template, 2, 0, "button", 119);
691
758
  i0.ɵɵelementEnd();
692
- i0.ɵɵelementStart(14, "input", 112);
693
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_input_14_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageUrlInput($event)); });
759
+ i0.ɵɵelementStart(14, "input", 120);
760
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template_input_input_14_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnImageUrlInput($event)); });
694
761
  i0.ɵɵelementEnd()();
695
762
  } if (rf & 2) {
696
763
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -708,12 +775,12 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template
708
775
  i0.ɵɵproperty("value", ctx_r0.ImageUrlInputValue);
709
776
  } }
710
777
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
711
- const _r32 = i0.ɵɵgetCurrentView();
712
- i0.ɵɵelementStart(0, "div", 35)(1, "input", 115);
713
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnColorPickerInput($event)); });
778
+ const _r34 = i0.ɵɵgetCurrentView();
779
+ i0.ɵɵelementStart(0, "div", 35)(1, "input", 123);
780
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnColorPickerInput($event)); });
714
781
  i0.ɵɵelementEnd();
715
- i0.ɵɵelementStart(2, "input", 116);
716
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
782
+ i0.ɵɵelementStart(2, "input", 124);
783
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
717
784
  i0.ɵɵelementEnd()();
718
785
  } if (rf & 2) {
719
786
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -724,63 +791,63 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template
724
791
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
725
792
  } }
726
793
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
727
- const _r33 = i0.ɵɵgetCurrentView();
728
- i0.ɵɵelementStart(0, "textarea", 117);
729
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_textarea_blur_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnJsonBlur()); });
794
+ const _r35 = i0.ɵɵgetCurrentView();
795
+ i0.ɵɵelementStart(0, "textarea", 125);
796
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template_textarea_blur_0_listener() { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnJsonBlur()); });
730
797
  i0.ɵɵelementEnd();
731
798
  } if (rf & 2) {
732
799
  const ctx_r0 = i0.ɵɵnextContext(3);
733
800
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
734
801
  } }
735
802
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
736
- const _r34 = i0.ɵɵgetCurrentView();
737
- i0.ɵɵelementStart(0, "mj-code-editor", 118);
738
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template_mj_code_editor_change_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnCodeEditorChange($event)); });
803
+ const _r36 = i0.ɵɵgetCurrentView();
804
+ i0.ɵɵelementStart(0, "mj-code-editor", 126);
805
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template_mj_code_editor_change_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnCodeEditorChange($event)); });
739
806
  i0.ɵɵelementEnd();
740
807
  } if (rf & 2) {
741
808
  const ctx_r0 = i0.ɵɵnextContext(3);
742
809
  i0.ɵɵproperty("value", ctx_r0.FormatValue())("language", ctx_r0.CodeEditorLanguage);
743
810
  } }
744
811
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template(rf, ctx) { if (rf & 1) {
745
- const _r35 = i0.ɵɵgetCurrentView();
746
- i0.ɵɵelementStart(0, "input", 123);
747
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
812
+ const _r37 = i0.ɵɵgetCurrentView();
813
+ i0.ɵɵelementStart(0, "input", 131);
814
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
748
815
  i0.ɵɵelementEnd();
749
816
  } if (rf & 2) {
750
817
  const ctx_r0 = i0.ɵɵnextContext(4);
751
818
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
752
819
  } }
753
820
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template(rf, ctx) { if (rf & 1) {
754
- const _r36 = i0.ɵɵgetCurrentView();
755
- i0.ɵɵelementStart(0, "textarea", 124);
756
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
821
+ const _r38 = i0.ɵɵgetCurrentView();
822
+ i0.ɵɵelementStart(0, "textarea", 132);
823
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template_textarea_input_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
757
824
  i0.ɵɵelementEnd();
758
825
  } if (rf & 2) {
759
826
  const ctx_r0 = i0.ɵɵnextContext(4);
760
827
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
761
828
  } }
762
829
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template(rf, ctx) { if (rf & 1) {
763
- const _r37 = i0.ɵɵgetCurrentView();
764
- i0.ɵɵelementStart(0, "input", 125);
765
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnNumberChange($event)); });
830
+ const _r39 = i0.ɵɵgetCurrentView();
831
+ i0.ɵɵelementStart(0, "input", 133);
832
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnNumberChange($event)); });
766
833
  i0.ɵɵelementEnd();
767
834
  } if (rf & 2) {
768
835
  const ctx_r0 = i0.ɵɵnextContext(4);
769
836
  i0.ɵɵproperty("value", ctx_r0.Value);
770
837
  } }
771
838
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template(rf, ctx) { if (rf & 1) {
772
- const _r38 = i0.ɵɵgetCurrentView();
773
- i0.ɵɵelementStart(0, "input", 126);
774
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnDateChange($event)); });
839
+ const _r40 = i0.ɵɵgetCurrentView();
840
+ i0.ɵɵelementStart(0, "input", 134);
841
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnDateChange($event)); });
775
842
  i0.ɵɵelementEnd();
776
843
  } if (rf & 2) {
777
844
  const ctx_r0 = i0.ɵɵnextContext(4);
778
845
  i0.ɵɵproperty("value", ctx_r0.DateInputValue);
779
846
  } }
780
847
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template(rf, ctx) { if (rf & 1) {
781
- const _r39 = i0.ɵɵgetCurrentView();
782
- i0.ɵɵelementStart(0, "div", 28)(1, "input", 127);
783
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnCheckboxChange($event)); });
848
+ const _r41 = i0.ɵɵgetCurrentView();
849
+ i0.ɵɵelementStart(0, "div", 28)(1, "input", 135);
850
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnCheckboxChange($event)); });
784
851
  i0.ɵɵelementEnd()();
785
852
  } if (rf & 2) {
786
853
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -788,21 +855,21 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_T
788
855
  i0.ɵɵproperty("checked", !!ctx_r0.Value);
789
856
  } }
790
857
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
791
- const _r41 = i0.ɵɵgetCurrentView();
792
- i0.ɵɵelementStart(0, "div", 134);
793
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template_div_mousedown_0_listener($event) { const option_r42 = i0.ɵɵrestoreView(_r41).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnSelectOptionClick(option_r42, $event)); });
858
+ const _r43 = i0.ɵɵgetCurrentView();
859
+ i0.ɵɵelementStart(0, "div", 142);
860
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template_div_mousedown_0_listener($event) { const option_r44 = i0.ɵɵrestoreView(_r43).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnSelectOptionClick(option_r44, $event)); });
794
861
  i0.ɵɵtext(1);
795
862
  i0.ɵɵelementEnd();
796
863
  } if (rf & 2) {
797
- const option_r42 = ctx.$implicit;
864
+ const option_r44 = ctx.$implicit;
798
865
  const ctx_r0 = i0.ɵɵnextContext(6);
799
- i0.ɵɵclassProp("mj-fk-option--selected", ctx_r0.FormatValue() === option_r42);
866
+ i0.ɵɵclassProp("mj-fk-option--selected", ctx_r0.FormatValue() === option_r44);
800
867
  i0.ɵɵadvance();
801
- i0.ɵɵtextInterpolate1(" ", option_r42, " ");
868
+ i0.ɵɵtextInterpolate1(" ", option_r44, " ");
802
869
  } }
803
870
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
804
- i0.ɵɵelementStart(0, "div", 132);
805
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template, 2, 3, "div", 133, i0.ɵɵrepeaterTrackByIdentity);
871
+ i0.ɵɵelementStart(0, "div", 140);
872
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_For_2_Template, 2, 3, "div", 141, i0.ɵɵrepeaterTrackByIdentity);
806
873
  i0.ɵɵelementEnd();
807
874
  } if (rf & 2) {
808
875
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -812,15 +879,15 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_C
812
879
  i0.ɵɵrepeater(ctx_r0.PossibleValues);
813
880
  } }
814
881
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template(rf, ctx) { if (rf & 1) {
815
- const _r40 = i0.ɵɵgetCurrentView();
816
- i0.ɵɵelementStart(0, "div", 128);
817
- i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerClick($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template_div_blur_0_listener() { i0.ɵɵrestoreView(_r40); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerBlur()); });
818
- i0.ɵɵelementStart(1, "span", 129);
882
+ const _r42 = i0.ɵɵgetCurrentView();
883
+ i0.ɵɵelementStart(0, "div", 136);
884
+ i0.ɵɵlistener("click", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r42); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerClick($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template_div_blur_0_listener() { i0.ɵɵrestoreView(_r42); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnSelectTriggerBlur()); });
885
+ i0.ɵɵelementStart(1, "span", 137);
819
886
  i0.ɵɵtext(2);
820
887
  i0.ɵɵelementEnd();
821
- i0.ɵɵelement(3, "i", 130);
888
+ i0.ɵɵelement(3, "i", 138);
822
889
  i0.ɵɵelementEnd();
823
- i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_Template, 3, 3, "div", 131);
890
+ i0.ɵɵconditionalCreate(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Conditional_4_Template, 3, 3, "div", 139);
824
891
  } if (rf & 2) {
825
892
  const ctx_r0 = i0.ɵɵnextContext(4);
826
893
  i0.ɵɵadvance();
@@ -833,19 +900,19 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_T
833
900
  i0.ɵɵconditional(ctx_r0.ShowSelectDropdown && ctx_r0.PossibleValues.length > 0 ? 4 : -1);
834
901
  } }
835
902
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
836
- const _r44 = i0.ɵɵgetCurrentView();
837
- i0.ɵɵelementStart(0, "div", 134);
838
- i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template_div_mousedown_0_listener($event) { const option_r45 = i0.ɵɵrestoreView(_r44).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnValueListSelect(option_r45, $event)); });
903
+ const _r46 = i0.ɵɵgetCurrentView();
904
+ i0.ɵɵelementStart(0, "div", 142);
905
+ i0.ɵɵlistener("mousedown", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template_div_mousedown_0_listener($event) { const option_r47 = i0.ɵɵrestoreView(_r46).$implicit; const ctx_r0 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r0.OnValueListSelect(option_r47, $event)); });
839
906
  i0.ɵɵtext(1);
840
907
  i0.ɵɵelementEnd();
841
908
  } if (rf & 2) {
842
- const option_r45 = ctx.$implicit;
909
+ const option_r47 = ctx.$implicit;
843
910
  i0.ɵɵadvance();
844
- i0.ɵɵtextInterpolate1(" ", option_r45, " ");
911
+ i0.ɵɵtextInterpolate1(" ", option_r47, " ");
845
912
  } }
846
913
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
847
- i0.ɵɵelementStart(0, "div", 132);
848
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template, 2, 1, "div", 136, i0.ɵɵrepeaterTrackByIdentity);
914
+ i0.ɵɵelementStart(0, "div", 140);
915
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_For_2_Template, 2, 1, "div", 144, i0.ɵɵrepeaterTrackByIdentity);
849
916
  i0.ɵɵelementEnd();
850
917
  } if (rf & 2) {
851
918
  const ctx_r0 = i0.ɵɵnextContext(5);
@@ -855,12 +922,12 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_C
855
922
  i0.ɵɵrepeater(ctx_r0.FilteredPossibleValues);
856
923
  } }
857
924
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template(rf, ctx) { if (rf & 1) {
858
- const _r43 = i0.ɵɵgetCurrentView();
859
- i0.ɵɵelementStart(0, "div", 40)(1, "input", 135);
860
- i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_blur_1_listener() { i0.ɵɵrestoreView(_r43); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListBlur()); });
925
+ const _r45 = i0.ɵɵgetCurrentView();
926
+ i0.ɵɵelementStart(0, "div", 40)(1, "input", 143);
927
+ i0.ɵɵlistener("input", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListInput($event)); })("focus", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListFocus($event)); })("blur", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template_input_blur_1_listener() { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnValueListBlur()); });
861
928
  i0.ɵɵelementEnd();
862
- i0.ɵɵelement(2, "i", 45);
863
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_Template, 3, 3, "div", 131);
929
+ i0.ɵɵelement(2, "i", 46);
930
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Conditional_3_Template, 3, 3, "div", 139);
864
931
  i0.ɵɵelementEnd();
865
932
  } if (rf & 2) {
866
933
  const ctx_r0 = i0.ɵɵnextContext(4);
@@ -870,35 +937,35 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_T
870
937
  i0.ɵɵconditional(ctx_r0.ShowValueListDropdown && ctx_r0.FilteredPossibleValues.length > 0 ? 3 : -1);
871
938
  } }
872
939
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template(rf, ctx) { if (rf & 1) {
873
- const _r46 = i0.ɵɵgetCurrentView();
874
- i0.ɵɵelementStart(0, "input", 137);
875
- i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
940
+ const _r48 = i0.ɵɵgetCurrentView();
941
+ i0.ɵɵelementStart(0, "input", 145);
942
+ i0.ɵɵlistener("change", function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r48); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.OnInputChange($event)); });
876
943
  i0.ɵɵelementEnd();
877
944
  } if (rf & 2) {
878
945
  const ctx_r0 = i0.ɵɵnextContext(4);
879
946
  i0.ɵɵproperty("value", ctx_r0.FormatValue());
880
947
  } }
881
948
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
882
- i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template, 1, 1, "input", 119)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template, 1, 1, "textarea", 120)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template, 1, 1, "input", 121)(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template, 1, 1, "input", 122)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template, 2, 1, "div", 28)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template, 5, 6)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template, 4, 2, "div", 40)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template, 1, 1, "input", 119);
949
+ i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_0_Template, 1, 1, "input", 127)(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_1_Template, 1, 1, "textarea", 128)(2, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_2_Template, 1, 1, "input", 129)(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_3_Template, 1, 1, "input", 130)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_4_Template, 2, 1, "div", 28)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_5_Template, 5, 6)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_6_Template, 4, 2, "div", 40)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Case_7_Template, 1, 1, "input", 127);
883
950
  } if (rf & 2) {
884
951
  let tmp_3_0;
885
952
  const ctx_r0 = i0.ɵɵnextContext(3);
886
953
  i0.ɵɵconditional((tmp_3_0 = ctx_r0.Type) === "textbox" ? 0 : tmp_3_0 === "textarea" ? 1 : tmp_3_0 === "number" ? 2 : tmp_3_0 === "datepicker" ? 3 : tmp_3_0 === "checkbox" ? 4 : tmp_3_0 === "select" ? 5 : tmp_3_0 === "autocomplete" ? 6 : 7);
887
954
  } }
888
955
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_For_2_Template(rf, ctx) { if (rf & 1) {
889
- i0.ɵɵelementStart(0, "div", 138);
890
- i0.ɵɵelement(1, "i", 139);
956
+ i0.ɵɵelementStart(0, "div", 146);
957
+ i0.ɵɵelement(1, "i", 147);
891
958
  i0.ɵɵelementStart(2, "span");
892
959
  i0.ɵɵtext(3);
893
960
  i0.ɵɵelementEnd()();
894
961
  } if (rf & 2) {
895
- const error_r47 = ctx.$implicit;
962
+ const error_r49 = ctx.$implicit;
896
963
  i0.ɵɵadvance(3);
897
- i0.ɵɵtextInterpolate(error_r47.Message);
964
+ i0.ɵɵtextInterpolate(error_r49.Message);
898
965
  } }
899
966
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
900
967
  i0.ɵɵelementStart(0, "div", 38);
901
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_For_2_Template, 4, 1, "div", 138, _forTrack2);
968
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_For_2_Template, 4, 1, "div", 146, _forTrack4);
902
969
  i0.ɵɵelementEnd();
903
970
  } if (rf & 2) {
904
971
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -906,19 +973,19 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template
906
973
  i0.ɵɵrepeater(ctx_r0.DisplayErrors);
907
974
  } }
908
975
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
909
- i0.ɵɵelementStart(0, "div", 138);
910
- i0.ɵɵelement(1, "i", 140);
976
+ i0.ɵɵelementStart(0, "div", 146);
977
+ i0.ɵɵelement(1, "i", 148);
911
978
  i0.ɵɵelementStart(2, "span");
912
979
  i0.ɵɵtext(3);
913
980
  i0.ɵɵelementEnd()();
914
981
  } if (rf & 2) {
915
- const warning_r48 = ctx.$implicit;
982
+ const warning_r50 = ctx.$implicit;
916
983
  i0.ɵɵadvance(3);
917
- i0.ɵɵtextInterpolate(warning_r48.Message);
984
+ i0.ɵɵtextInterpolate(warning_r50.Message);
918
985
  } }
919
986
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
920
987
  i0.ɵɵelementStart(0, "div", 39);
921
- i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template, 4, 1, "div", 138, _forTrack2);
988
+ i0.ɵɵrepeaterCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_For_2_Template, 4, 1, "div", 146, _forTrack4);
922
989
  i0.ɵɵelementEnd();
923
990
  } if (rf & 2) {
924
991
  const ctx_r0 = i0.ɵɵnextContext(3);
@@ -926,8 +993,8 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Templat
926
993
  i0.ɵɵrepeater(ctx_r0.DisplayWarnings);
927
994
  } }
928
995
  function MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
929
- i0.ɵɵelementStart(0, "div", 39)(1, "div", 138);
930
- i0.ɵɵelement(2, "i", 140);
996
+ i0.ɵɵelementStart(0, "div", 39)(1, "div", 146);
997
+ i0.ɵɵelement(2, "i", 148);
931
998
  i0.ɵɵelementStart(3, "span");
932
999
  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.");
933
1000
  i0.ɵɵelementEnd()()();
@@ -936,7 +1003,7 @@ function MjFormFieldComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if
936
1003
  i0.ɵɵelementStart(0, "div", 32);
937
1004
  i0.ɵɵconditionalCreate(1, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_1_Template, 1, 1, "label", 5);
938
1005
  i0.ɵɵelementStart(2, "div", 6);
939
- i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template, 7, 11, "div", 33)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template, 15, 6, "div", 34)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template, 3, 3, "div", 35)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template, 1, 1, "textarea", 36)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template, 1, 2, "mj-code-editor", 37)(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template, 8, 1);
1006
+ i0.ɵɵconditionalCreate(3, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_3_Template, 8, 14, "div", 33)(4, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_4_Template, 15, 6, "div", 34)(5, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_5_Template, 3, 3, "div", 35)(6, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_6_Template, 1, 1, "textarea", 36)(7, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_7_Template, 1, 2, "mj-code-editor", 37)(8, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_8_Template, 8, 1);
940
1007
  i0.ɵɵelementEnd();
941
1008
  i0.ɵɵconditionalCreate(9, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_9_Template, 3, 0, "div", 38);
942
1009
  i0.ɵɵconditionalCreate(10, MjFormFieldComponent_Conditional_0_Conditional_1_Conditional_10_Template, 3, 0, "div", 39);
@@ -965,6 +1032,11 @@ function MjFormFieldComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
965
1032
  i0.ɵɵadvance();
966
1033
  i0.ɵɵconditional(ctx_r0.EditMode && !ctx_r0.IsFieldReadOnly ? 1 : -1);
967
1034
  } }
1035
+ /**
1036
+ * Rows a foreign-key lookup returns by default. Module scope because the `FKMaxRows` input's
1037
+ * initializer runs before the component's own statics are available.
1038
+ */
1039
+ const FK_DB_SEARCH_LIMIT = 20;
968
1040
  /**
969
1041
  * Modern form field component that renders entity fields in both read-only and edit modes.
970
1042
  *
@@ -996,6 +1068,34 @@ export class MjFormFieldComponent extends BaseAngularComponent {
996
1068
  cdr = inject(ChangeDetectorRef);
997
1069
  renderer = inject(Renderer2);
998
1070
  hostRef = inject((ElementRef));
1071
+ /**
1072
+ * The section this field renders inside, when there is one. Resolved through the element
1073
+ * injector, so it is found across component view boundaries a content query cannot cross —
1074
+ * a field declared in a widget's own template still reaches the panel the widget is projected
1075
+ * into. Absent for a field rendered outside any `mj-collapsible-panel`.
1076
+ */
1077
+ sectionHost = inject(FORM_SECTION_FIELD_HOST, { optional: true });
1078
+ constructor() {
1079
+ super();
1080
+ // Registered at construction (the creation pass), not in a lifecycle hook: the section's host
1081
+ // bindings read its field set during the first update pass, and a registration landing
1082
+ // mid-pass would change an already-checked binding.
1083
+ this.sectionHost?.RegisterField(this);
1084
+ }
1085
+ /** This component's host element — what a section uses to confirm the field is inside it. */
1086
+ get HostElement() {
1087
+ return this.hostRef.nativeElement;
1088
+ }
1089
+ _inputsBound = false;
1090
+ /**
1091
+ * False until the first `ngOnChanges`, i.e. until `Record`, `FieldName`, `EditMode` and the
1092
+ * rest have been bound. A section must not read a field before then: with no inputs a field
1093
+ * reports itself hidden (read mode, empty value) and not required-and-empty, which would hide
1094
+ * a section whose fields all sit behind a view boundary before they ever bind.
1095
+ */
1096
+ get InputsBound() {
1097
+ return this._inputsBound;
1098
+ }
999
1099
  /** The entity record containing this field */
1000
1100
  Record;
1001
1101
  /** Whether the form is in edit mode */
@@ -1209,7 +1309,20 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1209
1309
  get IsRequired() {
1210
1310
  return this.FieldInfo?.AllowsNull === false;
1211
1311
  }
1212
- /** Whether this is a required field that is currently empty (for validation styling) */
1312
+ /**
1313
+ * Whether this is a required field that is currently empty (for validation styling).
1314
+ *
1315
+ * "Empty" means null/undefined ONLY — an empty string is a VALUE, not absence (MJ #4359).
1316
+ * `IsRequired` here is derived from `AllowsNull === false`, i.e. the column's nullability, and a
1317
+ * NOT NULL string column accepts `''` in both SQL Server and `EntityField.Validate()`. Counting
1318
+ * `''` as empty therefore painted a field red that would save perfectly well — the form and the
1319
+ * save disagreed about the same value, and the section indicators inherited the disagreement.
1320
+ *
1321
+ * Requiring actual text is a separate, deliberate constraint (an `IsRequired`-style flag of the
1322
+ * kind `ActionParam` / `TemplateParam` carry, or a CHECK constraint), not something to infer from
1323
+ * nullability. Until such a flag exists for entity fields, this getter mirrors what the save will
1324
+ * actually refuse.
1325
+ */
1213
1326
  get IsRequiredEmpty() {
1214
1327
  // Defer to the validation system when it has active errors for this field
1215
1328
  if (this.ShowErrors)
@@ -1217,7 +1330,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1217
1330
  if (!this.IsRequired || !this.EditMode)
1218
1331
  return false;
1219
1332
  const val = this.Value;
1220
- return val === null || val === undefined || val === '';
1333
+ return val === null || val === undefined;
1221
1334
  }
1222
1335
  // ---- INLINE VALIDATION ----
1223
1336
  /** Whether the user has interacted with (changed) this field */
@@ -1468,6 +1581,27 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1468
1581
  AllowFKCreate = true;
1469
1582
  /** Surface used for the inline create form: a modal dialog (default) or a slide-in. */
1470
1583
  FKCreatePresentation = 'dialog';
1584
+ /**
1585
+ * Extra WHERE fragment applied to every lookup on this field, AND-ed with the related
1586
+ * entity's `RelatedEntityFilter` metadata. Use this for a
1587
+ * scope only this instance of the form knows about; prefer the metadata column when the
1588
+ * rule is true of the field everywhere it appears.
1589
+ */
1590
+ FKExtraFilter = null;
1591
+ /**
1592
+ * ORDER BY for the empty-query browse list, overriding the field's `RelatedEntityOrderBy`
1593
+ * metadata. Defaults to the related entity's name field. Does not affect a typed query,
1594
+ * which is ordered by relevance.
1595
+ */
1596
+ FKOrderBy = null;
1597
+ /** Rows requested from a lookup. */
1598
+ FKMaxRows = FK_DB_SEARCH_LIMIT;
1599
+ /**
1600
+ * Opaque options handed to the resolved {@link FKLookupStrategy} — e.g.
1601
+ * `{ ScopeField: 'BillToOrganizationID' }` to tell a person picker which organization's
1602
+ * people to offer first. Each strategy documents its own keys.
1603
+ */
1604
+ FKLookupOptions = {};
1471
1605
  /** Cleanup function for the scroll/resize/outside-press listeners armed while a dropdown is open */
1472
1606
  _scrollCleanup = null;
1473
1607
  /** Inline style for the fixed-position dropdown */
@@ -1652,10 +1786,35 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1652
1786
  // ============================================
1653
1787
  /** Max rows shown on an empty-input focus-show (cached fast path only). */
1654
1788
  static FK_FOCUS_SHOW_LIMIT = 50;
1655
- /** Max rows returned from a DB search. */
1656
- static FK_DB_SEARCH_LIMIT = 20;
1789
+ /** Group key for the user's recent picks, which the field prepends itself. */
1790
+ static FK_RECENT_GROUP = '__recent';
1791
+ /** Group key used whenever rows arrive ungrouped (the cached path, the default strategy). */
1792
+ static FK_RESULTS_GROUP = 'results';
1793
+ /** How many recent picks the dropdown offers before the strategy's own rows. */
1794
+ static FK_RECENT_SHOWN = 5;
1657
1795
  /** Suggestions returned from the FK entity search */
1658
1796
  FKSuggestions = [];
1797
+ /**
1798
+ * Group headers in render order, from the last lookup. Rows are matched to a group by
1799
+ * {@link FKSuggestion.GroupKey}; a null `Label` renders its rows with no header.
1800
+ */
1801
+ FKGroups = [];
1802
+ /**
1803
+ * Labels for the population toggle supplied by the resolved strategy — e.g. Customers vs
1804
+ * All organizations. Null hides the toggle, which is the case for most fields.
1805
+ */
1806
+ FKScopeLabels = null;
1807
+ /** Which population the dropdown is currently showing. */
1808
+ FKScope = 'primary';
1809
+ /** The resolved lookup strategy for this field, memoized until the field changes. */
1810
+ _fkStrategy = null;
1811
+ /**
1812
+ * Whether {@link _fkStrategy} came from a registration rather than being MJ's default. Tracked
1813
+ * separately because a registered strategy may legitimately subclass `DefaultFKLookupStrategy`
1814
+ * to reuse its querying — an `instanceof` test would call that one "the default" and let the
1815
+ * cached path bypass it.
1816
+ */
1817
+ _fkStrategyIsRegistered = false;
1659
1818
  /**
1660
1819
  * The currently-linked record, pinned as a sticky "Currently selected" section at the
1661
1820
  * top of the dropdown (browse mode only). Null when there's no selection or the user is
@@ -1760,14 +1919,78 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1760
1919
  return undefined;
1761
1920
  return this.ProviderToUse.EntityByName(relatedName);
1762
1921
  }
1922
+ /**
1923
+ * The lookup strategy for this field: a registration for `<HostEntity>.<FieldName>`, else one
1924
+ * for the related entity, else MJ's own. Memoized — resolution walks the class factory and the
1925
+ * answer cannot change while the field is bound to the same record and column.
1926
+ */
1927
+ resolveStrategy() {
1928
+ if (!this._fkStrategy) {
1929
+ const registered = ResolveFKLookupStrategy(this.Record?.EntityInfo?.Name ?? '', this.FieldName, this.FieldInfo?.RelatedEntity ?? '');
1930
+ this._fkStrategyIsRegistered = registered !== null;
1931
+ this._fkStrategy = registered ?? new DefaultFKLookupStrategy();
1932
+ }
1933
+ return this._fkStrategy;
1934
+ }
1935
+ /**
1936
+ * True when an app registered a strategy for this field. The in-memory cached path answers a
1937
+ * different question from the one such a strategy exists to answer, so it must not short-circuit
1938
+ * past it — see {@link getCachedRecordsForRelatedEntity}.
1939
+ */
1940
+ hasCustomStrategy() {
1941
+ this.resolveStrategy();
1942
+ return this._fkStrategyIsRegistered;
1943
+ }
1944
+ /** True when metadata or this instance's inputs scope or order the related rows. */
1945
+ hasFKScoping() {
1946
+ return !!(this.FieldInfo?.RelatedEntityFilter ||
1947
+ this.FieldInfo?.RelatedEntityOrderBy ||
1948
+ this.FKExtraFilter ||
1949
+ this.FKOrderBy);
1950
+ }
1951
+ /** Everything the strategy needs for one lookup. Null when the field is not fully resolved. */
1952
+ buildLookupContext(plan, query) {
1953
+ const relatedEntity = this.getRelatedEntityInfo();
1954
+ if (!relatedEntity || !this.FieldInfo || !this.Record)
1955
+ return null;
1956
+ const searchField = this.FKSearchField || plan.NameFieldName;
1957
+ const fields = Array.from(new Set([
1958
+ plan.PkFieldName, plan.NameFieldName, ...plan.ExtraFieldNames, searchField,
1959
+ ...(plan.IconFieldName ? [plan.IconFieldName] : [])
1960
+ ]));
1961
+ return {
1962
+ Record: this.Record,
1963
+ FieldInfo: this.FieldInfo,
1964
+ RelatedEntity: relatedEntity,
1965
+ Provider: this.ProviderToUse,
1966
+ Fields: fields,
1967
+ PkField: plan.PkFieldName,
1968
+ NameField: plan.NameFieldName,
1969
+ SearchField: searchField,
1970
+ Query: query,
1971
+ Scope: this.FKScope,
1972
+ MaxRows: this.FKMaxRows,
1973
+ Options: {
1974
+ ...this.FKLookupOptions,
1975
+ ExtraFilter: this.FKExtraFilter ?? '',
1976
+ OrderBy: this.FKOrderBy ?? '',
1977
+ },
1978
+ };
1979
+ }
1763
1980
  /**
1764
1981
  * Returns the LIVE cached array of records for the related entity IF a loaded
1765
1982
  * engine holds the full (unfiltered) set; otherwise null. Records are read-only —
1766
1983
  * never mutate. Wraps {@link BaseEngineRegistry.TryGetCachedRecords}.
1984
+ *
1985
+ * A registered strategy always wins: it exists precisely because "every row of the related
1986
+ * entity, filtered by name" is the wrong answer for this field, and filtering a cache in memory
1987
+ * would silently reinstate that answer. So does any scoping the default strategy would apply
1988
+ * (`RelatedEntityFilter`, `RelatedEntityOrderBy`, `[FKExtraFilter]`, `[FKOrderBy]`): the cache
1989
+ * cannot honour it, and the answer must not depend on which engines a page happened to load.
1767
1990
  */
1768
1991
  getCachedRecordsForRelatedEntity() {
1769
1992
  const relatedName = this.FieldInfo?.RelatedEntity;
1770
- if (!relatedName)
1993
+ if (!relatedName || this.hasCustomStrategy() || this.hasFKScoping())
1771
1994
  return null;
1772
1995
  const registry = BaseEngineRegistry.Instance;
1773
1996
  const records = registry.TryGetCachedRecords(relatedName, { unfilteredOnly: true });
@@ -1968,31 +2191,35 @@ export class MjFormFieldComponent extends BaseAngularComponent {
1968
2191
  }
1969
2192
  this.FKSearchFieldLabel = this.labelForRelatedField(this.FKSearchField);
1970
2193
  }
1971
- /** Format a raw cell value for display in the dropdown (delegates to the pure helper). */
1972
- formatCell(val) {
1973
- return FormatFKCell(val);
2194
+ /**
2195
+ * Format a raw cell value for display in the dropdown (delegates to the pure helper). The
2196
+ * related entity's column type lets a SQL `date` render as its stored day (MJ#4210).
2197
+ */
2198
+ formatCell(val, fieldName) {
2199
+ const sqlType = fieldName ? this.getRelatedEntityInfo()?.Fields.find(f => f.Name === fieldName)?.Type : undefined;
2200
+ return FormatFKCell(val, sqlType);
1974
2201
  }
1975
2202
  /**
1976
2203
  * Build the suggestion view-models from a set of plain rows (cached or DB),
1977
2204
  * applying the typed-query substring highlight to the name column.
1978
2205
  * `getField` abstracts cached BaseEntity rows (`.Get(name)`) vs simple objects.
1979
2206
  */
1980
- buildSuggestions(rows, plan, query) {
2207
+ buildSuggestions(rows, plan, query, groupKey = MjFormFieldComponent.FK_RESULTS_GROUP, decoration = []) {
1981
2208
  const searchField = this.FKSearchField || plan.NameFieldName;
1982
2209
  // Only highlight the column actually being searched, and only when enabled.
1983
2210
  const nameQuery = (this.FKHighlightMatches && this.isSearchingNameField(plan)) ? query : '';
1984
- return rows.map(row => {
1985
- const name = this.formatCell(row.get(plan.NameFieldName));
2211
+ return rows.map((row, index) => {
2212
+ const name = this.formatCell(row.get(plan.NameFieldName), plan.NameFieldName);
1986
2213
  // Per-row icon from the entity's ExtendedType='Icon' field; else the
1987
2214
  // entity-level icon; else none.
1988
- const rowIcon = plan.IconFieldName ? this.formatCell(row.get(plan.IconFieldName)).trim() : '';
2215
+ const rowIcon = plan.IconFieldName ? this.formatCell(row.get(plan.IconFieldName), plan.IconFieldName).trim() : '';
1989
2216
  return {
1990
2217
  PrimaryKeyValue: row.get(plan.PkFieldName),
1991
2218
  DisplayName: name,
1992
2219
  // Empty query yields the (still HTML-escaped) plain name — no marks.
1993
2220
  HighlightedName: HighlightSearchMatches(name, nameQuery, 'mj-forms-search-highlight'),
1994
2221
  ExtraColumns: plan.ExtraFieldNames.map((fieldName, i) => {
1995
- const value = this.formatCell(row.get(fieldName));
2222
+ const value = this.formatCell(row.get(fieldName), fieldName);
1996
2223
  const colQuery = (this.FKHighlightMatches && fieldName === searchField) ? query : '';
1997
2224
  return {
1998
2225
  FieldName: fieldName,
@@ -2001,10 +2228,22 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2001
2228
  HighlightedValue: HighlightSearchMatches(value, colQuery, 'mj-forms-search-highlight')
2002
2229
  };
2003
2230
  }),
2004
- Icon: (rowIcon || plan.EntityIcon) || null
2231
+ Icon: (rowIcon || plan.EntityIcon) || null,
2232
+ GroupKey: groupKey,
2233
+ Secondary: decoration[index]?.Secondary,
2234
+ Chips: decoration[index]?.Chips,
2235
+ Row: decoration[index]
2005
2236
  };
2006
2237
  });
2007
2238
  }
2239
+ /** Rows belonging to one group, in the dropdown's overall (sorted) order. */
2240
+ FKSuggestionsInGroup(groupKey) {
2241
+ return this.FKSuggestions.filter(s => s.GroupKey === groupKey);
2242
+ }
2243
+ /** Index of a row within the flat, keyboard-navigable list. */
2244
+ FKIndexOf(suggestion) {
2245
+ return this.FKSuggestions.indexOf(suggestion);
2246
+ }
2008
2247
  /** Apply a freshly-built suggestion list to the dropdown state + reposition + portal. */
2009
2248
  applySuggestions(suggestions, plan) {
2010
2249
  // Pinned "currently selected" row: in browse mode (empty query) with a valid linked
@@ -2057,14 +2296,22 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2057
2296
  ExtraColumns: plan.ExtraFieldNames.map((fn, i) => ({
2058
2297
  FieldName: fn, Header: plan.ExtraHeaders[i], Value: '', HighlightedValue: ''
2059
2298
  })),
2060
- Icon: plan.EntityIcon ?? null
2299
+ Icon: plan.EntityIcon ?? null,
2300
+ // Rendered in its own pinned section above the grid, never inside a group.
2301
+ GroupKey: MjFormFieldComponent.FK_RESULTS_GROUP
2061
2302
  };
2062
2303
  }
2063
2304
  /**
2064
- * Returns a sorted copy of the suggestions per the active sort column/direction.
2065
- * Null sort field → natural order (original array, untouched). Sorts on the name
2066
- * column's `DisplayName` or the matching extra column's formatted `Value`,
2067
- * case-insensitively.
2305
+ * Returns a sorted copy of the suggestions per the active sort column/direction, sorting
2306
+ * WITHIN each group and preserving group order. Null sort field → natural order (original
2307
+ * array, untouched). Sorts on the name column's `DisplayName` or the matching extra column's
2308
+ * formatted `Value`, case-insensitively.
2309
+ *
2310
+ * Sorting the flat concatenation instead would break two things, and `FKSortField` is restored
2311
+ * from saved preferences — so a user who once sorted a column would get both on every open:
2312
+ * "Recent" is ordered by recency and a global sort alphabetizes that away, and the template
2313
+ * renders group by group while the keyboard walks the flat array, so the two orders diverge and
2314
+ * arrow keys skip rows the user can see.
2068
2315
  */
2069
2316
  sortSuggestions(suggestions) {
2070
2317
  const field = this.FKSortField;
@@ -2076,7 +2323,20 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2076
2323
  return s.ExtraColumns.find(c => c.FieldName === field)?.Value ?? '';
2077
2324
  };
2078
2325
  const dir = this.FKSortDir === 'desc' ? -1 : 1;
2079
- return [...suggestions].sort((a, b) => dir * keyOf(a).localeCompare(keyOf(b), undefined, { numeric: true, sensitivity: 'base' }));
2326
+ const compare = (a, b) => dir * keyOf(a).localeCompare(keyOf(b), undefined, { numeric: true, sensitivity: 'base' });
2327
+ // Group order is the render order; only the rows inside a group move.
2328
+ const order = [];
2329
+ const byGroup = new Map();
2330
+ for (const suggestion of suggestions) {
2331
+ let rows = byGroup.get(suggestion.GroupKey);
2332
+ if (!rows) {
2333
+ rows = [];
2334
+ byGroup.set(suggestion.GroupKey, rows);
2335
+ order.push(suggestion.GroupKey);
2336
+ }
2337
+ rows.push(suggestion);
2338
+ }
2339
+ return order.flatMap(key => [...(byGroup.get(key) ?? [])].sort(compare));
2080
2340
  }
2081
2341
  /**
2082
2342
  * Toggle the sort on a column header: same column cycles asc → desc → none;
@@ -2294,6 +2554,15 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2294
2554
  this._fkResizeMove = null;
2295
2555
  this._fkResizeUp = null;
2296
2556
  }
2557
+ /**
2558
+ * Flip between the strategy's narrow population and its wide one — "Customers" versus
2559
+ * "All organizations" — and re-run the current lookup in the new scope.
2560
+ */
2561
+ OnFKScopeChange(event) {
2562
+ event.preventDefault(); // keep focus on the input so the dropdown stays open
2563
+ this.FKScope = this.FKScope === 'primary' ? 'all' : 'primary';
2564
+ void this.searchRelatedEntity(this._fkQuery);
2565
+ }
2297
2566
  /** Handle typing in the FK search input */
2298
2567
  OnFKInput(event) {
2299
2568
  const input = event.target;
@@ -2379,6 +2648,10 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2379
2648
  : plan.NameFieldName;
2380
2649
  const matches = FilterCachedFKRows(records, query, MjFormFieldComponent.FK_FOCUS_SHOW_LIMIT, r => r.Get(searchField));
2381
2650
  this.FKLoading = false;
2651
+ // The cached path is only reached for the default strategy, so there is one ungrouped,
2652
+ // unlabelled group and no scope toggle.
2653
+ this.FKGroups = [{ Key: MjFormFieldComponent.FK_RESULTS_GROUP, Label: null }];
2654
+ this.FKScopeLabels = null;
2382
2655
  this.applySuggestions(this.buildSuggestions(matches.map(accessor), plan, query), plan);
2383
2656
  }
2384
2657
  /** Hide dropdown on blur, revert to matched name if user didn't select */
@@ -2440,7 +2713,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2440
2713
  const active = this.FKSuggestions[this.FKActiveIndex];
2441
2714
  if (active) {
2442
2715
  event.preventDefault();
2443
- this.selectFKSuggestion(active);
2716
+ void this.selectFKSuggestion(active);
2444
2717
  }
2445
2718
  break;
2446
2719
  }
@@ -2458,10 +2731,38 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2458
2731
  /** Select an item from the FK dropdown (mouse) */
2459
2732
  OnFKSelectItem(suggestion, event) {
2460
2733
  event.preventDefault();
2461
- this.selectFKSuggestion(suggestion);
2734
+ void this.selectFKSuggestion(suggestion);
2462
2735
  }
2463
- /** Shared selection logic for mouse-click and keyboard-Enter. */
2464
- selectFKSuggestion(suggestion) {
2736
+ /**
2737
+ * Shared selection logic for mouse-click and keyboard-Enter. The strategy gets to veto the
2738
+ * pick first — that is how a field asks the user to confirm a consequential choice.
2739
+ */
2740
+ async selectFKSuggestion(suggestion) {
2741
+ const plan = this.buildColumnPlan();
2742
+ const context = plan ? this.buildLookupContext(plan, this._fkQuery) : null;
2743
+ if (plan && context) {
2744
+ // The strategy's own row when it supplied one, so a veto can read every value it returned.
2745
+ const row = suggestion.Row ?? {
2746
+ Values: {
2747
+ [plan.PkFieldName]: suggestion.PrimaryKeyValue,
2748
+ [plan.NameFieldName]: suggestion.DisplayName,
2749
+ },
2750
+ };
2751
+ // A strategy that throws here must not swallow the user's click. Fail OPEN: the veto is an
2752
+ // opportunity to confirm, not a security boundary, so a broken one lets the pick through
2753
+ // rather than making the field unusable.
2754
+ let vetoed = false;
2755
+ try {
2756
+ vetoed = !(await this.resolveStrategy().BeforeSelect(context, row));
2757
+ }
2758
+ catch (err) {
2759
+ LogError(`FK lookup strategy BeforeSelect failed for ${this.FieldName}: ${err instanceof Error ? err.message : String(err)}`);
2760
+ }
2761
+ if (vetoed) {
2762
+ this.cdr.markForCheck();
2763
+ return;
2764
+ }
2765
+ }
2465
2766
  this._fkInputText = suggestion.DisplayName;
2466
2767
  this.Value = suggestion.PrimaryKeyValue;
2467
2768
  this.FKIsMatched = true;
@@ -2471,8 +2772,13 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2471
2772
  if (nameFieldMap) {
2472
2773
  this.Record.Set(nameFieldMap, suggestion.DisplayName);
2473
2774
  }
2775
+ this.rememberPick(suggestion.PrimaryKeyValue);
2474
2776
  this.cdr.markForCheck();
2475
2777
  }
2778
+ /** Record a pick so it leads the browse list next time this user opens this dropdown. */
2779
+ rememberPick(primaryKeyValue) {
2780
+ LinkedFieldOptionsStore.Instance.PushRecentPick(this.Record?.EntityInfo?.Name ?? '', this.FieldName, String(primaryKeyValue ?? ''));
2781
+ }
2476
2782
  // ---- Inline "create new related record" ----
2477
2783
  /**
2478
2784
  * Whether to show the inline-create affordance: the field opts in (`AllowFKCreate`),
@@ -2511,9 +2817,18 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2511
2817
  this.FKFocused = false;
2512
2818
  this.closeFKDropdown();
2513
2819
  this.cdr.markForCheck();
2514
- const newRecordValues = {};
2515
- if (query)
2516
- newRecordValues[plan.NameFieldName] = query;
2820
+ const context = this.buildLookupContext(plan, query);
2821
+ // Prefill is a convenience; a strategy that throws should cost the user the prefill, not the
2822
+ // ability to create a record.
2823
+ let newRecordValues = {};
2824
+ if (context) {
2825
+ try {
2826
+ newRecordValues = this.resolveStrategy().CreateDefaults(context);
2827
+ }
2828
+ catch (err) {
2829
+ LogError(`FK lookup strategy CreateDefaults failed for ${this.FieldName}: ${err instanceof Error ? err.message : String(err)}`);
2830
+ }
2831
+ }
2517
2832
  this.Navigate.emit({
2518
2833
  Kind: 'create-related',
2519
2834
  EntityName: relatedEntity,
@@ -2529,13 +2844,14 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2529
2844
  const pk = created.Get(plan.PkFieldName);
2530
2845
  if (pk == null)
2531
2846
  return;
2532
- const name = this.formatCell(created.Get(plan.NameFieldName));
2847
+ const name = this.formatCell(created.Get(plan.NameFieldName), plan.NameFieldName);
2533
2848
  this._fkInputText = name;
2534
2849
  this.Value = pk;
2535
2850
  this.FKIsMatched = true;
2536
2851
  const nameFieldMap = this.FieldInfo?.RelatedEntityNameFieldMap;
2537
2852
  if (nameFieldMap)
2538
2853
  this.Record.Set(nameFieldMap, name);
2854
+ this.rememberPick(pk);
2539
2855
  this.closeFKDropdown();
2540
2856
  this.cdr.markForCheck();
2541
2857
  }
@@ -2591,38 +2907,97 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2591
2907
  this.portalDropdownToBody();
2592
2908
  }
2593
2909
  this.cdr.markForCheck();
2594
- // Build Fields: PK + name + extra DefaultInView columns + the searched field +
2595
- // the per-row icon field (when present), deduped via Set.
2596
- const searchField = this.FKSearchField || plan.NameFieldName;
2597
- const fields = Array.from(new Set([
2598
- plan.PkFieldName, plan.NameFieldName, ...plan.ExtraFieldNames, searchField,
2599
- ...(plan.IconFieldName ? [plan.IconFieldName] : [])
2600
- ]));
2601
- const escapedQuery = query.replace(/'/g, "''").trim();
2602
- const rv = RunView.FromMetadataProvider(this.ProviderToUse);
2603
- const result = await rv.RunView({
2604
- EntityName: fieldInfo.RelatedEntity,
2605
- // Empty query (focus / cleared field) → no filter → first N rows.
2606
- ExtraFilter: escapedQuery ? `[${searchField}] LIKE '%${escapedQuery}%'` : '',
2607
- MaxRows: MjFormFieldComponent.FK_DB_SEARCH_LIMIT,
2608
- ResultType: 'simple',
2609
- Fields: fields
2610
- });
2910
+ const context = this.buildLookupContext(plan, query);
2911
+ if (!context) {
2912
+ this.FKLoading = false;
2913
+ return;
2914
+ }
2915
+ const strategy = this.resolveStrategy();
2916
+ // Everything from here to the results is third-party code: this seam exists so an app can
2917
+ // supply its own lookup. A strategy that throws must not leave the field spinning forever on
2918
+ // an unhandled rejection, so contain it, say so, and fall back to MJ's own rows.
2919
+ let groups;
2920
+ let recent;
2921
+ try {
2922
+ this.FKScopeLabels = strategy.ScopeLabels(context);
2923
+ // Recent picks only make sense on the browse list; once the user types, what they typed is
2924
+ // the better signal than what they picked last week.
2925
+ [groups, recent] = await Promise.all([
2926
+ strategy.Lookup(context),
2927
+ query.trim() ? Promise.resolve([]) : this.loadRecentPicks(context),
2928
+ ]);
2929
+ }
2930
+ catch (err) {
2931
+ // Stale: a newer keystroke fired, or the panel was dismissed while this was in flight.
2932
+ if (seq !== this._fkSearchSeq)
2933
+ return;
2934
+ LogError(`FK lookup strategy failed for ${this.Record?.EntityInfo?.Name ?? '?'}.${this.FieldName}: ` +
2935
+ `${err instanceof Error ? err.message : String(err)}`);
2936
+ [groups, recent] = [await this.fallbackLookup(context), []];
2937
+ this.FKScopeLabels = null;
2938
+ }
2611
2939
  // Stale: a newer keystroke fired, or the panel was dismissed while this was in flight. A
2612
2940
  // dismissed panel stays dismissed — this result must not reopen it.
2613
2941
  if (seq !== this._fkSearchSeq)
2614
2942
  return;
2615
2943
  this.FKLoading = false;
2616
- if (result.Success) {
2617
- const accessor = (r) => ({ get: (field) => r[field] });
2618
- this.applySuggestions(this.buildSuggestions(result.Results.map(accessor), plan, query), plan);
2944
+ // A recent pick the strategy also returned renders once, in the strategy's group.
2945
+ const pkOf = (r) => String(r.Values[plan.PkFieldName] ?? '').toLowerCase();
2946
+ const offered = new Set(groups.flatMap(g => g.Rows.map(pkOf)));
2947
+ const recentOnly = recent.filter(r => !offered.has(pkOf(r)));
2948
+ const allGroups = recentOnly.length
2949
+ ? [{ Key: MjFormFieldComponent.FK_RECENT_GROUP, Label: 'Recent', Rows: recentOnly }, ...groups]
2950
+ : groups;
2951
+ this.FKGroups = allGroups.filter(g => g.Rows.length > 0).map(g => ({ Key: g.Key, Label: g.Label }));
2952
+ const accessor = (r) => ({ get: (field) => r.Values[field] });
2953
+ const suggestions = allGroups.flatMap(g => this.buildSuggestions(g.Rows.map(accessor), plan, query, g.Key, g.Rows));
2954
+ this.applySuggestions(suggestions, plan);
2955
+ this.cdr.markForCheck();
2956
+ }
2957
+ /**
2958
+ * MJ's own rows, used when a registered strategy threw. Contained in turn: if the default
2959
+ * cannot answer either, the dropdown shows "no matches" rather than propagating.
2960
+ */
2961
+ async fallbackLookup(context) {
2962
+ try {
2963
+ return await new DefaultFKLookupStrategy().Lookup(context);
2619
2964
  }
2620
- else {
2621
- this.FKSuggestions = [];
2622
- this.FKNoMatches = true;
2623
- this.ShowFKDropdown = true;
2965
+ catch (err) {
2966
+ LogError(`Default FK lookup also failed for ${this.FieldName}: ${err instanceof Error ? err.message : String(err)}`);
2967
+ return [];
2624
2968
  }
2625
- this.cdr.markForCheck();
2969
+ }
2970
+ /**
2971
+ * Hydrate the user's last picks for this field into rows. Run through the related entity's
2972
+ * own view, under the strategy's {@link FKLookupStrategy.RecentFilter}, so a record that has
2973
+ * since been deleted, that the user may no longer read, or that the field no longer offers
2974
+ * simply stops appearing rather than leading the list.
2975
+ */
2976
+ async loadRecentPicks(context) {
2977
+ const hostEntity = this.Record?.EntityInfo?.Name ?? '';
2978
+ // The linked value is pinned above the grid already; it is not "recent" as well.
2979
+ const current = this.Value;
2980
+ const ids = LinkedFieldOptionsStore.Instance
2981
+ .RecentPicks(hostEntity, this.FieldName)
2982
+ .filter(id => current == null || current === '' || !UUIDsEqual(String(current), id))
2983
+ .slice(0, MjFormFieldComponent.FK_RECENT_SHOWN);
2984
+ if (ids.length === 0 || context.RelatedEntity.PrimaryKeys.length !== 1)
2985
+ return [];
2986
+ const result = await RunView.FromMetadataProvider(context.Provider).RunView({
2987
+ EntityName: context.RelatedEntity.Name,
2988
+ ExtraFilter: CombineFilters(`[${context.PkField}] IN (${QuoteSqlIdList(ids)})`, this.resolveStrategy().RecentFilter(context)),
2989
+ ResultType: 'simple',
2990
+ Fields: context.Fields,
2991
+ });
2992
+ if (!result.Success)
2993
+ return [];
2994
+ // Re-impose the stored order: the view returns whatever order it likes, but "recent" is
2995
+ // only useful if the most recent is first.
2996
+ const byId = new Map(result.Results.map(r => [String(r[context.PkField]).toLowerCase(), r]));
2997
+ return ids
2998
+ .map(id => byId.get(id.toLowerCase()))
2999
+ .filter((r) => !!r)
3000
+ .map(Values => ({ Values }));
2626
3001
  }
2627
3002
  // ============================================
2628
3003
  // VALUE LIST AUTOCOMPLETE (for 'autocomplete' type)
@@ -2871,8 +3246,8 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2871
3246
  * correct way to show it is in the zone it was written in. A `datetime`/`datetimeoffset` names
2872
3247
  * an instant, and the correct way to show THAT is the reader's local zone.
2873
3248
  */
2874
- get IsDateOnlyField() {
2875
- return (this.FieldInfo?.Type ?? '').trim().toLowerCase() === 'date';
3249
+ get isDateOnlyField() {
3250
+ return IsDateOnlySQLType(this.FieldInfo?.Type);
2876
3251
  }
2877
3252
  FormatValue() {
2878
3253
  const val = this.Value;
@@ -2896,14 +3271,29 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2896
3271
  * zone the day is computed in. A TIMESTAMP is left exactly as it was: it names an instant,
2897
3272
  * and local time is the right way to show one.
2898
3273
  */
2899
- if (this.IsDateOnlyField) {
2900
- return val.toLocaleDateString(undefined, { timeZone: 'UTC' });
3274
+ if (this.isDateOnlyField) {
3275
+ return FormatDateOnly(val);
2901
3276
  }
2902
3277
  return val.toLocaleString();
2903
3278
  }
2904
3279
  return String(val);
2905
3280
  }
2906
3281
  ngOnChanges(changes) {
3282
+ // Everything the section derives from this field (required-and-empty, dirty, hidden, which
3283
+ // errors it owns) follows from these inputs, and the section may already have been checked
3284
+ // this pass — see FormSectionFieldHost.NotifyFieldChanged. Guarded, because `[FormContext]`
3285
+ // is bound to a getter that returns a fresh object every pass, so this hook runs every pass.
3286
+ const firstBinding = !this._inputsBound;
3287
+ this._inputsBound = true;
3288
+ if (this.sectionHost) {
3289
+ const context = changes['FormContext'];
3290
+ const sectionRelevant = firstBinding
3291
+ || !!changes['Record'] || !!changes['FieldName'] || !!changes['EditMode']
3292
+ || !!changes['HideWhenEmptyInReadOnlyMode'] || !!changes['DisplayNameOverride']
3293
+ || (!!context && SectionRelevantFormContextChanged(context.previousValue, context.currentValue));
3294
+ if (sectionRelevant)
3295
+ this.sectionHost.NotifyFieldChanged(this);
3296
+ }
2907
3297
  // Field security depends on both the record's entity and which field this is, so the
2908
3298
  // memoized answer has to be dropped whenever either changes.
2909
3299
  if (changes['Record'] || changes['FieldName']) {
@@ -2938,6 +3328,11 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2938
3328
  this.cancelPendingFKSearch();
2939
3329
  this.stopScrollListener();
2940
3330
  this._fkColumnPlan = null;
3331
+ this._fkStrategy = null; // a different field may resolve a different strategy
3332
+ this._fkStrategyIsRegistered = false;
3333
+ this.FKGroups = [];
3334
+ this.FKScopeLabels = null;
3335
+ this.FKScope = 'primary';
2941
3336
  this._resolvedFKName = undefined;
2942
3337
  this._resolvedFKValue = undefined;
2943
3338
  this._fkNameLoading = false;
@@ -2963,6 +3358,7 @@ export class MjFormFieldComponent extends BaseAngularComponent {
2963
3358
  }
2964
3359
  ngOnDestroy() {
2965
3360
  this._destroyed = true;
3361
+ this.sectionHost?.UnregisterField(this);
2966
3362
  // Retire the sequence too, not just the debounce: a lookup still in flight would otherwise
2967
3363
  // land on a destroyed component, reopen the panel and re-arm document listeners with no
2968
3364
  // owner left to remove them.
@@ -3224,17 +3620,17 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3224
3620
  return false;
3225
3621
  return this.DateInputValue === '';
3226
3622
  }
3227
- static ɵfac = /*@__PURE__*/ (() => { let ɵMjFormFieldComponent_BaseFactory; return function MjFormFieldComponent_Factory(__ngFactoryType__) { return (ɵMjFormFieldComponent_BaseFactory || (ɵMjFormFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MjFormFieldComponent)))(__ngFactoryType__ || MjFormFieldComponent); }; })();
3228
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormFieldComponent, selectors: [["mj-form-field"]], 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" }, outputs: { ValueChange: "ValueChange", Navigate: "Navigate" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["scopeRow", ""], ["imageFileInput", ""], [1, "mj-forms-field", 3, "mj-forms-field--readonly", "mj-forms-field--dirty"], [1, "mj-forms-field", "mj-forms-field--editing", 3, "mj-forms-field--dirty", "mj-forms-field--required-empty", "mj-forms-field--has-error", "mj-forms-field--has-warning"], [1, "mj-forms-field"], [1, "mj-forms-field-label", 3, "innerHTML"], [1, "mj-forms-field-control"], [1, "mj-forms-field-value"], [1, "mj-forms-image"], [1, "mj-forms-color"], [1, "mj-forms-json"], ["title", "View related record", 1, "mj-forms-field-link", "mj-forms-field-link--fk"], ["title", "View related record", 1, "mj-forms-field-link", "mj-forms-field-link--fk", 3, "click"], ["alt", "", 1, "mj-forms-image-preview", 3, "src"], [1, "mj-forms-image-meta"], ["title", "Open image", 1, "mj-forms-field-link"], ["title", "Open image", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-arrow-up-right-from-square", "mj-forms-field-link-icon"], [1, "mj-forms-color-swatch"], ["title", "Send email", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-envelope", "mj-forms-field-link-icon"], ["title", "Open link", 1, "mj-forms-field-link", 3, "click"], ["title", "View related record", 1, "mj-forms-field-link"], ["title", "View related record", 1, "mj-forms-field-link", 3, "click"], [1, "mj-forms-field-value", "mj-forms-field-value--rich"], [1, "mj-forms-field-value", "mj-forms-field-value--rich", 3, "innerHTML"], [1, "mj-forms-field-value", "mj-forms-field-value--code"], [1, "mj-forms-field-value", "mj-forms-field-value--long"], [1, "mj-forms-field-checkbox"], ["type", "checkbox", "disabled", "", 3, "checked"], [3, "data"], [3, "value", "language", "readonly"], [1, "mj-forms-field", "mj-forms-field--editing"], [1, "mj-fk-search", 3, "mj-fk-search--matched", "mj-fk-search--scoped"], [1, "mj-forms-image", "mj-forms-image--edit"], [1, "mj-forms-color", "mj-forms-color--edit"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "value"], [1, "mj-forms-field-input--code", 3, "value", "language"], [1, "mj-forms-field-validation", "mj-forms-field-validation--error"], [1, "mj-forms-field-validation", "mj-forms-field-validation--warning"], [1, "mj-fk-search"], ["title", "Linked record", 1, "fa-solid", "fa-link", "mj-fk-link-icon"], ["type", "text", "placeholder", "Search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "keydown", "value"], [1, "mj-fk-scope-pill", 3, "mj-fk-scope-pill--open", "title"], ["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"], ["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-grid-row", 3, "mj-fk-grid-row--active", "mj-fk-grid-row--selected"], [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", 3, "mousedown", "mouseenter"], [1, "mj-fk-cell", "mj-fk-cell--icon"], [3, "class"], [1, "mj-fk-cell", "mj-fk-cell--name", 3, "mj-fk-cell--fill"], [1, "mj-fk-cell", 3, "mj-fk-cell--fill", "title"], [1, "mj-fk-cell", "mj-fk-cell--name"], ["title", "Currently selected", 1, "fa-solid", "fa-check", "mj-fk-selected-check"], [3, "innerHTML"], [1, "mj-fk-cell", 3, "title"], ["type", "button", 1, "mj-fk-create-footer", 3, "mousedown", "title"], [1, "fa-solid", "fa-plus", "mj-fk-create-icon"], [1, "mj-fk-create-label"], ["aria-hidden", "true", 1, "mj-forms-image-preview", "mj-forms-image-preview--empty"], [1, "mj-forms-image-hint"], [1, "mj-forms-image-actions"], ["type", "file", "accept", "image/png,image/jpeg,image/gif,image/webp,image/svg+xml", 1, "mj-forms-image-file", 3, "change"], ["type", "button", 1, "mj-forms-image-btn", 3, "click"], [1, "fa-solid", "fa-upload"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost"], ["type", "text", "placeholder", "https://\u2026 or paste a data URI", 1, "mj-forms-field-input", 3, "input", "value"], [1, "fa-regular", "fa-image"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost", 3, "click"], ["type", "color", 1, "mj-forms-color-picker", 3, "input", "value"], ["type", "text", "placeholder", "#RRGGBB", 1, "mj-forms-field-input", "mj-forms-color-hex", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "input", "blur", "value"], [1, "mj-forms-field-input--code", 3, "change", "value", "language"], ["type", "text", 1, "mj-forms-field-input", 3, "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "value"], ["type", "text", 1, "mj-forms-field-input", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "input", "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "change", "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "change", "value"], ["type", "checkbox", 3, "change", "checked"], ["tabindex", "0", 1, "mj-custom-select-trigger", 3, "click", "blur"], [1, "mj-custom-select-value"], [1, "fa-solid", "fa-chevron-down", "mj-custom-select-chevron"], [1, "mj-fk-dropdown", 3, "ngStyle", "mj-fk-dropdown--above"], [1, "mj-fk-dropdown", 3, "ngStyle"], [1, "mj-fk-option", 3, "mj-fk-option--selected"], [1, "mj-fk-option", 3, "mousedown"], ["type", "text", "placeholder", "Type to search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "value"], [1, "mj-fk-option"], ["type", "text", 1, "mj-forms-field-input", 3, "change", "value"], [1, "mj-forms-field-validation-item"], [1, "fa-solid", "fa-circle-exclamation"], [1, "fa-solid", "fa-triangle-exclamation"]], template: function MjFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
3623
+ static ɵfac = function MjFormFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MjFormFieldComponent)(); };
3624
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormFieldComponent, selectors: [["mj-form-field"]], inputs: { Record: "Record", EditMode: "EditMode", FieldName: "FieldName", Type: "Type", LinkType: "LinkType", ShowLabel: "ShowLabel", FormContext: "FormContext", _deprecatedRecord: [0, "record", "_deprecatedRecord"], _deprecatedFormContext: [0, "formContext", "_deprecatedFormContext"], HideWhenEmptyInReadOnlyMode: "HideWhenEmptyInReadOnlyMode", DisplayNameOverride: "DisplayNameOverride", PossibleValuesOverride: "PossibleValuesOverride", FKDropdownMaxWidth: "FKDropdownMaxWidth", FKHighlightMatches: "FKHighlightMatches", AllowFKCreate: "AllowFKCreate", FKCreatePresentation: "FKCreatePresentation", FKExtraFilter: "FKExtraFilter", FKOrderBy: "FKOrderBy", FKMaxRows: "FKMaxRows", FKLookupOptions: "FKLookupOptions" }, outputs: { ValueChange: "ValueChange", Navigate: "Navigate" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["scopeRow", ""], ["imageFileInput", ""], [1, "mj-forms-field", 3, "mj-forms-field--readonly", "mj-forms-field--dirty"], [1, "mj-forms-field", "mj-forms-field--editing", 3, "mj-forms-field--dirty", "mj-forms-field--required-empty", "mj-forms-field--has-error", "mj-forms-field--has-warning"], [1, "mj-forms-field"], [1, "mj-forms-field-label", 3, "innerHTML"], [1, "mj-forms-field-control"], [1, "mj-forms-field-value"], [1, "mj-forms-image"], [1, "mj-forms-color"], [1, "mj-forms-json"], ["title", "View related record", 1, "mj-forms-field-link", "mj-forms-field-link--fk"], ["title", "View related record", 1, "mj-forms-field-link", "mj-forms-field-link--fk", 3, "click"], ["alt", "", 1, "mj-forms-image-preview", 3, "src"], [1, "mj-forms-image-meta"], ["title", "Open image", 1, "mj-forms-field-link"], ["title", "Open image", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-arrow-up-right-from-square", "mj-forms-field-link-icon"], [1, "mj-forms-color-swatch"], ["title", "Send email", 1, "mj-forms-field-link", 3, "click"], [1, "fa-solid", "fa-envelope", "mj-forms-field-link-icon"], ["title", "Open link", 1, "mj-forms-field-link", 3, "click"], ["title", "View related record", 1, "mj-forms-field-link"], ["title", "View related record", 1, "mj-forms-field-link", 3, "click"], [1, "mj-forms-field-value", "mj-forms-field-value--rich"], [1, "mj-forms-field-value", "mj-forms-field-value--rich", 3, "innerHTML"], [1, "mj-forms-field-value", "mj-forms-field-value--code"], [1, "mj-forms-field-value", "mj-forms-field-value--long"], [1, "mj-forms-field-checkbox"], ["type", "checkbox", "disabled", "", 3, "checked"], [3, "data"], [3, "value", "language", "readonly"], [1, "mj-forms-field", "mj-forms-field--editing"], [1, "mj-fk-search", 3, "mj-fk-search--matched", "mj-fk-search--scoped", "mj-fk-search--toggle"], [1, "mj-forms-image", "mj-forms-image--edit"], [1, "mj-forms-color", "mj-forms-color--edit"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "value"], [1, "mj-forms-field-input--code", 3, "value", "language"], [1, "mj-forms-field-validation", "mj-forms-field-validation--error"], [1, "mj-forms-field-validation", "mj-forms-field-validation--warning"], [1, "mj-fk-search"], ["title", "Linked record", 1, "fa-solid", "fa-link", "mj-fk-link-icon"], ["type", "text", "placeholder", "Search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "keydown", "value"], [1, "mj-fk-scope-pill", 3, "mj-fk-scope-pill--open", "title"], ["type", "button", 1, "mj-fk-scope-toggle", 3, "title"], ["title", "Clear", 1, "mj-fk-clear"], [1, "fa-solid", "fa-magnifying-glass", "mj-fk-search-icon"], [1, "mj-fk-dropdown", "mj-fk-dropdown--multi", 3, "ngStyle", "mj-fk-dropdown--above", "mj-fk-dropdown--scope-open"], [1, "mj-fk-scope-pill", 3, "mousedown", "title"], [1, "fa-solid", "fa-magnifying-glass", "mj-fk-scope-pill-icon"], [1, "mj-fk-scope-pill-label"], [1, "fa-solid", "mj-fk-scope-pill-caret"], ["type", "button", 1, "mj-fk-scope-toggle", 3, "mousedown", "title"], ["title", "Clear", 1, "mj-fk-clear", 3, "mousedown"], [1, "fa-solid", "fa-xmark"], [1, "mj-fk-dropdown", "mj-fk-dropdown--multi", 3, "ngStyle"], [1, "mj-fk-scope-menu", 3, "mj-fk-scope-menu--bottom"], [1, "mj-fk-current"], [1, "mj-fk-status"], [1, "mj-fk-status", "mj-fk-status--empty"], [1, "mj-fk-options"], ["type", "button", 1, "mj-fk-create-footer", 3, "title"], [1, "mj-fk-scope-menu"], [1, "mj-fk-scope-grp"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "mj-fk-scope-divider"], [1, "mj-fk-scope-mi", 3, "mousedown"], [1, "mj-fk-col-reorder"], [1, "mj-fk-scope-mi-label"], [1, "mj-fk-col-eye-slot"], ["type", "button", 1, "mj-fk-col-toggle", 3, "mj-fk-col-toggle--on", "title"], ["type", "button", "title", "Move column up", 1, "mj-fk-col-move", "mj-fk-col-move--up", 3, "mousedown", "disabled"], [1, "fa-solid", "fa-chevron-up"], ["type", "button", "title", "Move column down", 1, "mj-fk-col-move", "mj-fk-col-move--down", 3, "mousedown", "disabled"], [1, "fa-solid", "fa-chevron-down"], ["type", "button", 1, "mj-fk-col-toggle", 3, "mousedown", "title"], [1, "fa-solid"], [1, "mj-fk-current-head"], [1, "fa-solid", "fa-circle-check"], ["title", "Keep this selection", 1, "mj-fk-current-row", 3, "mousedown"], [1, "mj-fk-current-icon", 3, "class"], [1, "mj-fk-current-name", 3, "innerHTML"], [1, "mj-fk-current-detail"], ["type", "button", "title", "Clear selection", 1, "mj-fk-current-clear", 3, "mousedown"], [1, "mj-fk-current-icon"], [1, "fa-solid", "fa-circle-notch", "fa-spin"], [1, "fa-solid", "fa-magnifying-glass"], [1, "mj-fk-grid"], [1, "mj-fk-grid-row", "mj-fk-grid-row--header"], [1, "mj-fk-hcell", "mj-fk-hcell--icon"], [1, "mj-fk-hcell", 3, "title"], [1, "mj-fk-hcell", 3, "mousedown", "title"], [1, "mj-fk-hcell-label"], ["title", "Drag to resize", 1, "mj-fk-resizer", 3, "mousedown"], [1, "mj-fk-grid-row", "mj-fk-group-head"], [1, "mj-fk-grid-row", 3, "mj-fk-grid-row--active", "mj-fk-grid-row--selected"], [1, "mj-fk-grid-row", "mj-fk-group-head", 3, "mousedown"], [1, "mj-fk-grid-row", 3, "mousedown", "mouseenter"], [1, "mj-fk-cell", "mj-fk-cell--icon"], [3, "class"], [1, "mj-fk-cell", "mj-fk-cell--name", 3, "mj-fk-cell--fill"], [1, "mj-fk-cell", 3, "mj-fk-cell--fill", "title"], [1, "mj-fk-cell", "mj-fk-cell--name"], ["title", "Currently selected", 1, "fa-solid", "fa-check", "mj-fk-selected-check"], [1, "mj-fk-name-line"], [3, "innerHTML"], [1, "mj-fk-chip", 3, "mj-fk-chip--info", "mj-fk-chip--warn"], [1, "mj-fk-secondary"], [1, "mj-fk-chip"], [1, "mj-fk-cell", 3, "title"], ["type", "button", 1, "mj-fk-create-footer", 3, "mousedown", "title"], [1, "fa-solid", "fa-plus", "mj-fk-create-icon"], [1, "mj-fk-create-label"], ["aria-hidden", "true", 1, "mj-forms-image-preview", "mj-forms-image-preview--empty"], [1, "mj-forms-image-hint"], [1, "mj-forms-image-actions"], ["type", "file", "accept", "image/png,image/jpeg,image/gif,image/webp,image/svg+xml", 1, "mj-forms-image-file", 3, "change"], ["type", "button", 1, "mj-forms-image-btn", 3, "click"], [1, "fa-solid", "fa-upload"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost"], ["type", "text", "placeholder", "https://\u2026 or paste a data URI", 1, "mj-forms-field-input", 3, "input", "value"], [1, "fa-regular", "fa-image"], ["type", "button", 1, "mj-forms-image-btn", "mj-forms-image-btn--ghost", 3, "click"], ["type", "color", 1, "mj-forms-color-picker", 3, "input", "value"], ["type", "text", "placeholder", "#RRGGBB", 1, "mj-forms-field-input", "mj-forms-color-hex", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", "mj-forms-json", 3, "input", "blur", "value"], [1, "mj-forms-field-input--code", 3, "change", "value", "language"], ["type", "text", 1, "mj-forms-field-input", 3, "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "value"], ["type", "text", 1, "mj-forms-field-input", 3, "input", "value"], [1, "mj-forms-field-input", "mj-forms-field-input--textarea", 3, "input", "value"], ["type", "number", 1, "mj-forms-field-input", "mj-forms-field-input--number", 3, "change", "value"], ["type", "date", 1, "mj-forms-field-input", "mj-forms-field-input--date", 3, "change", "value"], ["type", "checkbox", 3, "change", "checked"], ["tabindex", "0", 1, "mj-custom-select-trigger", 3, "click", "blur"], [1, "mj-custom-select-value"], [1, "fa-solid", "fa-chevron-down", "mj-custom-select-chevron"], [1, "mj-fk-dropdown", 3, "ngStyle", "mj-fk-dropdown--above"], [1, "mj-fk-dropdown", 3, "ngStyle"], [1, "mj-fk-option", 3, "mj-fk-option--selected"], [1, "mj-fk-option", 3, "mousedown"], ["type", "text", "placeholder", "Type to search...", 1, "mj-forms-field-input", 3, "input", "focus", "blur", "value"], [1, "mj-fk-option"], ["type", "text", 1, "mj-forms-field-input", 3, "change", "value"], [1, "mj-forms-field-validation-item"], [1, "fa-solid", "fa-circle-exclamation"], [1, "fa-solid", "fa-triangle-exclamation"]], template: function MjFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
3229
3625
  i0.ɵɵconditionalCreate(0, MjFormFieldComponent_Conditional_0_Template, 2, 2);
3230
3626
  } if (rf & 2) {
3231
3627
  i0.ɵɵconditional(ctx.IsFieldReadableByUser && ctx.Record && (ctx.Record.IsSaved || !ctx.IsFieldReadOnly) ? 0 : -1);
3232
- } }, dependencies: [i1.NgTemplateOutlet, i1.NgStyle, i2.MarkdownComponent, i3.CodeEditorComponent, i4.MJSafeRichHtmlPipe], styles: ["\n\n\n[_nghost-%COMP%] {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n\n.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.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\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@media (max-width: 640px) {\n .mj-forms-field[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n\n .mj-forms-field-label[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n\n .mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 1;\n }\n}"], changeDetection: 0 });
3628
+ } }, dependencies: [i1.NgTemplateOutlet, i1.NgStyle, i2.MarkdownComponent, i3.CodeEditorComponent, i4.MJSafeRichHtmlPipe], styles: ["\n\n\n[_nghost-%COMP%] {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n\n.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@media (max-width: 640px) {\n .mj-forms-field[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n gap: 4px;\n }\n\n .mj-forms-field-label[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n\n .mj-forms-field-validation[_ngcontent-%COMP%] {\n grid-column: 1;\n }\n}"], changeDetection: 0 });
3233
3629
  }
3234
3630
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjFormFieldComponent, [{
3235
3631
  type: Component,
3236
- args: [{ standalone: false, selector: 'mj-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n IsFieldReadableByUser is FIRST deliberately. BaseEntity.Get() throws for a field the user\n cannot read, so every expression below \u2014 Value, ShouldHideField, the FK resolution \u2014 is only\n safe once this has short-circuited. A denied field renders nothing at all.\n-->\n@if (IsFieldReadableByUser && Record && (Record.IsSaved || !IsFieldReadOnly)) {\n <!-- READ-ONLY MODE -->\n @if ((!EditMode || IsFieldReadOnly) && !ShouldHideField) {\n <div class=\"mj-forms-field\" [class.mj-forms-field--readonly]=\"EditMode && IsFieldReadOnly\" [class.mj-forms-field--dirty]=\"IsDirty\">\n @if (ShowLabel) {\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n }\n <div class=\"mj-forms-field-control\">\n <!-- FK fields with a mapped name field: show the name as a hyperlink -->\n @if (IsFKWithNameField) {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link mj-forms-field-link--fk\" (click)=\"OnRecordLinkClick($event)\" title=\"View related record\">\n {{ FKDisplayName }}\n </a>\n } @else {\n {{ FKDisplayName }}\n }\n </span>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n }\n @if (IsInlineImageValue) {\n <span class=\"mj-forms-image-meta\">Inline image ({{ ImageValueSizeLabel }})</span>\n } @else if (ImagePreviewSrc) {\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open image\">\n {{ ImageUrlDisplay }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color\">\n <span class=\"mj-forms-color-swatch\" [style.background-color]=\"ColorSwatchValue\"></span>\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <pre class=\"mj-forms-json\">{{ JsonDisplayValue }}</pre>\n }\n @else {\n @switch (LinkType) {\n @case ('Email') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnEmailLinkClick($event)\" title=\"Send email\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-envelope mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('URL') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open link\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('Record') {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link\" (click)=\"OnRecordLinkClick($event)\" title=\"View related record\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n {{ FormatValue() }}\n }\n </span>\n }\n @default {\n @if (Type === 'checkbox') {\n <span class=\"mj-forms-field-value\">\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\" [checked]=\"!!Value\" disabled>\n </div>\n </span>\n }\n @else if (RichTextMode === 'markdown') {\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\">\n <mj-markdown [data]=\"FormatValue()\"></mj-markdown>\n </div>\n }\n @else if (RichTextMode === 'html') {\n <!-- XSS: the mjSafeRichHtml pipe sanitizes with DOMPurify (HTML + SVG profiles)\n and then bypasses Angular's redundant re-sanitize. DOMPurify strips <script>,\n on* handlers, javascript:/data: URLs and <foreignObject> while KEEPING safe\n inline SVG + styles \u2014 richer than Angular's built-in sanitizer, still safe for\n untrusted content. -->\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\" [innerHTML]=\"FormatValue() | mjSafeRichHtml\"></div>\n }\n @else if (RichTextMode === 'code') {\n <div class=\"mj-forms-field-value mj-forms-field-value--code\">\n <mj-code-editor [value]=\"FormatValue()\" [language]=\"CodeEditorLanguage\" [readonly]=\"true\"></mj-code-editor>\n </div>\n }\n @else if (IsLongText) {\n <span class=\"mj-forms-field-value mj-forms-field-value--long\">{{ FormatValue() }}</span>\n }\n @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n }\n }\n }\n </div>\n </div>\n }\n\n <!-- EDIT MODE -->\n @if (EditMode && !IsFieldReadOnly) {\n <div class=\"mj-forms-field mj-forms-field--editing\" [class.mj-forms-field--dirty]=\"IsDirty\" [class.mj-forms-field--required-empty]=\"IsRequiredEmpty\" [class.mj-forms-field--has-error]=\"ShowErrors\" [class.mj-forms-field--has-warning]=\"ShowWarnings || StoredDateIsUnreadable\">\n @if (ShowLabel) {\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n }\n <div class=\"mj-forms-field-control\">\n <!-- Foreign Key fields get custom search autocomplete -->\n @if (HasRelatedEntity) {\n <div class=\"mj-fk-search\"\n [class.mj-fk-search--matched]=\"FKHasLinkedValue\"\n [class.mj-fk-search--scoped]=\"FKFocused && FKSearchableFields.length > 1\">\n @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 @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 -->\n @for (suggestion of FKSuggestions; track suggestion.PrimaryKeyValue; let i = $index) {\n <div class=\"mj-fk-grid-row\"\n [class.mj-fk-grid-row--active]=\"i === FKActiveIndex\"\n [class.mj-fk-grid-row--selected]=\"IsFKRowSelected(suggestion)\"\n (mousedown)=\"OnFKSelectItem(suggestion, $event)\"\n (mouseenter)=\"FKActiveIndex = i\">\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 [innerHTML]=\"suggestion.HighlightedName\"></span>\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 </div>\n </div>\n }\n\n <!-- Sticky \"create new\" footer \u2014 always visible at the bottom (no scrolling),\n prefilled with the typed text. Gated on create permission. -->\n @if (CanCreateFK) {\n <button type=\"button\" class=\"mj-fk-create-footer\" (mousedown)=\"OnFKCreateNew($event)\" [title]=\"FKCreateLabel\">\n <i class=\"fa-solid fa-plus mj-fk-create-icon\"></i>\n <span class=\"mj-fk-create-label\">{{ FKCreateLabel }}</span>\n </button>\n }\n </div>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image mj-forms-image--edit\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n } @else {\n <div class=\"mj-forms-image-preview mj-forms-image-preview--empty\" aria-hidden=\"true\">\n <i class=\"fa-regular fa-image\"></i>\n </div>\n }\n <div class=\"mj-forms-image-meta\">\n @if (IsInlineImageValue) {\n <span>Inline image ({{ ImageValueSizeLabel }})</span>\n }\n <span class=\"mj-forms-image-hint\">Max {{ ImageMaxSizeLabel }}</span>\n </div>\n <div class=\"mj-forms-image-actions\">\n <input #imageFileInput type=\"file\" accept=\"image/png,image/jpeg,image/gif,image/webp,image/svg+xml\"\n class=\"mj-forms-image-file\" (change)=\"OnImageFileSelected($event)\">\n <button type=\"button\" class=\"mj-forms-image-btn\" (click)=\"imageFileInput.click()\">\n <i class=\"fa-solid fa-upload\"></i>\n {{ ImagePreviewSrc ? 'Replace' : 'Upload' }}\n </button>\n @if (ImagePreviewSrc) {\n <button type=\"button\" class=\"mj-forms-image-btn mj-forms-image-btn--ghost\" (click)=\"OnImageClear()\">Clear</button>\n }\n </div>\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"ImageUrlInputValue\"\n (input)=\"OnImageUrlInput($event)\"\n placeholder=\"https://\u2026 or paste a data URI\">\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color mj-forms-color--edit\">\n <input type=\"color\"\n class=\"mj-forms-color-picker\"\n [value]=\"ColorPickerValue\"\n (input)=\"OnColorPickerInput($event)\"\n [attr.aria-label]=\"DisplayName + ' color'\">\n <input type=\"text\"\n class=\"mj-forms-field-input mj-forms-color-hex\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n placeholder=\"#RRGGBB\">\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea mj-forms-json\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n (blur)=\"OnJsonBlur()\"></textarea>\n }\n @else if (EditRichTextMode !== 'plain') {\n <!-- Markdown / HTML / Code long-text: edit raw with a syntax-highlighted code editor -->\n <mj-code-editor\n class=\"mj-forms-field-input--code\"\n [value]=\"FormatValue()\"\n [language]=\"CodeEditorLanguage\"\n (change)=\"OnCodeEditorChange($event)\"></mj-code-editor>\n }\n @else {\n @switch (Type) {\n @case ('textbox') {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\">\n }\n @case ('textarea') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"></textarea>\n }\n @case ('number') {\n <input type=\"number\"\n class=\"mj-forms-field-input mj-forms-field-input--number\"\n [value]=\"Value\"\n (change)=\"OnNumberChange($event)\">\n }\n @case ('datepicker') {\n <input type=\"date\"\n class=\"mj-forms-field-input mj-forms-field-input--date\"\n [value]=\"DateInputValue\"\n (change)=\"OnDateChange($event)\">\n }\n @case ('checkbox') {\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\"\n [checked]=\"!!Value\"\n (change)=\"OnCheckboxChange($event)\">\n </div>\n }\n @case ('select') {\n <div class=\"mj-custom-select-trigger\"\n tabindex=\"0\"\n (click)=\"OnSelectTriggerClick($event)\"\n (blur)=\"OnSelectTriggerBlur()\">\n <span class=\"mj-custom-select-value\" [class.mj-custom-select-value--placeholder]=\"!FormatValue()\">\n {{ FormatValue() || '-- Select --' }}\n </span>\n <i class=\"fa-solid fa-chevron-down mj-custom-select-chevron\" [class.mj-custom-select-chevron--open]=\"ShowSelectDropdown\"></i>\n </div>\n @if (ShowSelectDropdown && PossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of PossibleValues; track option) {\n <div class=\"mj-fk-option\" [class.mj-fk-option--selected]=\"FormatValue() === option\" (mousedown)=\"OnSelectOptionClick(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n }\n @case ('autocomplete') {\n <div class=\"mj-fk-search\">\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnValueListInput($event)\"\n (focus)=\"OnValueListFocus($event)\"\n (blur)=\"OnValueListBlur()\"\n placeholder=\"Type to search...\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n @if (ShowValueListDropdown && FilteredPossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of FilteredPossibleValues; track option) {\n <div class=\"mj-fk-option\" (mousedown)=\"OnValueListSelect(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n </div>\n }\n @default {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (change)=\"OnInputChange($event)\">\n }\n }\n }\n </div>\n <!-- Inline validation messages -->\n @if (DisplayErrors.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--error\">\n @for (error of DisplayErrors; track error.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>{{ error.Message }}</span>\n </div>\n }\n </div>\n }\n @if (DisplayWarnings.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n @for (warning of DisplayWarnings; track warning.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ warning.Message }}</span>\n </div>\n }\n </div>\n }\n <!--\n An unreadable stored value renders as an EMPTY date box, identical to a field that\n was never set - and the next save writes that emptiness over whatever is stored. The\n element cannot display the bad value itself, so the warning sits with the other validation messages, beneath the control.\n -->\n @if (StoredDateIsUnreadable) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>This field holds a value that is not a readable date, so the box above is\n empty. Saving now will replace it.</span>\n </div>\n </div>\n }\n </div>\n }\n}\n", styles: ["/* ============================================\n FORM FIELD - Shared styles for read and edit\n ============================================ */\n:host {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n/* 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.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}\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@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"] }]
3237
- }], null, { Record: [{
3632
+ args: [{ standalone: false, selector: 'mj-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n IsFieldReadableByUser is FIRST deliberately. BaseEntity.Get() throws for a field the user\n cannot read, so every expression below \u2014 Value, ShouldHideField, the FK resolution \u2014 is only\n safe once this has short-circuited. A denied field renders nothing at all.\n-->\n@if (IsFieldReadableByUser && Record && (Record.IsSaved || !IsFieldReadOnly)) {\n <!-- READ-ONLY MODE -->\n @if ((!EditMode || IsFieldReadOnly) && !ShouldHideField) {\n <div class=\"mj-forms-field\" [class.mj-forms-field--readonly]=\"EditMode && IsFieldReadOnly\" [class.mj-forms-field--dirty]=\"IsDirty\">\n @if (ShowLabel) {\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n }\n <div class=\"mj-forms-field-control\">\n <!-- FK fields with a mapped name field: show the name as a hyperlink -->\n @if (IsFKWithNameField) {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link mj-forms-field-link--fk\" (click)=\"OnRecordLinkClick($event)\" title=\"View related record\">\n {{ FKDisplayName }}\n </a>\n } @else {\n {{ FKDisplayName }}\n }\n </span>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n }\n @if (IsInlineImageValue) {\n <span class=\"mj-forms-image-meta\">Inline image ({{ ImageValueSizeLabel }})</span>\n } @else if (ImagePreviewSrc) {\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open image\">\n {{ ImageUrlDisplay }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color\">\n <span class=\"mj-forms-color-swatch\" [style.background-color]=\"ColorSwatchValue\"></span>\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <pre class=\"mj-forms-json\">{{ JsonDisplayValue }}</pre>\n }\n @else {\n @switch (LinkType) {\n @case ('Email') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnEmailLinkClick($event)\" title=\"Send email\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-envelope mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('URL') {\n <span class=\"mj-forms-field-value\">\n <a class=\"mj-forms-field-link\" (click)=\"OnUrlLinkClick($event)\" title=\"Open link\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n </span>\n }\n @case ('Record') {\n <span class=\"mj-forms-field-value\">\n @if (RecordLinksEnabled) {\n <a class=\"mj-forms-field-link\" (click)=\"OnRecordLinkClick($event)\" title=\"View related record\">\n {{ FormatValue() }}\n <i class=\"fa-solid fa-arrow-up-right-from-square mj-forms-field-link-icon\"></i>\n </a>\n } @else {\n {{ FormatValue() }}\n }\n </span>\n }\n @default {\n @if (Type === 'checkbox') {\n <span class=\"mj-forms-field-value\">\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\" [checked]=\"!!Value\" disabled>\n </div>\n </span>\n }\n @else if (RichTextMode === 'markdown') {\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\">\n <mj-markdown [data]=\"FormatValue()\"></mj-markdown>\n </div>\n }\n @else if (RichTextMode === 'html') {\n <!-- XSS: the mjSafeRichHtml pipe sanitizes with DOMPurify (HTML + SVG profiles)\n and then bypasses Angular's redundant re-sanitize. DOMPurify strips <script>,\n on* handlers, javascript:/data: URLs and <foreignObject> while KEEPING safe\n inline SVG + styles \u2014 richer than Angular's built-in sanitizer, still safe for\n untrusted content. -->\n <div class=\"mj-forms-field-value mj-forms-field-value--rich\" [innerHTML]=\"FormatValue() | mjSafeRichHtml\"></div>\n }\n @else if (RichTextMode === 'code') {\n <div class=\"mj-forms-field-value mj-forms-field-value--code\">\n <mj-code-editor [value]=\"FormatValue()\" [language]=\"CodeEditorLanguage\" [readonly]=\"true\"></mj-code-editor>\n </div>\n }\n @else if (IsLongText) {\n <span class=\"mj-forms-field-value mj-forms-field-value--long\">{{ FormatValue() }}</span>\n }\n @else {\n <span class=\"mj-forms-field-value\">{{ FormatValue() }}</span>\n }\n }\n }\n }\n </div>\n </div>\n }\n\n <!-- EDIT MODE -->\n @if (EditMode && !IsFieldReadOnly) {\n <div class=\"mj-forms-field mj-forms-field--editing\" [class.mj-forms-field--dirty]=\"IsDirty\" [class.mj-forms-field--required-empty]=\"IsRequiredEmpty\" [class.mj-forms-field--has-error]=\"ShowErrors\" [class.mj-forms-field--has-warning]=\"ShowWarnings || StoredDateIsUnreadable\">\n @if (ShowLabel) {\n <label class=\"mj-forms-field-label\" [innerHTML]=\"HighlightedDisplayName\"></label>\n }\n <div class=\"mj-forms-field-control\">\n <!-- Foreign Key fields get custom search autocomplete -->\n @if (HasRelatedEntity) {\n <div class=\"mj-fk-search\"\n [class.mj-fk-search--matched]=\"FKHasLinkedValue\"\n [class.mj-fk-search--scoped]=\"FKFocused && FKSearchableFields.length > 1\"\n [class.mj-fk-search--toggle]=\"FKFocused && !!FKScopeLabels\">\n @if (FKHasLinkedValue && !(FKFocused && FKSearchableFields.length > 1)) {\n <i class=\"fa-solid fa-link mj-fk-link-icon\" title=\"Linked record\"></i>\n }\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [class.mj-forms-field-input--linked]=\"FKHasLinkedValue\"\n [value]=\"FKSearchText\"\n (input)=\"OnFKInput($event)\"\n (focus)=\"OnFKFocus($event)\"\n (blur)=\"OnFKBlur()\"\n (keydown)=\"OnFKKeydown($event)\"\n placeholder=\"Search...\">\n\n <!-- Scope pill: only while focused, only when there's more than one searchable field.\n The menu itself lives INSIDE the results dropdown (below) so it overlays the\n list and rides the same above/below flip. -->\n @if (FKFocused && FKSearchableFields.length > 1) {\n <button class=\"mj-fk-scope-pill\"\n [class.mj-fk-scope-pill--open]=\"FKShowScopeMenu\"\n (mousedown)=\"OnFKScopeToggle($event)\"\n [title]=\"'Searching ' + FKSearchFieldLabel + ' \u2014 click to change'\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-scope-pill-icon\"></i>\n <span class=\"mj-fk-scope-pill-label\">{{ FKSearchFieldLabel }}</span>\n <i class=\"fa-solid mj-fk-scope-pill-caret\" [class.fa-chevron-up]=\"FKShowScopeMenu\" [class.fa-chevron-down]=\"!FKShowScopeMenu\"></i>\n </button>\n }\n\n <!-- Population toggle: only when the resolved lookup strategy offers a second\n population (e.g. customers vs the whole directory). -->\n @if (FKFocused && FKScopeLabels) {\n <button type=\"button\" class=\"mj-fk-scope-toggle\"\n (mousedown)=\"OnFKScopeChange($event)\"\n [title]=\"'Showing ' + (FKScope === 'primary' ? FKScopeLabels.primary : FKScopeLabels.all) + ' \u2014 click to switch'\">\n {{ FKScope === 'primary' ? FKScopeLabels.all : FKScopeLabels.primary }}\n </button>\n }\n\n @if (FKSearchText) {\n <button class=\"mj-fk-clear\" (mousedown)=\"OnFKClearClick($event)\" title=\"Clear\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n } @else {\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n }\n @if (ShowFKDropdown) {\n <div class=\"mj-fk-dropdown mj-fk-dropdown--multi\"\n [ngStyle]=\"DropdownPositionStyle\"\n [class.mj-fk-dropdown--above]=\"OpenAbove\"\n [class.mj-fk-dropdown--scope-open]=\"FKShowScopeMenu\">\n\n <!-- Scope (search-field) picker + column toggles \u2014 overlays the list, anchored to the pill edge.\n Click a row to SEARCH that field; click the eye to SHOW/HIDE it as a column. -->\n @if (FKShowScopeMenu) {\n <div class=\"mj-fk-scope-menu\" [class.mj-fk-scope-menu--bottom]=\"OpenAbove\">\n <div class=\"mj-fk-scope-grp\">Columns shown</div>\n @for (f of FKSearchableFields; track f.FieldName) {\n @if (f.Group === 'shown') {\n <ng-container *ngTemplateOutlet=\"scopeRow; context: { $implicit: f }\"></ng-container>\n }\n }\n @if (FKHasOtherSearchableFields) {\n <div class=\"mj-fk-scope-divider\"></div>\n <div class=\"mj-fk-scope-grp\">Other fields</div>\n @for (f of FKSearchableFields; track f.FieldName) {\n @if (f.Group === 'other') {\n <ng-container *ngTemplateOutlet=\"scopeRow; context: { $implicit: f }\"></ng-container>\n }\n }\n }\n </div>\n }\n\n <!-- Shared scope-menu row, fixed-slot layout for clean alignment:\n [reorder \u25B2\u25BC \u2014 hover-reveal] [icon] [label] [eye].\n Click the row = search this field; the active search row is shown bold+accent. -->\n <ng-template #scopeRow let-f>\n <div class=\"mj-fk-scope-mi\"\n [class.mj-fk-scope-mi--on]=\"IsFKScopeActive(f)\"\n (mousedown)=\"OnFKScopeSelect($event, f)\">\n <span class=\"mj-fk-col-reorder\">\n @if (f.Group === 'shown') {\n <button type=\"button\" class=\"mj-fk-col-move mj-fk-col-move--up\" [disabled]=\"!CanMoveFKColumnUp(f.FieldName)\"\n (mousedown)=\"MoveFKColumn($event, f.FieldName, -1)\" title=\"Move column up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button type=\"button\" class=\"mj-fk-col-move mj-fk-col-move--down\" [disabled]=\"!CanMoveFKColumnDown(f.FieldName)\"\n (mousedown)=\"MoveFKColumn($event, f.FieldName, 1)\" title=\"Move column down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n }\n </span>\n <i [class]=\"f.Icon + ' mj-fk-scope-mi-icon'\"></i>\n <span class=\"mj-fk-scope-mi-label\">{{ f.Label }}</span>\n <span class=\"mj-fk-col-eye-slot\">\n @if (CanToggleFKColumn(f)) {\n <button type=\"button\" class=\"mj-fk-col-toggle\"\n [class.mj-fk-col-toggle--on]=\"IsFKColumnVisible(f)\"\n (mousedown)=\"OnFKColumnToggle($event, f)\"\n [title]=\"IsFKColumnVisible(f) ? 'Hide this column' : 'Show as a column'\">\n <i class=\"fa-solid\" [class.fa-eye]=\"IsFKColumnVisible(f)\" [class.fa-eye-slash]=\"!IsFKColumnVisible(f)\"></i>\n </button>\n }\n </span>\n </div>\n </ng-template>\n\n <!-- Pinned \"currently selected\" \u2014 sticky at the top while browsing, so you can\n keep it or pick another without clearing first. -->\n @if (FKSelectedSuggestion && !FKLoading) {\n <div class=\"mj-fk-current\">\n <div class=\"mj-fk-current-head\">\n <i class=\"fa-solid fa-circle-check\"></i>\n <span>Currently selected</span>\n </div>\n <div class=\"mj-fk-current-row\" (mousedown)=\"OnFKSelectItem(FKSelectedSuggestion, $event)\" title=\"Keep this selection\">\n @if (FKSelectedSuggestion.Icon) { <i class=\"mj-fk-current-icon\" [class]=\"FKSelectedSuggestion.Icon\"></i> }\n <span class=\"mj-fk-current-name\" [innerHTML]=\"FKSelectedSuggestion.HighlightedName\"></span>\n @if (FKSelectedSuggestion.ExtraColumns.length && FKSelectedSuggestion.ExtraColumns[0].Value) {\n <span class=\"mj-fk-current-detail\">{{ FKSelectedSuggestion.ExtraColumns[0].Value }}</span>\n }\n <button type=\"button\" class=\"mj-fk-current-clear\" (mousedown)=\"OnFKClearClick($event)\" title=\"Clear selection\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n </div>\n }\n\n @if (FKLoading) {\n <div class=\"mj-fk-status\">\n <i class=\"fa-solid fa-circle-notch fa-spin\"></i>\n <span>Searching\u2026</span>\n </div>\n }\n @if (!FKLoading && FKNoMatches) {\n <div class=\"mj-fk-status mj-fk-status--empty\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n <span>No matches</span>\n </div>\n }\n @if (!FKLoading && FKSuggestions.length > 0) {\n <div class=\"mj-fk-options\">\n <div class=\"mj-fk-grid\" [style.grid-template-columns]=\"FKGridTemplateColumns\">\n <!-- Header row: click to sort, drag the right edge to resize.\n (Column reorder lives in the field-selector menu, not here.) -->\n <div class=\"mj-fk-grid-row mj-fk-grid-row--header\">\n @if (FKHasIconColumn) {\n <div class=\"mj-fk-hcell mj-fk-hcell--icon\"></div>\n }\n @for (col of FKColumnFields; track col; let i = $index) {\n <div class=\"mj-fk-hcell\"\n (mousedown)=\"OnFKHeaderSort($event, col)\"\n [title]=\"'Click to sort by ' + FKColumnHeaders[i]\">\n <span class=\"mj-fk-hcell-label\">{{ FKColumnHeaders[i] }}</span>\n <i [class]=\"FKSortIcon(col)\"></i>\n <span class=\"mj-fk-resizer\" (mousedown)=\"OnFKColResizeStart($event, col)\" title=\"Drag to resize\"></span>\n </div>\n }\n </div>\n <!-- Data rows, under their group's header. A strategy that returns one\n unlabelled group renders exactly as before. -->\n @for (group of FKGroups; track group.Key) {\n @if (group.Label && FKSuggestionsInGroup(group.Key).length > 0) {\n <div class=\"mj-fk-grid-row mj-fk-group-head\" (mousedown)=\"$event.preventDefault()\">{{ group.Label }}</div>\n }\n @for (suggestion of FKSuggestionsInGroup(group.Key); track suggestion.PrimaryKeyValue) {\n <div class=\"mj-fk-grid-row\"\n [class.mj-fk-grid-row--active]=\"FKIndexOf(suggestion) === FKActiveIndex\"\n [class.mj-fk-grid-row--selected]=\"IsFKRowSelected(suggestion)\"\n (mousedown)=\"OnFKSelectItem(suggestion, $event)\"\n (mouseenter)=\"FKActiveIndex = FKIndexOf(suggestion)\">\n @if (FKHasIconColumn) {\n <div class=\"mj-fk-cell mj-fk-cell--icon\">\n @if (suggestion.Icon) { <i [class]=\"suggestion.Icon\"></i> }\n </div>\n }\n @for (col of FKColumnFields; track col; let last = $last) {\n @if (col === FKNameField) {\n <div class=\"mj-fk-cell mj-fk-cell--name\" [class.mj-fk-cell--fill]=\"FKColumnFillsTrack(col, last)\">\n @if (IsFKRowSelected(suggestion)) {\n <i class=\"fa-solid fa-check mj-fk-selected-check\" title=\"Currently selected\"></i>\n }\n <span class=\"mj-fk-name-line\">\n <span [innerHTML]=\"suggestion.HighlightedName\"></span>\n @for (chip of suggestion.Chips ?? []; track chip.Text) {\n <span class=\"mj-fk-chip\"\n [class.mj-fk-chip--info]=\"chip.Tone === 'info'\"\n [class.mj-fk-chip--warn]=\"chip.Tone === 'warn'\">{{ chip.Text }}</span>\n }\n </span>\n @if (suggestion.Secondary) {\n <span class=\"mj-fk-secondary\">{{ suggestion.Secondary }}</span>\n }\n </div>\n } @else {\n <div class=\"mj-fk-cell\" [class.mj-fk-cell--fill]=\"FKColumnFillsTrack(col, last)\" [title]=\"FKCellFor(suggestion, col)?.Value || ''\">\n <span [innerHTML]=\"FKCellFor(suggestion, col)?.HighlightedValue || ''\"></span>\n </div>\n }\n }\n </div>\n }\n }\n </div>\n </div>\n }\n\n <!-- Sticky \"create new\" footer \u2014 always visible at the bottom (no scrolling),\n prefilled with the typed text. Gated on create permission. -->\n @if (CanCreateFK) {\n <button type=\"button\" class=\"mj-fk-create-footer\" (mousedown)=\"OnFKCreateNew($event)\" [title]=\"FKCreateLabel\">\n <i class=\"fa-solid fa-plus mj-fk-create-icon\"></i>\n <span class=\"mj-fk-create-label\">{{ FKCreateLabel }}</span>\n </button>\n }\n </div>\n }\n </div>\n }\n @else if (ExtendedDisplay === 'image') {\n <div class=\"mj-forms-image mj-forms-image--edit\">\n @if (ImagePreviewSrc) {\n <img class=\"mj-forms-image-preview\" [src]=\"ImagePreviewSrc\" alt=\"\" />\n } @else {\n <div class=\"mj-forms-image-preview mj-forms-image-preview--empty\" aria-hidden=\"true\">\n <i class=\"fa-regular fa-image\"></i>\n </div>\n }\n <div class=\"mj-forms-image-meta\">\n @if (IsInlineImageValue) {\n <span>Inline image ({{ ImageValueSizeLabel }})</span>\n }\n <span class=\"mj-forms-image-hint\">Max {{ ImageMaxSizeLabel }}</span>\n </div>\n <div class=\"mj-forms-image-actions\">\n <input #imageFileInput type=\"file\" accept=\"image/png,image/jpeg,image/gif,image/webp,image/svg+xml\"\n class=\"mj-forms-image-file\" (change)=\"OnImageFileSelected($event)\">\n <button type=\"button\" class=\"mj-forms-image-btn\" (click)=\"imageFileInput.click()\">\n <i class=\"fa-solid fa-upload\"></i>\n {{ ImagePreviewSrc ? 'Replace' : 'Upload' }}\n </button>\n @if (ImagePreviewSrc) {\n <button type=\"button\" class=\"mj-forms-image-btn mj-forms-image-btn--ghost\" (click)=\"OnImageClear()\">Clear</button>\n }\n </div>\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"ImageUrlInputValue\"\n (input)=\"OnImageUrlInput($event)\"\n placeholder=\"https://\u2026 or paste a data URI\">\n </div>\n }\n @else if (ExtendedDisplay === 'color') {\n <div class=\"mj-forms-color mj-forms-color--edit\">\n <input type=\"color\"\n class=\"mj-forms-color-picker\"\n [value]=\"ColorPickerValue\"\n (input)=\"OnColorPickerInput($event)\"\n [attr.aria-label]=\"DisplayName + ' color'\">\n <input type=\"text\"\n class=\"mj-forms-field-input mj-forms-color-hex\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n placeholder=\"#RRGGBB\">\n </div>\n }\n @else if (ExtendedDisplay === 'json') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea mj-forms-json\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"\n (blur)=\"OnJsonBlur()\"></textarea>\n }\n @else if (EditRichTextMode !== 'plain') {\n <!-- Markdown / HTML / Code long-text: edit raw with a syntax-highlighted code editor -->\n <mj-code-editor\n class=\"mj-forms-field-input--code\"\n [value]=\"FormatValue()\"\n [language]=\"CodeEditorLanguage\"\n (change)=\"OnCodeEditorChange($event)\"></mj-code-editor>\n }\n @else {\n @switch (Type) {\n @case ('textbox') {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\">\n }\n @case ('textarea') {\n <textarea\n class=\"mj-forms-field-input mj-forms-field-input--textarea\"\n [value]=\"FormatValue()\"\n (input)=\"OnInputChange($event)\"></textarea>\n }\n @case ('number') {\n <input type=\"number\"\n class=\"mj-forms-field-input mj-forms-field-input--number\"\n [value]=\"Value\"\n (change)=\"OnNumberChange($event)\">\n }\n @case ('datepicker') {\n <input type=\"date\"\n class=\"mj-forms-field-input mj-forms-field-input--date\"\n [value]=\"DateInputValue\"\n (change)=\"OnDateChange($event)\">\n }\n @case ('checkbox') {\n <div class=\"mj-forms-field-checkbox\">\n <input type=\"checkbox\"\n [checked]=\"!!Value\"\n (change)=\"OnCheckboxChange($event)\">\n </div>\n }\n @case ('select') {\n <div class=\"mj-custom-select-trigger\"\n tabindex=\"0\"\n (click)=\"OnSelectTriggerClick($event)\"\n (blur)=\"OnSelectTriggerBlur()\">\n <span class=\"mj-custom-select-value\" [class.mj-custom-select-value--placeholder]=\"!FormatValue()\">\n {{ FormatValue() || '-- Select --' }}\n </span>\n <i class=\"fa-solid fa-chevron-down mj-custom-select-chevron\" [class.mj-custom-select-chevron--open]=\"ShowSelectDropdown\"></i>\n </div>\n @if (ShowSelectDropdown && PossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of PossibleValues; track option) {\n <div class=\"mj-fk-option\" [class.mj-fk-option--selected]=\"FormatValue() === option\" (mousedown)=\"OnSelectOptionClick(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n }\n @case ('autocomplete') {\n <div class=\"mj-fk-search\">\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (input)=\"OnValueListInput($event)\"\n (focus)=\"OnValueListFocus($event)\"\n (blur)=\"OnValueListBlur()\"\n placeholder=\"Type to search...\">\n <i class=\"fa-solid fa-magnifying-glass mj-fk-search-icon\"></i>\n @if (ShowValueListDropdown && FilteredPossibleValues.length > 0) {\n <div class=\"mj-fk-dropdown\" [ngStyle]=\"DropdownPositionStyle\" [class.mj-fk-dropdown--above]=\"OpenAbove\">\n @for (option of FilteredPossibleValues; track option) {\n <div class=\"mj-fk-option\" (mousedown)=\"OnValueListSelect(option, $event)\">\n {{ option }}\n </div>\n }\n </div>\n }\n </div>\n }\n @default {\n <input type=\"text\"\n class=\"mj-forms-field-input\"\n [value]=\"FormatValue()\"\n (change)=\"OnInputChange($event)\">\n }\n }\n }\n </div>\n <!-- Inline validation messages -->\n @if (DisplayErrors.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--error\">\n @for (error of DisplayErrors; track error.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>{{ error.Message }}</span>\n </div>\n }\n </div>\n }\n @if (DisplayWarnings.length > 0) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n @for (warning of DisplayWarnings; track warning.Message) {\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ warning.Message }}</span>\n </div>\n }\n </div>\n }\n <!--\n An unreadable stored value renders as an EMPTY date box, identical to a field that\n was never set - and the next save writes that emptiness over whatever is stored. The\n element cannot display the bad value itself, so the warning sits with the other validation messages, beneath the control.\n -->\n @if (StoredDateIsUnreadable) {\n <div class=\"mj-forms-field-validation mj-forms-field-validation--warning\">\n <div class=\"mj-forms-field-validation-item\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>This field holds a value that is not a readable date, so the box above is\n empty. Saving now will replace it.</span>\n </div>\n </div>\n }\n </div>\n }\n}\n", styles: ["/* ============================================\n FORM FIELD - Shared styles for read and edit\n ============================================ */\n:host {\n --mj-forms-field-label-width: 200px;\n --mj-forms-field-gap: 12px;\n\n display: contents;\n}\n\n.mj-forms-field {\n display: grid;\n grid-template-columns: var(--mj-forms-field-label-width) 1fr;\n gap: var(--mj-forms-field-gap);\n align-items: baseline;\n padding: 8px 0;\n transition: all var(--mj-transition-base) ease;\n}\n\n/* 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@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"] }]
3633
+ }], () => [], { Record: [{
3238
3634
  type: Input
3239
3635
  }], EditMode: [{
3240
3636
  type: Input
@@ -3272,6 +3668,14 @@ export class MjFormFieldComponent extends BaseAngularComponent {
3272
3668
  type: Input
3273
3669
  }], FKCreatePresentation: [{
3274
3670
  type: Input
3671
+ }], FKExtraFilter: [{
3672
+ type: Input
3673
+ }], FKOrderBy: [{
3674
+ type: Input
3675
+ }], FKMaxRows: [{
3676
+ type: Input
3677
+ }], FKLookupOptions: [{
3678
+ type: Input
3275
3679
  }] }); })();
3276
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormFieldComponent, { className: "MjFormFieldComponent", filePath: "src/lib/field/form-field.component.ts", lineNumber: 136 }); })();
3680
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormFieldComponent, { className: "MjFormFieldComponent", filePath: "src/lib/field/form-field.component.ts", lineNumber: 171 }); })();
3277
3681
  //# sourceMappingURL=form-field.component.js.map