ngx-dsxlibrary 1.21.36 → 1.21.38
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
|
@@ -183,17 +183,20 @@ declare class NavbarDsxComponent implements OnInit {
|
|
|
183
183
|
* - Dígitos (0-9)
|
|
184
184
|
* - Separadores punto (.)
|
|
185
185
|
* - Rango con guión (-)
|
|
186
|
+
* - O bien un comodín completo "*" que representa "todos"
|
|
186
187
|
*
|
|
187
188
|
* Ejemplos válidos:
|
|
188
189
|
* - 1.2.3
|
|
189
190
|
* - 4-6
|
|
190
191
|
* - 1.3.5-9
|
|
192
|
+
* - * (comodín: todos)
|
|
191
193
|
*
|
|
192
194
|
* Restringe:
|
|
193
195
|
* - Letras
|
|
194
196
|
* - Espacios
|
|
195
|
-
* - Caracteres especiales
|
|
197
|
+
* - Caracteres especiales (salvo "*")
|
|
196
198
|
* - Doble punto (..), doble guión (--), o combinaciones como (.-)
|
|
199
|
+
* - Mezclas de comodín con números (por ejemplo: *1, 1.*)
|
|
197
200
|
*/
|
|
198
201
|
declare class OnlyRangoPatternDirective {
|
|
199
202
|
private el;
|
|
@@ -1553,7 +1556,10 @@ declare class UtilityAddService {
|
|
|
1553
1556
|
* Adaptador para procesar eventos de input y extraer rangos numéricos.
|
|
1554
1557
|
*
|
|
1555
1558
|
* @param event - Objeto Event del DOM, preferiblemente de un elemento input
|
|
1556
|
-
* @returns
|
|
1559
|
+
* @returns
|
|
1560
|
+
* - Array de números generado a partir del valor del input, cuando hay
|
|
1561
|
+
* números/rangos.
|
|
1562
|
+
* - El carácter comodín "*" cuando el valor del input es exactamente "*".
|
|
1557
1563
|
*
|
|
1558
1564
|
* @example
|
|
1559
1565
|
* // Uso en template Angular
|
|
@@ -1573,7 +1579,7 @@ declare class UtilityAddService {
|
|
|
1573
1579
|
* Requiere que el evento tenga la propiedad target.value (standard DOM)
|
|
1574
1580
|
* Para otros tipos de eventos (ej. Angular Material) puede necesitar ajustes
|
|
1575
1581
|
*/
|
|
1576
|
-
processNumericRangesFromEvent(event: Event): number[];
|
|
1582
|
+
processNumericRangesFromEvent(event: Event): number[] | '*';
|
|
1577
1583
|
/**
|
|
1578
1584
|
* Maneja la respuesta estándar de una operación HTTP, mostrando alertas y realizando acciones comunes en formularios.
|
|
1579
1585
|
*
|
|
@@ -1610,6 +1616,26 @@ declare class UtilityAddService {
|
|
|
1610
1616
|
* Valida que el control contenga un rango de fechas válido (dos fechas no nulas y válidas).
|
|
1611
1617
|
*/
|
|
1612
1618
|
declare function dateRangeValidator(control: AbstractControl): ValidationErrors | null;
|
|
1619
|
+
/**
|
|
1620
|
+
* Validador a nivel de formulario que verifica que la fecha "hasta"
|
|
1621
|
+
* (toKey) sea mayor o igual que la fecha "desde" (fromKey),
|
|
1622
|
+
* comparando ambas como instancias de Date.
|
|
1623
|
+
*
|
|
1624
|
+
* Reglas:
|
|
1625
|
+
* - Si una o ambas fechas están vacías (null/undefined), no se genera error
|
|
1626
|
+
* y se delega la obligatoriedad a otros validadores como `required`.
|
|
1627
|
+
* - Si ambas fechas tienen valor, la fecha "hasta" debe ser >= fecha "desde"
|
|
1628
|
+
* según su valor numérico (`getTime()`).
|
|
1629
|
+
* - Si los valores no son fechas válidas, el comportamiento dependerá
|
|
1630
|
+
* de cómo los controles entreguen el valor (se recomienda usar Date).
|
|
1631
|
+
*
|
|
1632
|
+
* @param fromKey Nombre del control que representa la fecha inicial.
|
|
1633
|
+
* @param toKey Nombre del control que representa la fecha final.
|
|
1634
|
+
* @returns Un ValidatorFn que devuelve `null` si el rango es válido o está
|
|
1635
|
+
* incompleto; y un objeto con la clave `invalidDateRange` si el
|
|
1636
|
+
* rango es inválido.
|
|
1637
|
+
*/
|
|
1638
|
+
declare function dateRangeValidatorFromTo(fromKey: string, toKey: string): ValidatorFn;
|
|
1613
1639
|
/**
|
|
1614
1640
|
* Valida que una fecha única esté dentro de un rango mínimo y máximo.
|
|
1615
1641
|
* Las fechas deben utilizar la función de convertirFechaISOString para asegurar el formato correcto y que funcione con el componente primeNg.
|
|
@@ -1639,5 +1665,5 @@ declare function nitValidator(control: AbstractControl): ValidationErrors | null
|
|
|
1639
1665
|
*/
|
|
1640
1666
|
declare function cuiValidator(control: AbstractControl): ValidationErrors | null;
|
|
1641
1667
|
|
|
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 };
|
|
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 };
|
|
1643
1669
|
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
|