@cauca-911/material 20.2.14 → 20.2.16
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_1_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_1_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_1_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_1_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,45 @@ 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_1_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_1_Conditional_2_Template, 3, 5, "a", 5)(3, PageTitleComponent_Conditional_4_Conditional_2_For_1_Conditional_3_Template, 3, 3, "span", 6)(4, PageTitleComponent_Conditional_4_Conditional_2_For_1_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.ɵɵrepeaterCreate(0, PageTitleComponent_Conditional_4_Conditional_2_For_1_Template, 5, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
3467
|
+
i0.ɵɵelementStart(2, "span", 4);
|
|
3468
|
+
i0.ɵɵtext(3);
|
|
3469
|
+
i0.ɵɵpipe(4, "translate");
|
|
3470
|
+
i0.ɵɵelementEnd();
|
|
3471
|
+
} if (rf & 2) {
|
|
3472
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
3473
|
+
i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
|
|
3474
|
+
i0.ɵɵadvance(3);
|
|
3475
|
+
i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(4, 1, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
|
|
3476
|
+
} }
|
|
3465
3477
|
function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3466
3478
|
i0.ɵɵelementStart(0, "div", 2);
|
|
3467
3479
|
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()();
|
|
3480
|
+
i0.ɵɵconditionalCreate(2, PageTitleComponent_Conditional_4_Conditional_2_Template, 5, 3);
|
|
3481
|
+
i0.ɵɵelementEnd();
|
|
3473
3482
|
} if (rf & 2) {
|
|
3474
3483
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3475
3484
|
i0.ɵɵadvance();
|
|
3476
3485
|
i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
|
|
3477
3486
|
i0.ɵɵadvance();
|
|
3478
|
-
i0.ɵɵ
|
|
3479
|
-
i0.ɵɵadvance(3);
|
|
3480
|
-
i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
|
|
3487
|
+
i0.ɵɵconditional(!ctx_r0.showOnlyBasecrumb() ? 2 : -1);
|
|
3481
3488
|
} }
|
|
3482
3489
|
class PageTitleComponent {
|
|
3483
3490
|
constructor() {
|
|
3484
3491
|
this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
|
|
3485
3492
|
this.showBreadcrumb = input(false, ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
|
|
3493
|
+
this.showOnlyBasecrumb = input(false, ...(ngDevMode ? [{ debugName: "showOnlyBasecrumb" }] : []));
|
|
3486
3494
|
this.location = input([], ...(ngDevMode ? [{ debugName: "location" }] : []));
|
|
3487
3495
|
this.breadcrumb = input('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3488
3496
|
this.baseCrumb = input('', ...(ngDevMode ? [{ debugName: "baseCrumb" }] : []));
|
|
@@ -3494,12 +3502,12 @@ class PageTitleComponent {
|
|
|
3494
3502
|
this.breadcrumbService = inject(BreadcrumbService, { optional: true });
|
|
3495
3503
|
}
|
|
3496
3504
|
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) {
|
|
3505
|
+
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
3506
|
i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
|
|
3499
3507
|
i0.ɵɵtext(2);
|
|
3500
3508
|
i0.ɵɵpipe(3, "translate");
|
|
3501
3509
|
i0.ɵɵelementEnd();
|
|
3502
|
-
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template,
|
|
3510
|
+
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 3, 2, "div", 2);
|
|
3503
3511
|
i0.ɵɵelementEnd();
|
|
3504
3512
|
} if (rf & 2) {
|
|
3505
3513
|
i0.ɵɵadvance(2);
|
|
@@ -3510,8 +3518,8 @@ class PageTitleComponent {
|
|
|
3510
3518
|
}
|
|
3511
3519
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
|
|
3512
3520
|
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 }] }] }); })();
|
|
3521
|
+
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"] }]
|
|
3522
|
+
}], 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
3523
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
|
|
3516
3524
|
|
|
3517
3525
|
const _c0$3 = ["*"];
|