/** * A rich/compound content presentation component that pulls together a lot of different presentation widgetry in our stack and allows them * to be expressed from a single blob of descriptive content. * * @author Kevin * * @copyright Alert Logic, Inc 2022 */ import { OnChanges } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { ColumnDef } from '@al/design-patterns'; import { MapMarkerSerie } from '@al/ng-visualizations-components'; import { AlAnyContentDescriptor } from '../types/al-compound-content.types'; import * as i0 from "@angular/core"; interface ContentSegment { type: string; rawContent: string; error?: string; link?: { href: string; title: string; target: string; }; map?: { markerSeries: MapMarkerSerie[]; title: string; legendTitle?: string; showLegend?: boolean; showClusterCount?: boolean; showClusterCoverage?: boolean; }; table?: { title: string; columns: ColumnDef[]; data: any[]; }; resourceId?: string; jsonData?: any; image?: { source: string; title?: string; }; visualization?: any[]; } export declare class AlCompoundContentComponent implements OnChanges { sanitizer: DomSanitizer; content?: string; defaultType: "markdown" | "html" | "external-html" | "external-text" | "image" | "json-viewer" | "visualization"; context?: ContextType; elements: AlAnyContentDescriptor[]; constructor(sanitizer: DomSanitizer); ngOnChanges(): void; interpretContent(content: string): Promise; protected ingestSegment(content: string, startOffset: number, endOffset: number, type: string, attributes: { [attribute: string]: string; }): Promise; protected ingestMapSegment(segment: ContentSegment, attributes: { [attribute: string]: string; }): ContentSegment; protected generateErrorSegment(error: string): { type: string; rawContent: string; }; protected getMarkerInfo(tag: string): [string, { [attribute: string]: string; }]; protected extractAttributes(rawAttributes: string): { [attribute: string]: string; }; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "al-compound-content", never, { "content": "content"; "defaultType": "defaultType"; "context": "context"; }, {}, never, never>; } export {};