UNPKG

@memberjunction/ng-action-gallery

Version:

MemberJunction Action Gallery - A beautiful, filterable gallery component for browsing and selecting actions

53 lines 2.31 kB
import { ViewContainerRef } from '@angular/core'; import { MJDialogService } from '@memberjunction/ng-ui-components'; import { ActionGalleryConfig } from './action-gallery.component'; import { MJActionEntity } from '@memberjunction/core-entities'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export interface ActionGalleryDialogConfig extends ActionGalleryConfig { title?: string; width?: number; height?: number; minWidth?: number; minHeight?: number; submitButtonText?: string; cancelButtonText?: string; preSelectedActions?: string[]; } export declare class ActionGalleryDialogService { private dialogService; private dialogRef; constructor(dialogService: MJDialogService); /** * Opens the Action Gallery in a dialog for single selection * @param config Configuration for the gallery * @param viewContainerRef Optional ViewContainerRef for proper positioning * @returns Observable that emits the selected action when confirmed */ openForSingleSelection(config?: ActionGalleryDialogConfig, viewContainerRef?: ViewContainerRef): Observable<MJActionEntity | null>; /** * Opens the Action Gallery in a dialog for multiple selection * @param config Configuration for the gallery * @param viewContainerRef Optional ViewContainerRef for proper positioning * @returns Observable that emits the selected actions when confirmed */ openForMultiSelection(config?: ActionGalleryDialogConfig, viewContainerRef?: ViewContainerRef): Observable<MJActionEntity[]>; /** * Opens the Action Gallery in a dialog for browsing only (no selection) * @param config Configuration for the gallery * @param viewContainerRef Optional ViewContainerRef for proper positioning */ openForBrowsing(config?: ActionGalleryDialogConfig, viewContainerRef?: ViewContainerRef): void; /** * Closes the currently open dialog */ close(): void; /** * Checks if a dialog is currently open */ isOpen(): boolean; private openDialog; static ɵfac: i0.ɵɵFactoryDeclaration<ActionGalleryDialogService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ActionGalleryDialogService>; } //# sourceMappingURL=action-gallery-dialog.service.d.ts.map