import * as i0 from '@angular/core';
import { Component, Input, NgModule } from '@angular/core';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import { HelperPipesModule } from '@aztrix/helpers';

class FontSelectComponent {
    constructor() {
        this.fonts = [
            { value: 'lato', label: 'Lato', type: 'LATO' },
            { value: 'arial', label: 'Arial', type: 'ARIAL' },
            { value: '"courier new"', label: 'Courier New', type: 'COURIER_NEW' },
            { value: '"Times New Roman"', label: 'Times New Roman', type: 'TIMES_NEW_ROMAN' },
        ];
    }
}
FontSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FontSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
FontSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: FontSelectComponent, selector: "ax-font-select", inputs: { form: "form" }, ngImport: i0, template: "<div class=\"font\" *ngFor=\"let font of fonts\" (click)=\"form.setValue(font.value)\">\n  <input\n    class=\"input\"\n    type=\"radio\"\n    [id]=\"'font-' + font.type\"\n    [value]=\"'font-' + font.type\"\n    [checked]=\"font.value === form?.value\"\n  />\n  <label class=\"font-label\" [for]=\"'font-' + font.type\" [ngStyle]=\"{'font-family': font.value}\">\n    <span>Aa</span>\n  </label>\n  <span class=\"option-label\">{{ font.label }}</span>\n</div>\n", styles: [":host{display:grid;grid-gap:1rem;grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}:host .font{width:100%;min-height:80px;display:flex;flex-direction:column;align-items:center;text-align:center}:host .input{position:absolute;visibility:hidden;opacity:0}:host .input+label{position:relative;display:inline-block;width:100%;height:70px;overflow:hidden;background-color:#efefef;border-radius:10px;cursor:pointer;-webkit-user-select:none;user-select:none}:host .input+label.bg-color-label{background-color:#363f48}:host .input+label .ax-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host input[type=radio]:checked+label{background-color:var(--primary-color-500)}.font-label span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:2rem}.option-label{margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FontSelectComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-font-select', template: "<div class=\"font\" *ngFor=\"let font of fonts\" (click)=\"form.setValue(font.value)\">\n  <input\n    class=\"input\"\n    type=\"radio\"\n    [id]=\"'font-' + font.type\"\n    [value]=\"'font-' + font.type\"\n    [checked]=\"font.value === form?.value\"\n  />\n  <label class=\"font-label\" [for]=\"'font-' + font.type\" [ngStyle]=\"{'font-family': font.value}\">\n    <span>Aa</span>\n  </label>\n  <span class=\"option-label\">{{ font.label }}</span>\n</div>\n", styles: [":host{display:grid;grid-gap:1rem;grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}:host .font{width:100%;min-height:80px;display:flex;flex-direction:column;align-items:center;text-align:center}:host .input{position:absolute;visibility:hidden;opacity:0}:host .input+label{position:relative;display:inline-block;width:100%;height:70px;overflow:hidden;background-color:#efefef;border-radius:10px;cursor:pointer;-webkit-user-select:none;user-select:none}:host .input+label.bg-color-label{background-color:#363f48}:host .input+label .ax-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host input[type=radio]:checked+label{background-color:var(--primary-color-500)}.font-label span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:2rem}.option-label{margin-top:.5rem}\n"] }]
        }], propDecorators: { form: [{
                type: Input
            }] } });

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

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

export { FontSelectComponent, FontSelectModule };
//# sourceMappingURL=aztrix-components-font-select.mjs.map
//# sourceMappingURL=aztrix-components-font-select.mjs.map
