sf-crud 13.2.63 → 13.3.0
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.
|
@@ -53,6 +53,7 @@ export declare class TableroComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
53
53
|
private extractActiveFilters;
|
|
54
54
|
private isEmpty;
|
|
55
55
|
filterValue(value: any, fallback: any): void;
|
|
56
|
+
isSingleOption(col: string): any;
|
|
56
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableroComponent, never>;
|
|
57
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableroComponent, "sf-crudtablero", never, { "opciones": { "alias": "opciones"; "required": false; }; "idEntidad": { "alias": "idEntidad"; "required": false; }; "idKatios": { "alias": "idKatios"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "user": { "alias": "user"; "required": false; }; "dataExt": { "alias": "dataExt"; "required": false; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; }; "customConfig": { "alias": "customConfig"; "required": false; }; "table": { "alias": "table"; "required": false; }; "customFilters": { "alias": "customFilters"; "required": false; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; }; "optionsMap": { "alias": "optionsMap"; "required": false; }; }, { "onSelectAction": "onSelectAction"; }, never, never, true, never>;
|
|
58
59
|
}
|
|
@@ -7,6 +7,12 @@ export declare class CrudConfig {
|
|
|
7
7
|
registros: ConfigRegistro[];
|
|
8
8
|
tablero: ConfigTablero | undefined;
|
|
9
9
|
}
|
|
10
|
+
export interface ResponseMapping {
|
|
11
|
+
items?: string;
|
|
12
|
+
total?: string;
|
|
13
|
+
pageNumber?: string;
|
|
14
|
+
pageSize?: string;
|
|
15
|
+
}
|
|
10
16
|
export declare class ConfigTablero {
|
|
11
17
|
columns: any[];
|
|
12
18
|
endpoint: string;
|
|
@@ -26,6 +32,9 @@ export declare class ConfigTablero {
|
|
|
26
32
|
rowsPerPage?: number;
|
|
27
33
|
label?: string;
|
|
28
34
|
customSearch?: boolean;
|
|
35
|
+
responseMapping?: ResponseMapping;
|
|
36
|
+
emptyMessage?: string;
|
|
37
|
+
showActions?: boolean;
|
|
29
38
|
}
|
|
30
39
|
export declare class ConfigRegistro {
|
|
31
40
|
operations: Operation[];
|
|
@@ -86,7 +86,16 @@ export declare class TableroService {
|
|
|
86
86
|
setFilterValue(value: Record<string, unknown> | null): void;
|
|
87
87
|
initialize(config: TableroStateConfig): void;
|
|
88
88
|
getInfoTablero(): void;
|
|
89
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Extrae los items y metadatos de paginación de la respuesta del servidor
|
|
91
|
+
* según el responseMapping configurado o usando la lógica por defecto.
|
|
92
|
+
*/
|
|
93
|
+
private extractResponseData;
|
|
94
|
+
/**
|
|
95
|
+
* Obtiene un valor de un objeto usando una ruta con puntos (ej: "pagination.total")
|
|
96
|
+
*/
|
|
97
|
+
private getNestedValue;
|
|
98
|
+
generateData(data: any[], tableConfig?: any, externalTotalRecords?: number): void;
|
|
90
99
|
getValue(path: string, item: any): any;
|
|
91
100
|
applyKeys(keys: {
|
|
92
101
|
key: string;
|