cps-ui-kit 0.106.0 → 0.108.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/esm2020/lib/components/cps-table/cps-filter-match-mode.mjs +25 -0
- package/esm2020/lib/components/cps-table/cps-table.component.mjs +10 -4
- package/esm2020/lib/components/cps-table/directives/cps-table-column-filter.directive.mjs +25 -5
- package/esm2020/lib/components/cps-table/table-column-filter/table-column-filter.component.mjs +90 -35
- package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +10 -4
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.mjs +23 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/cps-ui-kit.mjs +180 -48
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +178 -47
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-table/cps-filter-match-mode.d.ts +22 -0
- package/lib/components/cps-table/cps-table.component.d.ts +3 -1
- package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +8 -2
- package/lib/components/cps-table/table-column-filter/table-column-filter.component.d.ts +16 -7
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +3 -1
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +7 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum CpsFilterMatchMode {
|
|
2
|
+
STARTS_WITH = "startsWith",
|
|
3
|
+
CONTAINS = "contains",
|
|
4
|
+
NOT_CONTAINS = "notContains",
|
|
5
|
+
ENDS_WITH = "endsWith",
|
|
6
|
+
EQUALS = "equals",
|
|
7
|
+
NOT_EQUALS = "notEquals",
|
|
8
|
+
IN = "in",
|
|
9
|
+
LESS_THAN = "lt",
|
|
10
|
+
LESS_THAN_OR_EQUAL_TO = "lte",
|
|
11
|
+
GREATER_THAN = "gt",
|
|
12
|
+
GREATER_THAN_OR_EQUAL_TO = "gte",
|
|
13
|
+
BETWEEN = "between",
|
|
14
|
+
IS = "is",
|
|
15
|
+
IS_NOT = "isNot",
|
|
16
|
+
BEFORE = "before",
|
|
17
|
+
AFTER = "after",
|
|
18
|
+
DATE_IS = "dateIs",
|
|
19
|
+
DATE_IS_NOT = "dateIsNot",
|
|
20
|
+
DATE_BEFORE = "dateBefore",
|
|
21
|
+
DATE_AFTER = "dateAfter"
|
|
22
|
+
}
|
|
@@ -35,6 +35,8 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
35
35
|
hasToolbar: boolean;
|
|
36
36
|
toolbarSize: CpsTableToolbarSize;
|
|
37
37
|
toolbarTitle: string;
|
|
38
|
+
toolbarIcon: string;
|
|
39
|
+
toolbarIconColor: string;
|
|
38
40
|
scrollable: boolean;
|
|
39
41
|
scrollHeight: string;
|
|
40
42
|
virtualScroll: boolean;
|
|
@@ -134,5 +136,5 @@ export declare class CpsTableComponent implements OnInit, AfterViewChecked, OnCh
|
|
|
134
136
|
exportTable(format: CpsTableExportFormat): void;
|
|
135
137
|
exportXLSX(): void;
|
|
136
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableComponent, never>;
|
|
137
|
-
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"; "totalRecords": "totalRecords"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "clearGlobalFilterOnLoading": "clearGlobalFilterOnLoading"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "removeBtnOnSelectDisabled": "removeBtnOnSelectDisabled"; "showAdditionalBtnOnSelect": "showAdditionalBtnOnSelect"; "additionalBtnOnSelectTitle": "additionalBtnOnSelectTitle"; "additionalBtnOnSelectDisabled": "additionalBtnOnSelectDisabled"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "actionBtnDisabled": "actionBtnDisabled"; "showExportBtn": "showExportBtn"; "exportFilename": "exportFilename"; "csvSeparator": "csvSeparator"; "showDataReloadBtn": "showDataReloadBtn"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "filtered": "filtered"; "rowsReordered": "rowsReordered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "dataReloadBtnClicked": "dataReloadBtnClicked"; "additionalBtnOnSelectClicked": "additionalBtnOnSelectClicked"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate", "rowExpansionTemplate"], never, true, never>;
|
|
139
|
+
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"; "toolbarIcon": "toolbarIcon"; "toolbarIconColor": "toolbarIconColor"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "paginator": "paginator"; "alwaysShowPaginator": "alwaysShowPaginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "first": "first"; "rows": "rows"; "resetPageOnRowsChange": "resetPageOnRowsChange"; "resetPageOnSort": "resetPageOnSort"; "totalRecords": "totalRecords"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "clearGlobalFilterOnLoading": "clearGlobalFilterOnLoading"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "removeBtnOnSelectDisabled": "removeBtnOnSelectDisabled"; "showAdditionalBtnOnSelect": "showAdditionalBtnOnSelect"; "additionalBtnOnSelectTitle": "additionalBtnOnSelectTitle"; "additionalBtnOnSelectDisabled": "additionalBtnOnSelectDisabled"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "actionBtnDisabled": "actionBtnDisabled"; "showExportBtn": "showExportBtn"; "exportFilename": "exportFilename"; "csvSeparator": "csvSeparator"; "showDataReloadBtn": "showDataReloadBtn"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "filtered": "filtered"; "rowsReordered": "rowsReordered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "dataReloadBtnClicked": "dataReloadBtnClicked"; "additionalBtnOnSelectClicked": "additionalBtnOnSelectClicked"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate", "rowExpansionTemplate"], never, true, never>;
|
|
138
140
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { TableColumnFilterComponent } from '../table-column-filter/table-column-filter.component';
|
|
3
|
+
import { CpsFilterMatchMode } from '../cps-filter-match-mode';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type CpsTableColumnFilterType = 'text' | 'number' | 'date' | 'boolean' | 'category';
|
|
5
6
|
export declare class CpsTableColumnFilterDirective implements OnInit, OnDestroy {
|
|
@@ -7,10 +8,15 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnDestroy
|
|
|
7
8
|
private viewContainerRef;
|
|
8
9
|
field: string | undefined;
|
|
9
10
|
filterType: CpsTableColumnFilterType;
|
|
11
|
+
filterPersistent: boolean;
|
|
10
12
|
filterShowClearButton: boolean;
|
|
11
13
|
filterShowApplyButton: boolean;
|
|
12
|
-
|
|
14
|
+
filterShowCloseButton: boolean;
|
|
15
|
+
filterShowMatchModes: boolean;
|
|
16
|
+
filterMatchModes: CpsFilterMatchMode[];
|
|
17
|
+
filterShowOperator: boolean;
|
|
13
18
|
filterMaxConstraints: number;
|
|
19
|
+
filterHideOnClear: boolean;
|
|
14
20
|
filterCategoryOptions: string[];
|
|
15
21
|
filterPlaceholder: string;
|
|
16
22
|
filterCompRef: ComponentRef<TableColumnFilterComponent>;
|
|
@@ -19,5 +25,5 @@ export declare class CpsTableColumnFilterDirective implements OnInit, OnDestroy
|
|
|
19
25
|
private _getDefaultPlaceholder;
|
|
20
26
|
ngOnDestroy(): void;
|
|
21
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableColumnFilterDirective, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnFilterDirective, "[cpsTColFilter]", never, { "field": "cpsTColFilter"; "filterType": "filterType"; "filterShowClearButton": "filterShowClearButton"; "filterShowApplyButton": "filterShowApplyButton"; "
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTableColumnFilterDirective, "[cpsTColFilter]", never, { "field": "cpsTColFilter"; "filterType": "filterType"; "filterPersistent": "filterPersistent"; "filterShowClearButton": "filterShowClearButton"; "filterShowApplyButton": "filterShowApplyButton"; "filterShowCloseButton": "filterShowCloseButton"; "filterShowMatchModes": "filterShowMatchModes"; "filterMatchModes": "filterMatchModes"; "filterShowOperator": "filterShowOperator"; "filterMaxConstraints": "filterMaxConstraints"; "filterHideOnClear": "filterHideOnClear"; "filterCategoryOptions": "filterCategoryOptions"; "filterPlaceholder": "filterPlaceholder"; }, {}, never, never, true, never>;
|
|
23
29
|
}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FilterMetadata, SelectItem } from 'primeng/api';
|
|
3
3
|
import { Table } from 'primeng/table';
|
|
4
4
|
import { CpsMenuComponent } from '../../cps-menu/cps-menu.component';
|
|
5
5
|
import { TreeTable } from 'primeng/treetable';
|
|
6
|
+
import { CpsFilterMatchMode } from '../cps-filter-match-mode';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TableColumnFilterComponent {
|
|
8
|
+
export declare class TableColumnFilterComponent implements OnInit, OnDestroy {
|
|
8
9
|
elementRef: ElementRef;
|
|
9
10
|
dt: Table;
|
|
10
11
|
tt: TreeTable;
|
|
11
12
|
field: string | undefined;
|
|
12
13
|
type: string;
|
|
14
|
+
persistent: boolean;
|
|
13
15
|
showClearButton: boolean;
|
|
14
16
|
showApplyButton: boolean;
|
|
15
|
-
|
|
17
|
+
showCloseButton: boolean;
|
|
18
|
+
showMatchModes: boolean;
|
|
19
|
+
matchModes: CpsFilterMatchMode[];
|
|
20
|
+
showOperator: boolean;
|
|
16
21
|
maxConstraints: number;
|
|
22
|
+
hideOnClear: boolean;
|
|
17
23
|
categoryOptions: string[];
|
|
18
24
|
placeholder: string;
|
|
19
25
|
operator: string;
|
|
20
|
-
showMatchModes: boolean;
|
|
21
|
-
showOperator: boolean;
|
|
22
26
|
operatorOptions: {
|
|
23
27
|
label: string;
|
|
24
28
|
value: string;
|
|
@@ -26,12 +30,15 @@ export declare class TableColumnFilterComponent {
|
|
|
26
30
|
}[];
|
|
27
31
|
private matchModeLabels;
|
|
28
32
|
private filterMatchModeOptions;
|
|
29
|
-
|
|
33
|
+
currentMatchModes: SelectItem[] | undefined;
|
|
30
34
|
columnFilterMenu: CpsMenuComponent;
|
|
31
35
|
_tableInstance: Table | TreeTable;
|
|
36
|
+
private _isFilterApplied;
|
|
32
37
|
constructor(elementRef: ElementRef, dt: Table, tt: TreeTable);
|
|
33
38
|
ngOnInit(): void;
|
|
39
|
+
private _updateFilterApplied;
|
|
34
40
|
initFieldFilterConstraint(): void;
|
|
41
|
+
onCloseClick(): void;
|
|
35
42
|
onMenuMatchModeChange(value: any, filterMeta: FilterMetadata): void;
|
|
36
43
|
addConstraint(): void;
|
|
37
44
|
removeConstraint(filterMeta: FilterMetadata): void;
|
|
@@ -47,8 +54,10 @@ export declare class TableColumnFilterComponent {
|
|
|
47
54
|
clearFilter(): void;
|
|
48
55
|
applyFilter(): void;
|
|
49
56
|
onMenuShown(): void;
|
|
57
|
+
onBeforeMenuHidden(): void;
|
|
50
58
|
onMenuHidden(): void;
|
|
51
59
|
onClick(event: any): void;
|
|
60
|
+
ngOnDestroy(): void;
|
|
52
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnFilterComponent, [null, { optional: true; }, { optional: true; }]>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnFilterComponent, "table-column-filter", never, { "field": "field"; "type": "type"; "showClearButton": "showClearButton"; "showApplyButton": "showApplyButton"; "
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnFilterComponent, "table-column-filter", never, { "field": "field"; "type": "type"; "persistent": "persistent"; "showClearButton": "showClearButton"; "showApplyButton": "showApplyButton"; "showCloseButton": "showCloseButton"; "showMatchModes": "showMatchModes"; "matchModes": "matchModes"; "showOperator": "showOperator"; "maxConstraints": "maxConstraints"; "hideOnClear": "hideOnClear"; "categoryOptions": "categoryOptions"; "placeholder": "placeholder"; }, {}, never, never, true, never>;
|
|
54
63
|
}
|
|
@@ -31,6 +31,8 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
31
31
|
hasToolbar: boolean;
|
|
32
32
|
toolbarSize: CpsTreeTableToolbarSize;
|
|
33
33
|
toolbarTitle: string;
|
|
34
|
+
toolbarIcon: string;
|
|
35
|
+
toolbarIconColor: string;
|
|
34
36
|
scrollable: boolean;
|
|
35
37
|
scrollHeight: string;
|
|
36
38
|
virtualScroll: boolean;
|
|
@@ -140,5 +142,5 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
|
|
|
140
142
|
onSelectColumn(col: any): void;
|
|
141
143
|
onSelectionChanged(selection: any[]): void;
|
|
142
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeTableComponent, never>;
|
|
143
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeTableComponent, "cps-tree-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "striped": "striped"; "bordered": "bordered"; "size": "size"; "selectable": "selectable"; "rowHover": "rowHover"; "showRowMenu": "showRowMenu"; "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"; "totalRecords": "totalRecords"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "clearGlobalFilterOnLoading": "clearGlobalFilterOnLoading"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "removeBtnOnSelectDisabled": "removeBtnOnSelectDisabled"; "showAdditionalBtnOnSelect": "showAdditionalBtnOnSelect"; "additionalBtnOnSelectTitle": "additionalBtnOnSelectTitle"; "additionalBtnOnSelectDisabled": "additionalBtnOnSelectDisabled"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "actionBtnDisabled": "actionBtnDisabled"; "showDataReloadBtn": "showDataReloadBtn"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "additionalBtnOnSelectClicked": "additionalBtnOnSelectClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "filtered": "filtered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "dataReloadBtnClicked": "dataReloadBtnClicked"; "nodeExpanded": "nodeExpanded"; "nodeCollapsed": "nodeCollapsed"; "nodeSelected": "nodeSelected"; "nodeUnselected": "nodeUnselected"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate"], never, true, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeTableComponent, "cps-tree-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "striped": "striped"; "bordered": "bordered"; "size": "size"; "selectable": "selectable"; "rowHover": "rowHover"; "showRowMenu": "showRowMenu"; "showColumnsToggle": "showColumnsToggle"; "loading": "loading"; "tableStyle": "tableStyle"; "tableStyleClass": "tableStyleClass"; "sortable": "sortable"; "sortMode": "sortMode"; "customSort": "customSort"; "hasToolbar": "hasToolbar"; "toolbarSize": "toolbarSize"; "toolbarTitle": "toolbarTitle"; "toolbarIcon": "toolbarIcon"; "toolbarIconColor": "toolbarIconColor"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "paginator": "paginator"; "alwaysShowPaginator": "alwaysShowPaginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "first": "first"; "rows": "rows"; "resetPageOnRowsChange": "resetPageOnRowsChange"; "resetPageOnSort": "resetPageOnSort"; "totalRecords": "totalRecords"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "clearGlobalFilterOnLoading": "clearGlobalFilterOnLoading"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "removeBtnOnSelectDisabled": "removeBtnOnSelectDisabled"; "showAdditionalBtnOnSelect": "showAdditionalBtnOnSelect"; "additionalBtnOnSelectTitle": "additionalBtnOnSelectTitle"; "additionalBtnOnSelectDisabled": "additionalBtnOnSelectDisabled"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "actionBtnDisabled": "actionBtnDisabled"; "showDataReloadBtn": "showDataReloadBtn"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "additionalBtnOnSelectClicked": "additionalBtnOnSelectClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "filtered": "filtered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "dataReloadBtnClicked": "dataReloadBtnClicked"; "nodeExpanded": "nodeExpanded"; "nodeCollapsed": "nodeCollapsed"; "nodeSelected": "nodeSelected"; "nodeUnselected": "nodeUnselected"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate"], never, true, never>;
|
|
144
146
|
}
|
package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentRef, ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { TableColumnFilterComponent } from '../../cps-table/table-column-filter/table-column-filter.component';
|
|
3
|
+
import { CpsFilterMatchMode } from '../../cps-table/cps-filter-match-mode';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type CpsTreeTableColumnFilterType = 'text' | 'number' | 'date' | 'boolean' | 'category';
|
|
5
6
|
export declare class CpsTreeTableColumnFilterDirective implements OnInit, OnDestroy {
|
|
@@ -7,8 +8,13 @@ export declare class CpsTreeTableColumnFilterDirective implements OnInit, OnDest
|
|
|
7
8
|
private viewContainerRef;
|
|
8
9
|
field: string | undefined;
|
|
9
10
|
filterType: CpsTreeTableColumnFilterType;
|
|
11
|
+
filterPersistent: boolean;
|
|
10
12
|
filterShowClearButton: boolean;
|
|
11
13
|
filterShowApplyButton: boolean;
|
|
14
|
+
filterShowCloseButton: boolean;
|
|
15
|
+
filterShowMatchModes: boolean;
|
|
16
|
+
filterMatchModes: CpsFilterMatchMode[];
|
|
17
|
+
filterShowOperator: boolean;
|
|
12
18
|
filterHideOnClear: boolean;
|
|
13
19
|
filterCategoryOptions: string[];
|
|
14
20
|
filterPlaceholder: string;
|
|
@@ -18,5 +24,5 @@ export declare class CpsTreeTableColumnFilterDirective implements OnInit, OnDest
|
|
|
18
24
|
private _getDefaultPlaceholder;
|
|
19
25
|
ngOnDestroy(): void;
|
|
20
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeTableColumnFilterDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTreeTableColumnFilterDirective, "[cpsTTColFilter]", never, { "field": "cpsTTColFilter"; "filterType": "filterType"; "filterShowClearButton": "filterShowClearButton"; "filterShowApplyButton": "filterShowApplyButton"; "filterHideOnClear": "filterHideOnClear"; "filterCategoryOptions": "filterCategoryOptions"; "filterPlaceholder": "filterPlaceholder"; }, {}, never, never, true, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTreeTableColumnFilterDirective, "[cpsTTColFilter]", never, { "field": "cpsTTColFilter"; "filterType": "filterType"; "filterPersistent": "filterPersistent"; "filterShowClearButton": "filterShowClearButton"; "filterShowApplyButton": "filterShowApplyButton"; "filterShowCloseButton": "filterShowCloseButton"; "filterShowMatchModes": "filterShowMatchModes"; "filterMatchModes": "filterMatchModes"; "filterShowOperator": "filterShowOperator"; "filterHideOnClear": "filterHideOnClear"; "filterCategoryOptions": "filterCategoryOptions"; "filterPlaceholder": "filterPlaceholder"; }, {}, never, never, true, never>;
|
|
22
28
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './lib/components/cps-table/directives/cps-table-column-sortable.d
|
|
|
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
16
|
export * from './lib/components/cps-table/directives/cps-table-row-selectable.directive';
|
|
17
|
+
export * from './lib/components/cps-table/cps-filter-match-mode';
|
|
17
18
|
export * from './lib/components/cps-tree-table/cps-tree-table.component';
|
|
18
19
|
export * from './lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive';
|
|
19
20
|
export * from './lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive';
|