@abgov/angular-components 4.11.0-dev.7 → 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)
@@ -9485,5 +9588,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9485
9588
  * Generated bundle index. Do not edit.
9486
9589
  */
9487
9590
 
9488
- 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, GoabxMenuAction, GoabxMenuButton, 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 };
9489
9592
  //# sourceMappingURL=abgov-angular-components.mjs.map