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

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.
@@ -10,6 +10,15 @@ export declare class FormChromeCoordinator {
10
10
  MoreExpanded: boolean;
11
11
  ActiveGroupKey: string | null;
12
12
  readonly Changes: Subject<void>;
13
+ /**
14
+ * A section arrived on or left the page after the rail was worked out. A panel that
15
+ * draws its section only once its data has loaded (the Feature Values and Model
16
+ * Predictions panels, for instance) mounts inside a slot after every structural
17
+ * trigger the container watches has fired; without this the section belongs to no
18
+ * rail group, and on a left-nav form that means it never shows.
19
+ */
20
+ readonly SectionsChanged: Subject<void>;
21
+ NotifySectionsChanged(): void;
13
22
  Apply(spec: FormChromeSpec): void;
14
23
  IsRelatedSectionVisible(sectionKey: string): boolean;
15
24
  IsFirstClassSectionVisible(sectionKey: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"form-chrome-coordinator.service.d.ts","sourceRoot":"","sources":["../../../src/lib/chrome/form-chrome-coordinator.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAA8C,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;;AAGhG;;;GAGG;AACH,qBACa,qBAAqB;IACvB,IAAI,EAAE,cAAc,CAA4B;IAChD,YAAY,UAAS;IACrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5C,SAAgB,OAAO,gBAAuB;IAEvC,KAAK,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAWjC,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAOpD,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAO9D;;;OAGG;IACI,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAMtD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAQtC,gBAAg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B;CAgGjC"}
@@ -12,6 +12,17 @@ export class FormChromeCoordinator {
12
12
  MoreExpanded = false;
13
13
  ActiveGroupKey = null;
14
14
  Changes = new Subject();
15
+ /**
16
+ * A section arrived on or left the page after the rail was worked out. A panel that
17
+ * draws its section only once its data has loaded (the Feature Values and Model
18
+ * Predictions panels, for instance) mounts inside a slot after every structural
19
+ * trigger the container watches has fired; without this the section belongs to no
20
+ * rail group, and on a left-nav form that means it never shows.
21
+ */
22
+ SectionsChanged = new Subject();
23
+ NotifySectionsChanged() {
24
+ this.SectionsChanged.next();
25
+ }
15
26
  Apply(spec) {
16
27
  this.Spec = StabilizeFirstClassGroupOrder(this.Spec, spec);
17
28
  if (spec.Layout === 'left-nav') {
@@ -1 +1 @@
1
- {"version":3,"file":"form-chrome-coordinator.service.js","sourceRoot":"","sources":["../../../src/lib/chrome/form-chrome-coordinator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAuB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;;AAEtE;;;GAGG;AAEH,MAAM,OAAO,qBAAqB;IACvB,IAAI,GAAmB,wBAAwB,CAAC;IAChD,YAAY,GAAG,KAAK,CAAC;IACrB,cAAc,GAAkB,IAAI,CAAC;IAC5B,OAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;IAEvC,KAAK,CAAC,IAAoB;QAC7B,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3D,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAA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B;cADjC,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { DEFAULT_FORM_CHROME_SPEC, MORE_SECTION_KEY, type FormChromeSpec } from './form-chrome';\nimport { StabilizeFirstClassGroupOrder } from './resolve-form-chrome';\n\n/**\n * Per-container chrome state. Provided by `<mj-record-form-container>` so\n * projected panels and fill-in stock grids share one spec.\n */\n@Injectable()\nexport class FormChromeCoordinator {\n public Spec: FormChromeSpec = DEFAULT_FORM_CHROME_SPEC;\n public MoreExpanded = false;\n public ActiveGroupKey: string | null = null;\n public readonly Changes = new Subject<void>();\n\n public Apply(spec: FormChromeSpec): void {\n this.Spec = StabilizeFirstClassGroupOrder(this.Spec, spec);\n if (spec.Layout === 'left-nav') {\n const stillValid = spec.Groups.some((g) => g.Key === this.ActiveGroupKey);\n if (!stillValid) {\n this.ActiveGroupKey = spec.Groups[0]?.Key ?? null;\n }\n }\n this.Changes.next();\n }\n\n public IsRelatedSectionVisible(sectionKey: string): boolean {\n if (this.Spec.Layout === 'accordion') {\n return this.IsAccordionSectionVisible(sectionKey);\n }\n return this.isLeftNavVisible(sectionKey);\n }\n\n public IsFirstClassSectionVisible(sectionKey: string): boolean {\n if (this.Spec.Layout === 'accordion') {\n return this.IsAccordionSectionVisible(sectionKey);\n }\n return this.isLeftNavVisible(sectionKey);\n }\n\n /**\n * Accordion hides every More member — field panels included — until\n * the overflow footer is expanded. Left-nav does not use this.\n */\n public IsAccordionSectionVisible(sectionKey: string): boolean {\n if (this.Spec.Layout !== 'accordion') return true;\n if (this.Spec.MoreSectionKeys.includes(sectionKey)) return this.MoreExpanded;\n return true;\n }\n\n public SetActiveGroup(groupKey: string): void {\n this.ActiveGroupKey = groupKey;\n if (this.isMoreChild(groupKey)) {\n this.MoreExpanded = true;\n }\n this.Changes.next();\n }\n\n public ToggleMoreFolder(): void {\n this.MoreExpanded = !this.MoreExpanded;\n this.Changes.next();\n }\n\n public ToggleMore(expanded: boolean): void {\n this.MoreExpanded = expanded;\n this.Changes.next();\n }\n\n public get IsMoreActive(): boolean {\n return false;\n }\n\n public HidesAccordionChrome(sectionKey: string): boolean {\n if (this.Spec.Layout !== 'left-nav') return false;\n return this.isLeftNavVisible(sectionKey);\n }\n\n /**\n * Left-nav shows only the selected rail item — including a More child.\n * Clicking the More folder does not dump every leftover panel.\n */\n private isLeftNavVisible(sectionKey: string): boolean {\n if (this.Spec.Layout !== 'left-nav') return true;\n if (this.ActiveGroupKey === sectionKey) return true;\n const group = this.Spec.Groups.find((g) => g.SectionKeys.includes(sectionKey));\n if (!group || group.IsMore) return false;\n return group.Key === this.ActiveGroupKey;\n }\n\n private isMoreChild(groupKey: string): boolean {\n if (groupKey === MORE_SECTION_KEY) return false;\n return this.Spec.MoreSectionKeys.includes(groupKey);\n }\n}\n"]}
1
+ {"version":3,"file":"form-chrome-coordinator.service.js","sourceRoot":"","sources":["../../../src/lib/chrome/form-chrome-coordinator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAuB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;;AAEtE;;;GAGG;AAEH,MAAM,OAAO,qBAAqB;IACvB,IAAI,GAAmB,wBAAwB,CAAC;IAChD,YAAY,GAAG,KAAK,CAAC;IACrB,cAAc,GAAkB,IAAI,CAAC;IAC5B,OAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;IAC9C;;;;;;OAMG;IACa,eAAe,GAAG,IAAI,OAAO,EAAQ,CAAC;IAE/C,qBAAqB;QACxB,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;IAChC,CAAC;IAEM,KAAK,CAAC,IAAoB;QAC7B,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAA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AE,OAAO,KAAK,CAAC;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;+GA/FQ,qBAAqB;gEAArB,qBAAqB,WAArB,qBAAqB;;iFAArB,qBAAqB;cADjC,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { DEFAULT_FORM_CHROME_SPEC, MORE_SECTION_KEY, type FormChromeSpec } from './form-chrome';\nimport { StabilizeFirstClassGroupOrder } from './resolve-form-chrome';\n\n/**\n * Per-container chrome state. Provided by `<mj-record-form-container>` so\n * projected panels and fill-in stock grids share one spec.\n */\n@Injectable()\nexport class FormChromeCoordinator {\n public Spec: FormChromeSpec = DEFAULT_FORM_CHROME_SPEC;\n public MoreExpanded = false;\n public ActiveGroupKey: string | null = null;\n public readonly Changes = new Subject<void>();\n /**\n * A section arrived on or left the page after the rail was worked out. A panel that\n * draws its section only once its data has loaded (the Feature Values and Model\n * Predictions panels, for instance) mounts inside a slot after every structural\n * trigger the container watches has fired; without this the section belongs to no\n * rail group, and on a left-nav form that means it never shows.\n */\n public readonly SectionsChanged = new Subject<void>();\n\n public NotifySectionsChanged(): void {\n this.SectionsChanged.next();\n }\n\n public Apply(spec: FormChromeSpec): void {\n this.Spec = StabilizeFirstClassGroupOrder(this.Spec, spec);\n if (spec.Layout === 'left-nav') {\n const stillValid = spec.Groups.some((g) => g.Key === this.ActiveGroupKey);\n if (!stillValid) {\n this.ActiveGroupKey = spec.Groups[0]?.Key ?? null;\n }\n }\n this.Changes.next();\n }\n\n public IsRelatedSectionVisible(sectionKey: string): boolean {\n if (this.Spec.Layout === 'accordion') {\n return this.IsAccordionSectionVisible(sectionKey);\n }\n return this.isLeftNavVisible(sectionKey);\n }\n\n public IsFirstClassSectionVisible(sectionKey: string): boolean {\n if (this.Spec.Layout === 'accordion') {\n return this.IsAccordionSectionVisible(sectionKey);\n }\n return this.isLeftNavVisible(sectionKey);\n }\n\n /**\n * Accordion hides every More member — field panels included — until\n * the overflow footer is expanded. Left-nav does not use this.\n */\n public IsAccordionSectionVisible(sectionKey: string): boolean {\n if (this.Spec.Layout !== 'accordion') return true;\n if (this.Spec.MoreSectionKeys.includes(sectionKey)) return this.MoreExpanded;\n return true;\n }\n\n public SetActiveGroup(groupKey: string): void {\n this.ActiveGroupKey = groupKey;\n if (this.isMoreChild(groupKey)) {\n this.MoreExpanded = true;\n }\n this.Changes.next();\n }\n\n public ToggleMoreFolder(): void {\n this.MoreExpanded = !this.MoreExpanded;\n this.Changes.next();\n }\n\n public ToggleMore(expanded: boolean): void {\n this.MoreExpanded = expanded;\n this.Changes.next();\n }\n\n public get IsMoreActive(): boolean {\n return false;\n }\n\n public HidesAccordionChrome(sectionKey: string): boolean {\n if (this.Spec.Layout !== 'left-nav') return false;\n return this.isLeftNavVisible(sectionKey);\n }\n\n /**\n * Left-nav shows only the selected rail item — including a More child.\n * Clicking the More folder does not dump every leftover panel.\n */\n private isLeftNavVisible(sectionKey: string): boolean {\n if (this.Spec.Layout !== 'left-nav') return true;\n if (this.ActiveGroupKey === sectionKey) return true;\n const group = this.Spec.Groups.find((g) => g.SectionKeys.includes(sectionKey));\n if (!group || group.IsMore) return false;\n return group.Key === this.ActiveGroupKey;\n }\n\n private isMoreChild(groupKey: string): boolean {\n if (groupKey === MORE_SECTION_KEY) return false;\n return this.Spec.MoreSectionKeys.includes(groupKey);\n }\n}\n"]}
@@ -67,6 +67,18 @@ export declare function SectionDrawingAnyField(panels: readonly FormChromePanelS
67
67
  * gets a tab at the bottom of the rail instead.
68
68
  */
69
69
  export declare function SlotChromeGroup(slot: string | null | undefined): 'details' | null;
70
+ /**
71
+ * The rail item a contribution falls into when it claims no section: the slot's group, unless
72
+ * the contribution declared an L1 `inclusion` of its own.
73
+ *
74
+ * The slot is a default — "nothing more specific says" — and a declared inclusion is more
75
+ * specific. `'Primary'` asks for a first-class rail item in the lead band before Details, `'More'`
76
+ * for the overflow folder, `'None'` for nothing at all; each is honoured downstream from the
77
+ * inclusion map. Filing such a contribution into Details here would pin it there, and a pin
78
+ * outranks the inclusion, so an Overview declared `Primary` at `before-fields` would vanish into
79
+ * the tab it was meant to lead.
80
+ */
81
+ export declare function DefaultContributionChromeGroup(slot: string | null | undefined, declaresInclusion: boolean): 'details' | null;
70
82
  /** Enough of a rendered section to decide which rail item it belongs to. */
71
83
  export interface ChromeSectionShape {
72
84
  Variant?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"form-chrome.d.ts","sourceRoot":"","sources":["../../../src/lib/chrome/form-chrome.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AAEjD,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEhF;AAED,iEAAiE;AACjE,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAKrF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,SAAS,uBAAuB,EAAE,EAC1C,uBAAuB,EAAE,SAAS,MAAM,EAAE,EAC1C,QAAQ,EAAE,MAAM,GACjB,MAAM,EAAE,CAyBV;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,SAAS,uBAAuB,EAAE,EAC1C,MAAM,EAAE,SAAS,eAAe,EAAE,GACnC,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAA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,MAAM,wBAAwB,EAAE,cAKtC,CAAC"}
@@ -106,6 +106,20 @@ export function SlotChromeGroup(slot) {
106
106
  const key = (slot ?? '').trim();
107
107
  return key === 'before-fields' || key === 'after-fields' ? 'details' : null;
108
108
  }
109
+ /**
110
+ * The rail item a contribution falls into when it claims no section: the slot's group, unless
111
+ * the contribution declared an L1 `inclusion` of its own.
112
+ *
113
+ * The slot is a default — "nothing more specific says" — and a declared inclusion is more
114
+ * specific. `'Primary'` asks for a first-class rail item in the lead band before Details, `'More'`
115
+ * for the overflow folder, `'None'` for nothing at all; each is honoured downstream from the
116
+ * inclusion map. Filing such a contribution into Details here would pin it there, and a pin
117
+ * outranks the inclusion, so an Overview declared `Primary` at `before-fields` would vanish into
118
+ * the tab it was meant to lead.
119
+ */
120
+ export function DefaultContributionChromeGroup(slot, declaresInclusion) {
121
+ return declaresInclusion ? null : SlotChromeGroup(slot);
122
+ }
109
123
  /**
110
124
  * The rail item a contribution joins when it replaces `sectionKey`.
111
125
  *
@@ -1 +1 @@
1
- {"version":3,"file":"form-chrome.js","sourceRoot":"","sources":["../../../src/lib/chrome/form-chrome.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAEjD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEvD,wEAAwE;AACxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE/C,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAiC;IACnE,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,KAAK,WAAW,CAAC;AACnD,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,WAAoB;IACxE,MAAM,GAAG,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,W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AAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACpE,MAAM,MAAM,GAAG,cAAc;SACxB,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SAC1D,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACzE,CAAC;AAeD,MAAM,CAAC,MAAM,wBAAwB,GAAmB;IACpD,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,EAAE;IACV,YAAY,EAAE,IAAI,GAAG,EAAE;IACvB,eAAe,EAAE,EAAE;CACtB,CAAC","sourcesContent":["/**\n * Form chrome — how the container arranges sections (accordion vs left-nav,\n * first-class vs More). Complements form contributions (what is on the form).\n *\n * @see plans/form-chrome-policy.md\n */\nimport type { FormRole } from '@memberjunction/core';\n\nexport const MORE_SECTION_KEY = '__mj_form_more';\n\n/** Field panels (default / inherited) collapse into this one left-nav item. */\nexport const DETAILS_SECTION_KEY = '__mj_form_details';\n\n/** The title of the left-nav item {@link DETAILS_SECTION_KEY} names. */\nexport const DETAILS_SECTION_TITLE = 'Details';\n\nexport const SYSTEM_METADATA_SECTION_KEY = 'systemMetadata';\n\n/**\n * Expand-all / collapse-all only apply to stacked accordion panels.\n * Left-nav and right-nav show one section at a time, so those buttons\n * would be noise.\n */\nexport function IsAccordionFormChrome(layout: string | null | undefined): boolean {\n return (layout ?? 'accordion') === 'accordion';\n}\n\n/** Audit / timestamp leftover sections always fold into More. */\nexport function IsAlwaysMoreSection(sectionKey: string, sectionName?: string): boolean {\n const key = (sectionKey ?? '').trim().toLowerCase();\n if (key === SYSTEM_METADATA_SECTION_KEY.toLowerCase()) return true;\n const name = (sectionName ?? '').trim().toLowerCase();\n return name === 'system metadata';\n}\n\n/**\n * The section keys filed under one rail item, worked out from the panels alone.\n *\n * The rail's own membership is not usable here: it is computed from the set of panels a\n * contribution has hidden, so asking it which panels a contribution should hide would be\n * circular. This applies the same classification the rail applies — audit leftovers to\n * More, related grids and contributions to an item of their own merged by title,\n * everything else to Details — over the unfiltered panels.\n *\n * `groupKey` is any rail item's key, so nothing here privileges Details.\n */\nexport function RailGroupSectionKeys(\n panels: readonly FormChromePanelSnapshot[],\n contributionSectionKeys: readonly string[],\n groupKey: string,\n): string[] {\n const key = (groupKey ?? '').trim();\n if (!key) return [];\n const contributions = new Set(contributionSectionKeys);\n\n const groupOf = (panel: FormChromePanelSnapshot): string => {\n if (IsAlwaysMoreSection(panel.SectionKey, panel.SectionName)) return MORE_SECTION_KEY;\n if (panel.Variant === 'related-entity' || contributions.has(panel.SectionKey)) return panel.SectionKey;\n return DETAILS_SECTION_KEY;\n };\n\n // Related items sharing a title are one rail item, so naming either one names both.\n const named = panels.find((panel) => groupOf(panel) === key);\n const namedTitle = named && key !== DETAILS_SECTION_KEY && key !== MORE_SECTION_KEY\n ? HumanizeEntityTitle(named.SectionName || named.SectionKey)\n : null;\n\n return panels\n .filter((panel) => {\n const group = groupOf(panel);\n if (group === key) return true;\n if (!namedTitle || group === DETAILS_SECTION_KEY || group === MORE_SECTION_KEY) return false;\n return HumanizeEntityTitle(panel.SectionName || panel.SectionKey) === namedTitle;\n })\n .map((panel) => panel.SectionKey);\n}\n\n/**\n * The panels a contribution can replace one of: what the Details rail item is made of,\n * in document order.\n *\n * Not \"every panel that is not a related grid\". That set also holds the contributions\n * already installed — replaced by naming the panel, not a section — and the leftover\n * audit sections, which the rail files under More. Offering either as a field group\n * inside Details tells the user the tab contains things it does not. With no Details\n * item the form has no such tab, and every non-grid panel stands on its own.\n */\nexport function FieldGroupsInDetails(\n panels: readonly FormChromePanelSnapshot[],\n groups: readonly FormChromeGroup[],\n): Array<{ Key: string; Title: string }> {\n const details = groups.find((group) => group.Key === DETAILS_SECTION_KEY);\n const keep = details\n ? (panel: FormChromePanelSnapshot) => details.SectionKeys.includes(panel.SectionKey)\n : (panel: FormChromePanelSnapshot) => panel.Variant !== 'related-entity';\n return panels.filter(keep).map((panel) => ({ Key: panel.SectionKey, Title: panel.SectionName }));\n}\n\n/**\n * The section drawing any of these fields, which is where a field claim renders.\n *\n * Any, not all: a claim naming a field the form has stopped drawing still renders where\n * its remaining fields are. The first match wins, and the claim is meant to name fields of\n * one section, so there is normally only one.\n */\nexport function SectionDrawingAnyField(\n panels: readonly FormChromePanelSnapshot[],\n fieldNames: readonly string[],\n): string | undefined {\n const wanted = new Set(fieldNames.map((name) => name.trim()).filter((name) => name.length > 0));\n if (wanted.size === 0) return undefined;\n return panels.find((panel) => (panel.Fields ?? []).some((field) => wanted.has(field.Name)))?.SectionKey;\n}\n\n/**\n * The rail item a contribution belongs to by virtue of the slot it mounts at.\n *\n * A slot says where a panel sits in the form body, and the rail groups that body — so the\n * slot decides the group unless something more specific does. `before-fields` and\n * `after-fields` are positions among the field sections, and the field sections are the\n * Details tab, so a panel at either belongs in Details. The rest are positions relative\n * to things that are tabs in their own right, so a panel there is its own tab too.\n *\n * Without this the slot has no visible effect on a rail form at all: every contribution\n * that claims nothing becomes its own tab, and a user who asked for \"before the fields\"\n * gets a tab at the bottom of the rail instead.\n */\nexport function SlotChromeGroup(slot: string | null | undefined): 'details' | null {\n const key = (slot ?? '').trim();\n return key === 'before-fields' || key === 'after-fields' ? 'details' : null;\n}\n\n/** Enough of a rendered section to decide which rail item it belongs to. */\nexport interface ChromeSectionShape {\n Variant?: string;\n SectionName?: string;\n}\n\n/**\n * The rail item a contribution joins when it replaces `sectionKey`.\n *\n * Replacing something means standing where it stood. A panel put in place of a field\n * section belongs in the Details tab that section was part of; one put in place of the\n * whole Details group belongs in that group; one put in place of a leftover audit section\n * belongs in More. Null means the contribution keeps a rail item of its own: it replaces\n * nothing, the section is not on the form, or it takes over a related grid — that last one\n * already inherits the grid's rail item through the relationship claim.\n *\n * Without this a replacing panel is lifted to a first-class rail item beside the tab it\n * emptied, so the form loses a section and gains a tab.\n */\nexport function ReplacedSectionChromeGroup(\n sectionKey: string | null | undefined,\n section: ChromeSectionShape | null | undefined,\n): 'details' | 'more' | null {\n const key = (sectionKey ?? '').trim();\n if (!key) return null;\n // Details and More are assembled at render time, so neither has a panel of its own to\n // look up, and a panel standing in for one has nowhere else to be. Every other rail\n // item is named after the panels it holds, so replacing all of them empties the item\n // and the contribution becomes the item — null, a rail item of its own.\n if (key === DETAILS_SECTION_KEY) return 'details';\n if (key === MORE_SECTION_KEY) return 'more';\n if (!section || section.Variant === 'related-entity') return null;\n return IsAlwaysMoreSection(key, section.SectionName) ? 'more' : 'details';\n}\n\nconst SCHEMA_PREFIX = /^[A-Za-z][A-Za-z0-9_]*$/;\nconst LINE_TERMINATOR = /[\\n\\r\\u2028\\u2029]/;\n\n/**\n * Drop a schema entity-name prefix (`MJ_BizApps_Common: Contact Methods` →\n * `Contact Methods`). DisplayName is the long-term source of truth; this keeps\n * already-baked SectionName strings readable until CodeGen reruns.\n */\nexport function HumanizeEntityTitle(name: string): string {\n const trimmed = (name ?? '').trim();\n const colon = trimmed.indexOf(':');\n if (colon < 1 || !SCHEMA_PREFIX.test(trimmed.slice(0, colon))) return trimmed;\n const rest = trimmed.slice(colon + 1);\n const title = rest.trimStart();\n // The prefix needs whitespace after its colon, and the title is one line.\n if (title.length === rest.length || LINE_TERMINATOR.test(title)) return trimmed;\n return title || trimmed;\n}\n\nexport interface FormChromeGroup {\n Key: string;\n Title: string;\n Icon: string;\n SectionKeys: string[];\n /** True when this group is the More bucket (Detail related grids). */\n IsMore: boolean;\n /**\n * Primary contribution that owns its own rail item and sorts in the\n * lead band (before Details). Overview is the usual case.\n */\n IsLead?: boolean;\n}\n\nexport interface FormChromeSpec {\n Layout: 'accordion' | 'left-nav';\n Groups: FormChromeGroup[];\n /** SectionKey → role for related-entity panels. Field panels are omitted. */\n RelatedRoles: ReadonlyMap<string, FormRole>;\n MoreSectionKeys: string[];\n /**\n * L3 admin Title overlays, keyed by section key or contribution key.\n * First-class group titles are already rewritten; More items and\n * accordion headers read this map so the same override reaches both.\n */\n TitleBySectionKey?: ReadonlyMap<string, string>;\n}\n\n/**\n * True when `sectionKey` sits in the left-nav Details group — the one rail\n * item that shows SEVERAL panels at once (every field panel, plus any\n * contribution registered with `ChromeGroup: 'details'`). The container\n * renders those panels as ONE card (`.mj-chrome-details`, with\n * `-first` / `-last` on the visual edges): no per-section headers, one\n * surface — otherwise the field rows float on the page background.\n */\nexport function IsDetailsSectionKey(spec: Pick<FormChromeSpec, 'Groups'>, sectionKey: string): boolean {\n const details = spec.Groups.find((g) => g.Key === DETAILS_SECTION_KEY);\n return !!details && details.SectionKeys.includes(sectionKey);\n}\n\n/**\n * The visual first and last of the Details panels currently shown. Panels are\n * flex items sequenced by CSS `order` (the form's section display order), so\n * DOM order is not enough — a user who reordered sections would get the card's\n * rounded corners on the wrong panels. Ties keep DOM order (stable sort).\n */\nexport function DetailsCardEdges(\n keysInDomOrder: readonly string[],\n orderOf: (sectionKey: string) => number,\n): { First: string | null; Last: string | null } {\n if (keysInDomOrder.length === 0) return { First: null, Last: null };\n const sorted = keysInDomOrder\n .map((key, index) => ({ key, index, order: orderOf(key) }))\n .sort((a, b) => (a.order - b.order) || (a.index - b.index));\n return { First: sorted[0].key, Last: sorted[sorted.length - 1].key };\n}\n\nexport interface FormChromePanelSnapshot {\n SectionKey: string;\n SectionName: string;\n Variant: string;\n Icon?: string;\n /**\n * The inputs this panel draws, when it draws any. Present so the composition snapshot\n * can name a field a contribution could stand in for; the chrome rules themselves do\n * not read it.\n */\n Fields?: ReadonlyArray<{ Name: string; Label: string }>;\n}\n\nexport const DEFAULT_FORM_CHROME_SPEC: FormChromeSpec = {\n Layout: 'accordion',\n Groups: [],\n RelatedRoles: new Map(),\n MoreSectionKeys: [],\n};\n"]}
1
+ {"version":3,"file":"form-chrome.js","sourceRoot":"","sources":["../../../src/lib/chrome/form-chrome.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAEjD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEvD,wEAAwE;AACxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE/C,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAiC;IACnE,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,KAAK,WAAW,CAAC;AACnD,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,WAAoB;IACxE,MAAM,GAAG,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACpD,IAAI,GAAG,KAAK,2BAA2B,CAAC,WAAW,EAAE;QAAE,OAAO,IAAI,CAAC;IACnE,MAAM,IAAI,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACtD,OAAO,IAAI,KAAK,iBAAiB,CAAC;AACtC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAChC,MAA0C,EAC1C,uBAA0C,EAC1C,QAAgB;IAEhB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;I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C,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACzE,CAAC;AAeD,MAAM,CAAC,MAAM,wBAAwB,GAAmB;IACpD,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,EAAE;IACV,YAAY,EAAE,IAAI,GAAG,EAAE;IACvB,eAAe,EAAE,EAAE;CACtB,CAAC","sourcesContent":["/**\n * Form chrome — how the container arranges sections (accordion vs left-nav,\n * first-class vs More). Complements form contributions (what is on the form).\n *\n * @see plans/form-chrome-policy.md\n */\nimport type { FormRole } from '@memberjunction/core';\n\nexport const MORE_SECTION_KEY = '__mj_form_more';\n\n/** Field panels (default / inherited) collapse into this one left-nav item. */\nexport const DETAILS_SECTION_KEY = '__mj_form_details';\n\n/** The title of the left-nav item {@link DETAILS_SECTION_KEY} names. */\nexport const DETAILS_SECTION_TITLE = 'Details';\n\nexport const SYSTEM_METADATA_SECTION_KEY = 'systemMetadata';\n\n/**\n * Expand-all / collapse-all only apply to stacked accordion panels.\n * Left-nav and right-nav show one section at a time, so those buttons\n * would be noise.\n */\nexport function IsAccordionFormChrome(layout: string | null | undefined): boolean {\n return (layout ?? 'accordion') === 'accordion';\n}\n\n/** Audit / timestamp leftover sections always fold into More. */\nexport function IsAlwaysMoreSection(sectionKey: string, sectionName?: string): boolean {\n const key = (sectionKey ?? '').trim().toLowerCase();\n if (key === SYSTEM_METADATA_SECTION_KEY.toLowerCase()) return true;\n const name = (sectionName ?? '').trim().toLowerCase();\n return name === 'system metadata';\n}\n\n/**\n * The section keys filed under one rail item, worked out from the panels alone.\n *\n * The rail's own membership is not usable here: it is computed from the set of panels a\n * contribution has hidden, so asking it which panels a contribution should hide would be\n * circular. This applies the same classification the rail applies — audit leftovers to\n * More, related grids and contributions to an item of their own merged by title,\n * everything else to Details — over the unfiltered panels.\n *\n * `groupKey` is any rail item's key, so nothing here privileges Details.\n */\nexport function RailGroupSectionKeys(\n panels: readonly FormChromePanelSnapshot[],\n contributionSectionKeys: readonly string[],\n groupKey: string,\n): string[] {\n const key = (groupKey ?? '').trim();\n if (!key) return [];\n const contributions = new Set(contributionSectionKeys);\n\n const groupOf = (panel: FormChromePanelSnapshot): string => {\n if (IsAlwaysMoreSection(panel.SectionKey, panel.SectionName)) return MORE_SECTION_KEY;\n if (panel.Variant === 'related-entity' || contributions.has(panel.SectionKey)) return panel.SectionKey;\n return DETAILS_SECTION_KEY;\n };\n\n // Related items sharing a title are one rail item, so naming either one names both.\n const named = panels.find((panel) => groupOf(panel) === key);\n const namedTitle = named && key !== DETAILS_SECTION_KEY && key !== MORE_SECTION_KEY\n ? HumanizeEntityTitle(named.SectionName || named.SectionKey)\n : null;\n\n return panels\n .filter((panel) => {\n const group = groupOf(panel);\n if (group === key) return true;\n if (!namedTitle || group === DETAILS_SECTION_KEY || group === MORE_SECTION_KEY) return false;\n return HumanizeEntityTitle(panel.SectionName || panel.SectionKey) === namedTitle;\n })\n .map((panel) => panel.SectionKey);\n}\n\n/**\n * The panels a contribution can replace one of: what the Details rail item is made of,\n * in document order.\n *\n * Not \"every panel that is not a related grid\". That set also holds the contributions\n * already installed — replaced by naming the panel, not a section — and the leftover\n * audit sections, which the rail files under More. Offering either as a field group\n * inside Details tells the user the tab contains things it does not. With no Details\n * item the form has no such tab, and every non-grid panel stands on its own.\n */\nexport function FieldGroupsInDetails(\n panels: readonly FormChromePanelSnapshot[],\n groups: readonly FormChromeGroup[],\n): Array<{ Key: string; Title: string }> {\n const details = groups.find((group) => group.Key === DETAILS_SECTION_KEY);\n const keep = details\n ? (panel: FormChromePanelSnapshot) => details.SectionKeys.includes(panel.SectionKey)\n : (panel: FormChromePanelSnapshot) => panel.Variant !== 'related-entity';\n return panels.filter(keep).map((panel) => ({ Key: panel.SectionKey, Title: panel.SectionName }));\n}\n\n/**\n * The section drawing any of these fields, which is where a field claim renders.\n *\n * Any, not all: a claim naming a field the form has stopped drawing still renders where\n * its remaining fields are. The first match wins, and the claim is meant to name fields of\n * one section, so there is normally only one.\n */\nexport function SectionDrawingAnyField(\n panels: readonly FormChromePanelSnapshot[],\n fieldNames: readonly string[],\n): string | undefined {\n const wanted = new Set(fieldNames.map((name) => name.trim()).filter((name) => name.length > 0));\n if (wanted.size === 0) return undefined;\n return panels.find((panel) => (panel.Fields ?? []).some((field) => wanted.has(field.Name)))?.SectionKey;\n}\n\n/**\n * The rail item a contribution belongs to by virtue of the slot it mounts at.\n *\n * A slot says where a panel sits in the form body, and the rail groups that body — so the\n * slot decides the group unless something more specific does. `before-fields` and\n * `after-fields` are positions among the field sections, and the field sections are the\n * Details tab, so a panel at either belongs in Details. The rest are positions relative\n * to things that are tabs in their own right, so a panel there is its own tab too.\n *\n * Without this the slot has no visible effect on a rail form at all: every contribution\n * that claims nothing becomes its own tab, and a user who asked for \"before the fields\"\n * gets a tab at the bottom of the rail instead.\n */\nexport function SlotChromeGroup(slot: string | null | undefined): 'details' | null {\n const key = (slot ?? '').trim();\n return key === 'before-fields' || key === 'after-fields' ? 'details' : null;\n}\n\n/**\n * The rail item a contribution falls into when it claims no section: the slot's group, unless\n * the contribution declared an L1 `inclusion` of its own.\n *\n * The slot is a default — \"nothing more specific says\" — and a declared inclusion is more\n * specific. `'Primary'` asks for a first-class rail item in the lead band before Details, `'More'`\n * for the overflow folder, `'None'` for nothing at all; each is honoured downstream from the\n * inclusion map. Filing such a contribution into Details here would pin it there, and a pin\n * outranks the inclusion, so an Overview declared `Primary` at `before-fields` would vanish into\n * the tab it was meant to lead.\n */\nexport function DefaultContributionChromeGroup(\n slot: string | null | undefined,\n declaresInclusion: boolean,\n): 'details' | null {\n return declaresInclusion ? null : SlotChromeGroup(slot);\n}\n\n/** Enough of a rendered section to decide which rail item it belongs to. */\nexport interface ChromeSectionShape {\n Variant?: string;\n SectionName?: string;\n}\n\n/**\n * The rail item a contribution joins when it replaces `sectionKey`.\n *\n * Replacing something means standing where it stood. A panel put in place of a field\n * section belongs in the Details tab that section was part of; one put in place of the\n * whole Details group belongs in that group; one put in place of a leftover audit section\n * belongs in More. Null means the contribution keeps a rail item of its own: it replaces\n * nothing, the section is not on the form, or it takes over a related grid — that last one\n * already inherits the grid's rail item through the relationship claim.\n *\n * Without this a replacing panel is lifted to a first-class rail item beside the tab it\n * emptied, so the form loses a section and gains a tab.\n */\nexport function ReplacedSectionChromeGroup(\n sectionKey: string | null | undefined,\n section: ChromeSectionShape | null | undefined,\n): 'details' | 'more' | null {\n const key = (sectionKey ?? '').trim();\n if (!key) return null;\n // Details and More are assembled at render time, so neither has a panel of its own to\n // look up, and a panel standing in for one has nowhere else to be. Every other rail\n // item is named after the panels it holds, so replacing all of them empties the item\n // and the contribution becomes the item — null, a rail item of its own.\n if (key === DETAILS_SECTION_KEY) return 'details';\n if (key === MORE_SECTION_KEY) return 'more';\n if (!section || section.Variant === 'related-entity') return null;\n return IsAlwaysMoreSection(key, section.SectionName) ? 'more' : 'details';\n}\n\nconst SCHEMA_PREFIX = /^[A-Za-z][A-Za-z0-9_]*$/;\nconst LINE_TERMINATOR = /[\\n\\r\\u2028\\u2029]/;\n\n/**\n * Drop a schema entity-name prefix (`MJ_BizApps_Common: Contact Methods` →\n * `Contact Methods`). DisplayName is the long-term source of truth; this keeps\n * already-baked SectionName strings readable until CodeGen reruns.\n */\nexport function HumanizeEntityTitle(name: string): string {\n const trimmed = (name ?? '').trim();\n const colon = trimmed.indexOf(':');\n if (colon < 1 || !SCHEMA_PREFIX.test(trimmed.slice(0, colon))) return trimmed;\n const rest = trimmed.slice(colon + 1);\n const title = rest.trimStart();\n // The prefix needs whitespace after its colon, and the title is one line.\n if (title.length === rest.length || LINE_TERMINATOR.test(title)) return trimmed;\n return title || trimmed;\n}\n\nexport interface FormChromeGroup {\n Key: string;\n Title: string;\n Icon: string;\n SectionKeys: string[];\n /** True when this group is the More bucket (Detail related grids). */\n IsMore: boolean;\n /**\n * Primary contribution that owns its own rail item and sorts in the\n * lead band (before Details). Overview is the usual case.\n */\n IsLead?: boolean;\n}\n\nexport interface FormChromeSpec {\n Layout: 'accordion' | 'left-nav';\n Groups: FormChromeGroup[];\n /** SectionKey → role for related-entity panels. Field panels are omitted. */\n RelatedRoles: ReadonlyMap<string, FormRole>;\n MoreSectionKeys: string[];\n /**\n * L3 admin Title overlays, keyed by section key or contribution key.\n * First-class group titles are already rewritten; More items and\n * accordion headers read this map so the same override reaches both.\n */\n TitleBySectionKey?: ReadonlyMap<string, string>;\n}\n\n/**\n * True when `sectionKey` sits in the left-nav Details group — the one rail\n * item that shows SEVERAL panels at once (every field panel, plus any\n * contribution registered with `ChromeGroup: 'details'`). The container\n * renders those panels as ONE card (`.mj-chrome-details`, with\n * `-first` / `-last` on the visual edges): no per-section headers, one\n * surface — otherwise the field rows float on the page background.\n */\nexport function IsDetailsSectionKey(spec: Pick<FormChromeSpec, 'Groups'>, sectionKey: string): boolean {\n const details = spec.Groups.find((g) => g.Key === DETAILS_SECTION_KEY);\n return !!details && details.SectionKeys.includes(sectionKey);\n}\n\n/**\n * The visual first and last of the Details panels currently shown. Panels are\n * flex items sequenced by CSS `order` (the form's section display order), so\n * DOM order is not enough — a user who reordered sections would get the card's\n * rounded corners on the wrong panels. Ties keep DOM order (stable sort).\n */\nexport function DetailsCardEdges(\n keysInDomOrder: readonly string[],\n orderOf: (sectionKey: string) => number,\n): { First: string | null; Last: string | null } {\n if (keysInDomOrder.length === 0) return { First: null, Last: null };\n const sorted = keysInDomOrder\n .map((key, index) => ({ key, index, order: orderOf(key) }))\n .sort((a, b) => (a.order - b.order) || (a.index - b.index));\n return { First: sorted[0].key, Last: sorted[sorted.length - 1].key };\n}\n\nexport interface FormChromePanelSnapshot {\n SectionKey: string;\n SectionName: string;\n Variant: string;\n Icon?: string;\n /**\n * The inputs this panel draws, when it draws any. Present so the composition snapshot\n * can name a field a contribution could stand in for; the chrome rules themselves do\n * not read it.\n */\n Fields?: ReadonlyArray<{ Name: string; Label: string }>;\n}\n\nexport const DEFAULT_FORM_CHROME_SPEC: FormChromeSpec = {\n Layout: 'accordion',\n Groups: [],\n RelatedRoles: new Map(),\n MoreSectionKeys: [],\n};\n"]}
@@ -505,7 +505,8 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
505
505
  * was part of, not in a rail item of its own beside it. Without this the replaced section
506
506
  * disappears and the panel surfaces somewhere else, so the form loses a section and gains
507
507
  * a tab and neither is what was asked for. A panel drawn inside a section belongs to that
508
- * section's rail item the same way, and anything else to the item its slot sits in.
508
+ * section's rail item the same way. Anything else goes to the item its slot sits in, unless it
509
+ * declared an `inclusion` — that is more specific than the slot (see DefaultContributionChromeGroup).
509
510
  *
510
511
  * Derived here rather than written to the row, because which rail item a section belongs
511
512
  * to is a property of the rendered form. The same contribution on an accordion form, or
@@ -1 +1 @@
1
- {"version":3,"file":"record-form-container.component.d.ts","sourceRoot":"","sources":["../../../src/lib/container/record-form-container.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACqB,YAAY,EAErB,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAEjE,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAA8D,MAAM,sBAAsB,CAAC;AAExI,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAIrE,OAAO,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAElG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,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CAwiF1C"}
1
+ {"version":3,"file":"record-form-container.component.d.ts","sourceRoot":"","sources":["../../../src/lib/container/record-form-container.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACqB,YAAY,EAErB,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAEjE,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAA8D,MAAM,sBAAsB,CAAC;AAExI,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAIrE,OAAO,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAElG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AAC1G,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAA0B,MAAM,mCAAmC,CAAC;AAEhG,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAU1E,OAAO,KAAK,EAAE,eAAe,EAA2B,MAAM,uBAAuB,CAAC;AAiCtF,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,C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AAqB,EAAE,YAAY,GAAG,IAAI,CAAQ;IAClD,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAa;IAE3D,OAAO,CAAC,yBAAyB;IASjC;;;;;;;OAOG;IACH,OAAO,CAAC,yBAAyB;IAwBjC,6EAA6E;IAC7E,OAAO,CAAC,aAAa;IAQrB,8EAA8E;IAC9E,OAAO,CAAC,2BAA2B;IASnC;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAYhC,2FAA2F;IAC3F,OAAO,CAAC,uBAAuB;IAW/B,yEAAyE;IACzE,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAMxD,cAAc,IAAI,IAAI;IAMtB,oBAAoB,IAAI,IAAI;IAK5B;;;;OAIG;IACH,qBAAqB,IAAI,IAAI;yCA1iFlB,8BAA8B;2CAA9B,8BAA8B;CAgjF1C"}
@@ -18,7 +18,7 @@ import { FormPanelAdminService } from '../panel-manager/form-panel-admin.service
18
18
  import { FormChromeCoordinator } from '../chrome/form-chrome-coordinator.service';
19
19
  import { ResolveFormChrome, OrderChromeGroups, OrderMoreSectionKeys, MoveChromeGroupInSectionOrder, OverlayChromeSectionOrder } from '../chrome/resolve-form-chrome';
20
20
  import { LoadFormChromeRules } from '../chrome/load-form-chrome-rules';
21
- import { MORE_SECTION_KEY, HumanizeEntityTitle, IsAlwaysMoreSection, IsDetailsSectionKey, DetailsCardEdges, ReplacedSectionChromeGroup, RailGroupSectionKeys, SlotChromeGroup, SectionDrawingAnyField } from '../chrome/form-chrome';
21
+ import { MORE_SECTION_KEY, HumanizeEntityTitle, IsAlwaysMoreSection, IsDetailsSectionKey, DetailsCardEdges, ReplacedSectionChromeGroup, RailGroupSectionKeys, DefaultContributionChromeGroup, SectionDrawingAnyField } from '../chrome/form-chrome';
22
22
  import { ClampRailWidth, FORM_CHROME_RAIL_PINNED_DEFAULT, FORM_CHROME_RAIL_WIDTH_DEFAULT, FORM_CHROME_RAIL_WIDTH_MAX, FORM_CHROME_RAIL_WIDTH_MIN, ParseRailPinnedSetting, ParseRailWidthSetting, SerializeRailPinnedSetting, SerializeRailWidthSetting, ShouldPersistChromeActiveGroup, UnsavedLeadGroupKey, } from '../chrome/form-chrome-rail-pref';
23
23
  import { ApplyClippedTitle } from '../chrome/clipped-title';
24
24
  import { DETAILS_SECTION_KEY } from '../chrome/form-chrome';
@@ -1173,6 +1173,12 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1173
1173
  this.sectionIndicators.Changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
1174
1174
  this.cdr.markForCheck();
1175
1175
  });
1176
+ // A section that draws itself only once its data has loaded mounts inside a slot
1177
+ // after `slots.changes` fired, so none of the triggers above see it. The rail is
1178
+ // worked out from the sections on the page: file the newcomer (or drop the leaver).
1179
+ this.chrome.SectionsChanged.pipe(takeUntil(this.destroy$)).subscribe(() => {
1180
+ this.scheduleChromeResolve();
1181
+ });
1176
1182
  this.restoreChromePrefs();
1177
1183
  this.scheduleChromeResolve();
1178
1184
  // Watch for changes to record dirty state
@@ -1981,7 +1987,8 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
1981
1987
  * was part of, not in a rail item of its own beside it. Without this the replaced section
1982
1988
  * disappears and the panel surfaces somewhere else, so the form loses a section and gains
1983
1989
  * a tab and neither is what was asked for. A panel drawn inside a section belongs to that
1984
- * section's rail item the same way, and anything else to the item its slot sits in.
1990
+ * section's rail item the same way. Anything else goes to the item its slot sits in, unless it
1991
+ * declared an `inclusion` — that is more specific than the slot (see DefaultContributionChromeGroup).
1985
1992
  *
1986
1993
  * Derived here rather than written to the row, because which rail item a section belongs
1987
1994
  * to is a property of the rendered form. The same contribution on an accordion form, or
@@ -2000,7 +2007,7 @@ export class MjRecordFormContainerComponent extends BaseAngularComponent {
2000
2007
  : undefined;
2001
2008
  const group = this.groupOfReplacedSection(ReplacedSectionKeys(meta)[0])
2002
2009
  ?? this.groupOfReplacedSection(hostSection)
2003
- ?? SlotChromeGroup(meta.slot);
2010
+ ?? DefaultContributionChromeGroup(meta.slot, ReadRegisteredInclusion(meta.inclusion) !== null);
2004
2011
  if (group)
2005
2012
  map.set(key, group);
2006
2013
  }