import * as i0 from '@angular/core';
import { EventEmitter, Component, ContentChild, Input, Output, NgModule } from '@angular/core';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i2 from '@softpak/frontend-components-ng/dist/frontend-components-ng';
import { SpfModule } from '@softpak/frontend-components-ng/dist/frontend-components-ng';
import * as i3 from '@ngx-translate/core';
import { TranslateModule } from '@ngx-translate/core';

class SpaNavigationComponent {
    constructor() {
        this.navItems = [];
        this.spaClick = new EventEmitter();
    }
    onNavigate(link) {
        this.spaClick.emit(link);
    }
}
SpaNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
SpaNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SpaNavigationComponent, selector: "spa-navigation", inputs: { navItems: "navItems" }, outputs: { spaClick: "spaClick" }, queries: [{ propertyName: "iconTemplateRef", first: true, predicate: ["icon"], descendants: true }], ngImport: i0, template: "<spn-home-tiles>\n  <spn-home-tile *ngFor=\"let item of navItems\" (click)=\"onNavigate(item.routerLink)\"\n    [attr.spn-home-tile--code]=\"item.code\" [spfTitle]=\"item.title | translate\">\n    <ng-container *ngIf=\"iconTemplateRef\" [ngTemplateOutlet]=\"iconTemplateRef\"\n      [ngTemplateOutletContext]=\"{$implicit:item}\">\n    </ng-container>\n  </spn-home-tile>\n</spn-home-tiles>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.SpnHomeTile, selector: "spn-home-tile", inputs: ["spfClass", "spfClassObject", "spfTitle"] }, { kind: "component", type: i2.SpnHomeTiles, selector: "spn-home-tiles" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationComponent, decorators: [{
            type: Component,
            args: [{ selector: 'spa-navigation', template: "<spn-home-tiles>\n  <spn-home-tile *ngFor=\"let item of navItems\" (click)=\"onNavigate(item.routerLink)\"\n    [attr.spn-home-tile--code]=\"item.code\" [spfTitle]=\"item.title | translate\">\n    <ng-container *ngIf=\"iconTemplateRef\" [ngTemplateOutlet]=\"iconTemplateRef\"\n      [ngTemplateOutletContext]=\"{$implicit:item}\">\n    </ng-container>\n  </spn-home-tile>\n</spn-home-tiles>" }]
        }], ctorParameters: function () { return []; }, propDecorators: { iconTemplateRef: [{
                type: ContentChild,
                args: ['icon', { static: false }]
            }], navItems: [{
                type: Input
            }], spaClick: [{
                type: Output
            }] } });

class SpaNavigationModule {
}
SpaNavigationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
SpaNavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationModule, declarations: [SpaNavigationComponent], imports: [CommonModule,
        SpfModule,
        TranslateModule], exports: [SpaNavigationComponent] });
SpaNavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationModule, imports: [CommonModule,
        SpfModule,
        TranslateModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [
                        SpaNavigationComponent
                    ],
                    imports: [
                        CommonModule,
                        SpfModule,
                        TranslateModule,
                    ],
                    exports: [
                        SpaNavigationComponent
                    ]
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { SpaNavigationComponent, SpaNavigationModule };
//# sourceMappingURL=softpak-ng-components-spa-navigation.mjs.map
