Member Junction
    Preparing search index...

    Renders an entity's active IS-A subtype extension inline inside its parent form when EntityInfo.SubtypeSelectorConfig?.FoldIntoForm === true.

    Behavior:

    • Off unless the entity explicitly opts in with "FoldIntoForm": true in SubtypeSelector.
    • Immediately reconciles the prospective ISAChild as soon as a type is picked on Record (including on a brand-new record before its first save).
    • When SubtypeSelector.UIDriver resolves to a class registered with @RegisterClass(EntitySubtypeUIDriverBase, key), mounts that component in place of the default generated fields.
    • Otherwise renders the resolved child entity's generated fields inside their own <mj-collapsible-panel>.
    • When a saved record already has a persisted child of one subtype and OnSubtypeChange is 'Refuse', surfaces an inline warning if the user selects a conflicting subtype in edit mode.

    Hierarchy (View Summary)

    Implements

    • OnInit
    • DoCheck
    • OnDestroy
    Index

    Constructors

    Properties

    ActiveChildRecord: BaseEntity<unknown> | null = null

    Resolved child record currently displayed in the folded section, if any.

    ActiveUIDriverKey: string | null = null

    Resolved UIDriver registration key when a registered EntitySubtypeUIDriverBase matches.

    GeneratedFieldSpecs: SubtypeGeneratedFieldSpec[] = []

    Derived field descriptors when rendering generated <mj-form-field> controls.

    HostDisplay: "contents" = 'contents'
    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.

    RefusalWarningMessage: string | null = null

    Non-null when a saved record's subtype change conflicts with OnSubtypeChange: 'Refuse'.

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