@cauca-911/material 21.0.5 → 21.1.1

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.
@@ -3257,19 +3257,16 @@ class SectionFieldComponent {
3257
3257
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/components/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
3258
3258
 
3259
3259
  function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3260
- i0.ɵɵelementStart(0, "div", 4);
3260
+ i0.ɵɵelementStart(0, "div", 3);
3261
3261
  i0.ɵɵtext(1);
3262
3262
  i0.ɵɵpipe(2, "translate");
3263
3263
  i0.ɵɵelementEnd();
3264
- i0.ɵɵelementStart(3, "span");
3265
- i0.ɵɵtext(4, "/");
3266
- i0.ɵɵelementEnd();
3267
3264
  } if (rf & 2) {
3268
3265
  const ctx_r0 = i0.ɵɵnextContext(2);
3269
3266
  i0.ɵɵadvance();
3270
3267
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.baseCrumb()));
3271
3268
  } }
3272
- function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3269
+ function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3273
3270
  i0.ɵɵelementStart(0, "a", 5);
3274
3271
  i0.ɵɵtext(1);
3275
3272
  i0.ɵɵpipe(2, "translate");
@@ -3280,10 +3277,10 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx)
3280
3277
  i0.ɵɵadvance();
3281
3278
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r2.title));
3282
3279
  } }
3283
- function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3280
+ function PageTitleComponent_Conditional_4_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3284
3281
  const _r3 = i0.ɵɵgetCurrentView();
3285
3282
  i0.ɵɵelementStart(0, "span", 7);
3286
- i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
3283
+ i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_3_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
3287
3284
  i0.ɵɵtext(1);
3288
3285
  i0.ɵɵpipe(2, "translate");
3289
3286
  i0.ɵɵelementEnd();
@@ -3292,8 +3289,8 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx)
3292
3289
  i0.ɵɵadvance();
3293
3290
  i0.ɵɵtextInterpolate(location_r2.translate ? i0.ɵɵpipeBind1(2, 1, location_r2.title) : location_r2.title);
3294
3291
  } }
3295
- function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3296
- i0.ɵɵelementStart(0, "span", 4);
3292
+ function PageTitleComponent_Conditional_4_For_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3293
+ i0.ɵɵelementStart(0, "span", 3);
3297
3294
  i0.ɵɵtext(1);
3298
3295
  i0.ɵɵelementEnd();
3299
3296
  } if (rf & 2) {
@@ -3302,30 +3299,40 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx)
3302
3299
  i0.ɵɵtextInterpolate(location_r2.title);
3303
3300
  } }
3304
3301
  function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
3305
- i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_For_3_Conditional_0_Template, 3, 5, "a", 5)(1, PageTitleComponent_Conditional_4_For_3_Conditional_1_Template, 3, 3, "span", 6)(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 2, 1, "span", 4);
3306
- i0.ɵɵelementStart(3, "span");
3307
- i0.ɵɵtext(4, "/");
3302
+ i0.ɵɵelementStart(0, "span");
3303
+ i0.ɵɵtext(1, "/");
3308
3304
  i0.ɵɵelementEnd();
3305
+ i0.ɵɵconditionalCreate(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 3, 5, "a", 5)(3, PageTitleComponent_Conditional_4_For_3_Conditional_3_Template, 3, 3, "span", 6)(4, PageTitleComponent_Conditional_4_For_3_Conditional_4_Template, 2, 1, "span", 3);
3309
3306
  } if (rf & 2) {
3310
3307
  const location_r2 = ctx.$implicit;
3311
- i0.ɵɵconditional(location_r2.link ? 0 : location_r2.action ? 1 : 2);
3308
+ i0.ɵɵadvance(2);
3309
+ i0.ɵɵconditional(location_r2.link ? 2 : location_r2.action ? 3 : 4);
3310
+ } }
3311
+ function PageTitleComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3312
+ i0.ɵɵelementStart(0, "span");
3313
+ i0.ɵɵtext(1, "/");
3314
+ i0.ɵɵelementEnd();
3312
3315
  } }
3313
3316
  function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3314
3317
  i0.ɵɵelementStart(0, "div", 2);
3315
- i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 5, 3);
3318
+ i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 3, 3, "div", 3);
3316
3319
  i0.ɵɵrepeaterCreate(2, PageTitleComponent_Conditional_4_For_3_Template, 5, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
3317
- i0.ɵɵelementStart(4, "span", 3);
3318
- i0.ɵɵtext(5);
3319
- i0.ɵɵpipe(6, "translate");
3320
+ i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Conditional_4_Template, 2, 0, "span");
3321
+ i0.ɵɵelementStart(5, "span", 4);
3322
+ i0.ɵɵtext(6);
3323
+ i0.ɵɵpipe(7, "translate");
3320
3324
  i0.ɵɵelementEnd()();
3321
3325
  } if (rf & 2) {
3326
+ let tmp_3_0;
3322
3327
  const ctx_r0 = i0.ɵɵnextContext();
3323
3328
  i0.ɵɵadvance();
3324
3329
  i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
3325
3330
  i0.ɵɵadvance();
3326
3331
  i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
3327
- i0.ɵɵadvance(3);
3328
- i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
3332
+ i0.ɵɵadvance(2);
3333
+ i0.ɵɵconditional(ctx_r0.baseCrumb() || ((tmp_3_0 = ctx_r0.breadcrumbLocation()) == null ? null : tmp_3_0.length) ? 4 : -1);
3334
+ i0.ɵɵadvance(2);
3335
+ i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(7, 3, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
3329
3336
  } }
3330
3337
  class PageTitleComponent {
3331
3338
  constructor() {
@@ -3339,15 +3346,16 @@ class PageTitleComponent {
3339
3346
  this.breadcrumbLocation = computed(() => this.breadcrumbService?.location() || this.location() || [], ...(ngDevMode ? [{ debugName: "breadcrumbLocation" }] : []));
3340
3347
  this.currentBreadcrumb = computed(() => this.breadcrumbService?.breadcrumb() || this.breadcrumb() || '', ...(ngDevMode ? [{ debugName: "currentBreadcrumb" }] : []));
3341
3348
  this.mustTranslateBreadcrumb = computed(() => this.breadcrumbService?.translateBreadcrumb() || this.translateBreadcrumb(), ...(ngDevMode ? [{ debugName: "mustTranslateBreadcrumb" }] : []));
3349
+ this.hasBreadcrumb = computed(() => this.currentBreadcrumb() !== '', ...(ngDevMode ? [{ debugName: "hasBreadcrumb" }] : []));
3342
3350
  this.breadcrumbService = inject(BreadcrumbService, { optional: true });
3343
3351
  }
3344
3352
  static { this.ɵfac = function PageTitleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageTitleComponent)(); }; }
3345
- 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, "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) {
3353
+ 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) {
3346
3354
  i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
3347
3355
  i0.ɵɵtext(2);
3348
3356
  i0.ɵɵpipe(3, "translate");
3349
3357
  i0.ɵɵelementEnd();
3350
- i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 7, 4, "div", 2);
3358
+ i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 8, 5, "div", 2);
3351
3359
  i0.ɵɵelementEnd();
3352
3360
  } if (rf & 2) {
3353
3361
  i0.ɵɵadvance(2);
@@ -3358,7 +3366,7 @@ class PageTitleComponent {
3358
3366
  }
3359
3367
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
3360
3368
  type: Component,
3361
- args: [{ selector: 'cauca-page-title', changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\n\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\n\n @if (displayBreadcrumb()) {\n <div class=\"breadcrumb\">\n\n @if (baseCrumb()) {\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\n <span>/</span>\n }\n\n @for(location of breadcrumbLocation(); track location) {\n @if (location.link) {\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\n } @else if (location.action) {\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\n } @else {\n <span class=\"basecrumb\">{{location.title}}</span>\n }\n <span>/</span>\n }\n\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\n\n </div>\n }\n\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"] }]
3369
+ args: [{ selector: 'cauca-page-title', changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\n\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\n\n @if (displayBreadcrumb()) {\n <div class=\"breadcrumb\">\n\n @if (baseCrumb()) {\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\n }\n\n @for(location of breadcrumbLocation(); track location) {\n <span>/</span>\n @if (location.link) {\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\n } @else if (location.action) {\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\n } @else {\n <span class=\"basecrumb\">{{location.title}}</span>\n }\n }\n @if (baseCrumb() || breadcrumbLocation()?.length) {\n <span>/</span>\n }\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\n\n </div>\n }\n\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"] }]
3362
3370
  }], 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 }] }] }); })();
3363
3371
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 14 }); })();
3364
3372