Member Junction
    Preparing search index...

    A generic pivot table component that runs any saved Query or ad-hoc query parameters, groups and aggregates rows across dimensions and time grains, handles comparison windows, formats null values as em dashes ('—'), and renders via mj-query-data-grid.

    <mj-query-pivot
    [QueryName]="'AIUsageHourly'"
    [DimensionColumns]="['Agent']"
    [MeasureColumns]="[{ Key: 'TotalCost', Label: 'Cost', Format: 'currency' }]"
    (RowActivated)="onRowSelected($event)">
    </mj-query-pivot>

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    AutoRun: boolean = true

    Whether to automatically execute the query when inputs initialize or change

    CategoryPath: string | null = null

    Category path of the saved Query

    ColumnConfigs: QueryGridColumnConfig[] = []
    DataSource: "Materialized" | "Live" = 'Materialized'

    Data source to query from: 'Materialized' (default) or 'Live'

    ExecutionTimeMs: number | null = null
    GroupedRowCount: number = 0
    Height: string = '100%'

    Height of the pivot container

    IsLoading: boolean = false

    External loading state override

    LastError: string | null = null
    PivotComplete: EventEmitter<PivotResult> = ...

    Fired when pivot calculation finishes

    PivotedData: Record<string, unknown>[] = []
    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.

    QueryComplete: EventEmitter<RunQueryResult> = ...

    Fired when query execution completes

    QueryError: EventEmitter<Error> = ...

    Fired when query execution encounters an error

    QueryStart: EventEmitter<void> = ...

    Fired when query execution starts

    RawData: Record<string, unknown>[] = []
    RowActivated: EventEmitter<Record<string, unknown>> = ...

    Emitted when a row is clicked or activated.

    SelectionMode: QueryGridSelectionMode = 'single'

    Grid row selection mode

    ShowToolbar: boolean = true

    Whether to show the grid toolbar

    TotalInputRows: number = 0
    VisualConfig: QueryGridVisualConfig = {}

    Visual configuration passed to data grid

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

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void