import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
export class KbqDivider {
    constructor() {
        this._vertical = false;
        this._inset = false;
        this._paddings = true;
    }
    // Whether the divider is vertically aligned.
    get vertical() {
        return this._vertical;
    }
    set vertical(value) {
        this._vertical = coerceBooleanProperty(value);
    }
    // Whether the divider is an inset divider.
    get inset() {
        return this._inset;
    }
    set inset(value) {
        this._inset = coerceBooleanProperty(value);
    }
    get paddings() {
        return this._paddings;
    }
    set paddings(value) {
        this._paddings = coerceBooleanProperty(value);
    }
    /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: KbqDivider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: KbqDivider, selector: "kbq-divider", inputs: { vertical: "vertical", inset: "inset", paddings: "paddings" }, host: { properties: { "class.kbq-divider_vertical": "vertical", "class.kbq-divider_horizontal": "!vertical", "class.kbq-divider_inset": "inset", "class.kbq-divider_paddings": "paddings" }, classAttribute: "kbq-divider" }, ngImport: i0, template: '', isInline: true, styles: [".kbq-divider{display:block;margin:0}.kbq-divider.kbq-divider_horizontal{min-height:var(--kbq-divider-size-horizontal-width);height:var(--kbq-divider-size-horizontal-width)}.kbq-divider.kbq-divider_horizontal.kbq-divider_paddings{margin-top:var(--kbq-divider-size-horizontal-margin-vertical);margin-bottom:var(--kbq-divider-size-horizontal-margin-vertical)}.kbq-divider.kbq-divider_vertical{width:var(--kbq-divider-size-vertical-width);height:100%}.kbq-divider.kbq-divider_vertical.kbq-divider_paddings{margin-left:var(--kbq-divider-size-vertical-margin-horizontal);margin-right:var(--kbq-divider-size-vertical-margin-horizontal)}.kbq-divider{background:var(--kbq-divider-color)}\n", ".kbq-divider{--kbq-divider-size-horizontal-width: 1px;--kbq-divider-size-horizontal-margin-vertical: var(--kbq-size-xxs);--kbq-divider-size-vertical-width: 1px;--kbq-divider-size-vertical-margin-horizontal: var(--kbq-size-xxs);--kbq-divider-color: var(--kbq-line-contrast-less)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: KbqDivider, decorators: [{
            type: Component,
            args: [{ selector: 'kbq-divider', host: {
                        class: 'kbq-divider',
                        '[class.kbq-divider_vertical]': 'vertical',
                        '[class.kbq-divider_horizontal]': '!vertical',
                        '[class.kbq-divider_inset]': 'inset',
                        '[class.kbq-divider_paddings]': 'paddings'
                    }, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".kbq-divider{display:block;margin:0}.kbq-divider.kbq-divider_horizontal{min-height:var(--kbq-divider-size-horizontal-width);height:var(--kbq-divider-size-horizontal-width)}.kbq-divider.kbq-divider_horizontal.kbq-divider_paddings{margin-top:var(--kbq-divider-size-horizontal-margin-vertical);margin-bottom:var(--kbq-divider-size-horizontal-margin-vertical)}.kbq-divider.kbq-divider_vertical{width:var(--kbq-divider-size-vertical-width);height:100%}.kbq-divider.kbq-divider_vertical.kbq-divider_paddings{margin-left:var(--kbq-divider-size-vertical-margin-horizontal);margin-right:var(--kbq-divider-size-vertical-margin-horizontal)}.kbq-divider{background:var(--kbq-divider-color)}\n", ".kbq-divider{--kbq-divider-size-horizontal-width: 1px;--kbq-divider-size-horizontal-margin-vertical: var(--kbq-size-xxs);--kbq-divider-size-vertical-width: 1px;--kbq-divider-size-vertical-margin-horizontal: var(--kbq-size-xxs);--kbq-divider-color: var(--kbq-line-contrast-less)}\n"] }]
        }], propDecorators: { vertical: [{
                type: Input
            }], inset: [{
                type: Input
            }], paddings: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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