@controladad/ng-base
Version:
Everything you need for Angular
27 lines (26 loc) • 1.52 kB
TypeScript
import { EventEmitter, InjectionToken, OnChanges, SimpleChanges } from '@angular/core';
import * as i0 from "@angular/core";
export type ChipsComponentType = InstanceType<typeof CacChipsComponent>;
export declare const CHIP_COMPONENT_CONFIG: InjectionToken<Partial<CacChipsComponent<unknown>>>;
export declare class CacChipsComponent<T> implements OnChanges {
closable: boolean;
active: boolean;
value?: T;
appearance: 'filled' | 'outlined';
icon?: string;
activeClass?: string;
onClose: EventEmitter<MouseEvent>;
onClick: EventEmitter<MouseEvent>;
baseClassBinding: boolean;
activeClassBinding: boolean;
appearanceFilledClassBinding: boolean;
appearanceOutlinedClassBinding: boolean;
private _active;
constructor();
ngOnChanges(changes: SimpleChanges): void;
onChipsClick(e: MouseEvent): void;
onCloseClick(e: MouseEvent): void;
toggleActive(state?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CacChipsComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CacChipsComponent<any>, "cac-chips", never, { "closable": { "alias": "closable"; "required": false; }; "active": { "alias": "active"; "required": false; }; "value": { "alias": "value"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "activeClass": { "alias": "activeClass"; "required": false; }; }, { "onClose": "onClose"; "onClick": "onClick"; }, never, ["*"], true, never>;
}