import { MtnaDialogButton } from '@mtna/lib-ui/dialog'; import { MtnaSearchFacade } from '@mtna/lib-ui/search-state'; import { SearchTarget } from '@mtna/search-manager-ui'; import { MtnaResultTableOptions } from '../../models/index'; /** * Required data to pass to initialize the search dialog. */ export declare class MtnaSearchDialogData { facade: MtnaSearchFacade; title: string; canClose: boolean; initialSearch?: Partial | undefined; searchTarget?: SearchTarget | undefined; enableTextSearch: boolean; resultsTableOptions: Omit; selected?: M | null | undefined; otherButtons?: MtnaDialogButton[] | undefined; selections?: M[] | undefined; showFilters?: boolean | undefined; searchBoxAppearance: 'ROUND' | 'SQUARE'; /** * @param facade The search state facade to use. Will need to provide an implementation of the base class, typically {@link MtnaInMemorySecondarySearchFacade}. * @param title the dialog title * @param canClose Whether to show the close button in the dialog actions, defaults to true. * @param initialSearch optional initial search to run on initialization * @param searchTarget optional search target to use for searches within the dialog. * @param enableTextSearch Whether to enable the search box, defaults to true. * @param resultsTableOptions Options for the results table, a subset of the inputs. Defaults to `{ color: 'primary', disableSubResults: true, resizableColumns: true }` * @param selected if the table is `selectable` you can set an initially selected model * @param otherButtons Additional buttons to show. The will be placed inbetween the close and select buttons. * @param selections if the table is `selectable` or `multiSelectable` you can set an initially selected model(s) * @param showFilters Whether to show the filter panel, defaults to false. * @param searchBoxAppearance Whether to show the search box as 'ROUND' or 'SQUARE', defaults to 'ROUND' */ constructor(facade: MtnaSearchFacade, title: string, canClose?: boolean, initialSearch?: Partial | undefined, searchTarget?: SearchTarget | undefined, enableTextSearch?: boolean, resultsTableOptions?: Omit, selected?: M | null | undefined, otherButtons?: MtnaDialogButton[] | undefined, selections?: M[] | undefined, showFilters?: boolean | undefined, searchBoxAppearance?: 'ROUND' | 'SQUARE'); }