cps-ui-kit 21.14.0 → 21.16.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 +417 -238
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cps-ui-kit.d.ts +40 -7
package/package.json
CHANGED
package/types/cps-ui-kit.d.ts
CHANGED
|
@@ -829,7 +829,7 @@ declare class CpsButtonToggleComponent implements ControlValueAccessor, OnInit,
|
|
|
829
829
|
private _rootFontSizePx;
|
|
830
830
|
constructor(_control: NgControl, document: Document, platformId: object, renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
831
831
|
ngOnInit(): void;
|
|
832
|
-
ngOnChanges(): void;
|
|
832
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
833
833
|
onChange: (_event: any) => void;
|
|
834
834
|
onTouched: () => void;
|
|
835
835
|
setDisabledState(_disabled: boolean): void;
|
|
@@ -930,7 +930,7 @@ declare class CpsButtonComponent implements OnChanges {
|
|
|
930
930
|
classesList: string[];
|
|
931
931
|
enterActive: boolean;
|
|
932
932
|
constructor(document: Document);
|
|
933
|
-
ngOnChanges(): void;
|
|
933
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
934
934
|
setClasses(): void;
|
|
935
935
|
onClick(event: Event): void;
|
|
936
936
|
onEnterKeydown(): void;
|
|
@@ -1014,7 +1014,7 @@ declare class CpsCheckboxComponent implements OnInit, OnChanges, ControlValueAcc
|
|
|
1014
1014
|
private _value;
|
|
1015
1015
|
constructor(_control: NgControl, document: Document, _elementRef: ElementRef<HTMLElement>);
|
|
1016
1016
|
ngOnInit(): void;
|
|
1017
|
-
ngOnChanges(): void;
|
|
1017
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1018
1018
|
onChange: (_event: any) => void;
|
|
1019
1019
|
onTouched: () => void;
|
|
1020
1020
|
registerOnChange(fn: any): void;
|
|
@@ -2014,7 +2014,7 @@ declare class CpsRadioGroupComponent implements ControlValueAccessor, OnInit, On
|
|
|
2014
2014
|
error: string;
|
|
2015
2015
|
constructor(_control: NgControl);
|
|
2016
2016
|
ngOnInit(): void;
|
|
2017
|
-
ngOnChanges(): void;
|
|
2017
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2018
2018
|
ngOnDestroy(): void;
|
|
2019
2019
|
onChange: (_event: any) => void;
|
|
2020
2020
|
onTouched: () => void;
|
|
@@ -2760,12 +2760,17 @@ declare class CpsSwitchComponent implements ControlValueAccessor {
|
|
|
2760
2760
|
* CpsTabComponent is a tab within a tab-group.
|
|
2761
2761
|
* @group Components
|
|
2762
2762
|
*/
|
|
2763
|
-
declare class CpsTabComponent {
|
|
2763
|
+
declare class CpsTabComponent implements OnChanges {
|
|
2764
2764
|
/**
|
|
2765
2765
|
* Label of the tab.
|
|
2766
2766
|
* @group Props
|
|
2767
2767
|
*/
|
|
2768
2768
|
label: string;
|
|
2769
|
+
/**
|
|
2770
|
+
* Aria label for the tab component, used for accessibility, it takes precedence over label.
|
|
2771
|
+
* @group Props
|
|
2772
|
+
*/
|
|
2773
|
+
ariaLabel: string;
|
|
2769
2774
|
/**
|
|
2770
2775
|
* Icon before the label.
|
|
2771
2776
|
* @group Props
|
|
@@ -2808,8 +2813,9 @@ declare class CpsTabComponent {
|
|
|
2808
2813
|
badgeTooltip: string;
|
|
2809
2814
|
content: TemplateRef<any>;
|
|
2810
2815
|
active: boolean;
|
|
2816
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2811
2817
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabComponent, never>;
|
|
2812
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabComponent, "cps-tab", never, { "label": { "alias": "label"; "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>;
|
|
2818
|
+
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>;
|
|
2813
2819
|
}
|
|
2814
2820
|
|
|
2815
2821
|
/**
|
|
@@ -2860,6 +2866,12 @@ declare class CpsTabGroupComponent implements OnInit, AfterContentInit, AfterVie
|
|
|
2860
2866
|
* @group Props
|
|
2861
2867
|
*/
|
|
2862
2868
|
alignment: CpsTabsAlignmentType;
|
|
2869
|
+
/**
|
|
2870
|
+
* When true, tabs activate automatically as focus moves between them via arrow keys.
|
|
2871
|
+
* When false, arrow keys only move focus; press Enter or Space to activate the focused tab.
|
|
2872
|
+
* @group Props
|
|
2873
|
+
*/
|
|
2874
|
+
autoActivation: boolean;
|
|
2863
2875
|
/**
|
|
2864
2876
|
* Class to apply to the tab content wrapper.
|
|
2865
2877
|
* @group Props
|
|
@@ -2909,10 +2921,14 @@ declare class CpsTabGroupComponent implements OnInit, AfterContentInit, AfterVie
|
|
|
2909
2921
|
backBtnVisible: boolean;
|
|
2910
2922
|
forwardBtnVisible: boolean;
|
|
2911
2923
|
animationState: 'slideLeft' | 'slideRight' | 'fadeIn' | 'fadeOut';
|
|
2924
|
+
readonly tabGroupId: string;
|
|
2912
2925
|
windowResize$: Subscription;
|
|
2913
2926
|
listScroll$: Subscription;
|
|
2927
|
+
private readonly _tabPanelEls;
|
|
2928
|
+
readonly panelTabindex: i0.WritableSignal<number>;
|
|
2914
2929
|
private _currentTabIndex;
|
|
2915
2930
|
private _previousTabIndex;
|
|
2931
|
+
private readonly _focusService;
|
|
2916
2932
|
constructor(cdRef: ChangeDetectorRef, document: Document);
|
|
2917
2933
|
ngOnInit(): void;
|
|
2918
2934
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -2920,7 +2936,16 @@ declare class CpsTabGroupComponent implements OnInit, AfterContentInit, AfterVie
|
|
|
2920
2936
|
ngAfterViewInit(): void;
|
|
2921
2937
|
ngOnDestroy(): void;
|
|
2922
2938
|
get selectedTab(): CpsTabComponent | undefined;
|
|
2939
|
+
getTabId(index: number): string;
|
|
2940
|
+
getPanelId(index: number): string;
|
|
2941
|
+
getTabFocusOrderTabIndex(tabIndex: number): 0 | -1;
|
|
2942
|
+
getTabAriaLabel(tab: CpsTabComponent): string | null;
|
|
2923
2943
|
onTabClick(index: number): void;
|
|
2944
|
+
onMouseDown(event: MouseEvent): void;
|
|
2945
|
+
onTabKeydown(event: KeyboardEvent, index: number): void;
|
|
2946
|
+
private _scrollTabIntoView;
|
|
2947
|
+
private _hasFocusableIn;
|
|
2948
|
+
private _nextEnabledTab;
|
|
2924
2949
|
selectTab(silent?: boolean): void;
|
|
2925
2950
|
onScroll(event: any): void;
|
|
2926
2951
|
onResize(): void;
|
|
@@ -2930,7 +2955,7 @@ declare class CpsTabGroupComponent implements OnInit, AfterContentInit, AfterVie
|
|
|
2930
2955
|
private _getVisibleButtonWidths;
|
|
2931
2956
|
private _getWidth;
|
|
2932
2957
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsTabGroupComponent, never>;
|
|
2933
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabGroupComponent, "cps-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "isSubTabs": { "alias": "isSubTabs"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "contentWrapClass": { "alias": "contentWrapClass"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "stretched": { "alias": "stretched"; "required": false; }; "animationType": { "alias": "animationType"; "required": false; }; "navButtonsBackground": { "alias": "navButtonsBackground"; "required": false; }; "tabsBackground": { "alias": "tabsBackground"; "required": false; }; }, { "beforeTabChanged": "beforeTabChanged"; "afterTabChanged": "afterTabChanged"; }, ["tabs"], never, true, never>;
|
|
2958
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsTabGroupComponent, "cps-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "isSubTabs": { "alias": "isSubTabs"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "autoActivation": { "alias": "autoActivation"; "required": false; }; "contentWrapClass": { "alias": "contentWrapClass"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "stretched": { "alias": "stretched"; "required": false; }; "animationType": { "alias": "animationType"; "required": false; }; "navButtonsBackground": { "alias": "navButtonsBackground"; "required": false; }; "tabsBackground": { "alias": "tabsBackground"; "required": false; }; }, { "beforeTabChanged": "beforeTabChanged"; "afterTabChanged": "afterTabChanged"; }, ["tabs"], never, true, never>;
|
|
2934
2959
|
}
|
|
2935
2960
|
|
|
2936
2961
|
/**
|
|
@@ -5908,6 +5933,14 @@ declare class CpsFocusService {
|
|
|
5908
5933
|
* Shorthand for `lastInput() === 'keyboard'`.
|
|
5909
5934
|
*/
|
|
5910
5935
|
isKeyboard(): boolean;
|
|
5936
|
+
/**
|
|
5937
|
+
* Suppresses the focus-visible ring on `el` for its next focus event.
|
|
5938
|
+
*
|
|
5939
|
+
* Adds `suppress-focus-visible` to the element and removes it automatically
|
|
5940
|
+
* on the next `blur`. Call from a `mousedown` handler to prevent the ring
|
|
5941
|
+
* from appearing when the browser moves focus to the element via pointer.
|
|
5942
|
+
*/
|
|
5943
|
+
suppressNextFocusRing(el: HTMLElement): void;
|
|
5911
5944
|
/**
|
|
5912
5945
|
* Focuses `el`, conditionally suppressing the focus-visible ring.
|
|
5913
5946
|
*
|