@abgov/angular-components 4.11.0-dev.6 → 4.11.0-dev.8

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.
@@ -6790,6 +6790,109 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6790
6790
  type: Output
6791
6791
  }] } });
6792
6792
 
6793
+ class GoabxCheckboxList extends GoabControlValueAccessor {
6794
+ constructor(cdr, renderer) {
6795
+ super(renderer);
6796
+ this.cdr = cdr;
6797
+ this.isReady = false;
6798
+ this.version = "2";
6799
+ this.size = "default";
6800
+ this.onChange = new EventEmitter();
6801
+ }
6802
+ ngOnInit() {
6803
+ setTimeout(() => {
6804
+ this.isReady = true;
6805
+ this.cdr.detectChanges();
6806
+ });
6807
+ }
6808
+ _onChange(e) {
6809
+ const detail = { ...e.detail, event: e };
6810
+ this.onChange.emit(detail);
6811
+ this.markAsTouched();
6812
+ // Update the form control with the selected values
6813
+ const selectedValues = detail.value || [];
6814
+ // clone to ensure a new reference so the underlying web component updates
6815
+ this.value = [...selectedValues];
6816
+ this.fcChange?.([...selectedValues]);
6817
+ }
6818
+ // Simplified writeValue - expects array input directly
6819
+ writeValue(value) {
6820
+ // clone to ensure a new reference and trigger downstream updates
6821
+ this.value = Array.isArray(value) ? [...value] : [];
6822
+ }
6823
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxCheckboxList, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
6824
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: GoabxCheckboxList, isStandalone: true, selector: "goabx-checkbox-list", inputs: { name: "name", maxWidth: "maxWidth", size: "size", value: "value" }, outputs: { onChange: "onChange" }, providers: [
6825
+ {
6826
+ provide: NG_VALUE_ACCESSOR,
6827
+ multi: true,
6828
+ useExisting: forwardRef(() => GoabxCheckboxList),
6829
+ },
6830
+ ], usesInheritance: true, ngImport: i0, template: ` <goa-checkbox-list
6831
+ *ngIf="isReady"
6832
+ [attr.name]="name"
6833
+ [value]="value"
6834
+ [disabled]="disabled"
6835
+ [attr.error]="error"
6836
+ [attr.testid]="testId"
6837
+ [id]="id"
6838
+ [attr.maxwidth]="maxWidth"
6839
+ [attr.version]="version"
6840
+ [attr.size]="size"
6841
+ [attr.mt]="mt"
6842
+ [attr.mb]="mb"
6843
+ [attr.ml]="ml"
6844
+ [attr.mr]="mr"
6845
+ (_change)="_onChange($event)"
6846
+ >
6847
+ <ng-content />
6848
+ </goa-checkbox-list>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
6849
+ }
6850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxCheckboxList, decorators: [{
6851
+ type: Component,
6852
+ args: [{
6853
+ standalone: true,
6854
+ selector: "goabx-checkbox-list",
6855
+ template: ` <goa-checkbox-list
6856
+ *ngIf="isReady"
6857
+ [attr.name]="name"
6858
+ [value]="value"
6859
+ [disabled]="disabled"
6860
+ [attr.error]="error"
6861
+ [attr.testid]="testId"
6862
+ [id]="id"
6863
+ [attr.maxwidth]="maxWidth"
6864
+ [attr.version]="version"
6865
+ [attr.size]="size"
6866
+ [attr.mt]="mt"
6867
+ [attr.mb]="mb"
6868
+ [attr.ml]="ml"
6869
+ [attr.mr]="mr"
6870
+ (_change)="_onChange($event)"
6871
+ >
6872
+ <ng-content />
6873
+ </goa-checkbox-list>`,
6874
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
6875
+ imports: [CommonModule],
6876
+ providers: [
6877
+ {
6878
+ provide: NG_VALUE_ACCESSOR,
6879
+ multi: true,
6880
+ useExisting: forwardRef(() => GoabxCheckboxList),
6881
+ },
6882
+ ],
6883
+ }]
6884
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { name: [{
6885
+ type: Input
6886
+ }], maxWidth: [{
6887
+ type: Input
6888
+ }], size: [{
6889
+ type: Input
6890
+ }], value: [{
6891
+ type: Input
6892
+ }], onChange: [{
6893
+ type: Output
6894
+ }] } });
6895
+
6793
6896
  class GoabxDatePicker extends GoabControlValueAccessor {
6794
6897
  formatValue(val) {
6795
6898
  if (!val)
@@ -8091,6 +8194,115 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8091
8194
  type: Input
8092
8195
  }] } });
8093
8196
 
8197
+ class GoabxMenuAction {
8198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxMenuAction, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8199
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: GoabxMenuAction, isStandalone: true, selector: "goabx-menu-action", inputs: { text: "text", action: "action", icon: "icon", testId: "testId" }, ngImport: i0, template: `
8200
+ <goa-menu-action
8201
+ [attr.text]="text"
8202
+ [attr.action]="action"
8203
+ [attr.icon]="icon"
8204
+ [attr.testid]="testId"
8205
+ >
8206
+ </goa-menu-action>
8207
+ `, isInline: true }); }
8208
+ }
8209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxMenuAction, decorators: [{
8210
+ type: Component,
8211
+ args: [{
8212
+ standalone: true,
8213
+ selector: "goabx-menu-action",
8214
+ template: `
8215
+ <goa-menu-action
8216
+ [attr.text]="text"
8217
+ [attr.action]="action"
8218
+ [attr.icon]="icon"
8219
+ [attr.testid]="testId"
8220
+ >
8221
+ </goa-menu-action>
8222
+ `,
8223
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
8224
+ }]
8225
+ }], propDecorators: { text: [{
8226
+ type: Input,
8227
+ args: [{ required: true }]
8228
+ }], action: [{
8229
+ type: Input,
8230
+ args: [{ required: true }]
8231
+ }], icon: [{
8232
+ type: Input
8233
+ }], testId: [{
8234
+ type: Input
8235
+ }] } });
8236
+
8237
+ class GoabxMenuButton {
8238
+ constructor() {
8239
+ this.onAction = new EventEmitter();
8240
+ }
8241
+ _onAction(e) {
8242
+ const detail = e.detail;
8243
+ this.onAction.emit(detail);
8244
+ }
8245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxMenuButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8246
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: GoabxMenuButton, isStandalone: true, selector: "goabx-menu-button", inputs: { text: "text", type: "type", size: "size", variant: "variant", maxWidth: "maxWidth", leadingIcon: "leadingIcon", ariaLabel: "ariaLabel", testId: "testId" }, outputs: { onAction: "onAction" }, ngImport: i0, template: `
8247
+ <goa-menu-button
8248
+ [attr.text]="text"
8249
+ [attr.type]="type"
8250
+ [attr.size]="size"
8251
+ [attr.variant]="variant"
8252
+ version="2"
8253
+ [attr.max-width]="maxWidth"
8254
+ [attr.leading-icon]="leadingIcon"
8255
+ [attr.aria-label]="ariaLabel"
8256
+ [attr.testid]="testId"
8257
+ (_action)="_onAction($event)"
8258
+ >
8259
+ <ng-content></ng-content>
8260
+ </goa-menu-button>
8261
+ `, isInline: true }); }
8262
+ }
8263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoabxMenuButton, decorators: [{
8264
+ type: Component,
8265
+ args: [{
8266
+ standalone: true,
8267
+ selector: "goabx-menu-button",
8268
+ template: `
8269
+ <goa-menu-button
8270
+ [attr.text]="text"
8271
+ [attr.type]="type"
8272
+ [attr.size]="size"
8273
+ [attr.variant]="variant"
8274
+ version="2"
8275
+ [attr.max-width]="maxWidth"
8276
+ [attr.leading-icon]="leadingIcon"
8277
+ [attr.aria-label]="ariaLabel"
8278
+ [attr.testid]="testId"
8279
+ (_action)="_onAction($event)"
8280
+ >
8281
+ <ng-content></ng-content>
8282
+ </goa-menu-button>
8283
+ `,
8284
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
8285
+ }]
8286
+ }], propDecorators: { text: [{
8287
+ type: Input
8288
+ }], type: [{
8289
+ type: Input
8290
+ }], size: [{
8291
+ type: Input
8292
+ }], variant: [{
8293
+ type: Input
8294
+ }], maxWidth: [{
8295
+ type: Input
8296
+ }], leadingIcon: [{
8297
+ type: Input
8298
+ }], ariaLabel: [{
8299
+ type: Input
8300
+ }], testId: [{
8301
+ type: Input
8302
+ }], onAction: [{
8303
+ type: Output
8304
+ }] } });
8305
+
8094
8306
  class GoabxModal {
8095
8307
  constructor(cdr) {
8096
8308
  this.cdr = cdr;
@@ -9376,5 +9588,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9376
9588
  * Generated bundle index. Do not edit.
9377
9589
  */
9378
9590
 
9379
- 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, GoabxTab, GoabxTable, GoabxTableSortHeader, GoabxTabs, GoabxTextArea, GoabxWorkSideMenu, GoabxWorkSideMenuGroup, GoabxWorkSideMenuItem, ValueDirective, ValueListDirective };
9591
+ 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, GoabxCheckboxList, GoabxDatePicker, GoabxDrawer, GoabxDropdown, GoabxDropdownItem, GoabxFileUploadCard, GoabxFileUploadInput, GoabxFilterChip, GoabxFormItem, GoabxInput, GoabxLink, GoabxMenuAction, GoabxMenuButton, GoabxModal, GoabxNotification, GoabxPagination, GoabxRadioGroup, GoabxRadioItem, GoabxSideMenu, GoabxSideMenuGroup, GoabxSideMenuHeading, GoabxTab, GoabxTable, GoabxTableSortHeader, GoabxTabs, GoabxTextArea, GoabxWorkSideMenu, GoabxWorkSideMenuGroup, GoabxWorkSideMenuItem, ValueDirective, ValueListDirective };
9380
9592
  //# sourceMappingURL=abgov-angular-components.mjs.map