UNPKG

ddc-library-commons

Version:

Angular library for commons modules, components, services and more of the ddc project

21 lines 4.17 kB
import { Component, Input } from '@angular/core'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "@angular/router"; export class BreadcrumbDdcComponent { } BreadcrumbDdcComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadcrumbDdcComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); BreadcrumbDdcComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BreadcrumbDdcComponent, selector: "ddc-breadcrumb", inputs: { parts: "parts", position: "position" }, ngImport: i0, template: "<ol class=\"breadcrumb\" [ngClass]=\"position\">\n <li *ngFor=\"let item of parts; last as isLast\" class=\"breadcrumb-item\">\n <a [routerLink]=\"item.url\" *ngIf=\"!isLast\">{{ item.label }}</a>\n <span *ngIf=\"isLast\" class=\"active\">{{ item.label }}</span>\n </li>\n </ol>", styles: [".breadcrumb{display:flex;flex-wrap:wrap;list-style:none}.breadcrumb.relative{padding:0;position:relative}.breadcrumb.absolute{left:0;position:absolute;margin-top:1.25rem;z-index:100}.breadcrumb-item{font-size:.875rem;font-weight:500;line-height:1.25rem;margin-right:.5rem}.breadcrumb-item a{color:#00447c}.breadcrumb-item .active{color:#00447c;text-decoration:underline}.breadcrumb-item+.breadcrumb-item:before{color:#00447c;content:\">\";display:inline-block;padding-right:.625rem}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BreadcrumbDdcComponent, decorators: [{ type: Component, args: [{ selector: 'ddc-breadcrumb', templateUrl: './breadcrumb-ddc.component.html', styleUrls: ['./breadcrumb-ddc.component.scss'] }] }], propDecorators: { parts: [{ type: Input }], position: [{ type: Input }] } }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi1kZGMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGRjLWxpYnJhcnktY29tbW9ucy9zcmMvbGliL2NvbXBvbmVudHMvYnJlYWRjcnVtYi1kZGMvYnJlYWRjcnVtYi1kZGMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGRjLWxpYnJhcnktY29tbW9ucy9zcmMvbGliL2NvbXBvbmVudHMvYnJlYWRjcnVtYi1kZGMvYnJlYWRjcnVtYi1kZGMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFPakQsTUFBTSxPQUFPLHNCQUFzQjs7b0hBQXRCLHNCQUFzQjt3R0FBdEIsc0JBQXNCLHdHQ1BuQyx5U0FLTzs0RkRFTSxzQkFBc0I7a0JBTGxDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLGdCQUFnQjtvQkFDMUIsV0FBVyxFQUFFLGlDQUFpQztvQkFDOUMsU0FBUyxFQUFFLENBQUMsaUNBQWlDLENBQUM7aUJBQy9DOzhCQUVVLEtBQUs7c0JBQWIsS0FBSztnQkFDRyxRQUFRO3NCQUFoQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1w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