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

    AllowRestore: boolean = false

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

    ChipSelections: Record<string, boolean> = {}

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

    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> = ...
    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
    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 = ''
    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.

    viewData: MJRecordChangeEntity[] = []
    "ɵdir": unknown
    "ɵfac": unknown

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

    • 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