// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to
//  deal in the Software without restriction, including without limitation the
//  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
//  sell copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
import { Component, HostBinding, Input } from "@angular/core";
import * as i0 from "@angular/core";
// <example-url>./../examples/index.html#/layout</example-url>
export class CardComponent {
    ngOnInit() {
        this.directionColumn =
            (this.directionColumn && !this.directionRow) ||
                this.direction === "column";
        this.directionRow =
            (!this.directionColumn && this.directionRow) ||
                this.direction === "row";
    }
}
CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: CardComponent, selector: "nui-card", inputs: { direction: "direction" }, host: { properties: { "class.card-direction-column": "this.directionColumn", "class.card-direction-row": "this.directionRow" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{padding:15px;width:100%}:host.card-direction-column{display:flex;flex-direction:column}:host.card-direction-row{display:flex;flex-direction:row}:host-context(nui-sheet.sheet-direction-column :not(nui-card-group)):not(:last-of-type){border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet.sheet-direction-column):not(:only-child):only-of-type{border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet nui-card-group.card-group-direction-column):not(:last-of-type){border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet nui-card-group.card-group-direction-column):only-child{border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet nui-card-group.card-group-direction-row):not(:last-of-type){border-right-color:var(--nui-color-line-default,#d9d9d9);border-right-width:var(--nui-line-default,1px);border-right-style:solid}:host-context(nui-sheet.sheet-direction-row):not(:last-of-type){border-right-color:var(--nui-color-line-default,#d9d9d9);border-right-width:var(--nui-line-default,1px);border-right-style:solid}\n"] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CardComponent, decorators: [{
            type: Component,
            args: [{ selector: "nui-card", template: "<ng-content></ng-content>\n", styles: [":host{padding:15px;width:100%}:host.card-direction-column{display:flex;flex-direction:column}:host.card-direction-row{display:flex;flex-direction:row}:host-context(nui-sheet.sheet-direction-column :not(nui-card-group)):not(:last-of-type){border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet.sheet-direction-column):not(:only-child):only-of-type{border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet nui-card-group.card-group-direction-column):not(:last-of-type){border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet nui-card-group.card-group-direction-column):only-child{border-bottom-color:var(--nui-color-line-default,#d9d9d9);border-bottom-width:var(--nui-line-default,1px);border-bottom-style:solid}:host-context(nui-sheet nui-card-group.card-group-direction-row):not(:last-of-type){border-right-color:var(--nui-color-line-default,#d9d9d9);border-right-width:var(--nui-line-default,1px);border-right-style:solid}:host-context(nui-sheet.sheet-direction-row):not(:last-of-type){border-right-color:var(--nui-color-line-default,#d9d9d9);border-right-width:var(--nui-line-default,1px);border-right-style:solid}\n"] }]
        }], propDecorators: { direction: [{
                type: Input
            }], directionColumn: [{
                type: HostBinding,
                args: ["class.card-direction-column"]
            }], directionRow: [{
                type: HostBinding,
                args: ["class.card-direction-row"]
            }] } });
//# sourceMappingURL=data:application/json;base64, 