@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
32 lines (31 loc) • 986 B
TypeScript
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
type ModalType = 'alert' | 'confirm' | 'prompt' | 'info' | 'choice';
declare class ModalsComponent extends GirafeHTMLElement {
protected templateUrl: string | null;
protected styleUrls: string[] | null;
template: () => import("uhtml").Hole;
visible: boolean;
boxType?: ModalType;
boxTitle?: string;
boxMessage?: string;
boxPlaceholder?: string;
boxChoices: string[];
resolveAlertConfirm: (value: boolean) => void;
resolvePrompt: (value: string | false) => void;
constructor();
private initBox;
private initBoxWithMessageArray;
private resetBox;
private promptBox;
private promptChoiceBox;
private alertInfoBox;
private alertConfirmBox;
ok(): void;
nok(): void;
promptOk(): void;
choiceOk(choice: string): void;
promptNok(): void;
render(): void;
protected connectedCallback(): void;
}
export default ModalsComponent;