@eternalcodestudio/primeng-table 20.0.9 → 20.0.10
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
|
@@ -343,6 +343,12 @@ interface IPredefinedFilter {
|
|
|
343
343
|
* **_Do not modify this property manually._**
|
|
344
344
|
*/
|
|
345
345
|
imageBlobFetchError?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Optional. The action to execute when the predefined filter is clicked.
|
|
348
|
+
* @param rowData The row data object of the clicked row.
|
|
349
|
+
* @param option The IPredefinedFilter data of the predefined element clicked.
|
|
350
|
+
*/
|
|
351
|
+
action?: (rowData: any, option: IPredefinedFilter) => void;
|
|
346
352
|
}
|
|
347
353
|
|
|
348
354
|
interface ITableConfiguration {
|
|
@@ -831,6 +837,7 @@ declare class ECSPrimengTableService {
|
|
|
831
837
|
* handleButtonsClick(deleteAction, { rowID: 1, name: 'John Doe' });
|
|
832
838
|
*/
|
|
833
839
|
handleButtonsClick(action: (rowData: any) => void, rowData?: any): void;
|
|
840
|
+
handlePredefinedFilterClick(action: (rowData: any, option: IPredefinedFilter) => void, rowData: any | undefined, option: IPredefinedFilter): void;
|
|
834
841
|
getColumnStyle(col: any, headerCols?: boolean): Record<string, string>;
|
|
835
842
|
fetchTableViews(tableViewSaveAs: TableViewSaveMode, recoverListEndpoint: string, tableViewSaveKey: string): ITableView[] | Observable<HttpResponse<ITableView[]>>;
|
|
836
843
|
sortViews(tableSaveViewList: ITableView[]): void;
|
|
@@ -976,7 +983,6 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit {
|
|
|
976
983
|
* @returns {string} A string indicating the number of selected values for the specified column.
|
|
977
984
|
*/
|
|
978
985
|
predefinedFiltersSelectedValuesText(columnKeyName: string): string;
|
|
979
|
-
handleButtonsClick(action: (rowData: any) => void, rowData?: any): void;
|
|
980
986
|
/**
|
|
981
987
|
* Checks if the provided column metadata matches a specific style of the predefined filters
|
|
982
988
|
* that need to be applied to an item on a row.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eternalcodestudio/primeng-table",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.10",
|
|
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",
|