@fuentis/phoenix-ui 0.0.9-alpha.52 → 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.
@@ -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
+ }
@@ -12,6 +12,7 @@ export interface TableConfiguration {
12
12
  selectionMode?: 'single' | 'multiple';
13
13
  globalFilter?: boolean;
14
14
  scrollHeight?: string;
15
+ filterConfiguration: any[];
15
16
  }
16
17
  export interface TableAction {
17
18
  key?: string;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuentis/phoenix-ui",
3
- "version": "0.0.9-alpha.52",
3
+ "version": "0.0.9-alpha.54",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
package/public-api.d.ts CHANGED
@@ -6,6 +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';
11
- export * from './lib/services/library-translate.service';
@@ -1,19 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /** Struktura prevoda za više jezika */
3
- export interface LibraryTranslations {
4
- [lang: string]: {
5
- managementModules?: string;
6
- supportModules?: string;
7
- guide?: string;
8
- website?: string;
9
- editSettings?: string;
10
- logout?: string;
11
- };
12
- }
13
- /** Konfiguracija koju korisnik može da prosledi u biblioteci */
14
- export interface LibraryConfig {
15
- defaultLanguage?: string;
16
- translations?: LibraryTranslations;
17
- }
18
- /** InjectionToken koji omogućava korisnicima da preglase podrazumevane prevode */
19
- export declare const LIBRARY_CONFIG: InjectionToken<LibraryConfig>;
@@ -1,21 +0,0 @@
1
- import { TranslateService } from '@ngx-translate/core';
2
- import { LibraryConfig } from './library-config.token';
3
- import * as i0 from "@angular/core";
4
- export declare class LibraryTranslationService {
5
- private translateService?;
6
- private config?;
7
- private translations;
8
- private activeLanguage;
9
- private labels$;
10
- constructor(translateService?: TranslateService | undefined, config?: LibraryConfig | undefined);
11
- /** Promena jezika */
12
- setTranslation(lang: string): void;
13
- /** Dohvatanje prevoda kao Observable */
14
- getTranslations(): import("rxjs").Observable<{
15
- [key: string]: string;
16
- }>;
17
- /** Dohvata specifičan ključ iz prevoda */
18
- translate(key: string): string;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<LibraryTranslationService, [{ optional: true; }, { optional: true; }]>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<LibraryTranslationService>;
21
- }