@fuentis/phoenix-ui 0.0.9-alpha.61 → 0.0.9-alpha.63
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TableLazyLoadEvent } from 'primeng/table';
|
|
2
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
4
|
import { tableColumnType } from '../utils/dataTable.enum';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -18,11 +19,13 @@ export declare class TableComponent implements OnInit {
|
|
|
18
19
|
multiSortMeta: import("@angular/core").WritableSignal<any[]>;
|
|
19
20
|
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
20
21
|
lastLoadedIndex: number;
|
|
22
|
+
originalData: any[];
|
|
23
|
+
private hasLoadedInitialData;
|
|
21
24
|
columnTypeEnum: typeof tableColumnType;
|
|
22
25
|
dateFormat: string;
|
|
23
26
|
constructor();
|
|
24
27
|
ngOnInit(): void;
|
|
25
|
-
loadLazyData(event:
|
|
28
|
+
loadLazyData(event: TableLazyLoadEvent): void;
|
|
26
29
|
applyFilters(filters: {
|
|
27
30
|
[key: string]: any;
|
|
28
31
|
}): void;
|
|
@@ -31,8 +34,8 @@ export declare class TableComponent implements OnInit {
|
|
|
31
34
|
onRowClick(event: Event, rowData: any): void;
|
|
32
35
|
onSelectionChange(selected: any[]): void;
|
|
33
36
|
handleActionClick(event: any): void;
|
|
34
|
-
onSort(event: any): void;
|
|
35
37
|
translateKey(key: string): string;
|
|
38
|
+
filterTableData(): void;
|
|
36
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
37
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "phoenix-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableConfiguration": { "alias": "tableConfiguration"; "required": false; }; }, { "actionClick": "actionClick"; "rowSelection": "rowSelection"; }, never, never, true, never>;
|
|
38
41
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, DestroyRef } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { TableColumn } from '../utils/dataTable.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TableCaptionComponent implements OnInit {
|
|
6
7
|
tableConfiguration: any;
|
|
@@ -12,14 +13,19 @@ export declare class TableCaptionComponent implements OnInit {
|
|
|
12
13
|
searchChange: EventEmitter<string>;
|
|
13
14
|
actionClick: EventEmitter<any>;
|
|
14
15
|
translateService: TranslateService;
|
|
16
|
+
dr: DestroyRef;
|
|
15
17
|
fb: FormBuilder;
|
|
16
18
|
filtersForm: FormGroup;
|
|
17
|
-
|
|
19
|
+
_selectedColumns: TableColumn[];
|
|
20
|
+
globalFilterFields: string[];
|
|
18
21
|
ngOnInit(): void;
|
|
19
22
|
emitSearch(query: string): void;
|
|
20
23
|
applyFilters(): void;
|
|
21
24
|
resetFilters(): void;
|
|
22
25
|
applyColumns(): void;
|
|
26
|
+
resetColumns(): void;
|
|
27
|
+
get selectedColumns(): TableColumn[];
|
|
28
|
+
set selectedColumns(val: TableColumn[]);
|
|
23
29
|
handleActionClick(action: any): void;
|
|
24
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableCaptionComponent, never>;
|
|
25
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableCaptionComponent, "table-caption", never, { "tableConfiguration": { "alias": "tableConfiguration"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "searchQuery": { "alias": "searchQuery"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; }, { "applyFiltersEvent": "applyFiltersEvent"; "applyColumnsEvent": "applyColumnsEvent"; "searchChange": "searchChange"; "actionClick": "actionClick"; }, never, never, true, never>;
|