@abgov/angular-components 4.10.0-dev.12 → 4.10.0-dev.13

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.
@@ -5448,13 +5448,19 @@ class GoabTab {
5448
5448
  return this.heading instanceof TemplateRef ? this.heading : null;
5449
5449
  }
5450
5450
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabTab, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
5451
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.16", type: GoabTab, isStandalone: true, selector: "goab-tab", inputs: { heading: "heading", disabled: ["disabled", "disabled", booleanAttribute] }, ngImport: i0, template: `
5452
- <goa-tab *ngIf="isReady" [attr.disabled]="disabled || null">
5451
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: GoabTab, isStandalone: true, selector: "goab-tab", inputs: { heading: "heading", disabled: ["disabled", "disabled", booleanAttribute], slug: "slug" }, ngImport: i0, template: `
5452
+ <goa-tab
5453
+ *ngIf="isReady"
5454
+ [attr.slug]="slug"
5455
+ [attr.disabled]="disabled || null"
5456
+ [attr.heading]="getHeadingAsString()"
5457
+ >
5453
5458
  <ng-content />
5454
- <div slot="heading">
5455
- <ng-container [ngTemplateOutlet]="getHeadingAsTemplate()"></ng-container>
5456
- {{getHeadingAsString()}}
5457
- </div>
5459
+ @if (typeof heading !== "string") {
5460
+ <div slot="heading">
5461
+ <ng-container [ngTemplateOutlet]="getHeadingAsTemplate()"></ng-container>
5462
+ </div>
5463
+ }
5458
5464
  </goa-tab>
5459
5465
  `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
5460
5466
  }
@@ -5464,22 +5470,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5464
5470
  standalone: true,
5465
5471
  selector: "goab-tab",
5466
5472
  template: `
5467
- <goa-tab *ngIf="isReady" [attr.disabled]="disabled || null">
5473
+ <goa-tab
5474
+ *ngIf="isReady"
5475
+ [attr.slug]="slug"
5476
+ [attr.disabled]="disabled || null"
5477
+ [attr.heading]="getHeadingAsString()"
5478
+ >
5468
5479
  <ng-content />
5469
- <div slot="heading">
5470
- <ng-container [ngTemplateOutlet]="getHeadingAsTemplate()"></ng-container>
5471
- {{getHeadingAsString()}}
5472
- </div>
5480
+ @if (typeof heading !== "string") {
5481
+ <div slot="heading">
5482
+ <ng-container [ngTemplateOutlet]="getHeadingAsTemplate()"></ng-container>
5483
+ </div>
5484
+ }
5473
5485
  </goa-tab>
5474
5486
  `,
5475
5487
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
5476
- imports: [NgTemplateOutlet, CommonModule]
5488
+ imports: [NgTemplateOutlet, CommonModule],
5477
5489
  }]
5478
5490
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { heading: [{
5479
5491
  type: Input
5480
5492
  }], disabled: [{
5481
5493
  type: Input,
5482
5494
  args: [{ transform: booleanAttribute }]
5495
+ }], slug: [{
5496
+ type: Input
5483
5497
  }] } });
5484
5498
 
5485
5499
  class GoabTable extends GoabBaseComponent {