@radix-ng/primitives 0.18.2 → 0.20.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/avatar/index.d.ts +1 -2
- package/avatar/src/avatar-fallback.directive.d.ts +11 -23
- package/avatar/src/avatar-image.directive.d.ts +10 -14
- package/avatar/src/avatar-root.directive.d.ts +5 -15
- package/checkbox/index.d.ts +11 -0
- package/checkbox/src/checkbox-button.directive.d.ts +1 -1
- package/checkbox/src/checkbox-indicator.directive.d.ts +1 -1
- package/checkbox/src/checkbox-input.directive.d.ts +1 -1
- package/checkbox/src/checkbox.directive.d.ts +1 -1
- package/compodoc/documentation.json +9385 -4858
- package/core/index.d.ts +2 -0
- package/core/src/control-value-accessor/index.d.ts +75 -0
- package/core/src/create-inject-context/assert-injector.d.ts +51 -0
- package/core/src/create-inject-context/index.d.ts +68 -0
- package/core/src/types.d.ts +23 -0
- package/esm2022/avatar/index.mjs +1 -1
- package/esm2022/avatar/src/avatar-fallback.directive.mjs +38 -40
- package/esm2022/avatar/src/avatar-image.directive.mjs +25 -26
- package/esm2022/avatar/src/avatar-root.directive.mjs +13 -25
- package/esm2022/checkbox/index.mjs +31 -1
- package/esm2022/checkbox/src/checkbox-button.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-indicator.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-input.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox.directive.mjs +3 -3
- package/esm2022/core/index.mjs +3 -1
- package/esm2022/core/src/control-value-accessor/index.mjs +103 -0
- package/esm2022/core/src/create-inject-context/assert-injector.mjs +15 -0
- package/esm2022/core/src/create-inject-context/index.mjs +116 -0
- package/esm2022/core/src/types.mjs +2 -0
- package/esm2022/popover/index.mjs +41 -0
- package/esm2022/popover/radix-ng-primitives-popover.mjs +5 -0
- package/esm2022/popover/src/popover-arrow.directive.mjs +112 -0
- package/esm2022/popover/src/popover-arrow.token.mjs +3 -0
- package/esm2022/popover/src/popover-close.directive.mjs +37 -0
- package/esm2022/popover/src/popover-content.directive.mjs +227 -0
- package/esm2022/popover/src/popover-root.directive.mjs +142 -0
- package/esm2022/popover/src/popover-root.inject.mjs +7 -0
- package/esm2022/popover/src/popover-root.token.mjs +3 -0
- package/esm2022/popover/src/popover-trigger.directive.mjs +42 -0
- package/esm2022/popover/src/popover.constants.mjs +90 -0
- package/esm2022/popover/src/popover.types.mjs +14 -0
- package/esm2022/popover/src/popover.utils.mjs +115 -0
- package/esm2022/radio/index.mjs +2 -1
- package/esm2022/radio/src/radio-item-input.directive.mjs +37 -0
- package/esm2022/radio/src/radio-item.directive.mjs +55 -39
- package/esm2022/radio/src/radio-root.directive.mjs +30 -120
- package/esm2022/radio/src/radio-tokens.mjs +1 -1
- package/esm2022/roving-focus/index.mjs +3 -0
- package/esm2022/roving-focus/radix-ng-primitives-roving-focus.mjs +5 -0
- package/esm2022/roving-focus/src/roving-focus-group.directive.mjs +138 -0
- package/esm2022/roving-focus/src/roving-focus-item.directive.mjs +133 -0
- package/esm2022/roving-focus/src/utils.mjs +47 -0
- package/esm2022/select/src/select-item.directive.mjs +8 -2
- package/esm2022/toggle/src/toggle-input.directive.mjs +4 -3
- package/fesm2022/radix-ng-primitives-avatar.mjs +70 -85
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +35 -10
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +230 -3
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +796 -0
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-radio.mjs +145 -186
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +320 -0
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-select.mjs +7 -1
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +3 -2
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/package.json +18 -6
- package/popover/README.md +3 -0
- package/popover/index.d.ts +17 -0
- package/popover/src/popover-arrow.directive.d.ts +37 -0
- package/popover/src/popover-arrow.token.d.ts +3 -0
- package/popover/src/popover-close.directive.d.ts +15 -0
- package/popover/src/popover-content.directive.d.ts +84 -0
- package/popover/src/popover-root.directive.d.ts +58 -0
- package/popover/src/popover-root.inject.d.ts +2 -0
- package/popover/src/popover-root.token.d.ts +3 -0
- package/popover/src/popover-trigger.directive.d.ts +18 -0
- package/popover/src/popover.constants.d.ts +8 -0
- package/popover/src/popover.types.d.ts +34 -0
- package/popover/src/popover.utils.d.ts +12 -0
- package/radio/index.d.ts +1 -0
- package/radio/src/radio-item-input.directive.d.ts +12 -0
- package/radio/src/radio-item.directive.d.ts +23 -14
- package/radio/src/radio-root.directive.d.ts +19 -34
- package/radio/src/radio-tokens.d.ts +6 -4
- package/roving-focus/README.md +3 -0
- package/roving-focus/index.d.ts +3 -0
- package/roving-focus/src/roving-focus-group.directive.d.ts +50 -0
- package/roving-focus/src/roving-focus-item.directive.d.ts +50 -0
- package/roving-focus/src/utils.d.ts +19 -0
- package/select/src/select-item.directive.d.ts +7 -1
- package/toggle/src/toggle-input.directive.d.ts +1 -1
@@ -1,21 +1,30 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
2
|
+
import { InjectionToken, OnInit } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@radix-ng/primitives/roving-focus";
|
4
5
|
export declare const RdxRadioItemToken: InjectionToken<RdxRadioItemDirective>;
|
5
6
|
export declare function injectRadioItem(): RdxRadioItemDirective;
|
6
|
-
export declare class RdxRadioItemDirective implements
|
7
|
+
export declare class RdxRadioItemDirective implements OnInit {
|
7
8
|
private readonly radioGroup;
|
8
|
-
readonly
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
private readonly elementRef;
|
10
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
11
|
+
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
12
|
+
readonly required: import("@angular/core").InputSignal<boolean | undefined>;
|
13
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
14
|
+
protected readonly disabledState: import("@angular/core").Signal<boolean>;
|
15
|
+
readonly checkedState: import("@angular/core").Signal<boolean>;
|
16
|
+
private readonly ARROW_KEYS;
|
17
|
+
private readonly isArrowKeyPressedSignal;
|
18
|
+
/** @ignore */
|
14
19
|
ngOnInit(): void;
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
/** @ignore */
|
21
|
+
onClick(): void;
|
22
|
+
/** @ignore */
|
23
|
+
onKeyDown(event: KeyboardEvent): void;
|
24
|
+
/** @ignore */
|
25
|
+
onKeyUp(): void;
|
26
|
+
/** @ignore */
|
27
|
+
onFocus(): void;
|
18
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxRadioItemDirective, never>;
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxRadioItemDirective, "[rdxRadioItem]", ["rdxRadioItem"], { "id": { "alias": "id"; "required": false; }; "
|
20
|
-
static ngAcceptInputType_disabled: unknown;
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxRadioItemDirective, "[rdxRadioItem]", ["rdxRadioItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusItemDirective; inputs: { "tabStopId": "id"; "focusable": "focusable"; "active": "active"; "allowShiftKey": "allowShiftKey"; }; outputs: {}; }]>;
|
21
30
|
}
|
@@ -1,72 +1,57 @@
|
|
1
|
-
import {
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
3
|
-
import {
|
3
|
+
import { Orientation } from '@radix-ng/primitives/roving-focus';
|
4
4
|
import { RadioGroupDirective, RadioGroupProps } from './radio-tokens';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
name?: string | undefined;
|
11
|
-
value?: string;
|
12
|
-
disabled: boolean;
|
13
|
-
dir?: string;
|
6
|
+
import * as i1 from "@radix-ng/primitives/roving-focus";
|
7
|
+
export declare class RdxRadioGroupDirective implements RadioGroupProps, RadioGroupDirective, ControlValueAccessor {
|
8
|
+
readonly value: import("@angular/core").ModelSignal<string | null>;
|
9
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
14
10
|
defaultValue?: string;
|
15
|
-
|
16
|
-
|
17
|
-
* Horizontal radio buttons can sometimes be challenging to scan and localize.
|
18
|
-
* The horizontal arrangement of radio buttons may also lead to difficulties in determining which
|
19
|
-
* label corresponds to which button: whether the label is above or below the button.
|
20
|
-
* @default 'vertical'
|
21
|
-
*/
|
22
|
-
readonly _orientation = "vertical";
|
11
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
12
|
+
readonly orientation: import("@angular/core").InputSignal<Orientation | undefined>;
|
23
13
|
/**
|
24
14
|
* Event handler called when the value changes.
|
25
15
|
*/
|
26
|
-
readonly onValueChange:
|
16
|
+
readonly onValueChange: import("@angular/core").OutputEmitterRef<string>;
|
17
|
+
private readonly disable;
|
18
|
+
readonly disableState: import("@angular/core").Signal<boolean>;
|
27
19
|
/**
|
28
20
|
* The callback function to call when the value of the radio group changes.
|
29
21
|
*/
|
30
22
|
private onChange;
|
31
23
|
/**
|
32
24
|
* The callback function to call when the radio group is touched.
|
25
|
+
* @ignore
|
33
26
|
*/
|
34
27
|
onTouched: () => void;
|
35
|
-
ngAfterContentInit(): void;
|
36
|
-
ngOnDestroy(): void;
|
37
28
|
/**
|
38
29
|
* Select a radio item.
|
39
30
|
* @param value The value of the radio item to select.
|
31
|
+
* @ignore
|
40
32
|
*/
|
41
33
|
select(value: string): void;
|
42
34
|
/**
|
43
35
|
* Update the value of the radio group.
|
44
36
|
* @param value The new value of the radio group.
|
45
|
-
* @
|
37
|
+
* @ignore
|
46
38
|
*/
|
47
39
|
writeValue(value: string): void;
|
48
40
|
/**
|
49
41
|
* Register a callback function to call when the value of the radio group changes.
|
50
42
|
* @param fn The callback function to call when the value of the radio group changes.
|
51
|
-
* @
|
43
|
+
* @ignore
|
52
44
|
*/
|
53
45
|
registerOnChange(fn: (value: string) => void): void;
|
46
|
+
/** @ignore */
|
54
47
|
registerOnTouched(fn: () => void): void;
|
55
48
|
/**
|
56
49
|
* Set the disabled state of the radio group.
|
57
50
|
* @param isDisabled Whether the radio group is disabled.
|
58
|
-
* @
|
51
|
+
* @ignore
|
59
52
|
*/
|
60
53
|
setDisabledState(isDisabled: boolean): void;
|
61
|
-
|
62
|
-
* When focus leaves the radio group.
|
63
|
-
*/
|
64
|
-
protected onFocusin(event: FocusEvent): void;
|
65
|
-
protected onKeydown(event: KeyboardEvent): void;
|
66
|
-
private selectFocusedItem;
|
67
|
-
private updateActiveItem;
|
68
|
-
private tabNavigation;
|
54
|
+
protected onKeydown(): void;
|
69
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxRadioGroupDirective, never>;
|
70
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxRadioGroupDirective, "[rdxRadioRoot]", ["rdxRadioRoot"], { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "
|
71
|
-
static ngAcceptInputType_disabled: unknown;
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxRadioGroupDirective, "[rdxRadioRoot]", ["rdxRadioRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: { "dir": "dir"; "orientation": "orientation"; "loop": "loop"; }; outputs: {}; }]>;
|
72
57
|
}
|
@@ -1,12 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
2
|
+
import { InjectionToken, InputSignalWithTransform, ModelSignal, Signal } from '@angular/core';
|
2
3
|
export interface RadioGroupProps {
|
3
4
|
name?: string;
|
4
|
-
disabled?: boolean
|
5
|
+
disabled?: InputSignalWithTransform<boolean, BooleanInput>;
|
5
6
|
defaultValue?: string;
|
6
|
-
value
|
7
|
+
value: ModelSignal<string | null>;
|
8
|
+
disableState: Signal<boolean>;
|
7
9
|
}
|
8
10
|
export interface RadioGroupDirective extends RadioGroupProps {
|
9
|
-
select(value: string): void;
|
11
|
+
select(value: string | null): void;
|
10
12
|
onTouched(): void;
|
11
13
|
}
|
12
14
|
export declare const RDX_RADIO_GROUP: InjectionToken<RadioGroupDirective>;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { Direction, Orientation } from './utils';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class RdxRovingFocusGroupDirective {
|
5
|
+
private readonly ngZone;
|
6
|
+
private readonly elementRef;
|
7
|
+
orientation: Orientation | undefined;
|
8
|
+
dir: Direction;
|
9
|
+
loop: boolean;
|
10
|
+
preventScrollOnEntryFocus: boolean;
|
11
|
+
entryFocus: EventEmitter<Event>;
|
12
|
+
currentTabStopIdChange: EventEmitter<string | null>;
|
13
|
+
/** @ignore */
|
14
|
+
readonly currentTabStopId: import("@angular/core").WritableSignal<string | null>;
|
15
|
+
/** @ignore */
|
16
|
+
readonly focusableItems: import("@angular/core").WritableSignal<HTMLElement[]>;
|
17
|
+
private readonly isClickFocus;
|
18
|
+
private readonly isTabbingBackOut;
|
19
|
+
private readonly focusableItemsCount;
|
20
|
+
/** @ignore */
|
21
|
+
get dataOrientation(): Orientation;
|
22
|
+
/** @ignore */
|
23
|
+
get tabIndex(): 0 | -1;
|
24
|
+
/** @ignore */
|
25
|
+
handleBlur(): void;
|
26
|
+
/** @ignore */
|
27
|
+
handleMouseUp(): void;
|
28
|
+
/** @ignore */
|
29
|
+
handleFocus(event: FocusEvent): void;
|
30
|
+
/** @ignore */
|
31
|
+
handleMouseDown(): void;
|
32
|
+
/** @ignore */
|
33
|
+
onItemFocus(tabStopId: string): void;
|
34
|
+
/** @ignore */
|
35
|
+
onItemShiftTab(): void;
|
36
|
+
/** @ignore */
|
37
|
+
onFocusableItemAdd(): void;
|
38
|
+
/** @ignore */
|
39
|
+
onFocusableItemRemove(): void;
|
40
|
+
/** @ignore */
|
41
|
+
registerItem(item: HTMLElement): void;
|
42
|
+
/** @ignore */
|
43
|
+
unregisterItem(item: HTMLElement): void;
|
44
|
+
/** @ignore */
|
45
|
+
getFocusableItemsCount(): number;
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxRovingFocusGroupDirective, never>;
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxRovingFocusGroupDirective, "[rdxRovingFocusGroup]", never, { "orientation": { "alias": "orientation"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "preventScrollOnEntryFocus": { "alias": "preventScrollOnEntryFocus"; "required": false; }; }, { "entryFocus": "entryFocus"; "currentTabStopIdChange": "currentTabStopIdChange"; }, never, never, true, never>;
|
48
|
+
static ngAcceptInputType_loop: unknown;
|
49
|
+
static ngAcceptInputType_preventScrollOnEntryFocus: unknown;
|
50
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { RdxRovingFocusGroupDirective } from './roving-focus-group.directive';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class RdxRovingFocusItemDirective implements OnInit, OnDestroy {
|
5
|
+
private readonly elementRef;
|
6
|
+
private readonly ngZone;
|
7
|
+
protected readonly parent: RdxRovingFocusGroupDirective;
|
8
|
+
focusable: boolean;
|
9
|
+
active: boolean;
|
10
|
+
tabStopId: string;
|
11
|
+
allowShiftKey: boolean;
|
12
|
+
private readonly id;
|
13
|
+
/** @ignore */
|
14
|
+
readonly isCurrentTabStop: import("@angular/core").Signal<boolean>;
|
15
|
+
/**
|
16
|
+
* Lifecycle hook triggered on initialization.
|
17
|
+
* Registers the element with the parent roving focus group if it is focusable.
|
18
|
+
* @ignore
|
19
|
+
*/
|
20
|
+
ngOnInit(): void;
|
21
|
+
/**
|
22
|
+
* Lifecycle hook triggered on destruction.
|
23
|
+
* Unregisters the element from the parent roving focus group if it is focusable.
|
24
|
+
* @ignore
|
25
|
+
*/
|
26
|
+
ngOnDestroy(): void;
|
27
|
+
/**
|
28
|
+
* Determines the `tabIndex` of the element.
|
29
|
+
* Returns `0` if the element is the current tab stop; otherwise, returns `-1`.
|
30
|
+
* @ignore
|
31
|
+
*/
|
32
|
+
get tabIndex(): 0 | -1;
|
33
|
+
/** @ignore */
|
34
|
+
handleMouseDown(event: MouseEvent): void;
|
35
|
+
/** @ignore */
|
36
|
+
onFocus(): void;
|
37
|
+
/**
|
38
|
+
* Handles the `keydown` event for keyboard navigation within the roving focus group.
|
39
|
+
* Supports navigation based on orientation and direction, and focuses appropriate elements.
|
40
|
+
*
|
41
|
+
* @param event The `KeyboardEvent` object.
|
42
|
+
* @ignore
|
43
|
+
*/
|
44
|
+
handleKeydown(event: KeyboardEvent): void;
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxRovingFocusItemDirective, never>;
|
46
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxRovingFocusItemDirective, "[rdxRovingFocusItem]", never, { "focusable": { "alias": "focusable"; "required": false; }; "active": { "alias": "active"; "required": false; }; "tabStopId": { "alias": "tabStopId"; "required": false; }; "allowShiftKey": { "alias": "allowShiftKey"; "required": false; }; }, {}, never, never, true, never>;
|
47
|
+
static ngAcceptInputType_focusable: unknown;
|
48
|
+
static ngAcceptInputType_active: unknown;
|
49
|
+
static ngAcceptInputType_allowShiftKey: unknown;
|
50
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export type Orientation = 'horizontal' | 'vertical';
|
2
|
+
export type Direction = 'ltr' | 'rtl';
|
3
|
+
export declare const ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
|
4
|
+
export declare const EVENT_OPTIONS: {
|
5
|
+
bubbles: boolean;
|
6
|
+
cancelable: boolean;
|
7
|
+
};
|
8
|
+
type FocusIntent = 'first' | 'last' | 'prev' | 'next';
|
9
|
+
export declare const MAP_KEY_TO_FOCUS_INTENT: Record<string, FocusIntent>;
|
10
|
+
export declare function getDirectionAwareKey(key: string, dir?: Direction): string;
|
11
|
+
export declare function getFocusIntent(event: KeyboardEvent, orientation?: Orientation, dir?: Direction): FocusIntent | undefined;
|
12
|
+
export declare function focusFirst(candidates: HTMLElement[], preventScroll?: boolean, rootNode?: Document | ShadowRoot): void;
|
13
|
+
/**
|
14
|
+
* Wraps an array around itself at a given start index
|
15
|
+
* Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
|
16
|
+
*/
|
17
|
+
export declare function wrapArray<T>(array: T[], startIndex: number): T[];
|
18
|
+
export declare function generateId(): string;
|
19
|
+
export {};
|
@@ -30,15 +30,21 @@ export declare class RdxSelectItemDirective implements Highlightable {
|
|
30
30
|
private _disabled;
|
31
31
|
get viewValue(): string;
|
32
32
|
constructor();
|
33
|
-
/** Gets the label to be used when determining whether the option should be focused.
|
33
|
+
/** Gets the label to be used when determining whether the option should be focused.
|
34
|
+
* @ignore
|
35
|
+
*/
|
34
36
|
getLabel(): string;
|
35
37
|
/**
|
36
38
|
* `Selects the option while indicating the selection came from the user. Used to
|
37
39
|
* determine if the select's view -> model callback should be invoked.`
|
40
|
+
* @ignore
|
38
41
|
*/
|
39
42
|
selectViaInteraction(): void;
|
43
|
+
/** @ignore */
|
40
44
|
handleKeydown(event: KeyboardEvent): void;
|
45
|
+
/** @ignore */
|
41
46
|
setActiveStyles(): void;
|
47
|
+
/** @ignore */
|
42
48
|
setInactiveStyles(): void;
|
43
49
|
protected onPointerMove(): void;
|
44
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectItemDirective, never>;
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@radix-ng/primitives/visually-hidden";
|
3
3
|
export declare class RdxToggleInputDirective {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxToggleInputDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToggleInputDirective, "[rdxToggleInput]", ["rdxToggleInput"], {}, {}, never, never, true, [{ directive: typeof i1.RdxVisuallyHiddenInputDirective; inputs: { "name": "name"; "required": "required"; }; outputs: {}; }]>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxToggleInputDirective, "[rdxToggleInput]", ["rdxToggleInput"], {}, {}, never, never, true, [{ directive: typeof i1.RdxVisuallyHiddenInputDirective; inputs: { "name": "name"; "required": "required"; "value": "value"; }; outputs: {}; }]>;
|
6
6
|
}
|