@eternalcodestudio/primeng-table 20.0.0 → 20.0.3
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/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, AfterViewInit,
|
|
2
|
+
import { OnInit, AfterViewInit, EventEmitter, ElementRef } from '@angular/core';
|
|
3
3
|
import { Table, TableLazyLoadEvent, TableRowSelectEvent, TableRowUnSelectEvent, TablePageEvent } from 'primeng/table';
|
|
4
|
-
import { SortMeta, MenuItem } from 'primeng/api';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import { HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
6
|
+
import { SortMeta, MenuItem } from 'primeng/api';
|
|
7
7
|
|
|
8
8
|
declare abstract class ECSPrimengTableHttpService {
|
|
9
9
|
abstract handleHttpGetRequest<T>(servicePoint: string, httpOptions?: HttpHeaders | null, showSpinner?: boolean, customErrorHandler?: ((error: any) => Observable<any>) | null, showAPIError?: boolean, responseType?: 'json' | 'blob'): Observable<HttpResponse<T>>;
|
|
@@ -79,7 +79,8 @@ interface IExcelExportRequest extends ITableQueryRequest {
|
|
|
79
79
|
|
|
80
80
|
declare enum CellOverflowBehaviour {
|
|
81
81
|
Hidden = 0,
|
|
82
|
-
Wrap = 1
|
|
82
|
+
Wrap = 1,
|
|
83
|
+
Ellipsis = 2
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
declare enum DataAlignHorizontal {
|
|
@@ -253,10 +254,9 @@ declare class ECSPrimengTableService {
|
|
|
253
254
|
static ɵprov: i0.ɵɵInjectableDeclaration<ECSPrimengTableService>;
|
|
254
255
|
}
|
|
255
256
|
|
|
256
|
-
declare class ECSPrimengTable implements OnInit, AfterViewInit
|
|
257
|
+
declare class ECSPrimengTable implements OnInit, AfterViewInit {
|
|
257
258
|
private tableService;
|
|
258
259
|
private notification;
|
|
259
|
-
private resizeObserver;
|
|
260
260
|
constructor(tableService: ECSPrimengTableService, notification: ECSPrimengTableNotificationService);
|
|
261
261
|
isActive: boolean;
|
|
262
262
|
data: any[];
|
|
@@ -321,7 +321,7 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit, OnDestroy {
|
|
|
321
321
|
scrollHeight: string;
|
|
322
322
|
globalSearchText: string | null;
|
|
323
323
|
tableViewsList: ITableView[];
|
|
324
|
-
tableViews_menuItems:
|
|
324
|
+
tableViews_menuItems: any[];
|
|
325
325
|
DataType: typeof DataType;
|
|
326
326
|
CellOverflowBehaviour: typeof CellOverflowBehaviour;
|
|
327
327
|
DataAlignHorizontal: typeof DataAlignHorizontal;
|
|
@@ -342,6 +342,8 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit, OnDestroy {
|
|
|
342
342
|
columnsSelected: IColumnMetadata[];
|
|
343
343
|
columnModalData: any[];
|
|
344
344
|
filteredColumnData: any[];
|
|
345
|
+
private initialColumnWidths;
|
|
346
|
+
private initialTableWidth;
|
|
345
347
|
predifinedFiltersSelectedValuesCollection: {
|
|
346
348
|
[key: string]: any[];
|
|
347
349
|
};
|
|
@@ -353,9 +355,8 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit, OnDestroy {
|
|
|
353
355
|
headerContainer: ElementRef;
|
|
354
356
|
paginatorContainer: ElementRef;
|
|
355
357
|
ngAfterViewInit(): void;
|
|
356
|
-
|
|
358
|
+
onResize(): void;
|
|
357
359
|
calculateScrollHeight(): void;
|
|
358
|
-
ngOnDestroy(): void;
|
|
359
360
|
/**
|
|
360
361
|
* Used to update the data of a table externally outside the component. Use this method instead of 'updateData' to force the data updata of a table
|
|
361
362
|
*
|
|
@@ -363,7 +364,7 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit, OnDestroy {
|
|
|
363
364
|
* @param {boolean} [uponContinueActionEndModalHttp=false] - Optional flag to set the loading indicator to inactive after data retrieval.
|
|
364
365
|
*/
|
|
365
366
|
updateData(continueAction?: (optionalData?: any) => void, uponContinueActionEndModalHttp?: boolean): void;
|
|
366
|
-
fetchTableConfiguration(): void;
|
|
367
|
+
fetchTableConfiguration(resetTableView?: boolean): void;
|
|
367
368
|
private handleTableConfigurationResponse;
|
|
368
369
|
refreshData(event: any): void;
|
|
369
370
|
tableViewsEnabled(): boolean;
|
|
@@ -377,10 +378,12 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit, OnDestroy {
|
|
|
377
378
|
viewAliasNew: string;
|
|
378
379
|
}): void;
|
|
379
380
|
viewUpdateData(viewAlias: string): void;
|
|
381
|
+
viewUpdateActiveStartup(viewAlias: string): void;
|
|
380
382
|
viewsSave(endMessage: number): void;
|
|
381
383
|
viewsSaveEnd(endMessage: number): void;
|
|
382
384
|
fetchTableData(event: TableLazyLoadEvent): void;
|
|
383
385
|
private modifyFiltersWithoutGlobalAndSelectedRows;
|
|
386
|
+
resetTableView(): void;
|
|
384
387
|
private selectorRowFilterBuilder;
|
|
385
388
|
revertDateTimeZoneFilters(inputFilter: any): any;
|
|
386
389
|
handleTableDataResponse(body: ITablePagedResponse): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eternalcodestudio/primeng-table",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.3",
|
|
4
4
|
"description": "ECS reusable Angular PrimeNG table component with advanced server-side filters. Designed to offload filtering logic to any backend API.",
|
|
5
5
|
"author": "ECS (Eternal CODE Studio)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
|
-
"url": "https://github.com/AIO1/PrimeNGTableReusableComponent"
|
|
31
|
+
"url": "git+https://github.com/AIO1/PrimeNGTableReusableComponent.git"
|
|
32
32
|
},
|
|
33
33
|
"bugs": {
|
|
34
34
|
"url": "https://github.com/AIO1/PrimeNGTableReusableComponent/issues"
|