import { Component, ElementRef, Inject, Injector, Optional, ViewEncapsulation } from '@angular/core';
import { NgStyle } from '@angular/common';
import { MatIconModule } from '@angular/material/icon';
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { OTranslatePipe } from '../../../pipes/o-translate.pipe';
import { OContainerComponent } from '../o-container-component.class';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/icon";
export class OColumnComponent extends OContainerComponent {
    constructor(elRef, injector, matFormDefaultOption) {
        super(elRef, injector, matFormDefaultOption);
        this.elRef = elRef;
        this.injector = injector;
        this.matFormDefaultOption = matFormDefaultOption;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OColumnComponent, deps: [{ token: i0.ElementRef }, { token: i0.Injector }, { token: MAT_FORM_FIELD_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: OColumnComponent, isStandalone: true, selector: "o-column", host: { properties: { "class.o-column": "true", "class.o-appearance-outline": "isAppearanceOutline()", "class.o-appearance-outline-title": "hasTitleInAppearanceOutline()" } }, usesInheritance: true, ngImport: i0, template: "<div #container class=\"o-container o-flex-column o-flex-fill\">\n  @if (hasHeaderOrAppearanceOutlineSetted()) {\n    <div #containerTitle class=\"o-container-title o-layout-align-start-center\" layout-padding>\n      @if (icon) {\n        <mat-icon>{{ icon }}</mat-icon>\n      }\n      @if (title) {\n        <span>{{ title | oTranslate }}</span>\n      }\n    </div>\n  }\n  <div [class.o-container-gap]=\"hasHeaderOrAppearanceOutlineSetted() || (elevation > 0 && elevation <= 12)\" class=\"o-container-scroll o-scroll\">\n    @if (hasHeaderAndAppearanceOutline() || isAppearanceOutlineSetted()) {\n      <div class=\"o-container-outline\">\n        <div class=\"o-container-outline-start\"></div>\n        <div class=\"o-container-outline-gap\"></div>\n        <div class=\"o-container-outline-end\"></div>\n      </div>\n    }\n    <div class=\"o-flex-column o-flex-grow\" [ngStyle]=\"layoutAlignStyles\" [style.gap]=\"layoutGap\">\n      <ng-content></ng-content>\n    </div>\n  </div>\n</div>\n", styles: [".o-column .o-container{flex:1;display:flex;flex-direction:column}.o-column .o-container .o-container-scroll{overflow:auto;position:relative}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: OTranslatePipe, name: "oTranslate" }], encapsulation: i0.ViewEncapsulation.None }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OColumnComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [NgStyle, MatIconModule, OTranslatePipe], selector: 'o-column', encapsulation: ViewEncapsulation.None, host: {
                        '[class.o-column]': 'true',
                        '[class.o-appearance-outline]': 'isAppearanceOutline()',
                        '[class.o-appearance-outline-title]': 'hasTitleInAppearanceOutline()'
                    }, template: "<div #container class=\"o-container o-flex-column o-flex-fill\">\n  @if (hasHeaderOrAppearanceOutlineSetted()) {\n    <div #containerTitle class=\"o-container-title o-layout-align-start-center\" layout-padding>\n      @if (icon) {\n        <mat-icon>{{ icon }}</mat-icon>\n      }\n      @if (title) {\n        <span>{{ title | oTranslate }}</span>\n      }\n    </div>\n  }\n  <div [class.o-container-gap]=\"hasHeaderOrAppearanceOutlineSetted() || (elevation > 0 && elevation <= 12)\" class=\"o-container-scroll o-scroll\">\n    @if (hasHeaderAndAppearanceOutline() || isAppearanceOutlineSetted()) {\n      <div class=\"o-container-outline\">\n        <div class=\"o-container-outline-start\"></div>\n        <div class=\"o-container-outline-gap\"></div>\n        <div class=\"o-container-outline-end\"></div>\n      </div>\n    }\n    <div class=\"o-flex-column o-flex-grow\" [ngStyle]=\"layoutAlignStyles\" [style.gap]=\"layoutGap\">\n      <ng-content></ng-content>\n    </div>\n  </div>\n</div>\n", styles: [".o-column .o-container{flex:1;display:flex;flex-direction:column}.o-column .o-container .o-container-scroll{overflow:auto;position:relative}\n"] }]
        }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Injector }, { type: undefined, decorators: [{
                    type: Optional
                }, {
                    type: Inject,
                    args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
                }] }] });
//# sourceMappingURL=data:application/json;base64, 