intelica-library-components 1.1.13 → 1.1.14
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-components.mjs +845 -688
- package/fesm2022/intelica-library-components.mjs.map +1 -1
- package/index.d.ts +216 -169
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform,
|
|
2
|
+
import { PipeTransform, TemplateRef, OnChanges, AfterContentInit, EventEmitter, QueryList, SimpleChanges, OnDestroy, OnInit, ElementRef, ChangeDetectorRef, AfterViewInit, AfterViewChecked } from '@angular/core';
|
|
3
3
|
import { HttpInterceptorFn } from '@angular/common/http';
|
|
4
4
|
import { CanActivateFn } from '@angular/router';
|
|
5
5
|
import { FormGroup, ControlValueAccessor } from '@angular/forms';
|
|
@@ -140,6 +140,155 @@ declare class GlobalTermService {
|
|
|
140
140
|
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalTermService>;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
interface SearchInputModel {
|
|
144
|
+
operatorId: number;
|
|
145
|
+
operatorText?: string;
|
|
146
|
+
fieldId: number;
|
|
147
|
+
fieldText?: string;
|
|
148
|
+
searchText: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare class ColumnComponent<T = any> {
|
|
152
|
+
field: string;
|
|
153
|
+
header: string;
|
|
154
|
+
sortable: boolean;
|
|
155
|
+
width?: string;
|
|
156
|
+
className?: string;
|
|
157
|
+
headerTooltip: string;
|
|
158
|
+
headerTooltipPosition: "top" | "bottom" | "left" | "right";
|
|
159
|
+
tooltip: string;
|
|
160
|
+
tooltipPosition: "top" | "bottom" | "left" | "right";
|
|
161
|
+
showIndex: boolean;
|
|
162
|
+
showHeader: boolean;
|
|
163
|
+
minWidth?: string;
|
|
164
|
+
isChecboxColumn: boolean;
|
|
165
|
+
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
166
|
+
templateRef?: TemplateRef<any>;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnComponent<any>, never>;
|
|
168
|
+
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>;
|
|
169
|
+
}
|
|
170
|
+
declare class ColumnGroupComponent<T = any> {
|
|
171
|
+
field: string;
|
|
172
|
+
header: string;
|
|
173
|
+
sortable: boolean;
|
|
174
|
+
width?: string;
|
|
175
|
+
minWidth?: string;
|
|
176
|
+
className?: string;
|
|
177
|
+
headerTooltip: string;
|
|
178
|
+
headerTooltipPosition: "top" | "bottom" | "left" | "right";
|
|
179
|
+
colspan: number;
|
|
180
|
+
rowspan: number;
|
|
181
|
+
level: number;
|
|
182
|
+
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnGroupComponent<any>, never>;
|
|
184
|
+
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>;
|
|
185
|
+
}
|
|
186
|
+
declare class RowResumenComponent<T = any> {
|
|
187
|
+
field: string;
|
|
188
|
+
className?: string;
|
|
189
|
+
colspan: number;
|
|
190
|
+
rowspan: number;
|
|
191
|
+
templateRef?: TemplateRef<any>;
|
|
192
|
+
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowResumenComponent<any>, never>;
|
|
194
|
+
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>;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface SortFieldModel {
|
|
198
|
+
sortOrder: number;
|
|
199
|
+
sortField: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare class TableComponent<T> implements OnChanges, AfterContentInit {
|
|
203
|
+
private readonly SharedService;
|
|
204
|
+
readonly GlobalTermService: GlobalTermService;
|
|
205
|
+
ComponentId: string;
|
|
206
|
+
ListData: T[];
|
|
207
|
+
ShowRowPerPage: boolean;
|
|
208
|
+
ShowSearch: boolean;
|
|
209
|
+
ShowPagination: boolean;
|
|
210
|
+
RowsPerPage: number;
|
|
211
|
+
ShowCheckbox: boolean;
|
|
212
|
+
ShowIndex: boolean;
|
|
213
|
+
ListDataSelected: T[];
|
|
214
|
+
SelectedIdentifier: keyof T | null;
|
|
215
|
+
ClassName: string;
|
|
216
|
+
DefaultSortField: string;
|
|
217
|
+
DefaultSortOrder: number;
|
|
218
|
+
scrollHeight: string;
|
|
219
|
+
scrollable: boolean;
|
|
220
|
+
AllowedPageSizes: number[];
|
|
221
|
+
tableStyle: {
|
|
222
|
+
[klass: string]: any;
|
|
223
|
+
};
|
|
224
|
+
private _isTableDisabled;
|
|
225
|
+
private _pendingUncheck;
|
|
226
|
+
HeaderState: Record<string, {
|
|
227
|
+
checked: boolean;
|
|
228
|
+
indeterminate: boolean;
|
|
229
|
+
}>;
|
|
230
|
+
set IsTableDisabled(val: boolean);
|
|
231
|
+
get IsTableDisabled(): boolean;
|
|
232
|
+
recomputeHeaderState(field: string): void;
|
|
233
|
+
onBodyCheckboxChange(field: string): void;
|
|
234
|
+
private refreshAllHeaderStates;
|
|
235
|
+
EmitSelectedItem: EventEmitter<T[]>;
|
|
236
|
+
EmitListDataFilter: EventEmitter<T[]>;
|
|
237
|
+
EmitSearchEvent: EventEmitter<SearchInputModel>;
|
|
238
|
+
EmitSortEvent: EventEmitter<SortFieldModel[]>;
|
|
239
|
+
Columns: QueryList<ColumnComponent>;
|
|
240
|
+
ColumnGroups: QueryList<ColumnGroupComponent>;
|
|
241
|
+
RowResumenGroups: QueryList<RowResumenComponent>;
|
|
242
|
+
AdditionalTemplate?: TemplateRef<any>;
|
|
243
|
+
AdditionalExtendedTemplate?: TemplateRef<any>;
|
|
244
|
+
AdditionalCentralTemplate?: TemplateRef<any>;
|
|
245
|
+
ColumnList: ColumnComponent[];
|
|
246
|
+
ColumnGroupList: ColumnGroupComponent[];
|
|
247
|
+
RowResumenList: RowResumenComponent[];
|
|
248
|
+
ListDataFilter: T[];
|
|
249
|
+
ListDataTable: T[];
|
|
250
|
+
ListDataSelectedFilter: T[];
|
|
251
|
+
ListDataSelectedTemp: T[];
|
|
252
|
+
SearchInput: SearchInputModel;
|
|
253
|
+
TotalRecords: number;
|
|
254
|
+
CurrentPage: number;
|
|
255
|
+
SortOrder: number;
|
|
256
|
+
SortField: keyof T | null;
|
|
257
|
+
MaxLevel: number;
|
|
258
|
+
Levels: number[];
|
|
259
|
+
ngOnChanges(): void;
|
|
260
|
+
ngAfterContentInit(): void;
|
|
261
|
+
OnSort(field: string): void;
|
|
262
|
+
OnPageChange(event: {
|
|
263
|
+
page?: number;
|
|
264
|
+
rows?: number;
|
|
265
|
+
} | number): void;
|
|
266
|
+
ExecuteSearch(searchText?: string): void;
|
|
267
|
+
SortPages(): void;
|
|
268
|
+
UpdatePages(): void;
|
|
269
|
+
ValidateSelect(): void;
|
|
270
|
+
SelectAll(event: any): void;
|
|
271
|
+
OnRowSelect(event: any): void;
|
|
272
|
+
OnRowUnselect(event: any): void;
|
|
273
|
+
ResetTable(): void;
|
|
274
|
+
EmitSearchValues(): void;
|
|
275
|
+
OnHeaderCheckboxChange(checked: boolean, field: string): void;
|
|
276
|
+
private getHeaderScope;
|
|
277
|
+
FilterData(field: string): void;
|
|
278
|
+
IsInderteminate(column: string): void;
|
|
279
|
+
OnRowsPerPageChange(value: number): void;
|
|
280
|
+
ResetTableSelected(): void;
|
|
281
|
+
ClearSearch(): void;
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
283
|
+
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>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface SearchFieldModel {
|
|
287
|
+
id: number;
|
|
288
|
+
name: string;
|
|
289
|
+
field: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
143
292
|
declare class PaginatorComponent implements OnChanges {
|
|
144
293
|
readonly GlobalTermService: GlobalTermService;
|
|
145
294
|
/**
|
|
@@ -180,14 +329,6 @@ declare class PaginatorComponent implements OnChanges {
|
|
|
180
329
|
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "intelica-paginator", never, { "TotalItems": { "alias": "TotalItems"; "required": false; }; "CurrentPage": { "alias": "CurrentPage"; "required": false; }; "ItemsPerPage": { "alias": "ItemsPerPage"; "required": false; }; }, { "PageChange": "PageChange"; }, never, never, true, never>;
|
|
181
330
|
}
|
|
182
331
|
|
|
183
|
-
interface SearchInputModel {
|
|
184
|
-
operatorId: number;
|
|
185
|
-
operatorText?: string;
|
|
186
|
-
fieldId: number;
|
|
187
|
-
fieldText?: string;
|
|
188
|
-
searchText: string;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
332
|
declare class SearchComponent implements OnDestroy, OnInit {
|
|
192
333
|
readonly GlobalTermService: GlobalTermService;
|
|
193
334
|
/**
|
|
@@ -288,152 +429,6 @@ declare class SearchComponent implements OnDestroy, OnInit {
|
|
|
288
429
|
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>;
|
|
289
430
|
}
|
|
290
431
|
|
|
291
|
-
declare class ColumnComponent<T = any> {
|
|
292
|
-
field: string;
|
|
293
|
-
header: string;
|
|
294
|
-
sortable: boolean;
|
|
295
|
-
width?: string;
|
|
296
|
-
className?: string;
|
|
297
|
-
headerTooltip: string;
|
|
298
|
-
headerTooltipPosition: "top" | "bottom" | "left" | "right";
|
|
299
|
-
tooltip: string;
|
|
300
|
-
tooltipPosition: "top" | "bottom" | "left" | "right";
|
|
301
|
-
showIndex: boolean;
|
|
302
|
-
showHeader: boolean;
|
|
303
|
-
minWidth?: string;
|
|
304
|
-
isChecboxColumn: boolean;
|
|
305
|
-
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
306
|
-
templateRef?: TemplateRef<any>;
|
|
307
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnComponent<any>, never>;
|
|
308
|
-
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>;
|
|
309
|
-
}
|
|
310
|
-
declare class ColumnGroupComponent<T = any> {
|
|
311
|
-
field: string;
|
|
312
|
-
header: string;
|
|
313
|
-
sortable: boolean;
|
|
314
|
-
width?: string;
|
|
315
|
-
minWidth?: string;
|
|
316
|
-
className?: string;
|
|
317
|
-
headerTooltip: string;
|
|
318
|
-
headerTooltipPosition: "top" | "bottom" | "left" | "right";
|
|
319
|
-
colspan: number;
|
|
320
|
-
rowspan: number;
|
|
321
|
-
level: number;
|
|
322
|
-
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
323
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnGroupComponent<any>, never>;
|
|
324
|
-
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>;
|
|
325
|
-
}
|
|
326
|
-
declare class RowResumenComponent<T = any> {
|
|
327
|
-
field: string;
|
|
328
|
-
className?: string;
|
|
329
|
-
colspan: number;
|
|
330
|
-
rowspan: number;
|
|
331
|
-
templateRef?: TemplateRef<any>;
|
|
332
|
-
formatType: "string" | "date" | "date2" | "date3" | "time" | "decimal2" | "decimal4" | "tarifa";
|
|
333
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RowResumenComponent<any>, never>;
|
|
334
|
-
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>;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
interface SearchFieldModel {
|
|
338
|
-
id: number;
|
|
339
|
-
name: string;
|
|
340
|
-
field: string;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
interface SortFieldModel {
|
|
344
|
-
sortOrder: number;
|
|
345
|
-
sortField: string;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
declare class TableComponent<T> implements OnChanges, AfterContentInit {
|
|
349
|
-
private readonly SharedService;
|
|
350
|
-
readonly GlobalTermService: GlobalTermService;
|
|
351
|
-
ComponentId: string;
|
|
352
|
-
ListData: T[];
|
|
353
|
-
ShowRowPerPage: boolean;
|
|
354
|
-
ShowSearch: boolean;
|
|
355
|
-
ListSearchOptions: SearchFieldModel[];
|
|
356
|
-
ShowPagination: boolean;
|
|
357
|
-
RowsPerPage: number;
|
|
358
|
-
ShowCheckbox: boolean;
|
|
359
|
-
ShowIndex: boolean;
|
|
360
|
-
ShowSearchTooltip: boolean;
|
|
361
|
-
ListDataSelected: T[];
|
|
362
|
-
SelectedIdentifier: keyof T | null;
|
|
363
|
-
ClassName: string;
|
|
364
|
-
DefaultSortField: string;
|
|
365
|
-
DefaultSortOrder: number;
|
|
366
|
-
scrollHeight: string;
|
|
367
|
-
scrollable: boolean;
|
|
368
|
-
AllowedPageSizes: number[];
|
|
369
|
-
tableStyle: {
|
|
370
|
-
[klass: string]: any;
|
|
371
|
-
};
|
|
372
|
-
private _isTableDisabled;
|
|
373
|
-
private _pendingUncheck;
|
|
374
|
-
HeaderState: Record<string, {
|
|
375
|
-
checked: boolean;
|
|
376
|
-
indeterminate: boolean;
|
|
377
|
-
}>;
|
|
378
|
-
set IsTableDisabled(val: boolean);
|
|
379
|
-
get IsTableDisabled(): boolean;
|
|
380
|
-
recomputeHeaderState(field: string): void;
|
|
381
|
-
onBodyCheckboxChange(field: string): void;
|
|
382
|
-
private refreshAllHeaderStates;
|
|
383
|
-
EmitSelectedItem: EventEmitter<T[]>;
|
|
384
|
-
EmitListDataFilter: EventEmitter<T[]>;
|
|
385
|
-
EmitSearchEvent: EventEmitter<SearchInputModel>;
|
|
386
|
-
EmitSortEvent: EventEmitter<SortFieldModel[]>;
|
|
387
|
-
PaginatorTable?: PaginatorComponent;
|
|
388
|
-
SearchTable?: SearchComponent;
|
|
389
|
-
Columns: QueryList<ColumnComponent>;
|
|
390
|
-
ColumnGroups: QueryList<ColumnGroupComponent>;
|
|
391
|
-
RowResumenGroups: QueryList<RowResumenComponent>;
|
|
392
|
-
AdditionalTemplate?: TemplateRef<any>;
|
|
393
|
-
AdditionalExtendedTemplate?: TemplateRef<any>;
|
|
394
|
-
AdditionalCentralTemplate?: TemplateRef<any>;
|
|
395
|
-
ColumnList: ColumnComponent[];
|
|
396
|
-
ColumnGroupList: ColumnGroupComponent[];
|
|
397
|
-
RowResumenList: RowResumenComponent[];
|
|
398
|
-
ListDataFilter: T[];
|
|
399
|
-
ListDataTable: T[];
|
|
400
|
-
ListDataSelectedFilter: T[];
|
|
401
|
-
ListDataSelectedTemp: T[];
|
|
402
|
-
ListSearchOptionsSimple: {
|
|
403
|
-
id: number;
|
|
404
|
-
value: string;
|
|
405
|
-
}[];
|
|
406
|
-
SearchInput: SearchInputModel;
|
|
407
|
-
TotalRecords: number;
|
|
408
|
-
CurrentPage: number;
|
|
409
|
-
SortOrder: number;
|
|
410
|
-
SortField: keyof T | null;
|
|
411
|
-
MaxLevel: number;
|
|
412
|
-
Levels: number[];
|
|
413
|
-
ngOnChanges(): void;
|
|
414
|
-
ngAfterContentInit(): void;
|
|
415
|
-
LoadSearchOptions(): void;
|
|
416
|
-
OnSort(field: string): void;
|
|
417
|
-
OnPageChange(pageIndex: number): void;
|
|
418
|
-
ExecuteSearch(event: any): void;
|
|
419
|
-
SortPages(): void;
|
|
420
|
-
UpdatePages(): void;
|
|
421
|
-
ValidateSelect(): void;
|
|
422
|
-
SelectAll(event: any): void;
|
|
423
|
-
OnRowSelect(event: any): void;
|
|
424
|
-
OnRowUnselect(event: any): void;
|
|
425
|
-
ResetTable(): void;
|
|
426
|
-
EmitSearchValues(): void;
|
|
427
|
-
OnHeaderCheckboxChange(checked: boolean, field: string): void;
|
|
428
|
-
private getHeaderScope;
|
|
429
|
-
FilterData(field: string): void;
|
|
430
|
-
IsInderteminate(column: string): void;
|
|
431
|
-
OnRowsPerPageChange(value: number): void;
|
|
432
|
-
ResetTableSelected(): void;
|
|
433
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
434
|
-
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; }; "ListSearchOptions": { "alias": "ListSearchOptions"; "required": false; }; "ShowPagination": { "alias": "ShowPagination"; "required": false; }; "RowsPerPage": { "alias": "RowsPerPage"; "required": false; }; "ShowCheckbox": { "alias": "ShowCheckbox"; "required": false; }; "ShowIndex": { "alias": "ShowIndex"; "required": false; }; "ShowSearchTooltip": { "alias": "ShowSearchTooltip"; "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>;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
432
|
declare class TreeColumnComponent<T = any> {
|
|
438
433
|
field: string;
|
|
439
434
|
header: string;
|
|
@@ -1629,12 +1624,10 @@ declare class TableFetchComponent<T> implements OnChanges, AfterContentInit {
|
|
|
1629
1624
|
ComponentId: string;
|
|
1630
1625
|
ShowRowPerPage: boolean;
|
|
1631
1626
|
ShowSearch: boolean;
|
|
1632
|
-
ListSearchOptions: SearchFieldModel[];
|
|
1633
1627
|
ShowPagination: boolean;
|
|
1634
1628
|
RowsPerPage: number;
|
|
1635
1629
|
ShowCheckbox: boolean;
|
|
1636
1630
|
ShowIndex: boolean;
|
|
1637
|
-
ShowSearchTooltip: boolean;
|
|
1638
1631
|
ClassName: string;
|
|
1639
1632
|
DefaultSortField: string;
|
|
1640
1633
|
scrollHeight: string;
|
|
@@ -1649,7 +1642,6 @@ declare class TableFetchComponent<T> implements OnChanges, AfterContentInit {
|
|
|
1649
1642
|
TotalRecords: number;
|
|
1650
1643
|
IsPaginatorInputSearch: boolean;
|
|
1651
1644
|
EmitQueryParametersChange: EventEmitter<QueryParametersModel>;
|
|
1652
|
-
PaginatorTable?: PaginatorComponent;
|
|
1653
1645
|
SearchTable?: SearchComponent;
|
|
1654
1646
|
Columns: QueryList<ColumnComponent>;
|
|
1655
1647
|
ColumnGroups: QueryList<ColumnGroupComponent>;
|
|
@@ -1661,31 +1653,29 @@ declare class TableFetchComponent<T> implements OnChanges, AfterContentInit {
|
|
|
1661
1653
|
ColumnList: ColumnComponent[];
|
|
1662
1654
|
ColumnGroupList: ColumnGroupComponent[];
|
|
1663
1655
|
RowResumenList: RowResumenComponent[];
|
|
1664
|
-
SearchInput: SearchInputModel;
|
|
1665
1656
|
CurrentPage: number;
|
|
1666
1657
|
SortOrder: number;
|
|
1667
1658
|
SortField: keyof T | null;
|
|
1668
|
-
ListSearchOptionsSimple: {
|
|
1669
|
-
id: number;
|
|
1670
|
-
value: string;
|
|
1671
|
-
}[];
|
|
1672
1659
|
MaxLevel: number;
|
|
1673
1660
|
ListDataTable: T[];
|
|
1661
|
+
SearchInput: string;
|
|
1674
1662
|
constructor(cdr: ChangeDetectorRef);
|
|
1675
1663
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1676
1664
|
ngAfterContentInit(): void;
|
|
1677
1665
|
private captureColumns;
|
|
1678
1666
|
private captureGroups;
|
|
1679
1667
|
private captureResumen;
|
|
1680
|
-
LoadSearchOptions(): void;
|
|
1681
1668
|
OnSort(field: string): void;
|
|
1682
1669
|
UpdatePages(): void;
|
|
1683
|
-
OnPageChange(
|
|
1670
|
+
OnPageChange(event: {
|
|
1671
|
+
page?: number;
|
|
1672
|
+
rows?: number;
|
|
1673
|
+
} | number): void;
|
|
1684
1674
|
ResetTable(): void;
|
|
1685
|
-
ExecuteSearch(event
|
|
1675
|
+
ExecuteSearch(event?: any): void;
|
|
1686
1676
|
OnRowsPerPageChange(value: number): void;
|
|
1687
1677
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableFetchComponent<any>, never>;
|
|
1688
|
-
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; }; "
|
|
1678
|
+
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>;
|
|
1689
1679
|
}
|
|
1690
1680
|
|
|
1691
1681
|
declare class IntelicaAlertComponent {
|
|
@@ -2400,6 +2390,63 @@ declare class ElementService {
|
|
|
2400
2390
|
static ɵprov: i0.ɵɵInjectableDeclaration<ElementService>;
|
|
2401
2391
|
}
|
|
2402
2392
|
|
|
2393
|
+
interface ItlSessionEnvelope<T> {
|
|
2394
|
+
sessionId: string;
|
|
2395
|
+
updatedAt: number;
|
|
2396
|
+
value: T;
|
|
2397
|
+
}
|
|
2398
|
+
type ItlSessionScope = "global" | "user" | "profile" | "user-profile";
|
|
2399
|
+
declare class IntelicaSessionService {
|
|
2400
|
+
private readonly configService;
|
|
2401
|
+
private readonly prefix;
|
|
2402
|
+
private readonly sessionIdKey;
|
|
2403
|
+
private pageRoot;
|
|
2404
|
+
private sessionId;
|
|
2405
|
+
constructor();
|
|
2406
|
+
/**
|
|
2407
|
+
* Actualiza el pageRoot actual, es necesario matricularlo en el app.component
|
|
2408
|
+
*/
|
|
2409
|
+
setPageRoot(pageRoot: string): void;
|
|
2410
|
+
/**
|
|
2411
|
+
* Retorna la key de usuario con scope si necesitas reutilizarla manualmente.
|
|
2412
|
+
*/
|
|
2413
|
+
getUserKey(key: string): string;
|
|
2414
|
+
private ensureSessionId;
|
|
2415
|
+
private createGuid;
|
|
2416
|
+
private buildScopedKey;
|
|
2417
|
+
/**
|
|
2418
|
+
* Guarda un valor serializable en localStorage con scope por pageRoot
|
|
2419
|
+
*/
|
|
2420
|
+
set<T>(key: string, value: T): void;
|
|
2421
|
+
/**
|
|
2422
|
+
* Guarda un valor serializable en localStorage usando el scope indicado.
|
|
2423
|
+
*/
|
|
2424
|
+
set<T>(key: string, value: T, scope: ItlSessionScope): void;
|
|
2425
|
+
/**
|
|
2426
|
+
* Obtiene un valor desde localStorage usando la misma composición de key
|
|
2427
|
+
* (pageRoot + usuario + perfil). Retorna null si no existe o la sesión no coincide.
|
|
2428
|
+
*/
|
|
2429
|
+
get<T>(key: string): T | null;
|
|
2430
|
+
/**
|
|
2431
|
+
* Obtiene un valor desde localStorage usando el scope indicado.
|
|
2432
|
+
*/
|
|
2433
|
+
get<T>(key: string, scope: ItlSessionScope): T | null;
|
|
2434
|
+
/**
|
|
2435
|
+
* Limpia todo lo que haya en localStorage para este servicio (todas las sesiones).
|
|
2436
|
+
* Úsalo al iniciar sesión/cerrar sesión para evitar acumulación.
|
|
2437
|
+
*/
|
|
2438
|
+
clearAll(): void;
|
|
2439
|
+
/**
|
|
2440
|
+
* Limpia los valores de la sesión actual para el pageRoot vigente.
|
|
2441
|
+
*/
|
|
2442
|
+
clearCurrentPageRoot(): void;
|
|
2443
|
+
private clearPageRoot;
|
|
2444
|
+
private cleanupForeignSessions;
|
|
2445
|
+
private tryParseEnvelope;
|
|
2446
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntelicaSessionService, never>;
|
|
2447
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IntelicaSessionService>;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2403
2450
|
/**
|
|
2404
2451
|
* Función de comparación genérica para ordenar objetos por un campo específico.
|
|
2405
2452
|
*
|
|
@@ -2429,5 +2476,5 @@ declare function GetCookieAttributes(environment: string): CookieAttributes;
|
|
|
2429
2476
|
|
|
2430
2477
|
declare const IntelicaTheme: _primeuix_themes_types.Preset<_primeuix_themes_aura_base.AuraBaseDesignTokens>;
|
|
2431
2478
|
|
|
2432
|
-
export { ALERT_DEFAULTS, ALERT_ICON_PATHS, ALERT_TYPE_CONFIG, ActionDirective, ActionsMenuComponent, AddFavoritesComponent, AlertButtonMode, AlertService, AlertType, ButtonSplitComponent, CheckboxFilterDirective, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DATEPICKER_BUTTON_TYPES, DataDirective, DateFilterDirective, DateModeOptions, DatepickerComponent, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaAlertComponent, IntelicaCellCheckboxDirective, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RouteGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
|
|
2433
|
-
export type { AlertButtonConfig, AlertConfig, AlertResult, AlertStyleConfig, AlertTypeConfig, CascadeFilterModel, ColorName, CookieAttributes, CustomButtonType, DateMode, ExportExcelCommand, FilterModel, ICell, IExcelColumnName, IExcelHeaderGroup, IFilter, PopoverInformationModel, PropertiesModel, QueryParametersModel, SearchFieldModel, SearchInputModel, SortFieldModel };
|
|
2479
|
+
export { ALERT_DEFAULTS, ALERT_ICON_PATHS, ALERT_TYPE_CONFIG, ActionDirective, ActionsMenuComponent, AddFavoritesComponent, AlertButtonMode, AlertService, AlertType, ButtonSplitComponent, CheckboxFilterDirective, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DATEPICKER_BUTTON_TYPES, DataDirective, DateFilterDirective, DateModeOptions, DatepickerComponent, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaAlertComponent, IntelicaCellCheckboxDirective, IntelicaSessionService, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RouteGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
|
|
2480
|
+
export type { AlertButtonConfig, AlertConfig, AlertResult, AlertStyleConfig, AlertTypeConfig, CascadeFilterModel, ColorName, CookieAttributes, CustomButtonType, DateMode, ExportExcelCommand, FilterModel, ICell, IExcelColumnName, IExcelHeaderGroup, IFilter, ItlSessionEnvelope, ItlSessionScope, PopoverInformationModel, PropertiesModel, QueryParametersModel, SearchFieldModel, SearchInputModel, SortFieldModel };
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intelica-library-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.3.0",
|
|
6
6
|
"@angular/core": "^20.3.0",
|
|
7
7
|
"exceljs": "^4.4.0",
|
|
8
8
|
"file-saver": "^2.0.5",
|
|
9
|
+
"guid-typescript": "^1.0.9",
|
|
9
10
|
"moment": "^2.30.1",
|
|
10
11
|
"sweetalert2": "^11.23.0",
|
|
11
12
|
"xlsx": "^0.18.5"
|