@controladad/ng-base
Version:
Everything you need for Angular
24 lines (23 loc) • 1.26 kB
TypeScript
import { OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
import { ItemRecord, ItemRecords$ } from '../../../../core';
import { FormControlExtended } from '@al00x/forms';
import * as i0 from "@angular/core";
export declare class CacCheckboxGroupComponent<T extends string | number> implements OnChanges, OnDestroy {
readonly ERROR_TEXT = "Select at least one item";
rawItems?: ItemRecords$<T>;
control: FormControlExtended;
label?: string;
checkedItems: {
[p: string | number]: boolean;
};
isRequired: import("@angular/core").WritableSignal<boolean>;
items: import("@angular/core").WritableSignal<ItemRecord<T, unknown>[] | undefined>;
private controlSubs;
private itemsSubs;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
onChangeItem(): void;
private checkedDefaultClicked;
static ɵfac: i0.ɵɵFactoryDeclaration<CacCheckboxGroupComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CacCheckboxGroupComponent<any>, "cac-checkbox-group", never, { "rawItems": { "alias": "items"; "required": false; }; "control": { "alias": "control"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, true, never>;
}