Skip to content

Commit 119d00a

Browse files
committed
fixup! fix(aria/ui-patterns): internal conformance fixes
1 parent 2138d26 commit 119d00a

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

src/aria/ui-patterns/tree/tree.ts

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import {computed, signal} from '@angular/core';
10-
import {SignalLike} from '../behaviors/signal-like/signal-like';
10+
import {SignalLike, WritableSignalLike} from '../behaviors/signal-like/signal-like';
1111
import {List, ListInputs, ListItem} from '../behaviors/list/list';
1212
import {ExpansionItem, ExpansionControl, ListExpansion} from '../behaviors/expansion/expansion';
1313
import {KeyboardEventManager, PointerEventManager, Modifier} from '../behaviors/event-manager';
@@ -319,6 +319,48 @@ export class TreePattern<V> {
319319
return manager;
320320
});
321321

322+
/** A unique identifier for the tree. */
323+
id: SignalLike<string>;
324+
325+
/** Whether the tree is in navigation mode. */
326+
nav: SignalLike<boolean>;
327+
328+
/** The aria-current type. */
329+
currentType: SignalLike<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>;
330+
331+
/** All items in the tree, in document order (DFS-like, a flattened list). */
332+
allItems: SignalLike<TreeItemPattern<V>[]>;
333+
334+
/** Whether the tree is disabled. */
335+
disabled: SignalLike<boolean>;
336+
337+
/** The currently active item in the tree. */
338+
activeItem: WritableSignalLike<TreeItemPattern<V> | undefined> = signal(undefined);
339+
340+
/** Whether disabled items should be skipped when navigating. */
341+
skipDisabled: SignalLike<boolean>;
342+
343+
/** Whether the focus should wrap when navigating past the first or last item. */
344+
wrap: SignalLike<boolean>;
345+
346+
/** The orientation of the tree. */
347+
orientation: SignalLike<'vertical' | 'horizontal'>;
348+
349+
/** The text direction of the tree. */
350+
textDirection: SignalLike<'ltr' | 'rtl'>;
351+
352+
/** Whether multiple items can be selected at the same time. */
353+
multi: SignalLike<boolean>;
354+
355+
/** The selection mode of the tree. */
356+
selectionMode: SignalLike<'follow' | 'explicit'>;
357+
358+
/** The delay in milliseconds to wait before clearing the typeahead buffer. */
359+
typeaheadDelay: SignalLike<number>;
360+
361+
/** The current value of the tree (the selected items). */
362+
value: WritableSignalLike<V[]>;
363+
322364
constructor(readonly inputs: TreeInputs<V>) {
323365
this.id = inputs.id;
324366
this.nav = inputs.nav;

0 commit comments

Comments
 (0)