@memberjunction/ng-action-gallery
Version:
MemberJunction Action Gallery - A beautiful, filterable gallery component for browsing and selecting actions
53 lines • 2.3 kB
TypeScript
import { ViewContainerRef } from '@angular/core';
import { DialogService } from '@progress/kendo-angular-dialog';
import { ActionGalleryConfig } from './action-gallery.component';
import { ActionEntity } 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: DialogService);
/**
* 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<ActionEntity | 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<ActionEntity[]>;
/**
* 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