@eternalcodestudio/primeng-table 19.0.1 → 19.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.
|
@@ -70,19 +70,30 @@ export declare class ECSPrimengTable implements OnInit, AfterViewInit {
|
|
|
70
70
|
paginatorContainer: ElementRef;
|
|
71
71
|
ngAfterViewInit(): void;
|
|
72
72
|
onResize(): void;
|
|
73
|
-
calculateScrollHeight
|
|
73
|
+
private calculateScrollHeight;
|
|
74
74
|
get scrollHeightValue(): string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Updates the table data and, if needed, retrieves the initial table configuration from an external source.
|
|
77
77
|
*
|
|
78
|
+
* Also allows resetting the table to its original state before any user manipulations.
|
|
79
|
+
*
|
|
80
|
+
* @param {boolean} [resetTableView=false] Optional.
|
|
81
|
+
* - `true`: resets the table state before loading data.
|
|
82
|
+
* - `false`: refreshes data using the current configuration (and retrieves initial configuration if necessary).
|
|
83
|
+
*
|
|
84
|
+
* **_Behavior_**
|
|
85
|
+
* - The table is automatically set to `isActive = true`.
|
|
86
|
+
* - If the initial configuration has not been fetched, it will fetch it and then update the data.
|
|
87
|
+
* - If the initial configuration is already fetched, it will just update the data.
|
|
88
|
+
* - If `resetTableView` is true and the configuration is already initialized, the table will be reset to its original state before updating the data.
|
|
78
89
|
*/
|
|
79
|
-
updateData(): void;
|
|
80
|
-
canFetchData
|
|
81
|
-
fetchTableConfiguration
|
|
90
|
+
updateData(resetTableView?: boolean): void;
|
|
91
|
+
private canFetchData;
|
|
92
|
+
private fetchTableConfiguration;
|
|
82
93
|
private handleTableConfigurationResponse;
|
|
83
94
|
refreshData(event: any): void;
|
|
84
95
|
tableViewsEnabled(): boolean;
|
|
85
|
-
fetchTableViews
|
|
96
|
+
private fetchTableViews;
|
|
86
97
|
private tableViewListProcess;
|
|
87
98
|
viewLoad(tableViewAlias: string): void;
|
|
88
99
|
viewCreate(viewAlias: string): void;
|
|
@@ -43,15 +43,25 @@ export interface ITableButton {
|
|
|
43
43
|
*/
|
|
44
44
|
style?: string;
|
|
45
45
|
/**
|
|
46
|
-
* Optional. Function that determines whether the button should be
|
|
46
|
+
* Optional. Function that determines whether the button should be visible for a given row.
|
|
47
47
|
* @param rowData The row data object. Null for header buttons.
|
|
48
48
|
* @returns True if the button should be visible; false otherwise.
|
|
49
49
|
*/
|
|
50
|
+
visibleCondition?: (rowData: any) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Optional. Function that determines whether the button should be displayed for a given row.
|
|
53
|
+
*
|
|
54
|
+
* Ignored if `visibleCondition` returns false.
|
|
55
|
+
* @param rowData The row data object. Null for header buttons.
|
|
56
|
+
* @returns True if the button should be enabled; false otherwise.
|
|
57
|
+
*/
|
|
50
58
|
enabledCondition?: (rowData: any) => boolean;
|
|
51
59
|
/**
|
|
52
|
-
* Optional. Controls behavior when `
|
|
53
|
-
* - If `true`, the button will be hidden when the
|
|
54
|
-
* - If `false` or `undefined`, the button will remain visible but disabled.
|
|
60
|
+
* Optional. Controls behavior when `enabledCondition` returns false.
|
|
61
|
+
* - If `true`, the button will be hidden when the 'enabledCondition' is not met.
|
|
62
|
+
* - If `false` or `undefined`, the button will remain visible but disabled if 'enabledCondition' is not met.
|
|
63
|
+
*
|
|
64
|
+
* Ignored if `visibleCondition` returns false.
|
|
55
65
|
*/
|
|
56
66
|
conditionFailHide?: boolean;
|
|
57
67
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eternalcodestudio/primeng-table",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.2",
|
|
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",
|