intelica-library-project 20.0.2
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.
- package/fesm2022/intelica-library-project.mjs +2974 -0
- package/fesm2022/intelica-library-project.mjs.map +1 -0
- package/index.d.ts +804 -0
- package/package.json +25 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, OnInit, EventEmitter, OnChanges, TemplateRef, AfterContentInit, QueryList, ChangeDetectorRef, SimpleChanges, AfterViewInit, ElementRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { Subscription, Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
5
|
+
import { GlobalTermService, DateMode } from 'intelica-library-base';
|
|
6
|
+
import * as echarts from 'echarts';
|
|
7
|
+
import { EChartsOption, LabelFormatterCallback, DefaultLabelFormatterCallbackParams, TooltipComponentFormatterCallback, TooltipComponentFormatterCallbackParams } from 'echarts';
|
|
8
|
+
import { Location } from '@angular/common';
|
|
9
|
+
|
|
10
|
+
interface SearchInputModel {
|
|
11
|
+
operatorId: number;
|
|
12
|
+
operatorText?: string;
|
|
13
|
+
fieldId: number;
|
|
14
|
+
fieldText?: string;
|
|
15
|
+
searchText: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class SearchComponent implements OnDestroy, OnInit {
|
|
19
|
+
readonly GlobalTermService: GlobalTermService;
|
|
20
|
+
/**
|
|
21
|
+
* Indica el componente del que proviene.
|
|
22
|
+
* @type {string}
|
|
23
|
+
*/
|
|
24
|
+
ComponentId: string;
|
|
25
|
+
ShowTooltip: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Opciones para campos de búsqueda.
|
|
28
|
+
* @type {{ id: number; value: string }[]}
|
|
29
|
+
*/
|
|
30
|
+
SearchFieldOptions: {
|
|
31
|
+
id: number;
|
|
32
|
+
value: string;
|
|
33
|
+
}[];
|
|
34
|
+
/**
|
|
35
|
+
* Indica si realizar la búsqueda al soltar una tecla.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
*/
|
|
38
|
+
SearchOnKeyup: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated No debe ser utilizado. Es sólo para uso interno y no para módulos.
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
SimpleSearchInput: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder para el componente de búsqueda.
|
|
47
|
+
* @type {string}
|
|
48
|
+
*/
|
|
49
|
+
Placeholder: string;
|
|
50
|
+
/**
|
|
51
|
+
* Evento emitido al realizar una búsqueda.
|
|
52
|
+
* @type {EventEmitter<{ operatorId: number; operatorText: string, fieldId: number, fieldText: string, searchText: string }>}
|
|
53
|
+
*/
|
|
54
|
+
OnSearchEvent: EventEmitter<SearchInputModel>;
|
|
55
|
+
private readonly FormBuilder;
|
|
56
|
+
/**
|
|
57
|
+
* Indica si el dropdown está abierto
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
IsDropdownOpen: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Formulario para manejar los parámetros de búsqueda
|
|
64
|
+
* @type {FormGroup}
|
|
65
|
+
*/
|
|
66
|
+
SearchForm: FormGroup;
|
|
67
|
+
/**
|
|
68
|
+
* Suscripción a los valores del formulario.
|
|
69
|
+
* @type {Subscription}
|
|
70
|
+
*/
|
|
71
|
+
FormValuesSubscription: Subscription;
|
|
72
|
+
/**
|
|
73
|
+
* Opciones para operadores de búsqueda.
|
|
74
|
+
* @type {{ id: number; value: string }[]}
|
|
75
|
+
*/
|
|
76
|
+
SearchOperatorOptions: {
|
|
77
|
+
id: number;
|
|
78
|
+
value: string;
|
|
79
|
+
}[];
|
|
80
|
+
/**
|
|
81
|
+
* Función llamada cuando cambia el valor del campo de búsqueda.
|
|
82
|
+
* @type {() => void}
|
|
83
|
+
*/
|
|
84
|
+
OnChange: (value: SearchInputModel) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Función llamada cuando el componente de búsqueda es tocado.
|
|
87
|
+
* @type {() => void}
|
|
88
|
+
*/
|
|
89
|
+
OnTouched: () => void;
|
|
90
|
+
constructor();
|
|
91
|
+
ngOnInit(): void;
|
|
92
|
+
ngOnDestroy(): void;
|
|
93
|
+
InitializeForm(): void;
|
|
94
|
+
DropDownChange(isOpen: boolean): void;
|
|
95
|
+
OnSearchEnter(): void;
|
|
96
|
+
OnSearchKeyup(): void;
|
|
97
|
+
OnSearch(): void;
|
|
98
|
+
ClearSearchText(emitEvent?: boolean): void;
|
|
99
|
+
get HasSearchText(): boolean;
|
|
100
|
+
GetSelectedOperatorValue(): string;
|
|
101
|
+
GetSelectedFieldValue(): string;
|
|
102
|
+
GetSelectedValues(): string;
|
|
103
|
+
SetSearchTextValue(text: string): void;
|
|
104
|
+
SetOperatorValue(value: number): void;
|
|
105
|
+
SetFieldValue(value: number): void;
|
|
106
|
+
GetSearchOperatorOptions(): {
|
|
107
|
+
id: number;
|
|
108
|
+
value: string;
|
|
109
|
+
}[];
|
|
110
|
+
GetSearchFieldOptions(): {
|
|
111
|
+
id: number;
|
|
112
|
+
value: string;
|
|
113
|
+
}[];
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "intelica-search", never, { "ComponentId": { "alias": "ComponentId"; "required": false; }; "ShowTooltip": { "alias": "ShowTooltip"; "required": false; }; "SearchFieldOptions": { "alias": "SearchFieldOptions"; "required": false; }; "SearchOnKeyup": { "alias": "SearchOnKeyup"; "required": false; }; "SimpleSearchInput": { "alias": "SimpleSearchInput"; "required": false; }; "Placeholder": { "alias": "Placeholder"; "required": false; }; }, { "OnSearchEvent": "OnSearch"; }, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface CascadeFilterModel {
|
|
119
|
+
id: string;
|
|
120
|
+
index: number;
|
|
121
|
+
order: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class OrderConstants {
|
|
125
|
+
static ORDER_BY_DESC: string;
|
|
126
|
+
static ORDER_BY_ASC: string;
|
|
127
|
+
static ORDER_BY_DESC_VALUE: string;
|
|
128
|
+
static ORDER_BY_ASC_VALUE: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class SortingComponent implements OnInit, OnChanges {
|
|
132
|
+
/**
|
|
133
|
+
* Suscripción a un observable.
|
|
134
|
+
* @type {Subscription}
|
|
135
|
+
*/
|
|
136
|
+
subscription: Subscription;
|
|
137
|
+
/**
|
|
138
|
+
* Términos utilizados en el componente.
|
|
139
|
+
* @type {any}
|
|
140
|
+
*/
|
|
141
|
+
terms: any;
|
|
142
|
+
/**
|
|
143
|
+
* Lista de modelos de filtro en cascada.
|
|
144
|
+
* @type {CascadeFilterModel[]}
|
|
145
|
+
* @default []
|
|
146
|
+
*/
|
|
147
|
+
LCascadefilter: CascadeFilterModel[];
|
|
148
|
+
/**
|
|
149
|
+
* Número máximo de ordenamiento.
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @default 4
|
|
152
|
+
*/
|
|
153
|
+
NumMaxSorting: number;
|
|
154
|
+
/**
|
|
155
|
+
* Lista de objetos de ordenamiento.
|
|
156
|
+
* @type {any}
|
|
157
|
+
* @default []
|
|
158
|
+
*/
|
|
159
|
+
Sorters: any;
|
|
160
|
+
/**
|
|
161
|
+
* Objeto que indica el ordenamiento actual.
|
|
162
|
+
* @type {any}
|
|
163
|
+
*/
|
|
164
|
+
OrderBy: any;
|
|
165
|
+
/**
|
|
166
|
+
* Objeto que indica el ordenamiento predeterminado.
|
|
167
|
+
* @type {any}
|
|
168
|
+
* @default {}
|
|
169
|
+
*/
|
|
170
|
+
OrderByDefault: any;
|
|
171
|
+
/**
|
|
172
|
+
* Indica si se debe realizar un solo renderizado.
|
|
173
|
+
* @type {boolean}
|
|
174
|
+
* @default false
|
|
175
|
+
*/
|
|
176
|
+
OneRender: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Evento emitido al realizar un retorno de datos.
|
|
179
|
+
* @type {EventEmitter<any>}
|
|
180
|
+
*/
|
|
181
|
+
ReturnSorting: EventEmitter<any>;
|
|
182
|
+
/**
|
|
183
|
+
* Evento emitido al alertar sobre una ordenación.
|
|
184
|
+
* @type {EventEmitter<any>}
|
|
185
|
+
*/
|
|
186
|
+
AlertOrder: EventEmitter<any>;
|
|
187
|
+
/**
|
|
188
|
+
* Objeto que contiene constantes de ordenación.
|
|
189
|
+
* @type {OrderConstants}
|
|
190
|
+
*/
|
|
191
|
+
Order: typeof OrderConstants;
|
|
192
|
+
constructor();
|
|
193
|
+
ngOnDestroy(): void;
|
|
194
|
+
ngOnInit(): void;
|
|
195
|
+
ngOnChanges(changes: any): void;
|
|
196
|
+
/**
|
|
197
|
+
* Obtiene información sobre la ordenación y la asigna a la lista de modelos de filtro en cascada.
|
|
198
|
+
* - Si no hay información de ordenación (`orderBy`), la función sale.
|
|
199
|
+
* - Crea una lista de modelos de filtro en cascada con una longitud determinada.
|
|
200
|
+
* - Filtra las propiedades de ordenación que coinciden con los campos existentes.
|
|
201
|
+
* - Asigna las propiedades de ordenación a los modelos de filtro en cascada.
|
|
202
|
+
*/
|
|
203
|
+
GetInfoSorting(): void;
|
|
204
|
+
/**
|
|
205
|
+
* Función que genera una lista de modelos de filtro en cascada con una cantidad determinada.
|
|
206
|
+
*
|
|
207
|
+
* @param {number} cant - Cantidad de modelos de filtro en cascada a generar.
|
|
208
|
+
* @returns {Array} - Lista de modelos de filtro en cascada.
|
|
209
|
+
*/
|
|
210
|
+
PushCascade(cant: number): Array<any>;
|
|
211
|
+
/**
|
|
212
|
+
* Verifica y procesa la ordenación en cascada.
|
|
213
|
+
* - Si algún modelo de filtro en cascada tiene un ID diferente de '0', se realiza la ordenación.
|
|
214
|
+
* - De lo contrario, se emite una alerta indicando que no hay columna seleccionada para ordenar.
|
|
215
|
+
*/
|
|
216
|
+
CheckCascadeOrder(): void;
|
|
217
|
+
/**
|
|
218
|
+
* Procesa la ordenación en cascada y emite el resultado.
|
|
219
|
+
*/
|
|
220
|
+
CascadeOrder(): void;
|
|
221
|
+
/**
|
|
222
|
+
* Restaura la ordenación en cascada a la configuración predeterminada y obtiene la información de ordenación.
|
|
223
|
+
*/
|
|
224
|
+
ClearCascadeOrder(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Verifica si un modelo de filtro en cascada está deshabilitado basándose en su ID.
|
|
227
|
+
*
|
|
228
|
+
* @param {string} id - ID del modelo de filtro en cascada.
|
|
229
|
+
* @param {number} index - Índice del modelo de filtro en cascada.
|
|
230
|
+
* @returns {boolean} - Indica si el modelo de filtro en cascada está deshabilitado.
|
|
231
|
+
*/
|
|
232
|
+
CheckCascadeDisabled(id: string, index: number): boolean;
|
|
233
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortingComponent, never>;
|
|
234
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SortingComponent, "intelica-sorting", never, { "Sorters": { "alias": "Sorters"; "required": false; }; "OrderBy": { "alias": "OrderBy"; "required": false; }; "OrderByDefault": { "alias": "OrderByDefault"; "required": false; }; "OneRender": { "alias": "OneRender"; "required": false; }; }, { "ReturnSorting": "ReturnSorting"; "AlertOrder": "AlertOrder"; }, never, never, true, never>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare class ColumnComponent<T = any> {
|
|
238
|
+
field: string;
|
|
239
|
+
header: string;
|
|
240
|
+
sortable: boolean;
|
|
241
|
+
width?: string;
|
|
242
|
+
className?: string;
|
|
243
|
+
headerTooltip: string;
|
|
244
|
+
headerTooltipPosition: "top" | "bottom" | "left" | "right";
|
|
245
|
+
tooltip: string;
|
|
246
|
+
tooltipPosition: "top" | "bottom" | "left" | "right";
|
|
247
|
+
showIndex: boolean;
|
|
248
|
+
showHeader: boolean;
|
|
249
|
+
minWidth?: string;
|
|
250
|
+
isChecboxColumn: boolean;
|
|
251
|
+
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
252
|
+
templateRef?: TemplateRef<any>;
|
|
253
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnComponent<any>, never>;
|
|
254
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnComponent<any>, "column", never, { "field": { "alias": "field"; "required": false; }; "header": { "alias": "header"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "className"; "required": false; }; "headerTooltip": { "alias": "headerTooltip"; "required": false; }; "headerTooltipPosition": { "alias": "headerTooltipPosition"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "showIndex": { "alias": "showIndex"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "isChecboxColumn": { "alias": "isChecboxColumn"; "required": false; }; "formatType": { "alias": "formatType"; "required": false; }; }, {}, ["templateRef"], never, true, never>;
|
|
255
|
+
}
|
|
256
|
+
declare class ColumnGroupComponent<T = any> {
|
|
257
|
+
field: string;
|
|
258
|
+
header: string;
|
|
259
|
+
sortable: boolean;
|
|
260
|
+
width?: string;
|
|
261
|
+
minWidth?: string;
|
|
262
|
+
className?: string;
|
|
263
|
+
headerTooltip: string;
|
|
264
|
+
headerTooltipPosition: "top" | "bottom" | "left" | "right";
|
|
265
|
+
colspan: number;
|
|
266
|
+
rowspan: number;
|
|
267
|
+
level: number;
|
|
268
|
+
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnGroupComponent<any>, never>;
|
|
270
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnGroupComponent<any>, "columnGroup", never, { "field": { "alias": "field"; "required": false; }; "header": { "alias": "header"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "className": { "alias": "className"; "required": false; }; "headerTooltip": { "alias": "headerTooltip"; "required": false; }; "headerTooltipPosition": { "alias": "headerTooltipPosition"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; "rowspan": { "alias": "rowspan"; "required": false; }; "level": { "alias": "level"; "required": false; }; "formatType": { "alias": "formatType"; "required": false; }; }, {}, never, never, true, never>;
|
|
271
|
+
}
|
|
272
|
+
declare class RowResumenComponent<T = any> {
|
|
273
|
+
field: string;
|
|
274
|
+
className?: string;
|
|
275
|
+
colspan: number;
|
|
276
|
+
rowspan: number;
|
|
277
|
+
templateRef?: TemplateRef<any>;
|
|
278
|
+
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowResumenComponent<any>, never>;
|
|
280
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RowResumenComponent<any>, "rowResumenComponent", never, { "field": { "alias": "field"; "required": false; }; "className": { "alias": "className"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; "rowspan": { "alias": "rowspan"; "required": false; }; "formatType": { "alias": "formatType"; "required": false; }; }, {}, ["templateRef"], never, true, never>;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface SortFieldModel {
|
|
284
|
+
sortOrder: number;
|
|
285
|
+
sortField: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
declare class TableComponent<T> implements OnChanges, AfterContentInit {
|
|
289
|
+
private readonly SharedService;
|
|
290
|
+
readonly GlobalTermService: GlobalTermService;
|
|
291
|
+
ComponentId: string;
|
|
292
|
+
ListData: T[];
|
|
293
|
+
ShowRowPerPage: boolean;
|
|
294
|
+
ShowSearch: boolean;
|
|
295
|
+
ShowPagination: boolean;
|
|
296
|
+
RowsPerPage: number;
|
|
297
|
+
ShowCheckbox: boolean;
|
|
298
|
+
ShowIndex: boolean;
|
|
299
|
+
ListDataSelected: T[];
|
|
300
|
+
SelectedIdentifier: keyof T | null;
|
|
301
|
+
ClassName: string;
|
|
302
|
+
DefaultSortField: string;
|
|
303
|
+
DefaultSortOrder: number;
|
|
304
|
+
scrollHeight: string;
|
|
305
|
+
scrollable: boolean;
|
|
306
|
+
AllowedPageSizes: number[];
|
|
307
|
+
tableStyle: {
|
|
308
|
+
[klass: string]: any;
|
|
309
|
+
};
|
|
310
|
+
private _isTableDisabled;
|
|
311
|
+
private _pendingUncheck;
|
|
312
|
+
HeaderState: Record<string, {
|
|
313
|
+
checked: boolean;
|
|
314
|
+
indeterminate: boolean;
|
|
315
|
+
}>;
|
|
316
|
+
set IsTableDisabled(val: boolean);
|
|
317
|
+
get IsTableDisabled(): boolean;
|
|
318
|
+
recomputeHeaderState(field: string): void;
|
|
319
|
+
onBodyCheckboxChange(field: string): void;
|
|
320
|
+
private refreshAllHeaderStates;
|
|
321
|
+
EmitSelectedItem: EventEmitter<T[]>;
|
|
322
|
+
EmitListDataFilter: EventEmitter<T[]>;
|
|
323
|
+
EmitSearchEvent: EventEmitter<SearchInputModel>;
|
|
324
|
+
EmitSortEvent: EventEmitter<SortFieldModel[]>;
|
|
325
|
+
Columns: QueryList<ColumnComponent>;
|
|
326
|
+
ColumnGroups: QueryList<ColumnGroupComponent>;
|
|
327
|
+
RowResumenGroups: QueryList<RowResumenComponent>;
|
|
328
|
+
AdditionalTemplate?: TemplateRef<any>;
|
|
329
|
+
AdditionalExtendedTemplate?: TemplateRef<any>;
|
|
330
|
+
AdditionalCentralTemplate?: TemplateRef<any>;
|
|
331
|
+
ColumnList: ColumnComponent[];
|
|
332
|
+
ColumnGroupList: ColumnGroupComponent[];
|
|
333
|
+
RowResumenList: RowResumenComponent[];
|
|
334
|
+
ListDataFilter: T[];
|
|
335
|
+
ListDataTable: T[];
|
|
336
|
+
ListDataSelectedFilter: T[];
|
|
337
|
+
ListDataSelectedTemp: T[];
|
|
338
|
+
SearchInput: SearchInputModel;
|
|
339
|
+
TotalRecords: number;
|
|
340
|
+
CurrentPage: number;
|
|
341
|
+
SortOrder: number;
|
|
342
|
+
SortField: keyof T | null;
|
|
343
|
+
MaxLevel: number;
|
|
344
|
+
Levels: number[];
|
|
345
|
+
ngOnChanges(): void;
|
|
346
|
+
ngAfterContentInit(): void;
|
|
347
|
+
OnSort(field: string): void;
|
|
348
|
+
OnPageChange(event: {
|
|
349
|
+
page?: number;
|
|
350
|
+
rows?: number;
|
|
351
|
+
} | number): void;
|
|
352
|
+
ExecuteSearch(searchText?: string): void;
|
|
353
|
+
SortPages(): void;
|
|
354
|
+
UpdatePages(): void;
|
|
355
|
+
ValidateSelect(): void;
|
|
356
|
+
SelectAll(event: any): void;
|
|
357
|
+
OnHeaderSelectionToggle(checked: boolean): void;
|
|
358
|
+
OnRowSelect(event: any): void;
|
|
359
|
+
OnRowUnselect(event: any): void;
|
|
360
|
+
ResetTable(): void;
|
|
361
|
+
EmitSearchValues(): void;
|
|
362
|
+
OnHeaderCheckboxChange(checked: boolean, field: string): void;
|
|
363
|
+
private getFilteredSelectedCount;
|
|
364
|
+
get IsHeaderSelectionChecked(): boolean;
|
|
365
|
+
get IsHeaderSelectionIndeterminate(): boolean;
|
|
366
|
+
FilterData(field: string): void;
|
|
367
|
+
IsInderteminate(column: string): void;
|
|
368
|
+
OnRowsPerPageChange(value: number): void;
|
|
369
|
+
ResetTableSelected(): void;
|
|
370
|
+
ClearSearch(): void;
|
|
371
|
+
get TotalPages(): number;
|
|
372
|
+
onChangeSelectPage(event: any): void;
|
|
373
|
+
get RenderPanel(): boolean;
|
|
374
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
375
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "intelica-table", never, { "ComponentId": { "alias": "ComponentId"; "required": false; }; "ListData": { "alias": "ListData"; "required": false; }; "ShowRowPerPage": { "alias": "ShowRowPerPage"; "required": false; }; "ShowSearch": { "alias": "ShowSearch"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "RowsPerPage": { "alias": "RowsPerPage"; "required": false; }; "ShowCheckbox": { "alias": "ShowCheckbox"; "required": false; }; "ShowIndex": { "alias": "ShowIndex"; "required": false; }; "ListDataSelected": { "alias": "ListDataSelected"; "required": false; }; "SelectedIdentifier": { "alias": "SelectedIdentifier"; "required": false; }; "ClassName": { "alias": "ClassName"; "required": false; }; "DefaultSortField": { "alias": "DefaultSortField"; "required": false; }; "DefaultSortOrder": { "alias": "DefaultSortOrder"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "AllowedPageSizes": { "alias": "AllowedPageSizes"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; "IsTableDisabled": { "alias": "IsTableDisabled"; "required": false; }; }, { "EmitSelectedItem": "EmitSelectedItem"; "EmitListDataFilter": "EmitListDataFilter"; "EmitSearchEvent": "EmitSearchEvent"; "EmitSortEvent": "EmitSortEvent"; }, ["AdditionalTemplate", "AdditionalExtendedTemplate", "AdditionalCentralTemplate", "Columns", "ColumnGroups", "RowResumenGroups"], never, true, never>;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
interface QueryParametersModel {
|
|
379
|
+
FilterBy?: string;
|
|
380
|
+
FilterValue?: string;
|
|
381
|
+
FilterOperator?: string;
|
|
382
|
+
OrderBy?: string;
|
|
383
|
+
SortDirection?: string;
|
|
384
|
+
PageNumber?: number;
|
|
385
|
+
PageSize?: number;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
declare class TableFetchComponent<T> implements OnChanges, AfterContentInit {
|
|
389
|
+
private cdr;
|
|
390
|
+
readonly GlobalTermService: GlobalTermService;
|
|
391
|
+
ComponentId: string;
|
|
392
|
+
ShowRowPerPage: boolean;
|
|
393
|
+
ShowSearch: boolean;
|
|
394
|
+
ShowPagination: boolean;
|
|
395
|
+
RowsPerPage: number;
|
|
396
|
+
ShowCheckbox: boolean;
|
|
397
|
+
ShowIndex: boolean;
|
|
398
|
+
ClassName: string;
|
|
399
|
+
DefaultSortField: string;
|
|
400
|
+
scrollHeight: string;
|
|
401
|
+
scrollable: boolean;
|
|
402
|
+
AllowedPageSizes: number[];
|
|
403
|
+
tableStyle: {
|
|
404
|
+
[klass: string]: any;
|
|
405
|
+
};
|
|
406
|
+
Levels: number[];
|
|
407
|
+
FilteredList: T[];
|
|
408
|
+
TotalItems: number;
|
|
409
|
+
TotalRecords: number;
|
|
410
|
+
IsPaginatorInputSearch: boolean;
|
|
411
|
+
EmitQueryParametersChange: EventEmitter<QueryParametersModel>;
|
|
412
|
+
Columns: QueryList<ColumnComponent>;
|
|
413
|
+
ColumnGroups: QueryList<ColumnGroupComponent>;
|
|
414
|
+
RowResumenGroups: QueryList<RowResumenComponent>;
|
|
415
|
+
AdditionalTemplate?: TemplateRef<any>;
|
|
416
|
+
AdditionalCentralTemplate?: TemplateRef<any>;
|
|
417
|
+
AdditionalExtendedTemplate?: TemplateRef<any>;
|
|
418
|
+
EmitSortEvent: EventEmitter<SortFieldModel[]>;
|
|
419
|
+
ColumnList: ColumnComponent[];
|
|
420
|
+
ColumnGroupList: ColumnGroupComponent[];
|
|
421
|
+
RowResumenList: RowResumenComponent[];
|
|
422
|
+
CurrentPage: number;
|
|
423
|
+
SortOrder: number;
|
|
424
|
+
SortField: keyof T | null;
|
|
425
|
+
MaxLevel: number;
|
|
426
|
+
ListDataTable: T[];
|
|
427
|
+
SearchInput: string;
|
|
428
|
+
constructor(cdr: ChangeDetectorRef);
|
|
429
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
430
|
+
ngAfterContentInit(): void;
|
|
431
|
+
private captureColumns;
|
|
432
|
+
private captureGroups;
|
|
433
|
+
private captureResumen;
|
|
434
|
+
OnSort(field: string): void;
|
|
435
|
+
UpdatePages(): void;
|
|
436
|
+
OnPageChange(event: {
|
|
437
|
+
page?: number;
|
|
438
|
+
rows?: number;
|
|
439
|
+
} | number): void;
|
|
440
|
+
ResetTable(): void;
|
|
441
|
+
ExecuteSearch(event?: any): void;
|
|
442
|
+
OnRowsPerPageChange(value: number): void;
|
|
443
|
+
ClearSearch(): void;
|
|
444
|
+
get TotalPages(): number;
|
|
445
|
+
get RenderPanel(): boolean;
|
|
446
|
+
onChangeSelectPage(event: any): void;
|
|
447
|
+
OnSearch(): void;
|
|
448
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableFetchComponent<any>, never>;
|
|
449
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableFetchComponent<any>, "intelica-table-fetch", never, { "ComponentId": { "alias": "ComponentId"; "required": false; }; "ShowRowPerPage": { "alias": "ShowRowPerPage"; "required": false; }; "ShowSearch": { "alias": "ShowSearch"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "RowsPerPage": { "alias": "RowsPerPage"; "required": false; }; "ShowCheckbox": { "alias": "ShowCheckbox"; "required": false; }; "ShowIndex": { "alias": "ShowIndex"; "required": false; }; "ClassName": { "alias": "ClassName"; "required": false; }; "DefaultSortField": { "alias": "DefaultSortField"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "AllowedPageSizes": { "alias": "AllowedPageSizes"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; "FilteredList": { "alias": "FilteredList"; "required": false; }; "TotalItems": { "alias": "TotalItems"; "required": false; }; "CurrentPage": { "alias": "CurrentPage"; "required": false; }; "SortOrder": { "alias": "SortOrder"; "required": false; }; "SortField": { "alias": "SortField"; "required": false; }; }, { "EmitQueryParametersChange": "EmitQueryParametersChange"; "EmitSortEvent": "EmitSortEvent"; }, ["AdditionalTemplate", "AdditionalCentralTemplate", "AdditionalExtendedTemplate", "Columns", "ColumnGroups", "RowResumenGroups"], never, true, never>;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class SkeletonTableComponent implements OnInit {
|
|
453
|
+
/**
|
|
454
|
+
* @description number of rows to display
|
|
455
|
+
* @default 6
|
|
456
|
+
* @type number
|
|
457
|
+
* @example <intelica-skeleton-table [rows]="6"></intelica-skeleton-table>
|
|
458
|
+
*/
|
|
459
|
+
rows: 2 | 3 | 4 | 6 | 12;
|
|
460
|
+
/**
|
|
461
|
+
* @description number of columns to display
|
|
462
|
+
* @default 6
|
|
463
|
+
* @type number
|
|
464
|
+
* @example <intelica-skeleton-table [columns]="6"></intelica-skeleton-table>
|
|
465
|
+
*/
|
|
466
|
+
columns: 2 | 3 | 4 | 6 | 12;
|
|
467
|
+
showLeftSkeleton: boolean;
|
|
468
|
+
showRightSkeleton: boolean;
|
|
469
|
+
columnSizes: string[];
|
|
470
|
+
ngOnInit(): void;
|
|
471
|
+
get justifyClass(): string | null;
|
|
472
|
+
getRows(): any[];
|
|
473
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonTableComponent, never>;
|
|
474
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonTableComponent, "intelica-skeleton-table", never, { "rows": { "alias": "rows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showLeftSkeleton": { "alias": "showLeftSkeleton"; "required": false; }; "showRightSkeleton": { "alias": "showRightSkeleton"; "required": false; }; }, {}, never, never, true, never>;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare class EchartComponent implements AfterViewInit {
|
|
478
|
+
private el;
|
|
479
|
+
private platformId;
|
|
480
|
+
config: EChartsOption | undefined;
|
|
481
|
+
id: string;
|
|
482
|
+
renderer: "canvas" | "svg";
|
|
483
|
+
containerStyle: {
|
|
484
|
+
[klass: string]: any;
|
|
485
|
+
};
|
|
486
|
+
event: EventEmitter<any>;
|
|
487
|
+
chart: echarts.ECharts;
|
|
488
|
+
constructor(el: ElementRef, platformId: Object);
|
|
489
|
+
ngAfterViewInit(): void;
|
|
490
|
+
refreshChart(): void;
|
|
491
|
+
resize(): void;
|
|
492
|
+
private initChart;
|
|
493
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EchartComponent, never>;
|
|
494
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EchartComponent, "intelica-echart", never, { "config": { "alias": "config"; "required": false; }; "id": { "alias": "id"; "required": false; }; "renderer": { "alias": "renderer"; "required": false; }; "containerStyle": { "alias": "containerStyle"; "required": false; }; }, { "event": "event"; }, never, never, true, never>;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
declare class SharedService {
|
|
498
|
+
private location;
|
|
499
|
+
configObservable: Subject<boolean>;
|
|
500
|
+
isLoading: BehaviorSubject<boolean>;
|
|
501
|
+
isLoadingHeader: BehaviorSubject<boolean>;
|
|
502
|
+
isExpandedContent: BehaviorSubject<boolean>;
|
|
503
|
+
isLoadingPageInfo: BehaviorSubject<boolean>;
|
|
504
|
+
notifyProfileType: Subject<string>;
|
|
505
|
+
charges: number;
|
|
506
|
+
showHelper: BehaviorSubject<boolean>;
|
|
507
|
+
headerPathName: BehaviorSubject<string[]>;
|
|
508
|
+
pageId: number | undefined;
|
|
509
|
+
openActionMenu$: Subject<boolean>;
|
|
510
|
+
months: {
|
|
511
|
+
en: string[];
|
|
512
|
+
es: string[];
|
|
513
|
+
};
|
|
514
|
+
subtitleDescriptionNotification$: Observable<string>;
|
|
515
|
+
constructor(location: Location);
|
|
516
|
+
IsNumberRate(n: any): boolean;
|
|
517
|
+
RemovePercentage(string: string): string;
|
|
518
|
+
GetTotalAmountByCrncy(col: string, listGeneral: any): number;
|
|
519
|
+
GetTotalAverageByColumn(col: string, listGeneral: any): number;
|
|
520
|
+
GetTotalByGroup(col: string, listGeneral: any[], groupBy: string[] | undefined): any[];
|
|
521
|
+
TransformNegative(value: string): string;
|
|
522
|
+
FormatNumber(value: number, decimalMax: number, decimalMin: number): string;
|
|
523
|
+
ClickOutSideValidator(event: any): boolean;
|
|
524
|
+
CheckParents(src: Element, c: number): boolean;
|
|
525
|
+
GetTitleByRegionOrCountry(CurrentGroup: any, Current: any, field: string): any;
|
|
526
|
+
GetTitleByBank(ListGeneralCountryAll: any[], CurrentBank: any): any;
|
|
527
|
+
Roundgen(value: any, precision: any): number;
|
|
528
|
+
ReturnAmountPercen(amount: any): string;
|
|
529
|
+
ReturAmountFormat(amount: any): string;
|
|
530
|
+
DownloadFile(fileName: string, blob: any): void;
|
|
531
|
+
ViewFile(response: any): void;
|
|
532
|
+
GetNumberCurrency(amount: number): string;
|
|
533
|
+
CountDecimals(param: number): number;
|
|
534
|
+
IsEmpty(value: any): boolean;
|
|
535
|
+
GroupByColumn(data: any[], columnGroup: string): any[];
|
|
536
|
+
GetRoswpanbyData(column: string, index: number, data: Array<any>): number;
|
|
537
|
+
FormatterStringJsonByKey(data: any[], key: string, separador: string): string;
|
|
538
|
+
GroupByKey(xs: any, key: any): any;
|
|
539
|
+
LoadProjectsCss(route: string): void;
|
|
540
|
+
RemoveProjectsCss(route: string): void;
|
|
541
|
+
CheckProjectsCss(route: string): any[];
|
|
542
|
+
CountDecimalsDigits(numero: any): any;
|
|
543
|
+
GetMaxNumberDecimals(data: any[], key: string): number;
|
|
544
|
+
SetHeaderPathName(name: string[]): void;
|
|
545
|
+
FormatDate(date: string, format: string): string;
|
|
546
|
+
CopyTo(src: any, dest: any): void;
|
|
547
|
+
IsValidEmail(email: string): boolean;
|
|
548
|
+
IsGuid(str: string): boolean;
|
|
549
|
+
ContainsSpecialCharacters(str: string): boolean;
|
|
550
|
+
IsNumber(value: any): boolean;
|
|
551
|
+
CalculatePreviousDate(date: Date, monthsAgo: number): string;
|
|
552
|
+
GetFilteredSearchKey(listTempAll: any[], key: string, value: any, operatorId: number): any;
|
|
553
|
+
GetFilteredSearchKeyV2(listTempAll: any[], key: string, value: any, operatorId: number, subKey?: any): any[];
|
|
554
|
+
TransformArrayToHashTable<T, TypeKey extends string | number>(arr: T[], getKey: (p: T) => TypeKey): {
|
|
555
|
+
[key in TypeKey]: T;
|
|
556
|
+
};
|
|
557
|
+
TransformArrayToMap<TypeKey, T>(arr: T[], getKey: (p: T) => TypeKey): Map<TypeKey, T>;
|
|
558
|
+
UrlHasQaUatSubdomain(): boolean;
|
|
559
|
+
UrlHasQaSubdomain(): boolean;
|
|
560
|
+
GetLastSegmentUrl(): string;
|
|
561
|
+
OnChangeMultiple($event: any, selectDescription: string): void;
|
|
562
|
+
RemoveParamsAndSegments(url: string): string;
|
|
563
|
+
OpenActionMenu(): void;
|
|
564
|
+
AbbreviateNumber(number: number, fixed?: number): string;
|
|
565
|
+
NumberFormatByNumberCriteria(number: number, fixed?: number): any;
|
|
566
|
+
FormatPercentage(number: number, decimal?: number): string;
|
|
567
|
+
GetMonthName(monthIndex: number, lang?: "en" | "es"): string;
|
|
568
|
+
FormatNumberWithSuffix(number: number, decimalPlaces?: number): string;
|
|
569
|
+
GenerateGUID(): string;
|
|
570
|
+
AttachDataLabelClickEvent(chartElementId: string, dataArray: any[], onClickCallback: (clickedData: any) => void): void;
|
|
571
|
+
FormatNumberAbsolute(number: number): string;
|
|
572
|
+
SortRecursive(data: any[], column: any, criteria: string): any[];
|
|
573
|
+
SortRecursivePrimeNg(data: any[], column: any, criteria: string): any[];
|
|
574
|
+
SortRecursiveNumber(data: any[], column: any, criteria: string): any[];
|
|
575
|
+
IsDateFormat(value: any): boolean;
|
|
576
|
+
SortRecursiveDate(data: any[], column: any, criteria: string): any[];
|
|
577
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedService, never>;
|
|
578
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SharedService>;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
interface ElementResponse {
|
|
582
|
+
pageElementID: string;
|
|
583
|
+
elementCode: string;
|
|
584
|
+
elementDescription: string;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare class ElementService {
|
|
588
|
+
Elements: ElementResponse[];
|
|
589
|
+
PageRoot: string;
|
|
590
|
+
private readonly pageElementService;
|
|
591
|
+
Initialize$(pageRootValue: string): Observable<void>;
|
|
592
|
+
HasElement(description: string): boolean;
|
|
593
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementService, never>;
|
|
594
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ElementService>;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare class PageElementService {
|
|
598
|
+
private readonly _http;
|
|
599
|
+
private readonly _configService;
|
|
600
|
+
GetElements(pageRoot: string): Observable<ElementResponse[]>;
|
|
601
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageElementService, never>;
|
|
602
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PageElementService>;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
declare class EchartService {
|
|
606
|
+
private readonly _formatAmountPipe;
|
|
607
|
+
private getDefultAxisConfiguration;
|
|
608
|
+
private getCategoryAxisConfiguration;
|
|
609
|
+
private getValueAxisConfiguration;
|
|
610
|
+
private getGridConfiguration;
|
|
611
|
+
private getLegendConfiguration;
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @param color - Color of the tooltip
|
|
615
|
+
* @param title - Title of the tooltip
|
|
616
|
+
* @param body - Body of the tooltip
|
|
617
|
+
* @returns - Tooltip HTML string
|
|
618
|
+
*/
|
|
619
|
+
getTooltipFormatter(color: string, title: string, body: string): string;
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @param categories - Array of categories for the x-axis
|
|
623
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
624
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
625
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
626
|
+
* @param showLegend - Optional flag to show the legend
|
|
627
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
628
|
+
*/
|
|
629
|
+
getBarChartOptions(categories: string[], series: {
|
|
630
|
+
name: string;
|
|
631
|
+
value: any;
|
|
632
|
+
color: string;
|
|
633
|
+
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @param categories - Array of categories for the x-axis
|
|
637
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
638
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
639
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
640
|
+
* @param showLegend - Optional flag to show the legend
|
|
641
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
642
|
+
*/
|
|
643
|
+
getBarChartStackOptions(categories: string[], series: {
|
|
644
|
+
name: string;
|
|
645
|
+
value: any;
|
|
646
|
+
color: string;
|
|
647
|
+
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @param categories - Array of categories for the y-axis
|
|
651
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
652
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
653
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
654
|
+
* @param showLegend - Optional flag to show the legend
|
|
655
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
656
|
+
*/
|
|
657
|
+
getBarChartHorizontalOptions(categories: string[], series: {
|
|
658
|
+
name: string;
|
|
659
|
+
value: any;
|
|
660
|
+
color: string;
|
|
661
|
+
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean, enableSelectStyle?: boolean): EChartsOption;
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @param categories - Array of categories for the y-axis
|
|
665
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
666
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
667
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
668
|
+
* @param showLegend - Optional flag to show the legend
|
|
669
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
670
|
+
*/
|
|
671
|
+
getBarChartHorizontalStackOptions(categories: string[], series: {
|
|
672
|
+
name: string;
|
|
673
|
+
value: any;
|
|
674
|
+
color: string;
|
|
675
|
+
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @param categories - Array of categories for the y-axis
|
|
679
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
680
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
681
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
682
|
+
* @param showLegend - Optional flag to show the legend
|
|
683
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
684
|
+
*/
|
|
685
|
+
getBarChartTopOptions(categories: string[], series: {
|
|
686
|
+
name: string;
|
|
687
|
+
value: any;
|
|
688
|
+
color: string;
|
|
689
|
+
}[], categoryWidth?: number, labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean, categoryFormatter?: (value: string, index: number) => string): EChartsOption;
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @param categories - Array of categories for the x-axis
|
|
693
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
694
|
+
* @param labelConfig - Optional label configuration for the lines
|
|
695
|
+
* @param tooltipConfig - Optional tooltip configuration for the lines
|
|
696
|
+
* @param showLegend - Optional flag to show the legend
|
|
697
|
+
* @returns - EChartsOption - Configuration object for the line chart
|
|
698
|
+
*/
|
|
699
|
+
getLineChartOptions(categories: string[], series: {
|
|
700
|
+
name: string;
|
|
701
|
+
value: any;
|
|
702
|
+
color: string;
|
|
703
|
+
}[], labelConfig: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @param data - Array of series data, each containing name, value, and color
|
|
707
|
+
* @param labelConfig - Optional label configuration
|
|
708
|
+
* @param tooltipConfig - Optional tooltip configuration
|
|
709
|
+
* @returns - EChartsOption - Configuration object for the pie
|
|
710
|
+
*/
|
|
711
|
+
getDoughnutPieOptions(data: {
|
|
712
|
+
name: string;
|
|
713
|
+
value: any;
|
|
714
|
+
color: string;
|
|
715
|
+
}[], labelConfig: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>): EChartsOption;
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @param letter - text to show in the center of the pie
|
|
719
|
+
* @param value - rate value
|
|
720
|
+
* @param textSize - size of the letter
|
|
721
|
+
* @param color - color of the letter and pie
|
|
722
|
+
* @param total - total value for the pie (default is 100)
|
|
723
|
+
* @returns
|
|
724
|
+
*/
|
|
725
|
+
getRateDoughnutPieOptions(letter: string, value: number, textSize: number, color: string, total?: number): EChartsOption;
|
|
726
|
+
/**
|
|
727
|
+
* Semi doughnut gauge (half circle) with:
|
|
728
|
+
* - Progress arc
|
|
729
|
+
* - End dot
|
|
730
|
+
* - Center letter
|
|
731
|
+
*
|
|
732
|
+
* @param letter - Text to show in the center
|
|
733
|
+
* @param value - Current value
|
|
734
|
+
* @param textSize - Center letter font size
|
|
735
|
+
* @param color - Progress and end dot color
|
|
736
|
+
* @param total - Max value (default 100)
|
|
737
|
+
*/
|
|
738
|
+
getRateSemiDoughnutOptions(letter: string, value: number, textSize: number, color: string, total?: number, bottomText?: string): EChartsOption;
|
|
739
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EchartService, never>;
|
|
740
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EchartService>;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
declare class RequestCacheService {
|
|
744
|
+
private readonly cache;
|
|
745
|
+
private readonly maxEntries;
|
|
746
|
+
private readonly defaultTtlMs;
|
|
747
|
+
getOrSet<T>(key: string, factory: () => Observable<T>, ttlMs?: number): Observable<T>;
|
|
748
|
+
invalidate(prefix?: string): void;
|
|
749
|
+
private removeExpiredEntries;
|
|
750
|
+
private enforceCapacityLimit;
|
|
751
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestCacheService, never>;
|
|
752
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RequestCacheService>;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
declare class TruncatePipe implements PipeTransform {
|
|
756
|
+
transform(value: any, size?: number, original?: boolean): any;
|
|
757
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
|
|
758
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
|
|
759
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruncatePipe>;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
declare class FormatAmountPipe implements PipeTransform {
|
|
763
|
+
transform(value: number | string | null | undefined, shortFormat?: boolean, decimalPlaces?: number, validNegative?: boolean): string;
|
|
764
|
+
private getShortFormat;
|
|
765
|
+
private formatWithThousandSeparators;
|
|
766
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatAmountPipe, never>;
|
|
767
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormatAmountPipe, "amount", true>;
|
|
768
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormatAmountPipe>;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
declare class FormatCellPipe implements PipeTransform {
|
|
772
|
+
private readonly datePipe;
|
|
773
|
+
transform(value: any, type: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa"): string;
|
|
774
|
+
getDateFormat(mode: DateMode): string;
|
|
775
|
+
formatDateValue(value: any, mode: string): string;
|
|
776
|
+
private formatTime;
|
|
777
|
+
private formatDecimal;
|
|
778
|
+
private formatTarifa;
|
|
779
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatCellPipe, never>;
|
|
780
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormatCellPipe, "formatCell", true>;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
interface SearchFieldModel {
|
|
784
|
+
id: number;
|
|
785
|
+
name: string;
|
|
786
|
+
field: string;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
declare class PageInformation {
|
|
790
|
+
pageTitle: string;
|
|
791
|
+
pageRoot: string | undefined;
|
|
792
|
+
constructor(pageTitle: string, pageRoot: string | undefined);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
declare enum SearchInputEnum {
|
|
796
|
+
OperatorId = "operatorId",
|
|
797
|
+
FieldId = "fieldId",
|
|
798
|
+
SearchText = "searchText"
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
declare function darkenColor(input: string, amount?: number): string;
|
|
802
|
+
|
|
803
|
+
export { ColumnComponent, ColumnGroupComponent, EchartComponent, EchartService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageElementService, PageInformation, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TruncatePipe, darkenColor };
|
|
804
|
+
export type { CascadeFilterModel, ElementResponse, QueryParametersModel, SearchFieldModel, SearchInputModel, SortFieldModel };
|