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
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cps-ui-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@angular/forms": "^
|
|
5
|
+
"@angular/common": "^20.2.1",
|
|
6
|
+
"@angular/core": "^20.2.1",
|
|
7
|
+
"@angular/forms": "^20.2.1",
|
|
8
8
|
"rxjs": "^7.8.1",
|
|
9
9
|
"zone.js": "^0.15.0",
|
|
10
10
|
"@types/lodash-es": "^4.17.12",
|
|
11
11
|
"lodash-es": "^4.17.21",
|
|
12
|
-
"primeng": "^
|
|
12
|
+
"primeng": "^20.0.1",
|
|
13
|
+
"@primeuix/utils": "^0.6.1",
|
|
14
|
+
"@primeuix/styled": "^0.7.2",
|
|
13
15
|
"@e965/xlsx": "^0.20.3"
|
|
14
16
|
},
|
|
15
17
|
"repository": {
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
"homepage": "https://github.com/AbsaOSS/cps-shared-ui",
|
|
20
22
|
"license": "Apache License 2.0",
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"tslib": "^2.
|
|
24
|
+
"tslib": "^2.8.1"
|
|
23
25
|
},
|
|
24
26
|
"sideEffects": false,
|
|
25
27
|
"module": "fesm2022/cps-ui-kit.mjs",
|
package/styles/styles.scss
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@use './_bootstrap-grid';
|
|
2
|
+
@use './_colors.scss';
|
|
3
|
+
@use './_fonts.scss';
|
|
4
|
+
@use './_cps-tooltip-style.scss';
|
|
5
|
+
@use 'primeicons/primeicons.css';
|
|
5
6
|
|
|
6
7
|
*,
|
|
7
8
|
*::before,
|
|
@@ -16,4 +17,4 @@
|
|
|
16
17
|
overflow: scroll;
|
|
17
18
|
position: absolute;
|
|
18
19
|
top: -9999px;
|
|
19
|
-
}
|
|
20
|
+
}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { IconType, iconSizeType } from '../cps-icon/cps-icon.component';
|
|
4
|
-
import { LabelByValuePipe } from '../../pipes/internal/label-by-value.pipe';
|
|
5
|
-
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
6
|
-
import { CpsMenuComponent, CpsMenuHideReason } from '../cps-menu/cps-menu.component';
|
|
7
|
-
import { Scroller } from 'primeng/scroller';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* CpsAutocompleteAppearanceType is used to define the border of the autocomplete input.
|
|
11
|
-
* @group Types
|
|
12
|
-
*/
|
|
13
|
-
export type CpsAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
14
|
-
/**
|
|
15
|
-
* CpsAutocompleteComponent is an input component that provides real-time suggestions when being typed.
|
|
16
|
-
* @group Components
|
|
17
|
-
*/
|
|
18
|
-
export declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
19
|
-
private _control;
|
|
20
|
-
private document;
|
|
21
|
-
private cdRef;
|
|
22
|
-
private _labelByValue;
|
|
23
|
-
/**
|
|
24
|
-
* Label of the autocomplete component.
|
|
25
|
-
* @group Props
|
|
26
|
-
*/
|
|
27
|
-
label: string;
|
|
28
|
-
/**
|
|
29
|
-
* Placeholder text.
|
|
30
|
-
* @group Props
|
|
31
|
-
*/
|
|
32
|
-
placeholder: string;
|
|
33
|
-
/**
|
|
34
|
-
* Bottom hint text.
|
|
35
|
-
* @group Props
|
|
36
|
-
*/
|
|
37
|
-
hint: string;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the object directly rather than the value specified with optionValue.
|
|
40
|
-
* @group Props
|
|
41
|
-
*/
|
|
42
|
-
returnObject: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Specifies if multiple values can be selected.
|
|
45
|
-
* @group Props
|
|
46
|
-
*/
|
|
47
|
-
multiple: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Determines whether autocomplete is disabled.
|
|
50
|
-
* @group Props
|
|
51
|
-
*/
|
|
52
|
-
disabled: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Width of the autocomplete component, a number denoting pixels or a string.
|
|
55
|
-
* @group Props
|
|
56
|
-
*/
|
|
57
|
-
width: number | string;
|
|
58
|
-
/**
|
|
59
|
-
* Option for selecting all elements. Doesn't work with virtual scroll.
|
|
60
|
-
* @group Props
|
|
61
|
-
*/
|
|
62
|
-
selectAll: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Determines whether the chevron icon should be displayed.
|
|
65
|
-
* @group Props
|
|
66
|
-
*/
|
|
67
|
-
showChevron: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Determines whether the options should be filtered by aliases in addition to labels.
|
|
70
|
-
* @group Props
|
|
71
|
-
*/
|
|
72
|
-
withOptionsAliases: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Determines whether the options should be filtered by aliases in addition to labels only when no label match is found. Works only If withOptionsAliases is true.
|
|
75
|
-
* @group Props
|
|
76
|
-
*/
|
|
77
|
-
useOptionsAliasesWhenNoMatch: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Name of the alias field of an option. Needed only if withOptionsAliases is true.
|
|
80
|
-
* @group Props
|
|
81
|
-
*/
|
|
82
|
-
optionAlias: string;
|
|
83
|
-
/**
|
|
84
|
-
* When selecting elements, they will appear in a form of a chip.
|
|
85
|
-
* @group Props
|
|
86
|
-
*/
|
|
87
|
-
chips: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Determines whether the chips can be directly removed.
|
|
90
|
-
* @group Props
|
|
91
|
-
*/
|
|
92
|
-
closableChips: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* When enabled, a clear icon is displayed to clear the value.
|
|
95
|
-
* @group Props
|
|
96
|
-
*/
|
|
97
|
-
clearable: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Determines whether the dropdown list should open on clear.
|
|
100
|
-
* @group Props
|
|
101
|
-
*/
|
|
102
|
-
openOnClear: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* If multiple, determines whether selected options should be ordered according to the initial order of the options.
|
|
105
|
-
* @group Props
|
|
106
|
-
*/
|
|
107
|
-
keepInitialOrder: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Name of the label field of an option.
|
|
110
|
-
* @group Props
|
|
111
|
-
*/
|
|
112
|
-
optionLabel: string;
|
|
113
|
-
/**
|
|
114
|
-
* Name of the value field of an option. Needed only if returnObject prop is false.
|
|
115
|
-
* @group Props
|
|
116
|
-
*/
|
|
117
|
-
optionValue: string;
|
|
118
|
-
/**
|
|
119
|
-
* Name of the info field of an option, shows the additional information text.
|
|
120
|
-
* @group Props
|
|
121
|
-
*/
|
|
122
|
-
optionInfo: string;
|
|
123
|
-
/**
|
|
124
|
-
* Hides hint and validation errors.
|
|
125
|
-
* @group Props
|
|
126
|
-
*/
|
|
127
|
-
hideDetails: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Determines whether the component should have persistent clear icon.
|
|
130
|
-
* @group Props
|
|
131
|
-
*/
|
|
132
|
-
persistentClear: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Icon before input value.
|
|
135
|
-
* @group Props
|
|
136
|
-
*/
|
|
137
|
-
prefixIcon: IconType;
|
|
138
|
-
/**
|
|
139
|
-
* Size of icon before input value.
|
|
140
|
-
* @group Props
|
|
141
|
-
*/
|
|
142
|
-
prefixIconSize: iconSizeType;
|
|
143
|
-
/**
|
|
144
|
-
* When enabled, a loading bar is displayed.
|
|
145
|
-
* @group Props
|
|
146
|
-
*/
|
|
147
|
-
loading: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Text to display when options list is loading.
|
|
150
|
-
* @group Props
|
|
151
|
-
*/
|
|
152
|
-
loadingMessage: string;
|
|
153
|
-
/**
|
|
154
|
-
* Determines whether the loading message should be displayed.
|
|
155
|
-
* @group Props
|
|
156
|
-
*/
|
|
157
|
-
showLoadingMessage: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Text to display when there is no data.
|
|
160
|
-
* @group Props
|
|
161
|
-
*/
|
|
162
|
-
emptyMessage: string;
|
|
163
|
-
/**
|
|
164
|
-
* Determines whether the empty message should be displayed.
|
|
165
|
-
* @group Props
|
|
166
|
-
*/
|
|
167
|
-
showEmptyMessage: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Determines whether only the elements within scrollable area should be added into the DOM.
|
|
170
|
-
* @group Props
|
|
171
|
-
*/
|
|
172
|
-
virtualScroll: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Determines how many additional elements to add to the DOM outside of the view.
|
|
175
|
-
* @group Props
|
|
176
|
-
*/
|
|
177
|
-
numToleratedItems: number;
|
|
178
|
-
/**
|
|
179
|
-
* Externally set error message.
|
|
180
|
-
* @group Props
|
|
181
|
-
*/
|
|
182
|
-
externalError: string;
|
|
183
|
-
/**
|
|
184
|
-
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
185
|
-
* @group Props
|
|
186
|
-
*/
|
|
187
|
-
infoTooltip: string;
|
|
188
|
-
/**
|
|
189
|
-
* Info tooltip class for styling.
|
|
190
|
-
* @group Props
|
|
191
|
-
*/
|
|
192
|
-
infoTooltipClass: string;
|
|
193
|
-
/**
|
|
194
|
-
* Max width of infoTooltip of type number denoting pixels or string.
|
|
195
|
-
* @group Props
|
|
196
|
-
*/
|
|
197
|
-
infoTooltipMaxWidth: number | string;
|
|
198
|
-
/**
|
|
199
|
-
* Determines whether the infoTooltip is persistent.
|
|
200
|
-
* @group Props
|
|
201
|
-
*/
|
|
202
|
-
infoTooltipPersistent: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
|
|
205
|
-
* @group Props
|
|
206
|
-
*/
|
|
207
|
-
infoTooltipPosition: CpsTooltipPosition;
|
|
208
|
-
/**
|
|
209
|
-
* Styling appearance of autocomplete input, it could be 'outlined', 'underlined' or 'borderless'.
|
|
210
|
-
* @group Props
|
|
211
|
-
*/
|
|
212
|
-
appearance: CpsAutocompleteAppearanceType;
|
|
213
|
-
/**
|
|
214
|
-
* Index of empty value in options array. Applicable only if multiple is false.
|
|
215
|
-
* @group Props
|
|
216
|
-
*/
|
|
217
|
-
emptyOptionIndex: number;
|
|
218
|
-
/**
|
|
219
|
-
* Debounce time for inputChanged event.
|
|
220
|
-
* @group Props
|
|
221
|
-
*/
|
|
222
|
-
inputChangeDebounceTime: number;
|
|
223
|
-
/**
|
|
224
|
-
* Determines whether the component is currently validating the selected value asynchronously.
|
|
225
|
-
* @group Props
|
|
226
|
-
*/
|
|
227
|
-
validating: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Value of the autocomplete.
|
|
230
|
-
* @group Props
|
|
231
|
-
*/
|
|
232
|
-
_value: any;
|
|
233
|
-
get value(): any;
|
|
234
|
-
set value(value: any);
|
|
235
|
-
/**
|
|
236
|
-
* An array of options.
|
|
237
|
-
* @group Props
|
|
238
|
-
*/
|
|
239
|
-
set options(opts: any[] | undefined);
|
|
240
|
-
get options(): any[];
|
|
241
|
-
/**
|
|
242
|
-
* Callback to invoke on value change.
|
|
243
|
-
* @param {any} any - value changed.
|
|
244
|
-
* @group Emits
|
|
245
|
-
*/
|
|
246
|
-
valueChanged: EventEmitter<any>;
|
|
247
|
-
/**
|
|
248
|
-
* Callback to invoke on field input change.
|
|
249
|
-
* @param {string} string - input changed.
|
|
250
|
-
* @group Emits
|
|
251
|
-
*/
|
|
252
|
-
inputChanged: EventEmitter<string>;
|
|
253
|
-
/**
|
|
254
|
-
* Callback to invoke when the component receives focus.
|
|
255
|
-
* @param {any}
|
|
256
|
-
* @group Emits
|
|
257
|
-
*/
|
|
258
|
-
focused: EventEmitter<any>;
|
|
259
|
-
/**
|
|
260
|
-
* Callback to invoke when the component loses focus.
|
|
261
|
-
* @param {any}
|
|
262
|
-
* @group Emits
|
|
263
|
-
*/
|
|
264
|
-
blurred: EventEmitter<any>;
|
|
265
|
-
autocompleteBox: ElementRef;
|
|
266
|
-
autocompleteContainer: ElementRef;
|
|
267
|
-
virtualList: Scroller;
|
|
268
|
-
optionsMenu: CpsMenuComponent;
|
|
269
|
-
optionsList: ElementRef;
|
|
270
|
-
autocompleteInput: ElementRef;
|
|
271
|
-
error: string;
|
|
272
|
-
cvtWidth: string;
|
|
273
|
-
isOpened: boolean;
|
|
274
|
-
inputText: string;
|
|
275
|
-
inputTextDebounced: string;
|
|
276
|
-
filteredOptions: any[];
|
|
277
|
-
backspaceClickedOnce: boolean;
|
|
278
|
-
activeSingle: boolean;
|
|
279
|
-
optionHighlightedIndex: number;
|
|
280
|
-
virtualListHeight: number;
|
|
281
|
-
virtualScrollItemSize: number;
|
|
282
|
-
autocompleteBoxWidth: number;
|
|
283
|
-
resizeObserver: ResizeObserver;
|
|
284
|
-
isTimePickerField: boolean;
|
|
285
|
-
private _inputChangeSubject$;
|
|
286
|
-
private _destroy$;
|
|
287
|
-
private _options;
|
|
288
|
-
constructor(_control: NgControl, document: Document, cdRef: ChangeDetectorRef, _labelByValue: LabelByValuePipe);
|
|
289
|
-
ngOnInit(): void;
|
|
290
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
291
|
-
ngAfterViewInit(): void;
|
|
292
|
-
ngOnDestroy(): void;
|
|
293
|
-
select(option: any, byValue: boolean, needClearInput?: boolean, needFocusInput?: boolean): void;
|
|
294
|
-
onOptionClick(option: any): void;
|
|
295
|
-
toggleAll(): void;
|
|
296
|
-
onChange: (event: any) => void;
|
|
297
|
-
onTouched: () => void;
|
|
298
|
-
registerOnChange(fn: any): void;
|
|
299
|
-
registerOnTouched(fn: any): void;
|
|
300
|
-
filterOptions(event: any): void;
|
|
301
|
-
writeValue(value: any): void;
|
|
302
|
-
clear(event?: any): void;
|
|
303
|
-
setDisabledState(disabled: boolean): void;
|
|
304
|
-
onBlur(): void;
|
|
305
|
-
onFocus(): void;
|
|
306
|
-
isActive(): boolean;
|
|
307
|
-
onBeforeOptionsHidden(reason: CpsMenuHideReason): void;
|
|
308
|
-
onBoxClick(): void;
|
|
309
|
-
onContainerKeyDown(event: any): void;
|
|
310
|
-
onInputKeyDown(event: any): void;
|
|
311
|
-
onChevronClick(event: any): void;
|
|
312
|
-
focusInput(): void;
|
|
313
|
-
focus(): void;
|
|
314
|
-
recalcVirtualListHeight(): void;
|
|
315
|
-
isEmptyValue(): boolean;
|
|
316
|
-
clearInput(): void;
|
|
317
|
-
private _getEmptyValue;
|
|
318
|
-
private _toggleOptions;
|
|
319
|
-
private _clickOption;
|
|
320
|
-
private _checkErrors;
|
|
321
|
-
private updateValue;
|
|
322
|
-
private _getValueLabel;
|
|
323
|
-
private _closeAndClear;
|
|
324
|
-
private _getHTMLOptions;
|
|
325
|
-
private _dehighlightOption;
|
|
326
|
-
private _highlightOption;
|
|
327
|
-
private _navigateOptionsByArrows;
|
|
328
|
-
private _confirmInput;
|
|
329
|
-
private _removeLastValue;
|
|
330
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsAutocompleteComponent, [{ optional: true; self: true; }, null, null, null]>;
|
|
331
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsAutocompleteComponent, "cps-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "returnObject": { "alias": "returnObject"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "showChevron": { "alias": "showChevron"; "required": false; }; "withOptionsAliases": { "alias": "withOptionsAliases"; "required": false; }; "useOptionsAliasesWhenNoMatch": { "alias": "useOptionsAliasesWhenNoMatch"; "required": false; }; "optionAlias": { "alias": "optionAlias"; "required": false; }; "chips": { "alias": "chips"; "required": false; }; "closableChips": { "alias": "closableChips"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "openOnClear": { "alias": "openOnClear"; "required": false; }; "keepInitialOrder": { "alias": "keepInitialOrder"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionInfo": { "alias": "optionInfo"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "required": false; }; "persistentClear": { "alias": "persistentClear"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "prefixIconSize": { "alias": "prefixIconSize"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "showLoadingMessage": { "alias": "showLoadingMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "numToleratedItems": { "alias": "numToleratedItems"; "required": false; }; "externalError": { "alias": "externalError"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "emptyOptionIndex": { "alias": "emptyOptionIndex"; "required": false; }; "inputChangeDebounceTime": { "alias": "inputChangeDebounceTime"; "required": false; }; "validating": { "alias": "validating"; "required": false; }; "_value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "valueChanged": "valueChanged"; "inputChanged": "inputChanged"; "focused": "focused"; "blurred": "blurred"; }, never, never, true, never>;
|
|
332
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
-
import { IconType } from '../cps-icon/cps-icon.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* CpsButtonComponent is a button element.
|
|
6
|
-
* @group Components
|
|
7
|
-
*/
|
|
8
|
-
export declare class CpsButtonComponent implements OnChanges {
|
|
9
|
-
private document;
|
|
10
|
-
/**
|
|
11
|
-
* Color of the button.
|
|
12
|
-
* @group Props
|
|
13
|
-
*/
|
|
14
|
-
color: string;
|
|
15
|
-
/**
|
|
16
|
-
* Color of content on the button. Works only with 'solid' type.
|
|
17
|
-
* @group Props
|
|
18
|
-
*/
|
|
19
|
-
contentColor: string;
|
|
20
|
-
/**
|
|
21
|
-
* Border radius of the button, of type number denoting pixels or string.
|
|
22
|
-
* @group Props
|
|
23
|
-
*/
|
|
24
|
-
borderRadius: number | string;
|
|
25
|
-
/**
|
|
26
|
-
* Type of the button in terms of appearance, it can be 'solid' or 'outlined' or 'borderless'.
|
|
27
|
-
* @group Props
|
|
28
|
-
*/
|
|
29
|
-
type: 'solid' | 'outlined' | 'borderless';
|
|
30
|
-
/**
|
|
31
|
-
* Label or text on the button.
|
|
32
|
-
* @group Props
|
|
33
|
-
*/
|
|
34
|
-
label: string;
|
|
35
|
-
/**
|
|
36
|
-
* Name of the icon on the button.
|
|
37
|
-
* @group Props
|
|
38
|
-
*/
|
|
39
|
-
icon: IconType;
|
|
40
|
-
/**
|
|
41
|
-
* Position of the icon on the button, it can be 'before' or 'after'.
|
|
42
|
-
* @group Props
|
|
43
|
-
*/
|
|
44
|
-
iconPosition: 'before' | 'after';
|
|
45
|
-
/**
|
|
46
|
-
* Size on the button, it can be 'xsmall', 'small', 'normal' or 'large'.
|
|
47
|
-
* @group Props
|
|
48
|
-
*/
|
|
49
|
-
size: 'xsmall' | 'small' | 'normal' | 'large';
|
|
50
|
-
/**
|
|
51
|
-
* Width on the button, of type number denoting pixels or string.
|
|
52
|
-
* @group Props
|
|
53
|
-
*/
|
|
54
|
-
width: number | string;
|
|
55
|
-
/**
|
|
56
|
-
* Height on the button, of type number denoting pixels or string.
|
|
57
|
-
* @group Props
|
|
58
|
-
*/
|
|
59
|
-
height: number | string;
|
|
60
|
-
/**
|
|
61
|
-
* Determines whether the button is disabled.
|
|
62
|
-
* @group Props
|
|
63
|
-
*/
|
|
64
|
-
disabled: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* When enabled, a cps-progress-circular bar is displayed.
|
|
67
|
-
* @group Props
|
|
68
|
-
*/
|
|
69
|
-
loading: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Callback to execute when button is clicked.
|
|
72
|
-
* @param {any} any - button clicked.
|
|
73
|
-
* @group Emits
|
|
74
|
-
*/
|
|
75
|
-
clicked: EventEmitter<any>;
|
|
76
|
-
buttonColor: string;
|
|
77
|
-
textColor: string;
|
|
78
|
-
cvtWidth: string;
|
|
79
|
-
cvtHeight: string;
|
|
80
|
-
cvtFontSize: string;
|
|
81
|
-
cvtIconSize: string;
|
|
82
|
-
classesList: string[];
|
|
83
|
-
constructor(document: Document);
|
|
84
|
-
ngOnChanges(): void;
|
|
85
|
-
setClasses(): void;
|
|
86
|
-
onClick(event: Event): void;
|
|
87
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonComponent, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonComponent, "cps-button", never, { "color": { "alias": "color"; "required": false; }; "contentColor": { "alias": "contentColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "size": { "alias": "size"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
89
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* CpsButtonToggleOption is used to define the options of the CpsButtonToggleComponent.
|
|
7
|
-
* @group Types
|
|
8
|
-
*/
|
|
9
|
-
export type CpsButtonToggleOption = {
|
|
10
|
-
value: any;
|
|
11
|
-
label?: string;
|
|
12
|
-
icon?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
tooltip?: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* CpsButtonToggleComponent is used to select values using buttons.
|
|
18
|
-
* @group Components
|
|
19
|
-
*/
|
|
20
|
-
export declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit {
|
|
21
|
-
private _control;
|
|
22
|
-
private document;
|
|
23
|
-
private renderer;
|
|
24
|
-
/**
|
|
25
|
-
* Label of the toggle buttons.
|
|
26
|
-
* @group Props
|
|
27
|
-
*/
|
|
28
|
-
label: string;
|
|
29
|
-
/**
|
|
30
|
-
* An array of options.
|
|
31
|
-
* @group Props
|
|
32
|
-
*/
|
|
33
|
-
options: CpsButtonToggleOption[];
|
|
34
|
-
/**
|
|
35
|
-
* Specifies if multiple values can be selected.
|
|
36
|
-
* @group Props
|
|
37
|
-
*/
|
|
38
|
-
multiple: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies that the component should be disabled.
|
|
41
|
-
* @group Props
|
|
42
|
-
*/
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Determines whether at least one of the options is mandatory.
|
|
46
|
-
* @group Props
|
|
47
|
-
*/
|
|
48
|
-
mandatory: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Determines whether all buttons should have equal widths.
|
|
51
|
-
* @group Props
|
|
52
|
-
*/
|
|
53
|
-
equalWidths: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Position of the option tooltip, can be 'top', 'bottom', 'left' or 'right'.
|
|
56
|
-
* @group Props
|
|
57
|
-
*/
|
|
58
|
-
optionTooltipPosition: CpsTooltipPosition;
|
|
59
|
-
/**
|
|
60
|
-
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
61
|
-
* @group Props
|
|
62
|
-
*/
|
|
63
|
-
infoTooltip: string;
|
|
64
|
-
/**
|
|
65
|
-
* Info tooltip class for styling.
|
|
66
|
-
* @group Props
|
|
67
|
-
*/
|
|
68
|
-
infoTooltipClass: string;
|
|
69
|
-
/**
|
|
70
|
-
* Size of infoTooltip, of type number denoting pixels or string.
|
|
71
|
-
* @group Props
|
|
72
|
-
*/
|
|
73
|
-
infoTooltipMaxWidth: number | string;
|
|
74
|
-
/**
|
|
75
|
-
* Determines whether the infoTooltip is persistent.
|
|
76
|
-
* @group Props
|
|
77
|
-
*/
|
|
78
|
-
infoTooltipPersistent: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
|
|
81
|
-
* @group Props
|
|
82
|
-
*/
|
|
83
|
-
infoTooltipPosition: CpsTooltipPosition;
|
|
84
|
-
/**
|
|
85
|
-
* Value of the component.
|
|
86
|
-
* @group Props
|
|
87
|
-
*/
|
|
88
|
-
_value: any;
|
|
89
|
-
set value(value: any);
|
|
90
|
-
get value(): any;
|
|
91
|
-
/**
|
|
92
|
-
* Callback to invoke on value change.
|
|
93
|
-
* @param {any} any - value changed.
|
|
94
|
-
* @group Emits
|
|
95
|
-
*/
|
|
96
|
-
valueChanged: EventEmitter<any>;
|
|
97
|
-
largestButtonWidth: number;
|
|
98
|
-
constructor(_control: NgControl, document: Document, renderer: Renderer2);
|
|
99
|
-
ngOnInit(): void;
|
|
100
|
-
onChange: (event: any) => void;
|
|
101
|
-
onTouched: () => void;
|
|
102
|
-
registerOnChange(fn: any): void;
|
|
103
|
-
registerOnTouched(fn: any): void;
|
|
104
|
-
writeValue(value: any): void;
|
|
105
|
-
updateValueEvent(event: any, val: any): void;
|
|
106
|
-
private _updateValue;
|
|
107
|
-
private _setEqualWidths;
|
|
108
|
-
setDisabledState(disabled: boolean): void;
|
|
109
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsButtonToggleComponent, [{ optional: true; self: true; }, null, null]>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsButtonToggleComponent, "cps-button-toggle", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mandatory": { "alias": "mandatory"; "required": false; }; "equalWidths": { "alias": "equalWidths"; "required": false; }; "optionTooltipPosition": { "alias": "optionTooltipPosition"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "_value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
111
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
4
|
-
import { IconType } from '../cps-icon/cps-icon.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* CpsCheckboxComponent is a checkbox element.
|
|
8
|
-
* @group Components
|
|
9
|
-
*/
|
|
10
|
-
export declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
|
|
11
|
-
private _control;
|
|
12
|
-
private document;
|
|
13
|
-
private _elementRef;
|
|
14
|
-
/**
|
|
15
|
-
* Label of the checkbox.
|
|
16
|
-
* @group Props
|
|
17
|
-
*/
|
|
18
|
-
label: string;
|
|
19
|
-
/**
|
|
20
|
-
* Determines whether checkbox is disabled.
|
|
21
|
-
* @group Props
|
|
22
|
-
*/
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* When it is not an empty string, an info icon is displayed to show text for more info.
|
|
26
|
-
* @group Props
|
|
27
|
-
*/
|
|
28
|
-
infoTooltip: string;
|
|
29
|
-
/**
|
|
30
|
-
* InfoTooltip class for styling.
|
|
31
|
-
* @group Props
|
|
32
|
-
*/
|
|
33
|
-
infoTooltipClass: string;
|
|
34
|
-
/**
|
|
35
|
-
* Size of infoTooltip, of type number denoting pixels or string.
|
|
36
|
-
* @group Props
|
|
37
|
-
*/
|
|
38
|
-
infoTooltipMaxWidth: number | string;
|
|
39
|
-
/**
|
|
40
|
-
* Determines whether the infoTooltip is persistent.
|
|
41
|
-
* @group Props
|
|
42
|
-
*/
|
|
43
|
-
infoTooltipPersistent: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Position of infoTooltip, it can be 'top', 'bottom', 'left' or 'right'.
|
|
46
|
-
* @group Props
|
|
47
|
-
*/
|
|
48
|
-
infoTooltipPosition: CpsTooltipPosition;
|
|
49
|
-
/**
|
|
50
|
-
* Name of the icon.
|
|
51
|
-
* @group Props
|
|
52
|
-
*/
|
|
53
|
-
icon: IconType;
|
|
54
|
-
/**
|
|
55
|
-
* Color of the icon.
|
|
56
|
-
* @group Props
|
|
57
|
-
*/
|
|
58
|
-
iconColor: string;
|
|
59
|
-
/**
|
|
60
|
-
* Value of the checkbox.
|
|
61
|
-
* @default false
|
|
62
|
-
* @group Props
|
|
63
|
-
*/
|
|
64
|
-
set value(value: boolean);
|
|
65
|
-
get value(): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Callback to invoke on value change.
|
|
68
|
-
* @param {boolean} boolean - value changed.
|
|
69
|
-
* @group Emits
|
|
70
|
-
*/
|
|
71
|
-
valueChanged: EventEmitter<boolean>;
|
|
72
|
-
private _value;
|
|
73
|
-
constructor(_control: NgControl, document: Document, _elementRef: ElementRef<HTMLElement>);
|
|
74
|
-
ngOnInit(): void;
|
|
75
|
-
onChange: (event: any) => void;
|
|
76
|
-
onTouched: () => void;
|
|
77
|
-
registerOnChange(fn: any): void;
|
|
78
|
-
registerOnTouched(fn: any): void;
|
|
79
|
-
writeValue(value: boolean): void;
|
|
80
|
-
updateValueEvent(event: any): void;
|
|
81
|
-
private _updateValue;
|
|
82
|
-
setDisabledState(disabled: boolean): void;
|
|
83
|
-
focus(): void;
|
|
84
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpsCheckboxComponent, [{ optional: true; self: true; }, null, null]>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsCheckboxComponent, "cps-checkbox", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
86
|
-
}
|