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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-dsxlibrary",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"description": "Libreria para control de código automatizado.",
|
|
5
5
|
"author": "DevSoftXela",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
"types": "./src/lib/components/index.d.ts",
|
|
26
26
|
"default": "./fesm2022/ngx-dsxlibrary-src-lib-components.mjs"
|
|
27
27
|
},
|
|
28
|
-
"./src/lib/injections": {
|
|
29
|
-
"types": "./src/lib/injections/index.d.ts",
|
|
30
|
-
"default": "./fesm2022/ngx-dsxlibrary-src-lib-injections.mjs"
|
|
31
|
-
},
|
|
32
28
|
"./src/lib/directives": {
|
|
33
29
|
"types": "./src/lib/directives/index.d.ts",
|
|
34
30
|
"default": "./fesm2022/ngx-dsxlibrary-src-lib-directives.mjs"
|
|
35
31
|
},
|
|
36
|
-
"./src/lib/
|
|
37
|
-
"types": "./src/lib/
|
|
38
|
-
"default": "./fesm2022/ngx-dsxlibrary-src-lib-
|
|
32
|
+
"./src/lib/injections": {
|
|
33
|
+
"types": "./src/lib/injections/index.d.ts",
|
|
34
|
+
"default": "./fesm2022/ngx-dsxlibrary-src-lib-injections.mjs"
|
|
39
35
|
},
|
|
40
36
|
"./src/lib/interceptors": {
|
|
41
37
|
"types": "./src/lib/interceptors/index.d.ts",
|
|
42
38
|
"default": "./fesm2022/ngx-dsxlibrary-src-lib-interceptors.mjs"
|
|
43
39
|
},
|
|
44
|
-
"./src/lib/
|
|
45
|
-
"types": "./src/lib/
|
|
46
|
-
"default": "./fesm2022/ngx-dsxlibrary-src-lib-
|
|
40
|
+
"./src/lib/models": {
|
|
41
|
+
"types": "./src/lib/models/index.d.ts",
|
|
42
|
+
"default": "./fesm2022/ngx-dsxlibrary-src-lib-models.mjs"
|
|
47
43
|
},
|
|
48
44
|
"./src/lib/services": {
|
|
49
45
|
"types": "./src/lib/services/index.d.ts",
|
|
50
46
|
"default": "./fesm2022/ngx-dsxlibrary-src-lib-services.mjs"
|
|
51
47
|
},
|
|
48
|
+
"./src/lib/pipe": {
|
|
49
|
+
"types": "./src/lib/pipe/index.d.ts",
|
|
50
|
+
"default": "./fesm2022/ngx-dsxlibrary-src-lib-pipe.mjs"
|
|
51
|
+
},
|
|
52
52
|
"./src/lib/validations": {
|
|
53
53
|
"types": "./src/lib/validations/index.d.ts",
|
|
54
54
|
"default": "./fesm2022/ngx-dsxlibrary-src-lib-validations.mjs"
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class AppMessageErrorComponent {
|
|
5
|
+
control: AbstractControl | null;
|
|
6
|
+
form: FormGroup | null;
|
|
7
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppMessageErrorComponent, never>;
|
|
8
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppMessageErrorComponent, "app-message-error", never, { "control": { "alias": "control"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class KpicardComponent {
|
|
12
|
+
option: _angular_core.InputSignal<"currency" | "integer" | "percent">;
|
|
13
|
+
label: _angular_core.InputSignal<string>;
|
|
14
|
+
iconType: _angular_core.InputSignal<string>;
|
|
15
|
+
color: _angular_core.InputSignal<string | undefined>;
|
|
16
|
+
valor: _angular_core.InputSignal<number>;
|
|
17
|
+
theme: _angular_core.InputSignal<"light" | "dark" | "aqua" | "sunset" | "mint" | "peach" | "plasma" | "nebula">;
|
|
18
|
+
options: Record<'currency' | 'integer' | 'percent', any>;
|
|
19
|
+
getSelectedOption(): any;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KpicardComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵ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>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { AppMessageErrorComponent, KpicardComponent };
|
|
@@ -1,5 +1,81 @@
|
|
|
1
|
+
type InferCacheKeyType<T extends Record<string, string>> = keyof T;
|
|
1
2
|
/**
|
|
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
|
+
* ```
|
|
3
12
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
13
|
+
type InferCacheOptions<T extends Record<string, string>> = {
|
|
14
|
+
[K in keyof T as T[K]]: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare function createInitialCache<T extends Record<string, string>>(cacheKeys: T): {
|
|
17
|
+
-readonly [K in keyof T as T[K]]: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
interface ExportColumn {
|
|
21
|
+
title: string;
|
|
22
|
+
dataKey: string;
|
|
23
|
+
}
|
|
24
|
+
interface Column {
|
|
25
|
+
field: string;
|
|
26
|
+
header?: string;
|
|
27
|
+
customExportHeader: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface typeModel<T> {
|
|
31
|
+
values: T[];
|
|
32
|
+
}
|
|
33
|
+
interface T {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}
|
|
36
|
+
type TipoFechaConversion = 'short' | 'zh';
|
|
37
|
+
interface FechasConversion {
|
|
38
|
+
nombre: string;
|
|
39
|
+
tipo: TipoFechaConversion;
|
|
40
|
+
}
|
|
41
|
+
interface FilterOption {
|
|
42
|
+
value: string;
|
|
43
|
+
field?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type FieldConfig<T> = {
|
|
47
|
+
[K in keyof T]: {
|
|
48
|
+
value: T[K] | null;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
validators?: any[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
interface ResponseHttpModel {
|
|
55
|
+
isSuccess: boolean;
|
|
56
|
+
statusCode: number;
|
|
57
|
+
title: string;
|
|
58
|
+
statusMessage: string;
|
|
59
|
+
isAdmin: boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface ParameterValue {
|
|
63
|
+
value: number;
|
|
64
|
+
}
|
|
65
|
+
interface ParameterSecurity {
|
|
66
|
+
parameterName: string;
|
|
67
|
+
parameterValues: ParameterValue[];
|
|
68
|
+
}
|
|
69
|
+
interface SeguridadITParameter {
|
|
70
|
+
sistemaId: number;
|
|
71
|
+
sistema: string;
|
|
72
|
+
parameterBase: string | null;
|
|
73
|
+
parameterSecurity: ParameterSecurity[];
|
|
74
|
+
}
|
|
75
|
+
interface MyParameterValues {
|
|
76
|
+
parameterName: string;
|
|
77
|
+
values: number[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { createInitialCache };
|
|
81
|
+
export type { Column, ExportColumn, FechasConversion, FieldConfig, FilterOption, InferCacheKeyType, InferCacheOptions, MyParameterValues, ParameterSecurity, ParameterValue, ResponseHttpModel, SeguridadITParameter, T, TipoFechaConversion, typeModel };
|
package/src/lib/pipe/index.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class JsonHighlightPipe implements PipeTransform {
|
|
5
|
+
transform(value: any): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonHighlightPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<JsonHighlightPipe, "jsonHighlight", true>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class TruncatePipe implements PipeTransform {
|
|
11
|
+
/**
|
|
12
|
+
* Transforma una cadena de texto truncándola según los parámetros proporcionados.
|
|
13
|
+
*
|
|
14
|
+
* @param value - La cadena de texto que se desea truncar.
|
|
15
|
+
* @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).
|
|
16
|
+
* @param completeWords - Si es true, evita cortar palabras a la mitad. Por defecto es false.
|
|
17
|
+
* @param ellipsis - La cadena que se añadirá al final del texto truncado. Por defecto es '...'.
|
|
18
|
+
* @returns La cadena truncada con el ellipsis añadido, si es necesario.
|
|
19
|
+
*/
|
|
20
|
+
transform(value: string, limit?: number, completeWords?: boolean, ellipsis?: string): string;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
|
|
22
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { JsonHighlightPipe, TruncatePipe };
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export * from './public-api';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class JsonValuesDebujComponent {
|
|
4
|
-
form: FormGroup;
|
|
5
|
-
private environment;
|
|
6
|
-
private readonly isDevSignal;
|
|
7
|
-
isDev(): boolean;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JsonValuesDebujComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<JsonValuesDebujComponent, "app-json-values-debuj", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -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,9 +0,0 @@
|
|
|
1
|
-
import { SpinnerLoadingService } from '../../services/spinner-loading.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class LoadingComponent {
|
|
4
|
-
currentYear: number;
|
|
5
|
-
constructor();
|
|
6
|
-
_spinnerService: SpinnerLoadingService;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "app-loading", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { AlertaService } from '../../services/alerta.service';
|
|
3
|
-
import { ParameterValuesService } from '../../services/parameter-values.service';
|
|
4
|
-
import { SecurityService } from '../../services/security.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NavbarDsxComponent implements OnInit {
|
|
7
|
-
_securityService: SecurityService;
|
|
8
|
-
_parameterSecurityService: ParameterValuesService;
|
|
9
|
-
_alertaService: AlertaService;
|
|
10
|
-
logoWidth: import("@angular/core").InputSignal<string>;
|
|
11
|
-
appVersion: import("@angular/core").InputSignal<string>;
|
|
12
|
-
urlLogo: import("@angular/core").InputSignal<string>;
|
|
13
|
-
checked: boolean;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
initializeTheme(): void;
|
|
16
|
-
onThemeChange(isDarkMode: boolean): void;
|
|
17
|
-
applyTheme(theme: string): void;
|
|
18
|
-
actualizarSeguridadIT(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarDsxComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarDsxComponent, "app-navbar-dsx", never, { "logoWidth": { "alias": "logoWidth"; "required": false; "isSignal": true; }; "appVersion": { "alias": "appVersion"; "required": false; "isSignal": true; }; "urlLogo": { "alias": "urlLogo"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SelectAllOnFocusDirective {
|
|
3
|
-
selectAll(event: Event): void;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAllOnFocusDirective, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectAllOnFocusDirective, "[appSelectAllOnFocus]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface EnvironmentConfig {
|
|
3
|
-
production: boolean;
|
|
4
|
-
myAppUrl: string;
|
|
5
|
-
tokenName: string;
|
|
6
|
-
tokenNameRF: string;
|
|
7
|
-
sessionStatus: string;
|
|
8
|
-
refreshTokenExpiry: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const ENVIRONMENT: InjectionToken<EnvironmentConfig>;
|
package/lib/models/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './public-api';
|
|
@@ -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
|
-
}
|
package/lib/pipe/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './public-api';
|
|
@@ -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
|
-
}
|
package/lib/pipe/public-api.d.ts
DELETED
|
@@ -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,116 +0,0 @@
|
|
|
1
|
-
import { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';
|
|
2
|
-
import { ResponseHttpModel } from '../models/src/response-http.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Configuración personalizable para las alertas visuales
|
|
6
|
-
*
|
|
7
|
-
* @property icono - Nombre del archivo de imagen ubicado en 'assets/dsxResource/'.
|
|
8
|
-
* Ejemplo: 'success-icon.png'. Por defecto usa 'icon/check02.png'.
|
|
9
|
-
*
|
|
10
|
-
* @property icon - Tipo de icono SweetAlert2 incorporado. Valores posibles:
|
|
11
|
-
* 'success' | 'error' | 'warning' | 'info' | 'question'.
|
|
12
|
-
* Por defecto: 'success'.
|
|
13
|
-
*
|
|
14
|
-
* @property showConfirmButton - Determina si se muestra el botón de confirmación.
|
|
15
|
-
* Cuando es true, desactiva el cierre automático.
|
|
16
|
-
* Por defecto: false.
|
|
17
|
-
*
|
|
18
|
-
* @property confirmButtonText - Texto personalizado para el botón de confirmación.
|
|
19
|
-
* Por defecto: 'Ok'.
|
|
20
|
-
*
|
|
21
|
-
* @property timer - Tiempo en milisegundos para el cierre automático de la alerta.
|
|
22
|
-
* Se ignora si showConfirmButton es true.
|
|
23
|
-
* Por defecto: 2000 (2 segundos).
|
|
24
|
-
*
|
|
25
|
-
* @property imageWidth - Ancho en píxeles para la imagen personalizada.
|
|
26
|
-
* Por defecto: 125.
|
|
27
|
-
*
|
|
28
|
-
* @property imageHeight - Alto en píxeles para la imagen personalizada.
|
|
29
|
-
* Por defecto: 125.
|
|
30
|
-
*
|
|
31
|
-
* @property showImage - Controla si se muestra la imagen personalizada.
|
|
32
|
-
* Cuando es false, solo se muestra el icono de SweetAlert2.
|
|
33
|
-
* Por defecto: true.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* // Ejemplo de configuración básica
|
|
37
|
-
* const options: AlertOptions = {
|
|
38
|
-
* icono: 'custom-icon.png',
|
|
39
|
-
* icon: 'warning',
|
|
40
|
-
* timer: 3000
|
|
41
|
-
* };
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* // Ejemplo de alerta con botón de confirmación
|
|
45
|
-
* const confirmOptions: AlertOptions = {
|
|
46
|
-
* showConfirmButton: true,
|
|
47
|
-
* confirmButtonText: 'Aceptar',
|
|
48
|
-
* showImage: false
|
|
49
|
-
* };
|
|
50
|
-
*/
|
|
51
|
-
interface AlertOptions {
|
|
52
|
-
icono?: string;
|
|
53
|
-
icon?: SweetAlertIcon;
|
|
54
|
-
showConfirmButton?: boolean;
|
|
55
|
-
confirmButtonText?: string;
|
|
56
|
-
timer?: number;
|
|
57
|
-
imageWidth?: number;
|
|
58
|
-
imageHeight?: number;
|
|
59
|
-
showImage?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export declare class AlertaService {
|
|
62
|
-
private toastrService;
|
|
63
|
-
/**
|
|
64
|
-
* @param {number} toastrType - 1. Success 2. Info 3. Warning 4. Error
|
|
65
|
-
* @param {string} toastrTitle - Titulo de la alerta
|
|
66
|
-
* @param {string} toastrMessage - Mensaje de la alerta
|
|
67
|
-
* @param {number} toastrAlign - Alineación de la alerta, por defecto 1. OPCIONES: 0. top-left 1. top-center 2. top-right 3. bottom-left 4. bottom-center 5. bottom-right
|
|
68
|
-
* @param {number} toastrTimer - Tiempo de la alerta default 3000
|
|
69
|
-
* @returns - Retonar una alerta toastr
|
|
70
|
-
* */
|
|
71
|
-
toastrAlerts(toastrType: number, toastrTitle: string, toastrMessage: string, toastrAlign?: number, toastrTimer?: number): void;
|
|
72
|
-
private preloadImage;
|
|
73
|
-
alertConfirm(title: string, text: string, icono: string): Promise<boolean>;
|
|
74
|
-
alertaHtml(titleAlert: string, message: string, icono?: string, timer?: number): Promise<void>;
|
|
75
|
-
/**
|
|
76
|
-
* Muestra una alerta visual personalizada usando SweetAlert2 con múltiples opciones de configuración
|
|
77
|
-
*
|
|
78
|
-
* @param titleAlert Título principal de la alerta (requerido)
|
|
79
|
-
* @param messageHtml Mensaje en formato HTML (requerido)
|
|
80
|
-
* @param options Opciones configurables de la alerta (opcional)
|
|
81
|
-
*
|
|
82
|
-
* @returns Promise<SweetAlertResult> que se resuelve cuando el usuario interactúa con la alerta
|
|
83
|
-
* o cuando se cierra automáticamente. Puedes usar .then() para manejar la respuesta.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* // Alerta básica con icono de éxito y cierre automático
|
|
87
|
-
* alertaHtmlSuccess('Operación exitosa', 'Los datos se guardaron correctamente');
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* // Alerta de error con imagen personalizada
|
|
91
|
-
* alertaHtmlSuccess('Error crítico', 'No se pudo conectar al servidor', {
|
|
92
|
-
* icono: 'error-icon.png',
|
|
93
|
-
* icon: 'error',
|
|
94
|
-
* timer: 5000
|
|
95
|
-
* });
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* // Alerta de confirmación con botón
|
|
99
|
-
* alertaHtmlSuccess('Confirmar acción', '¿Está seguro de eliminar este registro?', {
|
|
100
|
-
* showConfirmButton: true,
|
|
101
|
-
* confirmButtonText: 'Sí, eliminar',
|
|
102
|
-
* icon: 'warning',
|
|
103
|
-
* showImage: false
|
|
104
|
-
* }).then((result) => {
|
|
105
|
-
* if (result.isConfirmed) {
|
|
106
|
-
* // Lógica cuando el usuario confirma
|
|
107
|
-
* }
|
|
108
|
-
* });
|
|
109
|
-
*/
|
|
110
|
-
alertaHtmlSuccess(titleAlert: string, messageHtml: string, options?: AlertOptions): Promise<SweetAlertResult>;
|
|
111
|
-
private configureTimer;
|
|
112
|
-
toastrHttpResponse(response: ResponseHttpModel): void;
|
|
113
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertaService, never>;
|
|
114
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AlertaService>;
|
|
115
|
-
}
|
|
116
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
2
|
-
import { CookieService } from 'ngx-cookie-service';
|
|
3
|
-
import { ModelToken } from '../models/src/token.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthorizeService {
|
|
6
|
-
private environment;
|
|
7
|
-
_cookieService: CookieService;
|
|
8
|
-
helperJwt: JwtHelperService;
|
|
9
|
-
private _isRefreshing;
|
|
10
|
-
private getCookieOptions;
|
|
11
|
-
private setCookie;
|
|
12
|
-
get isRefreshing(): boolean;
|
|
13
|
-
set isRefreshing(value: boolean);
|
|
14
|
-
getToken(): string | null;
|
|
15
|
-
getTokenRefresh(): string | null;
|
|
16
|
-
setLastActivity(): void;
|
|
17
|
-
tokenReload(tokens: ModelToken): void;
|
|
18
|
-
getTokenValid(token: string | null): boolean;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeService>;
|
|
21
|
-
}
|