cps-ui-kit 17.22.0 → 17.23.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/esm2022/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +72 -17
- package/esm2022/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +2 -2
- package/esm2022/lib/components/cps-chip/cps-chip.component.mjs +2 -2
- package/esm2022/lib/components/cps-input/cps-input.component.mjs +2 -2
- package/esm2022/lib/components/cps-loader/cps-loader.component.mjs +2 -2
- package/esm2022/lib/components/cps-progress-linear/cps-progress-linear.component.mjs +3 -3
- package/esm2022/lib/components/cps-scheduler/cps-scheduler.component.mjs +1 -1
- package/esm2022/lib/components/cps-select/cps-select.component.mjs +2 -2
- package/esm2022/lib/components/cps-table/components/internal/table-column-filter-constraint/table-column-filter-constraint.component.mjs +1 -1
- package/esm2022/lib/components/cps-timepicker/cps-timepicker.component.mjs +2 -2
- package/fesm2022/cps-ui-kit.mjs +81 -27
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +37 -11
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +1 -1
- package/lib/components/cps-chip/cps-chip.component.d.ts +1 -1
- package/lib/components/cps-input/cps-input.component.d.ts +1 -1
- package/lib/components/cps-loader/cps-loader.component.d.ts +1 -1
- package/lib/components/cps-progress-linear/cps-progress-linear.component.d.ts +2 -2
- package/lib/components/cps-select/cps-select.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { IconType, iconSizeType } from '../cps-icon/cps-icon.component';
|
|
4
4
|
import { LabelByValuePipe } from '../../pipes/internal/label-by-value.pipe';
|
|
@@ -15,7 +15,7 @@ export type CpsAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderl
|
|
|
15
15
|
* CpsAutocompleteComponent is an input component that provides real-time suggestions when being typed.
|
|
16
16
|
* @group Components
|
|
17
17
|
*/
|
|
18
|
-
export declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
18
|
+
export declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
19
19
|
private _control;
|
|
20
20
|
private _labelByValue;
|
|
21
21
|
/**
|
|
@@ -98,11 +98,6 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
98
98
|
* @group Props
|
|
99
99
|
*/
|
|
100
100
|
openOnClear: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* An array of options.
|
|
103
|
-
* @group Props
|
|
104
|
-
*/
|
|
105
|
-
options: any[];
|
|
106
101
|
/**
|
|
107
102
|
* If multiple, determines whether selected options should be ordered according to the initial order of the options.
|
|
108
103
|
* @group Props
|
|
@@ -139,7 +134,7 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
139
134
|
*/
|
|
140
135
|
prefixIcon: IconType;
|
|
141
136
|
/**
|
|
142
|
-
* Size of icon before input value
|
|
137
|
+
* Size of icon before input value.
|
|
143
138
|
* @group Props
|
|
144
139
|
*/
|
|
145
140
|
prefixIconSize: iconSizeType;
|
|
@@ -149,7 +144,17 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
149
144
|
*/
|
|
150
145
|
loading: boolean;
|
|
151
146
|
/**
|
|
152
|
-
* Text to display when
|
|
147
|
+
* Text to display when options list is loading.
|
|
148
|
+
* @group Props
|
|
149
|
+
*/
|
|
150
|
+
loadingMessage: string;
|
|
151
|
+
/**
|
|
152
|
+
* Determines whether the loading message should be displayed.
|
|
153
|
+
* @group Props
|
|
154
|
+
*/
|
|
155
|
+
showLoadingMessage: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Text to display when there is no data.
|
|
153
158
|
* @group Props
|
|
154
159
|
*/
|
|
155
160
|
emptyMessage: string;
|
|
@@ -208,6 +213,11 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
208
213
|
* @group Props
|
|
209
214
|
*/
|
|
210
215
|
emptyOptionIndex: number;
|
|
216
|
+
/**
|
|
217
|
+
* Debounce time for inputChanged event.
|
|
218
|
+
* @group Props
|
|
219
|
+
*/
|
|
220
|
+
inputChangeDebounceTime: number;
|
|
211
221
|
/**
|
|
212
222
|
* Value of the autocomplete.
|
|
213
223
|
* @group Props
|
|
@@ -215,12 +225,24 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
215
225
|
_value: any;
|
|
216
226
|
get value(): any;
|
|
217
227
|
set value(value: any);
|
|
228
|
+
/**
|
|
229
|
+
* An array of options.
|
|
230
|
+
* @group Props
|
|
231
|
+
*/
|
|
232
|
+
set options(opts: any[] | undefined);
|
|
233
|
+
get options(): any[];
|
|
218
234
|
/**
|
|
219
235
|
* Callback to invoke on value change.
|
|
220
236
|
* @param {any} any - value changed.
|
|
221
237
|
* @group Emits
|
|
222
238
|
*/
|
|
223
239
|
valueChanged: EventEmitter<any>;
|
|
240
|
+
/**
|
|
241
|
+
* Callback to invoke on field input change.
|
|
242
|
+
* @param {string} string - input changed.
|
|
243
|
+
* @group Emits
|
|
244
|
+
*/
|
|
245
|
+
inputChanged: EventEmitter<string>;
|
|
224
246
|
/**
|
|
225
247
|
* Callback to invoke when the component loses focus.
|
|
226
248
|
* @param {any}
|
|
@@ -232,11 +254,11 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
232
254
|
virtualList: VirtualScroller;
|
|
233
255
|
optionsMenu: CpsMenuComponent;
|
|
234
256
|
optionsList: ElementRef;
|
|
235
|
-
private _statusChangesSubscription?;
|
|
236
257
|
error: string;
|
|
237
258
|
cvtWidth: string;
|
|
238
259
|
isOpened: boolean;
|
|
239
260
|
inputText: string;
|
|
261
|
+
inputTextDebounced: string;
|
|
240
262
|
filteredOptions: any[];
|
|
241
263
|
backspaceClickedOnce: boolean;
|
|
242
264
|
activeSingle: boolean;
|
|
@@ -246,8 +268,12 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
246
268
|
autocompleteBoxWidth: number;
|
|
247
269
|
resizeObserver: ResizeObserver;
|
|
248
270
|
isTimePickerField: boolean;
|
|
271
|
+
private _inputChangeSubject$;
|
|
272
|
+
private _destroy$;
|
|
273
|
+
private _options;
|
|
249
274
|
constructor(_control: NgControl, _labelByValue: LabelByValuePipe);
|
|
250
275
|
ngOnInit(): void;
|
|
276
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
251
277
|
ngAfterViewInit(): void;
|
|
252
278
|
ngOnDestroy(): void;
|
|
253
279
|
select(option: any, byValue: boolean, needClearInput?: boolean, needFocusInput?: boolean): void;
|
|
@@ -286,5 +312,5 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
|
|
|
286
312
|
private _confirmInput;
|
|
287
313
|
private _removeLastValue;
|
|
288
314
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsAutocompleteComponent, [{ optional: true; self: true; }, null]>;
|
|
289
|
-
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; }; "
|
|
315
|
+
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; }; "_value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "valueChanged": "valueChanged"; "inputChanged": "inputChanged"; "blurred": "blurred"; }, never, never, true, never>;
|
|
290
316
|
}
|
|
@@ -66,7 +66,7 @@ export declare class CpsButtonToggleComponent implements ControlValueAccessor, O
|
|
|
66
66
|
*/
|
|
67
67
|
infoTooltipClass: string;
|
|
68
68
|
/**
|
|
69
|
-
* Size of infoTooltip, of type number or string.
|
|
69
|
+
* Size of infoTooltip, of type number denoting pixels or string.
|
|
70
70
|
* @group Props
|
|
71
71
|
*/
|
|
72
72
|
infoTooltipMaxWidth: number | string;
|
|
@@ -22,7 +22,7 @@ export declare class CpsChipComponent implements OnChanges {
|
|
|
22
22
|
*/
|
|
23
23
|
iconColor: string;
|
|
24
24
|
/**
|
|
25
|
-
* Position of the icon, it can be 'before' or 'after'.
|
|
25
|
+
* Position of the icon, it can be 'before' or 'after'.
|
|
26
26
|
* @group Props
|
|
27
27
|
*/
|
|
28
28
|
iconPosition: 'before' | 'after';
|
|
@@ -72,7 +72,7 @@ export declare class CpsInputComponent implements ControlValueAccessor, OnInit,
|
|
|
72
72
|
*/
|
|
73
73
|
prefixIconClickable: boolean;
|
|
74
74
|
/**
|
|
75
|
-
* Size of icon before input value
|
|
75
|
+
* Size of icon before input value.
|
|
76
76
|
* @group Props
|
|
77
77
|
*/
|
|
78
78
|
prefixIconSize: iconSizeType;
|
|
@@ -11,7 +11,7 @@ export declare class CpsLoaderComponent implements OnInit {
|
|
|
11
11
|
*/
|
|
12
12
|
fullScreen: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Option to control the
|
|
14
|
+
* Option to control the opacity of the loader component.
|
|
15
15
|
* @group Props
|
|
16
16
|
*/
|
|
17
17
|
opacity: number | string;
|
|
@@ -26,12 +26,12 @@ export declare class CpsProgressLinearComponent implements OnInit {
|
|
|
26
26
|
*/
|
|
27
27
|
bgColor: string;
|
|
28
28
|
/**
|
|
29
|
-
* Option to control the
|
|
29
|
+
* Option to control the opacity of the progress bar.
|
|
30
30
|
* @group Props
|
|
31
31
|
*/
|
|
32
32
|
opacity: number | string;
|
|
33
33
|
/**
|
|
34
|
-
* Border radius of the progress bar, of type number or string.
|
|
34
|
+
* Border radius of the progress bar, of type number denoting pixels or string.
|
|
35
35
|
* @group Props
|
|
36
36
|
*/
|
|
37
37
|
radius: number | string;
|
|
@@ -117,7 +117,7 @@ export declare class CpsSelectComponent implements ControlValueAccessor, OnInit,
|
|
|
117
117
|
*/
|
|
118
118
|
prefixIcon: IconType;
|
|
119
119
|
/**
|
|
120
|
-
* Size of icon before input value
|
|
120
|
+
* Size of icon before input value.
|
|
121
121
|
* @group Props
|
|
122
122
|
*/
|
|
123
123
|
prefixIconSize: iconSizeType;
|