@crowdfarming/oliva-ds 1.112.0 → 1.113.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.
|
@@ -19,6 +19,7 @@ export declare class SegmentedControlComponent<T = string> {
|
|
|
19
19
|
private readonly destroyRef;
|
|
20
20
|
private readonly pillRef;
|
|
21
21
|
private readonly itemRefs;
|
|
22
|
+
private readonly focusedIndex;
|
|
22
23
|
private placed;
|
|
23
24
|
private observer?;
|
|
24
25
|
private observedItems?;
|
|
@@ -28,7 +29,10 @@ export declare class SegmentedControlComponent<T = string> {
|
|
|
28
29
|
/** Re-measures the pill whenever the host or any item changes size (fonts, tokens, container). */
|
|
29
30
|
private observeResizes;
|
|
30
31
|
onSelect(option: SegmentOption<T>): void;
|
|
32
|
+
/** Arrow keys only move focus; selection happens on Enter/Space. */
|
|
31
33
|
onKeydown(event: KeyboardEvent): void;
|
|
34
|
+
onFocusout(event: FocusEvent): void;
|
|
35
|
+
private focusItem;
|
|
32
36
|
private activeItem;
|
|
33
37
|
private movePill;
|
|
34
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedControlComponent<any>, never>;
|
|
@@ -7,9 +7,11 @@ export interface TabOption {
|
|
|
7
7
|
showBadge?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export type TabAlignment = 'left' | 'center';
|
|
10
|
+
export type TabHoverBackground = 'default' | 'transparent';
|
|
10
11
|
export declare class TabsComponent implements AfterViewInit {
|
|
11
12
|
options: import("@angular/core").InputSignal<TabOption[]>;
|
|
12
13
|
alignment: import("@angular/core").InputSignal<TabAlignment>;
|
|
14
|
+
hoverBackground: import("@angular/core").InputSignal<TabHoverBackground>;
|
|
13
15
|
selectedValue: import("@angular/core").InputSignal<string | number>;
|
|
14
16
|
valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
15
17
|
tabsRef: import("@angular/core").Signal<ElementRef<any>>;
|
|
@@ -18,5 +20,5 @@ export declare class TabsComponent implements AfterViewInit {
|
|
|
18
20
|
onKeydown(event: KeyboardEvent, currentValue: string): void;
|
|
19
21
|
private centerSelectedTab;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "lib-tabs", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "lib-tabs", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "hoverBackground": { "alias": "hoverBackground"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
22
24
|
}
|