cps-ui-kit 21.19.0 → 21.21.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/fesm2022/cps-ui-kit.mjs +61 -29
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cps-ui-kit.d.ts +15 -5
package/package.json
CHANGED
package/types/cps-ui-kit.d.ts
CHANGED
|
@@ -646,6 +646,7 @@ declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit,
|
|
|
646
646
|
cvtWidth: string;
|
|
647
647
|
isOpened: boolean;
|
|
648
648
|
isActive: boolean;
|
|
649
|
+
isKeyboardFocused: boolean;
|
|
649
650
|
inputText: string;
|
|
650
651
|
inputTextDebounced: string;
|
|
651
652
|
filteredOptions: any[];
|
|
@@ -664,6 +665,7 @@ declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit,
|
|
|
664
665
|
private readonly _cpsRootFontSizeService;
|
|
665
666
|
private _inputChangeSubject$;
|
|
666
667
|
private _destroy$;
|
|
668
|
+
private _mouseActivated;
|
|
667
669
|
private _options;
|
|
668
670
|
private _optionIds;
|
|
669
671
|
constructor(_control: NgControl, cdRef: ChangeDetectorRef, _labelByValue: LabelByValuePipe);
|
|
@@ -685,7 +687,7 @@ declare class CpsAutocompleteComponent implements ControlValueAccessor, OnInit,
|
|
|
685
687
|
onBlur(): void;
|
|
686
688
|
onFocus(): void;
|
|
687
689
|
onBeforeOptionsHidden(reason: CpsMenuHideReason): void;
|
|
688
|
-
onBoxClick(): void;
|
|
690
|
+
onBoxClick(fromKeyboard?: boolean): void;
|
|
689
691
|
onContainerKeyDown(event: any): void;
|
|
690
692
|
onInputKeyDown(event: any): void;
|
|
691
693
|
onChevronClick(event: any): void;
|
|
@@ -844,7 +846,7 @@ declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit,
|
|
|
844
846
|
* CpsButtonComponent is a button element.
|
|
845
847
|
* @group Components
|
|
846
848
|
*/
|
|
847
|
-
declare class CpsButtonComponent implements OnChanges {
|
|
849
|
+
declare class CpsButtonComponent implements OnInit, OnChanges {
|
|
848
850
|
private document;
|
|
849
851
|
/**
|
|
850
852
|
* Color of the button.
|
|
@@ -926,6 +928,7 @@ declare class CpsButtonComponent implements OnChanges {
|
|
|
926
928
|
classesList: string[];
|
|
927
929
|
enterActive: boolean;
|
|
928
930
|
constructor(document: Document);
|
|
931
|
+
ngOnInit(): void;
|
|
929
932
|
ngOnChanges(): void;
|
|
930
933
|
setClasses(): void;
|
|
931
934
|
onClick(event: Event): void;
|
|
@@ -2062,13 +2065,18 @@ interface CpsTime {
|
|
|
2062
2065
|
* CpsTimepickerComponent allows to pick a specific time from a set of available options or input it manually.
|
|
2063
2066
|
* @group Components
|
|
2064
2067
|
*/
|
|
2065
|
-
declare class CpsTimepickerComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
2068
|
+
declare class CpsTimepickerComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
2066
2069
|
private _control;
|
|
2067
2070
|
/**
|
|
2068
2071
|
* Label of the timepicker.
|
|
2069
2072
|
* @group Props
|
|
2070
2073
|
*/
|
|
2071
2074
|
label: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* Aria label for the timepicker component, used for accessibility, it takes precedence over label.
|
|
2077
|
+
* @group Props
|
|
2078
|
+
*/
|
|
2079
|
+
ariaLabel: string;
|
|
2072
2080
|
/**
|
|
2073
2081
|
* Determines whether the timepicker is disabled.
|
|
2074
2082
|
* @group Props
|
|
@@ -2173,6 +2181,7 @@ declare class CpsTimepickerComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
2173
2181
|
constructor(_control: NgControl);
|
|
2174
2182
|
ngOnInit(): void;
|
|
2175
2183
|
ngAfterViewInit(): void;
|
|
2184
|
+
ngOnChanges(): void;
|
|
2176
2185
|
ngOnDestroy(): void;
|
|
2177
2186
|
onChange: (_event: any) => void;
|
|
2178
2187
|
onTouched: () => void;
|
|
@@ -2196,7 +2205,7 @@ declare class CpsTimepickerComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
2196
2205
|
private _updateValue;
|
|
2197
2206
|
private _getRange;
|
|
2198
2207
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTimepickerComponent, [{ optional: true; self: true; }]>;
|
|
2199
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTimepickerComponent, "cps-timepicker", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "use24HourTime": { "alias": "use24HourTime"; "required": false; }; "withSeconds": { "alias": "withSeconds"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "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; }; "mandatoryValue": { "alias": "mandatoryValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "focused": "focused"; "blurred": "blurred"; }, never, never, true, never>;
|
|
2208
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTimepickerComponent, "cps-timepicker", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "use24HourTime": { "alias": "use24HourTime"; "required": false; }; "withSeconds": { "alias": "withSeconds"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "hideDetails": { "alias": "hideDetails"; "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; }; "mandatoryValue": { "alias": "mandatoryValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; "focused": "focused"; "blurred": "blurred"; }, never, never, true, never>;
|
|
2200
2209
|
}
|
|
2201
2210
|
|
|
2202
2211
|
/**
|
|
@@ -2782,7 +2791,7 @@ declare class CpsSwitchComponent implements ControlValueAccessor {
|
|
|
2782
2791
|
* CpsTabComponent is a tab within a tab-group.
|
|
2783
2792
|
* @group Components
|
|
2784
2793
|
*/
|
|
2785
|
-
declare class CpsTabComponent implements OnChanges {
|
|
2794
|
+
declare class CpsTabComponent implements OnInit, OnChanges {
|
|
2786
2795
|
/**
|
|
2787
2796
|
* Label of the tab.
|
|
2788
2797
|
* @group Props
|
|
@@ -2835,6 +2844,7 @@ declare class CpsTabComponent implements OnChanges {
|
|
|
2835
2844
|
badgeTooltip: string;
|
|
2836
2845
|
content: TemplateRef<any>;
|
|
2837
2846
|
active: boolean;
|
|
2847
|
+
ngOnInit(): void;
|
|
2838
2848
|
ngOnChanges(): void;
|
|
2839
2849
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabComponent, never>;
|
|
2840
2850
|
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabComponent, "cps-tab", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipContentClass": { "alias": "tooltipContentClass"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipPersistent": { "alias": "tooltipPersistent"; "required": false; }; "badgeValue": { "alias": "badgeValue"; "required": false; }; "badgeTooltip": { "alias": "badgeTooltip"; "required": false; }; }, {}, never, ["*"], true, never>;
|