Member Junction
    Preparing search index...

    Slide-out timeline of all changes to a single record. Hosts the reusable RestorePreviewPanelComponent for the actual restore confirmation flow, and exposes a RestoreRequested event the host can act on to persist the restore.

    <mj-record-changes
    [record]="myEntity"
    [AllowRestore]="true"
    (dialogClosed)="showHistory = false"
    (RestoreRequested)="onRestoreRequested($event)">
    </mj-record-changes>

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    Accessors

    Methods

    ClearBucketFilter ClearFilters CloseFilterOverflow formatFullDateTime FormatFullDateTime formatRelativeTime FormatRelativeTime formatTime FormatTime getChangeSummary GetChangeSummary getChangeTypeBadgeText GetChangeTypeBadgeText getChangeTypeCardClass GetChangeTypeCardClass GetComparisonDiffs GetComparisonSlotLabel getCreatedFieldCount GetCreatedFieldCount getCreatedFields GetCreatedFields getEffectiveBadgeText GetEffectiveBadgeText getFieldChanges GetFieldChanges getLabelStatusClass GetLabelStatusClass GetPreviewableChanges getRestoredFromSourceChange GetRestoredFromSourceChange getRestoreReason GetRestoreReason getSourceClass GetSourceClass getStatusClass GetStatusClass getTimelineItemLabel GetTimelineItemLabel getUniqueContributorCount GetUniqueContributorCount getUserDisplayName GetUserDisplayName getUserInitials GetUserInitials IsChangePreviewedInForm IsChangeSelectedAsCompareBase IsChangeSelectedAsCompareTarget isMostRecentChange IsMostRecentChange isRestoreRow IsRestoreRow JumpToSourceChange LoadRecordChanges LoadRecordLabels ngOnDestroy ngOnInit OnBurstClustersRebuilt OnBurstFilterChanged OnClose OnComparisonSelectChange onFilterChange OnLabelCreateCancelled OnLabelCreated OnRestorePanelCancelled OnRestorePanelConfirmed OnRestoreVersion onSearchChange OnSearchChange onTimelineItemKeydown OnTimelineItemKeydown OnToggleFormPreview OpenCreateWizard OpenRestoreForChange Refresh SelectAllPill SelectForComparison SwapComparisonVersions ToggleBucketFilter ToggleCompareMode toggleExpansion ToggleExpansion ToggleFilterOverflow ToggleLabelsTray TogglePill

    Constructors

    Properties

    ActiveBurstFilteredIDs: Set<string> | null = null
    ActivityBuckets: ActivityChartBucket[] = []
    ActivityChartGranularityLabel: string = ''
    AllowBurstZoom: boolean = true
    AllowRestore: boolean = false

    Whether to show a "Restore" button on each historical version row. Default false.

    BurstClusterCategories: MJBurstClusterCategory[] = ...
    BurstClusterItems: MJBurstClusterItem<MJRecordChangeEntity>[] = []
    BurstCoalesceStrategy: MJBurstClusterCoalesceStrategy = 'adaptive-era'
    BurstEraZoomThreshold: number = 10
    BurstMaxClusters: number = 5
    BurstResolution: MJBurstClusterResolution = 'auto'
    BurstSessionGapHours: number = 6
    ChipSelections: Record<string, boolean> = {}

    Map of Key → selected, used by the conditional chip system.

    CompareBaseChangeID: string | null = null
    CompareMode: boolean = false
    CompareTargetChangeID: string | null = null
    ConditionalPills: FilterPill[] = []

    Conditional filter pills derived from loaded data. Always includes 'All' implicitly. Other pills only render when at least one matching change exists. Overflows into a popover when the count exceeds 2.

    DateGroups: DateGroup[] = []
    dialogClosed: EventEmitter<any> = ...

    Use DialogClosed.

    The same emitter under the old binding name, so a template still binding (dialogClosed) keeps working. Must stay AFTER DialogClosed: class fields initialise in order, and the other way round this captures undefined.

    DialogClosed: EventEmitter<any> = ...
    ExpandedItems: Set<string> = ...
    FilteredData: MJRecordChangeEntity[] = []
    HighlightedChangeID: string | null = null

    Highlighted change ID for the lineage-jump indicator (transient).

    IsLoading: boolean = false
    IsLoadingLabels: boolean = false
    IsRestoring: boolean = false

    Whether the restore commit is in progress (between confirmation and host response).

    IsVisible: boolean = false
    PreviewedChangeID: string | null = null

    Optional ID of the historical change currently being previewed directly inside the host entity form ("Time Travel" mode).

    PreviewVersionSelected: EventEmitter<MJRecordChangeEntity | null> = ...

    Emitted when the user toggles "Preview in Form" on a historical change card (or clears the preview). Emits the selected MJRecordChangeEntity or null when exiting preview.

    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.

    record: BaseEntity
    RecordLabels: RecordLabel[] = []
    RestorePreviewChange: MJRecordChangeEntity | null = null

    The change record currently selected for restore preview, or null.

    RestorePreviewVisible: boolean = false

    Visibility of the embedded restore preview slide-in.

    RestoreRequested: EventEmitter<RestoreVersionEvent> = ...

    Emitted when the user confirms a restore in the preview panel. The host is responsible for applying the snapshot to the record and saving with record.SetRestoreContext() set first.

    SearchTerm: string = ''
    SelectedBucketKey: string | null = null
    SelectedSource: string = ''
    SelectedType: string = ''

    Single selected type filter (legacy, kept for backwards compat).

    ShowCreateWizard: boolean = false
    ShowFilterOverflow: boolean = false

    Whether the overflow popover is open.

    ShowLabelsTray: boolean = false

    Controls whether the compact version labels tray is expanded in the header.

    ViewData: MJRecordChangeEntity[] = []
    "ɵdir": unknown
    "ɵfac": ɵɵFactoryDeclaration<BaseAngularComponent, never>

    Accessors

    • get EntityDisplayName(): string

      Human-friendly display name for the current entity (uses EntityInfo.DisplayNameOrName, stripping technical schema prefixes like MJ_BizApps_Common: when falling back to Name).

      Returns string

    • 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

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

    • Opens the embedded restore preview panel for a given change record. The panel computes a full-record diff (current vs the change's FullRecordJSON snapshot) — this is the semantic-correctness fix: we restore TO the state at that point in time, not just undo the one delta the user clicked.

      Parameters

      Returns void

    • Assigns a historical change ID (or '__CURRENT__') to either the base (vA) or target (vB) comparison slot.

      Parameters

      • slot: "base" | "target"
      • changeId: string | null
      • Optionalevent: Event

      Returns void

    • Toggles Cross-Version Diff Comparison (vA ↔ vB) mode. When entering Compare Mode with no versions selected, defaults vB to the latest version and vA to the immediately preceding snapshot (or live state).

      Returns void