@abgov/angular-components 4.11.0-dev.1 → 4.11.0-dev.3

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.
@@ -1537,7 +1537,7 @@ class GoabContainer extends GoabBaseComponent$1 {
1537
1537
  }, 0);
1538
1538
  }
1539
1539
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabContainer, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
1540
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: GoabContainer, isStandalone: true, selector: "goab-container", inputs: { type: "type", accent: "accent", padding: "padding", width: "width", maxWidth: "maxWidth", minHeight: "minHeight", maxHeight: "maxHeight", title: "title", actions: "actions" }, usesInheritance: true, ngImport: i0, template: `<goa-container
1540
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: GoabContainer, isStandalone: true, selector: "goab-container", inputs: { type: "type", accent: "accent", padding: "padding", width: "width", maxWidth: "maxWidth", minHeight: "minHeight", maxHeight: "maxHeight", title: "title", actions: "actions" }, usesInheritance: true, ngImport: i0, template: `<goa-container
1541
1541
  *ngIf="isReady"
1542
1542
  [attr.type]="type"
1543
1543
  [attr.accent]="accent"
@@ -1552,13 +1552,17 @@ class GoabContainer extends GoabBaseComponent$1 {
1552
1552
  [attr.ml]="ml"
1553
1553
  [attr.mr]="mr"
1554
1554
  >
1555
- <div slot="title">
1556
- <ng-container [ngTemplateOutlet]="title"></ng-container>
1557
- </div>
1555
+ @if (title) {
1556
+ <div slot="title">
1557
+ <ng-container [ngTemplateOutlet]="title"></ng-container>
1558
+ </div>
1559
+ }
1558
1560
  <ng-content />
1559
- <div slot="actions">
1560
- <ng-container [ngTemplateOutlet]="actions"></ng-container>
1561
- </div>
1561
+ @if (actions) {
1562
+ <div slot="actions">
1563
+ <ng-container [ngTemplateOutlet]="actions"></ng-container>
1564
+ </div>
1565
+ }
1562
1566
  </goa-container>`, 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"] }] }); }
1563
1567
  }
1564
1568
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabContainer, decorators: [{
@@ -1582,13 +1586,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1582
1586
  [attr.ml]="ml"
1583
1587
  [attr.mr]="mr"
1584
1588
  >
1585
- <div slot="title">
1586
- <ng-container [ngTemplateOutlet]="title"></ng-container>
1587
- </div>
1589
+ @if (title) {
1590
+ <div slot="title">
1591
+ <ng-container [ngTemplateOutlet]="title"></ng-container>
1592
+ </div>
1593
+ }
1588
1594
  <ng-content />
1589
- <div slot="actions">
1590
- <ng-container [ngTemplateOutlet]="actions"></ng-container>
1591
- </div>
1595
+ @if (actions) {
1596
+ <div slot="actions">
1597
+ <ng-container [ngTemplateOutlet]="actions"></ng-container>
1598
+ </div>
1599
+ }
1592
1600
  </goa-container>`,
1593
1601
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
1594
1602
  }]
@@ -4964,6 +4972,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4964
4972
  args: [{ required: true }]
4965
4973
  }] } });
4966
4974
 
4975
+ class GoabPushDrawer {
4976
+ constructor(cdr) {
4977
+ this.cdr = cdr;
4978
+ this.onClose = new EventEmitter();
4979
+ this.isReady = false;
4980
+ }
4981
+ ngOnInit() {
4982
+ // For Angular 20, we need to delay rendering the web component
4983
+ // to ensure all attributes are properly bound before the component initializes
4984
+ setTimeout(() => {
4985
+ this.isReady = true;
4986
+ this.cdr.detectChanges();
4987
+ }, 0);
4988
+ }
4989
+ _onClose() {
4990
+ this.onClose.emit();
4991
+ }
4992
+ getHeadingAsString() {
4993
+ return this.heading instanceof TemplateRef ? "" : this.heading || "";
4994
+ }
4995
+ getHeadingAsTemplate() {
4996
+ if (!this.heading)
4997
+ return null;
4998
+ return this.heading instanceof TemplateRef ? this.heading : null;
4999
+ }
5000
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabPushDrawer, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
5001
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: GoabPushDrawer, isStandalone: true, selector: "goab-push-drawer", inputs: { open: ["open", "open", booleanAttribute], heading: "heading", testId: "testId", width: "width", actions: "actions" }, outputs: { onClose: "onClose" }, ngImport: i0, template: `
5002
+ <goa-push-drawer
5003
+ *ngIf="isReady"
5004
+ [open]="open"
5005
+ [attr.heading]="getHeadingAsString()"
5006
+ [attr.test-id]="testId"
5007
+ [attr.width]="width"
5008
+ (_close)="_onClose()"
5009
+ >
5010
+ <ng-content></ng-content>
5011
+ @if (getHeadingAsTemplate()) {
5012
+ <div slot="heading">
5013
+ <ng-container [ngTemplateOutlet]="getHeadingAsTemplate()"></ng-container>
5014
+ </div>
5015
+ }
5016
+ @if (actions) {
5017
+ <div slot="actions">
5018
+ <ng-container [ngTemplateOutlet]="actions"></ng-container>
5019
+ </div>
5020
+ }
5021
+ </goa-push-drawer>
5022
+ `, 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"] }] }); }
5023
+ }
5024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabPushDrawer, decorators: [{
5025
+ type: Component,
5026
+ args: [{
5027
+ standalone: true,
5028
+ selector: "goab-push-drawer",
5029
+ imports: [NgTemplateOutlet, CommonModule],
5030
+ template: `
5031
+ <goa-push-drawer
5032
+ *ngIf="isReady"
5033
+ [open]="open"
5034
+ [attr.heading]="getHeadingAsString()"
5035
+ [attr.test-id]="testId"
5036
+ [attr.width]="width"
5037
+ (_close)="_onClose()"
5038
+ >
5039
+ <ng-content></ng-content>
5040
+ @if (getHeadingAsTemplate()) {
5041
+ <div slot="heading">
5042
+ <ng-container [ngTemplateOutlet]="getHeadingAsTemplate()"></ng-container>
5043
+ </div>
5044
+ }
5045
+ @if (actions) {
5046
+ <div slot="actions">
5047
+ <ng-container [ngTemplateOutlet]="actions"></ng-container>
5048
+ </div>
5049
+ }
5050
+ </goa-push-drawer>
5051
+ `,
5052
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
5053
+ }]
5054
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { open: [{
5055
+ type: Input,
5056
+ args: [{ transform: booleanAttribute }]
5057
+ }], heading: [{
5058
+ type: Input
5059
+ }], testId: [{
5060
+ type: Input
5061
+ }], width: [{
5062
+ type: Input
5063
+ }], actions: [{
5064
+ type: Input
5065
+ }], onClose: [{
5066
+ type: Output
5067
+ }] } });
5068
+
4967
5069
  class GoabRadioGroup extends GoabControlValueAccessor$1 {
4968
5070
  constructor(cdr, renderer) {
4969
5071
  super(renderer);
@@ -8714,6 +8816,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8714
8816
  type: Output
8715
8817
  }] } });
8716
8818
 
8819
+ class GoabxTableSortHeader {
8820
+ constructor(cdr) {
8821
+ this.cdr = cdr;
8822
+ this.isReady = false;
8823
+ this.direction = "none";
8824
+ }
8825
+ ngOnInit() {
8826
+ setTimeout(() => {
8827
+ this.isReady = true;
8828
+ this.cdr.detectChanges();
8829
+ });
8830
+ }
8831
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxTableSortHeader, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
8832
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: GoabxTableSortHeader, isStandalone: true, selector: "goabx-table-sort-header", inputs: { name: "name", direction: "direction" }, ngImport: i0, template: `
8833
+ <goa-table-sort-header
8834
+ *ngIf="isReady"
8835
+ [attr.name]="name"
8836
+ [attr.direction]="direction"
8837
+ >
8838
+ <ng-content />
8839
+ </goa-table-sort-header>
8840
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
8841
+ }
8842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxTableSortHeader, decorators: [{
8843
+ type: Component,
8844
+ args: [{
8845
+ standalone: true,
8846
+ selector: "goabx-table-sort-header",
8847
+ template: `
8848
+ <goa-table-sort-header
8849
+ *ngIf="isReady"
8850
+ [attr.name]="name"
8851
+ [attr.direction]="direction"
8852
+ >
8853
+ <ng-content />
8854
+ </goa-table-sort-header>
8855
+ `,
8856
+ imports: [CommonModule],
8857
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
8858
+ }]
8859
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { name: [{
8860
+ type: Input
8861
+ }], direction: [{
8862
+ type: Input
8863
+ }] } });
8864
+
8717
8865
  class GoabxTextArea extends GoabControlValueAccessor {
8718
8866
  constructor(cdr, renderer) {
8719
8867
  super(renderer);
@@ -9156,5 +9304,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9156
9304
  * Generated bundle index. Do not edit.
9157
9305
  */
9158
9306
 
9159
- export { AngularComponentsModule, CheckedDirective, GoabAccordion, GoabAppFooter, GoabAppFooterMetaSection, GoabAppFooterNavSection, GoabAppHeader, GoabAppHeaderMenu, GoabBadge, GoabBlock, GoabButton, GoabButtonGroup, GoabCalendar, GoabCallout, GoabCard, GoabCardActions, GoabCardContent, GoabCardImage, GoabCheckbox, GoabCheckboxList, GoabChip, GoabCircularProgress, GoabColumnLayout, GoabContainer, GoabDataGrid, GoabDatePicker, GoabDetails, GoabDivider, GoabDrawer, GoabDropdown, GoabDropdownItem, GoabFieldset, GoabFileUploadCard, GoabFileUploadInput, GoabFilterChip, GoabFormItem, GoabFormItemSlot, GoabFormStep, GoabFormStepper, GoabGrid, GoabHeroBanner, GoabIcon, GoabIconButton, GoabInput, GoabInputNumber, GoabLinearProgress, GoabLink, GoabMenuAction, GoabMenuButton, GoabMicrositeHeader, GoabModal, GoabNotification, GoabPageBlock, GoabPages, GoabPagination, GoabPopover, GoabPublicForm, GoabPublicFormPage, GoabPublicFormSummary, GoabPublicFormTask, GoabPublicFormTaskList, GoabPublicSubform, GoabPublicSubformIndex, GoabRadioGroup, GoabRadioItem, GoabSideMenu, GoabSideMenuGroup, GoabSideMenuHeading, GoabSkeleton, GoabSpacer, GoabTab, GoabTable, GoabTableSortHeader, GoabTabs, GoabTemporaryNotificationCtrl, GoabText, GoabTextArea, GoabTooltip, GoabxAppFooter, GoabxAppFooterMetaSection, GoabxAppFooterNavSection, GoabxBadge, GoabxButton, GoabxCalendar, GoabxCallout, GoabxCheckbox, GoabxDatePicker, GoabxDrawer, GoabxDropdown, GoabxDropdownItem, GoabxFileUploadCard, GoabxFileUploadInput, GoabxFilterChip, GoabxFormItem, GoabxInput, GoabxLink, GoabxModal, GoabxNotification, GoabxPagination, GoabxRadioGroup, GoabxRadioItem, GoabxSideMenu, GoabxSideMenuGroup, GoabxSideMenuHeading, GoabxTable, GoabxTabs, GoabxTextArea, GoabxWorkSideMenu, GoabxWorkSideMenuGroup, GoabxWorkSideMenuItem, ValueDirective, ValueListDirective };
9307
+ export { AngularComponentsModule, CheckedDirective, GoabAccordion, GoabAppFooter, GoabAppFooterMetaSection, GoabAppFooterNavSection, GoabAppHeader, GoabAppHeaderMenu, GoabBadge, GoabBlock, GoabButton, GoabButtonGroup, GoabCalendar, GoabCallout, GoabCard, GoabCardActions, GoabCardContent, GoabCardImage, GoabCheckbox, GoabCheckboxList, GoabChip, GoabCircularProgress, GoabColumnLayout, GoabContainer, GoabDataGrid, GoabDatePicker, GoabDetails, GoabDivider, GoabDrawer, GoabDropdown, GoabDropdownItem, GoabFieldset, GoabFileUploadCard, GoabFileUploadInput, GoabFilterChip, GoabFormItem, GoabFormItemSlot, GoabFormStep, GoabFormStepper, GoabGrid, GoabHeroBanner, GoabIcon, GoabIconButton, GoabInput, GoabInputNumber, GoabLinearProgress, GoabLink, GoabMenuAction, GoabMenuButton, GoabMicrositeHeader, GoabModal, GoabNotification, GoabPageBlock, GoabPages, GoabPagination, GoabPopover, GoabPublicForm, GoabPublicFormPage, GoabPublicFormSummary, GoabPublicFormTask, GoabPublicFormTaskList, GoabPublicSubform, GoabPublicSubformIndex, GoabPushDrawer, GoabRadioGroup, GoabRadioItem, GoabSideMenu, GoabSideMenuGroup, GoabSideMenuHeading, GoabSkeleton, GoabSpacer, GoabTab, GoabTable, GoabTableSortHeader, GoabTabs, GoabTemporaryNotificationCtrl, GoabText, GoabTextArea, GoabTooltip, GoabxAppFooter, GoabxAppFooterMetaSection, GoabxAppFooterNavSection, GoabxBadge, GoabxButton, GoabxCalendar, GoabxCallout, GoabxCheckbox, GoabxDatePicker, GoabxDrawer, GoabxDropdown, GoabxDropdownItem, GoabxFileUploadCard, GoabxFileUploadInput, GoabxFilterChip, GoabxFormItem, GoabxInput, GoabxLink, GoabxModal, GoabxNotification, GoabxPagination, GoabxRadioGroup, GoabxRadioItem, GoabxSideMenu, GoabxSideMenuGroup, GoabxSideMenuHeading, GoabxTable, GoabxTableSortHeader, GoabxTabs, GoabxTextArea, GoabxWorkSideMenu, GoabxWorkSideMenuGroup, GoabxWorkSideMenuItem, ValueDirective, ValueListDirective };
9160
9308
  //# sourceMappingURL=abgov-angular-components.mjs.map