Member Junction
    Preparing search index...

    Viewer component for JSON artifacts. Supports extract rules - shows displayMarkdown, displayHtml, or raw JSON editor (in that priority order). All content is displayed in the parent's Display tab.

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    artifactVersion: MJArtifactVersionEntity

    The artifact version to display

    cssClass?: string

    Optional: Additional CSS classes to apply

    displayHtml: string | null = null
    displayMarkdown: string | null = null
    height?: string

    Optional: Custom height for the viewer (defaults to auto)

    htmlBlobUrl: SafeResourceUrl | null = null
    htmlFrame?: ElementRef<HTMLIFrameElement>
    jsonContent: string = ''
    navigationRequest?: EventEmitter<NavigationRequest>

    Optional: Emitted when the plugin wants to navigate to a different app/nav item. Plugins that need app-level navigation (e.g., "Open Query" navigating to the Data Explorer's Queries nav item) should instantiate this emitter and emit a NavigationRequest. The event bubbles up through the artifact viewer chain to the host application where NavigationService handles the actual navigation.

    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    readonly: boolean = true

    Optional: Whether the viewer is in readonly mode

    tabsChanged?: EventEmitter<void>

    Optional: Emitted when the plugin's additional tabs change after async loading. Plugins that load data asynchronously (e.g., from a component registry) should emit this when loading completes and new tabs become available. The parent panel listens for this to re-run change detection and render the updated tab list.

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get parentShouldShowRawContent(): boolean

      Override to tell parent whether to show raw JSON tab. When showing elevated display (markdown/HTML), return true so parent shows JSON tab. When showing raw JSON editor, return false (no need for duplicate JSON tab).

      Returns boolean

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    • get SupportsFeedback(): boolean

      Whether this plugin supports user feedback. Plugins that return true will get a feedback button in the artifact viewer header. Override this getter to return true when feedback is available.

      Default: false

      Returns boolean

    Methods

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns Promise<void>