import { FocusMonitor } from '@angular/cdk/a11y'; import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core'; import { ControlValueAccessor, NgControl } from '@angular/forms'; import { MatCheckboxChange } from '@angular/material/checkbox'; import { ThemePalette } from '@angular/material/core'; import { TabulationTotalsOptions } from '../tabulation-table/models'; import * as i0 from "@angular/core"; /** * Controls for tabulation options to show or hide total rows/columns. * * @author Will Davis */ export declare class RdsTabulationTotalsOptionsComponent implements ControlValueAccessor { ngControl: NgControl; private _changeDetectorRef; private _focusMonitor; /** Value for this form control */ get value(): TabulationTotalsOptions; set value(value: TabulationTotalsOptions); private _value; /** Theme color, defaults to primary */ color: ThemePalette; /** Whether the control is disabled */ get disabled(): boolean | string; set disabled(value: boolean | string); private _disabled; /** Changed value of the form control */ readonly valueChange: EventEmitter; /** `View -> model callback called when value changes` */ _onChange: (value: unknown) => void; /** `View -> model callback called when select has been touched` */ _onTouched: () => void; constructor(elementRef: ElementRef, ngControl: NgControl, _changeDetectorRef: ChangeDetectorRef, _focusMonitor: FocusMonitor); handleRowSubtotalsChange(event: MatCheckboxChange): void; handleRowTotalsChange(event: MatCheckboxChange): void; handleColumnSubtotalsChange(event: MatCheckboxChange): void; handleColumnTotalsChange(event: MatCheckboxChange): void; /** * Saves a callback function to be invoked when the select's value * changes from user input. Part of the ControlValueAccessor interface * required to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the value changes. */ registerOnChange(fn: (value: unknown) => void): void; /** * Saves a callback function to be invoked when the select is blurred * by the user. Part of the ControlValueAccessor interface required * to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the component has been touched. */ registerOnTouched(fn: () => void): void; setDisabledState?(isDisabled: boolean): void; writeValue(obj: TabulationTotalsOptions): void; _emitChangeEvent(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }