@c10t/nice-component-library 0.0.23 → 0.0.25
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/components/table/cva-smart-table.component.d.ts +6 -8
- package/components/table/cva-table-header-cell.component.d.ts +21 -0
- package/components/table/cva-table.component.d.ts +7 -8
- package/fesm2022/c10t-nice-component-library.mjs +1218 -1103
- package/fesm2022/c10t-nice-component-library.mjs.map +1 -1
- package/models/components/column.model.d.ts +6 -2
- package/modules/nice-component-library.module.d.ts +38 -37
- package/package.json +1 -1
- package/services/table.service.d.ts +7 -0
- package/services/validator.service.d.ts +2 -2
|
@@ -19,10 +19,15 @@ export declare class CvaSmartTableComponent implements ControlValueAccessor, OnC
|
|
|
19
19
|
private ref;
|
|
20
20
|
config: NiceComponentLibraryConfig;
|
|
21
21
|
private injector;
|
|
22
|
+
protected readonly ColumnTypeEnum: typeof ColumnTypeEnum;
|
|
23
|
+
protected readonly IconTypeEnum: typeof IconTypeEnum;
|
|
24
|
+
protected readonly AlignEnum: typeof AlignEnum;
|
|
25
|
+
protected readonly TableService: typeof TableService;
|
|
22
26
|
cellComponents: QueryList<CvaFormControl>;
|
|
23
27
|
moduleName: string;
|
|
24
28
|
columns: ColumnModel[];
|
|
25
29
|
buttons: ButtonModel[];
|
|
30
|
+
superHeaders: ColumnModel[][];
|
|
26
31
|
value: any[];
|
|
27
32
|
minRow: number;
|
|
28
33
|
maxRow: number;
|
|
@@ -44,12 +49,7 @@ export declare class CvaSmartTableComponent implements ControlValueAccessor, OnC
|
|
|
44
49
|
buttonColspan: number;
|
|
45
50
|
formatFunc: NumericInputFormat;
|
|
46
51
|
constructor(ref: ChangeDetectorRef, config: NiceComponentLibraryConfig, injector: Injector, ngControl: NgControl);
|
|
47
|
-
get AlignEnum(): typeof AlignEnum;
|
|
48
|
-
get IconTypes(): typeof IconTypeEnum;
|
|
49
|
-
get TableService(): typeof TableService;
|
|
50
|
-
get displayedColumns(): string[];
|
|
51
52
|
get displayedFooters(): string[][];
|
|
52
|
-
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
53
53
|
propagateChange: (_: any) => void;
|
|
54
54
|
writeValue(obj: any[] | any): void;
|
|
55
55
|
getParentRowData(): any[];
|
|
@@ -60,12 +60,10 @@ export declare class CvaSmartTableComponent implements ControlValueAccessor, OnC
|
|
|
60
60
|
ngAfterContentChecked(): void;
|
|
61
61
|
onClick(action: string, result: any, index: number | null): void;
|
|
62
62
|
onCellValueChange(result: any, column: ColumnModel, $event: any): void;
|
|
63
|
-
toggleSelectAll(val: MatCheckboxChange, col: ColumnModel): void;
|
|
64
63
|
toggleSelect(val: MatCheckboxChange | null, result?: any, column?: ColumnModel): void;
|
|
65
64
|
onDisplayHeaderCell(column: ColumnModel): boolean;
|
|
66
65
|
onDisplayFooter(footer: TableFooterModel, dataTable: any[]): boolean;
|
|
67
66
|
callValidator(): void;
|
|
68
|
-
getRequired(column: ColumnModel): boolean;
|
|
69
67
|
getIsDecimal(column: ColumnModel): boolean;
|
|
70
68
|
getErrorMessageMap(column: ColumnModel): Map<string, () => string>;
|
|
71
69
|
expandRow(i: number, row: any, parentRowClassIndex: number | 0 | 1): void;
|
|
@@ -73,5 +71,5 @@ export declare class CvaSmartTableComponent implements ControlValueAccessor, OnC
|
|
|
73
71
|
getHeaderButtonColspan(): number;
|
|
74
72
|
markAllControlsAsDirty(): void;
|
|
75
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<CvaSmartTableComponent, [null, null, null, { optional: true; self: true; }]>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CvaSmartTableComponent, "cva-smart-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minRow": { "alias": "minRow"; "required": false; }; "maxRow": { "alias": "maxRow"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; "isSticky": { "alias": "isSticky"; "required": false; }; "isStickyHeader": { "alias": "isStickyHeader"; "required": false; }; "isStickyFooter": { "alias": "isStickyFooter"; "required": false; }; "isExpandRowTable": { "alias": "isExpandRowTable"; "required": false; }; "expandRowProperty": { "alias": "expandRowProperty"; "required": false; }; }, { "clickAction": "clickAction"; "onChange": "onChange"; }, never, never, false, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaSmartTableComponent, "cva-smart-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "superHeaders": { "alias": "superHeaders"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minRow": { "alias": "minRow"; "required": false; }; "maxRow": { "alias": "maxRow"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; "isSticky": { "alias": "isSticky"; "required": false; }; "isStickyHeader": { "alias": "isStickyHeader"; "required": false; }; "isStickyFooter": { "alias": "isStickyFooter"; "required": false; }; "isExpandRowTable": { "alias": "isExpandRowTable"; "required": false; }; "expandRowProperty": { "alias": "expandRowProperty"; "required": false; }; }, { "clickAction": "clickAction"; "onChange": "onChange"; }, never, never, false, never>;
|
|
77
75
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
3
|
+
import { ColumnModel } from '../../models/components/column.model';
|
|
4
|
+
import { ColumnTypeEnum } from '../../enums/column-type.enum';
|
|
5
|
+
import { TableService } from '../../services/table.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CvaTableHeaderCellComponent implements OnChanges {
|
|
8
|
+
protected readonly TableService: typeof TableService;
|
|
9
|
+
protected readonly ColumnTypeEnum: typeof ColumnTypeEnum;
|
|
10
|
+
moduleName: string;
|
|
11
|
+
column: ColumnModel;
|
|
12
|
+
selectAllChecked: boolean;
|
|
13
|
+
changeSelectAll: EventEmitter<{
|
|
14
|
+
$event: MatCheckboxChange;
|
|
15
|
+
columnChange: ColumnModel;
|
|
16
|
+
}>;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
onSelectAllChange($event: MatCheckboxChange): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CvaTableHeaderCellComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTableHeaderCellComponent, "cva-table-header-cell", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "column": { "alias": "column"; "required": false; }; "selectAllChecked": { "alias": "selectAllChecked"; "required": false; }; }, { "changeSelectAll": "changeSelectAll"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -17,6 +17,10 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
17
17
|
config: NiceComponentLibraryConfig;
|
|
18
18
|
private cdRef;
|
|
19
19
|
loaderService: LoaderService;
|
|
20
|
+
protected readonly ColumnTypeEnum: typeof ColumnTypeEnum;
|
|
21
|
+
protected readonly AlignEnum: typeof AlignEnum;
|
|
22
|
+
protected readonly IconTypeEnum: typeof IconTypeEnum;
|
|
23
|
+
protected readonly TableService: typeof TableService;
|
|
20
24
|
moduleName: string;
|
|
21
25
|
varPaging: TablePagingRequestModel;
|
|
22
26
|
results: MatTableDataSource<BaseModel>;
|
|
@@ -24,6 +28,7 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
24
28
|
buttons: ButtonModel[];
|
|
25
29
|
showTotalPages: number;
|
|
26
30
|
expandHeaderButton?: ButtonModel;
|
|
31
|
+
superHeaders: ColumnModel[][];
|
|
27
32
|
pageSizeOptions: number[];
|
|
28
33
|
pagingChange: EventEmitter<TablePagingRequestModel>;
|
|
29
34
|
clickAction: EventEmitter<ButtonClickEvent>;
|
|
@@ -40,11 +45,6 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
40
45
|
buttonColspan: number;
|
|
41
46
|
constructor(config: NiceComponentLibraryConfig, cdRef: ChangeDetectorRef, loaderService: LoaderService);
|
|
42
47
|
set paging(value: TablePagingRequestModel);
|
|
43
|
-
get displayedColumns(): string[];
|
|
44
|
-
get ColumnTypes(): typeof ColumnTypeEnum;
|
|
45
|
-
get IconTypes(): typeof IconTypeEnum;
|
|
46
|
-
get AlignEnum(): typeof AlignEnum;
|
|
47
|
-
get TableService(): typeof TableService;
|
|
48
48
|
isExpandColumn(col: ColumnModel): boolean;
|
|
49
49
|
getPage(pageable: any): void;
|
|
50
50
|
onClick(action: string, result: any): void;
|
|
@@ -52,14 +52,13 @@ export declare class CvaTableComponent implements OnInit, AfterViewChecked {
|
|
|
52
52
|
onRowClick(result: any, index?: number): void;
|
|
53
53
|
onDisplayHeaderCell(column: ColumnModel): boolean;
|
|
54
54
|
onDisplayCell(column: ColumnModel, cell: any): boolean;
|
|
55
|
-
toggleSelectAll(val: MatCheckboxChange, col: ColumnModel): void;
|
|
56
55
|
toggleSelect(val: MatCheckboxChange | null, result: any, column?: ColumnModel): void;
|
|
57
56
|
ngAfterViewChecked(): void;
|
|
58
57
|
hasData(): boolean;
|
|
59
58
|
getTotalPage(): number;
|
|
60
59
|
goToPage(): void;
|
|
61
|
-
|
|
60
|
+
updateHeaderButtonColspan(): void;
|
|
62
61
|
onChangeGoToPageNumber($event: number): void;
|
|
63
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<CvaTableComponent, never>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTableComponent, "cva-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "results": { "alias": "results"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showTotalPages": { "alias": "showTotalPages"; "required": false; }; "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; }, { "pagingChange": "pagingChange"; "clickAction": "clickAction"; "onRowClickAction": "onRowClickAction"; "onChangeDisplayColumn": "onChangeDisplayColumn"; }, never, never, false, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CvaTableComponent, "cva-table", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "results": { "alias": "results"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showTotalPages": { "alias": "showTotalPages"; "required": false; }; "expandHeaderButton": { "alias": "expandHeaderButton"; "required": false; }; "superHeaders": { "alias": "superHeaders"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; }, { "pagingChange": "pagingChange"; "clickAction": "clickAction"; "onRowClickAction": "onRowClickAction"; "onChangeDisplayColumn": "onChangeDisplayColumn"; }, never, never, false, never>;
|
|
65
64
|
}
|