ngx-dsxlibrary 1.0.53 → 1.0.55
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/fesm2022/ngx-dsxlibrary-src-lib-components.mjs +12 -12
- package/fesm2022/ngx-dsxlibrary-src-lib-components.mjs.map +1 -1
- package/fesm2022/ngx-dsxlibrary-src-lib-pipe.mjs +6 -6
- package/fesm2022/ngx-dsxlibrary-src-lib-pipe.mjs.map +1 -1
- package/fesm2022/ngx-dsxlibrary.mjs +241 -73
- package/fesm2022/ngx-dsxlibrary.mjs.map +1 -1
- package/index.d.ts +646 -3
- package/ngx-dsxlibrary-1.0.55.tgz +0 -0
- package/package.json +11 -11
- package/src/lib/components/index.d.ts +24 -5
- package/src/lib/directives/index.d.ts +2 -5
- package/src/lib/injections/index.d.ts +2 -5
- package/src/lib/interceptors/index.d.ts +2 -5
- package/src/lib/models/index.d.ts +79 -3
- package/src/lib/pipe/index.d.ts +25 -5
- package/src/lib/services/index.d.ts +2 -5
- package/src/lib/validations/index.d.ts +2 -5
- package/lib/components/app-message-error/app-message-error.component.d.ts +0 -8
- package/lib/components/index.d.ts +0 -1
- package/lib/components/json-values-debuj/json-values-debuj.component.d.ts +0 -10
- package/lib/components/kpicard/kpicard.component.d.ts +0 -13
- package/lib/components/loading/loading.component.d.ts +0 -9
- package/lib/components/navbar-dsx/navbar-dsx.component.d.ts +0 -21
- package/lib/components/public-api.d.ts +0 -2
- package/lib/directives/select-all-on-focus.directive.d.ts +0 -6
- package/lib/injections/cache.token.d.ts +0 -2
- package/lib/injections/environment.token.d.ts +0 -10
- package/lib/injections/parameterSecurity.d.ts +0 -3
- package/lib/interceptors/http-authorize.interceptor.d.ts +0 -2
- package/lib/models/index.d.ts +0 -1
- package/lib/models/public-api.d.ts +0 -6
- package/lib/models/src/cache.types.d.ts +0 -18
- package/lib/models/src/column.model.d.ts +0 -9
- package/lib/models/src/error.model.d.ts +0 -9
- package/lib/models/src/extensions.model.d.ts +0 -15
- package/lib/models/src/field-config.model.d.ts +0 -7
- package/lib/models/src/response-http.model.d.ts +0 -7
- package/lib/models/src/securityParameter.model.d.ts +0 -17
- package/lib/models/src/token.model.d.ts +0 -5
- package/lib/pipe/index.d.ts +0 -1
- package/lib/pipe/json-highlight.pipe.d.ts +0 -7
- package/lib/pipe/public-api.d.ts +0 -2
- package/lib/pipe/truncate.pipe.d.ts +0 -16
- package/lib/services/alerta.service.d.ts +0 -116
- package/lib/services/authorize.service.d.ts +0 -21
- package/lib/services/cache.service.d.ts +0 -40
- package/lib/services/endpoint.service.d.ts +0 -14
- package/lib/services/error-handler.service.d.ts +0 -9
- package/lib/services/parameter-values.service.d.ts +0 -11
- package/lib/services/security.service.d.ts +0 -23
- package/lib/services/spinner-loading.service.d.ts +0 -9
- package/lib/services/utility-add.service.d.ts +0 -112
- package/lib/validations/addons.validators.d.ts +0 -32
- package/ngx-dsxlibrary-1.0.53.tgz +0 -0
- package/public-api.d.ts +0 -19
- package/src/lib/components/app-message-error/app-message-error.component.d.ts +0 -8
- package/src/lib/components/kpicard/kpicard.component.d.ts +0 -13
- package/src/lib/components/public-api.d.ts +0 -2
- package/src/lib/directives/public-api.d.ts +0 -1
- package/src/lib/injections/public-api.d.ts +0 -1
- package/src/lib/interceptors/public-api.d.ts +0 -1
- package/src/lib/models/public-api.d.ts +0 -6
- package/src/lib/models/src/cache.types.d.ts +0 -18
- package/src/lib/models/src/column.model.d.ts +0 -9
- package/src/lib/models/src/extensions.model.d.ts +0 -15
- package/src/lib/models/src/field-config.model.d.ts +0 -7
- package/src/lib/models/src/response-http.model.d.ts +0 -7
- package/src/lib/models/src/securityParameter.model.d.ts +0 -17
- package/src/lib/pipe/json-highlight.pipe.d.ts +0 -7
- package/src/lib/pipe/public-api.d.ts +0 -2
- package/src/lib/pipe/truncate.pipe.d.ts +0 -16
- package/src/lib/services/public-api.d.ts +0 -1
- package/src/lib/validations/public-api.d.ts +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { InferCacheOptions } from '../models/src/cache.types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CacheService<T extends Record<string, string>> {
|
|
4
|
-
/**
|
|
5
|
-
* Mapa de claves simbólicas a claves reales de caché.
|
|
6
|
-
* Se inyecta desde el proyecto consumidor mediante `CACHE_KEYS`.
|
|
7
|
-
*/
|
|
8
|
-
private keys;
|
|
9
|
-
/**
|
|
10
|
-
* Servicio de alerta utilizado para mostrar notificaciones al usuario.
|
|
11
|
-
*/
|
|
12
|
-
private alert;
|
|
13
|
-
/**
|
|
14
|
-
* Estado reactivo que contiene un objeto donde cada propiedad (clave real de caché)
|
|
15
|
-
* tiene un valor booleano que indica si el caché ha sido invalidado (`true`)
|
|
16
|
-
* o sigue siendo válido (`false`).
|
|
17
|
-
*
|
|
18
|
-
* Este estado es tipado automáticamente en función de los valores de `T`.
|
|
19
|
-
*/
|
|
20
|
-
private _options;
|
|
21
|
-
/**
|
|
22
|
-
* Obtiene el estado actual del caché.
|
|
23
|
-
* Cada propiedad representa una clave real de caché con su valor booleano.
|
|
24
|
-
*/
|
|
25
|
-
get options(): InferCacheOptions<T>;
|
|
26
|
-
/**
|
|
27
|
-
* Invalida una o más claves simbólicas, marcando su correspondiente
|
|
28
|
-
* propiedad de caché como `true` (invalidada).
|
|
29
|
-
*
|
|
30
|
-
* @param keysToInvalidate - Lista de claves simbólicas (`keyof T`) a invalidar.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* cacheService.invalidate(['cliente', 'empresa']);
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
invalidate(keysToInvalidate?: (keyof T)[] | null): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CacheService<any>, never>;
|
|
39
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CacheService<any>>;
|
|
40
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ResponseHttpModel } from '../models/src/response-http.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EndpointService<T> {
|
|
5
|
-
private http;
|
|
6
|
-
private environment;
|
|
7
|
-
private getUrl;
|
|
8
|
-
list(endpoint: string, invalidateCache?: boolean): Observable<T[]>;
|
|
9
|
-
edit(endpoint: string, id: number): Observable<T>;
|
|
10
|
-
save(endpoint: string, values: T): Observable<ResponseHttpModel>;
|
|
11
|
-
delete(endpoint: string, values: T, softDelete?: boolean): Observable<ResponseHttpModel>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EndpointService<any>, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EndpointService<any>>;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { AlertaService } from './alerta.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ErrorHandlerService {
|
|
5
|
-
_serviceAlerta: AlertaService;
|
|
6
|
-
handleErrorResponse(error: HttpErrorResponse): import("rxjs").Observable<never>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorHandlerService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorHandlerService>;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MyParameterValues, SeguridadITParameter } from '../models/src/securityParameter.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ParameterValuesService {
|
|
4
|
-
private initialParameters;
|
|
5
|
-
private _dataParameter;
|
|
6
|
-
get dataParameter(): MyParameterValues[];
|
|
7
|
-
set dataParameter(values: MyParameterValues[]);
|
|
8
|
-
getAllParameterValues(data: SeguridadITParameter): MyParameterValues[];
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ParameterValuesService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ParameterValuesService>;
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SeguridadITParameter } from '../models/src/securityParameter.model';
|
|
3
|
-
import { ModelToken } from '../models/src/token.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SecurityService {
|
|
6
|
-
private http;
|
|
7
|
-
private environment;
|
|
8
|
-
private urlApi;
|
|
9
|
-
/**
|
|
10
|
-
* Método para obtener un nuevo token de acceso utilizando un refresh token.
|
|
11
|
-
* @param refreshToken El refresh token que se utilizará para obtener un nuevo token de acceso.
|
|
12
|
-
* @returns Un Observable que emite un objeto de tipo ModelToken.
|
|
13
|
-
*/
|
|
14
|
-
tokenRefresh(refreshToken: string): Observable<ModelToken>;
|
|
15
|
-
/**
|
|
16
|
-
* Método para obtener los parámetros de seguridad.
|
|
17
|
-
* @param invalidCacheParam Indica si se debe invalidar la caché (opcional, por defecto es false).
|
|
18
|
-
* @returns Un Observable que emite un objeto de tipo SeguridadITParameter.
|
|
19
|
-
*/
|
|
20
|
-
getParameterSecurity(invalidCacheParam?: boolean): Observable<SeguridadITParameter>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SecurityService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SecurityService>;
|
|
23
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SpinnerLoadingService {
|
|
3
|
-
spinnerVisible: import("@angular/core").WritableSignal<boolean>;
|
|
4
|
-
constructor();
|
|
5
|
-
show(): void;
|
|
6
|
-
hide(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerLoadingService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SpinnerLoadingService>;
|
|
9
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { FormBuilder, FormGroup, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { FechasConversion, FilterOption, typeModel } from '../models/src/extensions.model';
|
|
3
|
-
import { FieldConfig } from '../models/src/field-config.model';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UtilityAddService {
|
|
7
|
-
private _serviceAlerta;
|
|
8
|
-
private environment;
|
|
9
|
-
/**
|
|
10
|
-
* Convierte una fecha a una cadena de texto formateada según la zona horaria especificada.
|
|
11
|
-
*
|
|
12
|
-
* @param {string | Date} fecha - La fecha que se desea convertir. Puede ser una cadena de texto o un objeto Date.
|
|
13
|
-
* @returns {string | null} - La fecha formateada en la zona horaria especificada o null si la fecha es null.
|
|
14
|
-
*/
|
|
15
|
-
convertirFechaSegunZonaHoraria(fecha: string | Date): string | null;
|
|
16
|
-
/**
|
|
17
|
-
* Convierte una fecha a un objeto Date en formato ISO, opcionalmente ajustando la hora al inicio del día.
|
|
18
|
-
*
|
|
19
|
-
* @param {string | Date} fecha - La fecha que se desea convertir. Puede ser una cadena de texto o un objeto Date.
|
|
20
|
-
* @param {boolean} initHour - Si es true, la hora se ajusta al inicio del día (00:00:00).
|
|
21
|
-
* @returns {Date | null} - La fecha convertida en formato Date o null si la fecha es null.
|
|
22
|
-
*/
|
|
23
|
-
convertirFechaISOString(fecha: string | Date, initHour?: boolean): Date | null;
|
|
24
|
-
/**
|
|
25
|
-
* Convierte una fecha a una cadena de texto en formato corto (YYYY-MM-DD).
|
|
26
|
-
*
|
|
27
|
-
* @param {string | Date} fecha - La fecha que se desea convertir. Puede ser una cadena de texto o un objeto Date.
|
|
28
|
-
* @param {boolean} initHour - Si es true, la hora se ajusta al inicio del día (00:00:00).
|
|
29
|
-
* @returns {string | null} - La fecha formateada en formato corto (YYYY-MM-DD) o null si la fecha es null.
|
|
30
|
-
*/
|
|
31
|
-
convertirFechaShort(fecha: string | Date, initHour?: boolean): string | null;
|
|
32
|
-
/**
|
|
33
|
-
* Convierte una fecha a una cadena de texto que representa solo la hora (HH:mm).
|
|
34
|
-
*
|
|
35
|
-
* @param {string | Date} fecha - La fecha que se desea convertir. Puede ser una cadena de texto o un objeto Date.
|
|
36
|
-
* @returns {string | null} - La hora formateada (HH:mm) o null si la fecha es null.
|
|
37
|
-
*/
|
|
38
|
-
convertirFechaTime(fecha: string | Date): string | null;
|
|
39
|
-
/**
|
|
40
|
-
* Convierte una fecha a una cadena de texto en formato timestamp (YYYYMMDD).
|
|
41
|
-
*
|
|
42
|
-
* @param {string | Date} fecha - La fecha que se desea convertir. Puede ser una cadena de texto o un objeto Date.
|
|
43
|
-
* @returns {string | null} - La fecha formateada en formato timestamp (YYYYMMDD) o null si la fecha es null.
|
|
44
|
-
*/
|
|
45
|
-
convertirTimeStampString(fecha: string | Date): string | null;
|
|
46
|
-
/**
|
|
47
|
-
* Crea un FormGroup tipado a partir de una configuración de campos.
|
|
48
|
-
*
|
|
49
|
-
* @param {FormBuilder} fb - Instancia de FormBuilder para crear el FormGroup.
|
|
50
|
-
* @param {FieldConfig<T>} config - Configuración de los campos del formulario.
|
|
51
|
-
* @param {ValidatorFn[]} groupValidators - Validadores adicionales a nivel de grupo.
|
|
52
|
-
* @returns {FormGroup} - El FormGroup creado.
|
|
53
|
-
*/
|
|
54
|
-
createTypedForm<T>(fb: FormBuilder, config: FieldConfig<T>, groupValidators?: ValidatorFn[]): FormGroup;
|
|
55
|
-
/**
|
|
56
|
-
* Sanitiza un modelo obteniendo valores de un formulario, aplicando conversiones de fecha según los campos especificados.
|
|
57
|
-
*
|
|
58
|
-
* @template T - El tipo genérico del modelo a procesar.
|
|
59
|
-
* @param form - El formulario reactivo de Angular del que se obtendrán los valores.
|
|
60
|
-
* @param campos - Un array de objetos que especifican los campos de fecha y el tipo de conversión a aplicar. Cada objeto debe contener:
|
|
61
|
-
* - `nombre`: El nombre del campo de fecha en el modelo.
|
|
62
|
-
* - `tipo`: El tipo de conversión que se debe aplicar (por ejemplo, `'short'` o `'zh'`).
|
|
63
|
-
* @param fieldName - (Opcional) El nombre de un campo específico en el formulario que contiene los datos. Si no se proporciona, se obtendrán todos los valores del formulario.
|
|
64
|
-
* @returns Un objeto del tipo `typeModel<T>` que contiene un array `values` con los datos procesados y las conversiones de fecha aplicadas.
|
|
65
|
-
* @throws Error - Si el campo especificado no existe en el formulario, o si un campo de fecha especificado no existe en los datos.
|
|
66
|
-
*/
|
|
67
|
-
sanitizarModelo<T>(form: any, campos: FechasConversion[], fieldName?: string): typeModel<T>;
|
|
68
|
-
/**
|
|
69
|
-
* Convierte una fecha al formato especificado.
|
|
70
|
-
*
|
|
71
|
-
* @param fecha - La fecha en formato string que se desea convertir.
|
|
72
|
-
* Debe estar en un formato reconocible por `Date` o en ISO 8601.
|
|
73
|
-
* @param tipo - El tipo de conversión a realizar. Actualmente soporta:
|
|
74
|
-
* - `'short'`: Convierte la fecha a un formato corto (día/mes/año).
|
|
75
|
-
* - `'zh'`: Convierte la fecha considerando la zona horaria configurada.
|
|
76
|
-
* @returns La fecha convertida como string según el tipo especificado.
|
|
77
|
-
* @throws Error - Si el tipo de conversión no es válido o soportado.
|
|
78
|
-
*/
|
|
79
|
-
private convertirFecha;
|
|
80
|
-
/**
|
|
81
|
-
* Maneja la respuesta de un archivo descargable
|
|
82
|
-
* @param fileObservable Observable que emite el Blob del archivo
|
|
83
|
-
* @param actionId 0 para abrir en nueva ventana, 1 para descargar
|
|
84
|
-
* @param fileName Nombre del archivo sin extensión
|
|
85
|
-
*/
|
|
86
|
-
handleFileResponse(fileObservable: Observable<Blob>, actionId: number, fileName: string): void;
|
|
87
|
-
private isExcelFile;
|
|
88
|
-
private getFileExtension;
|
|
89
|
-
private handleNonExcelFiles;
|
|
90
|
-
private forceDownload;
|
|
91
|
-
private revokeObjectUrl;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param message - Texto que se desea mostrar en consola
|
|
95
|
-
* solo se visualiza en desarrollo para evitar mostrar información innecesaria en producción
|
|
96
|
-
*/
|
|
97
|
-
logIfNotProduction(message: any): void;
|
|
98
|
-
/**
|
|
99
|
-
* Marca todos los controles de un formulario como "tocados" y muestra un mensaje de alerta.
|
|
100
|
-
* @param form - El formulario que se va a validar.
|
|
101
|
-
*/
|
|
102
|
-
checkFormValid(form: FormGroup): void;
|
|
103
|
-
/**
|
|
104
|
-
* Obtiene valores únicos de un campo específico de un array de objetos
|
|
105
|
-
* @param data Array de objetos de tipo T
|
|
106
|
-
* @param field Campo del objeto del cual extraer valores únicos
|
|
107
|
-
* @returns FilterOption[] Listado filtrado, tipado y ordenado alfabéticamente
|
|
108
|
-
*/
|
|
109
|
-
getUniqueValues<T>(data: T[], field: keyof T): FilterOption[];
|
|
110
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityAddService, never>;
|
|
111
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityAddService>;
|
|
112
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* Valida que el control contenga un rango de fechas válido (dos fechas no nulas y válidas).
|
|
4
|
-
*/
|
|
5
|
-
export declare function dateRangeValidator(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
/**
|
|
7
|
-
* Valida que una fecha única esté dentro de un rango mínimo y máximo.
|
|
8
|
-
* @param minDate Fecha mínima permitida.
|
|
9
|
-
* @param maxDate Fecha máxima permitida.
|
|
10
|
-
*/
|
|
11
|
-
export declare function dateMinMaxValidator(minDate: Date, maxDate: Date): (control: AbstractControl) => ValidationErrors | null;
|
|
12
|
-
/**
|
|
13
|
-
* Valida que al menos uno de los campos especificados esté lleno.
|
|
14
|
-
* @param fields Los nombres de los campos a validar.
|
|
15
|
-
*/
|
|
16
|
-
export declare function atLeastOneFieldRequiredValidator(fields: string[]): (formGroup: AbstractControl) => ValidationErrors | null;
|
|
17
|
-
/**
|
|
18
|
-
* Validador personalizado para verificar si un NIT (Número de Identificación Tributaria) es válido.
|
|
19
|
-
* Este validador se puede usar en formularios reactivos de Angular.
|
|
20
|
-
*
|
|
21
|
-
* @param control - El control del formulario que contiene el valor del NIT.
|
|
22
|
-
* @returns Un objeto de error si el NIT no es válido, o `null` si el NIT es válido.
|
|
23
|
-
*/
|
|
24
|
-
export declare function nitValidator(control: AbstractControl): ValidationErrors | null;
|
|
25
|
-
/**
|
|
26
|
-
* Validador personalizado para verificar si un CUI (Código Único de Identificación) es válido.
|
|
27
|
-
* Este validador se puede usar en formularios reactivos de Angular.
|
|
28
|
-
*
|
|
29
|
-
* @param control - El control del formulario que contiene el valor del CUI.
|
|
30
|
-
* @returns Un objeto de error si el CUI no es válido, o `null` si el CUI es válido.
|
|
31
|
-
*/
|
|
32
|
-
export declare function cuiValidator(control: AbstractControl): ValidationErrors | null;
|
|
Binary file
|
package/public-api.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './lib/components';
|
|
2
|
-
export * from './lib/components/json-values-debuj/json-values-debuj.component';
|
|
3
|
-
export * from './lib/components/loading/loading.component';
|
|
4
|
-
export * from './lib/components/navbar-dsx/navbar-dsx.component';
|
|
5
|
-
export * from './lib/directives/select-all-on-focus.directive';
|
|
6
|
-
export * from './lib/injections/cache.token';
|
|
7
|
-
export * from './lib/injections/environment.token';
|
|
8
|
-
export * from './lib/injections/parameterSecurity';
|
|
9
|
-
export * from './lib/interceptors/http-authorize.interceptor';
|
|
10
|
-
export * from './lib/models';
|
|
11
|
-
export * from './lib/pipe';
|
|
12
|
-
export * from './lib/services/alerta.service';
|
|
13
|
-
export * from './lib/services/authorize.service';
|
|
14
|
-
export * from './lib/services/cache.service';
|
|
15
|
-
export * from './lib/services/endpoint.service';
|
|
16
|
-
export * from './lib/services/parameter-values.service';
|
|
17
|
-
export * from './lib/services/security.service';
|
|
18
|
-
export * from './lib/services/utility-add.service';
|
|
19
|
-
export * from './lib/validations/addons.validators';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AppMessageErrorComponent {
|
|
4
|
-
control: AbstractControl | null;
|
|
5
|
-
form: FormGroup | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppMessageErrorComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppMessageErrorComponent, "app-message-error", never, { "control": { "alias": "control"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class KpicardComponent {
|
|
3
|
-
option: import("@angular/core").InputSignal<"currency" | "integer" | "percent">;
|
|
4
|
-
label: import("@angular/core").InputSignal<string>;
|
|
5
|
-
iconType: import("@angular/core").InputSignal<string>;
|
|
6
|
-
color: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
-
valor: import("@angular/core").InputSignal<number>;
|
|
8
|
-
theme: import("@angular/core").InputSignal<"light" | "dark" | "aqua" | "sunset" | "mint" | "peach" | "plasma" | "nebula">;
|
|
9
|
-
options: Record<'currency' | 'integer' | 'percent', any>;
|
|
10
|
-
getSelectedOption(): any;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KpicardComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KpicardComponent, "app-kpicard", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "valor": { "alias": "valor"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type InferCacheKeyType<T extends Record<string, string>> = keyof T;
|
|
2
|
-
/**
|
|
3
|
-
* Transforma un tipo de mapa `T` cuyas claves son simbólicas
|
|
4
|
-
* y cuyos valores son nombres de propiedades reales de caché,
|
|
5
|
-
* a un objeto donde esas propiedades reales son claves booleanas.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* type T = { cliente: 'invalidateCacheCliente' };
|
|
10
|
-
* InferCacheOptions<T> // { invalidateCacheCliente: boolean }
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export type InferCacheOptions<T extends Record<string, string>> = {
|
|
14
|
-
[K in keyof T as T[K]]: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare function createInitialCache<T extends Record<string, string>>(cacheKeys: T): {
|
|
17
|
-
-readonly [K in keyof T as T[K]]: boolean;
|
|
18
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface typeModel<T> {
|
|
2
|
-
values: T[];
|
|
3
|
-
}
|
|
4
|
-
export interface T {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export type TipoFechaConversion = 'short' | 'zh';
|
|
8
|
-
export interface FechasConversion {
|
|
9
|
-
nombre: string;
|
|
10
|
-
tipo: TipoFechaConversion;
|
|
11
|
-
}
|
|
12
|
-
export interface FilterOption {
|
|
13
|
-
value: string;
|
|
14
|
-
field?: string;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ParameterValue {
|
|
2
|
-
value: number;
|
|
3
|
-
}
|
|
4
|
-
export interface ParameterSecurity {
|
|
5
|
-
parameterName: string;
|
|
6
|
-
parameterValues: ParameterValue[];
|
|
7
|
-
}
|
|
8
|
-
export interface SeguridadITParameter {
|
|
9
|
-
sistemaId: number;
|
|
10
|
-
sistema: string;
|
|
11
|
-
parameterBase: string | null;
|
|
12
|
-
parameterSecurity: ParameterSecurity[];
|
|
13
|
-
}
|
|
14
|
-
export interface MyParameterValues {
|
|
15
|
-
parameterName: string;
|
|
16
|
-
values: number[];
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class JsonHighlightPipe implements PipeTransform {
|
|
4
|
-
transform(value: any): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JsonHighlightPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<JsonHighlightPipe, "jsonHighlight", true>;
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TruncatePipe implements PipeTransform {
|
|
4
|
-
/**
|
|
5
|
-
* Transforma una cadena de texto truncándola según los parámetros proporcionados.
|
|
6
|
-
*
|
|
7
|
-
* @param value - La cadena de texto que se desea truncar.
|
|
8
|
-
* @param limit - El número máximo de caracteres permitidos. Por defecto es 100. Si no se encuentra un espacio dentro del límite, usa el límite original (15).
|
|
9
|
-
* @param completeWords - Si es true, evita cortar palabras a la mitad. Por defecto es false.
|
|
10
|
-
* @param ellipsis - La cadena que se añadirá al final del texto truncado. Por defecto es '...'.
|
|
11
|
-
* @returns La cadena truncada con el ellipsis añadido, si es necesario.
|
|
12
|
-
*/
|
|
13
|
-
transform(value: string, limit?: number, completeWords?: boolean, ellipsis?: string): string;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|