import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core'; import { OverrideStyleConfig } from '@pv-frontend/pv-shared-components/common/types'; import { ValueOf } from '@pv-frontend/pv-shared-services/common'; import * as i0 from "@angular/core"; export type ChipVariant = 'outlined' | 'filled'; export type ChipSize = 'small' | 'normal' | 'large'; export interface ChipStyleOverride { container?: OverrideStyleConfig; label?: OverrideStyleConfig; categoryIcon?: OverrideStyleConfig; crossIcon?: OverrideStyleConfig; } export interface CrossIconInput { name?: string; } export interface CategoryIconInput { url?: string; position?: CategoryIconPosition; } export declare const CATEGORY_ICON_POSITION: { readonly START: "start"; readonly END: "end"; }; export type CategoryIconPosition = ValueOf; export declare class ChipComponent implements OnDestroy { private elementRef; private renderer; constructor(elementRef: ElementRef, renderer: Renderer2); classMappingPerVariant: Record; classMappingPerSize: Record; CATEGORY_ICON_POSITION: { readonly START: "start"; readonly END: "end"; }; clickListener?: () => void; isChipClickable: boolean; variant: ChipVariant; label: string; style?: ChipStyleOverride; isRounded: boolean; size: ChipSize; /** * Applies active behaviour to the item which is selected */ isActive: boolean; /** * This object is passed back in the emitter, whatever information is passed to this object is passed back */ metaInformation?: T; categoryIcon?: CategoryIconInput; showCrossIcon: boolean; crossIcon?: CrossIconInput; /** * This is dynamically typed based upon the meta information input provided above * * Emits the `metaInformation` input when a clickable chip is clicked upon */ clickEmitter: EventEmitter; crossClickEmitter: EventEmitter; /** * Determines if the element should listen to clicks and show cursor when hovered upon */ set isClickable(shouldSetupListener: boolean); get isClickable(): boolean; handleCrossClick(event: Event): void; private setupListener; private clearListener; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "pv-chip", never, { "variant": { "alias": "variant"; "required": false; }; "label": { "alias": "label"; "required": false; }; "style": { "alias": "style"; "required": false; }; "isRounded": { "alias": "isRounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "metaInformation": { "alias": "metaInformation"; "required": false; }; "categoryIcon": { "alias": "categoryIcon"; "required": false; }; "showCrossIcon": { "alias": "showCrossIcon"; "required": false; }; "crossIcon": { "alias": "crossIcon"; "required": false; }; "isClickable": { "alias": "isClickable"; "required": false; }; }, { "clickEmitter": "clickEmitter"; "crossClickEmitter": "crossClickEmitter"; }, never, never, false, never>; } //# sourceMappingURL=chip.component.d.ts.map