ngx-dsxlibrary 1.21.38 → 1.21.39

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-dsxlibrary",
3
- "version": "1.21.38",
3
+ "version": "1.21.39",
4
4
  "description": "Libreria para control de código automatizado.",
5
5
  "author": "DevSoftXela",
6
6
  "dependencies": {
@@ -49,6 +49,10 @@
49
49
  "types": "./types/ngx-dsxlibrary-src-lib-services.d.ts",
50
50
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-services.mjs"
51
51
  },
52
+ "./src/lib/utils": {
53
+ "types": "./types/ngx-dsxlibrary-src-lib-utils.d.ts",
54
+ "default": "./fesm2022/ngx-dsxlibrary-src-lib-utils.mjs"
55
+ },
52
56
  "./src/lib/validations": {
53
57
  "types": "./types/ngx-dsxlibrary-src-lib-validations.d.ts",
54
58
  "default": "./fesm2022/ngx-dsxlibrary-src-lib-validations.mjs"
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Formateador de moneda por defecto para Guatemala.
3
+ *
4
+ * Usa la configuración regional `es-GT` y el código de moneda `GTQ`.
5
+ * Siempre muestra 2 decimales.
6
+ *
7
+ * Ejemplo de uso:
8
+ * ```ts
9
+ * GTQFormatter.format(1234.5); // "Q 1,234.50"
10
+ * ```
11
+ */
12
+ declare const GTQFormatter: Intl.NumberFormat;
13
+ /**
14
+ * Crea un formateador de moneda personalizado.
15
+ *
16
+ * Permite definir la configuración regional (`locale`) y el código de moneda (`currency`)
17
+ * manteniendo 2 decimales fijos.
18
+ *
19
+ * Ejemplos de uso:
20
+ * ```ts
21
+ * const usdFormatter = createCurrencyFormatter('en-US', 'USD');
22
+ * usdFormatter.format(1000); // "$1,000.00"
23
+ *
24
+ * const mxnFormatter = createCurrencyFormatter('es-MX', 'MXN');
25
+ * mxnFormatter.format(1500.75); // "$1,500.75"
26
+ * ```
27
+ *
28
+ * @param locale Código de configuración regional, por ejemplo: `es-GT`, `en-US`.
29
+ * @param currency Código de moneda ISO 4217, por ejemplo: `GTQ`, `USD`, `EUR`.
30
+ * @returns Instancia de `Intl.NumberFormat` configurada para moneda.
31
+ */
32
+ declare function createCurrencyFormatter(locale: string, currency: string): Intl.NumberFormat;
33
+
34
+ export { GTQFormatter, createCurrencyFormatter };
@@ -1612,6 +1612,39 @@ declare class UtilityAddService {
1612
1612
  static ɵprov: i0.ɵɵInjectableDeclaration<UtilityAddService>;
1613
1613
  }
1614
1614
 
1615
+ /**
1616
+ * Formateador de moneda por defecto para Guatemala.
1617
+ *
1618
+ * Usa la configuración regional `es-GT` y el código de moneda `GTQ`.
1619
+ * Siempre muestra 2 decimales.
1620
+ *
1621
+ * Ejemplo de uso:
1622
+ * ```ts
1623
+ * GTQFormatter.format(1234.5); // "Q 1,234.50"
1624
+ * ```
1625
+ */
1626
+ declare const GTQFormatter: Intl.NumberFormat;
1627
+ /**
1628
+ * Crea un formateador de moneda personalizado.
1629
+ *
1630
+ * Permite definir la configuración regional (`locale`) y el código de moneda (`currency`)
1631
+ * manteniendo 2 decimales fijos.
1632
+ *
1633
+ * Ejemplos de uso:
1634
+ * ```ts
1635
+ * const usdFormatter = createCurrencyFormatter('en-US', 'USD');
1636
+ * usdFormatter.format(1000); // "$1,000.00"
1637
+ *
1638
+ * const mxnFormatter = createCurrencyFormatter('es-MX', 'MXN');
1639
+ * mxnFormatter.format(1500.75); // "$1,500.75"
1640
+ * ```
1641
+ *
1642
+ * @param locale Código de configuración regional, por ejemplo: `es-GT`, `en-US`.
1643
+ * @param currency Código de moneda ISO 4217, por ejemplo: `GTQ`, `USD`, `EUR`.
1644
+ * @returns Instancia de `Intl.NumberFormat` configurada para moneda.
1645
+ */
1646
+ declare function createCurrencyFormatter(locale: string, currency: string): Intl.NumberFormat;
1647
+
1615
1648
  /**
1616
1649
  * Valida que el control contenga un rango de fechas válido (dos fechas no nulas y válidas).
1617
1650
  */
@@ -1665,5 +1698,5 @@ declare function nitValidator(control: AbstractControl): ValidationErrors | null
1665
1698
  */
1666
1699
  declare function cuiValidator(control: AbstractControl): ValidationErrors | null;
1667
1700
 
1668
- export { AlertaService, AppMessageErrorComponent, AuthorizeService, CACHE_KEYS, CacheService, CssV2Component, DsxAddToolsModule, DteService, ENVIRONMENT, EndpointService, ErrorHandlerService, FileComponent, INITIAL_PARAMETERS, IconDsxComponent, JsonHighlightPipe, JsonValuesDebujComponent, KpicardComponent, LoadingComponent, LoadingLottieComponent, NavbarDsxComponent, OnlyRangoPatternDirective, ParameterValuesService, PrimeNgModule, SWEET_ALERT_THEMES, SecurityService, SelectAllOnFocusDirective, SpinnerLoadingService, TruncatePipe, UtilityAddService, atLeastOneFieldRequiredValidator, createInitialCache, createTypedCacheProvider, cuiValidator, dateMinMaxValidator, dateRangeValidator, dateRangeValidatorFromTo, httpAuthorizeInterceptor, nitValidator, provideEnvironment, validateEnvironmentConfig };
1701
+ export { AlertaService, AppMessageErrorComponent, AuthorizeService, CACHE_KEYS, CacheService, CssV2Component, DsxAddToolsModule, DteService, ENVIRONMENT, EndpointService, ErrorHandlerService, FileComponent, GTQFormatter, INITIAL_PARAMETERS, IconDsxComponent, JsonHighlightPipe, JsonValuesDebujComponent, KpicardComponent, LoadingComponent, LoadingLottieComponent, NavbarDsxComponent, OnlyRangoPatternDirective, ParameterValuesService, PrimeNgModule, SWEET_ALERT_THEMES, SecurityService, SelectAllOnFocusDirective, SpinnerLoadingService, TruncatePipe, UtilityAddService, atLeastOneFieldRequiredValidator, createCurrencyFormatter, createInitialCache, createTypedCacheProvider, cuiValidator, dateMinMaxValidator, dateRangeValidator, dateRangeValidatorFromTo, httpAuthorizeInterceptor, nitValidator, provideEnvironment, validateEnvironmentConfig };
1669
1702
  export type { Certificacion, Column, Complemento, Complementos, DatosEmision, DatosGenerales, Direccion, DocumentoFelResponse, Dte, Emisor, EnvironmentConfig, ExportColumn, FechasConversion, FieldConfig, FilterOption, Frase, Frases, Impuesto, Impuestos, InferCacheKeyType, InferCacheOptions, Item, Items, MyParameterValues, NITResponse, NumeroAutorizacion, ParameterSecurity, ParameterValue, Receptor, ResponseHttpModel, Sat, SeguridadITParameter, ServiceResult, ServiceResultVoid, SweetAlertThemeType, T, TipoFechaConversion, TotalImpuesto, Totales, typeModel };
Binary file