import { ElementRef } from '@angular/core'; import { ThfModalBaseComponent } from '@totvs/thf-core/components/thf-modal-base'; /** * @extends ThfModalBaseComponent * * @example * * * * * *
* * * * * * * * * * * * * *
* * * {{modalText}} * *
* * import { Component, ViewChild } from '@angular/core'; * * import { ThfModalAction } from "@totvs/thf-core/components/thf-modal-base/thf-modal-action.interface"; * import { ThfModalComponent } from '@totvs/thf-web/components/thf-modal/thf-modal.component'; * import { ThfRadioGroupOption, ThfCheckboxGroupOption } from '@totvs/thf-core/components/thf-field-base'; * * @Component({ * selector: 'sample-thf-modal', * templateUrl: './sample-thf-modal.component.html' * }) * export class SampleThfModalComponent { * * @ViewChild(ThfModalComponent) thfModal: ThfModalComponent; * * primaryAction: ThfModalAction = { * action: () => { * this.thfModal.close(); * }, * label: 'Confirmar' * }; * * secondaryAction: ThfModalAction = { * action: () => { * this.thfModal.close(); * }, * label: 'Cancelar' * }; * * modalSize = 'sm'; * modalText = 'Somos TOTVERS!!!'; * modalTitle = 'Totvs'; * * configurationOptions: Array = [ * {value: 'click-out', label: 'Permitir o fechamento ao clicar fora da modal' }, * {value: 'hide-close', label: 'Esconder o ícone de fechar a modal' } * ]; * configurationModel: Array = []; * * modalSizeOptions: Array = [ * { label: 'Pequeno', value: 'sm' }, * { label: 'Médio', value: 'md' }, * { label: 'Grande', value: 'lg' }, * { label: 'Extra grande', value: 'xl' }, * { label: 'Automático', value: 'auto' }, * ]; * * openPedidoModal() { * this.thfModal.open(); * } * * } * *
*/ export declare class ThfModalComponent extends ThfModalBaseComponent { modalContent: ElementRef; private firstElement; private focusFunction; private focusableElements; open(): void; close(): void; private handleFocus(); private initFocus(); private setFirstElement(); }