ngx-sp-infra 5.19.6 → 5.19.7
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.
|
@@ -5,6 +5,10 @@ import { RecordCombobox } from '../../models/combobox/record-combobox';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LibComboboxReworkComponent<T = RecordCombobox> implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy, OnChanges {
|
|
7
7
|
private _cdr;
|
|
8
|
+
private _elementRef;
|
|
9
|
+
private mutationObserver;
|
|
10
|
+
/** Valor interno do componente */
|
|
11
|
+
private _value;
|
|
8
12
|
private _search$;
|
|
9
13
|
private _onTouched;
|
|
10
14
|
private _onChange;
|
|
@@ -22,20 +26,21 @@ export declare class LibComboboxReworkComponent<T = RecordCombobox> implements C
|
|
|
22
26
|
leftButtonTemplate?: TemplateRef<any>;
|
|
23
27
|
rightButtonTemplate?: TemplateRef<any>;
|
|
24
28
|
toggleButton?: ElementRef<HTMLButtonElement>;
|
|
25
|
-
reusableComboboxContainer?: ElementRef<HTMLDivElement>;
|
|
26
29
|
selectionChange: EventEmitter<any>;
|
|
27
30
|
filterChange: EventEmitter<string | null>;
|
|
28
31
|
filterButtonClick: EventEmitter<string | null>;
|
|
29
|
-
value: T | T[] | null;
|
|
30
32
|
selectedValues: T[] | null;
|
|
33
|
+
get value(): T | T[] | null;
|
|
34
|
+
set value(val: T | T[] | null);
|
|
35
|
+
invalid: boolean;
|
|
31
36
|
isOpen: boolean;
|
|
32
37
|
searchControl: FormControl<string | null>;
|
|
33
38
|
filteredItems$: Observable<T[]>;
|
|
34
|
-
|
|
39
|
+
compare: (a: T, b: T) => boolean;
|
|
35
40
|
displayWith: (item: T) => string;
|
|
36
41
|
displayValue(): string;
|
|
37
42
|
trackByFn: TrackByFunction<T | any>;
|
|
38
|
-
constructor(_cdr: ChangeDetectorRef);
|
|
43
|
+
constructor(_cdr: ChangeDetectorRef, _elementRef: ElementRef);
|
|
39
44
|
ngOnInit(): void;
|
|
40
45
|
ngAfterViewInit(): void;
|
|
41
46
|
ngAfterContentInit(): void;
|
|
@@ -50,9 +55,18 @@ export declare class LibComboboxReworkComponent<T = RecordCombobox> implements C
|
|
|
50
55
|
registerOnTouched(fn: () => void): void;
|
|
51
56
|
setDisabledState?(isDisabled: boolean): void;
|
|
52
57
|
toggleDropdown(): void;
|
|
58
|
+
openDropdown(): void;
|
|
53
59
|
closeDropdown(): void;
|
|
54
60
|
onBlurOutside(event: FocusEvent): void;
|
|
61
|
+
/** Define a largura máxima em pixels com base na largura do container pai
|
|
62
|
+
*
|
|
63
|
+
* Esta abordagem foi necessária pois o elemento em questão constantemente aumentava sua largura para acomodar o seu valor interno, independente das regras CSS impostas.
|
|
64
|
+
*
|
|
65
|
+
* A solução mais rápida era definir uma largura em pixels fixa na inicialização, o que não é o ideal por questões de responsividade, portanto este método é chamado em caso de resize da tela também
|
|
66
|
+
*/
|
|
55
67
|
private setMaxWidth;
|
|
68
|
+
private registerObserver;
|
|
69
|
+
private checkInvalidClass;
|
|
56
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibComboboxReworkComponent<any>, never>;
|
|
57
71
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibComboboxReworkComponent<any>, "lib-combobox-rework", never, { "list": { "alias": "list"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "innerFilter": { "alias": "innerFilter"; "required": false; }; "customLabel": { "alias": "customLabel"; "required": false; }; "customValue": { "alias": "customValue"; "required": false; }; }, { "selectionChange": "selectionChange"; "filterChange": "filterChange"; "filterButtonClick": "filterButtonClick"; }, ["optionTemplate", "leftButtonTemplate", "rightButtonTemplate"], never, true, never>;
|
|
58
72
|
}
|