Query option: refresh the part on a timer.
Query option: the refresh interval, in seconds.
Emitted on Cancel, and when the user closes the dialog with Escape, the backdrop or the close button.
The settings panel's validation errors from the last Add part or Apply.
True while the settings panel of the chosen part type loads.
Why the settings panel could not load, when it could not.
Whether the dialog adds a new part or edits Panel.
The part to edit in edit mode. Its part type is the one in PartTypes with its partTypeId.
The part types to offer. The tiles show the active ones, and the edited part's type, by SortOrder.
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 on Add part or Apply with the part type, config, title and icon of the part.
The chosen part type.
Query option: show the query's parameter controls on the part.
The name of the chosen source, from the settings panel. A part type without one shows its tile label.
The part's title: empty for a new part, the part's title in edit mode. An empty title means the source name.
StaticɵdirStaticɵfacWhether Add part or Apply is enabled. Apply is enabled as soon as the part type is shown. Add part waits until the settings panel reports a valid source.
The dialog title.
Whether the chosen part type has a settings panel, which fills the Source section.
Whether the chosen part type is Query, which has the query options.
Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
The refresh intervals to offer: QUERY_REFRESH_SECONDS, plus the edited part's interval when it is another one.
Returns either the default RunQuery 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
The icon of the confirm button.
The label of the confirm button.
The placeholder of the title field: the title the part gets when the field is empty.
The part type tiles: the active part types, and the edited part's type, by SortOrder.
Whether the dialog shows. Opening reads Mode, Panel and PartTypes after the current input pass, because inputs arrive in no fixed order. Closing removes the settings panel.
Emits Cancelled.
Whether a tile's part type is the chosen one.
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Takes a change from the settings panel: its latest result and the name of its source.
Chooses a part type in add mode and loads its settings panel.
Emits Saved, or shows the settings panel's errors when its source is not valid. The config is the settings panel's config. Without a panel it names only the part type (add mode) or is the part's current config (edit mode). A query part also gets the query options.
The dialog that adds a part to a dashboard or edits one, on
mj-dialog.It shows the part type tiles, the part type's settings panel as the Source section, the title and, for a query, the parameter-controls and auto refresh options. The settings panel is the
BaseConfigPanelthat ClassFactory registers under the part type'sConfigDialogClass; the dialog passes itProviderand hides the panel's own copies of the fields it shows itself. In edit mode the part's type cannot change, so the other tiles are disabled.The host opens and closes it, for example with
@ifaround[Visible]="true".