@controladad/ng-base
Version:
Everything you need for Angular
25 lines (24 loc) • 1.51 kB
TypeScript
import { DestroyRef, AfterContentInit, QueryList, OnInit, InjectionToken } from '@angular/core';
import { EventEmitter } from '@angular/core';
import { CacChipsComponent } from '../chips';
import { FormControlExtended } from '@al00x/forms';
import * as i0 from "@angular/core";
export type ChipsGroupComponentOptions = InstanceType<typeof CacChipsGroupComponent>;
export declare const CHIPS_GROUP_COMPONENT_CONFIG: InjectionToken<Partial<CacChipsGroupComponent<unknown>>>;
export declare class CacChipsGroupComponent<T> implements OnInit, AfterContentInit {
readonly destroyRef: DestroyRef;
contentChildrenChips: QueryList<CacChipsComponent<T>>;
toggleable: boolean;
multiple: boolean;
control: import("@angular/core").InputSignal<FormControlExtended<T | T[] | undefined, any>>;
onToggle: EventEmitter<T[]>;
onRadioToggle: EventEmitter<T>;
private childrenSub;
private selectionModel;
constructor();
ngOnInit(): void;
ngAfterContentInit(): void;
private updateChipsState;
static ɵfac: i0.ɵɵFactoryDeclaration<CacChipsGroupComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CacChipsGroupComponent<any>, "cac-chips-group", never, { "toggleable": { "alias": "toggleable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "control": { "alias": "control"; "required": false; "isSignal": true; }; }, { "onToggle": "onToggle"; "onRadioToggle": "onRadioToggle"; }, ["contentChildrenChips"], ["*"], true, never>;
}