cps-ui-kit 19.4.0 → 20.1.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 +1132 -693
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/index.d.ts +5571 -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 -91
- 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,155 +0,0 @@
|
|
|
1
|
-
import { CpsTooltipPosition } from '../../../directives/cps-tooltip/cps-tooltip.directive';
|
|
2
|
-
export declare class CpsDialogConfig<T = any> {
|
|
3
|
-
/**
|
|
4
|
-
* An object to pass to the component loaded inside the Dialog.
|
|
5
|
-
*/
|
|
6
|
-
data?: T;
|
|
7
|
-
/**
|
|
8
|
-
* Determines whether to show the header or not.
|
|
9
|
-
*/
|
|
10
|
-
showHeader?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Header text of the dialog.
|
|
13
|
-
*/
|
|
14
|
-
headerTitle?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Header information tooltip.
|
|
17
|
-
*/
|
|
18
|
-
headerInfoTooltip?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Header information tooltip position.
|
|
21
|
-
*/
|
|
22
|
-
headerInfoTooltipPosition?: CpsTooltipPosition;
|
|
23
|
-
/**
|
|
24
|
-
* Header icon.
|
|
25
|
-
*/
|
|
26
|
-
headerIcon?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Header icon color.
|
|
29
|
-
*/
|
|
30
|
-
headerIconColor?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Determines whether to show the header left border.
|
|
33
|
-
*/
|
|
34
|
-
showHeaderLeftBorder?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Determines whether to show the header bottom border.
|
|
37
|
-
*/
|
|
38
|
-
showHeaderBottomBorder?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Identifies the element (or elements) that labels the element it is applied to.
|
|
41
|
-
*/
|
|
42
|
-
ariaLabelledBy?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Width of the dialog.
|
|
45
|
-
*/
|
|
46
|
-
width?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Height of the dialog.
|
|
49
|
-
*/
|
|
50
|
-
height?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Min-width of the dialog.
|
|
53
|
-
*/
|
|
54
|
-
minWidth?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Min-height of the dialog.
|
|
57
|
-
*/
|
|
58
|
-
minHeight?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Max-width of the dialog.
|
|
61
|
-
*/
|
|
62
|
-
maxWidth?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Max-height of the dialog.
|
|
65
|
-
*/
|
|
66
|
-
maxHeight?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Specifies if pressing escape key should hide the dialog.
|
|
69
|
-
*/
|
|
70
|
-
closeOnEscape?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Base zIndex value to use in layering.
|
|
73
|
-
*/
|
|
74
|
-
baseZIndex?: number;
|
|
75
|
-
/**
|
|
76
|
-
* Determines whether to automatically manage layering.
|
|
77
|
-
*/
|
|
78
|
-
autoZIndex?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Specifies whether the user is allowed to close the dialog.
|
|
81
|
-
*/
|
|
82
|
-
disableClose?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Inline style of the component.
|
|
85
|
-
*/
|
|
86
|
-
style?: {
|
|
87
|
-
[klass: string]: any;
|
|
88
|
-
} | null | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Style class of the component.
|
|
91
|
-
*/
|
|
92
|
-
styleClass?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Inline style of the content.
|
|
95
|
-
*/
|
|
96
|
-
contentStyle?: {
|
|
97
|
-
[klass: string]: any;
|
|
98
|
-
} | null | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Style class of the content.
|
|
101
|
-
*/
|
|
102
|
-
contentStyleClass?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Transition options of the animation.
|
|
105
|
-
*/
|
|
106
|
-
transitionOptions?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Adds a close button to the header to hide the dialog.
|
|
109
|
-
*/
|
|
110
|
-
showCloseBtn?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Defines if background should be blocked when dialog is displayed.
|
|
113
|
-
*/
|
|
114
|
-
modal?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* When modal dialog is displayed, determines whether background should be blurred.
|
|
117
|
-
*/
|
|
118
|
-
blurredBackground?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Style class of the mask.
|
|
121
|
-
*/
|
|
122
|
-
maskStyleClass?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Enables resizing of the content.
|
|
125
|
-
*/
|
|
126
|
-
resizable?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Enables dragging to change the position using header.
|
|
129
|
-
*/
|
|
130
|
-
draggable?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Keeps dialog in the viewport.
|
|
133
|
-
*/
|
|
134
|
-
keepInViewport?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Minimum value for the left coordinate of dialog in dragging.
|
|
137
|
-
*/
|
|
138
|
-
minX?: number;
|
|
139
|
-
/**
|
|
140
|
-
* Minimum value for the top coordinate of dialog in dragging.
|
|
141
|
-
*/
|
|
142
|
-
minY?: number;
|
|
143
|
-
/**
|
|
144
|
-
* Determines whether the dialog can be displayed full screen.
|
|
145
|
-
*/
|
|
146
|
-
maximizable?: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Determines whether the dialog is initially opened as full screen.
|
|
149
|
-
*/
|
|
150
|
-
maximized?: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Position of the dialog, options are "center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left" or "bottom-right".
|
|
153
|
-
*/
|
|
154
|
-
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
155
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CpsDialogComponent } from '../internal/components/cps-dialog/cps-dialog.component';
|
|
3
|
-
export declare class CpsDialogRef<T = any> {
|
|
4
|
-
private _containerInstance;
|
|
5
|
-
_setContainerInstance(instance: CpsDialogComponent): void;
|
|
6
|
-
private _handleContainerEvents;
|
|
7
|
-
/**
|
|
8
|
-
* The instance of the component opened into the dialog.
|
|
9
|
-
* @group Props
|
|
10
|
-
*/
|
|
11
|
-
componentInstance: T;
|
|
12
|
-
/**
|
|
13
|
-
* Closes the dialog.
|
|
14
|
-
* @group Method
|
|
15
|
-
*/
|
|
16
|
-
close(result?: any): void;
|
|
17
|
-
/**
|
|
18
|
-
* Destroys the dialog.
|
|
19
|
-
* @group Method
|
|
20
|
-
*/
|
|
21
|
-
destroy(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Sets dialog as full screen.
|
|
24
|
-
* @group Method
|
|
25
|
-
*/
|
|
26
|
-
maximize(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Switches back from full screen dialog size to normal size.
|
|
29
|
-
* @group Method
|
|
30
|
-
*/
|
|
31
|
-
minimize(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Checks whether the dialog is currently opened.
|
|
34
|
-
* @group Method
|
|
35
|
-
*/
|
|
36
|
-
isOpen(): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Checks whether the dialog is maximized.
|
|
39
|
-
* @group Method
|
|
40
|
-
*/
|
|
41
|
-
isMaximized(): boolean;
|
|
42
|
-
private readonly _onOpen;
|
|
43
|
-
/**
|
|
44
|
-
* Event triggered on dialog is opened.
|
|
45
|
-
* @group Events
|
|
46
|
-
*/
|
|
47
|
-
onOpen: Observable<void>;
|
|
48
|
-
private readonly _onClose;
|
|
49
|
-
/**
|
|
50
|
-
* Event triggered on dialog is closed.
|
|
51
|
-
* @param {any} result - Close result.
|
|
52
|
-
* @group Events
|
|
53
|
-
*/
|
|
54
|
-
onClose: Observable<any>;
|
|
55
|
-
private readonly _onDestroy;
|
|
56
|
-
/**
|
|
57
|
-
* Event triggered on dialog is destroyed.
|
|
58
|
-
* @group Events
|
|
59
|
-
*/
|
|
60
|
-
onDestroy: Observable<void>;
|
|
61
|
-
private readonly _onDragStart;
|
|
62
|
-
/**
|
|
63
|
-
* Event triggered on drag start.
|
|
64
|
-
* @param {MouseEvent} event - Mouse event.
|
|
65
|
-
* @group Events
|
|
66
|
-
*/
|
|
67
|
-
onDragStart: Observable<MouseEvent>;
|
|
68
|
-
private readonly _onDragEnd;
|
|
69
|
-
/**
|
|
70
|
-
* Event triggered on drag end.
|
|
71
|
-
* @param {MouseEvent} event - Mouse event.
|
|
72
|
-
* @group Events
|
|
73
|
-
*/
|
|
74
|
-
onDragEnd: Observable<MouseEvent>;
|
|
75
|
-
private readonly _onResizeStart;
|
|
76
|
-
/**
|
|
77
|
-
* Event triggered on resize start.
|
|
78
|
-
* @param {MouseEvent} event - Mouse event.
|
|
79
|
-
* @group Events
|
|
80
|
-
*/
|
|
81
|
-
onResizeStart: Observable<MouseEvent>;
|
|
82
|
-
private readonly _onResizeEnd;
|
|
83
|
-
/**
|
|
84
|
-
* Event triggered on resize end.
|
|
85
|
-
* @param {MouseEvent} event - Mouse event.
|
|
86
|
-
* @group Events
|
|
87
|
-
*/
|
|
88
|
-
onResizeEnd: Observable<MouseEvent>;
|
|
89
|
-
private readonly _onMaximize;
|
|
90
|
-
/**
|
|
91
|
-
* Event triggered on dialog maximized state changed.
|
|
92
|
-
* @param {boolean} value - boolean value.
|
|
93
|
-
* @group Events
|
|
94
|
-
*/
|
|
95
|
-
onMaximize: Observable<boolean>;
|
|
96
|
-
/**
|
|
97
|
-
* Specifies whether the user is allowed to close the dialog.
|
|
98
|
-
* @group Props
|
|
99
|
-
*/
|
|
100
|
-
disableClose?: boolean;
|
|
101
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef } from '@angular/core';
|
|
2
|
-
import { CpsNotificationConfig } from './utils/cps-notification-config';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service for showing notifications.
|
|
6
|
-
* @group Services
|
|
7
|
-
*/
|
|
8
|
-
export declare class CpsNotificationService {
|
|
9
|
-
private _appRef;
|
|
10
|
-
private document;
|
|
11
|
-
private _containersMap;
|
|
12
|
-
constructor(_appRef: ApplicationRef, document: Document);
|
|
13
|
-
/**
|
|
14
|
-
* Shows a notification with type 'info'.
|
|
15
|
-
* @param {string} message - Notification message.
|
|
16
|
-
* @param {string} details - Notification details.
|
|
17
|
-
* @param {CpsNotificationConfig} config - CpsNotificationConfig object.
|
|
18
|
-
* @group Method
|
|
19
|
-
*/
|
|
20
|
-
info(message: string, details?: string, config?: CpsNotificationConfig): void;
|
|
21
|
-
/**
|
|
22
|
-
* Shows a notification with type 'warning'.
|
|
23
|
-
* @param {string} message - Notification message.
|
|
24
|
-
* @param {string} details - Notification details.
|
|
25
|
-
* @param {CpsNotificationConfig} config - CpsNotificationConfig object.
|
|
26
|
-
* @group Method
|
|
27
|
-
*/
|
|
28
|
-
warning(message: string, details?: string, config?: CpsNotificationConfig): void;
|
|
29
|
-
/**
|
|
30
|
-
* Shows a notification with type 'success'.
|
|
31
|
-
* @param {string} message - Notification message.
|
|
32
|
-
* @param {string} details - Notification details.
|
|
33
|
-
* @param {CpsNotificationConfig} config - CpsNotificationConfig object.
|
|
34
|
-
* @group Method
|
|
35
|
-
*/
|
|
36
|
-
success(message: string, details?: string, config?: CpsNotificationConfig): void;
|
|
37
|
-
/**
|
|
38
|
-
* Shows a notification with type 'error'.
|
|
39
|
-
* @param {string} message - Notification message.
|
|
40
|
-
* @param {string} details - Notification details.
|
|
41
|
-
* @param {CpsNotificationConfig} config - CpsNotificationConfig object.
|
|
42
|
-
* @group Method
|
|
43
|
-
*/
|
|
44
|
-
error(message: string, details?: string, config?: CpsNotificationConfig): void;
|
|
45
|
-
/**
|
|
46
|
-
* Clears all notifications.
|
|
47
|
-
* @group Method
|
|
48
|
-
*/
|
|
49
|
-
clear(): void;
|
|
50
|
-
private _createNotification;
|
|
51
|
-
private _initConfig;
|
|
52
|
-
private _appendNotificationToContainer;
|
|
53
|
-
private _tryRemoveContainer;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsNotificationService, never>;
|
|
55
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CpsNotificationService>;
|
|
56
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
-
import { CpsNotificationConfig, CpsNotificationPosition } from '../../../utils/cps-notification-config';
|
|
3
|
-
import { CpsNotificationData } from '../../../utils/internal/cps-notification-data';
|
|
4
|
-
import { PrimeNG } from 'primeng/config';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
type Nullable<T = void> = T | null | undefined;
|
|
7
|
-
export declare class CpsNotificationContainerComponent implements AfterViewInit, OnDestroy {
|
|
8
|
-
renderer: Renderer2;
|
|
9
|
-
zone: NgZone;
|
|
10
|
-
primeNG: PrimeNG;
|
|
11
|
-
private _cdRef;
|
|
12
|
-
/**
|
|
13
|
-
* Position of the notification container.
|
|
14
|
-
* @group Props
|
|
15
|
-
*/
|
|
16
|
-
position: CpsNotificationPosition;
|
|
17
|
-
/**
|
|
18
|
-
* Callback to invoke on notification close.
|
|
19
|
-
* @param {CpsNotificationConfig} CpsNotificationConfig - notification closed.
|
|
20
|
-
* @group Emits
|
|
21
|
-
*/
|
|
22
|
-
closed: EventEmitter<any>;
|
|
23
|
-
CpsNotificationPosition: typeof CpsNotificationPosition;
|
|
24
|
-
container: Nullable<ElementRef>;
|
|
25
|
-
wrapper: Nullable<HTMLElement>;
|
|
26
|
-
notifications: {
|
|
27
|
-
data: CpsNotificationData;
|
|
28
|
-
config: CpsNotificationConfig;
|
|
29
|
-
}[];
|
|
30
|
-
constructor(renderer: Renderer2, zone: NgZone, primeNG: PrimeNG, _cdRef: ChangeDetectorRef);
|
|
31
|
-
ngAfterViewInit(): void;
|
|
32
|
-
addNotification(config: CpsNotificationConfig, data: CpsNotificationData): void;
|
|
33
|
-
onCloseNotification(index: number): void;
|
|
34
|
-
moveOnTop(): void;
|
|
35
|
-
ngOnDestroy(): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsNotificationContainerComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsNotificationContainerComponent, "cps-notification-container", never, { "position": { "alias": "position"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
package/lib/services/cps-notification/internal/components/cps-toast/cps-toast.component.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { CpsNotificationConfig } from '../../../utils/cps-notification-config';
|
|
3
|
-
import { CpsNotificationData } from '../../../utils/internal/cps-notification-data';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CpsToastComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
6
|
-
private zone;
|
|
7
|
-
config: CpsNotificationConfig;
|
|
8
|
-
data: CpsNotificationData;
|
|
9
|
-
/**
|
|
10
|
-
* Callback to invoke on toast close.
|
|
11
|
-
* @param {any}
|
|
12
|
-
* @group Emits
|
|
13
|
-
*/
|
|
14
|
-
closed: EventEmitter<any>;
|
|
15
|
-
timeout: any;
|
|
16
|
-
maxWidth: string | undefined;
|
|
17
|
-
filled: boolean;
|
|
18
|
-
color: string;
|
|
19
|
-
constructor(zone: NgZone);
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
ngAfterViewInit(): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
close(): void;
|
|
24
|
-
initiateTimeout(): void;
|
|
25
|
-
clearTimeout(): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsToastComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsToastComponent, "cps-toast", never, { "config": { "alias": "config"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An enumeration of appearances of notifications.
|
|
3
|
-
* @group Enums
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CpsNotificationAppearance {
|
|
6
|
-
FILLED = "filled",
|
|
7
|
-
OUTLINED = "outlined"
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* An enumeration of positions of notifications.
|
|
11
|
-
* @group Enums
|
|
12
|
-
*/
|
|
13
|
-
export declare enum CpsNotificationPosition {
|
|
14
|
-
CENTER = "center",
|
|
15
|
-
TOP = "top",
|
|
16
|
-
BOTTOM = "bottom",
|
|
17
|
-
LEFT = "left",
|
|
18
|
-
RIGHT = "right",
|
|
19
|
-
TOPLEFT = "top-left",
|
|
20
|
-
TOPRIGHT = "top-right",
|
|
21
|
-
BOTTOMLEFT = "bottom-left",
|
|
22
|
-
BOTTOMRIGHT = "bottom-right"
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Configuration for the notification service.
|
|
26
|
-
* @group Interface
|
|
27
|
-
*/
|
|
28
|
-
export interface CpsNotificationConfig {
|
|
29
|
-
/**
|
|
30
|
-
* Position of the notification, options are "center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left" or "bottom-right".
|
|
31
|
-
* @default top-right
|
|
32
|
-
*/
|
|
33
|
-
position?: CpsNotificationPosition;
|
|
34
|
-
/**
|
|
35
|
-
* Appearance of the notification, options are "filled" or "outlined".
|
|
36
|
-
* @default filled
|
|
37
|
-
*/
|
|
38
|
-
appearance?: CpsNotificationAppearance;
|
|
39
|
-
/**
|
|
40
|
-
* The duration (in milliseconds) that the notification will be displayed before automatically closing.
|
|
41
|
-
* Value 0 means that the notification is persistent and will not be automatically closed.
|
|
42
|
-
* @default 5000
|
|
43
|
-
*/
|
|
44
|
-
timeout?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Whether to allow duplicates of the same notification to be displayed within a positioned container.
|
|
47
|
-
* @default undefined
|
|
48
|
-
*/
|
|
49
|
-
allowDuplicates?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Max amount of notifications that can be simultaneously visualized within a positioned container.
|
|
52
|
-
* @default undefined
|
|
53
|
-
*/
|
|
54
|
-
maxAmount?: number;
|
|
55
|
-
/**
|
|
56
|
-
* Max width of the notification of type number denoting pixels or string.
|
|
57
|
-
* @default undefined
|
|
58
|
-
*/
|
|
59
|
-
maxWidth?: string;
|
|
60
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An enumeration of the different types of notifications that can be displayed.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum CpsNotificationType {
|
|
5
|
-
SUCCESS = "success",
|
|
6
|
-
ERROR = "error",
|
|
7
|
-
WARNING = "warning",
|
|
8
|
-
INFO = "info"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Defines data type for the notification data.
|
|
12
|
-
*/
|
|
13
|
-
export interface CpsNotificationData {
|
|
14
|
-
/**
|
|
15
|
-
* Message to be displayed in the notification.
|
|
16
|
-
*/
|
|
17
|
-
message?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Details to be displayed in the notification.
|
|
20
|
-
*/
|
|
21
|
-
details?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Type of the notification, options are "warning", "success", "error" or "info".
|
|
24
|
-
*/
|
|
25
|
-
type?: CpsNotificationType;
|
|
26
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export * from './lib/components/cps-icon/cps-icon.component';
|
|
2
|
-
export * from './lib/components/cps-input/cps-input.component';
|
|
3
|
-
export * from './lib/components/cps-select/cps-select.component';
|
|
4
|
-
export * from './lib/components/cps-tree-select/cps-tree-select.component';
|
|
5
|
-
export * from './lib/components/cps-autocomplete/cps-autocomplete.component';
|
|
6
|
-
export * from './lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component';
|
|
7
|
-
export * from './lib/components/cps-info-circle/cps-info-circle.component';
|
|
8
|
-
export * from './lib/components/cps-button/cps-button.component';
|
|
9
|
-
export * from './lib/components/cps-checkbox/cps-checkbox.component';
|
|
10
|
-
export * from './lib/components/cps-radio-group/cps-radio/cps-radio.component';
|
|
11
|
-
export * from './lib/components/cps-radio-group/cps-radio-group.component';
|
|
12
|
-
export * from './lib/components/cps-table/cps-table.component';
|
|
13
|
-
export * from './lib/components/cps-table/directives/cps-table-column-sortable.directive';
|
|
14
|
-
export * from './lib/components/cps-table/directives/cps-table-column-filter.directive';
|
|
15
|
-
export * from './lib/components/cps-table/directives/cps-table-column-resizable.directive';
|
|
16
|
-
export * from './lib/components/cps-table/directives/cps-table-header-selectable.directive';
|
|
17
|
-
export * from './lib/components/cps-table/directives/cps-table-row-selectable.directive';
|
|
18
|
-
export * from './lib/components/cps-table/cps-column-filter-types';
|
|
19
|
-
export * from './lib/components/cps-table/pipes/cps-table-detect-filter-type.pipe';
|
|
20
|
-
export * from './lib/components/cps-tree-table/cps-tree-table.component';
|
|
21
|
-
export * from './lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive';
|
|
22
|
-
export * from './lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive';
|
|
23
|
-
export * from './lib/components/cps-tree-table/directives/cps-tree-table-column-resizable.directive';
|
|
24
|
-
export * from './lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive';
|
|
25
|
-
export * from './lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive';
|
|
26
|
-
export * from './lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive';
|
|
27
|
-
export * from './lib/components/cps-tree-table/pipes/cps-tree-table-detect-filter-type.pipe';
|
|
28
|
-
export * from './lib/components/cps-tag/cps-tag.component';
|
|
29
|
-
export * from './lib/components/cps-chip/cps-chip.component';
|
|
30
|
-
export * from './lib/components/cps-menu/cps-menu.component';
|
|
31
|
-
export * from './lib/components/cps-paginator/cps-paginator.component';
|
|
32
|
-
export * from './lib/components/cps-paginator/pipes/cps-paginate.pipe';
|
|
33
|
-
export * from './lib/components/cps-loader/cps-loader.component';
|
|
34
|
-
export * from './lib/components/cps-expansion-panel/cps-expansion-panel.component';
|
|
35
|
-
export * from './lib/components/cps-progress-circular/cps-progress-circular.component';
|
|
36
|
-
export * from './lib/components/cps-progress-linear/cps-progress-linear.component';
|
|
37
|
-
export * from './lib/components/cps-datepicker/cps-datepicker.component';
|
|
38
|
-
export * from './lib/components/cps-sidebar-menu/cps-sidebar-menu.component';
|
|
39
|
-
export * from './lib/components/cps-textarea/cps-textarea.component';
|
|
40
|
-
export * from './lib/components/cps-button-toggle/cps-button-toggle.component';
|
|
41
|
-
export * from './lib/components/cps-tab-group/cps-tab-group.component';
|
|
42
|
-
export * from './lib/components/cps-tab-group/cps-tab/cps-tab.component';
|
|
43
|
-
export * from './lib/components/cps-timepicker/cps-timepicker.component';
|
|
44
|
-
export * from './lib/components/cps-file-upload/cps-file-upload.component';
|
|
45
|
-
export * from './lib/components/cps-scheduler/cps-scheduler.component';
|
|
46
|
-
export * from './lib/components/cps-switch/cps-switch.component';
|
|
47
|
-
export * from './lib/components/cps-divider/cps-divider.component';
|
|
48
|
-
export * from './lib/directives/cps-tooltip/cps-tooltip.directive';
|
|
49
|
-
export * from './lib/services/cps-dialog/cps-dialog.service';
|
|
50
|
-
export * from './lib/services/cps-dialog/utils/cps-dialog-config';
|
|
51
|
-
export * from './lib/services/cps-dialog/utils/cps-dialog-ref';
|
|
52
|
-
export * from './lib/services/cps-notification/cps-notification.service';
|
|
53
|
-
export * from './lib/services/cps-notification/utils/cps-notification-config';
|
|
54
|
-
export * from './lib/utils/colors-utils';
|