Member Junction
    Preparing search index...

    Base class for all Angular components in the MemberJunction system.

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnChanges
    • OnDestroy
    Index

    Constructors

    Properties

    activeTab: string = 'display'
    allCollections: MJCollectionEntity[] = []
    allVersions: MJArtifactVersionEntity[] = []
    analyzeRequested: EventEmitter<{ artifactId: string; snapshot: DataSnapshot }> = ...
    applyFormRequested: EventEmitter<{ entityName: string; spec: unknown }> = ...

    "Apply to my form" — bubbled from the form-aware component-artifact-viewer branch. Carries the spec + entity. Consumer (chat message card, etc.) confirms and invokes the Create-or-Modify Interactive Form action.

    artifact: MJArtifactEntity | null = null
    artifactCollections: MJCollectionArtifactEntity[] = []
    artifactIcon: string = 'fa-file'

    Cached icon class — set once after artifact loads to avoid mid-cycle flicker

    artifactId: string
    artifactVersion: MJArtifactVersionEntity | null = null
    canEdit?: boolean
    canShare?: boolean
    closed: EventEmitter<void> = ...
    contextCollectionId?: string
    currentUser: UserInfo
    currentVersionCollections: MJCollectionArtifactEntity[] = []
    displayHtml: string | null = null
    displayMarkdown: string | null = null
    environmentId: string
    error: string | null = null
    hasAccessToOriginConversation: boolean = false
    isLoading: boolean = true
    isMaximized: boolean = false
    jsonContent: string = ''
    maximizeToggled: EventEmitter<void> = ...
    navigateToLink: EventEmitter<
        {
            artifactId?: string;
            id: string;
            type: "conversation"
            | "collection";
            versionId?: string;
            versionNumber?: number;
        },
    > = ...
    navigationRequest: EventEmitter<NavigationRequest> = ...
    openEntityRecord: EventEmitter<
        { compositeKey: CompositeKey; entityName: string },
    > = ...
    originConversation: MJConversationEntity | null = null
    originConversationVersionId: string | null = null
    primaryCollection: MJCollectionEntity | null = null
    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.

    refreshTrigger?: Subject<{ artifactId: string; versionNumber: number }>
    saveToCollectionRequested: EventEmitter<
        { artifactId: string; excludedCollectionIds: string[] },
    > = ...
    selectedVersionNumber: number = 1
    shareRequested: EventEmitter<string> = ...
    showCloseButton: boolean = true
    showHeader: boolean = true
    showMaximizeButton: boolean = true
    showSaveToCollection: boolean = true
    showTabs: boolean = true
    showVersionDropdown: boolean = false
    versionAttributes: MJArtifactVersionAttributeEntity[] = []
    versionNumber?: number
    viewContext: "conversation" | "collection" | null = null
    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get linksToShow(): {
          hasAccess: boolean;
          id: string;
          name: string;
          type: "conversation"
          | "collection";
      }[]

      Returns {
          hasAccess: boolean;
          id: string;
          name: string;
          type: "conversation" | "collection";
      }[]

    • 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

    Methods

    • Get resolved tab content for string-based tabs (non-component tabs). For component tabs, use GetTabDefinition() and render the component directly.

      Parameters

      • tabName: string

      Returns { content: string; language?: string; type: string } | null

    • A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

      Parameters

      • changes: { [propName: string]: SimpleChange<any> }

        The changed properties.

      Returns Promise<void>

    • 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>

    • Navigate to a linked conversation or collection

      Parameters

      • link: {
            hasAccess: boolean;
            id: string;
            name: string;
            type: "conversation" | "collection";
        }

      Returns void

    • Called when a plugin's async tab data changes (e.g., ComponentArtifactViewer loads the full spec from the registry after initial render with a stripped spec). Forces re-evaluation of allTabs so new tab labels render correctly.

      Returns void

    • Reload the cached set of collections that contain the current version of this artifact. Called by the chat-area after the collection picker reports successful saves so the bookmark icon and "already saved" exclusion list refresh without a full artifact reload.

      Returns Promise<void>

    • Parameters

      • collectionIds: string[]

      Returns Promise<boolean>

      Writes are now owned by the picker modal so the dialog can render per-collection progress and partial-failure UI. Kept for any external consumer that still calls it; new code should pass artifactVersionId to the picker and listen for its completed event.