@jvsoft/utils 1.0.0-alpha.6 → 1.0.0-alpha.7
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/README.md +5 -0
- package/directives/autocomplete-match-validator.directive.d.ts +10 -0
- package/directives/autocomplete.directive.d.ts +23 -0
- package/directives/index.d.ts +5 -0
- package/directives/public-api.d.ts +2 -0
- package/fesm2022/jvsoft-utils-directives.mjs +150 -0
- package/fesm2022/jvsoft-utils-directives.mjs.map +1 -0
- package/fesm2022/jvsoft-utils.mjs +246 -17
- package/fesm2022/jvsoft-utils.mjs.map +1 -1
- package/package.json +9 -5
- package/public-api.d.ts +5 -4
- package/{functions → src/functions}/mat-form-controls/autocomplete.d.ts +21 -2
- package/src/pipes/display-with.pipe.d.ts +14 -0
- package/{pipes → src/pipes}/public-api.d.ts +1 -0
- /package/{classes → src/classes}/data-model.d.ts +0 -0
- /package/{functions → src/functions}/base64.d.ts +0 -0
- /package/{functions → src/functions}/browser.d.ts +0 -0
- /package/{functions → src/functions}/crypto-js.d.ts +0 -0
- /package/{functions → src/functions}/date.d.ts +0 -0
- /package/{functions → src/functions}/dev-log.d.ts +0 -0
- /package/{functions → src/functions}/email.d.ts +0 -0
- /package/{functions → src/functions}/file.d.ts +0 -0
- /package/{functions → src/functions}/forms.d.ts +0 -0
- /package/{functions → src/functions}/http-client.d.ts +0 -0
- /package/{functions → src/functions}/local-storage.d.ts +0 -0
- /package/{functions → src/functions}/mat-form-controls/index.d.ts +0 -0
- /package/{functions → src/functions}/number.d.ts +0 -0
- /package/{functions → src/functions}/object-transformation.d.ts +0 -0
- /package/{functions → src/functions}/objects-arrays.d.ts +0 -0
- /package/{functions → src/functions}/public-api.d.ts +0 -0
- /package/{functions → src/functions}/string.d.ts +0 -0
- /package/{functions → src/functions}/sweetalert.d.ts +0 -0
- /package/{functions → src/functions}/utiles.d.ts +0 -0
- /package/{interfaces → src/interfaces}/datos.d.ts +0 -0
- /package/{interfaces → src/interfaces}/public-api.d.ts +0 -0
- /package/{pipes → src/pipes}/data-en-lista.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/date-diff-string.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/filtro.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/form-control-is-required.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/json-parse.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/no-sanitize.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/tipo-valor-funcion.pipe.d.ts +0 -0
- /package/{pipes → src/pipes}/zero-fill.pipe.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jvsoft/utils",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"description": "JVSOFT Angular Utils",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"tag": "alpha",
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/common": ">=
|
|
11
|
-
"@angular/core": ">=
|
|
12
|
-
"@angular/forms": ">=
|
|
13
|
-
"@angular/material": ">=
|
|
10
|
+
"@angular/common": ">=17.1.0",
|
|
11
|
+
"@angular/core": ">=17.1.0",
|
|
12
|
+
"@angular/forms": ">=17.1.0",
|
|
13
|
+
"@angular/material": ">=17.1.0",
|
|
14
14
|
"@rxweb/reactive-form-validators": ">=13.0.0",
|
|
15
15
|
"crypto-js": "^4.2.0",
|
|
16
16
|
"file-saver": "^2.0.5",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"default": "./fesm2022/jvsoft-utils.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./directives": {
|
|
35
|
+
"types": "./directives/index.d.ts",
|
|
36
|
+
"default": "./fesm2022/jvsoft-utils-directives.mjs"
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
"dependencies": {
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from './classes/data-model';
|
|
2
|
-
export * from './functions/public-api';
|
|
3
|
-
export * from './pipes/public-api';
|
|
4
|
-
export * from './interfaces/public-api';
|
|
1
|
+
export * from './src/classes/data-model';
|
|
2
|
+
export * from './src/functions/public-api';
|
|
3
|
+
export * from './src/pipes/public-api';
|
|
4
|
+
export * from './src/interfaces/public-api';
|
|
5
|
+
export * from './directives/public-api';
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { DestroyRef } from '@angular/core';
|
|
2
3
|
export declare function mostrarValorEnBusqueda(campos: any, idxSel: any): string;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use JvsAutocompleteDirective en su lugar para un enfoque más declarativo y robusto.
|
|
6
|
+
*/
|
|
3
7
|
export declare function changeSelectData(objThis: any, dataFiltro: {
|
|
4
8
|
formControl: AbstractControl;
|
|
5
9
|
data: any[];
|
|
6
10
|
campoBuscar: string | string[];
|
|
7
11
|
variableResultado: string;
|
|
12
|
+
destroyRef?: DestroyRef;
|
|
8
13
|
}): void;
|
|
9
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use JvsAutocompleteDirective en su lugar para un enfoque más declarativo y robusto.
|
|
16
|
+
*/
|
|
17
|
+
export declare function changeSelect(control: any, formControl: AbstractControl, tipo: any, campoBuscar: any, campoFiltro?: null, destroyRef?: DestroyRef): void;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use JvsAutocompleteDirective en su lugar para un enfoque más declarativo y robusto.
|
|
20
|
+
*/
|
|
10
21
|
export declare function changeSelectDataApi(objThis: any, dataFiltro: {
|
|
11
22
|
tipoReq: string;
|
|
12
23
|
campoId?: string;
|
|
@@ -17,8 +28,12 @@ export declare function changeSelectDataApi(objThis: any, dataFiltro: {
|
|
|
17
28
|
queryService: any;
|
|
18
29
|
formControl: AbstractControl;
|
|
19
30
|
variableResultado?: string;
|
|
31
|
+
destroyRef?: DestroyRef;
|
|
20
32
|
}): void;
|
|
21
|
-
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use JvsAutocompleteDirective en su lugar para un enfoque más declarativo y robusto.
|
|
35
|
+
*/
|
|
36
|
+
export declare function changeSelectApi(control: any, queryService: any, formControl: AbstractControl, tipo: any, dataExtra?: {}, dataExtraVariable?: any[] | null, minLength?: number, anonimo?: boolean, destroyRef?: DestroyRef): void;
|
|
22
37
|
/**
|
|
23
38
|
* Comprueba si un valor es una Promesa
|
|
24
39
|
* @param valor - Valor a verificar
|
|
@@ -34,6 +49,9 @@ export declare function seleccionarTextoInput(event: any): void;
|
|
|
34
49
|
* Función genérica para vincular un FormControl con datos desde API o Promise.
|
|
35
50
|
* Preparada para migrar a signals en el futuro.
|
|
36
51
|
*/
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use JvsAutocompleteDirective en su lugar para un enfoque más declarativo y robusto.
|
|
54
|
+
*/
|
|
37
55
|
export declare function changeSelectReformateado(config: {
|
|
38
56
|
objThis: any;
|
|
39
57
|
tipoReq: string;
|
|
@@ -45,4 +63,5 @@ export declare function changeSelectReformateado(config: {
|
|
|
45
63
|
dataExtraVariable?: any[];
|
|
46
64
|
anonimo?: boolean;
|
|
47
65
|
variableResultado?: string;
|
|
66
|
+
destroyRef?: DestroyRef;
|
|
48
67
|
}): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class JvsDisplayWithPipe implements PipeTransform {
|
|
4
|
+
/**
|
|
5
|
+
* Retorna una función compatible con [displayWith] de MatAutocomplete.
|
|
6
|
+
* @param lista La lista de objetos donde buscar.
|
|
7
|
+
* @param campoId El nombre del campo que coincide con el valor del control (ej: 'iCarreraId').
|
|
8
|
+
* @param campoValue El nombre del campo (o campos) a mostrar (ej: 'cCarreraNombre' o ['cCodigo', 'cNombre']).
|
|
9
|
+
* @param opcExtra Lista opcional de objetos extra donde buscar si no se encuentra en la lista principal.
|
|
10
|
+
*/
|
|
11
|
+
transform(lista: any[] | null, campoId: string, campoValue: string | string[], opcExtra?: any[] | null): (value: any) => string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JvsDisplayWithPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<JvsDisplayWithPipe, "jvsDisplayWith", true>;
|
|
14
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|