@cauca-911/material 21.2.7 → 21.2.8

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.
@@ -42,7 +42,7 @@ import { MatSelectModule } from '@angular/material/select';
42
42
  import * as i5 from 'ngx-mat-select-search';
43
43
  import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
44
44
  import * as i1$9 from '@angular/router';
45
- import { RouterModule, Router } from '@angular/router';
45
+ import { Router, RouterModule } from '@angular/router';
46
46
  import { MatTabGroup, MatTab } from '@angular/material/tabs';
47
47
 
48
48
  class CaucaMaterialService {
@@ -3266,88 +3266,109 @@ class SectionFieldComponent {
3266
3266
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/components/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
3267
3267
 
3268
3268
  function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3269
- i0.ɵɵelementStart(0, "div", 3);
3269
+ const _r1 = i0.ɵɵgetCurrentView();
3270
+ i0.ɵɵelementStart(0, "div", 3)(1, "cauca-button", 4);
3271
+ i0.ɵɵlistener("buttonClick", function PageTitleComponent_Conditional_4_Conditional_1_Template_cauca_button_buttonClick_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.backToLastBreadcrumbLink()); });
3272
+ i0.ɵɵelementEnd();
3273
+ i0.ɵɵelementStart(2, "span", 5);
3274
+ i0.ɵɵtext(3);
3275
+ i0.ɵɵpipe(4, "translate");
3276
+ i0.ɵɵelementEnd()();
3277
+ } if (rf & 2) {
3278
+ const ctx_r1 = i0.ɵɵnextContext(2);
3279
+ i0.ɵɵadvance(3);
3280
+ i0.ɵɵtextInterpolate(ctx_r1.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(4, 1, ctx_r1.currentBreadcrumb()) : ctx_r1.currentBreadcrumb());
3281
+ } }
3282
+ function PageTitleComponent_Conditional_4_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3283
+ i0.ɵɵelementStart(0, "div", 6);
3270
3284
  i0.ɵɵtext(1);
3271
3285
  i0.ɵɵpipe(2, "translate");
3272
3286
  i0.ɵɵelementEnd();
3273
3287
  } if (rf & 2) {
3274
- const ctx_r0 = i0.ɵɵnextContext(2);
3288
+ const ctx_r1 = i0.ɵɵnextContext(3);
3275
3289
  i0.ɵɵadvance();
3276
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.baseCrumb()));
3290
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.baseCrumb()));
3277
3291
  } }
3278
- function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3292
+ function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3279
3293
  i0.ɵɵelementStart(0, "span");
3280
3294
  i0.ɵɵtext(1, "/");
3281
3295
  i0.ɵɵelementEnd();
3282
3296
  } }
3283
- function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3284
- i0.ɵɵelementStart(0, "a", 5);
3297
+ function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3298
+ i0.ɵɵelementStart(0, "a", 7);
3285
3299
  i0.ɵɵtext(1);
3286
3300
  i0.ɵɵpipe(2, "translate");
3287
3301
  i0.ɵɵelementEnd();
3288
3302
  } if (rf & 2) {
3289
- const location_r2 = i0.ɵɵnextContext().$implicit;
3290
- i0.ɵɵproperty("href", location_r2.link, i0.ɵɵsanitizeUrl)("routerLink", location_r2.link);
3303
+ const location_r3 = i0.ɵɵnextContext().$implicit;
3304
+ i0.ɵɵproperty("href", location_r3.link, i0.ɵɵsanitizeUrl)("routerLink", location_r3.link);
3291
3305
  i0.ɵɵadvance();
3292
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r2.title));
3306
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r3.title));
3293
3307
  } }
3294
- function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3295
- const _r3 = i0.ɵɵgetCurrentView();
3296
- i0.ɵɵelementStart(0, "span", 7);
3297
- i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
3308
+ function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3309
+ const _r4 = i0.ɵɵgetCurrentView();
3310
+ i0.ɵɵelementStart(0, "span", 9);
3311
+ i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r4); const location_r3 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r3.action()); });
3298
3312
  i0.ɵɵtext(1);
3299
3313
  i0.ɵɵpipe(2, "translate");
3300
3314
  i0.ɵɵelementEnd();
3301
3315
  } if (rf & 2) {
3302
- const location_r2 = i0.ɵɵnextContext().$implicit;
3316
+ const location_r3 = i0.ɵɵnextContext().$implicit;
3303
3317
  i0.ɵɵadvance();
3304
- i0.ɵɵtextInterpolate(location_r2.translate ? i0.ɵɵpipeBind1(2, 1, location_r2.title) : location_r2.title);
3318
+ i0.ɵɵtextInterpolate(location_r3.translate ? i0.ɵɵpipeBind1(2, 1, location_r3.title) : location_r3.title);
3305
3319
  } }
3306
- function PageTitleComponent_Conditional_4_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3307
- i0.ɵɵelementStart(0, "span", 3);
3320
+ function PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3321
+ i0.ɵɵelementStart(0, "span", 6);
3308
3322
  i0.ɵɵtext(1);
3309
3323
  i0.ɵɵelementEnd();
3310
3324
  } if (rf & 2) {
3311
- const location_r2 = i0.ɵɵnextContext().$implicit;
3325
+ const location_r3 = i0.ɵɵnextContext().$implicit;
3312
3326
  i0.ɵɵadvance();
3313
- i0.ɵɵtextInterpolate(location_r2.title);
3327
+ i0.ɵɵtextInterpolate(location_r3.title);
3314
3328
  } }
3315
- function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
3316
- i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_For_3_Conditional_0_Template, 2, 0, "span");
3317
- i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_For_3_Conditional_1_Template, 3, 5, "a", 5)(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 3, 3, "span", 6)(3, PageTitleComponent_Conditional_4_For_3_Conditional_3_Template, 2, 1, "span", 3);
3329
+ function PageTitleComponent_Conditional_4_Conditional_2_For_2_Template(rf, ctx) { if (rf & 1) {
3330
+ i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_0_Template, 2, 0, "span");
3331
+ i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_1_Template, 3, 5, "a", 7)(2, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_2_Template, 3, 3, "span", 8)(3, PageTitleComponent_Conditional_4_Conditional_2_For_2_Conditional_3_Template, 2, 1, "span", 6);
3318
3332
  } if (rf & 2) {
3319
- const location_r2 = ctx.$implicit;
3320
- const $index_r4 = ctx.$index;
3321
- const ctx_r0 = i0.ɵɵnextContext(2);
3322
- i0.ɵɵconditional(ctx_r0.baseCrumb() && $index_r4 === 0 ? 0 : -1);
3333
+ const location_r3 = ctx.$implicit;
3334
+ const $index_r5 = ctx.$index;
3335
+ const ctx_r1 = i0.ɵɵnextContext(3);
3336
+ i0.ɵɵconditional(ctx_r1.baseCrumb() && $index_r5 === 0 ? 0 : -1);
3323
3337
  i0.ɵɵadvance();
3324
- i0.ɵɵconditional(location_r2.link ? 1 : location_r2.action ? 2 : 3);
3338
+ i0.ɵɵconditional(location_r3.link ? 1 : location_r3.action ? 2 : 3);
3325
3339
  } }
3326
- function PageTitleComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3340
+ function PageTitleComponent_Conditional_4_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3327
3341
  i0.ɵɵelementStart(0, "span");
3328
3342
  i0.ɵɵtext(1, "/");
3329
3343
  i0.ɵɵelementEnd();
3330
3344
  } }
3331
- function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3332
- i0.ɵɵelementStart(0, "div", 2);
3333
- i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 3, 3, "div", 3);
3334
- i0.ɵɵrepeaterCreate(2, PageTitleComponent_Conditional_4_For_3_Template, 4, 2, null, null, i0.ɵɵrepeaterTrackByIdentity);
3335
- i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Conditional_4_Template, 2, 0, "span");
3336
- i0.ɵɵelementStart(5, "span", 4);
3337
- i0.ɵɵtext(6);
3338
- i0.ɵɵpipe(7, "translate");
3339
- i0.ɵɵelementEnd()();
3345
+ function PageTitleComponent_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3346
+ i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_Conditional_2_Conditional_0_Template, 3, 3, "div", 6);
3347
+ i0.ɵɵrepeaterCreate(1, PageTitleComponent_Conditional_4_Conditional_2_For_2_Template, 4, 2, null, null, i0.ɵɵrepeaterTrackByIdentity);
3348
+ i0.ɵɵconditionalCreate(3, PageTitleComponent_Conditional_4_Conditional_2_Conditional_3_Template, 2, 0, "span");
3349
+ i0.ɵɵelementStart(4, "span", 5);
3350
+ i0.ɵɵtext(5);
3351
+ i0.ɵɵpipe(6, "translate");
3352
+ i0.ɵɵelementEnd();
3340
3353
  } if (rf & 2) {
3341
- let tmp_3_0;
3342
- const ctx_r0 = i0.ɵɵnextContext();
3343
- i0.ɵɵadvance();
3344
- i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
3354
+ let tmp_4_0;
3355
+ const ctx_r1 = i0.ɵɵnextContext(2);
3356
+ i0.ɵɵconditional(ctx_r1.baseCrumb() ? 0 : -1);
3345
3357
  i0.ɵɵadvance();
3346
- i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
3358
+ i0.ɵɵrepeater(ctx_r1.breadcrumbLocation());
3347
3359
  i0.ɵɵadvance(2);
3348
- i0.ɵɵconditional(ctx_r0.baseCrumb() || ((tmp_3_0 = ctx_r0.breadcrumbLocation()) == null ? null : tmp_3_0.length) ? 4 : -1);
3360
+ i0.ɵɵconditional(ctx_r1.baseCrumb() || ((tmp_4_0 = ctx_r1.breadcrumbLocation()) == null ? null : tmp_4_0.length) ? 3 : -1);
3349
3361
  i0.ɵɵadvance(2);
3350
- i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(7, 3, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
3362
+ i0.ɵɵtextInterpolate(ctx_r1.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 3, ctx_r1.currentBreadcrumb()) : ctx_r1.currentBreadcrumb());
3363
+ } }
3364
+ function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3365
+ i0.ɵɵelementStart(0, "div", 2);
3366
+ i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 5, 3, "div", 3)(2, PageTitleComponent_Conditional_4_Conditional_2_Template, 7, 5);
3367
+ i0.ɵɵelementEnd();
3368
+ } if (rf & 2) {
3369
+ const ctx_r1 = i0.ɵɵnextContext();
3370
+ i0.ɵɵadvance();
3371
+ i0.ɵɵconditional(ctx_r1.displayCompactBreadcrumb() ? 1 : 2);
3351
3372
  } }
3352
3373
  class PageTitleComponent {
3353
3374
  constructor() {
@@ -3357,33 +3378,43 @@ class PageTitleComponent {
3357
3378
  this.breadcrumb = input('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
3358
3379
  this.baseCrumb = input('', ...(ngDevMode ? [{ debugName: "baseCrumb" }] : []));
3359
3380
  this.translateBreadcrumb = input(true, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
3381
+ this.isMobile = input(false, ...(ngDevMode ? [{ debugName: "isMobile" }] : []));
3360
3382
  this.displayBreadcrumb = computed(() => this.showBreadcrumb() || this.breadcrumbService?.showBreadcrumb(), ...(ngDevMode ? [{ debugName: "displayBreadcrumb" }] : []));
3361
3383
  this.breadcrumbLocation = computed(() => this.breadcrumbService?.location() || this.location() || [], ...(ngDevMode ? [{ debugName: "breadcrumbLocation" }] : []));
3362
3384
  this.currentBreadcrumb = computed(() => this.breadcrumbService?.breadcrumb() || this.breadcrumb() || '', ...(ngDevMode ? [{ debugName: "currentBreadcrumb" }] : []));
3363
3385
  this.mustTranslateBreadcrumb = computed(() => this.breadcrumbService?.translateBreadcrumb() || this.translateBreadcrumb(), ...(ngDevMode ? [{ debugName: "mustTranslateBreadcrumb" }] : []));
3364
3386
  this.hasBreadcrumb = computed(() => this.currentBreadcrumb() !== '', ...(ngDevMode ? [{ debugName: "hasBreadcrumb" }] : []));
3387
+ this.hasLinkedBreadcrumb = computed(() => this.breadcrumbLocation().some((location) => !!location.link), ...(ngDevMode ? [{ debugName: "hasLinkedBreadcrumb" }] : []));
3388
+ this.displayCompactBreadcrumb = computed(() => this.isMobile() && this.hasLinkedBreadcrumb(), ...(ngDevMode ? [{ debugName: "displayCompactBreadcrumb" }] : []));
3365
3389
  this.breadcrumbService = inject(BreadcrumbService, { optional: true });
3390
+ this.router = inject(Router);
3391
+ }
3392
+ backToLastBreadcrumbLink() {
3393
+ const target = [...this.breadcrumbLocation()].reverse().find((location) => !!location.link);
3394
+ if (target?.link) {
3395
+ this.router.navigateByUrl(target.link);
3396
+ }
3366
3397
  }
3367
3398
  static { this.ɵfac = function PageTitleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageTitleComponent)(); }; }
3368
- 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) {
3399
+ 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"], isMobile: [1, "isMobile"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "breadcrumb-compact"], ["type", "icon", "icon", "arrow_back", "color", "primary", 3, "buttonClick"], [1, "breadcrumb-current"], [1, "basecrumb"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
3369
3400
  i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
3370
3401
  i0.ɵɵtext(2);
3371
3402
  i0.ɵɵpipe(3, "translate");
3372
3403
  i0.ɵɵelementEnd();
3373
- i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 8, 5, "div", 2);
3404
+ i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 3, 1, "div", 2);
3374
3405
  i0.ɵɵelementEnd();
3375
3406
  } if (rf & 2) {
3376
3407
  i0.ɵɵadvance(2);
3377
3408
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx.caption()));
3378
3409
  i0.ɵɵadvance(2);
3379
3410
  i0.ɵɵconditional(ctx.displayBreadcrumb() ? 4 : -1);
3380
- } }, dependencies: [TranslateModule, RouterModule, i1$9.RouterLink, i1.TranslatePipe], styles: [".title-section[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}h4[_ngcontent-%COMP%]{padding:0}a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:visited{color:inherit}.basecrumb[_ngcontent-%COMP%]{color:#12101499}.crumb-link[_ngcontent-%COMP%]{cursor:pointer}@media(max-width:500px){.title-section[_ngcontent-%COMP%]{padding:16px}}"], changeDetection: 0 }); }
3411
+ } }, dependencies: [TranslateModule, RouterModule, i1$9.RouterLink, ButtonComponent, i1.TranslatePipe], styles: [".title-section[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.breadcrumb-compact[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}h4[_ngcontent-%COMP%]{padding:0}a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:visited{color:inherit}.basecrumb[_ngcontent-%COMP%]{color:#12101499}.crumb-link[_ngcontent-%COMP%]{cursor:pointer}@media(max-width:500px){.title-section[_ngcontent-%COMP%]{padding:16px}}"], changeDetection: 0 }); }
3381
3412
  }
3382
3413
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
3383
3414
  type: Component,
3384
- args: [{ selector: 'cauca-page-title', changeDetection: ChangeDetectionStrategy.OnPush, 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\r\n @for(location of breadcrumbLocation(); track location) {\r\n @if (baseCrumb() && $index === 0) {\r\n <span>/</span>\r\n }\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 @if (baseCrumb() || breadcrumbLocation()?.length) {\r\n <span>/</span>\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"] }]
3385
- }], 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 }] }] }); })();
3386
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 14 }); })();
3415
+ args: [{ selector: 'cauca-page-title', changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, RouterModule, ButtonComponent], 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 @if (displayCompactBreadcrumb()) {\r\n <div class=\"breadcrumb-compact\">\r\n <cauca-button type=\"icon\" icon=\"arrow_back\" (buttonClick)=\"backToLastBreadcrumbLink()\" color=\"primary\" />\r\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\r\n </div>\r\n } @else {\r\n\r\n @if (baseCrumb()) {\r\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\r\n }\r\n\r\n @for(location of breadcrumbLocation(); track location) {\r\n @if (baseCrumb() && $index === 0) {\r\n <span>/</span>\r\n }\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 @if (baseCrumb() || breadcrumbLocation()?.length) {\r\n <span>/</span>\r\n }\r\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\r\n }\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}.breadcrumb-compact{display:flex;align-items:center;gap:4px}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"] }]
3416
+ }], 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 }] }], isMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "isMobile", required: false }] }] }); })();
3417
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 16 }); })();
3387
3418
 
3388
3419
  const _c0$4 = ["*"];
3389
3420
  class ResponsiveTabGroupWrapperComponent {