1 | import { ElementRef, EventEmitter, AfterContentInit, QueryList, TemplateRef, ChangeDetectorRef } from '@angular/core';
|
---|
2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | import * as i2 from "primeng/inputtext";
|
---|
6 | import * as i3 from "primeng/api";
|
---|
7 | export declare const CHIPS_VALUE_ACCESSOR: any;
|
---|
8 | export declare class Chips implements AfterContentInit, ControlValueAccessor {
|
---|
9 | el: ElementRef;
|
---|
10 | cd: ChangeDetectorRef;
|
---|
11 | style: any;
|
---|
12 | styleClass: string;
|
---|
13 | disabled: boolean;
|
---|
14 | field: string;
|
---|
15 | placeholder: string;
|
---|
16 | max: number;
|
---|
17 | ariaLabelledBy: string;
|
---|
18 | tabindex: number;
|
---|
19 | inputId: string;
|
---|
20 | allowDuplicate: boolean;
|
---|
21 | inputStyle: any;
|
---|
22 | inputStyleClass: any;
|
---|
23 | addOnTab: boolean;
|
---|
24 | addOnBlur: boolean;
|
---|
25 | separator: string;
|
---|
26 | onAdd: EventEmitter<any>;
|
---|
27 | onRemove: EventEmitter<any>;
|
---|
28 | onFocus: EventEmitter<any>;
|
---|
29 | onBlur: EventEmitter<any>;
|
---|
30 | onChipClick: EventEmitter<any>;
|
---|
31 | inputViewChild: ElementRef;
|
---|
32 | templates: QueryList<any>;
|
---|
33 | itemTemplate: TemplateRef<any>;
|
---|
34 | value: any;
|
---|
35 | onModelChange: Function;
|
---|
36 | onModelTouched: Function;
|
---|
37 | valueChanged: boolean;
|
---|
38 | focus: boolean;
|
---|
39 | filled: boolean;
|
---|
40 | constructor(el: ElementRef, cd: ChangeDetectorRef);
|
---|
41 | ngAfterContentInit(): void;
|
---|
42 | onClick(): void;
|
---|
43 | onInput(): void;
|
---|
44 | onPaste(event: any): void;
|
---|
45 | updateFilledState(): void;
|
---|
46 | onItemClick(event: Event, item: any): void;
|
---|
47 | writeValue(value: any): void;
|
---|
48 | registerOnChange(fn: Function): void;
|
---|
49 | registerOnTouched(fn: Function): void;
|
---|
50 | setDisabledState(val: boolean): void;
|
---|
51 | resolveFieldData(data: any, field: string): any;
|
---|
52 | onInputFocus(event: FocusEvent): void;
|
---|
53 | onInputBlur(event: FocusEvent): void;
|
---|
54 | removeItem(event: Event, index: number): void;
|
---|
55 | addItem(event: Event, item: string, preventDefault: boolean): void;
|
---|
56 | onKeydown(event: KeyboardEvent): void;
|
---|
57 | updateMaxedOut(): void;
|
---|
58 | static ɵfac: i0.ɵɵFactoryDeclaration<Chips, never>;
|
---|
59 | static ɵcmp: i0.ɵɵComponentDeclaration<Chips, "p-chips", never, { "style": "style"; "styleClass": "styleClass"; "disabled": "disabled"; "field": "field"; "placeholder": "placeholder"; "max": "max"; "ariaLabelledBy": "ariaLabelledBy"; "tabindex": "tabindex"; "inputId": "inputId"; "allowDuplicate": "allowDuplicate"; "inputStyle": "inputStyle"; "inputStyleClass": "inputStyleClass"; "addOnTab": "addOnTab"; "addOnBlur": "addOnBlur"; "separator": "separator"; }, { "onAdd": "onAdd"; "onRemove": "onRemove"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onChipClick": "onChipClick"; }, ["templates"], never>;
|
---|
60 | }
|
---|
61 | export declare class ChipsModule {
|
---|
62 | static ɵfac: i0.ɵɵFactoryDeclaration<ChipsModule, never>;
|
---|
63 | static ɵmod: i0.ɵɵNgModuleDeclaration<ChipsModule, [typeof Chips], [typeof i1.CommonModule, typeof i2.InputTextModule, typeof i3.SharedModule], [typeof Chips, typeof i2.InputTextModule, typeof i3.SharedModule]>;
|
---|
64 | static ɵinj: i0.ɵɵInjectorDeclaration<ChipsModule>;
|
---|
65 | }
|
---|