@abgov/angular-components 4.11.0-dev.2 → 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.
@@ -4972,6 +4972,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4972
4972
  args: [{ required: true }]
4973
4973
  }] } });
4974
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
+
4975
5069
  class GoabRadioGroup extends GoabControlValueAccessor$1 {
4976
5070
  constructor(cdr, renderer) {
4977
5071
  super(renderer);
@@ -9210,5 +9304,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9210
9304
  * Generated bundle index. Do not edit.
9211
9305
  */
9212
9306
 
9213
- 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, GoabxTableSortHeader, 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 };
9214
9308
  //# sourceMappingURL=abgov-angular-components.mjs.map