@fuentis/phoenix-ui 0.0.9-alpha.53 → 0.0.9-alpha.54
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/fuentis-phoenix-ui.mjs +314 -5
- package/fesm2022/fuentis-phoenix-ui.mjs.map +1 -1
- package/lib/components/data-table/table/table.component.d.ts +40 -0
- package/lib/components/data-table/table-caption/table-caption.component.d.ts +26 -0
- package/lib/components/data-table/utils/table-cell.pipe.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { tableColumnType } from '../utils/dataTable.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../utils/dataTable.interface";
|
|
6
|
+
export declare class TableComponent implements OnInit {
|
|
7
|
+
set data(value: any[]);
|
|
8
|
+
columns: any[];
|
|
9
|
+
tableConfiguration: any;
|
|
10
|
+
actionClick: EventEmitter<any>;
|
|
11
|
+
rowSelection: EventEmitter<any>;
|
|
12
|
+
translateService: TranslateService;
|
|
13
|
+
allData: any[];
|
|
14
|
+
tableDataSignal: import("@angular/core").WritableSignal<any[]>;
|
|
15
|
+
searchQuery: import("@angular/core").WritableSignal<string>;
|
|
16
|
+
selectedColumns: import("@angular/core").WritableSignal<any[]>;
|
|
17
|
+
selectedItems: import("@angular/core").WritableSignal<any[]>;
|
|
18
|
+
totalRecords: import("@angular/core").WritableSignal<number>;
|
|
19
|
+
multiSortMeta: import("@angular/core").WritableSignal<any[]>;
|
|
20
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
lastLoadedIndex: number;
|
|
22
|
+
columnTypeEnum: typeof tableColumnType;
|
|
23
|
+
dateFormat: string;
|
|
24
|
+
constructor();
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
loadLazyData(event: any): void;
|
|
27
|
+
applyFilters(filters: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}): void;
|
|
30
|
+
applyColumns(selectedColumns: string[]): void;
|
|
31
|
+
onSearch(query: string): void;
|
|
32
|
+
onRowClick(event: Event, rowData: any): void;
|
|
33
|
+
onSelectionChange(selected: any[]): void;
|
|
34
|
+
handleActionClick(event: any): void;
|
|
35
|
+
onSort(event: any): void;
|
|
36
|
+
translateKey(key: string): string;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "phoenix-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableConfiguration": { "alias": "tableConfiguration"; "required": true; }; }, { "actionClick": "actionClick"; "rowSelection": "rowSelection"; }, never, never, true, never>;
|
|
39
|
+
static ngAcceptInputType_tableConfiguration: i1.TableConfiguration;
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TableCaptionComponent implements OnInit {
|
|
6
|
+
tableConfiguration: any;
|
|
7
|
+
columns: any[];
|
|
8
|
+
searchQuery: string;
|
|
9
|
+
selectedItems: any[];
|
|
10
|
+
applyFiltersEvent: EventEmitter<any>;
|
|
11
|
+
applyColumnsEvent: EventEmitter<string[]>;
|
|
12
|
+
searchChange: EventEmitter<string>;
|
|
13
|
+
actionClick: EventEmitter<any>;
|
|
14
|
+
translateService: TranslateService;
|
|
15
|
+
fb: FormBuilder;
|
|
16
|
+
filtersForm: FormGroup;
|
|
17
|
+
selectedColumns: any[];
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
emitSearch(query: string): void;
|
|
20
|
+
applyFilters(): void;
|
|
21
|
+
resetFilters(): void;
|
|
22
|
+
applyColumns(): void;
|
|
23
|
+
handleActionClick(action: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableCaptionComponent, never>;
|
|
25
|
+
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>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DatePipe } from '@angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableCellPipe implements PipeTransform {
|
|
5
|
+
private datePipe;
|
|
6
|
+
constructor(datePipe: DatePipe);
|
|
7
|
+
transform(value: any, col: any, dateFormat?: string): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableCellPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TableCellPipe, "cell", true>;
|
|
10
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from './lib/components/user/user.component';
|
|
|
6
6
|
export * from './lib/components/status-header/status-header.component';
|
|
7
7
|
export * from './lib/components/shell/shell.component';
|
|
8
8
|
export * from './lib/components/data-table/phoenix-data-table/phoenix-data-table.component';
|
|
9
|
+
export * from './lib/components/data-table/table/table.component';
|
|
9
10
|
export * from './lib/models/shell-config.model';
|
|
10
11
|
export * from './lib/components/data-table/utils/dataTable.enum';
|