/*
 * Copyright 2015-2024 Ritense BV, the Netherlands.
 *
 * Licensed under EUPL, Version 1.2 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
/**
 * @deprecated Migrate old design to Carbon
 */
export class TitleComponent {
    constructor() {
        this.type = 'h1';
        this.margin = true;
        this.fullWidth = false;
        this.center = false;
    }
    ngOnInit() {
        this.setTitleType();
    }
    setTitleType() {
        switch (this.type) {
            case 'h1':
                this.isH1 = true;
                break;
            case 'h2':
                this.isH2 = true;
                break;
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TitleComponent, selector: "v-title", inputs: { type: "type", margin: "margin", fullWidth: "fullWidth", center: "center" }, ngImport: i0, template: "<!--\n  ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n  ~\n  ~ Licensed under EUPL, Version 1.2 (the \"License\");\n  ~ you may not use this file except in compliance with the License.\n  ~ You may obtain a copy of the License at\n  ~\n  ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n  ~\n  ~ Unless required by applicable law or agreed to in writing, software\n  ~ distributed under the License is distributed on an \"AS IS\" basis,\n  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  ~ See the License for the specific language governing permissions and\n  ~ limitations under the License.\n  -->\n\n<h1\n  *ngIf=\"isH1\"\n  class=\"v-title--h1\"\n  [ngClass]=\"{\n    'v-title--no-margin': !margin,\n    'v-title--full-width': fullWidth,\n    'v-title--center': center,\n  }\"\n>\n  <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</h1>\n<h2\n  *ngIf=\"isH2\"\n  class=\"v-title--h2\"\n  [ngClass]=\"{\n    'v-title--no-margin': !margin,\n    'v-title--full-width': fullWidth,\n    'v-title--center': center,\n  }\"\n>\n  <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</h2>\n\n<ng-template #content>\n  <ng-content></ng-content>\n</ng-template>\n", styles: [".v-title--h1{color:var(--v-title-h1-color);font-size:var(--v-title-h1-font-size);font-weight:var(--v-title-h1-font-weight);line-height:var(--v-title-h1-line-height);margin:0;margin-block-end:var(--v-title-h1-margin-block-end)}.v-title--h2{color:var(--v-title-h2-color);font-size:var(--v-title-h2-font-size);font-weight:var(--v-title-h2-font-weight);line-height:var(--v-title-h2-line-height);margin:0;margin-block-end:var(--v-title-h2-margin-block-end)}.v-title--no-margin{margin:0}.v-title--full-width{width:100%}.v-title--center{text-align:center}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TitleComponent, decorators: [{
            type: Component,
            args: [{ selector: 'v-title', template: "<!--\n  ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n  ~\n  ~ Licensed under EUPL, Version 1.2 (the \"License\");\n  ~ you may not use this file except in compliance with the License.\n  ~ You may obtain a copy of the License at\n  ~\n  ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n  ~\n  ~ Unless required by applicable law or agreed to in writing, software\n  ~ distributed under the License is distributed on an \"AS IS\" basis,\n  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  ~ See the License for the specific language governing permissions and\n  ~ limitations under the License.\n  -->\n\n<h1\n  *ngIf=\"isH1\"\n  class=\"v-title--h1\"\n  [ngClass]=\"{\n    'v-title--no-margin': !margin,\n    'v-title--full-width': fullWidth,\n    'v-title--center': center,\n  }\"\n>\n  <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</h1>\n<h2\n  *ngIf=\"isH2\"\n  class=\"v-title--h2\"\n  [ngClass]=\"{\n    'v-title--no-margin': !margin,\n    'v-title--full-width': fullWidth,\n    'v-title--center': center,\n  }\"\n>\n  <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</h2>\n\n<ng-template #content>\n  <ng-content></ng-content>\n</ng-template>\n", styles: [".v-title--h1{color:var(--v-title-h1-color);font-size:var(--v-title-h1-font-size);font-weight:var(--v-title-h1-font-weight);line-height:var(--v-title-h1-line-height);margin:0;margin-block-end:var(--v-title-h1-margin-block-end)}.v-title--h2{color:var(--v-title-h2-color);font-size:var(--v-title-h2-font-size);font-weight:var(--v-title-h2-font-weight);line-height:var(--v-title-h2-line-height);margin:0;margin-block-end:var(--v-title-h2-margin-block-end)}.v-title--no-margin{margin:0}.v-title--full-width{width:100%}.v-title--center{text-align:center}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
        }], propDecorators: { type: [{
                type: Input
            }], margin: [{
                type: Input
            }], fullWidth: [{
                type: Input
            }], center: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 