Member Junction
    Preparing search index...

    ViewConfigPanelComponent - Sliding panel for configuring view settings

    Features:

    • Column visibility and ordering with drag-drop
    • Column formatting (number, currency, date, etc.)
    • Sort configuration
    • View name and description editing
    • Share settings
    • Save / Save As New / Cancel actions

    Hierarchy (View Summary)

    Implements

    • OnInit
    • OnChanges
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    ActiveTab: "columns" | "aggregates" | "sorting" | "filters" | "settings" = 'columns'
    Close: EventEmitter<void> = ...

    Emitted when the panel should close

    Columns: ColumnConfig[] = []
    ColumnSearchText: string = ''
    CurrentGridState: ViewGridState | null = null

    Current grid state from the grid (includes live column widths/order from user interaction) This takes precedence over viewEntity.Columns for showing current state

    DefaultSaveAsNew: boolean = false

    When true, the panel is in "create new view" mode — shows the Settings tab and a "Create View" button even without a viewEntity.

    Delete: EventEmitter<void> = ...

    Emitted when the view should be deleted

    DraggedColumn: ColumnConfig | null = null
    DraggedSortItem: SortItem | null = null
    DropPosition: "before" | "after" | null = null
    DropTargetColumn: ColumnConfig | null = null
    DropTargetSortItem: SortItem | null = null
    Duplicate: EventEmitter<void> = ...

    Emitted when user wants to duplicate the current view (F-005)

    EditingAggregate: MJUserViewEntity_IGridAggregate | null = null
    Entity: EntityInfo | null = null

    The entity being viewed

    ExternalFilterState: CompositeFilterDescriptor | null = null

    Filter state from external dialog (set by parent after dialog closes)

    FilterFields: FilterFieldInfo[] = []
    FilterMode: "smart" | "traditional" = 'smart'
    FilterState: CompositeFilterDescriptor = ...
    FormatEditingColumn: ColumnConfig | null = null
    IsOpen: boolean = false

    Whether the panel is open

    IsResizing: boolean = false
    IsSaving: boolean = false
    IsShared: boolean = false
    OpenFilterDialogRequest: EventEmitter<
        {
            filterFields: FilterFieldInfo[];
            filterState: CompositeFilterDescriptor;
        },
    > = ...

    Emitted when filter dialog should be opened (at dashboard level for full width)

    PanelWidth: number = 520
    PendingFilterModeSwitch: "smart" | "traditional" | null = null
    PendingNewViewDescription: string = ''

    Pre-populated description from the quick save dialog (used when DefaultSaveAsNew is true)

    PendingNewViewIsShared: boolean = false

    Pre-populated sharing preference from the quick save dialog (used when DefaultSaveAsNew is true)

    PendingNewViewName: string = ''

    Pre-populated view name from the quick save dialog (used when DefaultSaveAsNew is true)

    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.

    SampleData: Record<string, unknown>[] = []

    Sample data for column format preview (first few records)

    Save: EventEmitter<ViewSaveEvent> = ...

    Emitted when the view should be saved

    SaveDefaults: EventEmitter<ViewSaveEvent> = ...

    Emitted when default view settings should be saved to user settings (Used for dynamic/default views that persist to MJ: User Settings)

    ShowAggregateDialog: boolean = false
    ShowDeleteConfirm: boolean = false
    ShowFilterModeSwitchConfirm: boolean = false
    SmartFilterEnabled: boolean = false
    SmartFilterExplanation: string = ''
    SmartFilterPrompt: string = ''
    SortDirection: "asc" | "desc" = 'asc'

    Use sortItems instead

    SortDirections: (
        { name: string; value: "asc" }
        | { name: string; value: "desc" }
    )[] = ...
    SortDropPosition: "before" | "after" | null = null
    SortField: string | null = null

    Use sortItems instead

    SortItems: SortItem[] = []

    Multi-column sort configuration (ordered by priority)

    ViewDescription: string = ''
    ViewEntity: MJUserViewEntityExtended | null = null

    The current view entity (null for default view)

    ViewName: string = ''
    "ɵdir": unknown
    "ɵfac": unknown

    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 RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • 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 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