import * as i0 from '@angular/core';
import { Directive, HostBinding, Input, NgModule } from '@angular/core';
import { Color } from '@mintplayer/ng-bootstrap';
import { CommonModule } from '@angular/common';

class BsButtonTypeDirective {
    constructor() {
        this.btnClass = true;
        this.buttonClass = 'btn-transparent';
    }
    set color(value) {
        const name = Color[value];
        this.buttonClass = `btn-${name}`;
    }
}
BsButtonTypeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsButtonTypeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
BsButtonTypeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.7", type: BsButtonTypeDirective, selector: "button[color],input[type=\"button\"][color],input[type=\"submit\"][color]", inputs: { color: "color" }, host: { properties: { "class.btn": "this.btnClass", "class": "this.buttonClass" } }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsButtonTypeDirective, decorators: [{
            type: Directive,
            args: [{
                    selector: 'button[color],input[type="button"][color],input[type="submit"][color]'
                }]
        }], propDecorators: { btnClass: [{
                type: HostBinding,
                args: ['class.btn']
            }], buttonClass: [{
                type: HostBinding,
                args: ['class']
            }], color: [{
                type: Input
            }] } });

class BsButtonTypeModule {
}
BsButtonTypeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsButtonTypeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
BsButtonTypeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: BsButtonTypeModule, declarations: [BsButtonTypeDirective], imports: [CommonModule], exports: [BsButtonTypeDirective] });
BsButtonTypeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsButtonTypeModule, imports: [CommonModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: BsButtonTypeModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [
                        BsButtonTypeDirective
                    ],
                    imports: [
                        CommonModule
                    ],
                    exports: [
                        BsButtonTypeDirective
                    ]
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { BsButtonTypeDirective, BsButtonTypeModule };
//# sourceMappingURL=mintplayer-ng-bootstrap-button-type.mjs.map
