@dsivd/prestations-ng 14.5.13 → 14.5.14-beta4

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,8 @@
1
+ export declare class FoehnTableColumnConfiguration<T> {
2
+ id: string;
3
+ columnLabelKey: string;
4
+ isImportant?: (item: T) => boolean;
5
+ valueGetter: (item: T) => string;
6
+ routerLinkGetter?: (item: T) => string;
7
+ sortAttribute?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare class FoehnTablePageChangeEvent {
2
+ previousPage: number;
3
+ currentPage: number;
4
+ pageCount: number;
5
+ }
@@ -0,0 +1,33 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FoehnTablePageChangeEvent } from './foehn-table-page-change-event';
3
+ import { FoehnTableColumnConfiguration } from './foehn-table-column-configuration';
4
+ import { TableSort } from './tableSort';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FoehnTableComponent implements OnChanges {
7
+ itemsPerPage: number;
8
+ id: string;
9
+ previousLabel: string;
10
+ nextLabel: string;
11
+ totalElements: number;
12
+ fixedPageCount: number;
13
+ columnsConfiguration: FoehnTableColumnConfiguration<unknown>[];
14
+ pageChange: EventEmitter<FoehnTablePageChangeEvent>;
15
+ sort: TableSort;
16
+ sortChange: EventEmitter<TableSort>;
17
+ currentPage: number;
18
+ filteredList: unknown[];
19
+ private _list;
20
+ trackByFn: (index: number, item: unknown) => number;
21
+ set list(list: unknown[]);
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ previousPage(): void;
24
+ hasPreviousPage(): boolean;
25
+ nextPage(): void;
26
+ hasNextPage(): boolean;
27
+ showPage(page: number, emitPageChangeEvent?: boolean): void;
28
+ pagesCount(): number;
29
+ triggerSort(sortAttribute: string): void;
30
+ private buildFilteredList;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnTableComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<FoehnTableComponent, "foehn-table", never, { "itemsPerPage": "itemsPerPage"; "id": "id"; "previousLabel": "previousLabel"; "nextLabel": "nextLabel"; "totalElements": "totalElements"; "fixedPageCount": "fixedPageCount"; "columnsConfiguration": "columnsConfiguration"; "sort": "sort"; "trackByFn": "trackByFn"; "list": "list"; }, { "pageChange": "pageChange"; "sortChange": "sortChange"; }, never, never>;
33
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./foehn-table.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../foehn-icons/foehn-icons.module";
5
+ import * as i4 from "../sdk-dictionary/sdk-dictionary.module";
6
+ import * as i5 from "@angular/router";
7
+ export declare class FoehnTableModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FoehnTableModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FoehnTableModule, [typeof i1.FoehnTableComponent], [typeof i2.CommonModule, typeof i3.FoehnIconsModule, typeof i4.SdkDictionaryModule, typeof i5.RouterModule], [typeof i1.FoehnTableComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<FoehnTableModule>;
11
+ }
@@ -0,0 +1,4 @@
1
+ export declare class TableSort {
2
+ sortDirection: 'DESC' | 'ASC';
3
+ sortAttribute: string;
4
+ }
package/index.d.ts CHANGED
@@ -103,6 +103,11 @@ export * from './foehn-icons/foehn-icon-unlock-alt.component';
103
103
  export * from './foehn-list/foehn-list.module';
104
104
  export * from './foehn-list/foehn-list.component';
105
105
  export * from './foehn-list/page-change-event';
106
+ export * from './foehn-table/foehn-table.module';
107
+ export * from './foehn-table/foehn-table.component';
108
+ export * from './foehn-table/foehn-table-column-configuration';
109
+ export * from './foehn-table/foehn-table-page-change-event';
110
+ export * from './foehn-table/tableSort';
106
111
  export * from './sdk-redirect/sdk-redirect.module';
107
112
  export * from './sdk-redirect/redirect.component';
108
113
  export * from './sdk-recaptcha/sdk-recaptcha.module';
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "ng-update": {
37
37
  "migrations": "./schematics/migration-collection.json"
38
38
  },
39
- "version": "14.5.13",
39
+ "version": "14.5.14-beta4",
40
40
  "main": "bundles/dsivd-prestations-ng.umd.js",
41
41
  "module": "fesm2015/dsivd-prestations-ng.js",
42
42
  "es2015": "fesm2015/dsivd-prestations-ng.js",
Binary file