cps-ui-kit 19.3.0 → 20.0.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/assets/icons.svg +6 -0
- package/fesm2022/cps-ui-kit.mjs +562 -565
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/index.d.ts +5547 -3
- package/package.json +8 -6
- package/styles/styles.scss +6 -5
- package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +0 -332
- package/lib/components/cps-button/cps-button.component.d.ts +0 -89
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +0 -111
- package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +0 -86
- package/lib/components/cps-chip/cps-chip.component.d.ts +0 -51
- package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +0 -158
- package/lib/components/cps-divider/cps-divider.component.d.ts +0 -39
- package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +0 -86
- package/lib/components/cps-file-upload/cps-file-upload.component.d.ts +0 -79
- package/lib/components/cps-icon/cps-icon.component.d.ts +0 -44
- package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +0 -41
- package/lib/components/cps-input/cps-input.component.d.ts +0 -206
- package/lib/components/cps-loader/cps-loader.component.d.ts +0 -34
- package/lib/components/cps-menu/cps-menu.component.d.ts +0 -179
- package/lib/components/cps-paginator/cps-paginator.component.d.ts +0 -62
- package/lib/components/cps-paginator/pipes/cps-paginate.pipe.d.ts +0 -14
- package/lib/components/cps-progress-circular/cps-progress-circular.component.d.ts +0 -28
- package/lib/components/cps-progress-linear/cps-progress-linear.component.d.ts +0 -43
- package/lib/components/cps-radio-group/cps-radio/cps-radio.component.d.ts +0 -21
- package/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.d.ts +0 -49
- package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +0 -120
- package/lib/components/cps-scheduler/cps-scheduler.component.d.ts +0 -151
- package/lib/components/cps-scheduler/cps-scheduler.utils.d.ts +0 -1
- package/lib/components/cps-select/cps-select.component.d.ts +0 -260
- package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +0 -51
- package/lib/components/cps-switch/cps-switch.component.d.ts +0 -73
- package/lib/components/cps-tab-group/cps-tab/cps-tab.component.d.ts +0 -57
- package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +0 -124
- package/lib/components/cps-table/components/internal/cps-sort-icon/cps-sort-icon.component.d.ts +0 -24
- package/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.d.ts +0 -140
- package/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.d.ts +0 -67
- package/lib/components/cps-table/components/internal/table-row-menu/table-row-menu.component.d.ts +0 -46
- package/lib/components/cps-table/cps-column-filter-types.d.ts +0 -42
- package/lib/components/cps-table/cps-table.component.d.ts +0 -561
- package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +0 -103
- package/lib/components/cps-table/directives/cps-table-column-resizable.directive.d.ts +0 -15
- package/lib/components/cps-table/directives/cps-table-column-sortable.directive.d.ts +0 -24
- package/lib/components/cps-table/directives/cps-table-header-selectable.directive.d.ts +0 -17
- package/lib/components/cps-table/directives/cps-table-row-selectable.directive.d.ts +0 -22
- package/lib/components/cps-table/directives/internal/table-unsort.directive.d.ts +0 -13
- package/lib/components/cps-table/pipes/cps-table-detect-filter-type.pipe.d.ts +0 -10
- package/lib/components/cps-tag/cps-tag.component.d.ts +0 -58
- package/lib/components/cps-textarea/cps-textarea.component.d.ts +0 -154
- package/lib/components/cps-timepicker/cps-timepicker.component.d.ts +0 -156
- package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +0 -65
- package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +0 -36
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +0 -587
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +0 -98
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-resizable.directive.d.ts +0 -15
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts +0 -24
- package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts +0 -17
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.d.ts +0 -22
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.d.ts +0 -23
- package/lib/components/cps-tree-table/directives/internal/tree-table-unsort.directive.d.ts +0 -15
- package/lib/components/cps-tree-table/pipes/cps-tree-table-detect-filter-type.pipe.d.ts +0 -12
- package/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts +0 -237
- package/lib/directives/cps-tooltip/cps-tooltip.directive.d.ts +0 -90
- package/lib/pipes/internal/check-option-selected.pipe.d.ts +0 -7
- package/lib/pipes/internal/combine-labels.pipe.d.ts +0 -7
- package/lib/pipes/internal/label-by-value.pipe.d.ts +0 -7
- package/lib/services/cps-dialog/cps-dialog.service.d.ts +0 -47
- package/lib/services/cps-dialog/internal/components/cps-confirmation/cps-confirmation.component.d.ts +0 -12
- package/lib/services/cps-dialog/internal/components/cps-dialog/cps-dialog.component.d.ts +0 -93
- package/lib/services/cps-dialog/internal/directives/cps-dialog-content.directive.d.ts +0 -8
- package/lib/services/cps-dialog/utils/cps-dialog-config.d.ts +0 -155
- package/lib/services/cps-dialog/utils/cps-dialog-ref.d.ts +0 -101
- package/lib/services/cps-notification/cps-notification.service.d.ts +0 -56
- package/lib/services/cps-notification/internal/components/cps-notification-container/cps-notification-container.component.d.ts +0 -39
- package/lib/services/cps-notification/internal/components/cps-toast/cps-toast.component.d.ts +0 -28
- package/lib/services/cps-notification/utils/cps-notification-config.d.ts +0 -60
- package/lib/services/cps-notification/utils/internal/cps-notification-data.d.ts +0 -26
- package/lib/utils/colors-utils.d.ts +0 -3
- package/lib/utils/internal/size-utils.d.ts +0 -5
- package/public-api.d.ts +0 -54
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* CpsTabComponent is a tab within a tab-group.
|
|
5
|
-
* @group Components
|
|
6
|
-
*/
|
|
7
|
-
export declare class CpsTabComponent {
|
|
8
|
-
/**
|
|
9
|
-
* Label of the tab.
|
|
10
|
-
* @group Props
|
|
11
|
-
*/
|
|
12
|
-
label: string;
|
|
13
|
-
/**
|
|
14
|
-
* Icon before the label.
|
|
15
|
-
* @group Props
|
|
16
|
-
*/
|
|
17
|
-
icon: string;
|
|
18
|
-
/**
|
|
19
|
-
* Determines whether tab is disabled.
|
|
20
|
-
* @group Props
|
|
21
|
-
*/
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Determines whether to show the tooltip on tab hover.
|
|
25
|
-
* @group Props
|
|
26
|
-
*/
|
|
27
|
-
tooltipText: string;
|
|
28
|
-
/**
|
|
29
|
-
* Class for styling the tab tooltip.
|
|
30
|
-
* @group Props
|
|
31
|
-
*/
|
|
32
|
-
tooltipContentClass: string;
|
|
33
|
-
/**
|
|
34
|
-
* Max width of the tooltip, of type number denoting pixels or string.
|
|
35
|
-
* @group Props
|
|
36
|
-
*/
|
|
37
|
-
tooltipMaxWidth: number | string;
|
|
38
|
-
/**
|
|
39
|
-
* Determines whether the tooltip should have persistent info.
|
|
40
|
-
* @group Props
|
|
41
|
-
*/
|
|
42
|
-
tooltipPersistent: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Badge value to show on the tab after the label in a form of a circle.
|
|
45
|
-
* @group Props
|
|
46
|
-
*/
|
|
47
|
-
badgeValue: string;
|
|
48
|
-
/**
|
|
49
|
-
* Tooltip text to show on badge hover.
|
|
50
|
-
* @group Props
|
|
51
|
-
*/
|
|
52
|
-
badgeTooltip: string;
|
|
53
|
-
content: TemplateRef<any>;
|
|
54
|
-
active: boolean;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabComponent, "cps-tab", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipContentClass": { "alias": "tooltipContentClass"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipPersistent": { "alias": "tooltipPersistent"; "required": false; }; "badgeValue": { "alias": "badgeValue"; "required": false; }; "badgeTooltip": { "alias": "badgeTooltip"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
57
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { CpsTabComponent } from './cps-tab/cps-tab.component';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* CpsTabChangeEvent is used to define the tab change event.
|
|
7
|
-
* @group Interface
|
|
8
|
-
*/
|
|
9
|
-
export interface CpsTabChangeEvent {
|
|
10
|
-
/**
|
|
11
|
-
* Index of the previous tab.
|
|
12
|
-
*/
|
|
13
|
-
previousIndex: number;
|
|
14
|
-
/**
|
|
15
|
-
* Index of the new tab.
|
|
16
|
-
*/
|
|
17
|
-
newIndex: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* CpsTabsAnimationType is used to define the transition options of how content appears.
|
|
21
|
-
* @group Types
|
|
22
|
-
*/
|
|
23
|
-
export type CpsTabsAnimationType = 'slide' | 'fade';
|
|
24
|
-
/**
|
|
25
|
-
* CpsTabsAlignmentType is used to define the horizontal alignment of tabs.
|
|
26
|
-
* @group Types
|
|
27
|
-
*/
|
|
28
|
-
export type CpsTabsAlignmentType = 'left' | 'center' | 'right';
|
|
29
|
-
/**
|
|
30
|
-
* CpsTabGroupComponent is a navigation component that displays items as tab headers.
|
|
31
|
-
* @group Components
|
|
32
|
-
*/
|
|
33
|
-
export declare class CpsTabGroupComponent implements OnInit, AfterContentInit, AfterViewInit, OnChanges, OnDestroy {
|
|
34
|
-
private cdRef;
|
|
35
|
-
private document;
|
|
36
|
-
/**
|
|
37
|
-
* Index of the selected tab.
|
|
38
|
-
* @default 0
|
|
39
|
-
* @group Props
|
|
40
|
-
*/
|
|
41
|
-
set selectedIndex(value: number);
|
|
42
|
-
get selectedIndex(): number;
|
|
43
|
-
/**
|
|
44
|
-
* Determines whether to apply an alternative 'subtabs' styling.
|
|
45
|
-
* @group Props
|
|
46
|
-
*/
|
|
47
|
-
isSubTabs: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Horizontal alignment of tabs.
|
|
50
|
-
* @group Props
|
|
51
|
-
*/
|
|
52
|
-
alignment: CpsTabsAlignmentType;
|
|
53
|
-
/**
|
|
54
|
-
* Class to apply to the tab content wrapper.
|
|
55
|
-
* @group Props
|
|
56
|
-
*/
|
|
57
|
-
contentWrapClass: string;
|
|
58
|
-
/**
|
|
59
|
-
* Class to apply to the tab header.
|
|
60
|
-
* @group Props
|
|
61
|
-
*/
|
|
62
|
-
headerClass: string;
|
|
63
|
-
/**
|
|
64
|
-
* Determines whether to stretch tabs to fill the available horizontal space.
|
|
65
|
-
* @group Props
|
|
66
|
-
*/
|
|
67
|
-
stretched: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Transition options of how content appears, it can be "slide" or "fade".
|
|
70
|
-
* @group Props
|
|
71
|
-
*/
|
|
72
|
-
animationType: CpsTabsAnimationType;
|
|
73
|
-
/**
|
|
74
|
-
* Background color of navigation buttons.
|
|
75
|
-
* @group Props
|
|
76
|
-
*/
|
|
77
|
-
navButtonsBackground: string;
|
|
78
|
-
/**
|
|
79
|
-
* Background color of tabs.
|
|
80
|
-
* @group Props
|
|
81
|
-
*/
|
|
82
|
-
tabsBackground: string;
|
|
83
|
-
/**
|
|
84
|
-
* Callback to invoke before tab change.
|
|
85
|
-
* @param {CpsTabChangeEvent} any - tab change event.
|
|
86
|
-
* @group Emits
|
|
87
|
-
*/
|
|
88
|
-
beforeTabChanged: EventEmitter<CpsTabChangeEvent>;
|
|
89
|
-
/**
|
|
90
|
-
* Callback to invoke after tab change.
|
|
91
|
-
* @param {CpsTabChangeEvent} any - tab change event.
|
|
92
|
-
* @group Emits
|
|
93
|
-
*/
|
|
94
|
-
afterTabChanged: EventEmitter<CpsTabChangeEvent>;
|
|
95
|
-
tabsList: ElementRef;
|
|
96
|
-
backBtn?: ElementRef;
|
|
97
|
-
forwardBtn?: ElementRef;
|
|
98
|
-
tabs: QueryList<CpsTabComponent>;
|
|
99
|
-
backBtnVisible: boolean;
|
|
100
|
-
forwardBtnVisible: boolean;
|
|
101
|
-
animationState: 'slideLeft' | 'slideRight' | 'fadeIn' | 'fadeOut';
|
|
102
|
-
windowResize$: Subscription;
|
|
103
|
-
listScroll$: Subscription;
|
|
104
|
-
private _currentTabIndex;
|
|
105
|
-
private _previousTabIndex;
|
|
106
|
-
constructor(cdRef: ChangeDetectorRef, document: Document);
|
|
107
|
-
ngOnInit(): void;
|
|
108
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
109
|
-
ngAfterContentInit(): void;
|
|
110
|
-
ngAfterViewInit(): void;
|
|
111
|
-
ngOnDestroy(): void;
|
|
112
|
-
get selectedTab(): CpsTabComponent | undefined;
|
|
113
|
-
onTabClick(index: number): void;
|
|
114
|
-
selectTab(silent?: boolean): void;
|
|
115
|
-
onScroll(event: any): void;
|
|
116
|
-
onResize(): void;
|
|
117
|
-
navBackward(): void;
|
|
118
|
-
navForward(): void;
|
|
119
|
-
private _updateNavBtnsState;
|
|
120
|
-
private _getVisibleButtonWidths;
|
|
121
|
-
private _getWidth;
|
|
122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabGroupComponent, never>;
|
|
123
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabGroupComponent, "cps-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "isSubTabs": { "alias": "isSubTabs"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "contentWrapClass": { "alias": "contentWrapClass"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "stretched": { "alias": "stretched"; "required": false; }; "animationType": { "alias": "animationType"; "required": false; }; "navButtonsBackground": { "alias": "navButtonsBackground"; "required": false; }; "tabsBackground": { "alias": "tabsBackground"; "required": false; }; }, { "beforeTabChanged": "beforeTabChanged"; "afterTabChanged": "afterTabChanged"; }, ["tabs"], never, true, never>;
|
|
124
|
-
}
|
package/lib/components/cps-table/components/internal/cps-sort-icon/cps-sort-icon.component.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Table } from 'primeng/table';
|
|
3
|
-
import { TreeTable } from 'primeng/treetable';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CpsSortIconComponent implements OnInit, OnDestroy {
|
|
7
|
-
dt: Table;
|
|
8
|
-
tt: TreeTable;
|
|
9
|
-
cd: ChangeDetectorRef;
|
|
10
|
-
field: string;
|
|
11
|
-
subscription: Subscription;
|
|
12
|
-
sortOrder: number;
|
|
13
|
-
_tableInstance: Table | TreeTable;
|
|
14
|
-
constructor(dt: Table, tt: TreeTable, cd: ChangeDetectorRef);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
onClick(event: Event): void;
|
|
17
|
-
updateSortState(): void;
|
|
18
|
-
getMultiSortMetaIndex(): number;
|
|
19
|
-
getBadgeValue(): number;
|
|
20
|
-
isMultiSorted(): boolean;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsSortIconComponent, [{ optional: true; }, { optional: true; }, null]>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsSortIconComponent, "cps-sort-icon", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { FilterMetadata, SelectItem } from 'primeng/api';
|
|
3
|
-
import { Table } from 'primeng/table';
|
|
4
|
-
import { TreeTable } from 'primeng/treetable';
|
|
5
|
-
import { CpsColumnFilterCategoryOption, CpsColumnFilterMatchMode, CpsColumnFilterType } from '../../../cps-column-filter-types';
|
|
6
|
-
import { CpsMenuComponent } from '../../../../cps-menu/cps-menu.component';
|
|
7
|
-
import { TableColumnFilterConstraintComponent } from '../table-column-filter-constraint/table-column-filter-constraint.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* TableColumnFilterComponent is an internal filter component in table and treetable.
|
|
11
|
-
*/
|
|
12
|
-
export declare class TableColumnFilterComponent implements OnInit, OnDestroy {
|
|
13
|
-
elementRef: ElementRef;
|
|
14
|
-
dt: Table;
|
|
15
|
-
tt: TreeTable;
|
|
16
|
-
/**
|
|
17
|
-
* Name of the column to be filtered.
|
|
18
|
-
* @group Props
|
|
19
|
-
*/
|
|
20
|
-
field: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Type of filter in table, it can be of type "number", "boolean", "text", "date" or "category".
|
|
23
|
-
* @group Props
|
|
24
|
-
*/
|
|
25
|
-
type: CpsColumnFilterType;
|
|
26
|
-
/**
|
|
27
|
-
* Determines whether the filter menu should be persistent.
|
|
28
|
-
* @group Props
|
|
29
|
-
*/
|
|
30
|
-
persistent: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Determines whether the filter should have clear button.
|
|
33
|
-
* @group Props
|
|
34
|
-
*/
|
|
35
|
-
showClearButton: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Determines whether the filter should have apply button.
|
|
38
|
-
* @group Props
|
|
39
|
-
*/
|
|
40
|
-
showApplyButton: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Determines whether the filter should have close button.
|
|
43
|
-
* @group Props
|
|
44
|
-
*/
|
|
45
|
-
showCloseButton: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Determines whether the filter should have match modes.
|
|
48
|
-
* @group Props
|
|
49
|
-
*/
|
|
50
|
-
showMatchModes: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Match modes for filter.
|
|
53
|
-
* @group Props
|
|
54
|
-
*/
|
|
55
|
-
matchModes: CpsColumnFilterMatchMode[];
|
|
56
|
-
/**
|
|
57
|
-
* Determines whether the filter should have operator.
|
|
58
|
-
* @group Props
|
|
59
|
-
*/
|
|
60
|
-
showOperator: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Maximum number of constraints.
|
|
63
|
-
* @group Props
|
|
64
|
-
*/
|
|
65
|
-
maxConstraints: number;
|
|
66
|
-
/**
|
|
67
|
-
* Title of the filter.
|
|
68
|
-
* @group Props
|
|
69
|
-
*/
|
|
70
|
-
headerTitle: string;
|
|
71
|
-
/**
|
|
72
|
-
* Determines whether the filter should hide on clear.
|
|
73
|
-
* @group Props
|
|
74
|
-
*/
|
|
75
|
-
hideOnClear: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Options for category filter.
|
|
78
|
-
* @group Props
|
|
79
|
-
*/
|
|
80
|
-
categoryOptions: CpsColumnFilterCategoryOption[] | string[];
|
|
81
|
-
/**
|
|
82
|
-
* Determines whether to show category filter as button toggles.
|
|
83
|
-
* @group Props
|
|
84
|
-
*/
|
|
85
|
-
asButtonToggle: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Single selection for category filter.
|
|
88
|
-
* @group Props
|
|
89
|
-
*/
|
|
90
|
-
singleSelection: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Placeholder for filter constraints.
|
|
93
|
-
* @group Props
|
|
94
|
-
*/
|
|
95
|
-
placeholder: string;
|
|
96
|
-
constraintCompList: QueryList<TableColumnFilterConstraintComponent>;
|
|
97
|
-
operator: string;
|
|
98
|
-
operatorOptions: {
|
|
99
|
-
label: string;
|
|
100
|
-
value: string;
|
|
101
|
-
info: string;
|
|
102
|
-
}[];
|
|
103
|
-
private matchModeLabels;
|
|
104
|
-
private filterMatchModeOptions;
|
|
105
|
-
currentMatchModes: SelectItem[] | undefined;
|
|
106
|
-
columnFilterMenu: CpsMenuComponent;
|
|
107
|
-
private _tableInstance;
|
|
108
|
-
private _onFilterSub?;
|
|
109
|
-
isFilterApplied: boolean;
|
|
110
|
-
get isCategoryDropdownOpened(): boolean;
|
|
111
|
-
constructor(elementRef: ElementRef, dt: Table, tt: TreeTable);
|
|
112
|
-
ngOnInit(): void;
|
|
113
|
-
ngOnDestroy(): void;
|
|
114
|
-
private _updateFilterApplied;
|
|
115
|
-
private _initFieldFilterConstraint;
|
|
116
|
-
private _getDefaultMatchMode;
|
|
117
|
-
private _getDefaultOperator;
|
|
118
|
-
private _updateSortIconColor;
|
|
119
|
-
onCloseClick(): void;
|
|
120
|
-
onMenuMatchModeChange(value: any, filterMeta: FilterMetadata): void;
|
|
121
|
-
addConstraint(): void;
|
|
122
|
-
removeConstraint(filterMeta: FilterMetadata): void;
|
|
123
|
-
onOperatorChange(value: any): void;
|
|
124
|
-
get fieldConstraints(): FilterMetadata[] | undefined | null;
|
|
125
|
-
get showRemoveIcon(): boolean;
|
|
126
|
-
get isShowOperator(): boolean;
|
|
127
|
-
get isShowAddConstraint(): boolean | undefined | null;
|
|
128
|
-
hide(): void;
|
|
129
|
-
clearFilter(): void;
|
|
130
|
-
clearFilterValues(): void;
|
|
131
|
-
applyFilter(): void;
|
|
132
|
-
onMenuShown(): void;
|
|
133
|
-
onBeforeMenuHidden(): void;
|
|
134
|
-
onMenuHidden(): void;
|
|
135
|
-
onClick(event: any): void;
|
|
136
|
-
onMouseOver(): void;
|
|
137
|
-
onMouseLeave(): void;
|
|
138
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnFilterComponent, [null, { optional: true; }, { optional: true; }]>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnFilterComponent, "table-column-filter", never, { "field": { "alias": "field"; "required": false; }; "type": { "alias": "type"; "required": false; }; "persistent": { "alias": "persistent"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "showApplyButton": { "alias": "showApplyButton"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showMatchModes": { "alias": "showMatchModes"; "required": false; }; "matchModes": { "alias": "matchModes"; "required": false; }; "showOperator": { "alias": "showOperator"; "required": false; }; "maxConstraints": { "alias": "maxConstraints"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "hideOnClear": { "alias": "hideOnClear"; "required": false; }; "categoryOptions": { "alias": "categoryOptions"; "required": false; }; "asButtonToggle": { "alias": "asButtonToggle"; "required": false; }; "singleSelection": { "alias": "singleSelection"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
|
|
140
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { FilterMetadata } from 'primeng/api';
|
|
3
|
-
import { Table } from 'primeng/table';
|
|
4
|
-
import { TreeTable } from 'primeng/treetable';
|
|
5
|
-
import { CpsButtonToggleOption } from '../../../../cps-button-toggle/cps-button-toggle.component';
|
|
6
|
-
import { CpsAutocompleteComponent } from '../../../../cps-autocomplete/cps-autocomplete.component';
|
|
7
|
-
import { CpsColumnFilterCategoryOption, CpsColumnFilterType } from '../../../cps-column-filter-types';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* TableColumnFilterConstraintComponent is an internal filtering constraint component in table and treetable.
|
|
11
|
-
*/
|
|
12
|
-
export declare class TableColumnFilterConstraintComponent implements OnChanges {
|
|
13
|
-
dt: Table;
|
|
14
|
-
tt: TreeTable;
|
|
15
|
-
/**
|
|
16
|
-
* Type of filter constraint.
|
|
17
|
-
* @group Props
|
|
18
|
-
*/
|
|
19
|
-
type: CpsColumnFilterType;
|
|
20
|
-
/**
|
|
21
|
-
* Column name.
|
|
22
|
-
* @group Props
|
|
23
|
-
*/
|
|
24
|
-
field: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Constraint data.
|
|
27
|
-
* @group Props
|
|
28
|
-
*/
|
|
29
|
-
filterConstraint: FilterMetadata | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* An array of category options.
|
|
32
|
-
* @group Props
|
|
33
|
-
*/
|
|
34
|
-
categoryOptions: CpsColumnFilterCategoryOption[] | string[];
|
|
35
|
-
/**
|
|
36
|
-
* Determines whether to show category filter as button toggles.
|
|
37
|
-
* @group Props
|
|
38
|
-
*/
|
|
39
|
-
asButtonToggle: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Single selection for category filter.
|
|
42
|
-
* @group Props
|
|
43
|
-
*/
|
|
44
|
-
singleSelection: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Placeholder for input field.
|
|
47
|
-
* @group Props
|
|
48
|
-
*/
|
|
49
|
-
placeholder: string;
|
|
50
|
-
/**
|
|
51
|
-
* Determines whether the filter should have an apply button.
|
|
52
|
-
* @group Props
|
|
53
|
-
*/
|
|
54
|
-
hasApplyButton: boolean;
|
|
55
|
-
categoryAutocompleteComponent?: CpsAutocompleteComponent;
|
|
56
|
-
booleanOptions: CpsButtonToggleOption[];
|
|
57
|
-
categories: CpsColumnFilterCategoryOption[];
|
|
58
|
-
_tableInstance: Table | TreeTable;
|
|
59
|
-
get isCategoryDropdownOpened(): boolean;
|
|
60
|
-
constructor(dt: Table, tt: TreeTable);
|
|
61
|
-
ngOnChanges(): void;
|
|
62
|
-
private _updateCategories;
|
|
63
|
-
onValueChange(value: any): void;
|
|
64
|
-
onEnterKeyDown(event: any): void;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnFilterConstraintComponent, [{ optional: true; }, { optional: true; }]>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnFilterConstraintComponent, "table-column-filter-constraint", never, { "type": { "alias": "type"; "required": false; }; "field": { "alias": "field"; "required": false; }; "filterConstraint": { "alias": "filterConstraint"; "required": false; }; "categoryOptions": { "alias": "categoryOptions"; "required": false; }; "asButtonToggle": { "alias": "asButtonToggle"; "required": false; }; "singleSelection": { "alias": "singleSelection"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hasApplyButton": { "alias": "hasApplyButton"; "required": false; }; }, {}, never, never, true, never>;
|
|
67
|
-
}
|
package/lib/components/cps-table/components/internal/table-row-menu/table-row-menu.component.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { CpsMenuItem } from '../../../../cps-menu/cps-menu.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* TableRowMenuComponent is an internal component which applies the menu to each row.
|
|
6
|
-
*/
|
|
7
|
-
export declare class TableRowMenuComponent implements OnInit {
|
|
8
|
-
/**
|
|
9
|
-
* Callback to invoke when edit-row button is clicked.
|
|
10
|
-
* @param {any} any - button clicked.
|
|
11
|
-
* @group Emits
|
|
12
|
-
*/
|
|
13
|
-
editRowBtnClicked: EventEmitter<any>;
|
|
14
|
-
/**
|
|
15
|
-
* Callback to invoke when remove-row button is clicked.
|
|
16
|
-
* @param {any} any - button clicked.
|
|
17
|
-
* @group Emits
|
|
18
|
-
*/
|
|
19
|
-
removeRowBtnClicked: EventEmitter<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Determines whether the 'Remove' button should be displayed in the menu.
|
|
22
|
-
* @group Props
|
|
23
|
-
*/
|
|
24
|
-
set showRowRemoveButton(value: boolean);
|
|
25
|
-
get showRowRemoveButton(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Custom items to be displayed in the menu.
|
|
28
|
-
* @group Props
|
|
29
|
-
*/
|
|
30
|
-
set customItems(value: CpsMenuItem[] | undefined);
|
|
31
|
-
get customItems(): CpsMenuItem[] | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Determines whether the 'Edit' button should be displayed in the menu.
|
|
34
|
-
* @group Props
|
|
35
|
-
*/
|
|
36
|
-
set showRowEditButton(value: boolean);
|
|
37
|
-
get showRowEditButton(): boolean;
|
|
38
|
-
private _showRowRemoveButton;
|
|
39
|
-
private _showRowEditButton;
|
|
40
|
-
private _customRowMenuItems?;
|
|
41
|
-
items: CpsMenuItem[];
|
|
42
|
-
ngOnInit(): void;
|
|
43
|
-
initializeItems(): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowMenuComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowMenuComponent, "table-row-menu", never, { "showRowRemoveButton": { "alias": "showRowRemoveButton"; "required": false; }; "customItems": { "alias": "customItems"; "required": false; }; "showRowEditButton": { "alias": "showRowEditButton"; "required": false; }; }, { "editRowBtnClicked": "editRowBtnClicked"; "removeRowBtnClicked": "removeRowBtnClicked"; }, never, never, true, never>;
|
|
46
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CpsColumnFilterMatchMode is used to define how the filter value should be matched.
|
|
3
|
-
* @group Enums
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CpsColumnFilterMatchMode {
|
|
6
|
-
STARTS_WITH = "startsWith",
|
|
7
|
-
CONTAINS = "contains",
|
|
8
|
-
NOT_CONTAINS = "notContains",
|
|
9
|
-
ENDS_WITH = "endsWith",
|
|
10
|
-
EQUALS = "equals",
|
|
11
|
-
NOT_EQUALS = "notEquals",
|
|
12
|
-
IN = "in",
|
|
13
|
-
LESS_THAN = "lt",
|
|
14
|
-
LESS_THAN_OR_EQUAL_TO = "lte",
|
|
15
|
-
GREATER_THAN = "gt",
|
|
16
|
-
GREATER_THAN_OR_EQUAL_TO = "gte",
|
|
17
|
-
BETWEEN = "between",
|
|
18
|
-
IS = "is",
|
|
19
|
-
IS_NOT = "isNot",
|
|
20
|
-
BEFORE = "before",
|
|
21
|
-
AFTER = "after",
|
|
22
|
-
DATE_IS = "dateIs",
|
|
23
|
-
DATE_IS_NOT = "dateIsNot",
|
|
24
|
-
DATE_BEFORE = "dateBefore",
|
|
25
|
-
DATE_AFTER = "dateAfter"
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* CpsColumnFilterCategoryOption is used to define the options of the CpsColumnFilterCategoryComponent.
|
|
29
|
-
* @group Types
|
|
30
|
-
*/
|
|
31
|
-
export type CpsColumnFilterCategoryOption = {
|
|
32
|
-
value: any;
|
|
33
|
-
label?: string;
|
|
34
|
-
icon?: string;
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
tooltip?: string;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* CpsColumnFilterType is used to define the type of the column filter.
|
|
40
|
-
* @group Types
|
|
41
|
-
*/
|
|
42
|
-
export type CpsColumnFilterType = 'text' | 'number' | 'date' | 'boolean' | 'category';
|