src/app/services/va-messaging.service.ts
| providedIn | root |
Properties |
|
Methods |
|
| dataColumns | ||||||
dataColumns(msg: VaMessage)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:205
|
||||||
|
Columns that carry grid data — excludes
Parameters :
Returns :
literal type[]
|
| Private isTrustedEarlyOrigin | ||||||
isTrustedEarlyOrigin(origin: string)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:163
|
||||||
|
Origin check for the pre-bootstrap replay. Mirrors isTrustedSource: the live path trusts a message whose event.source IS the parent frame; for a captured message we cannot reference its source Window, so we trust an origin that is this window's origin or the embedding frame's origin (document.referrer). Unverifiable/absent referrer -> reject.
Parameters :
Returns :
boolean
|
| Private isTrustedSource | ||||||
isTrustedSource(event: MessageEvent)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:70
|
||||||
|
Validates that a message comes from a trusted source: our hosting frame (the normal SAS VA data-driven content case) or the same origin (local dev / tests). Untrusted messages — e.g. from an unrelated window or a malicious iframe — are rejected.
Parameters :
Returns :
boolean
|
| latestMessage |
latestMessage()
|
|
Defined in src/app/services/va-messaging.service.ts:121
|
|
The true latest DDC message, from the always-on
Returns :
VaMessage | null
|
| onData | ||||||
onData(callback: (msg: VaMessage) => void)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:94
|
||||||
|
Registers a window
Parameters :
Returns :
void
|
| Private parseData | ||||||
parseData(data: any)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:185
|
||||||
|
Parses a raw message payload (from a MessageEvent or the early buffer) into a VaMessage, or null when it is not a recognisable DDC message.
Parameters :
Returns :
VaMessage | null
|
| parseMessage | ||||||
parseMessage(event: MessageEvent)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:177
|
||||||
|
Parses a raw window MessageEvent into a VaMessage, or null when it is not a recognisable DDC message (e.g. unrelated postMessage traffic).
Parameters :
Returns :
VaMessage | null
|
| Private replayEarlyMessages | ||||||
replayEarlyMessages(callback: (msg: VaMessage) => void)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:132
|
||||||
|
Replays the latest VA message captured by the early
Parameters :
Returns :
void
|
| sendInstructionalMessage | ||||||
sendInstructionalMessage(message: string)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:227
|
||||||
|
Back-channel (DDC → VA) — custom instructional message, shown in the report designer when the assigned data does not meet the visual's requirements.
Parameters :
Returns :
void
|
| Private sendMessage | ||||||
sendMessage(message: any)
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:232
|
||||||
|
Parameters :
Returns :
void
|
| sendSelection | ||||||
sendSelection(rows: number[])
|
||||||
|
Defined in src/app/services/va-messaging.service.ts:215
|
||||||
|
Back-channel (DDC → VA) — selection / source-of-action. Designed per the SAS contract; not wired into the UI in v1.
Parameters :
Returns :
void
|
| Private earlyDrained |
Type : unknown
|
Default value : false
|
|
Defined in src/app/services/va-messaging.service.ts:86
|
|
True once the pre-bootstrap early buffer has been drained (drain-once). |
| filterSignature | |||||||||||||||
Type : string | null
|
|||||||||||||||
Default value : null
|
|||||||||||||||
|
Defined in src/app/services/va-messaging.service.ts:81
|
|||||||||||||||
|
Cross-reload state. Applying a VA filter navigates to /editor/
results matching ""No results matching "" |