@cauca-911/material 20.2.14 → 20.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3420,7 +3420,7 @@ function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (
|
|
|
3420
3420
|
i0.ɵɵadvance();
|
|
3421
3421
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.baseCrumb()));
|
|
3422
3422
|
} }
|
|
3423
|
-
function
|
|
3423
|
+
function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
3424
3424
|
i0.ɵɵelementStart(0, "a", 5);
|
|
3425
3425
|
i0.ɵɵtext(1);
|
|
3426
3426
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -3431,10 +3431,10 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx)
|
|
|
3431
3431
|
i0.ɵɵadvance();
|
|
3432
3432
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r2.title));
|
|
3433
3433
|
} }
|
|
3434
|
-
function
|
|
3434
|
+
function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
3435
3435
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
3436
3436
|
i0.ɵɵelementStart(0, "span", 7);
|
|
3437
|
-
i0.ɵɵlistener("click", function
|
|
3437
|
+
i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_3_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
|
|
3438
3438
|
i0.ɵɵtext(1);
|
|
3439
3439
|
i0.ɵɵpipe(2, "translate");
|
|
3440
3440
|
i0.ɵɵelementEnd();
|
|
@@ -3443,7 +3443,7 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_3_Template(rf, ctx)
|
|
|
3443
3443
|
i0.ɵɵadvance();
|
|
3444
3444
|
i0.ɵɵtextInterpolate(location_r2.translate ? i0.ɵɵpipeBind1(2, 1, location_r2.title) : location_r2.title);
|
|
3445
3445
|
} }
|
|
3446
|
-
function
|
|
3446
|
+
function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3447
3447
|
i0.ɵɵelementStart(0, "span", 3);
|
|
3448
3448
|
i0.ɵɵtext(1);
|
|
3449
3449
|
i0.ɵɵelementEnd();
|
|
@@ -3452,37 +3452,47 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_4_Template(rf, ctx)
|
|
|
3452
3452
|
i0.ɵɵadvance();
|
|
3453
3453
|
i0.ɵɵtextInterpolate(location_r2.title);
|
|
3454
3454
|
} }
|
|
3455
|
-
function
|
|
3455
|
+
function PageTitleComponent_Conditional_4_Conditional_2_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
3456
3456
|
i0.ɵɵelementStart(0, "span");
|
|
3457
3457
|
i0.ɵɵtext(1, "/");
|
|
3458
3458
|
i0.ɵɵelementEnd();
|
|
3459
|
-
i0.ɵɵconditionalCreate(2,
|
|
3459
|
+
i0.ɵɵconditionalCreate(2, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_2_Template, 3, 5, "a", 5)(3, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_3_Template, 3, 3, "span", 6)(4, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_4_Template, 2, 1, "span", 3);
|
|
3460
3460
|
} if (rf & 2) {
|
|
3461
3461
|
const location_r2 = ctx.$implicit;
|
|
3462
3462
|
i0.ɵɵadvance(2);
|
|
3463
3463
|
i0.ɵɵconditional(location_r2.link ? 2 : location_r2.action ? 3 : 4);
|
|
3464
3464
|
} }
|
|
3465
|
+
function PageTitleComponent_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
3466
|
+
i0.ɵɵtext(0, ") ");
|
|
3467
|
+
i0.ɵɵrepeaterCreate(1, PageTitleComponent_Conditional_4_Conditional_2_For_2_Template, 5, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
3468
|
+
i0.ɵɵelementStart(3, "span", 4);
|
|
3469
|
+
i0.ɵɵtext(4);
|
|
3470
|
+
i0.ɵɵpipe(5, "translate");
|
|
3471
|
+
i0.ɵɵelementEnd();
|
|
3472
|
+
} if (rf & 2) {
|
|
3473
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
3474
|
+
i0.ɵɵadvance();
|
|
3475
|
+
i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
|
|
3476
|
+
i0.ɵɵadvance(3);
|
|
3477
|
+
i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(5, 1, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
|
|
3478
|
+
} }
|
|
3465
3479
|
function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3466
3480
|
i0.ɵɵelementStart(0, "div", 2);
|
|
3467
3481
|
i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 3, 3, "div", 3);
|
|
3468
|
-
i0.ɵɵ
|
|
3469
|
-
i0.ɵɵ
|
|
3470
|
-
i0.ɵɵtext(5);
|
|
3471
|
-
i0.ɵɵpipe(6, "translate");
|
|
3472
|
-
i0.ɵɵelementEnd()();
|
|
3482
|
+
i0.ɵɵconditionalCreate(2, PageTitleComponent_Conditional_4_Conditional_2_Template, 6, 3);
|
|
3483
|
+
i0.ɵɵelementEnd();
|
|
3473
3484
|
} if (rf & 2) {
|
|
3474
3485
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3475
3486
|
i0.ɵɵadvance();
|
|
3476
3487
|
i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
|
|
3477
3488
|
i0.ɵɵadvance();
|
|
3478
|
-
i0.ɵɵ
|
|
3479
|
-
i0.ɵɵadvance(3);
|
|
3480
|
-
i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
|
|
3489
|
+
i0.ɵɵconditional(!ctx_r0.showOnlyBasecrumb() ? 2 : -1);
|
|
3481
3490
|
} }
|
|
3482
3491
|
class PageTitleComponent {
|
|
3483
3492
|
constructor() {
|
|
3484
3493
|
this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
|
|
3485
3494
|
this.showBreadcrumb = input(false, ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
|
|
3495
|
+
this.showOnlyBasecrumb = input(false, ...(ngDevMode ? [{ debugName: "showOnlyBasecrumb" }] : []));
|
|
3486
3496
|
this.location = input([], ...(ngDevMode ? [{ debugName: "location" }] : []));
|
|
3487
3497
|
this.breadcrumb = input('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3488
3498
|
this.baseCrumb = input('', ...(ngDevMode ? [{ debugName: "baseCrumb" }] : []));
|
|
@@ -3494,12 +3504,12 @@ class PageTitleComponent {
|
|
|
3494
3504
|
this.breadcrumbService = inject(BreadcrumbService, { optional: true });
|
|
3495
3505
|
}
|
|
3496
3506
|
static { this.ɵfac = function PageTitleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageTitleComponent)(); }; }
|
|
3497
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["cauca-page-title"]], inputs: { caption: [1, "caption"], showBreadcrumb: [1, "showBreadcrumb"], location: [1, "location"], breadcrumb: [1, "breadcrumb"], baseCrumb: [1, "baseCrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "basecrumb"], [1, "breadcrumb-current"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3507
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["cauca-page-title"]], inputs: { caption: [1, "caption"], showBreadcrumb: [1, "showBreadcrumb"], showOnlyBasecrumb: [1, "showOnlyBasecrumb"], location: [1, "location"], breadcrumb: [1, "breadcrumb"], baseCrumb: [1, "baseCrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "basecrumb"], [1, "breadcrumb-current"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3498
3508
|
i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
|
|
3499
3509
|
i0.ɵɵtext(2);
|
|
3500
3510
|
i0.ɵɵpipe(3, "translate");
|
|
3501
3511
|
i0.ɵɵelementEnd();
|
|
3502
|
-
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template,
|
|
3512
|
+
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 3, 2, "div", 2);
|
|
3503
3513
|
i0.ɵɵelementEnd();
|
|
3504
3514
|
} if (rf & 2) {
|
|
3505
3515
|
i0.ɵɵadvance(2);
|
|
@@ -3510,8 +3520,8 @@ class PageTitleComponent {
|
|
|
3510
3520
|
}
|
|
3511
3521
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
|
|
3512
3522
|
type: Component,
|
|
3513
|
-
args: [{ selector: 'cauca-page-title', imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\r\n\r\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\r\n\r\n @if (displayBreadcrumb()) {\r\n <div class=\"breadcrumb\">\r\n\r\n @if (baseCrumb()) {\r\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\r\n
|
|
3514
|
-
}], null, { caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], showBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBreadcrumb", required: false }] }], location: [{ type: i0.Input, args: [{ isSignal: true, alias: "location", required: false }] }], breadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb", required: false }] }], baseCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseCrumb", required: false }] }], translateBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateBreadcrumb", required: false }] }] }); })();
|
|
3523
|
+
args: [{ selector: 'cauca-page-title', imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\r\n\r\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\r\n\r\n @if (displayBreadcrumb()) {\r\n <div class=\"breadcrumb\">\r\n\r\n @if (baseCrumb()) {\r\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\r\n }\r\n @if (!showOnlyBasecrumb()) {)\r\n @for(location of breadcrumbLocation(); track location) {\r\n <span>/</span>\r\n @if (location.link) {\r\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\r\n } @else if (location.action) {\r\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\r\n } @else {\r\n <span class=\"basecrumb\">{{location.title}}</span>\r\n }\r\n }\r\n\r\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\r\n }\r\n </div>\r\n }\r\n\r\n</div>", styles: [".title-section{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb{display:flex;align-items:center;gap:8px}h4{padding:0}a{text-decoration:none}a:visited{color:inherit}.basecrumb{color:#12101499}.crumb-link{cursor:pointer}@media(max-width:500px){.title-section{padding:16px}}\n"] }]
|
|
3524
|
+
}], null, { caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], showBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBreadcrumb", required: false }] }], showOnlyBasecrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnlyBasecrumb", required: false }] }], location: [{ type: i0.Input, args: [{ isSignal: true, alias: "location", required: false }] }], breadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb", required: false }] }], baseCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseCrumb", required: false }] }], translateBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateBreadcrumb", required: false }] }] }); })();
|
|
3515
3525
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
|
|
3516
3526
|
|
|
3517
3527
|
const _c0$3 = ["*"];
|