@abgov/angular-components 4.9.1-dev.4 → 4.10.0-dev.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { forwardRef, HostListener, Directive, CUSTOM_ELEMENTS_SCHEMA, NgModule, Input, Component, ElementRef, booleanAttribute, ViewChild, EventEmitter, Output, numberAttribute, TemplateRef } from '@angular/core';
2
+ import { forwardRef, HostListener, Directive, CUSTOM_ELEMENTS_SCHEMA, NgModule, Input, Component, ElementRef, booleanAttribute, ViewChild, EventEmitter, Output, numberAttribute, TemplateRef, HostBinding } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, NgTemplateOutlet, NgIf } from '@angular/common';
5
5
  import { NG_VALUE_ACCESSOR, CheckboxControlValueAccessor } from '@angular/forms';
@@ -5560,6 +5560,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
5560
5560
  }] } });
5561
5561
 
5562
5562
  class GoabText {
5563
+ /*
5564
+ This is necessary because angular outputs two elements, <goab-text> and <goa-text>
5565
+ This removes the id from <goa-text> and only outputs it to <goab-text>
5566
+ */
5567
+ get hostId() {
5568
+ return this.id;
5569
+ }
5563
5570
  constructor(cdr) {
5564
5571
  this.cdr = cdr;
5565
5572
  this.isReady = false;
@@ -5573,7 +5580,7 @@ class GoabText {
5573
5580
  }, 0);
5574
5581
  }
5575
5582
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: GoabText, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
5576
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: GoabText, isStandalone: true, selector: "goab-text", inputs: { tag: "tag", size: "size", maxWidth: "maxWidth", color: "color", mt: "mt", mb: "mb", ml: "ml", mr: "mr" }, ngImport: i0, template: `
5583
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: GoabText, isStandalone: true, selector: "goab-text", inputs: { tag: "tag", size: "size", maxWidth: "maxWidth", color: "color", id: "id", mt: "mt", mb: "mb", ml: "ml", mr: "mr" }, host: { properties: { "attr.id": "this.hostId" } }, ngImport: i0, template: `
5577
5584
  <goa-text
5578
5585
  *ngIf="isReady"
5579
5586
  [attr.as]="tag"
@@ -5583,7 +5590,8 @@ class GoabText {
5583
5590
  [attr.mt]="mt"
5584
5591
  [attr.mb]="mb"
5585
5592
  [attr.ml]="ml"
5586
- [attr.mr]="mr">
5593
+ [attr.mr]="mr"
5594
+ >
5587
5595
  <ng-content />
5588
5596
  </goa-text>
5589
5597
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
@@ -5592,7 +5600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
5592
5600
  type: Component,
5593
5601
  args: [{
5594
5602
  standalone: true,
5595
- selector: 'goab-text',
5603
+ selector: "goab-text",
5596
5604
  imports: [CommonModule],
5597
5605
  template: `
5598
5606
  <goa-text
@@ -5604,11 +5612,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
5604
5612
  [attr.mt]="mt"
5605
5613
  [attr.mb]="mb"
5606
5614
  [attr.ml]="ml"
5607
- [attr.mr]="mr">
5615
+ [attr.mr]="mr"
5616
+ >
5608
5617
  <ng-content />
5609
5618
  </goa-text>
5610
5619
  `,
5611
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
5620
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
5612
5621
  }]
5613
5622
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { tag: [{
5614
5623
  type: Input
@@ -5618,6 +5627,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
5618
5627
  type: Input
5619
5628
  }], color: [{
5620
5629
  type: Input
5630
+ }], id: [{
5631
+ type: Input
5632
+ }], hostId: [{
5633
+ type: HostBinding,
5634
+ args: ["attr.id"]
5621
5635
  }], mt: [{
5622
5636
  type: Input
5623
5637
  }], mb: [{