cps-ui-kit 0.71.0 → 0.73.0
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/README.md +1 -0
- package/esm2020/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/cps-input/cps-input.component.mjs +3 -3
- package/esm2020/lib/components/cps-paginator/cps-paginator.component.mjs +5 -5
- package/esm2020/lib/components/cps-select/cps-select.component.mjs +3 -3
- package/esm2020/lib/components/cps-table/cps-table.component.mjs +78 -39
- package/esm2020/lib/components/cps-table/directives/cps-table-column-filter.directive.mjs +4 -4
- package/esm2020/lib/components/cps-table/directives/cps-table-column-sortable.directive.mjs +4 -4
- package/esm2020/lib/components/cps-table/directives/cps-table-header-selectable.directive.mjs +3 -3
- package/esm2020/lib/components/cps-table/directives/internal/table-unsort.directive.mjs +3 -3
- package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/cps-tree-select/cps-tree-select.component.mjs +3 -3
- package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +513 -0
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.mjs +43 -0
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.mjs +28 -0
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.mjs +32 -0
- package/esm2020/lib/components/cps-tree-table/directives/internal/tree-table-unsort.directive.mjs +157 -0
- package/esm2020/lib/components/cps-tree-table/tree-table-sort-icon/tree-table-sort-icon.component.mjs +73 -0
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/cps-ui-kit.mjs +927 -76
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +922 -76
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-paginator/cps-paginator.component.d.ts +2 -2
- package/lib/components/cps-table/cps-table.component.d.ts +19 -11
- package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +1 -1
- package/lib/components/cps-table/directives/cps-table-column-sortable.directive.d.ts +1 -1
- package/lib/components/cps-table/directives/cps-table-header-selectable.directive.d.ts +1 -1
- package/lib/components/cps-table/directives/internal/table-unsort.directive.d.ts +1 -1
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +123 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts +17 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts +13 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.d.ts +14 -0
- package/lib/components/cps-tree-table/directives/internal/tree-table-unsort.directive.d.ts +9 -0
- package/lib/components/cps-tree-table/tree-table-sort-icon/tree-table-sort-icon.component.d.ts +21 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -8,7 +8,7 @@ export declare class CpsPaginatorComponent implements OnInit {
|
|
|
8
8
|
rowsPerPageOptions: number[];
|
|
9
9
|
alwaysShow: boolean;
|
|
10
10
|
backgroundColor: string;
|
|
11
|
-
|
|
11
|
+
resetPageOnRowsChange: boolean;
|
|
12
12
|
pageChanged: EventEmitter<any>;
|
|
13
13
|
paginator: Paginator;
|
|
14
14
|
rowOptions: {
|
|
@@ -19,5 +19,5 @@ export declare class CpsPaginatorComponent implements OnInit {
|
|
|
19
19
|
onPageChange(event: any): void;
|
|
20
20
|
onRowsPerPageChange(rows: number): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsPaginatorComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsPaginatorComponent, "cps-paginator", never, { "first": "first"; "rows": "rows"; "totalRecords": "totalRecords"; "rowsPerPageOptions": "rowsPerPageOptions"; "alwaysShow": "alwaysShow"; "backgroundColor": "backgroundColor"; "
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsPaginatorComponent, "cps-paginator", never, { "first": "first"; "rows": "rows"; "totalRecords": "totalRecords"; "rowsPerPageOptions": "rowsPerPageOptions"; "alwaysShow": "alwaysShow"; "backgroundColor": "backgroundColor"; "resetPageOnRowsChange": "resetPageOnRowsChange"; }, { "pageChanged": "pageChanged"; }, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -20,30 +20,33 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked {
|
|
|
20
20
|
bordered: boolean;
|
|
21
21
|
size: CpsTableSize;
|
|
22
22
|
selectable: boolean;
|
|
23
|
-
emptyMessage: string;
|
|
24
|
-
hasToolbar: boolean;
|
|
25
|
-
toolbarSize: CpsTableToolbarSize;
|
|
26
|
-
toolbarTitle: string;
|
|
27
|
-
sortMode: CpsTableSortMode;
|
|
28
|
-
customSort: boolean;
|
|
29
23
|
rowHover: boolean;
|
|
30
24
|
dataKey: string;
|
|
31
25
|
showRowMenu: boolean;
|
|
32
26
|
reorderableRows: boolean;
|
|
33
27
|
showColumnsToggle: boolean;
|
|
34
|
-
sortable: boolean;
|
|
35
28
|
loading: boolean;
|
|
29
|
+
tableStyle: undefined;
|
|
30
|
+
tableStyleClass: string;
|
|
31
|
+
sortable: boolean;
|
|
32
|
+
sortMode: CpsTableSortMode;
|
|
33
|
+
customSort: boolean;
|
|
34
|
+
hasToolbar: boolean;
|
|
35
|
+
toolbarSize: CpsTableToolbarSize;
|
|
36
|
+
toolbarTitle: string;
|
|
36
37
|
scrollable: boolean;
|
|
37
38
|
scrollHeight: string;
|
|
38
39
|
virtualScroll: boolean;
|
|
40
|
+
numToleratedItems: number;
|
|
39
41
|
paginator: boolean;
|
|
40
42
|
alwaysShowPaginator: boolean;
|
|
41
43
|
rowsPerPageOptions: number[];
|
|
42
44
|
first: number;
|
|
43
45
|
rows: number;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
resetPageOnRowsChange: boolean;
|
|
47
|
+
resetPageOnSort: boolean;
|
|
48
|
+
emptyMessage: string;
|
|
49
|
+
emptyBodyHeight: number | string;
|
|
47
50
|
lazy: boolean;
|
|
48
51
|
lazyLoadOnInit: boolean;
|
|
49
52
|
showGlobalFilter: boolean;
|
|
@@ -65,6 +68,7 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked {
|
|
|
65
68
|
columnsSelected: EventEmitter<{
|
|
66
69
|
[key: string]: any;
|
|
67
70
|
}[]>;
|
|
71
|
+
lazyLoaded: EventEmitter<any>;
|
|
68
72
|
/**
|
|
69
73
|
* A function to implement custom sorting. customSort must be true.
|
|
70
74
|
* @param {any} any - sort meta.
|
|
@@ -97,6 +101,9 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked {
|
|
|
97
101
|
removeSelected(): void;
|
|
98
102
|
onClickActionBtn(): void;
|
|
99
103
|
onRowsPerPageChanged(): void;
|
|
104
|
+
getPageCount(): number;
|
|
105
|
+
getPage(): number;
|
|
106
|
+
changePage(p: number): void;
|
|
100
107
|
onPageChange(event: any): void;
|
|
101
108
|
toggleAllColumns(): void;
|
|
102
109
|
isColumnSelected(col: any): boolean;
|
|
@@ -105,8 +112,9 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked {
|
|
|
105
112
|
onRemoveRowClicked(item: any): void;
|
|
106
113
|
onSort(event: any): void;
|
|
107
114
|
onRowReorder(event: any): void;
|
|
115
|
+
onLazyLoaded(event: any): void;
|
|
108
116
|
exportTable(format: CpsTableExportFormat): void;
|
|
109
117
|
exportXLSX(): void;
|
|
110
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableComponent, never>;
|
|
111
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTableComponent, "cps-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "striped": "striped"; "bordered": "bordered"; "size": "size"; "selectable": "selectable"; "
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTableComponent, "cps-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "striped": "striped"; "bordered": "bordered"; "size": "size"; "selectable": "selectable"; "rowHover": "rowHover"; "dataKey": "dataKey"; "showRowMenu": "showRowMenu"; "reorderableRows": "reorderableRows"; "showColumnsToggle": "showColumnsToggle"; "loading": "loading"; "tableStyle": "tableStyle"; "tableStyleClass": "tableStyleClass"; "sortable": "sortable"; "sortMode": "sortMode"; "customSort": "customSort"; "hasToolbar": "hasToolbar"; "toolbarSize": "toolbarSize"; "toolbarTitle": "toolbarTitle"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "paginator": "paginator"; "alwaysShowPaginator": "alwaysShowPaginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "first": "first"; "rows": "rows"; "resetPageOnRowsChange": "resetPageOnRowsChange"; "resetPageOnSort": "resetPageOnSort"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "showExportBtn": "showExportBtn"; "exportFilename": "exportFilename"; "csvSeparator": "csvSeparator"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "rowsReordered": "rowsReordered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate", "rowExpansionTemplate"], never, true, never>;
|
|
112
120
|
}
|
|
@@ -19,5 +19,5 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnDestroy
|
|
|
19
19
|
private _getDefaultPlaceholder;
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableColumnFilterDirective, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnFilterDirective, "[
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnFilterDirective, "[cpsTColFilter]", never, { "field": "cpsTColFilter"; "filterType": "filterType"; "filterShowClearButton": "filterShowClearButton"; "filterShowApplyButton": "filterShowApplyButton"; "filterHideOnClear": "filterHideOnClear"; "filterMaxConstraints": "filterMaxConstraints"; "filterCategoryOptions": "filterCategoryOptions"; "filterPlaceholder": "filterPlaceholder"; }, {}, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -12,5 +12,5 @@ export declare class CpsTableColumnSortableDirective extends SortableColumn impl
|
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
13
|
onClick(event: MouseEvent): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableColumnSortableDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnSortableDirective, "[
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnSortableDirective, "[cpsTColSortable]", never, { "field": "cpsTColSortable"; }, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -9,5 +9,5 @@ export declare class CpsTableHeaderSelectableDirective implements OnInit, OnDest
|
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
ngOnDestroy(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableHeaderSelectableDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableHeaderSelectableDirective, "[
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableHeaderSelectableDirective, "[cpsTHdrSelectable]", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ export declare class TableUnsortDirective {
|
|
|
5
5
|
defaultSortOrderInitialized: boolean;
|
|
6
6
|
constructor(pTable: Table);
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableUnsortDirective, [{ optional: true; host: true; self: true; }]>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableUnsortDirective, "[
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableUnsortDirective, "[tWithUnsort]", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { TreeTable } from 'primeng/treetable';
|
|
3
|
+
import { SortEvent } from 'primeng/api';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare function treeTableFactory(tableComponent: CpsTreeTableComponent): TreeTable;
|
|
6
|
+
export type CpsTreeTableSize = 'small' | 'normal' | 'large';
|
|
7
|
+
export type CpsTreeTableToolbarSize = 'small' | 'normal';
|
|
8
|
+
export type CpsTreeTableSortMode = 'single' | 'multiple';
|
|
9
|
+
export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnDestroy, AfterViewChecked {
|
|
10
|
+
private cdRef;
|
|
11
|
+
data: any[];
|
|
12
|
+
columns: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}[];
|
|
15
|
+
colHeaderName: string;
|
|
16
|
+
colFieldName: string;
|
|
17
|
+
size: CpsTreeTableSize;
|
|
18
|
+
striped: boolean;
|
|
19
|
+
bordered: boolean;
|
|
20
|
+
tableStyle: undefined;
|
|
21
|
+
tableStyleClass: string;
|
|
22
|
+
selectable: boolean;
|
|
23
|
+
sortable: boolean;
|
|
24
|
+
sortMode: CpsTreeTableSortMode;
|
|
25
|
+
customSort: boolean;
|
|
26
|
+
hasToolbar: boolean;
|
|
27
|
+
toolbarSize: CpsTreeTableToolbarSize;
|
|
28
|
+
toolbarTitle: string;
|
|
29
|
+
rowHover: boolean;
|
|
30
|
+
showGlobalFilter: boolean;
|
|
31
|
+
globalFilterPlaceholder: string;
|
|
32
|
+
globalFilterFields: string[];
|
|
33
|
+
paginator: boolean;
|
|
34
|
+
alwaysShowPaginator: boolean;
|
|
35
|
+
rowsPerPageOptions: number[];
|
|
36
|
+
first: number;
|
|
37
|
+
rows: number;
|
|
38
|
+
resetPageOnRowsChange: boolean;
|
|
39
|
+
resetPageOnSort: boolean;
|
|
40
|
+
emptyMessage: string;
|
|
41
|
+
emptyBodyHeight: number | string;
|
|
42
|
+
lazy: boolean;
|
|
43
|
+
lazyLoadOnInit: boolean;
|
|
44
|
+
showRowMenu: boolean;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
scrollable: boolean;
|
|
47
|
+
scrollHeight: string;
|
|
48
|
+
virtualScroll: boolean;
|
|
49
|
+
numToleratedItems: number;
|
|
50
|
+
showRemoveBtnOnSelect: boolean;
|
|
51
|
+
showActionBtn: boolean;
|
|
52
|
+
actionBtnTitle: string;
|
|
53
|
+
showColumnsToggle: boolean;
|
|
54
|
+
actionBtnClicked: EventEmitter<void>;
|
|
55
|
+
columnsSelected: EventEmitter<{
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}[]>;
|
|
58
|
+
pageChanged: EventEmitter<any>;
|
|
59
|
+
lazyLoaded: EventEmitter<any>;
|
|
60
|
+
nodeExpanded: EventEmitter<any>;
|
|
61
|
+
nodeCollapsed: EventEmitter<any>;
|
|
62
|
+
nodeSelected: EventEmitter<any>;
|
|
63
|
+
nodeUnselected: EventEmitter<any>;
|
|
64
|
+
sorted: EventEmitter<any>;
|
|
65
|
+
editRowBtnClicked: EventEmitter<any>;
|
|
66
|
+
rowsRemoved: EventEmitter<any[]>;
|
|
67
|
+
/**
|
|
68
|
+
* A function to implement custom sorting. customSort must be true.
|
|
69
|
+
* @param {any} any - sort meta.
|
|
70
|
+
* @group Emits
|
|
71
|
+
*/
|
|
72
|
+
customSortFunction: EventEmitter<any>;
|
|
73
|
+
toolbarTemplate: TemplateRef<any>;
|
|
74
|
+
headerTemplate: TemplateRef<any>;
|
|
75
|
+
nestedHeaderTemplate: TemplateRef<any>;
|
|
76
|
+
bodyTemplate: TemplateRef<any>;
|
|
77
|
+
primengTreeTable: TreeTable;
|
|
78
|
+
selectedColumns: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}[];
|
|
81
|
+
rowOptions: {
|
|
82
|
+
label: string;
|
|
83
|
+
value: number;
|
|
84
|
+
}[];
|
|
85
|
+
selectedRows: any[];
|
|
86
|
+
virtualScrollItemSize: number;
|
|
87
|
+
defScrollHeightPx: number;
|
|
88
|
+
defScrollHeight: string;
|
|
89
|
+
resizeObserver: ResizeObserver;
|
|
90
|
+
headerBox: any;
|
|
91
|
+
scrollableBody: any;
|
|
92
|
+
scrollbarWidth: number;
|
|
93
|
+
constructor(cdRef: ChangeDetectorRef);
|
|
94
|
+
ngOnInit(): void;
|
|
95
|
+
ngAfterViewInit(): void;
|
|
96
|
+
ngAfterViewChecked(): void;
|
|
97
|
+
ngOnDestroy(): void;
|
|
98
|
+
private _onWindowResize;
|
|
99
|
+
get styleClass(): string;
|
|
100
|
+
onSortFunction(event: SortEvent): void;
|
|
101
|
+
private _recalcVirtualHeight;
|
|
102
|
+
onFilterGlobal(value: string): void;
|
|
103
|
+
onClickActionBtn(): void;
|
|
104
|
+
removeSelected(): void;
|
|
105
|
+
onEditRowClicked(node: any): void;
|
|
106
|
+
onRemoveRowClicked(node: any): void;
|
|
107
|
+
toggleAllColumns(): void;
|
|
108
|
+
isColumnSelected(col: any): boolean;
|
|
109
|
+
onRowsPerPageChanged(): void;
|
|
110
|
+
getPageCount(): number;
|
|
111
|
+
getPage(): number;
|
|
112
|
+
changePage(p: number): void;
|
|
113
|
+
onPageChange(event: any): void;
|
|
114
|
+
onLazyLoaded(event: any): void;
|
|
115
|
+
onNodeExpanded(event: any): void;
|
|
116
|
+
onNodeCollapsed(event: any): void;
|
|
117
|
+
onNodeSelected(event: any): void;
|
|
118
|
+
onNodeUnselected(event: any): void;
|
|
119
|
+
onSort(event: any): void;
|
|
120
|
+
onSelectColumn(col: any): void;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeTableComponent, never>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeTableComponent, "cps-tree-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "size": "size"; "striped": "striped"; "bordered": "bordered"; "tableStyle": "tableStyle"; "tableStyleClass": "tableStyleClass"; "selectable": "selectable"; "sortable": "sortable"; "sortMode": "sortMode"; "customSort": "customSort"; "hasToolbar": "hasToolbar"; "toolbarSize": "toolbarSize"; "toolbarTitle": "toolbarTitle"; "rowHover": "rowHover"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "paginator": "paginator"; "alwaysShowPaginator": "alwaysShowPaginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "first": "first"; "rows": "rows"; "resetPageOnRowsChange": "resetPageOnRowsChange"; "resetPageOnSort": "resetPageOnSort"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "loading": "loading"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "showColumnsToggle": "showColumnsToggle"; }, { "actionBtnClicked": "actionBtnClicked"; "columnsSelected": "columnsSelected"; "pageChanged": "pageChanged"; "lazyLoaded": "lazyLoaded"; "nodeExpanded": "nodeExpanded"; "nodeCollapsed": "nodeCollapsed"; "nodeSelected": "nodeSelected"; "nodeUnselected": "nodeUnselected"; "sorted": "sorted"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate"], never, true, never>;
|
|
123
|
+
}
|
package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TTSortableColumn, TreeTable } from 'primeng/treetable';
|
|
3
|
+
import { TreeTableSortIconComponent } from '../tree-table-sort-icon/tree-table-sort-icon.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CpsTreeTableColumnSortableDirective extends TTSortableColumn implements OnInit, OnDestroy {
|
|
6
|
+
private elementRef;
|
|
7
|
+
private viewContainerRef;
|
|
8
|
+
tt: TreeTable;
|
|
9
|
+
field: string;
|
|
10
|
+
sortIconRef: ComponentRef<TreeTableSortIconComponent>;
|
|
11
|
+
constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, tt: TreeTable);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
onClick(event: MouseEvent): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeTableColumnSortableDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTreeTableColumnSortableDirective, "[cpsTTColSortable]", never, { "field": "cpsTTColSortable"; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TTHeaderCheckbox } from 'primeng/treetable';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CpsTreeTableHeaderSelectableDirective implements OnInit, OnDestroy {
|
|
5
|
+
private elementRef;
|
|
6
|
+
private viewContainerRef;
|
|
7
|
+
checkboxCompRef: ComponentRef<TTHeaderCheckbox>;
|
|
8
|
+
constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeTableHeaderSelectableDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTreeTableHeaderSelectableDirective, "[cpsTTHdrSelectable]", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TreeTableToggler } from 'primeng/treetable';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CpsTreetableRowTogglerDirective implements OnInit, OnDestroy {
|
|
5
|
+
private elementRef;
|
|
6
|
+
private viewContainerRef;
|
|
7
|
+
rowNode: any;
|
|
8
|
+
togglerCompRef: ComponentRef<TreeTableToggler>;
|
|
9
|
+
constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreetableRowTogglerDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTreetableRowTogglerDirective, "[cpsTTRowToggler]", never, { "rowNode": "cpsTTRowToggler"; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TreeTable } from 'primeng/treetable';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TreeTableUnsortDirective {
|
|
4
|
+
pTreeTable: TreeTable;
|
|
5
|
+
defaultSortOrderInitialized: boolean;
|
|
6
|
+
constructor(pTreeTable: TreeTable);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableUnsortDirective, [{ optional: true; host: true; self: true; }]>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeTableUnsortDirective, "[ttWithUnsort]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
package/lib/components/cps-tree-table/tree-table-sort-icon/tree-table-sort-icon.component.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { TreeTable } from 'primeng/treetable';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TreeTableSortIconComponent implements OnInit, OnDestroy {
|
|
6
|
+
tt: TreeTable;
|
|
7
|
+
cd: ChangeDetectorRef;
|
|
8
|
+
field: string;
|
|
9
|
+
subscription: Subscription;
|
|
10
|
+
sortOrder: number;
|
|
11
|
+
constructor(tt: TreeTable, cd: ChangeDetectorRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onClick(event: any): void;
|
|
14
|
+
updateSortState(): void;
|
|
15
|
+
getMultiSortMetaIndex(): number;
|
|
16
|
+
getBadgeValue(): number;
|
|
17
|
+
isMultiSorted(): boolean;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeTableSortIconComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeTableSortIconComponent, "tree-table-sort-icon", never, { "field": "field"; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export * from './lib/components/cps-table/cps-table.component';
|
|
|
13
13
|
export * from './lib/components/cps-table/directives/cps-table-column-sortable.directive';
|
|
14
14
|
export * from './lib/components/cps-table/directives/cps-table-column-filter.directive';
|
|
15
15
|
export * from './lib/components/cps-table/directives/cps-table-header-selectable.directive';
|
|
16
|
+
export * from './lib/components/cps-tree-table/cps-tree-table.component';
|
|
17
|
+
export * from './lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive';
|
|
18
|
+
export * from './lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive';
|
|
19
|
+
export * from './lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive';
|
|
16
20
|
export * from './lib/components/cps-tag/cps-tag.component';
|
|
17
21
|
export * from './lib/components/cps-chip/cps-chip.component';
|
|
18
22
|
export * from './lib/components/cps-menu/cps-menu.component';
|