cps-ui-kit 0.140.0 → 0.141.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-autocomplete/cps-autocomplete.component.mjs +137 -4
- package/esm2020/lib/components/cps-button/cps-button.component.mjs +55 -2
- package/esm2020/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +63 -2
- package/esm2020/lib/components/cps-checkbox/cps-checkbox.component.mjs +50 -1
- package/esm2020/lib/components/cps-chip/cps-chip.component.mjs +34 -1
- package/esm2020/lib/components/cps-datepicker/cps-datepicker.component.mjs +78 -1
- package/esm2020/lib/components/cps-expansion-panel/cps-expansion-panel.component.mjs +51 -1
- package/esm2020/lib/components/cps-icon/cps-icon.component.mjs +17 -1
- package/esm2020/lib/components/cps-info-circle/cps-info-circle.component.mjs +29 -1
- package/esm2020/lib/components/cps-input/cps-input.component.mjs +131 -1
- package/esm2020/lib/components/cps-loader/cps-loader.component.mjs +21 -1
- package/esm2020/lib/components/cps-menu/cps-menu.component.mjs +58 -2
- package/esm2020/lib/components/cps-paginator/cps-paginator.component.mjs +38 -1
- package/esm2020/lib/components/cps-paginator/pipes/cps-paginate.pipe.mjs +5 -1
- package/esm2020/lib/components/cps-progress-circular/cps-progress-circular.component.mjs +17 -1
- package/esm2020/lib/components/cps-progress-linear/cps-progress-linear.component.mjs +29 -1
- package/esm2020/lib/components/cps-radio-group/cps-radio/cps-radio.component.mjs +5 -1
- package/esm2020/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.mjs +18 -1
- package/esm2020/lib/components/cps-radio-group/cps-radio-group.component.mjs +50 -1
- package/esm2020/lib/components/cps-select/cps-select.component.mjs +137 -4
- package/esm2020/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.mjs +21 -1
- package/esm2020/lib/components/cps-tab-group/cps-tab/cps-tab.component.mjs +41 -1
- package/esm2020/lib/components/cps-tab-group/cps-tab-group.component.mjs +32 -2
- package/esm2020/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.mjs +67 -3
- package/esm2020/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.mjs +31 -3
- package/esm2020/lib/components/cps-table/components/internal/table-row-menu/table-row-menu.component.mjs +51 -0
- package/esm2020/lib/components/cps-table/cps-table.component.mjs +312 -8
- package/esm2020/lib/components/cps-table/directives/cps-table-column-filter.directive.mjs +67 -3
- package/esm2020/lib/components/cps-table/directives/cps-table-column-sortable.directive.mjs +9 -1
- package/esm2020/lib/components/cps-table/directives/cps-table-header-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-table/directives/cps-table-row-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-tag/cps-tag.component.mjs +35 -2
- package/esm2020/lib/components/cps-textarea/cps-textarea.component.mjs +101 -1
- package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +17 -1
- package/esm2020/lib/components/cps-tree-select/cps-tree-select.component.mjs +13 -1
- package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +314 -7
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.mjs +63 -3
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.mjs +9 -1
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.mjs +5 -1
- package/esm2020/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.mjs +5 -1
- package/esm2020/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.mjs +118 -1
- package/esm2020/lib/directives/cps-tooltip.directive.mjs +37 -1
- package/esm2020/lib/services/cps-dialog/cps-dialog.service.mjs +2 -2
- package/fesm2015/cps-ui-kit.mjs +2312 -37
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +2312 -37
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +133 -0
- package/lib/components/cps-button/cps-button.component.d.ts +53 -0
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +61 -0
- package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +49 -0
- package/lib/components/cps-chip/cps-chip.component.d.ts +33 -0
- package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +85 -0
- package/lib/components/cps-expansion-panel/cps-expansion-panel.component.d.ts +50 -0
- package/lib/components/cps-icon/cps-icon.component.d.ts +16 -0
- package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +28 -0
- package/lib/components/cps-input/cps-input.component.d.ts +130 -0
- package/lib/components/cps-loader/cps-loader.component.d.ts +20 -0
- package/lib/components/cps-menu/cps-menu.component.d.ts +56 -0
- package/lib/components/cps-paginator/cps-paginator.component.d.ts +37 -0
- package/lib/components/cps-paginator/pipes/cps-paginate.pipe.d.ts +4 -0
- package/lib/components/cps-progress-circular/cps-progress-circular.component.d.ts +16 -0
- package/lib/components/cps-progress-linear/cps-progress-linear.component.d.ts +28 -0
- package/lib/components/cps-radio-group/cps-radio/cps-radio.component.d.ts +8 -0
- package/lib/components/cps-radio-group/cps-radio-button/cps-radio-button.component.d.ts +21 -0
- package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +49 -0
- package/lib/components/cps-select/cps-select.component.d.ts +133 -0
- package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +21 -1
- package/lib/components/cps-tab-group/cps-tab/cps-tab.component.d.ts +40 -0
- package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +30 -0
- package/lib/components/cps-table/components/internal/table-column-filter/table-column-filter.component.d.ts +68 -0
- package/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.d.ts +36 -0
- package/lib/components/cps-table/{table-row-menu → components/internal/table-row-menu}/table-row-menu.component.d.ts +15 -1
- package/lib/components/cps-table/cps-table.component.d.ts +304 -0
- package/lib/components/cps-table/directives/cps-table-column-filter.directive.d.ts +68 -0
- package/lib/components/cps-table/directives/cps-table-column-sortable.directive.d.ts +8 -0
- package/lib/components/cps-table/directives/cps-table-header-selectable.directive.d.ts +4 -0
- package/lib/components/cps-table/directives/cps-table-row-selectable.directive.d.ts +8 -0
- package/lib/components/cps-tag/cps-tag.component.d.ts +33 -0
- package/lib/components/cps-textarea/cps-textarea.component.d.ts +100 -0
- package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +16 -0
- package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +12 -0
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +307 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-filter.directive.d.ts +64 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-column-sortable.directive.d.ts +8 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-header-selectable.directive.d.ts +4 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-selectable.directive.d.ts +8 -0
- package/lib/components/cps-tree-table/directives/cps-tree-table-row-toggler.directive.d.ts +8 -0
- package/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts +117 -0
- package/lib/directives/cps-tooltip.directive.d.ts +40 -0
- package/lib/services/cps-dialog/cps-dialog.service.d.ts +1 -1
- package/package.json +1 -1
- package/esm2020/lib/components/cps-table/table-row-menu/table-row-menu.component.mjs +0 -37
|
@@ -4,40 +4,170 @@ import { IconType, iconSizeType } from '../cps-icon/cps-icon.component';
|
|
|
4
4
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export type CpsInputAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
7
|
+
/**
|
|
8
|
+
* CpsInputComponent is used to enter values in a certain formats such as numeric, text or password.
|
|
9
|
+
* @group Components
|
|
10
|
+
*/
|
|
7
11
|
export declare class CpsInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
8
12
|
private _control;
|
|
9
13
|
elementRef: ElementRef<HTMLElement>;
|
|
10
14
|
private cdRef;
|
|
15
|
+
/**
|
|
16
|
+
* Label of the input element.
|
|
17
|
+
* @group Props
|
|
18
|
+
*/
|
|
11
19
|
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Bottom hint text for the input field.
|
|
22
|
+
* @group Props
|
|
23
|
+
*/
|
|
12
24
|
hint: string;
|
|
25
|
+
/**
|
|
26
|
+
* Placeholder text for the input field.
|
|
27
|
+
* @group Props
|
|
28
|
+
*/
|
|
13
29
|
placeholder: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether input is disabled.
|
|
32
|
+
* @group Props
|
|
33
|
+
*/
|
|
14
34
|
disabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether input is readonly.
|
|
37
|
+
* @group Props
|
|
38
|
+
*/
|
|
15
39
|
readonly: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Width of the input field, of type number denoting pixels or string.
|
|
42
|
+
* @group Props
|
|
43
|
+
*/
|
|
16
44
|
width: number | string;
|
|
45
|
+
/**
|
|
46
|
+
* Type of the input of type 'text', 'number' or 'password'.
|
|
47
|
+
* @group Props
|
|
48
|
+
*/
|
|
17
49
|
type: 'text' | 'number' | 'password';
|
|
50
|
+
/**
|
|
51
|
+
* When enabled, a loading bar is displayed.
|
|
52
|
+
* @group Props
|
|
53
|
+
*/
|
|
18
54
|
loading: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* When enabled, a clear icon is displayed to clear the value.
|
|
57
|
+
* @group Props
|
|
58
|
+
*/
|
|
19
59
|
clearable: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Icon before input value.
|
|
62
|
+
* @group Props
|
|
63
|
+
*/
|
|
20
64
|
prefixIcon: IconType;
|
|
65
|
+
/**
|
|
66
|
+
* When enabled, prefixIcon is clickable.
|
|
67
|
+
* @group Props
|
|
68
|
+
*/
|
|
21
69
|
prefixIconClickable: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Size of icon before input value, of type number or string or it can be a value 'fill', 'xsmall', 'small', 'normal' or 'large'.
|
|
72
|
+
* @group Props
|
|
73
|
+
*/
|
|
22
74
|
prefixIconSize: iconSizeType;
|
|
75
|
+
/**
|
|
76
|
+
* Text before input value.
|
|
77
|
+
* @group Props
|
|
78
|
+
*/
|
|
23
79
|
prefixText: string;
|
|
80
|
+
/**
|
|
81
|
+
* Hides hint and validation errors.
|
|
82
|
+
* @group Props
|
|
83
|
+
*/
|
|
24
84
|
hideDetails: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the component should have persistent clear icon.
|
|
87
|
+
* @group Props
|
|
88
|
+
*/
|
|
25
89
|
persistentClear: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Error message.
|
|
92
|
+
* @group Props
|
|
93
|
+
*/
|
|
26
94
|
error: string;
|
|
95
|
+
/**
|
|
96
|
+
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
97
|
+
* @group Props
|
|
98
|
+
*/
|
|
27
99
|
infoTooltip: string;
|
|
100
|
+
/**
|
|
101
|
+
* InfoTooltip class for styling.
|
|
102
|
+
* @group Props
|
|
103
|
+
*/
|
|
28
104
|
infoTooltipClass: string;
|
|
105
|
+
/**
|
|
106
|
+
* Max width of infoTooltip, of type number denoting pixels or string.
|
|
107
|
+
* @group Props
|
|
108
|
+
*/
|
|
29
109
|
infoTooltipMaxWidth: number | string;
|
|
110
|
+
/**
|
|
111
|
+
* Whether the infoTooltip is persistent.
|
|
112
|
+
* @group Props
|
|
113
|
+
*/
|
|
30
114
|
infoTooltipPersistent: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
|
|
117
|
+
* @group Props
|
|
118
|
+
*/
|
|
31
119
|
infoTooltipPosition: CpsTooltipPosition;
|
|
120
|
+
/**
|
|
121
|
+
* Styling appearance of input field, it can be "outlined" or "underlined" or "borderless".
|
|
122
|
+
* @group Props
|
|
123
|
+
*/
|
|
32
124
|
appearance: CpsInputAppearanceType;
|
|
125
|
+
/**
|
|
126
|
+
* Readonly value to display inside of input field.
|
|
127
|
+
* @group Props
|
|
128
|
+
*/
|
|
33
129
|
valueToDisplay: string;
|
|
130
|
+
/**
|
|
131
|
+
* Value of the input.
|
|
132
|
+
* @group Props
|
|
133
|
+
*/
|
|
34
134
|
set value(value: string);
|
|
35
135
|
get value(): string;
|
|
136
|
+
/**
|
|
137
|
+
* Callback to invoke on value change.
|
|
138
|
+
* @param {string} string - value changed.
|
|
139
|
+
* @group Emits
|
|
140
|
+
*/
|
|
36
141
|
valueChanged: EventEmitter<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Callback to invoke when the component receives focus.
|
|
144
|
+
* @param {any}
|
|
145
|
+
* @group Emits
|
|
146
|
+
*/
|
|
37
147
|
focused: EventEmitter<any>;
|
|
148
|
+
/**
|
|
149
|
+
* Callback to invoke when the prefix icon is clicked.
|
|
150
|
+
* @param {any}
|
|
151
|
+
* @group Emits
|
|
152
|
+
*/
|
|
38
153
|
prefixIconClicked: EventEmitter<any>;
|
|
154
|
+
/**
|
|
155
|
+
* Callback to invoke when the component loses focus.
|
|
156
|
+
* @param {any}
|
|
157
|
+
* @group Emits
|
|
158
|
+
*/
|
|
39
159
|
blurred: EventEmitter<any>;
|
|
160
|
+
/**
|
|
161
|
+
* Callback to invoke when x icon is clicked.
|
|
162
|
+
* @param {any}
|
|
163
|
+
* @group Emits
|
|
164
|
+
*/
|
|
40
165
|
cleared: EventEmitter<any>;
|
|
166
|
+
/**
|
|
167
|
+
* Callback to invoke when enter is clicked.
|
|
168
|
+
* @param {any}
|
|
169
|
+
* @group Emits
|
|
170
|
+
*/
|
|
41
171
|
enterClicked: EventEmitter<any>;
|
|
42
172
|
prefixTextSpan: ElementRef | undefined;
|
|
43
173
|
currentType: string;
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* CpsLoaderComponent is a fetch data indicator.
|
|
5
|
+
* @group Components
|
|
6
|
+
*/
|
|
3
7
|
export declare class CpsLoaderComponent implements OnInit {
|
|
8
|
+
/**
|
|
9
|
+
* Option for loader component to take up the whole screen.
|
|
10
|
+
* @group Props
|
|
11
|
+
*/
|
|
4
12
|
fullScreen: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Option to control the transparency of the loader component, of type number or string.
|
|
15
|
+
* @group Props
|
|
16
|
+
*/
|
|
5
17
|
opacity: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* Color of the label.
|
|
20
|
+
* @group Props
|
|
21
|
+
*/
|
|
6
22
|
labelColor: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show 'Loading...' label.
|
|
25
|
+
* @group Props
|
|
26
|
+
*/
|
|
7
27
|
showLabel: boolean;
|
|
8
28
|
backgroundColor: string;
|
|
9
29
|
ngOnInit(): void;
|
|
@@ -16,6 +16,10 @@ export type CpsMenuItem = {
|
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
};
|
|
18
18
|
export type CpsMenuAttachPosition = 'tr' | 'br' | 'tl' | 'bl' | 'default';
|
|
19
|
+
/**
|
|
20
|
+
* CpsMenuComponent is a popup element, that contains menu items or arbitrary content.
|
|
21
|
+
* @group Components
|
|
22
|
+
*/
|
|
19
23
|
export declare class CpsMenuComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
20
24
|
private document;
|
|
21
25
|
private platformId;
|
|
@@ -25,18 +29,70 @@ export declare class CpsMenuComponent implements OnInit, AfterViewInit, OnDestro
|
|
|
25
29
|
private zone;
|
|
26
30
|
config: PrimeNGConfig;
|
|
27
31
|
overlayService: OverlayService;
|
|
32
|
+
/**
|
|
33
|
+
* Header title of the menu.
|
|
34
|
+
* @group Props
|
|
35
|
+
*/
|
|
28
36
|
header: string;
|
|
37
|
+
/**
|
|
38
|
+
* An array of menu items.
|
|
39
|
+
* @group Props
|
|
40
|
+
*/
|
|
29
41
|
items: CpsMenuItem[];
|
|
42
|
+
/**
|
|
43
|
+
* Whether to include top pointing arrow on the menu.
|
|
44
|
+
* @group Props
|
|
45
|
+
*/
|
|
30
46
|
withArrow: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Menu with prepared-colored items, without header and items description.
|
|
49
|
+
* @group Props
|
|
50
|
+
*/
|
|
31
51
|
compressed: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the menu should show on target element focus.
|
|
54
|
+
* @group Props
|
|
55
|
+
*/
|
|
32
56
|
focusOnShow: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the menu should be persistent.
|
|
59
|
+
* @group Props
|
|
60
|
+
*/
|
|
33
61
|
persistent: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Styling class of the menu container.
|
|
64
|
+
* @group Props
|
|
65
|
+
*/
|
|
34
66
|
containerClass: string;
|
|
67
|
+
/**
|
|
68
|
+
* Transition options of the show animation.
|
|
69
|
+
* @group Props
|
|
70
|
+
*/
|
|
35
71
|
showTransitionOptions: string;
|
|
72
|
+
/**
|
|
73
|
+
* Transition options of the hide animation.
|
|
74
|
+
* @group Props
|
|
75
|
+
*/
|
|
36
76
|
hideTransitionOptions: string;
|
|
77
|
+
/**
|
|
78
|
+
* Callback to invoke when menu is shown.
|
|
79
|
+
* @group Emits
|
|
80
|
+
*/
|
|
37
81
|
menuShown: EventEmitter<any>;
|
|
82
|
+
/**
|
|
83
|
+
* Callback to invoke when menu is hidden.
|
|
84
|
+
* @group Emits
|
|
85
|
+
*/
|
|
38
86
|
menuHidden: EventEmitter<any>;
|
|
87
|
+
/**
|
|
88
|
+
* Callback to invoke before menu is hidden.
|
|
89
|
+
* @group Emits
|
|
90
|
+
*/
|
|
39
91
|
beforeMenuHidden: EventEmitter<any>;
|
|
92
|
+
/**
|
|
93
|
+
* Callback to invoke when content is clicked.
|
|
94
|
+
* @group Emits
|
|
95
|
+
*/
|
|
40
96
|
contentClicked: EventEmitter<any>;
|
|
41
97
|
withIcons: boolean;
|
|
42
98
|
autoZIndex: boolean;
|
|
@@ -1,14 +1,51 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Paginator } from 'primeng/paginator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* CpsPaginatorComponent is a generic component to display content in paged format.
|
|
6
|
+
* @group Components
|
|
7
|
+
*/
|
|
4
8
|
export declare class CpsPaginatorComponent implements OnInit {
|
|
9
|
+
/**
|
|
10
|
+
* Zero-relative number of the first row to be displayed.
|
|
11
|
+
* @group Props
|
|
12
|
+
*/
|
|
5
13
|
first: number;
|
|
14
|
+
/**
|
|
15
|
+
* Rows count to display per page.
|
|
16
|
+
* @group Props
|
|
17
|
+
*/
|
|
6
18
|
rows: number;
|
|
19
|
+
/**
|
|
20
|
+
* Number of total records.
|
|
21
|
+
* @group Props
|
|
22
|
+
*/
|
|
7
23
|
totalRecords: number;
|
|
24
|
+
/**
|
|
25
|
+
* Array of integer values to display inside rows per page dropdown.
|
|
26
|
+
* @group Props
|
|
27
|
+
*/
|
|
8
28
|
rowsPerPageOptions: number[];
|
|
29
|
+
/**
|
|
30
|
+
* Whether to show it even there is only one page.
|
|
31
|
+
* @group Props
|
|
32
|
+
*/
|
|
9
33
|
alwaysShow: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Color of paginator background.
|
|
36
|
+
* @group Props
|
|
37
|
+
*/
|
|
10
38
|
backgroundColor: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to reset page index when the number of rows per page changes.
|
|
41
|
+
* @group Props
|
|
42
|
+
*/
|
|
11
43
|
resetPageOnRowsChange: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Callback to invoke when page changes, the event object contains information about the new state.
|
|
46
|
+
* @param {any} any - page changed.
|
|
47
|
+
* @group Emits
|
|
48
|
+
*/
|
|
12
49
|
pageChanged: EventEmitter<any>;
|
|
13
50
|
paginator: Paginator;
|
|
14
51
|
rowOptions: {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The CpsPaginatePipe is a pipe designed to provide a set of items in batches, taking into account specified pagination parameters.
|
|
5
|
+
* @group Pipes
|
|
6
|
+
*/
|
|
3
7
|
export declare class CpsPaginatePipe implements PipeTransform {
|
|
4
8
|
transform(items: any[], config: {
|
|
5
9
|
first: number;
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* CpsProgressCircularComponent is a process status indicator in a form of a spinner.
|
|
5
|
+
* @group Components
|
|
6
|
+
*/
|
|
3
7
|
export declare class CpsProgressCircularComponent implements OnInit {
|
|
8
|
+
/**
|
|
9
|
+
* Diameter of the progress bar, of type number denoting pixels or string.
|
|
10
|
+
* @group Props
|
|
11
|
+
*/
|
|
4
12
|
diameter: number | string;
|
|
13
|
+
/**
|
|
14
|
+
* Thickness of the progress bar, of type number denoting pixels or string.
|
|
15
|
+
* @group Props
|
|
16
|
+
*/
|
|
5
17
|
strokeWidth: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* Color of the progress bar.
|
|
20
|
+
* @group Props
|
|
21
|
+
*/
|
|
6
22
|
color: string;
|
|
7
23
|
ngOnInit(): void;
|
|
8
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsProgressCircularComponent, never>;
|
|
@@ -1,11 +1,39 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* CpsProgressLinearComponent is a process status indicator of a rectangular form.
|
|
5
|
+
* @group Components
|
|
6
|
+
*/
|
|
3
7
|
export declare class CpsProgressLinearComponent implements OnInit {
|
|
8
|
+
/**
|
|
9
|
+
* Width of the progress bar, of type number denoting pixels or string.
|
|
10
|
+
* @group Props
|
|
11
|
+
*/
|
|
4
12
|
width: number | string;
|
|
13
|
+
/**
|
|
14
|
+
* Height of the progress bar, of type number denoting pixels or string.
|
|
15
|
+
* @group Props
|
|
16
|
+
*/
|
|
5
17
|
height: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* Color of the progress bar.
|
|
20
|
+
* @group Props
|
|
21
|
+
*/
|
|
6
22
|
color: string;
|
|
23
|
+
/**
|
|
24
|
+
* Background color of the progress bar.
|
|
25
|
+
* @group Props
|
|
26
|
+
*/
|
|
7
27
|
bgColor: string;
|
|
28
|
+
/**
|
|
29
|
+
* Option to control the transparency of the progress bar, of type number or string.
|
|
30
|
+
* @group Props
|
|
31
|
+
*/
|
|
8
32
|
opacity: number | string;
|
|
33
|
+
/**
|
|
34
|
+
* Border radius of the progress bar, of type number or string.
|
|
35
|
+
* @group Props
|
|
36
|
+
*/
|
|
9
37
|
radius: number | string;
|
|
10
38
|
ngOnInit(): void;
|
|
11
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsProgressLinearComponent, never>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { CpsRadioGroupComponent, CpsRadioOption } from '../cps-radio-group.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* CpsRadioComponent is a radio button with arbitrary content.
|
|
6
|
+
* @group Components
|
|
7
|
+
*/
|
|
4
8
|
export declare class CpsRadioComponent implements OnInit {
|
|
9
|
+
/**
|
|
10
|
+
* An option.
|
|
11
|
+
* @group Props
|
|
12
|
+
*/
|
|
5
13
|
option: CpsRadioOption;
|
|
6
14
|
radioGroup?: CpsRadioGroupComponent;
|
|
7
15
|
groupDisabled: boolean;
|
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { CpsRadioOption } from '../cps-radio-group.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* CpsRadioButtonComponent is an internal radio button component.
|
|
6
|
+
* @group Components
|
|
7
|
+
*/
|
|
4
8
|
export declare class CpsRadioButtonComponent {
|
|
5
9
|
private _uniqueId;
|
|
10
|
+
/**
|
|
11
|
+
* An option.
|
|
12
|
+
* @group Props
|
|
13
|
+
*/
|
|
6
14
|
option: CpsRadioOption;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the radio button is checked.
|
|
17
|
+
* @group Props
|
|
18
|
+
*/
|
|
7
19
|
checked: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the radio button is disabled.
|
|
22
|
+
* @group Props
|
|
23
|
+
*/
|
|
8
24
|
groupDisabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Callback to invoke on value update.
|
|
27
|
+
* @param {Event} event - Custom update value event.
|
|
28
|
+
* @group Emits
|
|
29
|
+
*/
|
|
9
30
|
updateValueEvent: EventEmitter<Event>;
|
|
10
31
|
get inputId(): string;
|
|
11
32
|
updateValue(event: Event): void;
|
|
@@ -9,19 +9,68 @@ export type CpsRadioOption = {
|
|
|
9
9
|
tooltip?: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const CPS_RADIO_GROUP: InjectionToken<CpsRadioGroupComponent>;
|
|
12
|
+
/**
|
|
13
|
+
* CpsRadioGroupComponent is a radio buttons group.
|
|
14
|
+
* @group Components
|
|
15
|
+
*/
|
|
12
16
|
export declare class CpsRadioGroupComponent implements ControlValueAccessor {
|
|
13
17
|
private _control;
|
|
18
|
+
/**
|
|
19
|
+
* An array of options.
|
|
20
|
+
* @group Props
|
|
21
|
+
*/
|
|
14
22
|
options: CpsRadioOption[];
|
|
23
|
+
/**
|
|
24
|
+
* Label of the radio group.
|
|
25
|
+
* @group Props
|
|
26
|
+
*/
|
|
15
27
|
groupLabel: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the radio group should be vertical.
|
|
30
|
+
* @group Props
|
|
31
|
+
*/
|
|
16
32
|
vertical: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the radio group is disabled.
|
|
35
|
+
* @group Props
|
|
36
|
+
*/
|
|
17
37
|
disabled: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
40
|
+
* @group Props
|
|
41
|
+
*/
|
|
18
42
|
infoTooltip: string;
|
|
43
|
+
/**
|
|
44
|
+
* InfoTooltip class for styling.
|
|
45
|
+
* @group Props
|
|
46
|
+
*/
|
|
19
47
|
infoTooltipClass: string;
|
|
48
|
+
/**
|
|
49
|
+
* Size of infoTooltip, of type number denoting pixels or string.
|
|
50
|
+
* @group Props
|
|
51
|
+
*/
|
|
20
52
|
infoTooltipMaxWidth: number | string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the infoTooltip is persistent.
|
|
55
|
+
* @group Props
|
|
56
|
+
*/
|
|
21
57
|
infoTooltipPersistent: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Position of infoTooltip, it can be "top", "bottom", "left" or "right".
|
|
60
|
+
* @group Props
|
|
61
|
+
*/
|
|
22
62
|
infoTooltipPosition: CpsTooltipPosition;
|
|
63
|
+
/**
|
|
64
|
+
* Value of the radio group.
|
|
65
|
+
* @group Props
|
|
66
|
+
*/
|
|
23
67
|
set value(value: any);
|
|
24
68
|
get value(): any;
|
|
69
|
+
/**
|
|
70
|
+
* Callback to invoke on value change.
|
|
71
|
+
* @param {boolean} boolean - value changed.
|
|
72
|
+
* @group Emits
|
|
73
|
+
*/
|
|
25
74
|
valueChanged: EventEmitter<boolean>;
|
|
26
75
|
private _value;
|
|
27
76
|
constructor(_control: NgControl);
|
|
@@ -6,41 +6,174 @@ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
|
|
|
6
6
|
import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export type CpsSelectAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
9
|
+
/**
|
|
10
|
+
* CpsSelectComponent is used to select items from a collection.
|
|
11
|
+
* @group Components
|
|
12
|
+
*/
|
|
9
13
|
export declare class CpsSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
10
14
|
private _control;
|
|
15
|
+
/**
|
|
16
|
+
* The label of the select component.
|
|
17
|
+
* @group Props
|
|
18
|
+
*/
|
|
11
19
|
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Placeholder text for the select component.
|
|
22
|
+
* @group Props
|
|
23
|
+
*/
|
|
12
24
|
placeholder: string;
|
|
25
|
+
/**
|
|
26
|
+
* Bottom hint text for the select component.
|
|
27
|
+
* @group Props
|
|
28
|
+
*/
|
|
13
29
|
hint: string;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the object directly rather than the value specified with optionValue.
|
|
32
|
+
* @group Props
|
|
33
|
+
*/
|
|
14
34
|
returnObject: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies if multiple values can be selected.
|
|
37
|
+
* @group Props
|
|
38
|
+
*/
|
|
15
39
|
multiple: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies whether the component is disabled.
|
|
42
|
+
* @group Props
|
|
43
|
+
*/
|
|
16
44
|
disabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Width of the select component, of type number denoting pixels or string.
|
|
47
|
+
* @group Props
|
|
48
|
+
*/
|
|
17
49
|
width: number | string;
|
|
50
|
+
/**
|
|
51
|
+
* Option for selecting all elements. Doesn't work with virtual scroll.
|
|
52
|
+
* @group Props
|
|
53
|
+
*/
|
|
18
54
|
selectAll: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* When selecting elements, they will appear in a form of a chip.
|
|
57
|
+
* @group Props
|
|
58
|
+
*/
|
|
19
59
|
chips: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the chips can be directly removed.
|
|
62
|
+
* @group Props
|
|
63
|
+
*/
|
|
20
64
|
closableChips: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* When enabled, a clear icon is displayed to clear the value.
|
|
67
|
+
* @group Props
|
|
68
|
+
*/
|
|
21
69
|
clearable: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the dropdown list should open on clear.
|
|
72
|
+
* @group Props
|
|
73
|
+
*/
|
|
22
74
|
openOnClear: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* An array of options.
|
|
77
|
+
* @group Props
|
|
78
|
+
*/
|
|
23
79
|
options: any[];
|
|
80
|
+
/**
|
|
81
|
+
* Name of the label field of an option.
|
|
82
|
+
* @group Props
|
|
83
|
+
*/
|
|
24
84
|
optionLabel: string;
|
|
85
|
+
/**
|
|
86
|
+
* Name of the value field of an option. Needed only if returnObject prop is false.
|
|
87
|
+
* @group Props
|
|
88
|
+
*/
|
|
25
89
|
optionValue: string;
|
|
90
|
+
/**
|
|
91
|
+
* Name of the info field of an option, shows the additional information text.
|
|
92
|
+
* @group Props
|
|
93
|
+
*/
|
|
26
94
|
optionInfo: string;
|
|
95
|
+
/**
|
|
96
|
+
* Hides hint and validation errors.
|
|
97
|
+
* @group Props
|
|
98
|
+
*/
|
|
27
99
|
hideDetails: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the component should have persistent clear icon.
|
|
102
|
+
* @group Props
|
|
103
|
+
*/
|
|
28
104
|
persistentClear: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Icon before input value.
|
|
107
|
+
* @group Props
|
|
108
|
+
*/
|
|
29
109
|
prefixIcon: IconType;
|
|
110
|
+
/**
|
|
111
|
+
* Size of icon before input value, of type number or string or value 'fill', 'xsmall', 'small', 'normal' or 'large'.
|
|
112
|
+
* @group Props
|
|
113
|
+
*/
|
|
30
114
|
prefixIconSize: iconSizeType;
|
|
115
|
+
/**
|
|
116
|
+
* When enabled, a loading bar is displayed.
|
|
117
|
+
* @group Props
|
|
118
|
+
*/
|
|
31
119
|
loading: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Whether only the elements within scrollable area should be added into the DOM.
|
|
122
|
+
* @group Props
|
|
123
|
+
*/
|
|
32
124
|
virtualScroll: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Determines how many additional elements to add to the DOM outside of the view.
|
|
127
|
+
* @group Props
|
|
128
|
+
*/
|
|
33
129
|
numToleratedItems: number;
|
|
130
|
+
/**
|
|
131
|
+
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
132
|
+
* @group Props
|
|
133
|
+
*/
|
|
34
134
|
infoTooltip: string;
|
|
135
|
+
/**
|
|
136
|
+
* InfoTooltip class for styling.
|
|
137
|
+
* @group Props
|
|
138
|
+
*/
|
|
35
139
|
infoTooltipClass: string;
|
|
140
|
+
/**
|
|
141
|
+
* Max width of infoTooltip of type number denoting pixels or string.
|
|
142
|
+
* @group Props
|
|
143
|
+
*/
|
|
36
144
|
infoTooltipMaxWidth: number | string;
|
|
145
|
+
/**
|
|
146
|
+
* Whether the infoTooltip is persistent.
|
|
147
|
+
* @group Props
|
|
148
|
+
*/
|
|
37
149
|
infoTooltipPersistent: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
|
|
152
|
+
* @group Props
|
|
153
|
+
*/
|
|
38
154
|
infoTooltipPosition: CpsTooltipPosition;
|
|
155
|
+
/**
|
|
156
|
+
* Class for additional styling of the dropdown list.
|
|
157
|
+
* @group Props
|
|
158
|
+
*/
|
|
39
159
|
optionsClass: string;
|
|
160
|
+
/**
|
|
161
|
+
* Styling appearance of select input, it can be 'outlined', 'underlined' or 'borderless'.
|
|
162
|
+
* @group Props
|
|
163
|
+
*/
|
|
40
164
|
appearance: CpsSelectAppearanceType;
|
|
165
|
+
/**
|
|
166
|
+
* Value of the select component.
|
|
167
|
+
* @group Props
|
|
168
|
+
*/
|
|
41
169
|
_value: any;
|
|
42
170
|
set value(value: any);
|
|
43
171
|
get value(): any;
|
|
172
|
+
/**
|
|
173
|
+
* Callback to invoke on value change.
|
|
174
|
+
* @param {any} any - value changed.
|
|
175
|
+
* @group Emits
|
|
176
|
+
*/
|
|
44
177
|
valueChanged: EventEmitter<any>;
|
|
45
178
|
selectBox: ElementRef;
|
|
46
179
|
selectContainer: ElementRef;
|