import { Component, HostBinding, Input, input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/router";
export class BreadcrumbLinkComponent {
    constructor(router) {
        this.router = router;
        /**
         * Icon used for the link
         */
        this.icon = input();
        /**
         * Label used for the link
         */
        this.label = input('');
        /**
         * Arialabel used for the link in the case of icon only
         */
        this.ariaLabel = input();
        /**
         * Is the link disabled ?
         */
        this.disabled = input(false);
        this.class = 'mic-breadcrumb-link';
    }
    click() {
        if (!this.disabled()) {
            this.router.navigate([this.link]);
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: BreadcrumbLinkComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.1.0", type: BreadcrumbLinkComponent, selector: "mic-breadcrumb-link", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: false, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: false, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: '', isInline: true }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: BreadcrumbLinkComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'mic-breadcrumb-link',
                    template: ''
                }]
        }], ctorParameters: () => [{ type: i1.Router }], propDecorators: { link: [{
                type: Input
            }], separator: [{
                type: Input
            }], active: [{
                type: Input
            }], class: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi1saW5rLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3RoZW1lL3NyYy9saWIvYnJlYWRjcnVtYi9icmVhZGNydW1iLWxpbmsuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQVFyRSxNQUFNLE9BQU8sdUJBQXVCO0lBZ0NsQyxZQUE2QixNQUFjO1FBQWQsV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQS9CM0M7O1dBRUc7UUFDSCxTQUFJLEdBQUcsS0FBSyxFQUFpQixDQUFDO1FBQzlCOztXQUVHO1FBQ0gsVUFBSyxHQUFHLEtBQUssQ0FBUyxFQUFFLENBQUMsQ0FBQztRQUMxQjs7V0FFRztRQUNILGNBQVMsR0FBRyxLQUFLLEVBQVUsQ0FBQztRQUM1Qjs7V0FFRztRQUNILGFBQVEsR0FBRyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUM7UUFjRixVQUFLLEdBQUcscUJBQXFCLENBQUM7SUFFTixDQUFDO0lBRS9DLEtBQUs7UUFDSCxJQUFJLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLENBQUM7WUFDckIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztRQUNwQyxDQUFDO0lBQ0gsQ0FBQzs4R0F0Q1UsdUJBQXVCO2tHQUF2Qix1QkFBdUIsaStCQUZ4QixFQUFFOzsyRkFF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