lightning-tec-br-angular-components 3.2.0 → 3.2.2
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.
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormFieldTxtInputTypesEnum, FormFieldCountryDataFormat, FormFieldTypes } from './form-field.enum';
|
|
3
3
|
import { FormFieldService } from './form-field.service';
|
|
4
|
-
import { AlertTypesEnum } from '../alert/alert.enum';
|
|
5
|
-
import { AlertService } from '../alert/alert.service';
|
|
6
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
7
4
|
import { IconsEnum } from '../icons.enum.ts';
|
|
8
5
|
import { FontWeights } from '../fontWeights.enum';
|
|
6
|
+
import { AlertTypesEnum } from '../alert/alert.enum';
|
|
7
|
+
import { AlertService } from '../alert/alert.service';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export type ComboObjects = {
|
|
11
10
|
value: string;
|
|
12
11
|
id: number;
|
|
13
12
|
};
|
|
14
|
-
export declare class FormFieldComponent implements OnInit {
|
|
15
|
-
|
|
16
|
-
private cd;
|
|
13
|
+
export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
14
|
+
comboHeader?: ElementRef<HTMLElement>;
|
|
17
15
|
_Icon: IconsEnum;
|
|
18
16
|
Name: import("@angular/core").InputSignal<string>;
|
|
19
17
|
cypressTestId: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -46,6 +44,8 @@ export declare class FormFieldComponent implements OnInit {
|
|
|
46
44
|
FieldType: FormFieldTypes;
|
|
47
45
|
valueFromService: string;
|
|
48
46
|
Value?: string;
|
|
47
|
+
private updatingInternally;
|
|
48
|
+
private destroy$;
|
|
49
49
|
Mask: string;
|
|
50
50
|
NumberMaskPrefix: string;
|
|
51
51
|
Sufixo: string;
|
|
@@ -60,12 +60,31 @@ export declare class FormFieldComponent implements OnInit {
|
|
|
60
60
|
readonly FormFieldTypes: typeof FormFieldTypes;
|
|
61
61
|
FormFieldService: FormFieldService;
|
|
62
62
|
AlertService: AlertService;
|
|
63
|
-
constructor(
|
|
63
|
+
constructor();
|
|
64
64
|
ngOnInit(): void;
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Sincroniza apenas o valor local do componente.
|
|
68
|
+
* Não emite valueChanged.
|
|
69
|
+
* É chamado por ngModelChange no HTML.
|
|
70
|
+
*/
|
|
71
|
+
onModelChanged(value: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Emite somente quando houve interação real do usuário.
|
|
74
|
+
* É chamado pelo evento nativo (input) no HTML.
|
|
75
|
+
*/
|
|
76
|
+
onUserInput(event: Event): void;
|
|
77
|
+
/**
|
|
78
|
+
* Mantido por compatibilidade com chamadas antigas.
|
|
79
|
+
* Use apenas quando quiser emitir explicitamente.
|
|
80
|
+
*/
|
|
65
81
|
onValueChanged(): void;
|
|
82
|
+
private emitValueChanged;
|
|
83
|
+
private setValueSilently;
|
|
66
84
|
startListenToExternalValueChanged(): void;
|
|
67
85
|
startListenToStateChanged(): void;
|
|
68
86
|
startListenToComboboxOpen(): void;
|
|
87
|
+
private updateHeaderPosition;
|
|
69
88
|
buildOptions(values: string[], ids: number[]): ComboObjects[];
|
|
70
89
|
togglePasswordView(): void;
|
|
71
90
|
configMask(): void;
|