Member Junction
    Preparing search index...

    Lightweight hover preview card (<mj-record-preview-popover>) that displays key metadata and summary fields (DefaultInView) for any foreign-key or polymorphic-FK linked record.

    Applications and domain packages can subclass MjRecordPreviewPopoverComponent and register their custom hover card with @RegisterClass:

    • Global replacement (all entities): @RegisterClass(MjRecordPreviewPopoverComponent) or @RegisterClass(MjRecordPreviewPopoverComponent, '*')
    • Schema or wildcard replacement: @RegisterClass(MjRecordPreviewPopoverComponent, 'MJ_BizApps_Common:*') or @RegisterClass(MjRecordPreviewPopoverComponent, 'schema:mj_bizapps_common')
    • Entity-specific replacement: @RegisterClass(MjRecordPreviewPopoverComponent, 'MJ_BizApps_Common: People')

    MjRecordPreviewPopoverService calls ResolveRecordPreviewPopoverType at runtime to instantiate the highest-priority matching subclass via Angular's createComponent().

    Hierarchy (View Summary)

    Implements

    • OnDestroy
    Index

    Constructors

    Properties

    _anchorRect: RecordPreviewAnchorRect | null = null
    _destroyed: boolean = false
    _displayName: string | null = null
    _entityName: string | null = null
    _loadSeq: number = 0
    _primaryKey: CompositeKey | null = null
    _recordID: string | null = null
    _visible: boolean = false
    AfterQuickEditSaved: EventEmitter<RecordPreviewUpdatedEvent> = ...

    Emitted after Quick Edit successfully saves field changes to the target entity.

    AllowQuickEdit: boolean = true

    Whether inline quick-edit of summary fields is allowed inside the popover.

    BeforeQuickEditSave: EventEmitter<BeforeRecordPreviewSaveEventArgs> = ...

    Cancellable event emitted before Quick Edit saves field changes to the target entity.

    cdr: ChangeDetectorRef = ...
    CopiedID: boolean = false
    EditDrafts: Record<string, string | undefined> = {}
    EditErrorMessage: string | null = null
    IsEditing: boolean = false
    IsLoading: boolean = false
    IsSavingEdit: boolean = false
    MouseEnterCard: EventEmitter<void> = ...
    MouseLeaveCard: EventEmitter<void> = ...
    Navigate: EventEmitter<FormNavigationEvent> = ...
    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.

    RecordUpdated: EventEmitter<RecordPreviewUpdatedEvent> = ...

    Emitted after Quick Edit saves field changes (alias/companion to AfterQuickEditSaved).

    Summary: RecordPreviewSummary | null = null
    CACHE_MAX_ENTRIES: 500
    CACHE_TTL_MS: 60000 = 60_000
    "ɵdir": unknown
    "ɵfac": ɵɵFactoryDeclaration<BaseAngularComponent, never>
    summaryCache: MJLruCache<
        string,
        { LoadedAt: number; Summary: RecordPreviewSummary },
    > = ...

    Bounded: one entry per previewed record would otherwise accumulate for the whole session.

    Accessors

    • 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 RunViewToUse(): IRunViewProvider

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

      Returns IRunViewProvider

    Methods