@memberjunction/ng-base-forms 6.2.0-edge.4 → 6.2.0-edge.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +195 -2
- package/dist/lib/base-form-component.d.ts +23 -1
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +54 -10
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/chrome/form-chrome-coordinator.service.d.ts +9 -0
- package/dist/lib/chrome/form-chrome-coordinator.service.d.ts.map +1 -1
- package/dist/lib/chrome/form-chrome-coordinator.service.js +11 -0
- package/dist/lib/chrome/form-chrome-coordinator.service.js.map +1 -1
- package/dist/lib/chrome/form-composition-snapshot.d.ts +52 -0
- package/dist/lib/chrome/form-composition-snapshot.d.ts.map +1 -1
- package/dist/lib/chrome/form-composition-snapshot.js +4 -0
- package/dist/lib/chrome/form-composition-snapshot.js.map +1 -1
- package/dist/lib/container/record-form-container.component.d.ts +107 -1
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
- package/dist/lib/container/record-form-container.component.js +1500 -316
- package/dist/lib/container/record-form-container.component.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +167 -14
- package/dist/lib/field/form-field.component.d.ts.map +1 -1
- package/dist/lib/field/form-field.component.js +1374 -470
- package/dist/lib/field/form-field.component.js.map +1 -1
- package/dist/lib/form-record-refresh.coordinator.d.ts +124 -0
- package/dist/lib/form-record-refresh.coordinator.d.ts.map +1 -1
- package/dist/lib/form-record-refresh.coordinator.js +93 -13
- package/dist/lib/form-record-refresh.coordinator.js.map +1 -1
- package/dist/lib/host/entity-form-host.component.d.ts +104 -2
- package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
- package/dist/lib/host/entity-form-host.component.js +272 -34
- package/dist/lib/host/entity-form-host.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-card.component.js +7 -4
- package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-panel.component.js +1 -2
- package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
- package/dist/lib/links/record-link-utils.d.ts +83 -0
- package/dist/lib/links/record-link-utils.d.ts.map +1 -0
- package/dist/lib/links/record-link-utils.js +232 -0
- package/dist/lib/links/record-link-utils.js.map +1 -0
- package/dist/lib/links/record-link.component.d.ts +50 -0
- package/dist/lib/links/record-link.component.d.ts.map +1 -0
- package/dist/lib/links/record-link.component.js +319 -0
- package/dist/lib/links/record-link.component.js.map +1 -0
- package/dist/lib/links/record-link.directive.d.ts +94 -0
- package/dist/lib/links/record-link.directive.d.ts.map +1 -0
- package/dist/lib/links/record-link.directive.js +277 -0
- package/dist/lib/links/record-link.directive.js.map +1 -0
- package/dist/lib/links/record-links-drawer.component.d.ts +21 -0
- package/dist/lib/links/record-links-drawer.component.d.ts.map +1 -0
- package/dist/lib/links/record-links-drawer.component.js +61 -0
- package/dist/lib/links/record-links-drawer.component.js.map +1 -0
- package/dist/lib/links/record-links.component.d.ts +249 -0
- package/dist/lib/links/record-links.component.d.ts.map +1 -0
- package/dist/lib/links/record-links.component.js +1523 -0
- package/dist/lib/links/record-links.component.js.map +1 -0
- package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.js +5 -0
- package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
- package/dist/lib/panel-slot/form-field-panel-slot.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-field-panel-slot.component.js +3 -1
- package/dist/lib/panel-slot/form-field-panel-slot.component.js.map +1 -1
- package/dist/lib/panel-slot/form-panel-slot.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-panel-slot.component.js +6 -0
- package/dist/lib/panel-slot/form-panel-slot.component.js.map +1 -1
- package/dist/lib/preview-popover/record-preview-popover.component.d.ts +187 -0
- package/dist/lib/preview-popover/record-preview-popover.component.d.ts.map +1 -0
- package/dist/lib/preview-popover/record-preview-popover.component.js +1060 -0
- package/dist/lib/preview-popover/record-preview-popover.component.js.map +1 -0
- package/dist/lib/preview-popover/record-preview-popover.service.d.ts +105 -0
- package/dist/lib/preview-popover/record-preview-popover.service.d.ts.map +1 -0
- package/dist/lib/preview-popover/record-preview-popover.service.js +278 -0
- package/dist/lib/preview-popover/record-preview-popover.service.js.map +1 -0
- package/dist/lib/resolver/form-resolver.service.d.ts +44 -1
- package/dist/lib/resolver/form-resolver.service.d.ts.map +1 -1
- package/dist/lib/resolver/form-resolver.service.js +51 -3
- package/dist/lib/resolver/form-resolver.service.js.map +1 -1
- package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts +21 -0
- package/dist/lib/toolbar/actions/record-links-toolbar-action.d.ts.map +1 -0
- package/dist/lib/toolbar/actions/record-links-toolbar-action.js +90 -0
- package/dist/lib/toolbar/actions/record-links-toolbar-action.js.map +1 -0
- package/dist/lib/toolbar/base-form-toolbar-action.d.ts +189 -0
- package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -0
- package/dist/lib/toolbar/base-form-toolbar-action.js +274 -0
- package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -0
- package/dist/lib/toolbar/form-toolbar.component.d.ts +21 -1
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.js +295 -195
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
- package/dist/lib/types/form-toolbar-item.js.map +1 -1
- package/dist/lib/types/toolbar-config.d.ts +4 -0
- package/dist/lib/types/toolbar-config.d.ts.map +1 -1
- package/dist/lib/types/toolbar-config.js +6 -0
- package/dist/lib/types/toolbar-config.js.map +1 -1
- package/dist/module.d.ts +19 -14
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +39 -6
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +9 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +9 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +20 -20
|
@@ -64,6 +64,48 @@ export interface FormCompositionChoice {
|
|
|
64
64
|
/** The form's name in the form picker. */
|
|
65
65
|
Label: string;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Compact active-record state included in {@link FormCompositionSnapshot} and {@link FormAgentContext}
|
|
69
|
+
* when a saved record is open, giving AI assistants (Skip / Sage) immediate visibility into
|
|
70
|
+
* the record's display name, edit/dirty status, and key scalar field values.
|
|
71
|
+
*/
|
|
72
|
+
export interface FormAgentRecordState {
|
|
73
|
+
DisplayName?: string | null;
|
|
74
|
+
RecordDisplayName?: string | null;
|
|
75
|
+
EditMode: boolean;
|
|
76
|
+
IsDirty: boolean;
|
|
77
|
+
Dirty?: boolean;
|
|
78
|
+
DirtyFields?: string[];
|
|
79
|
+
DirtyFieldNames?: string[];
|
|
80
|
+
HasExternalUpdateConflict?: boolean;
|
|
81
|
+
PreviewingHistoricalChangeID?: string | null;
|
|
82
|
+
ConflictCount?: number;
|
|
83
|
+
VersionCount?: number;
|
|
84
|
+
TagCount?: number;
|
|
85
|
+
KeyFields?: Record<string, string | number | boolean | null>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Compact summary of incoming and outgoing record links for {@link FormAgentContext}.
|
|
89
|
+
*/
|
|
90
|
+
export interface FormAgentLinksSummary {
|
|
91
|
+
TotalCount: number;
|
|
92
|
+
OutgoingCount: number;
|
|
93
|
+
IncomingCount: number;
|
|
94
|
+
ByEntity?: Array<{
|
|
95
|
+
EntityName: string;
|
|
96
|
+
EntityDisplayName: string;
|
|
97
|
+
Direction: 'outgoing' | 'incoming' | 'both';
|
|
98
|
+
Count: number;
|
|
99
|
+
SampleNames: string[];
|
|
100
|
+
}>;
|
|
101
|
+
TopLinks?: Array<{
|
|
102
|
+
Direction: 'outgoing' | 'incoming';
|
|
103
|
+
EntityName: string;
|
|
104
|
+
RecordID: string;
|
|
105
|
+
DisplayName: string;
|
|
106
|
+
FieldLabel: string;
|
|
107
|
+
}>;
|
|
108
|
+
}
|
|
67
109
|
export interface FormCompositionSnapshot {
|
|
68
110
|
Entity: string;
|
|
69
111
|
/**
|
|
@@ -83,6 +125,10 @@ export interface FormCompositionSnapshot {
|
|
|
83
125
|
Rail: FormCompositionRailItem[];
|
|
84
126
|
SlotsPresent: FormPanelSlot[];
|
|
85
127
|
ChromeRuleCount: number;
|
|
128
|
+
/** Optional active record field/dirty state for AI context. */
|
|
129
|
+
RecordState?: FormAgentRecordState;
|
|
130
|
+
/** Optional bidirectional record links summary for AI context. */
|
|
131
|
+
Links?: FormAgentLinksSummary;
|
|
86
132
|
}
|
|
87
133
|
/** One rail item, as a consumer outside the form needs it. */
|
|
88
134
|
export interface FormCompositionRailItem {
|
|
@@ -114,6 +160,8 @@ export interface BuildFormCompositionSnapshotInput {
|
|
|
114
160
|
HiddenContributionKeys: ReadonlySet<string>;
|
|
115
161
|
SlotsPresent: readonly FormPanelSlot[];
|
|
116
162
|
ChromeRuleCount: number;
|
|
163
|
+
RecordState?: FormAgentRecordState;
|
|
164
|
+
Links?: FormAgentLinksSummary;
|
|
117
165
|
}
|
|
118
166
|
export declare function BuildFormCompositionSnapshot(input: BuildFormCompositionSnapshotInput): FormCompositionSnapshot;
|
|
119
167
|
/** One section of {@link FormAgentContext}. */
|
|
@@ -141,6 +189,10 @@ export interface FormAgentContext {
|
|
|
141
189
|
RecordPrimaryKey: string | null;
|
|
142
190
|
FormChoice: FormCompositionChoice;
|
|
143
191
|
Sections: FormAgentContextSection[];
|
|
192
|
+
/** Optional active record field/dirty state for AI context. */
|
|
193
|
+
RecordState?: FormAgentRecordState;
|
|
194
|
+
/** Optional bidirectional record links summary for AI context. */
|
|
195
|
+
Links?: FormAgentLinksSummary;
|
|
144
196
|
}
|
|
145
197
|
/**
|
|
146
198
|
* The compact {@link FormAgentContext} of a snapshot. Only contributions the form draws hold a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-composition-snapshot.d.ts","sourceRoot":"","sources":["../../../src/lib/chrome/form-composition-snapshot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EASH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACpC,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,aAAa,GAAG,MAAM,CAAC;IAClC,gGAAgG;IAChG,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,2BAA2B;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,0EAA0E;IAC1E,MAAM,EAAE,OAAO,CAAC;IAChB,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAClC,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IAClC,4FAA4F;IAC5F,cAAc,EAAE,OAAO,CAAC;IACxB,wFAAwF;IACxF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,qBAAqB,CAAC;IAClC,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IACjC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAC7C,sFAAsF;IACtF,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"form-composition-snapshot.d.ts","sourceRoot":"","sources":["../../../src/lib/chrome/form-composition-snapshot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EASH,KAAK,4BAA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EAAkE;IAClE,KAAK,CAAC,EAAE,qBAAqB,CAAC;CACjC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,uBAAuB,GAAG,gBAAgB,CA4BzF"}
|
|
@@ -97,6 +97,8 @@ export function BuildFormCompositionSnapshot(input) {
|
|
|
97
97
|
})),
|
|
98
98
|
SlotsPresent: [...input.SlotsPresent],
|
|
99
99
|
ChromeRuleCount: input.ChromeRuleCount,
|
|
100
|
+
...(input.RecordState ? { RecordState: input.RecordState } : {}),
|
|
101
|
+
...(input.Links ? { Links: input.Links } : {}),
|
|
100
102
|
};
|
|
101
103
|
}
|
|
102
104
|
/**
|
|
@@ -132,6 +134,8 @@ export function BuildFormAgentContext(snapshot) {
|
|
|
132
134
|
Hidden: section.Hidden,
|
|
133
135
|
ContributionKey: holderBySection.get(section.Key) ?? null,
|
|
134
136
|
})),
|
|
137
|
+
...(snapshot.RecordState ? { RecordState: snapshot.RecordState } : {}),
|
|
138
|
+
...(snapshot.Links ? { Links: snapshot.Links } : {}),
|
|
135
139
|
};
|
|
136
140
|
}
|
|
137
141
|
//# sourceMappingURL=form-composition-snapshot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-composition-snapshot.js","sourceRoot":"","sources":["../../../src/lib/chrome/form-composition-snapshot.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,qCAAqC,EACrC,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,GAG3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAwHhE,SAAS,OAAO,CAAC,MAAkC,EAAE,UAAkB;IACnE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,UA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AAC;YAC1C,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI;SAC5D,CAAC,CAAC;KACN,CAAC;AACN,CAAC","sourcesContent":["// packages/Angular/Generic/base-forms/src/lib/chrome/form-composition-snapshot.ts\nimport type { FormInclusion, FormRole } from '@memberjunction/core';\nimport type { FormPanelSlot } from '../panel-slot/base-form-panel';\nimport {\n CreateRelatedEntitySectionKeyResolver,\n RelatedContributionKey,\n ResolveContributionKey,\n ReplacedSectionKeys,\n ResolveFormContributionWinners,\n ResolveFormContributions,\n StripJoinFieldBrackets,\n VisibleFormRelationships,\n type FormContributionRegistration,\n type FormContributionRelationship,\n} from '../panel-slot/form-contribution';\nimport { IsPanelHiddenByUser } from '../panel-slot/panel-hides';\nimport type { FormChromeGroup, FormChromePanelSnapshot } from './form-chrome';\n\n/**\n * What is on this form right now — the input the apply flow needs to add or replace one piece.\n * Built by the container after every chrome resolve and, when it changed, published through\n * `BaseFormComponent.CompositionChanged` and the `FormCompositionRegistry`. It stays in the\n * browser: an agent is handed the compact {@link FormAgentContext} built from it.\n */\nexport interface FormCompositionSection {\n Key: string;\n Title: string;\n Variant: string;\n /** Rail group key, or null when the section is not in any first-class group. */\n Group: string | null;\n Hidden: boolean;\n /**\n * The inputs this section draws, so a panel can be offered one field to stand in for.\n * Empty for a section with no fields of its own, such as a related grid.\n */\n Fields: Array<{ Name: string; Label: string }>;\n}\n\nexport interface FormCompositionRelated {\n Entity: string;\n JoinField: string;\n SectionKey: string;\n Inclusion: FormInclusion | 'Auto';\n /** baked = in the template; stock = container fill-in; claimed = a contribution replaced it. */\n Source: 'baked' | 'stock' | 'claimed';\n}\n\nexport interface FormCompositionContribution {\n Key: string;\n Slot: FormPanelSlot;\n Source: 'class' | 'metadata';\n Title: string;\n Presentation: 'panel' | 'bare';\n /** Suppressed by an L3 rule or inclusion None, or hidden by this user. */\n Hidden: boolean;\n /** Last-wins rank; the apply flow uses incumbent + 1 to replace a compiled piece. */\n Precedence: number;\n /** Order among panels in the same slot, higher first. */\n SortKey: number;\n /** The section it is placed in, replacing nothing. */\n InSectionKey?: string;\n /** Where inside its section it draws. */\n SectionPosition?: 'start' | 'end';\n /** Fields it stands in for. */\n FieldNames?: string[];\n /** Blocks it stands in for. */\n SectionKeys?: string[];\n /** True when it stands in for a section, tab or grid. */\n ReplacesPlace?: boolean;\n}\n\n/** Which form the user sees: the standard form, or one full custom form. */\nexport interface FormCompositionChoice {\n /** True when a full custom form owns the whole body, so no section, grid or panel draws. */\n FullCustomForm: boolean;\n /** The `MJ: Entity Form Overrides` row the user sees, or null for the standard form. */\n OverrideID: string | null;\n /** The form's name in the form picker. */\n Label: string;\n}\n\nexport interface FormCompositionSnapshot {\n Entity: string;\n /**\n * The record this composition was built for, as `CompositeKey.ToURLSegment()`, which\n * `CompositeKey.FromURLSegment` reads back. Null for a record not saved yet.\n * `AdditionalContext` is app-global and replaced wholesale by whichever surface\n * published last, so a consumer needs to be able to tell which record a snapshot\n * describes rather than assuming it matches the conversation.\n */\n RecordPrimaryKey: string | null;\n FormChoice: FormCompositionChoice;\n Layout: 'accordion' | 'left-nav';\n Sections: FormCompositionSection[];\n Related: FormCompositionRelated[];\n Contributions: FormCompositionContribution[];\n /** The side rail this form shows, in order, with the panels filed under each item. */\n Rail: FormCompositionRailItem[];\n SlotsPresent: FormPanelSlot[];\n ChromeRuleCount: number;\n}\n\n/** One rail item, as a consumer outside the form needs it. */\nexport interface FormCompositionRailItem {\n Key: string;\n Title: string;\n Icon: string;\n SectionKeys: string[];\n IsMore: boolean;\n}\n\nexport interface BuildFormCompositionSnapshotInput {\n EntityName: string;\n RecordPrimaryKey: string | null;\n FormChoice: FormCompositionChoice;\n Layout: 'accordion' | 'left-nav';\n Groups: readonly FormChromeGroup[];\n /** Every section on the form, the hidden ones included. */\n Panels: readonly FormChromePanelSnapshot[];\n /** The sections in {@link Panels} the form does not show. */\n HiddenSectionKeys: ReadonlySet<string>;\n RelatedEntities: readonly FormContributionRelationship[];\n IsaChildEntityIDs: readonly string[];\n BakedSectionKeys: readonly string[];\n /** Every registration on the form, including the panels this user hid. */\n Registrations: readonly FormContributionRegistration[];\n /** The keys of the panels this user hid. Their registrations are listed, marked hidden. */\n HiddenPanelKeys?: readonly string[];\n /** SectionKey → resolved role for related grids (Primary | Detail). Detail reads as More. */\n RelatedRoles: ReadonlyMap<string, FormRole>;\n HiddenContributionKeys: ReadonlySet<string>;\n SlotsPresent: readonly FormPanelSlot[];\n ChromeRuleCount: number;\n}\n\nfunction groupOf(groups: readonly FormChromeGroup[], sectionKey: string): string | null {\n return groups.find((g) => !g.IsMore && g.SectionKeys.includes(sectionKey))?.Key ?? null;\n}\n\n/** A hero (`bare`) or a card (`panel`). `presentation` is the only statement of it, on both sources. */\nfunction presentationOf(reg: FormContributionRegistration): 'panel' | 'bare' {\n return reg.Presentation ?? reg.Metadata.presentation ?? 'panel';\n}\n\n/**\n * The contributions on the form, as the server's composition answer lists them: one winner per\n * key among the panels the form draws, then, marked hidden by the caller, the winners among the\n * panels this user hid whose keys no drawn panel holds. A hidden panel is out of the collapse, so\n * a panel it would have outranked holds its key.\n */\nfunction listedWinners(\n entityName: string,\n drawn: readonly FormContributionRegistration[],\n userHidden: readonly FormContributionRegistration[],\n): readonly FormContributionRegistration[] {\n const shown = ResolveFormContributionWinners(entityName, drawn).Winners;\n if (userHidden.length === 0) return shown;\n const shownKeys = new Set(shown.map((reg) => ResolveContributionKey(reg.Metadata)).filter((key) => !!key));\n const hiddenOnly = ResolveFormContributionWinners(entityName, userHidden).Winners\n .filter((reg) => !shownKeys.has(ResolveContributionKey(reg.Metadata)));\n return [...shown, ...hiddenOnly];\n}\n\nexport function BuildFormCompositionSnapshot(input: BuildFormCompositionSnapshotInput): FormCompositionSnapshot {\n const userHidden = new Set(input.HiddenPanelKeys ?? []);\n const isUserHidden = (reg: FormContributionRegistration) => IsPanelHiddenByUser(reg, userHidden);\n const drawn = userHidden.size > 0 ? input.Registrations.filter((reg) => !isUserHidden(reg)) : input.Registrations;\n const hiddenByUser = userHidden.size > 0 ? input.Registrations.filter(isUserHidden) : [];\n const resolved = ResolveFormContributions({\n EntityName: input.EntityName,\n RelatedEntities: input.RelatedEntities,\n IsaChildEntityIDs: input.IsaChildEntityIDs,\n Registrations: drawn,\n BakedSectionKeys: input.BakedSectionKeys,\n ShowRelatedEntities: true,\n });\n const stockKeys = new Set(resolved.StockGrids.map((g) => g.ContributionKey));\n const claimedKeys = new Set(\n resolved.Winners.filter((w) => w.Kind === 'registered' && w.RelatedEntity)\n .map((w) => RelatedContributionKey(w.RelatedEntity as string, w.RelatedJoinField)),\n );\n\n const visibleRelated = VisibleFormRelationships(input.RelatedEntities, input.IsaChildEntityIDs);\n const sectionKeyOf = CreateRelatedEntitySectionKeyResolver(visibleRelated);\n\n const related: FormCompositionRelated[] = visibleRelated.map((rel) => {\n const join = StripJoinFieldBrackets(rel.RelatedEntityJoinField);\n const key = RelatedContributionKey(rel.RelatedEntity, join);\n const sectionKey = sectionKeyOf(rel);\n const role = input.RelatedRoles.get(sectionKey);\n return {\n Entity: rel.RelatedEntity,\n JoinField: join,\n SectionKey: sectionKey,\n Inclusion: role === 'Primary' ? 'Primary' : role === 'Detail' ? 'More' : 'Auto',\n Source: claimedKeys.has(key) ? 'claimed' : stockKeys.has(key) ? 'stock' : 'baked',\n };\n });\n\n let unique = 0;\n const winners = listedWinners(input.EntityName, drawn, hiddenByUser);\n const contributions: FormCompositionContribution[] = winners.map((reg) => {\n const key = ResolveContributionKey(reg.Metadata) || `__unique:${unique++}`;\n return {\n Key: key,\n Slot: reg.Metadata.slot,\n Source: reg.Source ?? 'class',\n Title: reg.Title ?? reg.Metadata.contributionKey ?? key,\n Presentation: presentationOf(reg),\n Hidden: input.HiddenContributionKeys.has(key) || isUserHidden(reg),\n Precedence: reg.Priority,\n SortKey: reg.Metadata.sortKey ?? 0,\n ...(reg.Metadata.inSectionKey ? { InSectionKey: reg.Metadata.inSectionKey } : {}),\n ...(reg.Metadata.sectionPosition ? { SectionPosition: reg.Metadata.sectionPosition } : {}),\n ...(reg.Metadata.replacesFieldNames?.length ? { FieldNames: [...reg.Metadata.replacesFieldNames] } : {}),\n ...(ReplacedSectionKeys(reg.Metadata).length > 0 ? { SectionKeys: [...ReplacedSectionKeys(reg.Metadata)] } : {}),\n ...(ReplacedSectionKeys(reg.Metadata).length > 0 || reg.Metadata.relatedEntity ? { ReplacesPlace: true } : {}),\n };\n });\n\n return {\n Entity: input.EntityName,\n RecordPrimaryKey: input.RecordPrimaryKey,\n FormChoice: { ...input.FormChoice },\n Layout: input.Layout,\n Sections: input.Panels.map((p) => ({\n Key: p.SectionKey,\n Title: p.SectionName,\n Variant: p.Variant,\n Group: groupOf(input.Groups, p.SectionKey),\n Hidden: input.HiddenSectionKeys.has(p.SectionKey),\n Fields: (p.Fields ?? []).map((f) => ({ Name: f.Name, Label: f.Label })),\n })),\n Related: related,\n Contributions: contributions,\n Rail: input.Groups.map((group) => ({\n Key: group.Key,\n Title: group.Title,\n Icon: group.Icon,\n SectionKeys: [...group.SectionKeys],\n IsMore: group.IsMore === true,\n })),\n SlotsPresent: [...input.SlotsPresent],\n ChromeRuleCount: input.ChromeRuleCount,\n };\n}\n\n/** One section of {@link FormAgentContext}. */\nexport interface FormAgentContextSection {\n Key: string;\n Title: string;\n Variant: string;\n Hidden: boolean;\n /** The contribution that draws this section or stands in for it, or null when none does. */\n ContributionKey: string | null;\n}\n\n/**\n * The form the user is looking at, as an agent sees it in `AppContext.AdditionalContext.Form`.\n *\n * Every value of `AdditionalContext` goes into every agent prompt, so this carries only what\n * identifies the form and its sections. The rest (fields, rail, contribution details) stays in\n * the full {@link FormCompositionSnapshot}, which the apply flow reads from the\n * `FormCompositionRegistry`, and the `Get Form Composition For Entity` and\n * `Get Form Contributions For Entity` actions report it to an agent that needs it. Keep field\n * names stable.\n */\nexport interface FormAgentContext {\n Entity: string;\n /** The record, as `CompositeKey.ToURLSegment()`; null for a record not saved yet. */\n RecordPrimaryKey: string | null;\n FormChoice: FormCompositionChoice;\n Sections: FormAgentContextSection[];\n}\n\n/**\n * The compact {@link FormAgentContext} of a snapshot. Only contributions the form draws hold a\n * section: one that is hidden (by the user, or by inclusion `None`) holds none, so the section is\n * reported as the form draws it.\n */\nexport function BuildFormAgentContext(snapshot: FormCompositionSnapshot): FormAgentContext {\n const drawn = snapshot.Contributions.filter((c) => !c.Hidden);\n const contributionKeys = new Set(drawn.map((c) => c.Key));\n const holderBySection = new Map<string, string>();\n // Weakest claim first, so a stronger one overwrites it: a grid claim, then a block a\n // contribution stands in for, then the contribution's own section.\n for (const rel of snapshot.Related) {\n const key = RelatedContributionKey(rel.Entity, rel.JoinField);\n if (rel.Source === 'claimed' && contributionKeys.has(key)) holderBySection.set(rel.SectionKey, key);\n }\n for (const c of drawn) {\n for (const sectionKey of c.SectionKeys ?? []) holderBySection.set(sectionKey, c.Key);\n }\n for (const key of contributionKeys) holderBySection.set(key, key);\n return {\n Entity: snapshot.Entity,\n RecordPrimaryKey: snapshot.RecordPrimaryKey,\n FormChoice: { ...snapshot.FormChoice },\n Sections: snapshot.Sections.map((section) => ({\n Key: section.Key,\n Title: section.Title,\n Variant: section.Variant,\n Hidden: section.Hidden,\n ContributionKey: holderBySection.get(section.Key) ?? null,\n })),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"form-composition-snapshot.js","sourceRoot":"","sources":["../../../src/lib/chrome/form-composition-snapshot.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,qCAAqC,EACrC,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,GAG3B,MAAM,iCAAiC,CAAC;AACzC,OAAO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QACpB,KAAK,MAAM,UAAU,IAAI,CAAC,CAAC,WAAW,IAAI,EAAE;YAAE,eAAe,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IACzF,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,gBAAgB;QAAE,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAClE,OAAO;QACH,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;QAC3C,UAAU,EAAE,EAAE,GAAG,QAAQ,CAAC,UAAU,EAAE;QACtC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC1C,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI;SAC5D,CAAC,CAAC;QACH,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACvD,CAAC;AACN,CAAC","sourcesContent":["// packages/Angular/Generic/base-forms/src/lib/chrome/form-composition-snapshot.ts\nimport type { FormInclusion, FormRole } from '@memberjunction/core';\nimport type { FormPanelSlot } from '../panel-slot/base-form-panel';\nimport {\n CreateRelatedEntitySectionKeyResolver,\n RelatedContributionKey,\n ResolveContributionKey,\n ReplacedSectionKeys,\n ResolveFormContributionWinners,\n ResolveFormContributions,\n StripJoinFieldBrackets,\n VisibleFormRelationships,\n type FormContributionRegistration,\n type FormContributionRelationship,\n} from '../panel-slot/form-contribution';\nimport { IsPanelHiddenByUser } from '../panel-slot/panel-hides';\nimport type { FormChromeGroup, FormChromePanelSnapshot } from './form-chrome';\n\n/**\n * What is on this form right now — the input the apply flow needs to add or replace one piece.\n * Built by the container after every chrome resolve and, when it changed, published through\n * `BaseFormComponent.CompositionChanged` and the `FormCompositionRegistry`. It stays in the\n * browser: an agent is handed the compact {@link FormAgentContext} built from it.\n */\nexport interface FormCompositionSection {\n Key: string;\n Title: string;\n Variant: string;\n /** Rail group key, or null when the section is not in any first-class group. */\n Group: string | null;\n Hidden: boolean;\n /**\n * The inputs this section draws, so a panel can be offered one field to stand in for.\n * Empty for a section with no fields of its own, such as a related grid.\n */\n Fields: Array<{ Name: string; Label: string }>;\n}\n\nexport interface FormCompositionRelated {\n Entity: string;\n JoinField: string;\n SectionKey: string;\n Inclusion: FormInclusion | 'Auto';\n /** baked = in the template; stock = container fill-in; claimed = a contribution replaced it. */\n Source: 'baked' | 'stock' | 'claimed';\n}\n\nexport interface FormCompositionContribution {\n Key: string;\n Slot: FormPanelSlot;\n Source: 'class' | 'metadata';\n Title: string;\n Presentation: 'panel' | 'bare';\n /** Suppressed by an L3 rule or inclusion None, or hidden by this user. */\n Hidden: boolean;\n /** Last-wins rank; the apply flow uses incumbent + 1 to replace a compiled piece. */\n Precedence: number;\n /** Order among panels in the same slot, higher first. */\n SortKey: number;\n /** The section it is placed in, replacing nothing. */\n InSectionKey?: string;\n /** Where inside its section it draws. */\n SectionPosition?: 'start' | 'end';\n /** Fields it stands in for. */\n FieldNames?: string[];\n /** Blocks it stands in for. */\n SectionKeys?: string[];\n /** True when it stands in for a section, tab or grid. */\n ReplacesPlace?: boolean;\n}\n\n/** Which form the user sees: the standard form, or one full custom form. */\nexport interface FormCompositionChoice {\n /** True when a full custom form owns the whole body, so no section, grid or panel draws. */\n FullCustomForm: boolean;\n /** The `MJ: Entity Form Overrides` row the user sees, or null for the standard form. */\n OverrideID: string | null;\n /** The form's name in the form picker. */\n Label: string;\n}\n\n/**\n * Compact active-record state included in {@link FormCompositionSnapshot} and {@link FormAgentContext}\n * when a saved record is open, giving AI assistants (Skip / Sage) immediate visibility into\n * the record's display name, edit/dirty status, and key scalar field values.\n */\nexport interface FormAgentRecordState {\n DisplayName?: string | null;\n RecordDisplayName?: string | null;\n EditMode: boolean;\n IsDirty: boolean;\n Dirty?: boolean;\n DirtyFields?: string[];\n DirtyFieldNames?: string[];\n HasExternalUpdateConflict?: boolean;\n PreviewingHistoricalChangeID?: string | null;\n ConflictCount?: number;\n VersionCount?: number;\n TagCount?: number;\n KeyFields?: Record<string, string | number | boolean | null>;\n}\n\n/**\n * Compact summary of incoming and outgoing record links for {@link FormAgentContext}.\n */\nexport interface FormAgentLinksSummary {\n TotalCount: number;\n OutgoingCount: number;\n IncomingCount: number;\n ByEntity?: Array<{\n EntityName: string;\n EntityDisplayName: string;\n Direction: 'outgoing' | 'incoming' | 'both';\n Count: number;\n SampleNames: string[];\n }>;\n TopLinks?: Array<{\n Direction: 'outgoing' | 'incoming';\n EntityName: string;\n RecordID: string;\n DisplayName: string;\n FieldLabel: string;\n }>;\n}\n\nexport interface FormCompositionSnapshot {\n Entity: string;\n /**\n * The record this composition was built for, as `CompositeKey.ToURLSegment()`, which\n * `CompositeKey.FromURLSegment` reads back. Null for a record not saved yet.\n * `AdditionalContext` is app-global and replaced wholesale by whichever surface\n * published last, so a consumer needs to be able to tell which record a snapshot\n * describes rather than assuming it matches the conversation.\n */\n RecordPrimaryKey: string | null;\n FormChoice: FormCompositionChoice;\n Layout: 'accordion' | 'left-nav';\n Sections: FormCompositionSection[];\n Related: FormCompositionRelated[];\n Contributions: FormCompositionContribution[];\n /** The side rail this form shows, in order, with the panels filed under each item. */\n Rail: FormCompositionRailItem[];\n SlotsPresent: FormPanelSlot[];\n ChromeRuleCount: number;\n /** Optional active record field/dirty state for AI context. */\n RecordState?: FormAgentRecordState;\n /** Optional bidirectional record links summary for AI context. */\n Links?: FormAgentLinksSummary;\n}\n\n/** One rail item, as a consumer outside the form needs it. */\nexport interface FormCompositionRailItem {\n Key: string;\n Title: string;\n Icon: string;\n SectionKeys: string[];\n IsMore: boolean;\n}\n\nexport interface BuildFormCompositionSnapshotInput {\n EntityName: string;\n RecordPrimaryKey: string | null;\n FormChoice: FormCompositionChoice;\n Layout: 'accordion' | 'left-nav';\n Groups: readonly FormChromeGroup[];\n /** Every section on the form, the hidden ones included. */\n Panels: readonly FormChromePanelSnapshot[];\n /** The sections in {@link Panels} the form does not show. */\n HiddenSectionKeys: ReadonlySet<string>;\n RelatedEntities: readonly FormContributionRelationship[];\n IsaChildEntityIDs: readonly string[];\n BakedSectionKeys: readonly string[];\n /** Every registration on the form, including the panels this user hid. */\n Registrations: readonly FormContributionRegistration[];\n /** The keys of the panels this user hid. Their registrations are listed, marked hidden. */\n HiddenPanelKeys?: readonly string[];\n /** SectionKey → resolved role for related grids (Primary | Detail). Detail reads as More. */\n RelatedRoles: ReadonlyMap<string, FormRole>;\n HiddenContributionKeys: ReadonlySet<string>;\n SlotsPresent: readonly FormPanelSlot[];\n ChromeRuleCount: number;\n RecordState?: FormAgentRecordState;\n Links?: FormAgentLinksSummary;\n}\n\nfunction groupOf(groups: readonly FormChromeGroup[], sectionKey: string): string | null {\n return groups.find((g) => !g.IsMore && g.SectionKeys.includes(sectionKey))?.Key ?? null;\n}\n\n/** A hero (`bare`) or a card (`panel`). `presentation` is the only statement of it, on both sources. */\nfunction presentationOf(reg: FormContributionRegistration): 'panel' | 'bare' {\n return reg.Presentation ?? reg.Metadata.presentation ?? 'panel';\n}\n\n/**\n * The contributions on the form, as the server's composition answer lists them: one winner per\n * key among the panels the form draws, then, marked hidden by the caller, the winners among the\n * panels this user hid whose keys no drawn panel holds. A hidden panel is out of the collapse, so\n * a panel it would have outranked holds its key.\n */\nfunction listedWinners(\n entityName: string,\n drawn: readonly FormContributionRegistration[],\n userHidden: readonly FormContributionRegistration[],\n): readonly FormContributionRegistration[] {\n const shown = ResolveFormContributionWinners(entityName, drawn).Winners;\n if (userHidden.length === 0) return shown;\n const shownKeys = new Set(shown.map((reg) => ResolveContributionKey(reg.Metadata)).filter((key) => !!key));\n const hiddenOnly = ResolveFormContributionWinners(entityName, userHidden).Winners\n .filter((reg) => !shownKeys.has(ResolveContributionKey(reg.Metadata)));\n return [...shown, ...hiddenOnly];\n}\n\nexport function BuildFormCompositionSnapshot(input: BuildFormCompositionSnapshotInput): FormCompositionSnapshot {\n const userHidden = new Set(input.HiddenPanelKeys ?? []);\n const isUserHidden = (reg: FormContributionRegistration) => IsPanelHiddenByUser(reg, userHidden);\n const drawn = userHidden.size > 0 ? input.Registrations.filter((reg) => !isUserHidden(reg)) : input.Registrations;\n const hiddenByUser = userHidden.size > 0 ? input.Registrations.filter(isUserHidden) : [];\n const resolved = ResolveFormContributions({\n EntityName: input.EntityName,\n RelatedEntities: input.RelatedEntities,\n IsaChildEntityIDs: input.IsaChildEntityIDs,\n Registrations: drawn,\n BakedSectionKeys: input.BakedSectionKeys,\n ShowRelatedEntities: true,\n });\n const stockKeys = new Set(resolved.StockGrids.map((g) => g.ContributionKey));\n const claimedKeys = new Set(\n resolved.Winners.filter((w) => w.Kind === 'registered' && w.RelatedEntity)\n .map((w) => RelatedContributionKey(w.RelatedEntity as string, w.RelatedJoinField)),\n );\n\n const visibleRelated = VisibleFormRelationships(input.RelatedEntities, input.IsaChildEntityIDs);\n const sectionKeyOf = CreateRelatedEntitySectionKeyResolver(visibleRelated);\n\n const related: FormCompositionRelated[] = visibleRelated.map((rel) => {\n const join = StripJoinFieldBrackets(rel.RelatedEntityJoinField);\n const key = RelatedContributionKey(rel.RelatedEntity, join);\n const sectionKey = sectionKeyOf(rel);\n const role = input.RelatedRoles.get(sectionKey);\n return {\n Entity: rel.RelatedEntity,\n JoinField: join,\n SectionKey: sectionKey,\n Inclusion: role === 'Primary' ? 'Primary' : role === 'Detail' ? 'More' : 'Auto',\n Source: claimedKeys.has(key) ? 'claimed' : stockKeys.has(key) ? 'stock' : 'baked',\n };\n });\n\n let unique = 0;\n const winners = listedWinners(input.EntityName, drawn, hiddenByUser);\n const contributions: FormCompositionContribution[] = winners.map((reg) => {\n const key = ResolveContributionKey(reg.Metadata) || `__unique:${unique++}`;\n return {\n Key: key,\n Slot: reg.Metadata.slot,\n Source: reg.Source ?? 'class',\n Title: reg.Title ?? reg.Metadata.contributionKey ?? key,\n Presentation: presentationOf(reg),\n Hidden: input.HiddenContributionKeys.has(key) || isUserHidden(reg),\n Precedence: reg.Priority,\n SortKey: reg.Metadata.sortKey ?? 0,\n ...(reg.Metadata.inSectionKey ? { InSectionKey: reg.Metadata.inSectionKey } : {}),\n ...(reg.Metadata.sectionPosition ? { SectionPosition: reg.Metadata.sectionPosition } : {}),\n ...(reg.Metadata.replacesFieldNames?.length ? { FieldNames: [...reg.Metadata.replacesFieldNames] } : {}),\n ...(ReplacedSectionKeys(reg.Metadata).length > 0 ? { SectionKeys: [...ReplacedSectionKeys(reg.Metadata)] } : {}),\n ...(ReplacedSectionKeys(reg.Metadata).length > 0 || reg.Metadata.relatedEntity ? { ReplacesPlace: true } : {}),\n };\n });\n\n return {\n Entity: input.EntityName,\n RecordPrimaryKey: input.RecordPrimaryKey,\n FormChoice: { ...input.FormChoice },\n Layout: input.Layout,\n Sections: input.Panels.map((p) => ({\n Key: p.SectionKey,\n Title: p.SectionName,\n Variant: p.Variant,\n Group: groupOf(input.Groups, p.SectionKey),\n Hidden: input.HiddenSectionKeys.has(p.SectionKey),\n Fields: (p.Fields ?? []).map((f) => ({ Name: f.Name, Label: f.Label })),\n })),\n Related: related,\n Contributions: contributions,\n Rail: input.Groups.map((group) => ({\n Key: group.Key,\n Title: group.Title,\n Icon: group.Icon,\n SectionKeys: [...group.SectionKeys],\n IsMore: group.IsMore === true,\n })),\n SlotsPresent: [...input.SlotsPresent],\n ChromeRuleCount: input.ChromeRuleCount,\n ...(input.RecordState ? { RecordState: input.RecordState } : {}),\n ...(input.Links ? { Links: input.Links } : {}),\n };\n}\n\n/** One section of {@link FormAgentContext}. */\nexport interface FormAgentContextSection {\n Key: string;\n Title: string;\n Variant: string;\n Hidden: boolean;\n /** The contribution that draws this section or stands in for it, or null when none does. */\n ContributionKey: string | null;\n}\n\n/**\n * The form the user is looking at, as an agent sees it in `AppContext.AdditionalContext.Form`.\n *\n * Every value of `AdditionalContext` goes into every agent prompt, so this carries only what\n * identifies the form and its sections. The rest (fields, rail, contribution details) stays in\n * the full {@link FormCompositionSnapshot}, which the apply flow reads from the\n * `FormCompositionRegistry`, and the `Get Form Composition For Entity` and\n * `Get Form Contributions For Entity` actions report it to an agent that needs it. Keep field\n * names stable.\n */\nexport interface FormAgentContext {\n Entity: string;\n /** The record, as `CompositeKey.ToURLSegment()`; null for a record not saved yet. */\n RecordPrimaryKey: string | null;\n FormChoice: FormCompositionChoice;\n Sections: FormAgentContextSection[];\n /** Optional active record field/dirty state for AI context. */\n RecordState?: FormAgentRecordState;\n /** Optional bidirectional record links summary for AI context. */\n Links?: FormAgentLinksSummary;\n}\n\n/**\n * The compact {@link FormAgentContext} of a snapshot. Only contributions the form draws hold a\n * section: one that is hidden (by the user, or by inclusion `None`) holds none, so the section is\n * reported as the form draws it.\n */\nexport function BuildFormAgentContext(snapshot: FormCompositionSnapshot): FormAgentContext {\n const drawn = snapshot.Contributions.filter((c) => !c.Hidden);\n const contributionKeys = new Set(drawn.map((c) => c.Key));\n const holderBySection = new Map<string, string>();\n // Weakest claim first, so a stronger one overwrites it: a grid claim, then a block a\n // contribution stands in for, then the contribution's own section.\n for (const rel of snapshot.Related) {\n const key = RelatedContributionKey(rel.Entity, rel.JoinField);\n if (rel.Source === 'claimed' && contributionKeys.has(key)) holderBySection.set(rel.SectionKey, key);\n }\n for (const c of drawn) {\n for (const sectionKey of c.SectionKeys ?? []) holderBySection.set(sectionKey, c.Key);\n }\n for (const key of contributionKeys) holderBySection.set(key, key);\n return {\n Entity: snapshot.Entity,\n RecordPrimaryKey: snapshot.RecordPrimaryKey,\n FormChoice: { ...snapshot.FormChoice },\n Sections: snapshot.Sections.map((section) => ({\n Key: section.Key,\n Title: section.Title,\n Variant: section.Variant,\n Hidden: section.Hidden,\n ContributionKey: holderBySection.get(section.Key) ?? null,\n })),\n ...(snapshot.RecordState ? { RecordState: snapshot.RecordState } : {}),\n ...(snapshot.Links ? { Links: snapshot.Links } : {}),\n };\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, QueryList, AfterContentInit, DoCheck, OnDestroy } from '@angular/core';
|
|
2
2
|
import { BaseEntity, CompositeKey, EntityInfo } from '@memberjunction/core';
|
|
3
3
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
4
|
+
import { MJRecordChangeEntity } from '@memberjunction/core-entities';
|
|
4
5
|
import { FormToolbarConfig } from '../types/toolbar-config';
|
|
5
6
|
import { FormToolbarItemConfig, FormToolbarItemClickEventArgs } from '../types/form-toolbar-item';
|
|
6
7
|
import { FormNavigationEvent } from '../types/navigation-events';
|
|
@@ -11,9 +12,12 @@ import { BeforeSaveEventArgs, BeforeDeleteEventArgs, BeforeRefreshEventArgs, Bef
|
|
|
11
12
|
import { BaseFormComponent } from '../base-form-component';
|
|
12
13
|
import { RestoreVersionEvent } from '@memberjunction/ng-record-changes';
|
|
13
14
|
import { ListManagementResult } from '@memberjunction/ng-list-management';
|
|
15
|
+
import { type FormAgentLinksSummary } from '../chrome/form-composition-snapshot';
|
|
16
|
+
import { BaseFormToolbarAction } from '../toolbar/base-form-toolbar-action';
|
|
14
17
|
import type { FormChromeGroup } from '../chrome/form-chrome';
|
|
15
18
|
import type { FormPanelCompiledRow, FormPanelStockGridRow } from '../panel-manager/form-panel-inventory';
|
|
16
19
|
import type { FormPlacementRelated } from '../apply/form-placement';
|
|
20
|
+
import { type FormVersionPreviewState, type FormVersionPreviewFieldDiff } from '../form-record-refresh.coordinator';
|
|
17
21
|
import type { DuplicateEntryCandidate } from '@memberjunction/graphql-dataprovider';
|
|
18
22
|
import { type FormSectionIndicators } from '../section-indicators/form-section-indicators';
|
|
19
23
|
import * as i0 from "@angular/core";
|
|
@@ -87,6 +91,14 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
87
91
|
private chromeRulesForEntityId;
|
|
88
92
|
/** The form whose duplicate-check answers this container already re-renders on. */
|
|
89
93
|
private duplicateNoticeWiredFor;
|
|
94
|
+
RemoteUpdatePill: {
|
|
95
|
+
Kind: 'refreshed' | 'stale-while-editing';
|
|
96
|
+
Summary: string;
|
|
97
|
+
ChangedFields: string[];
|
|
98
|
+
} | null;
|
|
99
|
+
private remoteUpdatePillTimer;
|
|
100
|
+
private remoteRefreshInFlight;
|
|
101
|
+
private lastLocalSaveAt;
|
|
90
102
|
/** Reference to the record changes drawer (when visible) for triggering refresh after save */
|
|
91
103
|
private recordChangesDrawer?;
|
|
92
104
|
/** Controls visibility of record changes drawer */
|
|
@@ -98,6 +110,21 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
98
110
|
private static readonly TAGS_WIDTH_KEY;
|
|
99
111
|
/** Number of tags on this record */
|
|
100
112
|
TagCount: number;
|
|
113
|
+
/** Controls visibility of links slide-in drawer */
|
|
114
|
+
ShowRecordLinks: boolean;
|
|
115
|
+
/** Number of linked records on this record */
|
|
116
|
+
LinkCount: number;
|
|
117
|
+
/** Structured summary of outgoing + incoming links for the AI agent context */
|
|
118
|
+
LinksSummary: FormAgentLinksSummary | null;
|
|
119
|
+
/** Active historical version being previewed inline across form fields (Time-Travel Preview) */
|
|
120
|
+
ActiveVersionPreview: FormVersionPreviewState | null;
|
|
121
|
+
private activePreviewSourceChange;
|
|
122
|
+
private liveRecordPreviewStash;
|
|
123
|
+
private previewableChangesCache;
|
|
124
|
+
/** Unique list of field diffs for the active version preview banner chips */
|
|
125
|
+
PreviewChangedFieldChips: FormVersionPreviewFieldDiff[];
|
|
126
|
+
/** Number of active field conflicts during edit mode */
|
|
127
|
+
ConflictCount: number;
|
|
101
128
|
/** Controls visibility of attachments slide panel */
|
|
102
129
|
ShowAttachmentsPanel: boolean;
|
|
103
130
|
/** Number of attachments linked to this record */
|
|
@@ -220,6 +247,8 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
220
247
|
AfterLayoutResolved: EventEmitter<AfterLayoutResolvedEventArgs>;
|
|
221
248
|
BeforeSectionActivate: EventEmitter<BeforeSectionActivateEventArgs>;
|
|
222
249
|
AfterSectionActivated: EventEmitter<AfterSectionActivatedEventArgs>;
|
|
250
|
+
/** Emitted when the user clicks "Ask AI" in the form toolbar to open the AI overlay with record context */
|
|
251
|
+
AskAIRequested: EventEmitter<void>;
|
|
223
252
|
Panels: QueryList<MjCollapsiblePanelComponent>;
|
|
224
253
|
/** Typed accessor for the form component reference */
|
|
225
254
|
get Fc(): BaseFormComponent | null;
|
|
@@ -576,7 +605,41 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
576
605
|
* All queries run in parallel for performance.
|
|
577
606
|
*/
|
|
578
607
|
private badgeCountsLoaded;
|
|
608
|
+
private toolbarActions;
|
|
609
|
+
private toolbarActionsEntityName;
|
|
610
|
+
private toolbarActionsInitRecord;
|
|
579
611
|
private loadBadgeCounts;
|
|
612
|
+
/**
|
|
613
|
+
* Returns the instantiated {@link BaseFormToolbarAction} plugins matching the active entity.
|
|
614
|
+
*/
|
|
615
|
+
GetToolbarActions(): readonly BaseFormToolbarAction[];
|
|
616
|
+
private ensureToolbarActions;
|
|
617
|
+
private destroyToolbarActions;
|
|
618
|
+
private pluggableToolbarItemConfigs;
|
|
619
|
+
private buildToolbarActionContext;
|
|
620
|
+
/**
|
|
621
|
+
* Returns true when the given toolbar action key is pinned for the current user
|
|
622
|
+
* (either in their saved `mj.form.toolbar.pinnedActions` setting or in `DefaultPinnedActions`).
|
|
623
|
+
*/
|
|
624
|
+
IsToolbarActionPinned(key: string): boolean;
|
|
625
|
+
/**
|
|
626
|
+
* Returns true when the 'links' toolbar action is pinned for the current user.
|
|
627
|
+
*/
|
|
628
|
+
IsLinksActionPinned(): boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Invoked when the user pins or unpins an action in `<mj-form-toolbar>`.
|
|
631
|
+
* Notifies the corresponding {@link BaseFormToolbarAction} via `OnPinStateChanged`.
|
|
632
|
+
*/
|
|
633
|
+
OnToolbarActionPinChanged(event: {
|
|
634
|
+
Key: string;
|
|
635
|
+
Pinned: boolean;
|
|
636
|
+
}): void;
|
|
637
|
+
/**
|
|
638
|
+
* Runs `OnPrewarm` across all applicable {@link BaseFormToolbarAction} plugins for the active record.
|
|
639
|
+
*/
|
|
640
|
+
PrewarmToolbarActions(record: BaseEntity): Promise<void>;
|
|
641
|
+
private prewarmRecordLinks;
|
|
642
|
+
private buildAgentRecordState;
|
|
580
643
|
/**
|
|
581
644
|
* ONE `RunViews` call for every count the form shows: each related section's
|
|
582
645
|
* rows (badges + `whenEmpty` chrome) and the tag / attachment / version toolbar
|
|
@@ -651,6 +714,31 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
651
714
|
* in-form listeners (related grids, IS-A panel, custom panels).
|
|
652
715
|
*/
|
|
653
716
|
private onFormRecordRefreshed;
|
|
717
|
+
/**
|
|
718
|
+
* Listens for cross-tab (`remote-invalidate`) and cross-instance (`save`) BaseEntity events
|
|
719
|
+
* for the currently open record.
|
|
720
|
+
*
|
|
721
|
+
* - When NOT in Edit Mode (and clean): auto-refreshes the record in place, highlights any
|
|
722
|
+
* changed fields via {@link FormRecordRefreshCoordinator.NotifyRemoteUpdate}, and displays
|
|
723
|
+
* a non-intrusive slide-in pill that auto-dismisses after a few seconds.
|
|
724
|
+
* - When IN Edit Mode (or dirty): never overwrites unsaved work; shows a non-intrusive notice
|
|
725
|
+
* pill offering a one-click Reload action.
|
|
726
|
+
*/
|
|
727
|
+
private wireRemoteRecordInvalidation;
|
|
728
|
+
private matchesRemotePrimaryKey;
|
|
729
|
+
private performLiveRemoteRefresh;
|
|
730
|
+
/**
|
|
731
|
+
* Performs a field-by-field live merge when a remote update arrives while the user is in Edit Mode:
|
|
732
|
+
* - Clean fields (`!field.Dirty`) whose server value changed are silently auto-merged in place and stay clean.
|
|
733
|
+
* - Dirty fields (`field.Dirty`) whose current user edit matches the new server value converge cleanly.
|
|
734
|
+
* - Dirty fields (`field.Dirty`) whose current user edit differs from the new server value preserve the user's
|
|
735
|
+
* edit, update `OldValue` to the new server baseline, and raise a {@link FormFieldConflict}.
|
|
736
|
+
*/
|
|
737
|
+
PerformLiveEditModeMerge(record: BaseEntity): Promise<void>;
|
|
738
|
+
private formatComparableValue;
|
|
739
|
+
private showRemoteUpdatePill;
|
|
740
|
+
OnDismissRemoteUpdatePill(): void;
|
|
741
|
+
OnReloadFromRemotePill(): Promise<void>;
|
|
654
742
|
/**
|
|
655
743
|
* Delete, Favorite, History, Lists, ShowChanges: always re-emit for host app.
|
|
656
744
|
*/
|
|
@@ -665,6 +753,24 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
665
753
|
*/
|
|
666
754
|
OnTagCountChanged(count: number): void;
|
|
667
755
|
OnTagsPanelWidthChanged(width: number): void;
|
|
756
|
+
OnToggleRecordLinks(): void;
|
|
757
|
+
OnRecordLinksClosed(): void;
|
|
758
|
+
OnLinkCountChanged(count: number): void;
|
|
759
|
+
OnLinksSummaryChanged(summary: FormAgentLinksSummary): void;
|
|
760
|
+
OnAskAIRequested(): void;
|
|
761
|
+
OnPreviewVersionSelected(event: MJRecordChangeEntity | {
|
|
762
|
+
Change: MJRecordChangeEntity;
|
|
763
|
+
Index?: number;
|
|
764
|
+
TotalCount?: number;
|
|
765
|
+
} | null): void;
|
|
766
|
+
private synthesizeCalculatedSnapshotFields;
|
|
767
|
+
private restoreLiveRecordFromPreviewStash;
|
|
768
|
+
FormatPreviewDiffValue(val: unknown): string;
|
|
769
|
+
OnStepVersionPreview(delta: number): void;
|
|
770
|
+
OnReopenHistoryFromPreview(): void;
|
|
771
|
+
OnRestorePreviewedVersion(): void;
|
|
772
|
+
OnExitVersionPreview(): void;
|
|
773
|
+
private onSingleFieldRestoreRequested;
|
|
668
774
|
OnAttachmentsPanelToggled(): void;
|
|
669
775
|
OnAttachmentsPanelClosed(): void;
|
|
670
776
|
/**
|
|
@@ -797,6 +903,6 @@ export declare class MjRecordFormContainerComponent extends BaseAngularComponent
|
|
|
797
903
|
*/
|
|
798
904
|
OnPanelManagerChanged(): void;
|
|
799
905
|
static ɵfac: i0.ɵɵFactoryDeclaration<MjRecordFormContainerComponent, never>;
|
|
800
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MjRecordFormContainerComponent, "mj-record-form-container", never, { "Record": { "alias": "Record"; "required": false; }; "FormComponent": { "alias": "FormComponent"; "required": false; }; "EntityInfo": { "alias": "EntityInfo"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "UserCanEdit": { "alias": "UserCanEdit"; "required": false; }; "UserCanDelete": { "alias": "UserCanDelete"; "required": false; }; "IsFavorite": { "alias": "IsFavorite"; "required": false; }; "FavoriteInitDone": { "alias": "FavoriteInitDone"; "required": false; }; "IsDirty": { "alias": "IsDirty"; "required": false; }; "DirtyFieldNames": { "alias": "DirtyFieldNames"; "required": false; }; "ListCount": { "alias": "ListCount"; "required": false; }; "IsSaving": { "alias": "IsSaving"; "required": false; }; "IsRefreshing": { "alias": "IsRefreshing"; "required": false; }; "ToolbarConfig": { "alias": "ToolbarConfig"; "required": false; }; "RegisteredToolbarItems": { "alias": "RegisteredToolbarItems"; "required": false; }; "ToolbarItemOverrides": { "alias": "ToolbarItemOverrides"; "required": false; }; "WidthMode": { "alias": "WidthMode"; "required": false; }; "Variants": { "alias": "Variants"; "required": false; }; "CurrentVariantID": { "alias": "CurrentVariantID"; "required": false; }; }, { "Navigate": "Navigate"; "EditModeChange": "EditModeChange"; "BeforeSave": "BeforeSave"; "SaveRequested": "SaveRequested"; "BeforeCancel": "BeforeCancel"; "CancelRequested": "CancelRequested"; "BeforeDelete": "BeforeDelete"; "DeleteRequested": "DeleteRequested"; "BeforeRefresh": "BeforeRefresh"; "RefreshRequested": "RefreshRequested"; "FavoriteToggled": "FavoriteToggled"; "BeforeHistoryView": "BeforeHistoryView"; "HistoryRequested": "HistoryRequested"; "BeforeListManagement": "BeforeListManagement"; "ListManagementRequested": "ListManagementRequested"; "ShowChangesRequested": "ShowChangesRequested"; "CustomButtonClick": "CustomButtonClick"; "ToolbarItemClick": "ToolbarItemClick"; "VariantChange": "VariantChange"; "BeforeLayoutResolve": "BeforeLayoutResolve"; "AfterLayoutResolved": "AfterLayoutResolved"; "BeforeSectionActivate": "BeforeSectionActivate"; "AfterSectionActivated": "AfterSectionActivated"; }, ["Panels"], ["[before-toolbar]", "*"], false, never>;
|
|
906
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MjRecordFormContainerComponent, "mj-record-form-container", never, { "Record": { "alias": "Record"; "required": false; }; "FormComponent": { "alias": "FormComponent"; "required": false; }; "EntityInfo": { "alias": "EntityInfo"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "UserCanEdit": { "alias": "UserCanEdit"; "required": false; }; "UserCanDelete": { "alias": "UserCanDelete"; "required": false; }; "IsFavorite": { "alias": "IsFavorite"; "required": false; }; "FavoriteInitDone": { "alias": "FavoriteInitDone"; "required": false; }; "IsDirty": { "alias": "IsDirty"; "required": false; }; "DirtyFieldNames": { "alias": "DirtyFieldNames"; "required": false; }; "ListCount": { "alias": "ListCount"; "required": false; }; "IsSaving": { "alias": "IsSaving"; "required": false; }; "IsRefreshing": { "alias": "IsRefreshing"; "required": false; }; "ToolbarConfig": { "alias": "ToolbarConfig"; "required": false; }; "RegisteredToolbarItems": { "alias": "RegisteredToolbarItems"; "required": false; }; "ToolbarItemOverrides": { "alias": "ToolbarItemOverrides"; "required": false; }; "WidthMode": { "alias": "WidthMode"; "required": false; }; "Variants": { "alias": "Variants"; "required": false; }; "CurrentVariantID": { "alias": "CurrentVariantID"; "required": false; }; }, { "Navigate": "Navigate"; "EditModeChange": "EditModeChange"; "BeforeSave": "BeforeSave"; "SaveRequested": "SaveRequested"; "BeforeCancel": "BeforeCancel"; "CancelRequested": "CancelRequested"; "BeforeDelete": "BeforeDelete"; "DeleteRequested": "DeleteRequested"; "BeforeRefresh": "BeforeRefresh"; "RefreshRequested": "RefreshRequested"; "FavoriteToggled": "FavoriteToggled"; "BeforeHistoryView": "BeforeHistoryView"; "HistoryRequested": "HistoryRequested"; "BeforeListManagement": "BeforeListManagement"; "ListManagementRequested": "ListManagementRequested"; "ShowChangesRequested": "ShowChangesRequested"; "CustomButtonClick": "CustomButtonClick"; "ToolbarItemClick": "ToolbarItemClick"; "VariantChange": "VariantChange"; "BeforeLayoutResolve": "BeforeLayoutResolve"; "AfterLayoutResolved": "AfterLayoutResolved"; "BeforeSectionActivate": "BeforeSectionActivate"; "AfterSectionActivated": "AfterSectionActivated"; "AskAIRequested": "AskAIRequested"; }, ["Panels"], ["[before-toolbar]", "*"], false, never>;
|
|
801
907
|
}
|
|
802
908
|
//# sourceMappingURL=record-form-container.component.d.ts.map
|
|
@@ -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,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IACH,qBAAqB,IAAI,IAAI;yCAniFlB,8BAA8B;2CAA9B,8BAA8B;CAyiF1C"}
|
|
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,EAAmB,YAAY,EAAe,UAAU,EAA4E,MAAM,sBAAsB,CAAC;AAEpL,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAkB,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrF,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;AAE1E,OAAO,EAAgC,KAAK,qBAAqB,EAA6B,MAAM,qCAAqC,CAAC;AA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