@jvsoft/utils 0.0.13-alpha.5 → 1.0.0-alpha.10

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.
Files changed (72) hide show
  1. package/README.md +5 -0
  2. package/directives/auto-select-first.directive.d.ts +13 -0
  3. package/directives/autocomplete-match-validator.directive.d.ts +10 -0
  4. package/directives/autocomplete.directive.d.ts +23 -0
  5. package/{src/functions → directives}/index.d.ts +1 -1
  6. package/directives/popover/popover-listener.directive.d.ts +12 -0
  7. package/directives/popover/popover-panel.component.d.ts +13 -0
  8. package/directives/popover/popover.directive.d.ts +23 -0
  9. package/directives/popover/popover.interface.d.ts +8 -0
  10. package/directives/popover/popover.service.d.ts +17 -0
  11. package/directives/public-api.d.ts +8 -0
  12. package/fesm2022/jvsoft-utils-directives.mjs +459 -0
  13. package/fesm2022/jvsoft-utils-directives.mjs.map +1 -0
  14. package/fesm2022/{jvsoft-utils-src-functions.mjs → jvsoft-utils-functions.mjs} +543 -190
  15. package/fesm2022/jvsoft-utils-functions.mjs.map +1 -0
  16. package/fesm2022/{jvsoft-utils-src-interfaces.mjs → jvsoft-utils-interfaces.mjs} +1 -1
  17. package/fesm2022/jvsoft-utils-interfaces.mjs.map +1 -0
  18. package/fesm2022/{jvsoft-utils-src-pipes.mjs → jvsoft-utils-pipes.mjs} +57 -2
  19. package/fesm2022/jvsoft-utils-pipes.mjs.map +1 -0
  20. package/fesm2022/jvsoft-utils-services.mjs +105 -0
  21. package/fesm2022/jvsoft-utils-services.mjs.map +1 -0
  22. package/fesm2022/jvsoft-utils.mjs +1142 -196
  23. package/fesm2022/jvsoft-utils.mjs.map +1 -1
  24. package/functions/base64.d.ts +87 -0
  25. package/functions/dev-log.d.ts +97 -0
  26. package/functions/index.d.ts +4 -0
  27. package/functions/mat-form-controls/autocomplete.d.ts +43 -27
  28. package/functions/objects-arrays.d.ts +13 -97
  29. package/functions/public-api.d.ts +1 -0
  30. package/interfaces/index.d.ts +4 -0
  31. package/package.json +27 -17
  32. package/pipes/display-with.pipe.d.ts +14 -0
  33. package/pipes/index.d.ts +4 -0
  34. package/pipes/public-api.d.ts +1 -0
  35. package/public-api.d.ts +6 -4
  36. package/{src/pipes → services}/index.d.ts +1 -1
  37. package/services/public-api.d.ts +1 -0
  38. package/services/reloj.service.d.ts +31 -0
  39. package/fesm2022/jvsoft-utils-src-functions.mjs.map +0 -1
  40. package/fesm2022/jvsoft-utils-src-interfaces.mjs.map +0 -1
  41. package/fesm2022/jvsoft-utils-src-pipes.mjs.map +0 -1
  42. package/src/functions/base64.d.ts +0 -2
  43. package/src/functions/browser.d.ts +0 -1
  44. package/src/functions/crypto-js.d.ts +0 -2
  45. package/src/functions/date.d.ts +0 -3
  46. package/src/functions/email.d.ts +0 -2
  47. package/src/functions/file.d.ts +0 -10
  48. package/src/functions/forms.d.ts +0 -23
  49. package/src/functions/http-client.d.ts +0 -2
  50. package/src/functions/local-storage.d.ts +0 -29
  51. package/src/functions/mat-form-controls/autocomplete.d.ts +0 -51
  52. package/src/functions/mat-form-controls/index.d.ts +0 -2
  53. package/src/functions/number.d.ts +0 -2
  54. package/src/functions/object-transformation.d.ts +0 -2
  55. package/src/functions/objects-arrays.d.ts +0 -147
  56. package/src/functions/public-api.d.ts +0 -16
  57. package/src/functions/string.d.ts +0 -23
  58. package/src/functions/sweetalert.d.ts +0 -5
  59. package/src/functions/utiles.d.ts +0 -1
  60. package/src/interfaces/datos.d.ts +0 -4
  61. package/src/interfaces/index.d.ts +0 -5
  62. package/src/interfaces/public-api.d.ts +0 -1
  63. package/src/pipes/data-en-lista.pipe.d.ts +0 -8
  64. package/src/pipes/date-diff-string.pipe.d.ts +0 -17
  65. package/src/pipes/filtro.pipe.d.ts +0 -18
  66. package/src/pipes/form-control-is-required.pipe.d.ts +0 -9
  67. package/src/pipes/json-parse.pipe.d.ts +0 -7
  68. package/src/pipes/no-sanitize.pipe.d.ts +0 -10
  69. package/src/pipes/public-api.d.ts +0 -8
  70. package/src/pipes/tipo-valor-funcion.pipe.d.ts +0 -9
  71. package/src/pipes/zero-fill.pipe.d.ts +0 -8
  72. /package/{classes → src/classes}/data-model.d.ts +0 -0
@@ -1,23 +0,0 @@
1
- export declare function generateRandomString(length: number): string;
2
- /**
3
- * Obtiene el host (hostname) de una URL o cadena host[:port].
4
- * Opcionalmente puede devolver también el puerto si está presente.
5
- *
6
- * - Acepta inputs como:
7
- * 'https://example.com/path', 'example.com:3000', 'localhost', 'http://[::1]:4200'
8
- * - Usa la API URL cuando es posible (más robusta) y cae a un regex de respaldo.
9
- *
10
- * @param url Cadena que representa una URL o host
11
- * @param options
12
- * @param options.includePort Si es true, incluye":puerto" cuando exista (por defecto false)
13
- * @param options.includeProtocol Incluye "http://" o "https://" según corresponda (por defecto false)
14
- */
15
- export declare function obtenerHostDesdeUrl(url: string | null | undefined, options?: {
16
- includePort?: boolean;
17
- includeProtocol?: boolean;
18
- }): string | null;
19
- /** @deprecated Alias compatible (deprecated) — preferir usar `obtenerHostDesdeUrl`. */
20
- export declare const extraerDominio: (url: string | null | undefined, options?: {
21
- includePort?: boolean;
22
- includeProtocol?: boolean;
23
- }) => string | null;
@@ -1,5 +0,0 @@
1
- import { SweetAlertOptions, SweetAlertResult } from 'sweetalert2';
2
- export declare function mensajeAlerta(tipo: 'success' | 'error' | 'info' | 'warning' | 'question', titulo: string, mensaje: string, opciones?: SweetAlertOptions): Promise<SweetAlertResult<any>>;
3
- export declare function mensajeTimer(tipo: 'success' | 'error' | 'info' | 'warning' | 'question', titulo: string, mensaje: string, milisegundos?: number, showLoading?: boolean, opciones?: SweetAlertOptions): Promise<SweetAlertResult<any>>;
4
- export declare function mensajeConfirmacion(tipo: 'success' | 'error' | 'info' | 'warning' | 'question', titulo: any, mensaje: any, opciones?: SweetAlertOptions): Promise<SweetAlertResult<Awaited<any>>>;
5
- export declare function mensajeToast(tipo: 'success' | 'error' | 'info' | 'warning' | 'question', titulo: string, mensaje: string, opciones?: SweetAlertOptions): Promise<SweetAlertResult<any>>;
@@ -1 +0,0 @@
1
- export declare function verificarRUC(ruc: string): boolean;
@@ -1,4 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- export interface DataServidor {
3
- [key: string]: BehaviorSubject<any>;
4
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@jvsoft/utils/src/interfaces" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './datos';
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DataEnListaPipe implements PipeTransform {
4
- transform(coleccion: object[], idBuscar: string | string[], dato: any): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DataEnListaPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<DataEnListaPipe, "dataEnLista", true>;
7
- }
8
- export declare function dataEnLista(coleccion: object[], idBuscar: string | string[], dato: any): any;
@@ -1,17 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DateDiffStringPipe implements PipeTransform {
4
- transform(startingDate: Date, endingDate: Date): any;
5
- separarMilisegundos(milisegundos: any): {
6
- years: number;
7
- months: number;
8
- weeks: number;
9
- days: number;
10
- hours: number;
11
- minutes: number;
12
- seconds: number;
13
- };
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DateDiffStringPipe, never>;
15
- static ɵpipe: i0.ɵɵPipeDeclaration<DateDiffStringPipe, "dateDiffString", true>;
16
- }
17
- export declare function dateDiffString(startingDate: Date, endingDate: Date): any;
@@ -1,18 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- interface OpcionesBusqueda {
4
- texto: string;
5
- longitudMinima?: number;
6
- campo?: string | string[];
7
- mostrarObligado?: MostrarObligado;
8
- }
9
- interface MostrarObligado {
10
- campo: string;
11
- items: any[];
12
- }
13
- export declare class FiltroPipe implements PipeTransform {
14
- transform(items: any[], opcionesBusqueda: OpcionesBusqueda): any[];
15
- static ɵfac: i0.ɵɵFactoryDeclaration<FiltroPipe, never>;
16
- static ɵpipe: i0.ɵɵPipeDeclaration<FiltroPipe, "filtro", true>;
17
- }
18
- export {};
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { AbstractControl } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class FormControlIsRequiredPipe implements PipeTransform {
5
- transform(formControl: AbstractControl, ...args: unknown[]): any;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlIsRequiredPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<FormControlIsRequiredPipe, "formControlIsRequired", true>;
8
- }
9
- export declare function formControlIsRequired(formControl: AbstractControl): any;
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class JsonParsePipe implements PipeTransform {
4
- transform(value: string, ...args: unknown[]): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<JsonParsePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<JsonParsePipe, "jsonParse", true>;
7
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class NoSanitizePipe implements PipeTransform {
5
- private domSanitizer;
6
- constructor(domSanitizer: DomSanitizer);
7
- transform(html: string): SafeHtml;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NoSanitizePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<NoSanitizePipe, "noSanitize", true>;
10
- }
@@ -1,8 +0,0 @@
1
- export * from './data-en-lista.pipe';
2
- export * from './date-diff-string.pipe';
3
- export * from './filtro.pipe';
4
- export * from './form-control-is-required.pipe';
5
- export * from './json-parse.pipe';
6
- export * from './no-sanitize.pipe';
7
- export * from './tipo-valor-funcion.pipe';
8
- export * from './zero-fill.pipe';
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type TipoValorFuncion<T> = T | ((...param: any) => T);
4
- export declare class TipoValorFuncionPipe implements PipeTransform {
5
- transform<T>(datoParam: TipoValorFuncion<T>, defaultValue?: T, ...param: any[]): T | undefined;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TipoValorFuncionPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<TipoValorFuncionPipe, "tipoValorFuncion", true>;
8
- }
9
- export declare function tipoValorFuncion<T>(datoParam: TipoValorFuncion<T>, defaultValue?: T, ...param: any[]): T | undefined;
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ZeroFillPipe implements PipeTransform {
4
- transform(value: unknown, digitos: number, ...args: unknown[]): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ZeroFillPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<ZeroFillPipe, "zeroFill", true>;
7
- }
8
- export declare function zeroFill(value: unknown, digitos: number, ...args: unknown[]): string;
File without changes