UNPKG

1.54 kBTypeScriptView Raw
1import type { BeanCollection, FocusableContainer, ResizableStructure } from 'ag-grid-community';
2import type { PanelOptions } from './agPanel';
3import { AgPanel } from './agPanel';
4export type ResizableSides = 'topLeft' | 'top' | 'topRight' | 'right' | 'bottomRight' | 'bottom' | 'bottomLeft' | 'left';
5export interface DialogOptions extends PanelOptions {
6 eWrapper?: HTMLElement;
7 modal?: boolean;
8 movable?: boolean;
9 alwaysOnTop?: boolean;
10 maximizable?: boolean;
11 afterGuiAttached?: () => void;
12 closedCallback?: (event?: MouseEvent | TouchEvent | KeyboardEvent) => void;
13}
14export declare class AgDialog extends AgPanel<DialogOptions> implements FocusableContainer {
15 private popupService;
16 private focusService;
17 wireBeans(beans: BeanCollection): void;
18 private tabGuardFeature;
19 private isMaximizable;
20 private isMaximized;
21 private maximizeListeners;
22 private maximizeButtonComp;
23 private maximizeIcon;
24 private minimizeIcon;
25 private resizeListenerDestroy;
26 private lastPosition;
27 constructor(config: DialogOptions);
28 postConstruct(): void;
29 setAllowFocus(allowFocus: boolean): void;
30 protected renderComponent(): void;
31 private onClosed;
32 private toggleMaximize;
33 private refreshMaximizeIcon;
34 private clearMaximizebleListeners;
35 destroy(): void;
36 setResizable(resizable: boolean | ResizableStructure): void;
37 setMovable(movable: boolean): void;
38 setMaximizable(maximizable: boolean): void;
39 private buildMaximizeAndMinimizeElements;
40}