1
- import { Direction } from '@angular/cdk/bidi' ;
2
1
import * as i0 from '@angular/core' ;
3
- import { InputSignal } from '@angular/core' ;
4
- import { InputSignalWithTransform } from '@angular/core' ;
5
- import { ListboxPattern } from '@angular/cdk-experimental/ui-patterns' ;
6
- import { ModelSignal } from '@angular/core' ;
7
- import { OptionPattern } from '@angular/cdk-experimental/ui-patterns' ;
8
- import { Signal } from '@angular/core' ;
2
+ import * as _angular_cdk_bidi from '@angular/cdk/bidi' ;
3
+ import { OptionPattern , ListboxPattern } from '@angular/cdk-experimental/ui-patterns' ;
9
4
10
5
/**
11
6
* A listbox container.
@@ -21,65 +16,64 @@ import { Signal } from '@angular/core';
21
16
* </ul>
22
17
* ```
23
18
*/
24
- export declare class CdkListbox {
19
+ declare class CdkListbox {
25
20
/** The directionality (LTR / RTL) context for the application (or a subtree of it). */
26
21
private readonly _directionality ;
27
22
/** The CdkOptions nested inside of the CdkListbox. */
28
23
private readonly _cdkOptions ;
29
24
/** A signal wrapper for directionality. */
30
- protected textDirection : Signal < Direction > ;
25
+ protected textDirection : i0 . Signal < _angular_cdk_bidi . Direction > ;
31
26
/** The Option UIPatterns of the child CdkOptions. */
32
- protected items : Signal < OptionPattern [ ] > ;
27
+ protected items : i0 . Signal < OptionPattern [ ] > ;
33
28
/** Whether the list is vertically or horizontally oriented. */
34
- orientation : InputSignal < "vertical" | "horizontal" > ;
29
+ orientation : i0 . InputSignal < "vertical" | "horizontal" > ;
35
30
/** Whether multiple items in the list can be selected at once. */
36
- multiselectable : InputSignalWithTransform < boolean , unknown > ;
31
+ multiselectable : i0 . InputSignalWithTransform < boolean , unknown > ;
37
32
/** Whether focus should wrap when navigating. */
38
- wrap : InputSignalWithTransform < boolean , unknown > ;
33
+ wrap : i0 . InputSignalWithTransform < boolean , unknown > ;
39
34
/** Whether disabled items in the list should be skipped when navigating. */
40
- skipDisabled : InputSignalWithTransform < boolean , unknown > ;
35
+ skipDisabled : i0 . InputSignalWithTransform < boolean , unknown > ;
41
36
/** The focus strategy used by the list. */
42
- focusMode : InputSignal < "roving" | "activedescendant" > ;
37
+ focusMode : i0 . InputSignal < "roving" | "activedescendant" > ;
43
38
/** The selection strategy used by the list. */
44
- selectionMode : InputSignal < "follow" | "explicit" > ;
39
+ selectionMode : i0 . InputSignal < "follow" | "explicit" > ;
45
40
/** The amount of time before the typeahead search is reset. */
46
- typeaheadDelay : InputSignal < number > ;
41
+ typeaheadDelay : i0 . InputSignal < number > ;
47
42
/** Whether the listbox is disabled. */
48
- disabled : InputSignalWithTransform < boolean , unknown > ;
43
+ disabled : i0 . InputSignalWithTransform < boolean , unknown > ;
49
44
/** The ids of the current selected items. */
50
- selectedIds : ModelSignal < string [ ] > ;
45
+ selectedIds : i0 . ModelSignal < string [ ] > ;
51
46
/** The current index that has been navigated to. */
52
- activeIndex : ModelSignal < number > ;
47
+ activeIndex : i0 . ModelSignal < number > ;
53
48
/** The Listbox UIPattern. */
54
49
pattern : ListboxPattern ;
55
50
static ɵfac : i0 . ɵɵFactoryDeclaration < CdkListbox , never > ;
56
51
static ɵdir : i0 . ɵɵDirectiveDeclaration < CdkListbox , "[cdkListbox]" , [ "cdkListbox" ] , { "orientation" : { "alias" : "orientation" ; "required" : false ; "isSignal" : true ; } ; "multiselectable" : { "alias" : "multiselectable" ; "required" : false ; "isSignal" : true ; } ; "wrap" : { "alias" : "wrap" ; "required" : false ; "isSignal" : true ; } ; "skipDisabled" : { "alias" : "skipDisabled" ; "required" : false ; "isSignal" : true ; } ; "focusMode" : { "alias" : "focusMode" ; "required" : false ; "isSignal" : true ; } ; "selectionMode" : { "alias" : "selectionMode" ; "required" : false ; "isSignal" : true ; } ; "typeaheadDelay" : { "alias" : "typeaheadDelay" ; "required" : false ; "isSignal" : true ; } ; "disabled" : { "alias" : "disabled" ; "required" : false ; "isSignal" : true ; } ; "selectedIds" : { "alias" : "selectedIds" ; "required" : false ; "isSignal" : true ; } ; "activeIndex" : { "alias" : "activeIndex" ; "required" : false ; "isSignal" : true ; } ; } , { "selectedIds" : "selectedIdsChange" ; "activeIndex" : "activeIndexChange" ; } , [ "_cdkOptions" ] , never , true , never > ;
57
52
}
58
-
59
53
/** A selectable option in a CdkListbox. */
60
- export declare class CdkOption {
54
+ declare class CdkOption {
61
55
/** A reference to the option element. */
62
56
private readonly _elementRef ;
63
57
/** The parent CdkListbox. */
64
58
private readonly _cdkListbox ;
65
59
/** A unique identifier for the option. */
66
60
private readonly _generatedId ;
67
61
/** A unique identifier for the option. */
68
- protected id : Signal < string > ;
62
+ protected id : i0 . Signal < string > ;
69
63
/** The text used by the typeahead search. */
70
- protected searchTerm : Signal < any > ;
64
+ protected searchTerm : i0 . Signal < any > ;
71
65
/** The parent Listbox UIPattern. */
72
- protected listbox : Signal < ListboxPattern > ;
66
+ protected listbox : i0 . Signal < ListboxPattern > ;
73
67
/** A reference to the option element to be focused on navigation. */
74
- protected element : Signal < any > ;
68
+ protected element : i0 . Signal < any > ;
75
69
/** Whether an item is disabled. */
76
- disabled : InputSignalWithTransform < boolean , unknown > ;
70
+ disabled : i0 . InputSignalWithTransform < boolean , unknown > ;
77
71
/** The text used by the typeahead search. */
78
- label : InputSignal < string | undefined > ;
72
+ label : i0 . InputSignal < string | undefined > ;
79
73
/** The Option UIPattern. */
80
74
pattern : OptionPattern ;
81
75
static ɵfac : i0 . ɵɵFactoryDeclaration < CdkOption , never > ;
82
76
static ɵdir : i0 . ɵɵDirectiveDeclaration < CdkOption , "[cdkOption]" , [ "cdkOption" ] , { "disabled" : { "alias" : "disabled" ; "required" : false ; "isSignal" : true ; } ; "label" : { "alias" : "label" ; "required" : false ; "isSignal" : true ; } ; } , { } , never , never , true , never > ;
83
77
}
84
78
85
- export { }
79
+ export { CdkListbox , CdkOption } ;
0 commit comments