import { BsModalRef } from 'ngx-bootstrap/modal';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "ngx-bootstrap/modal";
import * as i2 from "@angular/common";
export class ModalComponent {
    constructor(modalRef) {
        this.modalRef = modalRef;
        this.modalTitle = '';
        this.hideActions = false;
        this.noPaddings = false;
        this.cancelButtonLabel = 'Cancel';
        this.onClose = new EventEmitter();
    }
    ngOnInit() {
    }
    Fechar() {
        this.onClose.emit();
        this.modalRef.hide();
    }
}
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalComponent, deps: [{ token: i1.BsModalRef }], target: i0.ɵɵFactoryTarget.Component });
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ModalComponent, selector: "ui-modal", inputs: { modalTitle: "modalTitle", hideActions: "hideActions", noPaddings: "noPaddings", cancelButtonLabel: "cancelButtonLabel" }, outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"modal-header\" *ngIf=\"modalTitle\">\n  <h5 class=\"modal-title\">{{modalTitle}}</h5>\n  <button type=\"button\" class=\"close\" (click)=\"Fechar()\" aria-label=\"Close\">\n    <span aria-hidden=\"true\">&times;</span>\n  </button>\n</div>\n<div class=\"modal-body\" [ngClass]=\"{'p-0': noPaddings}\">\n    <ng-content select=\".body\"></ng-content>\n</div>\n<div class=\"modal-footer\" *ngIf=\"!hideActions\">\n  <button type=\"button\" class=\"btn btn-outline-secondary\" (click)=\"Fechar()\"><i class=\"fa fa-times\"></i> {{cancelButtonLabel}}</button>\n  <ng-content select=\".actions\"></ng-content>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ui-modal', template: "<div class=\"modal-header\" *ngIf=\"modalTitle\">\n  <h5 class=\"modal-title\">{{modalTitle}}</h5>\n  <button type=\"button\" class=\"close\" (click)=\"Fechar()\" aria-label=\"Close\">\n    <span aria-hidden=\"true\">&times;</span>\n  </button>\n</div>\n<div class=\"modal-body\" [ngClass]=\"{'p-0': noPaddings}\">\n    <ng-content select=\".body\"></ng-content>\n</div>\n<div class=\"modal-footer\" *ngIf=\"!hideActions\">\n  <button type=\"button\" class=\"btn btn-outline-secondary\" (click)=\"Fechar()\"><i class=\"fa fa-times\"></i> {{cancelButtonLabel}}</button>\n  <ng-content select=\".actions\"></ng-content>\n</div>" }]
        }], ctorParameters: function () { return [{ type: i1.BsModalRef }]; }, propDecorators: { modalTitle: [{
                type: Input
            }], hideActions: [{
                type: Input
            }], noPaddings: [{
                type: Input
            }], cancelButtonLabel: [{
                type: Input
            }], onClose: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXVpLWhlcm8vc3JjL2xpYi91aS9jb21wb25lbnRzL21vZGFsL21vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC11aS1oZXJvL3NyYy9saWIvdWkvY29tcG9uZW50cy9tb2RhbC9tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFakQsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLG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