@eternalcodestudio/primeng-table 19.0.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.
- package/fesm2022/ecs-primeng-table.mjs +1745 -0
- package/fesm2022/ecs-primeng-table.mjs.map +1 -0
- package/fesm2022/eternalcodestudio-primeng-table.mjs +1745 -0
- package/fesm2022/eternalcodestudio-primeng-table.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/column-selector/column-selector.d.ts +36 -0
- package/lib/components/ecs-primeng-table/ecs-primeng-table.d.ts +203 -0
- package/lib/components/ecs-primeng-table/ecs-primeng-table.service.d.ts +48 -0
- package/lib/components/export-excel/export-excel.d.ts +39 -0
- package/lib/components/export-excel/export-excel.service.d.ts +6 -0
- package/lib/components/table-button/table-button.d.ts +16 -0
- package/lib/components/table-cell/table-cell.d.ts +52 -0
- package/lib/components/table-predifined-filters/table-predifined-filters.d.ts +30 -0
- package/lib/components/views-management/views-management.d.ts +32 -0
- package/lib/enums/cell-overflow-behaviour.enum.d.ts +4 -0
- package/lib/enums/data-align-horizontal.enum.d.ts +5 -0
- package/lib/enums/data-align-vertical.enum.d.ts +5 -0
- package/lib/enums/data-type.enum.enum.d.ts +6 -0
- package/lib/enums/frozen-column-align.enum.d.ts +5 -0
- package/lib/enums/index.d.ts +6 -0
- package/lib/enums/table-view-save-mode.enum.d.ts +6 -0
- package/lib/interfaces/columns-metadata.interface.d.ts +25 -0
- package/lib/interfaces/excel-export-request.interface.d.ts +7 -0
- package/lib/interfaces/index.d.ts +9 -0
- package/lib/interfaces/predifined-filter.interface.d.ts +34 -0
- package/lib/interfaces/table-button.interface.d.ts +29 -0
- package/lib/interfaces/table-configuration.interface.d.ts +8 -0
- package/lib/interfaces/table-paged-response.interface.d.ts +13 -0
- package/lib/interfaces/table-query-request.interface.d.ts +20 -0
- package/lib/interfaces/table-view-data.interface.d.ts +12 -0
- package/lib/interfaces/table-view.interface.d.ts +6 -0
- package/lib/services/http.service.d.ts +9 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/notification.service.d.ts +7 -0
- package/lib/utils/data-align-horizontal-as-text.d.ts +2 -0
- package/lib/utils/data-align-vertical-as-text.d.ts +2 -0
- package/lib/utils/data-type-as-text.d.ts +2 -0
- package/lib/utils/frozen-column-align-as-text.d.ts +2 -0
- package/lib/utils/highlight-text.d.ts +24 -0
- package/lib/utils/index.d.ts +5 -0
- package/package.json +49 -0
- package/public-api.d.ts +5 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SortMeta } from "primeng/api";
|
|
2
|
+
import { IColumnMetadata } from "./columns-metadata.interface";
|
|
3
|
+
export interface ITableViewData {
|
|
4
|
+
columnsShown: IColumnMetadata[];
|
|
5
|
+
tableWidth: any;
|
|
6
|
+
columnsWidth: string;
|
|
7
|
+
multiSortMeta: SortMeta[] | null | undefined;
|
|
8
|
+
filters: any;
|
|
9
|
+
globalSearchText: string | null;
|
|
10
|
+
currentPage: number;
|
|
11
|
+
currentRowsPerPage: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class ECSPrimengTableHttpService {
|
|
5
|
+
abstract handleHttpGetRequest<T>(servicePoint: string, httpOptions?: HttpHeaders | null, showSpinner?: boolean, customErrorHandler?: ((error: any) => Observable<any>) | null, showAPIError?: boolean, responseType?: 'json' | 'blob'): Observable<HttpResponse<T>>;
|
|
6
|
+
abstract handleHttpPostRequest<T>(servicePoint: string, data: any, httpOptions?: HttpHeaders | null, showSpinner?: boolean, customErrorHandler?: ((error: any) => Observable<any>) | null, showAPIError?: boolean, responseType?: 'json' | 'blob'): Observable<HttpResponse<T>>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ECSPrimengTableHttpService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ECSPrimengTableHttpService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare abstract class ECSPrimengTableNotificationService {
|
|
3
|
+
abstract showToast(severity: string, title: string, message: string, duration?: number, keepToast?: boolean, closable?: boolean, clearPrevious?: boolean): void;
|
|
4
|
+
abstract clearToasts(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ECSPrimengTableNotificationService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ECSPrimengTableNotificationService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
2
|
+
import { IColumnMetadata } from "../interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Generates SafeHtml with highlighted text based on global search criteria.
|
|
5
|
+
*
|
|
6
|
+
* @param {any} cellValue - The value of the cell to be highlighted.
|
|
7
|
+
* @param {IprimengColumnsMetadata} colMetadata - The column configuration for the cell.
|
|
8
|
+
* @param {string | null} globalSearchText - The global search text to highlight within the cell value.
|
|
9
|
+
* @returns {SafeHtml} - HTML content with highlighted text if it matches the global search criteria.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // Define column configuration
|
|
13
|
+
* const colMetadata: IprimengColumnsMetadata = { dataType: 'string', canBeGlobalFiltered: true, etc... };
|
|
14
|
+
*
|
|
15
|
+
* // Cell value to be highlighted
|
|
16
|
+
* const cellValue: string = 'Example text';
|
|
17
|
+
*
|
|
18
|
+
* // Global search text
|
|
19
|
+
* const globalSearchText: string = 'text';
|
|
20
|
+
*
|
|
21
|
+
* // Use highlightText to get SafeHtml with highlighted text
|
|
22
|
+
* const highlightedHtml: SafeHtml = highlightText(cellValue, colMetadata, globalSearchText);
|
|
23
|
+
*/
|
|
24
|
+
export declare function highlightText(cellValue: any, colMetadata: IColumnMetadata, globalSearchText: string | null): SafeHtml;
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eternalcodestudio/primeng-table",
|
|
3
|
+
"version": "19.0.0",
|
|
4
|
+
"description": "ECS reusable Angular PrimeNG table component with advanced server-side filters. Designed to offload filtering logic to any backend API.",
|
|
5
|
+
"author": "ECS (Eternal CODE Studio)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"angular",
|
|
9
|
+
"primeng",
|
|
10
|
+
"table",
|
|
11
|
+
"ecs",
|
|
12
|
+
"datatable",
|
|
13
|
+
"component",
|
|
14
|
+
"ui"
|
|
15
|
+
],
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@angular/common": ">=19.0.0",
|
|
18
|
+
"@angular/core": ">=19.0.0",
|
|
19
|
+
"primeng": ">=19.0.0",
|
|
20
|
+
"primeicons": ">=6.0.0"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"tslib": "^2.3.0"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18.0.0",
|
|
27
|
+
"npm": ">=9.0.0"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/AIO1/PrimeNGTableReusableComponent"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/AIO1/PrimeNGTableReusableComponent/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://eternalcodestudio.com/",
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"module": "fesm2022/eternalcodestudio-primeng-table.mjs",
|
|
39
|
+
"typings": "index.d.ts",
|
|
40
|
+
"exports": {
|
|
41
|
+
"./package.json": {
|
|
42
|
+
"default": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./index.d.ts",
|
|
46
|
+
"default": "./fesm2022/eternalcodestudio-primeng-table.mjs"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
package/public-api.d.ts
ADDED