@main-class/componentes 2.1.9 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/input/index.mjs +3 -1
- package/esm2020/input/src/select-chips-autocomplete/select-chips-autocomplete.component.mjs +207 -0
- package/esm2020/input/src/select-chips-autocomplete/select-chips-autocomplete.module.mjs +40 -0
- package/fesm2015/main-class-componentes-input.mjs +234 -9
- package/fesm2015/main-class-componentes-input.mjs.map +1 -1
- package/fesm2020/main-class-componentes-input.mjs +232 -9
- package/fesm2020/main-class-componentes-input.mjs.map +1 -1
- package/input/index.d.ts +2 -0
- package/input/src/select-chips-autocomplete/select-chips-autocomplete.component.d.ts +60 -0
- package/input/src/select-chips-autocomplete/select-chips-autocomplete.module.d.ts +13 -0
- package/package.json +1 -1
package/input/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from './src/option-checkbox/option-checkbox.module';
|
|
|
10
10
|
export * from './src/option-checkbox/option-checkbox-group.component';
|
|
11
11
|
export * from './src/select-chips/select-chips.component';
|
|
12
12
|
export * from './src/select-chips/select-chips.module';
|
|
13
|
+
export * from './src/select-chips-autocomplete/select-chips-autocomplete.component';
|
|
14
|
+
export * from './src/select-chips-autocomplete/select-chips-autocomplete.module';
|
|
13
15
|
export * from './src/select-item/select-item.component';
|
|
14
16
|
export * from './src/select-item/select-item.module';
|
|
15
17
|
export * from './src/select-many-checkbox/select-many-checkbox.component';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
4
|
+
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm, UntypedFormControl } from '@angular/forms';
|
|
5
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
6
|
+
import { MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
7
|
+
import { SelectItemComponent } from '../select-item/select-item.component';
|
|
8
|
+
import { MatLegacyChipInputEvent } from '@angular/material/legacy-chips';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SelectChipsAutocompleteComponent implements ControlValueAccessor, MatFormFieldControl<Array<string>>, AfterViewInit, OnDestroy {
|
|
11
|
+
private errorStateMatcher;
|
|
12
|
+
ngControl: NgControl;
|
|
13
|
+
private parentForm;
|
|
14
|
+
private parentFormGroup;
|
|
15
|
+
static nextId: number;
|
|
16
|
+
private $value;
|
|
17
|
+
private $placeholder;
|
|
18
|
+
private $disabled;
|
|
19
|
+
private $required;
|
|
20
|
+
focused: boolean;
|
|
21
|
+
filterCtrl: UntypedFormControl;
|
|
22
|
+
opcoesFiltradas: Observable<Array<SelectItemComponent>>;
|
|
23
|
+
input: ElementRef;
|
|
24
|
+
stateChanges: Subject<void>;
|
|
25
|
+
id: string;
|
|
26
|
+
describedBy: string;
|
|
27
|
+
opcoes: QueryList<SelectItemComponent>;
|
|
28
|
+
filterInput: ElementRef<HTMLInputElement>;
|
|
29
|
+
filterAutocomplete: MatAutocomplete;
|
|
30
|
+
search: EventEmitter<string>;
|
|
31
|
+
constructor(errorStateMatcher: ErrorStateMatcher, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective);
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
private onChange;
|
|
34
|
+
private onTouched;
|
|
35
|
+
get value(): Array<string>;
|
|
36
|
+
set value(value: Array<string>);
|
|
37
|
+
get empty(): boolean;
|
|
38
|
+
onContainerClick(event: MouseEvent): void;
|
|
39
|
+
get shouldLabelFloat(): any;
|
|
40
|
+
get placeholder(): string;
|
|
41
|
+
set placeholder(plh: string);
|
|
42
|
+
get required(): any;
|
|
43
|
+
set required(value: any);
|
|
44
|
+
get disabled(): boolean;
|
|
45
|
+
set disabled(value: boolean);
|
|
46
|
+
get errorState(): boolean;
|
|
47
|
+
get controlType(): string;
|
|
48
|
+
setDescribedByIds(ids: string[]): void;
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
registerOnTouched(fn: any): void;
|
|
51
|
+
registerOnChange(fn: any): void;
|
|
52
|
+
setDisabledState(isDisabled: boolean): void;
|
|
53
|
+
writeValue(value: Array<string>): void;
|
|
54
|
+
add(event: MatLegacyChipInputEvent): void;
|
|
55
|
+
remove(item: string): void;
|
|
56
|
+
selected(event: MatAutocompleteSelectedEvent): void;
|
|
57
|
+
private _filter;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectChipsAutocompleteComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectChipsAutocompleteComponent, "mcl-select-chips-autocomplete", never, { "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; }, { "search": "search"; }, ["opcoes"], never, false, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./select-chips-autocomplete.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/icon";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/material/autocomplete";
|
|
7
|
+
import * as i6 from "../select-item/select-item.module";
|
|
8
|
+
import * as i7 from "@angular/material/legacy-chips";
|
|
9
|
+
export declare class SelectChipsAutocompleteModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectChipsAutocompleteModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectChipsAutocompleteModule, [typeof i1.SelectChipsAutocompleteComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.ReactiveFormsModule, typeof i5.MatAutocompleteModule, typeof i6.SelectItemModule, typeof i7.MatLegacyChipsModule], [typeof i1.SelectChipsAutocompleteComponent, typeof i6.SelectItemModule]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SelectChipsAutocompleteModule>;
|
|
13
|
+
}
|