Member Junction
    Preparing search index...

    AggregateSetupDialogComponent - Dialog for creating/editing aggregate configurations

    Features:

    • Simple mode: Pick column + aggregate function (SUM, AVG, COUNT, etc.)
    • Advanced mode: Write custom SQL expression
    • Smart mode: Describe in natural language (AI generates expression)
    • Progressive disclosure - simple mode covers 80% of use cases
    • Display type selection (card or column)
    • Optional label and icon customization

    Implements

    • OnInit
    • OnChanges
    Index

    Constructors

    Properties

    Aggregate: MJUserViewEntity_IGridAggregate | null = null

    Existing aggregate to edit (null for new)

    AggregateFunctions: {
        icon: string;
        label: string;
        value: AggregateFunctionType;
    }[] = ...
    Close: EventEmitter<void> = ...

    Emitted when the dialog is closed

    CommonIcons: string[] = ...
    Description: string = ''
    DisplayType: AggregateDisplayType = 'card'
    Entity: EntityInfo | null = null

    The entity being viewed - provides field information

    Expression: string = ''
    GeneratedExpression: string = ''
    Icon: string = ''
    IsGenerating: boolean = false
    IsOpen: boolean = false

    Whether the dialog is open

    Label: string = ''
    Mode: AggregateSetupMode = 'simple'
    Save: EventEmitter<MJUserViewEntity_IGridAggregate> = ...

    Emitted when an aggregate is saved

    SelectedColumn: string = ''
    SelectedFunction: AggregateFunctionType = 'SUM'
    SmartPrompt: string = ''

    Accessors

    Methods

    • A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

      Parameters

      • changes: { [propName: string]: SimpleChange<any> }

        The changed properties.

      Returns void