Member Junction
    Preparing search index...

    Class EntitySubtypeUIDriverBase<TRecord, TChild>Abstract

    Abstract base class for UI components resolved dynamically from a type table row via IEntitySubtypeSelectorConfig.UIDriver ({ Path: string }).

    Subclasses register with @RegisterClass(EntitySubtypeUIDriverBase, 'YourUIDriverKey') (where the key matches the string stored in the type row's UIDriverClass column).

    Host surfaces:

    1. Generated forms (FoldIntoForm: true): Replaces the child entity's default generated fields inside <mj-folded-subtype-section>.
    2. Comments & type-driven cards: Renders custom cards (such as FieldSuggestionCardComponent) for records of that subtype.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ChildRecord: TChild | null = null

    The resolved IS-A child entity record (e.g., GitHubIssueTask or FieldSuggestion), when present.

    DriverContext: Record<string, unknown> | null = null

    Optional structured metadata/context supplied by non-form host surfaces.

    EditMode: boolean = false

    Whether the host surface is currently in edit mode.

    FormComponent: BaseFormComponent | null = null

    Host form component when mounted inside an entity record form.

    FormContext?: FormContext

    Host form context (search filter, empty-field visibility, validation state) when in a form.

    Navigate: EventEmitter<FormNavigationEvent> = ...

    Emitted when the driver requests record or external navigation.

    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: TRecord | null = null

    The parent entity record whose type resolved this UI driver (e.g., Task or Comment).

    RecordMutated: EventEmitter<void> = ...

    Emitted when an interactive driver action mutates the subtype record or target record (e.g., accepting or rejecting a field suggestion, or posting a reply).

    Surface: SubtypeUIDriverSurface = 'form-section'

    Which surface mounted this driver ('form-section', 'comment-card', or 'custom').

    TargetRecord: BaseEntity<unknown> | null = null

    Optional target entity record when the subtype record is anchored to another entity (for example, the entity record that a FieldSuggestion proposes a value for).

    "ɵdir": unknown
    "ɵfac": ɵɵFactoryDeclaration<BaseAngularComponent, never>

    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