ngx-dsxlibrary 1.21.36 → 1.21.37

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.36",
3
+ "version": "1.21.37",
4
4
  "description": "Libreria para control de código automatizado.",
5
5
  "author": "DevSoftXela",
6
6
  "dependencies": {
@@ -1610,6 +1610,26 @@ declare class UtilityAddService {
1610
1610
  * Valida que el control contenga un rango de fechas válido (dos fechas no nulas y válidas).
1611
1611
  */
1612
1612
  declare function dateRangeValidator(control: AbstractControl): ValidationErrors | null;
1613
+ /**
1614
+ * Validador a nivel de formulario que verifica que la fecha "hasta"
1615
+ * (toKey) sea mayor o igual que la fecha "desde" (fromKey),
1616
+ * comparando ambas como instancias de Date.
1617
+ *
1618
+ * Reglas:
1619
+ * - Si una o ambas fechas están vacías (null/undefined), no se genera error
1620
+ * y se delega la obligatoriedad a otros validadores como `required`.
1621
+ * - Si ambas fechas tienen valor, la fecha "hasta" debe ser >= fecha "desde"
1622
+ * según su valor numérico (`getTime()`).
1623
+ * - Si los valores no son fechas válidas, el comportamiento dependerá
1624
+ * de cómo los controles entreguen el valor (se recomienda usar Date).
1625
+ *
1626
+ * @param fromKey Nombre del control que representa la fecha inicial.
1627
+ * @param toKey Nombre del control que representa la fecha final.
1628
+ * @returns Un ValidatorFn que devuelve `null` si el rango es válido o está
1629
+ * incompleto; y un objeto con la clave `invalidDateRange` si el
1630
+ * rango es inválido.
1631
+ */
1632
+ declare function dateRangeValidatorFromTo(fromKey: string, toKey: string): ValidatorFn;
1613
1633
  /**
1614
1634
  * Valida que una fecha única esté dentro de un rango mínimo y máximo.
1615
1635
  * Las fechas deben utilizar la función de convertirFechaISOString para asegurar el formato correcto y que funcione con el componente primeNg.
@@ -1639,5 +1659,5 @@ declare function nitValidator(control: AbstractControl): ValidationErrors | null
1639
1659
  */
1640
1660
  declare function cuiValidator(control: AbstractControl): ValidationErrors | null;
1641
1661
 
1642
- 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, httpAuthorizeInterceptor, nitValidator, provideEnvironment, validateEnvironmentConfig };
1662
+ 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 };
1643
1663
  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