@acontplus/ng-customer 1.1.0 → 2.0.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.
package/package.json CHANGED
@@ -1,25 +1,23 @@
1
1
  {
2
2
  "name": "@acontplus/ng-customer",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Angular customer management module following clean architecture principles. Provides customer UI components, business logic, and integrates with notification systems for comprehensive customer relationship management.",
5
- "dependencies": {
6
- "@acontplus/ng-notifications": "^1.1.0",
7
- "tslib": "^2.3.0"
8
- },
9
5
  "peerDependencies": {
10
- "@acontplus/ng-components": "^1.3.0",
11
- "@angular/common": "^20.3.2",
12
- "@angular/core": "^20.3.2"
6
+ "@acontplus/ng-components": "^2.0.0",
7
+ "@acontplus/ng-notifications": "^2.0.0",
8
+ "@angular/common": "^21.0.6",
9
+ "@angular/core": "^21.0.6"
13
10
  },
14
11
  "sideEffects": false,
15
12
  "main": "fesm2022/acontplus-ng-customer.mjs",
16
13
  "module": "fesm2022/acontplus-ng-customer.mjs",
17
- "typings": "index.d.ts",
14
+ "typings": "types/acontplus-ng-customer.d.ts",
18
15
  "files": [
19
16
  "index.d.ts",
20
17
  "*.d.ts",
21
18
  "**/*.d.ts",
22
- "fesm2022/**/*"
19
+ "fesm2022/**/*",
20
+ "company-customer/**/*"
23
21
  ],
24
22
  "engines": {
25
23
  "node": ">=18.0.0"
@@ -65,8 +63,11 @@
65
63
  "default": "./package.json"
66
64
  },
67
65
  ".": {
68
- "types": "./index.d.ts",
66
+ "types": "./types/acontplus-ng-customer.d.ts",
69
67
  "default": "./fesm2022/acontplus-ng-customer.mjs"
70
68
  }
69
+ },
70
+ "dependencies": {
71
+ "tslib": "^2.3.0"
71
72
  }
72
73
  }
@@ -0,0 +1,245 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, InjectionToken } from '@angular/core';
3
+ import { FormGroup, ValidatorFn } from '@angular/forms';
4
+ import { Observable } from 'rxjs';
5
+ import { ApiResponse } from '@acontplus/core';
6
+
7
+ interface FieldConfig {
8
+ name: string;
9
+ required: boolean;
10
+ visible: boolean;
11
+ readonly?: boolean;
12
+ label?: string;
13
+ placeholder?: string;
14
+ validators?: any[];
15
+ }
16
+ interface CreditFieldsConfig {
17
+ maritalStatusId: FieldConfig;
18
+ conyugeNombre: FieldConfig;
19
+ conyugeTel: FieldConfig;
20
+ refFamNombre: FieldConfig;
21
+ refFamTel: FieldConfig;
22
+ housingTypeId: FieldConfig;
23
+ dirVivienda: FieldConfig;
24
+ refDomicilio: FieldConfig;
25
+ sector: FieldConfig;
26
+ barrio: FieldConfig;
27
+ calle: FieldConfig;
28
+ }
29
+ interface CompanyCustomerFormConfig {
30
+ fields: {
31
+ idTipoIdentificacion: FieldConfig;
32
+ idFormaPagoSri: FieldConfig;
33
+ idTipoClienteProveedor: FieldConfig;
34
+ idSubContribuyente: FieldConfig;
35
+ idTiempoCredito: FieldConfig;
36
+ idCiudad: FieldConfig;
37
+ idCargo: FieldConfig;
38
+ idEmpleado: FieldConfig;
39
+ numeroIdentificacion: FieldConfig;
40
+ nombreFiscal: FieldConfig;
41
+ nombreComercial: FieldConfig;
42
+ direccion: FieldConfig;
43
+ correo: FieldConfig;
44
+ telefono: FieldConfig;
45
+ placa: FieldConfig;
46
+ nota: FieldConfig;
47
+ birthDate: FieldConfig;
48
+ estado: FieldConfig;
49
+ validationSri: FieldConfig;
50
+ configValorBruto: FieldConfig;
51
+ };
52
+ showCreditInfo?: boolean;
53
+ creditFields?: CreditFieldsConfig;
54
+ submitButtonText?: string;
55
+ cancelButtonText?: string;
56
+ }
57
+
58
+ declare const MAIN_APP_COMPANY_CUSTOMER_CONFIG: CompanyCustomerFormConfig;
59
+ declare const POS_COMPANY_CUSTOMER_CONFIG: CompanyCustomerFormConfig;
60
+
61
+ interface CustomerInfoCredit {
62
+ maritalStatusId?: number | null;
63
+ conyugeNombre?: string | null;
64
+ conyugeTel?: string | null;
65
+ refFamNombre?: string | null;
66
+ refFamTel?: string | null;
67
+ housingTypeId?: number | null;
68
+ dirVivienda?: string | null;
69
+ refDomicilio?: string | null;
70
+ sector?: string | null;
71
+ barrio?: string | null;
72
+ calle?: string | null;
73
+ }
74
+ interface Customer {
75
+ id?: string;
76
+ idCliente?: number;
77
+ idEmpresa?: number;
78
+ idCargo?: number;
79
+ idFormaPagoSri?: number;
80
+ idTipoClienteProveedor?: number;
81
+ idTipoIdentificacion?: number;
82
+ idSubContribuyente?: number;
83
+ idTiempoCredito?: number;
84
+ idCiudad?: number;
85
+ idEmpleado?: number;
86
+ numeroIdentificacion: string;
87
+ nombreFiscal: string;
88
+ nombreComercial?: string;
89
+ direccion?: string;
90
+ correo?: string;
91
+ telefono?: string;
92
+ placa?: string;
93
+ nota?: string;
94
+ birthDate?: Date | null;
95
+ estado?: boolean;
96
+ validationSri?: boolean;
97
+ configValorBruto?: boolean;
98
+ dataInfoCred?: CustomerInfoCredit;
99
+ /** @deprecated Use numeroIdentificacion */
100
+ idCard?: string;
101
+ /** @deprecated Use nombreFiscal */
102
+ name?: string;
103
+ /** @deprecated Use nombreComercial */
104
+ lastName?: string;
105
+ /** @deprecated Use correo */
106
+ email?: string;
107
+ /** @deprecated Use telefono */
108
+ phone?: string;
109
+ /** @deprecated Use direccion */
110
+ address?: string;
111
+ /** @deprecated Use idCiudad */
112
+ city?: string;
113
+ dateOfBirth?: Date;
114
+ notes?: string;
115
+ }
116
+
117
+ declare class CompanyCustomerFormComponent implements OnInit {
118
+ formId: _angular_core.InputSignal<string | undefined>;
119
+ customer?: any;
120
+ mode: 'create' | 'edit';
121
+ showButtons: _angular_core.InputSignal<boolean>;
122
+ submitted: _angular_core.OutputEmitterRef<any>;
123
+ cancelled: _angular_core.OutputEmitterRef<void>;
124
+ readonly panelOpenState: _angular_core.WritableSignal<boolean>;
125
+ private fb;
126
+ config: CompanyCustomerFormConfig;
127
+ private customerService;
128
+ form: FormGroup;
129
+ isLoading: _angular_core.WritableSignal<boolean>;
130
+ errorMessage: string | null;
131
+ step: _angular_core.WritableSignal<number>;
132
+ emails: string[];
133
+ telephones: string[];
134
+ tiemposCredito: _angular_core.WritableSignal<any[]>;
135
+ tipoContribuyentes: _angular_core.WritableSignal<any[]>;
136
+ tiposCliente: _angular_core.WritableSignal<any[]>;
137
+ tiposIdentificacion: _angular_core.WritableSignal<any[]>;
138
+ formasPagoSri: _angular_core.WritableSignal<any[]>;
139
+ placas: _angular_core.WritableSignal<any[]>;
140
+ ciudades: _angular_core.WritableSignal<any[]>;
141
+ cargos: _angular_core.WritableSignal<any[]>;
142
+ empresas: _angular_core.WritableSignal<any[]>;
143
+ employees: _angular_core.WritableSignal<any[]>;
144
+ maritalStatuses: _angular_core.WritableSignal<any[]>;
145
+ housingTypes: _angular_core.WritableSignal<any[]>;
146
+ showRefresh: _angular_core.WritableSignal<boolean>;
147
+ setStep(index: number): void;
148
+ nextStep(): void;
149
+ prevStep(): void;
150
+ ngOnInit(): void;
151
+ private getDefaultConfig;
152
+ getCreditFieldConfig(fieldName: keyof CreditFieldsConfig): FieldConfig | undefined;
153
+ isCreditFieldVisible(fieldName: keyof CreditFieldsConfig): boolean;
154
+ isCreditFieldRequired(fieldName: keyof CreditFieldsConfig): boolean;
155
+ getCreditFieldLabel(fieldName: keyof CreditFieldsConfig): string;
156
+ getCreditFieldPlaceholder(fieldName: keyof CreditFieldsConfig): string;
157
+ private buildCreditFormGroup;
158
+ private buildForm;
159
+ private patchFormValue;
160
+ private getValidatorsForField;
161
+ isFieldVisible(fieldName: keyof CompanyCustomerFormConfig['fields']): boolean;
162
+ isFieldRequired(fieldName: keyof CompanyCustomerFormConfig['fields']): boolean;
163
+ getFieldLabel(fieldName: keyof CompanyCustomerFormConfig['fields']): string;
164
+ getFieldPlaceholder(fieldName: keyof CompanyCustomerFormConfig['fields']): string;
165
+ identificationTypeChange($ev: any): void;
166
+ onSubmit(): void;
167
+ onCancel(): void;
168
+ getErrorMessage(fieldName: string): string;
169
+ get dataInfoCredForm(): FormGroup;
170
+ searchIdentificacion($event: MouseEvent): void;
171
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CompanyCustomerFormComponent, never>;
172
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CompanyCustomerFormComponent, "acp-company-customer-form", ["acpCustomerForm"], { "formId": { "alias": "formId"; "required": false; "isSignal": true; }; "customer": { "alias": "customer"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; "isSignal": true; }; }, { "submitted": "submitted"; "cancelled": "cancelled"; }, never, never, true, never>;
173
+ }
174
+
175
+ interface ICompanyCustomerService {
176
+ list(params: any): Observable<any>;
177
+ create(customer: any): Observable<any>;
178
+ update(id: string, customer: any): Observable<any>;
179
+ getById(id: string): Observable<any>;
180
+ search(term: string): Observable<any[]>;
181
+ validate?(customer: any): Record<string, any> | null;
182
+ }
183
+
184
+ declare class CompanyCustomerService implements ICompanyCustomerService {
185
+ private apiUrl;
186
+ private http;
187
+ private mapper;
188
+ list(params: any): Observable<any>;
189
+ create(customer: any): Observable<any>;
190
+ update(id: string, customer: any): Observable<any>;
191
+ getById(id: string): Observable<any>;
192
+ search(term: string): Observable<any[]>;
193
+ validate(customer: any): Record<string, any> | null;
194
+ private isValidEmail;
195
+ private isValidPhone;
196
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CompanyCustomerService, never>;
197
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CompanyCustomerService>;
198
+ }
199
+
200
+ interface ICompanyCustomerMapper {
201
+ toModel(dto: any): any;
202
+ toModelList(dtos: any[]): any;
203
+ toCreateDTO(customer: any): any;
204
+ toUpdateDTO(customer: any): any;
205
+ }
206
+
207
+ declare class CompanyCustomerDefaultMapper implements ICompanyCustomerMapper {
208
+ toModel(dto: any): any;
209
+ toModelList(response: any): {
210
+ data: any;
211
+ pagination: {
212
+ totalRecords: any;
213
+ };
214
+ };
215
+ toCreateDTO(customer: any): any;
216
+ toUpdateDTO(customer: any): any;
217
+ }
218
+
219
+ interface CustomerSri {
220
+ phone: string;
221
+ email: string;
222
+ idCard: string;
223
+ businessName: string;
224
+ address: string;
225
+ }
226
+
227
+ interface ICustomerSriService {
228
+ getById(identificationNumber: string): Observable<ApiResponse<CustomerSri>>;
229
+ }
230
+
231
+ declare const CUSTOMER_SRI_SERVICE: InjectionToken<ICustomerSriService>;
232
+ declare const COMPANY_CUSTOMER_MAPPER: InjectionToken<ICompanyCustomerMapper>;
233
+ declare const COMPANY_CUSTOMER_FORM_CONFIG: InjectionToken<CompanyCustomerFormConfig>;
234
+ declare const COMPANY_CUSTOMER_SERVICE: InjectionToken<ICompanyCustomerService>;
235
+
236
+ declare class CustomerValidators {
237
+ static endsWith001(): ValidatorFn;
238
+ static ecuadorianRuc(): ValidatorFn;
239
+ static ecuadorianCedula(): ValidatorFn;
240
+ static email(): ValidatorFn;
241
+ static ecuadorianPhone(): ValidatorFn;
242
+ }
243
+
244
+ export { COMPANY_CUSTOMER_FORM_CONFIG, COMPANY_CUSTOMER_MAPPER, COMPANY_CUSTOMER_SERVICE, CUSTOMER_SRI_SERVICE, CompanyCustomerDefaultMapper, CompanyCustomerFormComponent, CompanyCustomerService, CustomerValidators, MAIN_APP_COMPANY_CUSTOMER_CONFIG, POS_COMPANY_CUSTOMER_CONFIG };
245
+ export type { CompanyCustomerFormConfig, CreditFieldsConfig, Customer, CustomerInfoCredit, FieldConfig, ICompanyCustomerMapper, ICompanyCustomerService };
package/index.d.ts DELETED
@@ -1,288 +0,0 @@
1
- import * as dist_packages_core_src from 'dist/packages/core/src';
2
- import * as _acontplus_core from '@acontplus/core';
3
- import { ApiResponse, PagedResult, IdentificationNumberVo, SRI_DOCUMENT_TYPE } from '@acontplus/core';
4
- import * as _acontplus_ng_customer from '@acontplus/ng-customer';
5
- import * as _angular_core from '@angular/core';
6
- import { OnInit } from '@angular/core';
7
- import { Observable } from 'rxjs';
8
- import { AbstractControl, ValidationErrors, FormGroup, FormControl } from '@angular/forms';
9
- import { MatSelectChange } from '@angular/material/select';
10
-
11
- interface Customer {
12
- id: number;
13
- }
14
-
15
- interface CustomerExternal {
16
- phone: string;
17
- email: string;
18
- idCard: string;
19
- businessName: string;
20
- address: string;
21
- }
22
-
23
- interface CustomerFilter {
24
- search?: string;
25
- limit?: number;
26
- }
27
- interface CustomerSearch {
28
- search?: string;
29
- pageSize?: number;
30
- pageIndex?: number;
31
- }
32
-
33
- interface CustomerRepository {
34
- getAll<T>(obj: T): Promise<ApiResponse<PagedResult<any>>>;
35
- getById(id: number): Promise<ApiResponse<any>>;
36
- create(dto: any): Promise<ApiResponse<any>>;
37
- update(dto: any): Promise<ApiResponse<any>>;
38
- getFormData(): Promise<ApiResponse<any>>;
39
- checkExistence(identificationNumber: string): Promise<ApiResponse<any>>;
40
- updateState(id: number): Promise<ApiResponse<any>>;
41
- search(params: CustomerSearch): Promise<ApiResponse<any>>;
42
- }
43
-
44
- interface CustomerExternalRepository {
45
- getById(id: IdentificationNumberVo): Promise<ApiResponse<CustomerExternal>>;
46
- }
47
-
48
- declare class CustomerUseCase {
49
- private repo;
50
- constructor(repo: CustomerRepository);
51
- getAll(params: any): Promise<dist_packages_core_src.ApiResponse<dist_packages_core_src.PagedResult<any>>>;
52
- getFormData(): Promise<dist_packages_core_src.ApiResponse<any>>;
53
- getById(id: number): Promise<dist_packages_core_src.ApiResponse<any>>;
54
- checkExistence(identificationNumber: string): Promise<dist_packages_core_src.ApiResponse<any>>;
55
- create(params: any): Promise<dist_packages_core_src.ApiResponse<any>>;
56
- update(params: any): Promise<dist_packages_core_src.ApiResponse<any>>;
57
- updateState(id: number): Promise<dist_packages_core_src.ApiResponse<any>>;
58
- search(filter: CustomerSearch): Promise<dist_packages_core_src.ApiResponse<any>>;
59
- }
60
-
61
- declare class CustomerExternalUseCase {
62
- private repo;
63
- constructor(repo: CustomerExternalRepository);
64
- getById(identification: string): Promise<_acontplus_core.ApiResponse<_acontplus_ng_customer.CustomerExternal>>;
65
- }
66
-
67
- declare const CUSTOMER_API: {
68
- BILLING: string;
69
- };
70
-
71
- interface CustomerListItemDto {
72
- index: number;
73
- id: number;
74
- identificationTypeId: number;
75
- idCard: string;
76
- businessName: string;
77
- tradeName: string;
78
- address: string;
79
- phone: string;
80
- email: string;
81
- finalConsumer: boolean;
82
- sriValidation: boolean;
83
- sriValidationName: 'SI' | 'NO';
84
- identificationType: string;
85
- isActive: boolean;
86
- statusName: 'Activo' | 'Inactivo';
87
- isFinalConsumer: boolean;
88
- totalRecords: number;
89
- }
90
- interface CustomerCreateDTO {
91
- name: string;
92
- email: string;
93
- }
94
- interface CustomerUpdateDTO {
95
- name?: string;
96
- email?: string;
97
- }
98
- interface CustomerFilterDTO {
99
- search?: string;
100
- limit?: number;
101
- }
102
- interface CustomerSearchDTO {
103
- /** Texto de búsqueda libre (nombre, identificación, comercio, etc.) */
104
- search?: string;
105
- /** Número de resultados por página */
106
- pageSize?: number;
107
- /** Índice de página (0-based) */
108
- pageIndex?: number;
109
- }
110
-
111
- interface CustomerExternalDto {
112
- phone: string;
113
- email: string;
114
- idCard: string;
115
- businessName: string;
116
- address: string;
117
- }
118
-
119
- declare class CompanySearchMapper {
120
- static toJson(params: CustomerSearch): string;
121
- static fromJson(response: any): any[];
122
- }
123
-
124
- declare class CustomerCreateUpdateMapper {
125
- static toJson(param: any): {
126
- idCliente: number | null | undefined;
127
- idEmpleado: number | null | undefined;
128
- idTipoIdentificacion: any;
129
- idTipoClienteProveedor: number | null | undefined;
130
- idTipoEntidad: number | null | undefined;
131
- idCiudad: number | null | undefined;
132
- idSubContribuyente: number | null | undefined;
133
- idTiempoCredito: number | null | undefined;
134
- idEmpresa: number | null | undefined;
135
- idCargo: number | null | undefined;
136
- numeroIdentificacion: any;
137
- nombreFiscal: any;
138
- nombreComercial: any;
139
- direccion: any;
140
- telefono: any;
141
- correo: any;
142
- placa: any;
143
- montoCredito: any;
144
- nota: any;
145
- validationSri: any;
146
- idFormaPagoSri: number | null | undefined;
147
- estado: any;
148
- infoCrediticia: any;
149
- configValorBruto: any;
150
- birthDate: string | null;
151
- };
152
- static fromJson(response: any): any;
153
- }
154
-
155
- declare class CustomerFormDataMapper {
156
- static toJson(): string;
157
- static fromJson(response: any): any;
158
- }
159
-
160
- declare class CustomerGetByIdMapper {
161
- static fromJson(response: any): any;
162
- }
163
-
164
- declare class ListCustomerMapper {
165
- static toJson(params: any): string;
166
- static fromJson(response: any): any;
167
- }
168
-
169
- declare class CustomerExternalHttpRepository implements CustomerExternalRepository {
170
- private get http();
171
- private get url();
172
- getById(identification: IdentificationNumberVo): Promise<ApiResponse<CustomerExternal>>;
173
- }
174
-
175
- declare class CustomerHttpRepository implements CustomerRepository {
176
- private get http();
177
- private get url();
178
- checkExistence(identificationNumber: string): Promise<ApiResponse<any>>;
179
- getFormData(): Promise<ApiResponse<any>>;
180
- getAll<T>(obj: T): Promise<ApiResponse<PagedResult<any>>>;
181
- create(dto: any): Promise<ApiResponse<any>>;
182
- update(dto: any): Promise<ApiResponse<any>>;
183
- updateState(id: number): Promise<ApiResponse<any>>;
184
- getById(id: number): Promise<ApiResponse<any>>;
185
- search(params: CustomerSearch): Promise<ApiResponse<any>>;
186
- }
187
-
188
- declare class CustomerAddEditComponent implements OnInit {
189
- private readonly dialogRef;
190
- private readonly customerUseCase;
191
- private readonly customerExternalUseCase;
192
- btnText: _angular_core.WritableSignal<string>;
193
- readonly paramsOptions: {
194
- id: number;
195
- descripcion: null | string;
196
- dataOfSri?: boolean;
197
- numeroIdentificacion?: string;
198
- codigoSri?: string;
199
- data: any;
200
- };
201
- readonly params: any;
202
- private notificationService;
203
- title: string;
204
- loading: boolean;
205
- emails: string[];
206
- telephones: string[];
207
- tiemposCredito: _angular_core.WritableSignal<any[]>;
208
- tipoContribuyentes: _angular_core.WritableSignal<any[]>;
209
- tiposCliente: _angular_core.WritableSignal<any[]>;
210
- tiposIdentificacion: _angular_core.WritableSignal<any[]>;
211
- formasPagoSri: _angular_core.WritableSignal<any[]>;
212
- placas: _angular_core.WritableSignal<any[]>;
213
- ciudades: _angular_core.WritableSignal<any[]>;
214
- cargos: _angular_core.WritableSignal<any[]>;
215
- empresas: _angular_core.WritableSignal<any[]>;
216
- employees: _angular_core.WritableSignal<any[]>;
217
- maritalStatuses: _angular_core.WritableSignal<any[]>;
218
- housingTypes: _angular_core.WritableSignal<any[]>;
219
- showRefresh: _angular_core.WritableSignal<boolean>;
220
- endsWith001Validator(control: AbstractControl): ValidationErrors | null;
221
- customerForm: FormGroup<{
222
- direccion: FormControl<string | null>;
223
- idCargo: FormControl<number | null>;
224
- idCliente: FormControl<number | null>;
225
- idEmpresa: FormControl<number | null>;
226
- idFormaPagoSri: FormControl<number | null>;
227
- idTipoClienteProveedor: FormControl<number | null>;
228
- idTipoIdentificacion: FormControl<number | null>;
229
- idSubContribuyente: FormControl<number | null>;
230
- idTiempoCredito: FormControl<number | null>;
231
- idCiudad: FormControl<number | null>;
232
- idEmpleado: FormControl<number | null | undefined>;
233
- nombreFiscal: FormControl<string | null>;
234
- nombreComercial: FormControl<string | null>;
235
- numeroIdentificacion: FormControl<string | null>;
236
- correo: FormControl<string | null>;
237
- telefono: FormControl<string | null>;
238
- placa: FormControl<string | null>;
239
- nota: FormControl<string | null>;
240
- estado: FormControl<boolean | null>;
241
- birthDate: FormControl<Date | null>;
242
- validationSri: FormControl<boolean | null>;
243
- configValorBruto: FormControl<boolean | null>;
244
- dataInfoCred: FormGroup<{
245
- maritalStatusId: FormControl<number | null>;
246
- conyugeNombre: FormControl<string | null>;
247
- conyugeTel: FormControl<string | null>;
248
- refFamNombre: FormControl<string | null>;
249
- refFamTel: FormControl<string | null>;
250
- housingTypeId: FormControl<number | null>;
251
- dirVivienda: FormControl<string | null>;
252
- refDomicilio: FormControl<string | null>;
253
- sector: FormControl<string | null>;
254
- barrio: FormControl<string | null>;
255
- calle: FormControl<string | null>;
256
- }>;
257
- }>;
258
- getCustomer(codigo: string, id: string): void;
259
- getLoadData(): Observable<any>;
260
- ngOnInit(): void;
261
- identificationTypeChange(event: MatSelectChange): void;
262
- updateFormControlNumeroIdentificacion(codigoSri: SRI_DOCUMENT_TYPE.RUC | SRI_DOCUMENT_TYPE.CEDULA): void;
263
- setIdentificationTypeChange(codigoSri: SRI_DOCUMENT_TYPE.RUC | SRI_DOCUMENT_TYPE.CEDULA): void;
264
- get numeroIdentificacionControl(): AbstractControl<string | null, string | null, any> | null;
265
- get birthDateCtrl(): AbstractControl<Date | null, Date | null, any> | null;
266
- onKeyDownGovernmentId($event?: any): void;
267
- private isDataOfSri;
268
- private isCreate;
269
- isUpdate: () => boolean;
270
- onSave(): void;
271
- close(): void;
272
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomerAddEditComponent, never>;
273
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CustomerAddEditComponent, "acp-customer-add-edit", never, {}, {}, never, never, true, never>;
274
- }
275
-
276
- declare class CustomerCard {
277
- customer: _angular_core.InputSignal<CustomerListItemDto>;
278
- editCustomer: _angular_core.OutputEmitterRef<CustomerListItemDto>;
279
- deleteCustomer: _angular_core.OutputEmitterRef<CustomerListItemDto>;
280
- getLogoSliceBusinessName: _angular_core.Signal<string>;
281
- onEditClick(): void;
282
- onDeleteClick(): void;
283
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomerCard, never>;
284
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CustomerCard, "acp-customer-card", never, { "customer": { "alias": "customer"; "required": true; "isSignal": true; }; }, { "editCustomer": "editCustomer"; "deleteCustomer": "deleteCustomer"; }, never, never, true, never>;
285
- }
286
-
287
- export { CUSTOMER_API, CompanySearchMapper, CustomerAddEditComponent, CustomerCard, CustomerCreateUpdateMapper, CustomerExternalHttpRepository, CustomerExternalUseCase, CustomerFormDataMapper, CustomerGetByIdMapper, CustomerHttpRepository, CustomerUseCase, ListCustomerMapper };
288
- export type { Customer, CustomerCreateDTO, CustomerExternal, CustomerExternalDto, CustomerExternalRepository, CustomerFilter, CustomerFilterDTO, CustomerListItemDto, CustomerRepository, CustomerSearch, CustomerSearchDTO, CustomerUpdateDTO };