import { OnInit, EventEmitter, OnDestroy } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { MatChipInputEvent } from '@angular/material/chips'; import { TranslateService } from '@ngx-translate/core'; import { PepHorizontalAlignment, PepLayoutType, PepStyleType } from '@pepperi-addons/ngx-lib'; import { IPepChip, PepChipsOrientationType, PepChipsInputType, IPepChipSelection } from './chips.model'; import { PepChipsService } from './chips.service'; import * as i0 from "@angular/core"; export declare class PepChipsComponent implements OnInit, OnDestroy { chipsService: PepChipsService; private _translate; /** * The chips within the chip list. * * @memberof PepChipsComponent */ form: FormGroup; layoutType: PepLayoutType; inline: boolean; xAlignment: PepHorizontalAlignment; renderTitle: boolean; showTitle: boolean; label: string; mandatory: boolean; disabled: boolean; classNames: string; set chips(chips: IPepChip[]); get chips(): IPepChip[]; /** * The add chip emitter type. * * @type {PepChipsInputType} * @memberof PepChipsComponent */ type: PepChipsInputType; /** * The chip layput direction type. * * @type {PepChipsOrientationType} * @memberof PepChipsComponent */ orientation: PepChipsOrientationType; /** * The style of the button. * * @type {PepStyleType} * @memberof PepButtonComponent */ styleType: PepStyleType; /** * Whether chip multi select allowed. * * @memberof PepChipsComponent */ multiSelect: boolean; /** * Add new chip placeholder. * * @memberof PepChipsComponent */ placeholder: string; /** * Add new chip(s) event. * * @type {EventEmitter} * @memberof PepButtonComponent */ fieldClick: EventEmitter; selectionChange: EventEmitter; /** * Selected chip(s) */ get selected(): string | string[]; constructor(chipsService: PepChipsService, _translate: TranslateService); ngOnInit(): void; /** * Adding chip(s) to current chips list * @param chips Chip(s) to add */ addChipsToList(chips: IPepChip[]): void; /** * On new chip added * @param event Chip addition event */ onChipAdded(event: MatChipInputEvent): void; /** * On chip removed * @param chip Removed chip item */ onChipRemoved(chip: IPepChip): void; /** * On chip selection status changed * @param isSelected Whether the chip is selected * @param chip Selected chip item */ onSelectionChanged(isSelected: boolean, chip: IPepChip): void; /** * On Add new chip(s) clicked */ onChipsSelectClicked(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }