import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class StatusComponent {
    constructor() {
        this.classMap = {};
    }
    get type() {
        return this._type;
    }
    set type(value) {
        this._type = value;
        this.setClassMap();
    }
    setClassMap() {
        this.classMap = 'devui-status-bg-' + this.type;
    }
}
StatusComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: StatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
StatusComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: StatusComponent, selector: "d-status", inputs: { type: "type" }, ngImport: i0, template: "<span class=\"devui-status\" [ngClass]=\"classMap\">\n  <ng-content></ng-content>\n</span>\n", styles: [":host{display:block}.devui-status{line-height:20px;height:20px;display:flex;align-items:center}.devui-status:before{display:inline-block;content:\"\";width:10px;height:10px;margin-right:5px;border-radius:100%}.devui-status.devui-status-bg-success:before{background:#50d4ab;background:var(--devui-success, #50d4ab)}.devui-status.devui-status-bg-error:before{background:#f66f6a;background:var(--devui-danger, #f66f6a)}.devui-status.devui-status-bg-warning:before{background:#fac20a;background:var(--devui-warning, #fac20a)}.devui-status.devui-status-bg-waiting:before{background:#beccfa;background:var(--devui-waiting, #beccfa)}.devui-status.devui-status-bg-running:before{background:#5e7ce0;background:var(--devui-info, #5e7ce0)}.devui-status.devui-status-bg-invalid:before{background:#f2f2f3;background:var(--devui-dividing-line, #f2f2f3)}.devui-status.devui-status-bg-initial:before{background:#e9edfa;background:var(--devui-initial, #e9edfa)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: StatusComponent, decorators: [{
            type: Component,
            args: [{ selector: 'd-status', preserveWhitespaces: false, template: "<span class=\"devui-status\" [ngClass]=\"classMap\">\n  <ng-content></ng-content>\n</span>\n", styles: [":host{display:block}.devui-status{line-height:20px;height:20px;display:flex;align-items:center}.devui-status:before{display:inline-block;content:\"\";width:10px;height:10px;margin-right:5px;border-radius:100%}.devui-status.devui-status-bg-success:before{background:#50d4ab;background:var(--devui-success, #50d4ab)}.devui-status.devui-status-bg-error:before{background:#f66f6a;background:var(--devui-danger, #f66f6a)}.devui-status.devui-status-bg-warning:before{background:#fac20a;background:var(--devui-warning, #fac20a)}.devui-status.devui-status-bg-waiting:before{background:#beccfa;background:var(--devui-waiting, #beccfa)}.devui-status.devui-status-bg-running:before{background:#5e7ce0;background:var(--devui-info, #5e7ce0)}.devui-status.devui-status-bg-invalid:before{background:#f2f2f3;background:var(--devui-dividing-line, #f2f2f3)}.devui-status.devui-status-bg-initial:before{background:#e9edfa;background:var(--devui-initial, #e9edfa)}\n"] }]
        }], propDecorators: { type: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2RldnVpL3N0YXR1cy9zdGF0dXMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vZGV2dWkvc3RhdHVzL3N0YXR1cy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBU2pELE1BQU0sT0FBTyxlQUFlO0lBUDVCO1FBU0UsYUFBUSxHQUFHLEVBQUUsQ0FBQztLQWVmO0lBYkMsSUFDSSxJQUFJO1FBQ04sT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDO0lBQ3BCLENBQUM7SUFFRCxJQUFJLElBQUksQ0FBQyxLQUFhO1FBQ3BCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO1FBQ25CLElBQUksQ0FBQ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