/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Directive, HostBinding, Input, NgModule } from '@angular/core';
export class IgxLayoutDirective {
    constructor() {
        this.dir = 'row';
        this.reverse = false;
        this.wrap = 'nowrap';
        this.justify = 'flex-start';
        this.itemAlign = 'stretch';
        this.display = 'flex';
    }
    /**
     * @return {?}
     */
    get flexwrap() { return this.wrap; }
    /**
     * @return {?}
     */
    get justifycontent() { return this.justify; }
    /**
     * @return {?}
     */
    get align() { return this.itemAlign; }
    /**
     * @return {?}
     */
    get direction() {
        if (this.reverse) {
            return (this.dir === 'row') ? 'row-reverse' : 'column-reverse';
        }
        return (this.dir === 'row') ? 'row' : 'column';
    }
}
IgxLayoutDirective.decorators = [
    { type: Directive, args: [{
                selector: '[igxLayout]'
            },] },
];
/** @nocollapse */
IgxLayoutDirective.propDecorators = {
    "dir": [{ type: Input, args: ['igxLayoutDir',] },],
    "reverse": [{ type: Input, args: ['igxLayoutReverse',] },],
    "wrap": [{ type: Input, args: ['igxLayoutWrap',] },],
    "justify": [{ type: Input, args: ['igxLayoutJustify',] },],
    "itemAlign": [{ type: Input, args: ['igxLayoutItemAlign',] },],
    "display": [{ type: HostBinding, args: ['style.display',] },],
    "flexwrap": [{ type: HostBinding, args: ['style.flex-wrap',] },],
    "justifycontent": [{ type: HostBinding, args: ['style.justify-content',] },],
    "align": [{ type: HostBinding, args: ['style.align-items',] },],
    "direction": [{ type: HostBinding, args: ['style.flex-direction',] },],
};
function IgxLayoutDirective_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    IgxLayoutDirective.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    IgxLayoutDirective.ctorParameters;
    /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
    IgxLayoutDirective.propDecorators;
    /** @type {?} */
    IgxLayoutDirective.prototype.dir;
    /** @type {?} */
    IgxLayoutDirective.prototype.reverse;
    /** @type {?} */
    IgxLayoutDirective.prototype.wrap;
    /** @type {?} */
    IgxLayoutDirective.prototype.justify;
    /** @type {?} */
    IgxLayoutDirective.prototype.itemAlign;
    /** @type {?} */
    IgxLayoutDirective.prototype.display;
}
export class IgxFlexDirective {
    constructor() {
        this.grow = 1;
        this.shrink = 1;
        this.flex = '';
        this.order = 0;
        this.basis = 'auto';
    }
    /**
     * @return {?}
     */
    get style() {
        if (this.flex) {
            return `${this.flex}`;
        }
        return `${this.grow} ${this.shrink} ${this.basis}`;
    }
    /**
     * @return {?}
     */
    get itemorder() {
        return this.order || 0;
    }
}
IgxFlexDirective.decorators = [
    { type: Directive, args: [{
                selector: '[igxFlex]'
            },] },
];
/** @nocollapse */
IgxFlexDirective.propDecorators = {
    "grow": [{ type: Input, args: ['igxFlexGrow',] },],
    "shrink": [{ type: Input, args: ['igxFlexShrink',] },],
    "flex": [{ type: Input, args: ['igxFlex',] },],
    "order": [{ type: Input, args: ['igxFlexOrder',] },],
    "basis": [{ type: Input, args: ['igxFlexBasis',] },],
    "style": [{ type: HostBinding, args: ['style.flex',] },],
    "itemorder": [{ type: HostBinding, args: ['style.order',] },],
};
function IgxFlexDirective_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    IgxFlexDirective.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    IgxFlexDirective.ctorParameters;
    /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
    IgxFlexDirective.propDecorators;
    /** @type {?} */
    IgxFlexDirective.prototype.grow;
    /** @type {?} */
    IgxFlexDirective.prototype.shrink;
    /** @type {?} */
    IgxFlexDirective.prototype.flex;
    /** @type {?} */
    IgxFlexDirective.prototype.order;
    /** @type {?} */
    IgxFlexDirective.prototype.basis;
}
export class IgxLayoutModule {
}
IgxLayoutModule.decorators = [
    { type: NgModule, args: [{
                declarations: [IgxFlexDirective, IgxLayoutDirective],
                exports: [IgxFlexDirective, IgxLayoutDirective]
            },] },
];
function IgxLayoutModule_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    IgxLayoutModule.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    IgxLayoutModule.ctorParameters;
}

//# sourceMappingURL=data:application/json;base64, 