The available view types for the current entity, sourced from the registry.
Whether the dropdown menu is currently open.
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.
Emitted when the user selects a view type from the menu. The host routes this to its existing
view-type selection logic (by viewTypeId). The switcher does not change rendering itself.
StaticɵdirStaticɵfacThe option matching ActiveViewTypeID (for the trigger's icon + label), or the first available option as a sensible default, or null before the registry resolves.
The currently-active view type's MJ: View Types row ID (drives the trigger label/icon and
the active highlight in the menu). The host owns this — the switcher only requests changes.
The entity whose available view types are offered. When it changes the available types are recomputed from the registry.
Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified
Returns either the default RunReport provider or the one specified in the Provider property, if it was specified
Returns either the default RunView provider or the one specified in the Provider property, if it was specified
Initializes the switcher and performs the first registry resolution.
Handles a menu selection. Closes the menu and emits ViewTypeSelected so the host can apply the switch through its own selection logic.
Toggles the dropdown menu open/closed.
mj-view-type-switcher— a small, self-contained dropdown that lets the user switch between the view types available for an entity (Grid / Cards / Timeline / Map / Cluster / third-party plug-ins).It computes its own available types from the
MJ: View Typesregistry via the ViewTypeEngine — the exact same source the EntityViewerComponent uses — gated by each descriptor'sIsAvailableForpredicate (e.g. Timeline needs a date field, Map needs geocoding, Cluster needs vectors). Icons come fromViewType.Iconmetadata. There is intentionally no hardcoded fallback list: when the registry yields one type or fewer, the switcher renders nothing.The component is purely presentational with respect to selection — it does NOT switch the actual rendering. It emits ViewTypeSelected and the host (the entity-viewer header or the view-workspace toolbar) routes that to its existing view-type selection logic. This keeps the switcher reusable both inside the viewer's own header and lifted up into a parent toolbar without the parent-reads-child
ExpressionChangedAfterItHasBeenCheckedErroranti-pattern.Example