File tree 3 files changed +9
-14
lines changed
3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export class CdkTablist {
96
96
} ) ;
97
97
98
98
/** The Tab UIPatterns of the child Tabs. */
99
- protected items = computed ( ( ) => this . _cdkTabs ( ) . map ( tab => tab . pattern ) ) ;
99
+ protected tabs = computed ( ( ) => this . _cdkTabs ( ) . map ( tab => tab . pattern ) ) ;
100
100
101
101
/** Whether the tablist is vertically or horizontally oriented. */
102
102
orientation = input < 'vertical' | 'horizontal' > ( 'horizontal' ) ;
@@ -125,7 +125,7 @@ export class CdkTablist {
125
125
/** The Tablist UIPattern. */
126
126
pattern : TablistPattern = new TablistPattern ( {
127
127
...this ,
128
- items : this . items ,
128
+ items : this . tabs ,
129
129
textDirection : this . textDirection ,
130
130
} ) ;
131
131
}
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { computed , Signal } from '@angular/core' ;
10
- import { ListSelection , ListSelectionItem } from '../behaviors/list-selection/list-selection' ;
11
- import { ListNavigation , ListNavigationItem } from '../behaviors/list-navigation/list-navigation' ;
12
- import { ListFocus , ListFocusItem } from '../behaviors/list-focus/list-focus' ;
10
+ import { ListSelectionItem } from '../behaviors/list-selection/list-selection' ;
11
+ import { ListNavigationItem } from '../behaviors/list-navigation/list-navigation' ;
12
+ import { ListFocusItem } from '../behaviors/list-focus/list-focus' ;
13
13
import { TabpanelPattern } from './tabpanel' ;
14
-
15
- interface TablistPattern {
16
- focusManager : ListFocus < TabPattern > ;
17
- selection : ListSelection < TabPattern > ;
18
- navigation : ListNavigation < TabPattern > ;
19
- }
14
+ import { TablistPattern } from './tablist' ;
20
15
21
16
/** The required inputs to tabs. */
22
17
export interface TabInputs extends ListNavigationItem , ListSelectionItem , ListFocusItem {
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ export class TabpanelPattern {
26
26
/** Whether the tabpanel is hidden. */
27
27
hidden = computed ( ( ) => ! this . tab ( ) . selected ( ) ) ;
28
28
29
- constructor ( args : TabpanelInputs ) {
30
- this . id = args . id ;
31
- this . tab = args . tab ;
29
+ constructor ( inputs : TabpanelInputs ) {
30
+ this . id = inputs . id ;
31
+ this . tab = inputs . tab ;
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments