lightning-tec-br-angular-components 2.8.3 → 2.9.0

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,48 +1,50 @@
1
1
  import { ElementRef, OnInit } from '@angular/core';
2
- import { FormFieldTxtInputTypesEnum, FormFieldFontWeights, FormFieldCountryDataFormat, FormFieldTypes } from './form-field.enum';
2
+ import { FormFieldTxtInputTypesEnum, FormFieldCountryDataFormat, FormFieldTypes } from './form-field.enum';
3
3
  import { FormFieldService } from './form-field.service';
4
- import { FormFieldModel, FormFielTxtModel, FormFieldComboModel } from './form-field.model';
5
4
  import { AlertTypesEnum } from '../alert/alert.enum';
6
5
  import { AlertService } from '../alert/alert.service';
7
6
  import { ChangeDetectorRef } from '@angular/core';
8
7
  import { IconsEnum } from '../icons.enum.ts';
8
+ import { FontWeights } from '../fontWeights.enum';
9
9
  import * as i0 from "@angular/core";
10
+ export type ComboObjects = {
11
+ value: string;
12
+ id: number;
13
+ };
10
14
  export declare class FormFieldComponent implements OnInit {
11
15
  private element;
12
16
  private cd;
13
- _Icon: import("@angular/core").InputSignal<IconsEnum>;
17
+ _Icon: IconsEnum;
14
18
  Name: import("@angular/core").InputSignal<string>;
15
19
  _placeHolderType: string;
16
- _placeHolderValue: import("@angular/core").InputSignal<string>;
17
- _PasswordIcon: string;
18
- _IconColor: import("@angular/core").InputSignal<string>;
19
- _FontColor: import("@angular/core").InputSignal<string>;
20
- _FontSize: import("@angular/core").InputSignal<number>;
21
- _FontFamily: import("@angular/core").InputSignal<string>;
22
- _FontWeight: import("@angular/core").InputSignal<FormFieldFontWeights>;
23
- _Options: import("@angular/core").InputSignal<FormFieldComboModel[]>;
24
- _Width: import("@angular/core").InputSignal<number>;
25
- _Height: import("@angular/core").InputSignal<number>;
26
- _Border: import("@angular/core").InputSignal<string>;
27
- _BorderRadius: import("@angular/core").InputSignal<number>;
28
- _BoxShadowsEnabled: import("@angular/core").InputSignal<boolean>;
29
- TxtInputType: import("@angular/core").InputSignal<FormFieldTxtInputTypesEnum>;
30
- IconEnabled: import("@angular/core").InputSignal<boolean>;
31
- CountryDataFormat: import("@angular/core").InputSignal<FormFieldCountryDataFormat>;
20
+ _placeHolderValue: string;
21
+ _PasswordIcon: IconsEnum;
22
+ _IconColor: string;
23
+ _FontColor: string;
24
+ _FontSize: number;
25
+ _FontFamily: string;
26
+ _FontWeight: FontWeights;
27
+ _Options: ComboObjects[];
28
+ _Width: number;
29
+ _Height: number;
30
+ _Border: string;
31
+ _BorderRadius: number;
32
+ _BoxShadowsEnabled: boolean;
33
+ TxtInputType: FormFieldTxtInputTypesEnum;
34
+ IconEnabled: boolean;
35
+ CountryDataFormat: FormFieldCountryDataFormat;
32
36
  text: string;
33
37
  _AlertState: boolean;
34
- FieldType: import("@angular/core").InputSignal<FormFieldTypes>;
38
+ FieldType: FormFieldTypes;
35
39
  valueFromService: string;
40
+ Value?: string;
36
41
  Mask: string;
37
- NumberMaskPrefix: import("@angular/core").InputSignal<string>;
42
+ NumberMaskPrefix: string;
38
43
  Sufixo: string;
39
- NumberMaskSufix: import("@angular/core").InputSignal<string>;
44
+ NumberMaskSufix: string;
40
45
  showMaskTyped: boolean;
41
46
  thousandSeparator: string;
42
- NCasasDecimais: import("@angular/core").InputSignal<number>;
43
- FormFieldModel: FormFieldModel;
44
- FormFielTxtModel: FormFielTxtModel;
45
- FormFieldComboModel: FormFieldComboModel;
47
+ NCasasDecimais: number;
46
48
  readonly AlertTypesEnum: typeof AlertTypesEnum;
47
49
  readonly IconsEnum: typeof IconsEnum;
48
50
  readonly FormFieldTxtInputTypesEnum: typeof FormFieldTxtInputTypesEnum;
@@ -52,14 +54,14 @@ export declare class FormFieldComponent implements OnInit {
52
54
  AlertService: AlertService;
53
55
  constructor(element: ElementRef, cd: ChangeDetectorRef);
54
56
  ngOnInit(): void;
55
- onTxtChange(): void;
56
- onComboChange(): void;
57
- startListenToTextChange(): void;
58
- startListenToAlertState(): void;
57
+ onValueChanged(): void;
58
+ startListenToExternalValueChanged(): void;
59
+ startListenToStateChanged(): void;
60
+ buildOptions(values: string[], ids: number[]): ComboObjects[];
59
61
  togglePasswordView(): void;
60
62
  configMask(): void;
61
63
  getIDFromOption(valueText: string): number;
62
64
  enterPressed(): void;
63
65
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "app-form-field", never, { "_Icon": { "alias": "_Icon"; "required": true; "isSignal": true; }; "Name": { "alias": "Name"; "required": true; "isSignal": true; }; "_placeHolderValue": { "alias": "_placeHolderValue"; "required": true; "isSignal": true; }; "_IconColor": { "alias": "_IconColor"; "required": true; "isSignal": true; }; "_FontColor": { "alias": "_FontColor"; "required": true; "isSignal": true; }; "_FontSize": { "alias": "_FontSize"; "required": true; "isSignal": true; }; "_FontFamily": { "alias": "_FontFamily"; "required": true; "isSignal": true; }; "_FontWeight": { "alias": "_FontWeight"; "required": true; "isSignal": true; }; "_Options": { "alias": "_Options"; "required": true; "isSignal": true; }; "_Width": { "alias": "_Width"; "required": true; "isSignal": true; }; "_Height": { "alias": "_Height"; "required": true; "isSignal": true; }; "_Border": { "alias": "_Border"; "required": true; "isSignal": true; }; "_BorderRadius": { "alias": "_BorderRadius"; "required": true; "isSignal": true; }; "_BoxShadowsEnabled": { "alias": "_BoxShadowsEnabled"; "required": true; "isSignal": true; }; "TxtInputType": { "alias": "TxtInputType"; "required": true; "isSignal": true; }; "IconEnabled": { "alias": "IconEnabled"; "required": true; "isSignal": true; }; "CountryDataFormat": { "alias": "CountryDataFormat"; "required": true; "isSignal": true; }; "FieldType": { "alias": "FieldType"; "required": true; "isSignal": true; }; "NumberMaskPrefix": { "alias": "NumberMaskPrefix"; "required": true; "isSignal": true; }; "NumberMaskSufix": { "alias": "NumberMaskSufix"; "required": true; "isSignal": true; }; "NCasasDecimais": { "alias": "NCasasDecimais"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "app-form-field", never, { "Name": { "alias": "Name"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
65
67
  }
@@ -15,14 +15,3 @@ export declare enum FormFieldCountryDataFormat {
15
15
  Estados_Unidos = 0,
16
16
  Brasil = 1
17
17
  }
18
- export declare enum FormFieldFontWeights {
19
- Thin = 100,
20
- ExtraLight = 200,
21
- Light = 300,
22
- Regular = 400,
23
- Medium = 500,
24
- SemiBold = 600,
25
- Bold = 700,
26
- Extrabold = 800,
27
- Black = 900
28
- }
@@ -1,12 +1,57 @@
1
- export declare class FormFieldModel {
2
- name: string;
3
- field: object;
4
- internalCall: boolean;
5
- }
6
- export declare class FormFielTxtModel {
7
- value: string;
8
- }
9
- export declare class FormFieldComboModel {
10
- id: number;
11
- value: string;
1
+ import { FormFieldCountryDataFormat, FormFieldTxtInputTypesEnum, FormFieldTypes } from "./form-field.enum";
2
+ import { FontWeights } from "../fontWeights.enum";
3
+ import { IconsEnum } from "../icons.enum.ts";
4
+ export declare class FormFieldConfigModel {
5
+ constructor(params: {
6
+ Name?: string;
7
+ Width?: number;
8
+ Height?: number;
9
+ FieldType?: FormFieldTypes;
10
+ ComboValues?: string[];
11
+ ComboIds?: number[];
12
+ Value?: string;
13
+ ValueId?: number;
14
+ IconEnabled?: boolean;
15
+ Icon?: IconsEnum;
16
+ IconColor?: string;
17
+ FontSize?: number;
18
+ FontColor?: string;
19
+ FontWeight?: FontWeights;
20
+ FontFamily?: string;
21
+ TxtInputType?: FormFieldTxtInputTypesEnum;
22
+ PlaceHolderValue?: string;
23
+ NumberMaskPrefix?: string;
24
+ NumberMaskSufix?: string;
25
+ NCasasDecimais?: number;
26
+ CountryDataFormat?: FormFieldCountryDataFormat;
27
+ Border?: string;
28
+ BorderRadius?: number;
29
+ BoxShadowsEnabled?: boolean;
30
+ ignoreThisProp?: boolean;
31
+ });
32
+ Name?: string;
33
+ Width?: number;
34
+ Height?: number;
35
+ FieldType?: FormFieldTypes;
36
+ ComboValues?: string[];
37
+ ComboIds?: number[];
38
+ Value?: string;
39
+ ValueId?: number;
40
+ IconEnabled?: boolean;
41
+ Icon?: IconsEnum;
42
+ IconColor?: string;
43
+ FontSize?: number;
44
+ FontColor?: string;
45
+ FontWeight?: FontWeights;
46
+ FontFamily?: string;
47
+ TxtInputType?: FormFieldTxtInputTypesEnum;
48
+ PlaceHolderValue?: string;
49
+ NumberMaskPrefix?: string;
50
+ NumberMaskSufix?: string;
51
+ NCasasDecimais?: number;
52
+ CountryDataFormat?: FormFieldCountryDataFormat;
53
+ Border?: string;
54
+ BorderRadius?: number;
55
+ BoxShadowsEnabled?: boolean;
56
+ ignoreThisProp?: boolean;
12
57
  }
@@ -1,11 +1,10 @@
1
1
  import { Subject } from 'rxjs';
2
- import { FormFieldModel } from "./form-field.model";
3
- import { AlertModel } from "../alert/alert.model";
2
+ import { FormFieldConfigModel } from "./form-field.model";
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class FormFieldService {
6
- valueChanged: Subject<FormFieldModel>;
7
- alertState: Subject<AlertModel>;
8
- enterPressed: Subject<FormFieldModel>;
5
+ valueChanged: Subject<FormFieldConfigModel>;
6
+ stateChanged: Subject<FormFieldConfigModel>;
7
+ enterPressed: Subject<FormFieldConfigModel>;
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldService, never>;
10
9
  static ɵprov: i0.ɵɵInjectableDeclaration<FormFieldService>;
11
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lightning-tec-br-angular-components",
3
- "version": "2.8.3",
3
+ "version": "2.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"