Member Junction
    Preparing search index...

    The Timeline view type as a self-contained IViewRenderer plug-in. Where the Timeline view used to be hard-wired into the generic mj-entity-viewer host (which owned the date-field detection, the record→TimelineGroup transformation, and the date-field / orientation / sort chrome), this component now OWNS all of it. The host simply dynamic-mounts this renderer when Timeline is the active view type and feeds it the standard renderer inputs (entity / records / selectedRecordId / filterText / config).

    It renders a small chrome header row (date-field selector + orientation toggle + sort toggle) above a flex-filling <mj-timeline>, exactly reproducing the host's previous timeline chrome and bindings. Because the host only mounts this plug-in when Timeline is active, the chrome always renders — no extra EffectiveViewMode === 'timeline' guard is needed.

    What was absorbed from the host (EntityViewerComponent): detectDateFields(), sortDateFieldsByPriority(), AvailableDateFields/HasDateFields, configureTimeline(), updateTimelineGroups() (+ findTitleField/findDescriptionField/findSubtitleField), ToggleTimelineOrientation(), ToggleTimelineSortOrder(), SetTimelineDateField(), SelectedDateFieldDisplayName, OnTimelineEventClick(), and the TimelineSelectedEventID composite-key→raw-id derivation.

    Inputs use the camelCase names mandated by the IViewRenderer contract (the host binds them by those exact names) rather than MJ's usual PascalCase for public members.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    AvailableDateFields: EntityFieldInfo[] = []

    Available date fields from the entity, sorted by priority.

    configChanged: EventEmitter<TimelineViewConfig> = ...

    Emitted (with the FULL updated config) whenever the user changes a chrome control.

    filterText: string | null = null

    Active filter text — accepted for contract uniformity; the host pre-filters records.

    HasDateFields: boolean = false

    Whether the current entity has any date fields available for timeline view.

    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.

    recordOpened: EventEmitter<unknown> = ...

    Emitted when a record should be opened — payload is the RAW record object.

    recordSelected: EventEmitter<unknown> = ...

    Emitted when a timeline event is clicked — payload is the RAW record object.

    selectedRecordId: string | null = null

    Primary-key string of the currently selected record, if any (composite-key encoded).

    SelectedTimelineDateField: string | null = null

    The currently selected date field name for the timeline.

    TimelineGroups: TimelineGroup<Record<string, unknown>>[] = []

    The built timeline groups handed to <mj-timeline>.

    TimelineOrientationState: TimelineOrientation = 'vertical'

    Timeline orientation. Named …State to avoid colliding with the imported TimelineOrientation type symbol.

    TimelineSegmentGrouping: TimeSegmentGrouping = 'month'

    Timeline segment grouping (day/week/month/...).

    TimelineSortOrderState: TimelineSortOrder = 'desc'

    Timeline sort order. Named …State (not TimelineSortOrder) to avoid colliding with the imported TimelineSortOrder type symbol used in the template / signatures.

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