@fuentis/phoenix-ui 0.0.9-alpha.53 → 0.0.9-alpha.55

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.
@@ -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,28 @@
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
+ import * as i1 from "../utils/dataTable.interface";
6
+ export declare class TableCaptionComponent implements OnInit {
7
+ tableConfiguration: any;
8
+ columns: any[];
9
+ searchQuery: string;
10
+ selectedItems: any[];
11
+ applyFiltersEvent: EventEmitter<any>;
12
+ applyColumnsEvent: EventEmitter<string[]>;
13
+ searchChange: EventEmitter<string>;
14
+ actionClick: EventEmitter<any>;
15
+ translateService: TranslateService;
16
+ fb: FormBuilder;
17
+ filtersForm: FormGroup;
18
+ selectedColumns: any[];
19
+ ngOnInit(): void;
20
+ emitSearch(query: string): void;
21
+ applyFilters(): void;
22
+ resetFilters(): void;
23
+ applyColumns(): void;
24
+ handleActionClick(action: any): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableCaptionComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableCaptionComponent, "table-caption", never, { "tableConfiguration": { "alias": "tableConfiguration"; "required": true; }; "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>;
27
+ static ngAcceptInputType_tableConfiguration: i1.TableConfiguration;
28
+ }
@@ -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
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Transform data for non-lazy filtering
3
+ * 1. transform data that goes into table (string to object value/name props )
4
+ * 2. transform data that goes into dropdown filter (string to object value/name props )
5
+ * 3. in cell-value pipe in table check if it's non-lazy tabel, if is take object.name (add lazyTable argument to pipe)
6
+ */
7
+ import { TableConfiguration } from "./dataTable.interface";
8
+ /**
9
+ * @todo Add option to pass custom color to status tag -> modify response to match columnName + Color -> sample: actualRiskColor
10
+ * @todo Check DATE format. there is a cell-pipe for that
11
+ * @todo Filter persistance in localstorage
12
+ * @todo Frozen columns fix
13
+ *
14
+ *
15
+ *
16
+ * * @todo unauthorized API for population MS filters
17
+ * - Entities
18
+ * - Catalogs
19
+ * - Statuses
20
+ * - Responsibles
21
+ * - Types
22
+ * - CIA att
23
+ */
24
+ export declare function resolveActions(value: TableConfiguration): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuentis/phoenix-ui",
3
- "version": "0.0.9-alpha.53",
3
+ "version": "0.0.9-alpha.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
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';