ngx-dsxlibrary 2.21.24 → 2.21.26
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.
|
@@ -12,7 +12,7 @@ import { CountUpDirective } from 'ngx-countup';
|
|
|
12
12
|
import * as i1$2 from 'primeng/dialog';
|
|
13
13
|
import { DialogModule } from 'primeng/dialog';
|
|
14
14
|
import * as i1$3 from '@angular/platform-browser';
|
|
15
|
-
import { Router } from '@angular/router';
|
|
15
|
+
import { Router, RouterLink } from '@angular/router';
|
|
16
16
|
import * as i1$6 from 'primeng/button';
|
|
17
17
|
import { Button, ButtonModule } from 'primeng/button';
|
|
18
18
|
import * as i1$4 from 'primeng/tooltip';
|
|
@@ -4615,12 +4615,17 @@ function createInitialCache(cacheKeys) {
|
|
|
4615
4615
|
|
|
4616
4616
|
class DsxAddToolsModule {
|
|
4617
4617
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: DsxAddToolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4618
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.11", ngImport: i0, type: DsxAddToolsModule, imports: [
|
|
4618
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.11", ngImport: i0, type: DsxAddToolsModule, imports: [DsxButtonComponent,
|
|
4619
|
+
IconDsxComponent,
|
|
4620
|
+
JsonValuesDebujComponent,
|
|
4621
|
+
RouterLink], exports: [CommonModule,
|
|
4622
|
+
DsxButtonComponent,
|
|
4619
4623
|
FormsModule,
|
|
4620
4624
|
IconDsxComponent,
|
|
4621
4625
|
JsonValuesDebujComponent,
|
|
4622
|
-
ReactiveFormsModule
|
|
4623
|
-
|
|
4626
|
+
ReactiveFormsModule,
|
|
4627
|
+
RouterLink] });
|
|
4628
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: DsxAddToolsModule, imports: [DsxButtonComponent, CommonModule,
|
|
4624
4629
|
FormsModule,
|
|
4625
4630
|
ReactiveFormsModule] });
|
|
4626
4631
|
}
|
|
@@ -4628,13 +4633,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
4628
4633
|
type: NgModule,
|
|
4629
4634
|
args: [{
|
|
4630
4635
|
declarations: [],
|
|
4631
|
-
imports: [
|
|
4636
|
+
imports: [
|
|
4637
|
+
DsxButtonComponent,
|
|
4638
|
+
IconDsxComponent,
|
|
4639
|
+
JsonValuesDebujComponent,
|
|
4640
|
+
RouterLink,
|
|
4641
|
+
],
|
|
4632
4642
|
exports: [
|
|
4633
4643
|
CommonModule,
|
|
4644
|
+
DsxButtonComponent,
|
|
4634
4645
|
FormsModule,
|
|
4635
4646
|
IconDsxComponent,
|
|
4636
4647
|
JsonValuesDebujComponent,
|
|
4637
4648
|
ReactiveFormsModule,
|
|
4649
|
+
RouterLink,
|
|
4638
4650
|
],
|
|
4639
4651
|
providers: [],
|
|
4640
4652
|
}]
|
|
@@ -4967,6 +4979,17 @@ class EndpointService {
|
|
|
4967
4979
|
save(endpoint, values) {
|
|
4968
4980
|
return this.http.put(`${this.getUrl(endpoint)}/save`, values);
|
|
4969
4981
|
}
|
|
4982
|
+
/**
|
|
4983
|
+
* Obtiene el listado agrupado de recursos del endpoint especificado.
|
|
4984
|
+
*
|
|
4985
|
+
* @typeParam TGroup Tipo del resultado agrupado (flexible por petición).
|
|
4986
|
+
* @param endpoint Segmento del endpoint (sin la parte de `api/`).
|
|
4987
|
+
* @param invalidateCache Indica si se invalida la caché del lado del servidor.
|
|
4988
|
+
* @returns Observable con el resultado tipado como `TGroup`.
|
|
4989
|
+
*/
|
|
4990
|
+
listGroup(endpoint, invalidateCache = false) {
|
|
4991
|
+
return this.http.get(`${this.getUrl(endpoint)}/listar-grupo/${invalidateCache}`);
|
|
4992
|
+
}
|
|
4970
4993
|
/**
|
|
4971
4994
|
* Elimina un recurso del endpoint especificado.
|
|
4972
4995
|
*
|
|
@@ -4992,6 +5015,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
4992
5015
|
* Clase base para servicios CRUD tipados.
|
|
4993
5016
|
*
|
|
4994
5017
|
* @typeParam TBase Modelo base que representa la entidad principal.
|
|
5018
|
+
* @typeParam TGroup Tipo del resultado de `listGroup`. Debe pasarse explícitamente;
|
|
5019
|
+
* si no se usa `listGroup`, omitir o dejar `never`.
|
|
4995
5020
|
* @typeParam TEdit Modelo de respuesta para la operación de edición/consulta por id.
|
|
4996
5021
|
* @typeParam TSave Modelo de entrada para guardar (create/update).
|
|
4997
5022
|
* @typeParam TList Modelo de cada elemento del listado.
|
|
@@ -5029,6 +5054,14 @@ class BaseCRUDService {
|
|
|
5029
5054
|
delete(value, softDelete = true) {
|
|
5030
5055
|
return this._endpointService.delete(this.endpoint, value, softDelete);
|
|
5031
5056
|
}
|
|
5057
|
+
/**
|
|
5058
|
+
* Obtiene el listado agrupado. El tipo de retorno se define en el genérico
|
|
5059
|
+
* `TGroup` de la clase al extender `BaseCRUDService`.
|
|
5060
|
+
* @param invalidateCache Si es true, solicita invalidar caché en backend.
|
|
5061
|
+
*/
|
|
5062
|
+
listGroup(invalidateCache = false) {
|
|
5063
|
+
return this._endpointService.listGroup(this.endpoint, invalidateCache);
|
|
5064
|
+
}
|
|
5032
5065
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BaseCRUDService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5033
5066
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BaseCRUDService, providedIn: 'root' });
|
|
5034
5067
|
}
|