import { OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { HomeGroupSelectionData, QualifyingGroup } from '../../models/home-group-selection.model'; import * as i0 from "@angular/core"; /** * HomeGroupSelectionComponent is a generic, reusable dialog for selecting a * home Working Group to receive reciprocal attendance credit (SP3M-18). * * It is shown when an attendee (or an admin acting on their behalf) qualifies * for reciprocal credit in more than one home Working Group and must choose * which one should receive the credit. The first qualifying group is * pre-selected so Submit is enabled immediately; Submit is disabled only if no * group is selected. * * This component is feature-agnostic — all display text is supplied by the * caller via MAT_DIALOG_DATA (HomeGroupSelectionData). It performs no API calls; * it collects the selection and returns it so the caller can re-submit. * * Footer: * - Submit → closes with { homeGroupId } * - Cancel → closes with null (caller aborts) * * @export * @class HomeGroupSelectionComponent * @implements {OnInit} */ export declare class HomeGroupSelectionComponent implements OnInit { data: HomeGroupSelectionData; private dialogRef; /** Qualifying home groups the user must choose between. */ qualifyingGroups: QualifyingGroup[]; /** The currently selected home group id. */ selectedGroupId: string; constructor(data: HomeGroupSelectionData, dialogRef: MatDialogRef); ngOnInit(): void; /** * trackBy for the qualifying groups list. * @param {number} _index * @param {QualifyingGroup} group * @return {string} * @memberof HomeGroupSelectionComponent */ trackByGroupId(_index: number, group: QualifyingGroup): string; /** * Whether Submit should be enabled — true once a group is selected. * @return {boolean} * @memberof HomeGroupSelectionComponent */ get canSubmit(): boolean; /** * Cancel handler — closes with null so the caller aborts. * @memberof HomeGroupSelectionComponent */ onCancel(): void; /** * Submit handler — closes with the selected home group id. * No-ops if no group is selected. * @memberof HomeGroupSelectionComponent */ onSubmit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }