@angular/aria 21.0.3 → 21.0.4

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.
Files changed (76) hide show
  1. package/fesm2022/_accordion-chunk.mjs +108 -0
  2. package/fesm2022/_accordion-chunk.mjs.map +1 -0
  3. package/fesm2022/_combobox-chunk.mjs +2 -2
  4. package/fesm2022/_combobox-chunk.mjs.map +1 -1
  5. package/fesm2022/_combobox-listbox-chunk.mjs +4 -286
  6. package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -1
  7. package/fesm2022/_combobox-tree-chunk.mjs +331 -0
  8. package/fesm2022/_combobox-tree-chunk.mjs.map +1 -0
  9. package/fesm2022/_deferred-content-chunk.mjs +124 -0
  10. package/fesm2022/_deferred-content-chunk.mjs.map +1 -0
  11. package/fesm2022/_expansion-chunk.mjs +41 -0
  12. package/fesm2022/_expansion-chunk.mjs.map +1 -0
  13. package/fesm2022/_list-chunk.mjs +287 -0
  14. package/fesm2022/_list-chunk.mjs.map +1 -0
  15. package/fesm2022/_list-navigation-chunk.mjs +1 -1
  16. package/fesm2022/_list-navigation-chunk.mjs.map +1 -1
  17. package/fesm2022/_menu-chunk.mjs +515 -0
  18. package/fesm2022/_menu-chunk.mjs.map +1 -0
  19. package/fesm2022/_pointer-event-manager-chunk.mjs +2 -82
  20. package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -1
  21. package/fesm2022/_signal-like-chunk.mjs +118 -0
  22. package/fesm2022/_signal-like-chunk.mjs.map +1 -0
  23. package/fesm2022/_tabs-chunk.mjs +159 -0
  24. package/fesm2022/_tabs-chunk.mjs.map +1 -0
  25. package/fesm2022/_toolbar-widget-group-chunk.mjs +148 -0
  26. package/fesm2022/_toolbar-widget-group-chunk.mjs.map +1 -0
  27. package/fesm2022/_widget-chunk.mjs +3 -2
  28. package/fesm2022/_widget-chunk.mjs.map +1 -1
  29. package/fesm2022/accordion.mjs +57 -52
  30. package/fesm2022/accordion.mjs.map +1 -1
  31. package/fesm2022/aria.mjs +1 -1
  32. package/fesm2022/aria.mjs.map +1 -1
  33. package/fesm2022/combobox.mjs +77 -40
  34. package/fesm2022/combobox.mjs.map +1 -1
  35. package/fesm2022/grid.mjs +70 -68
  36. package/fesm2022/grid.mjs.map +1 -1
  37. package/fesm2022/listbox.mjs +49 -47
  38. package/fesm2022/listbox.mjs.map +1 -1
  39. package/fesm2022/menu.mjs +69 -65
  40. package/fesm2022/menu.mjs.map +1 -1
  41. package/fesm2022/private.mjs +13 -1402
  42. package/fesm2022/private.mjs.map +1 -1
  43. package/fesm2022/tabs.mjs +49 -41
  44. package/fesm2022/tabs.mjs.map +1 -1
  45. package/fesm2022/toolbar.mjs +49 -45
  46. package/fesm2022/toolbar.mjs.map +1 -1
  47. package/fesm2022/tree.mjs +52 -44
  48. package/fesm2022/tree.mjs.map +1 -1
  49. package/package.json +2 -2
  50. package/types/_accordion-chunk.d.ts +100 -0
  51. package/types/_combobox-chunk.d.ts +187 -91
  52. package/types/_deferred-content-chunk.d.ts +42 -0
  53. package/types/_expansion-chunk.d.ts +40 -0
  54. package/types/_grid-chunk.d.ts +41 -41
  55. package/types/_keyboard-event-manager-chunk.d.ts +68 -0
  56. package/types/_list-chunk.d.ts +8 -9
  57. package/types/_list-navigation-chunk.d.ts +8 -101
  58. package/types/_listbox-chunk.d.ts +17 -16
  59. package/types/_menu-chunk.d.ts +267 -0
  60. package/types/_pointer-event-manager-chunk.d.ts +34 -0
  61. package/types/_tabs-chunk.d.ts +153 -0
  62. package/types/_toolbar-chunk.d.ts +124 -0
  63. package/types/_tree-chunk.d.ts +185 -0
  64. package/types/accordion.d.ts +13 -5
  65. package/types/aria.d.ts +1 -1
  66. package/types/combobox.d.ts +122 -6
  67. package/types/grid.d.ts +10 -0
  68. package/types/listbox.d.ts +17 -5
  69. package/types/menu.d.ts +23 -5
  70. package/types/private.d.ts +25 -885
  71. package/types/tabs.d.ts +24 -8
  72. package/types/toolbar.d.ts +12 -4
  73. package/types/tree.d.ts +16 -5
  74. package/fesm2022/_combobox-popup-chunk.mjs +0 -46
  75. package/fesm2022/_combobox-popup-chunk.mjs.map +0 -1
  76. package/types/_combobox-chunk.d2.ts +0 -193
@@ -1,13 +1,23 @@
1
- import { ComboboxPattern, ComboboxListboxControls, ComboboxTreeControls } from './_combobox-chunk.d2.ts';
2
- export { ComboboxDialogPattern, ComboboxInputs } from './_combobox-chunk.d2.ts';
1
+ import { ComboboxPattern, ComboboxListboxControls, ComboboxTreeControls } from './_combobox-chunk.js';
2
+ export { ComboboxDialogPattern, ComboboxInputs } from './_combobox-chunk.js';
3
3
  import { ListboxInputs, OptionPattern, ListboxPattern } from './_listbox-chunk.js';
4
4
  export { OptionInputs } from './_listbox-chunk.js';
5
- import * as _angular_core from '@angular/core';
6
- import { Signal, WritableSignal, OnDestroy } from '@angular/core';
7
- import { SignalLike, KeyboardEventManager, WritableSignalLike, ListNavigationItem, ListNavigationInputs, ListFocus, ListNavigation, PointerEventManager, ListFocusInputs, ListFocusItem } from './_list-navigation-chunk.js';
8
- export { convertGetterSetterToWritableSignalLike } from './_list-navigation-chunk.js';
9
- import { ListInputs, ListItem, List } from './_list-chunk.js';
5
+ import { SignalLike } from './_list-navigation-chunk.js';
6
+ export { WritableSignalLike, computed, convertGetterSetterToWritableSignalLike, linkedSignal, signal } from './_list-navigation-chunk.js';
7
+ export { MenuBarInputs, MenuBarPattern, MenuInputs, MenuItemInputs, MenuItemPattern, MenuPattern, MenuTriggerInputs, MenuTriggerPattern } from './_menu-chunk.js';
8
+ export { TabInputs, TabListInputs, TabListPattern, TabPanelInputs, TabPanelPattern, TabPattern } from './_tabs-chunk.js';
9
+ export { ToolbarInputs, ToolbarPattern, ToolbarWidgetGroupInputs, ToolbarWidgetGroupPattern, ToolbarWidgetInputs, ToolbarWidgetPattern } from './_toolbar-chunk.js';
10
+ export { AccordionGroupInputs, AccordionGroupPattern, AccordionPanelInputs, AccordionPanelPattern, AccordionTriggerInputs, AccordionTriggerPattern } from './_accordion-chunk.js';
11
+ import { TreeInputs, TreeItemPattern, TreePattern } from './_tree-chunk.js';
12
+ export { TreeItemInputs } from './_tree-chunk.js';
10
13
  export { GridCellInputs, GridCellPattern, GridCellWidgetInputs, GridCellWidgetPattern, GridInputs, GridPattern, GridRowInputs, GridRowPattern } from './_grid-chunk.js';
14
+ export { DeferredContent, DeferredContentAware } from './_deferred-content-chunk.js';
15
+ export { untracked } from '@angular/core/primitives/signals';
16
+ import './_keyboard-event-manager-chunk.js';
17
+ import './_pointer-event-manager-chunk.js';
18
+ import './_list-chunk.js';
19
+ import './_expansion-chunk.js';
20
+ import '@angular/core';
11
21
 
12
22
  type ComboboxListboxInputs<V> = ListboxInputs<V> & {
13
23
  /** The combobox controlling the listbox. */
@@ -16,17 +26,17 @@ type ComboboxListboxInputs<V> = ListboxInputs<V> & {
16
26
  declare class ComboboxListboxPattern<V> extends ListboxPattern<V> implements ComboboxListboxControls<OptionPattern<V>, V> {
17
27
  readonly inputs: ComboboxListboxInputs<V>;
18
28
  /** A unique identifier for the popup. */
19
- id: _angular_core.Signal<string>;
29
+ id: SignalLike<string>;
20
30
  /** The ARIA role for the listbox. */
21
- role: _angular_core.Signal<"listbox">;
31
+ role: SignalLike<"listbox">;
22
32
  /** The id of the active (focused) item in the listbox. */
23
- activeId: _angular_core.Signal<string | undefined>;
33
+ activeId: SignalLike<string | undefined>;
24
34
  /** The list of options in the listbox. */
25
35
  items: SignalLike<OptionPattern<V>[]>;
26
36
  /** The tab index for the listbox. Always -1 because the combobox handles focus. */
27
37
  tabIndex: SignalLike<-1 | 0>;
28
38
  /** Whether multiple items in the list can be selected at once. */
29
- multi: _angular_core.Signal<boolean>;
39
+ multi: SignalLike<boolean>;
30
40
  constructor(inputs: ComboboxListboxInputs<V>);
31
41
  /** Noop. The combobox handles keydown events. */
32
42
  onKeydown(_: KeyboardEvent): void;
@@ -64,838 +74,6 @@ declare class ComboboxListboxPattern<V> extends ListboxPattern<V> implements Com
64
74
  setValue: (value: V | undefined) => void;
65
75
  }
66
76
 
67
- /** The inputs for the MenuBarPattern class. */
68
- interface MenuBarInputs<V> extends ListInputs<MenuItemPattern<V>, V> {
69
- /** The menu items contained in the menu. */
70
- items: SignalLike<MenuItemPattern<V>[]>;
71
- /** Callback function triggered when a menu item is selected. */
72
- onSelect?: (value: V) => void;
73
- /** The text direction of the menu bar. */
74
- textDirection: SignalLike<'ltr' | 'rtl'>;
75
- }
76
- /** The inputs for the MenuPattern class. */
77
- interface MenuInputs<V> extends Omit<ListInputs<MenuItemPattern<V>, V>, 'values'> {
78
- /** The unique ID of the menu. */
79
- id: SignalLike<string>;
80
- /** The menu items contained in the menu. */
81
- items: SignalLike<MenuItemPattern<V>[]>;
82
- /** A reference to the parent menu or menu trigger. */
83
- parent: SignalLike<MenuTriggerPattern<V> | MenuItemPattern<V> | undefined>;
84
- /** Callback function triggered when a menu item is selected. */
85
- onSelect?: (value: V) => void;
86
- /** The text direction of the menu bar. */
87
- textDirection: SignalLike<'ltr' | 'rtl'>;
88
- /** The delay in milliseconds before expanding sub-menus on hover. */
89
- expansionDelay: SignalLike<number>;
90
- }
91
- /** The inputs for the MenuTriggerPattern class. */
92
- interface MenuTriggerInputs<V> {
93
- /** A reference to the menu trigger element. */
94
- element: SignalLike<HTMLElement | undefined>;
95
- /** A reference to the menu associated with the trigger. */
96
- menu: SignalLike<MenuPattern<V> | undefined>;
97
- /** The text direction of the menu bar. */
98
- textDirection: SignalLike<'ltr' | 'rtl'>;
99
- /** Whether the menu trigger is disabled. */
100
- disabled: SignalLike<boolean>;
101
- }
102
- /** The inputs for the MenuItemPattern class. */
103
- interface MenuItemInputs<V> extends Omit<ListItem<V>, 'index' | 'selectable'> {
104
- /** A reference to the parent menu or menu trigger. */
105
- parent: SignalLike<MenuPattern<V> | MenuBarPattern<V> | undefined>;
106
- /** A reference to the submenu associated with the menu item. */
107
- submenu: SignalLike<MenuPattern<V> | undefined>;
108
- }
109
- /** The menu ui pattern class. */
110
- declare class MenuPattern<V> {
111
- readonly inputs: MenuInputs<V>;
112
- /** The unique ID of the menu. */
113
- id: SignalLike<string>;
114
- /** The role of the menu. */
115
- role: () => string;
116
- /** Whether the menu is disabled. */
117
- disabled: () => boolean;
118
- /** Whether the menu is visible. */
119
- visible: Signal<boolean>;
120
- /** Controls list behavior for the menu items. */
121
- listBehavior: List<MenuItemPattern<V>, V>;
122
- /** Whether the menu or any of its child elements are currently focused. */
123
- isFocused: _angular_core.WritableSignal<boolean>;
124
- /** Whether the menu has received focus. */
125
- hasBeenFocused: _angular_core.WritableSignal<boolean>;
126
- /** Whether the menu trigger has been hovered. */
127
- hasBeenHovered: _angular_core.WritableSignal<boolean>;
128
- /** Timeout used to open sub-menus on hover. */
129
- _openTimeout: any;
130
- /** Timeout used to close sub-menus on hover out. */
131
- _closeTimeout: any;
132
- /** The tab index of the menu. */
133
- tabIndex: () => 0 | -1;
134
- /** Whether the menu should be focused on mouse over. */
135
- shouldFocus: Signal<boolean>;
136
- /** The key used to expand sub-menus. */
137
- private _expandKey;
138
- /** The key used to collapse sub-menus. */
139
- private _collapseKey;
140
- /** Represents the space key. Does nothing when the user is actively using typeahead. */
141
- dynamicSpaceKey: Signal<"" | " ">;
142
- /** The regexp used to decide if a key should trigger typeahead. */
143
- typeaheadRegexp: RegExp;
144
- /** The root of the menu. */
145
- root: Signal<MenuTriggerPattern<V> | MenuBarPattern<V> | MenuPattern<V> | undefined>;
146
- /** Handles keyboard events for the menu. */
147
- keydownManager: Signal<KeyboardEventManager<KeyboardEvent>>;
148
- constructor(inputs: MenuInputs<V>);
149
- /** Sets the default state for the menu. */
150
- setDefaultState(): void;
151
- /** Handles keyboard events for the menu. */
152
- onKeydown(event: KeyboardEvent): void;
153
- /** Handles mouseover events for the menu. */
154
- onMouseOver(event: MouseEvent): void;
155
- /** Closes the specified menu item after a delay. */
156
- private _closeItem;
157
- /** Opens the specified menu item after a delay. */
158
- private _openItem;
159
- /** Handles mouseout events for the menu. */
160
- onMouseOut(event: MouseEvent): void;
161
- /** Handles click events for the menu. */
162
- onClick(event: MouseEvent): void;
163
- /** Handles focusin events for the menu. */
164
- onFocusIn(): void;
165
- /** Handles the focusout event for the menu. */
166
- onFocusOut(event: FocusEvent): void;
167
- /** Focuses the previous menu item. */
168
- prev(): void;
169
- /** Focuses the next menu item. */
170
- next(): void;
171
- /** Focuses the first menu item. */
172
- first(): void;
173
- /** Focuses the last menu item. */
174
- last(): void;
175
- /** Triggers the active menu item. */
176
- trigger(): void;
177
- /** Submits the menu. */
178
- submit(item?: MenuItemPattern<V> | undefined): void;
179
- /** Collapses the current menu or focuses the previous item in the menubar. */
180
- collapse(): void;
181
- /** Expands the current menu or focuses the next item in the menubar. */
182
- expand(): void;
183
- /** Closes the menu. */
184
- close(): void;
185
- /** Closes the menu and all parent menus. */
186
- closeAll(): void;
187
- /** Clears any open or close timeouts for sub-menus. */
188
- _clearTimeouts(): void;
189
- /** Clears the open timeout. */
190
- _clearOpenTimeout(): void;
191
- /** Clears the close timeout. */
192
- _clearCloseTimeout(): void;
193
- }
194
- /** The menubar ui pattern class. */
195
- declare class MenuBarPattern<V> {
196
- readonly inputs: MenuBarInputs<V>;
197
- /** Controls list behavior for the menu items. */
198
- listBehavior: List<MenuItemPattern<V>, V>;
199
- /** The tab index of the menu. */
200
- tabIndex: () => 0 | -1;
201
- /** The key used to navigate to the next item. */
202
- private _nextKey;
203
- /** The key used to navigate to the previous item. */
204
- private _previousKey;
205
- /** Represents the space key. Does nothing when the user is actively using typeahead. */
206
- dynamicSpaceKey: Signal<"" | " ">;
207
- /** The regexp used to decide if a key should trigger typeahead. */
208
- typeaheadRegexp: RegExp;
209
- /** Whether the menubar or any of its children are currently focused. */
210
- isFocused: _angular_core.WritableSignal<boolean>;
211
- /** Whether the menubar has been focused. */
212
- hasBeenFocused: _angular_core.WritableSignal<boolean>;
213
- /** Whether the menubar is disabled. */
214
- disabled: () => boolean;
215
- /** Handles keyboard events for the menu. */
216
- keydownManager: Signal<KeyboardEventManager<KeyboardEvent>>;
217
- constructor(inputs: MenuBarInputs<V>);
218
- /** Sets the default state for the menubar. */
219
- setDefaultState(): void;
220
- /** Handles keyboard events for the menu. */
221
- onKeydown(event: KeyboardEvent): void;
222
- /** Handles click events for the menu bar. */
223
- onClick(event: MouseEvent): void;
224
- /** Handles mouseover events for the menu bar. */
225
- onMouseOver(event: MouseEvent): void;
226
- /** Handles focusin events for the menu bar. */
227
- onFocusIn(): void;
228
- /** Handles focusout events for the menu bar. */
229
- onFocusOut(event: FocusEvent): void;
230
- /** Goes to and optionally focuses the specified menu item. */
231
- goto(item: MenuItemPattern<V>, opts?: {
232
- focusElement?: boolean;
233
- }): void;
234
- /** Focuses the next menu item. */
235
- next(): void;
236
- /** Focuses the previous menu item. */
237
- prev(): void;
238
- /** Closes the menubar and refocuses the root menu bar item. */
239
- close(): void;
240
- }
241
- /** The menu trigger ui pattern class. */
242
- declare class MenuTriggerPattern<V> {
243
- readonly inputs: MenuTriggerInputs<V>;
244
- /** Whether the menu is expanded. */
245
- expanded: _angular_core.WritableSignal<boolean>;
246
- /** Whether the menu trigger has received focus. */
247
- hasBeenFocused: _angular_core.WritableSignal<boolean>;
248
- /** The role of the menu trigger. */
249
- role: () => string;
250
- /** Whether the menu trigger has a popup. */
251
- hasPopup: () => boolean;
252
- /** The menu associated with the trigger. */
253
- menu: SignalLike<MenuPattern<V> | undefined>;
254
- /** The tab index of the menu trigger. */
255
- tabIndex: Signal<-1 | 0>;
256
- /** Whether the menu trigger is disabled. */
257
- disabled: () => boolean;
258
- /** Handles keyboard events for the menu trigger. */
259
- keydownManager: Signal<KeyboardEventManager<KeyboardEvent>>;
260
- constructor(inputs: MenuTriggerInputs<V>);
261
- /** Handles keyboard events for the menu trigger. */
262
- onKeydown(event: KeyboardEvent): void;
263
- /** Handles click events for the menu trigger. */
264
- onClick(): void;
265
- /** Handles focusin events for the menu trigger. */
266
- onFocusIn(): void;
267
- /** Handles focusout events for the menu trigger. */
268
- onFocusOut(event: FocusEvent): void;
269
- /** Opens the menu. */
270
- open(opts?: {
271
- first?: boolean;
272
- last?: boolean;
273
- }): void;
274
- /** Closes the menu. */
275
- close(opts?: {
276
- refocus?: boolean;
277
- }): void;
278
- }
279
- /** The menu item ui pattern class. */
280
- declare class MenuItemPattern<V> implements ListItem<V> {
281
- readonly inputs: MenuItemInputs<V>;
282
- /** The value of the menu item. */
283
- value: SignalLike<V>;
284
- /** The unique ID of the menu item. */
285
- id: SignalLike<string>;
286
- /** Whether the menu item is disabled. */
287
- disabled: () => boolean;
288
- /** The search term for the menu item. */
289
- searchTerm: SignalLike<string>;
290
- /** The element of the menu item. */
291
- element: SignalLike<HTMLElement | undefined>;
292
- /** Whether the menu item is active. */
293
- active: Signal<boolean>;
294
- /** Whether the menu item has received focus. */
295
- hasBeenFocused: _angular_core.WritableSignal<boolean>;
296
- /** The tab index of the menu item. */
297
- tabIndex: Signal<0 | -1>;
298
- /** The position of the menu item in the menu. */
299
- index: Signal<number>;
300
- /** Whether the menu item is expanded. */
301
- expanded: Signal<boolean | null>;
302
- /** Whether the menu item is expanded. */
303
- _expanded: _angular_core.WritableSignal<boolean>;
304
- /** The ID of the menu that the menu item controls. */
305
- controls: _angular_core.WritableSignal<string | undefined>;
306
- /** The role of the menu item. */
307
- role: () => string;
308
- /** Whether the menu item has a popup. */
309
- hasPopup: Signal<boolean>;
310
- /** The submenu associated with the menu item. */
311
- submenu: SignalLike<MenuPattern<V> | undefined>;
312
- /** Whether the menu item is selectable. */
313
- selectable: SignalLike<boolean>;
314
- constructor(inputs: MenuItemInputs<V>);
315
- /** Opens the submenu. */
316
- open(opts?: {
317
- first?: boolean;
318
- last?: boolean;
319
- }): void;
320
- /** Closes the submenu. */
321
- close(opts?: {
322
- refocus?: boolean;
323
- }): void;
324
- /** Handles focusin events for the menu item. */
325
- onFocusIn(): void;
326
- }
327
-
328
- /** Represents an item that can be expanded or collapsed. */
329
- interface ExpansionItem {
330
- /** Whether the item is expandable. */
331
- expandable: SignalLike<boolean>;
332
- /** Whether the item is expanded. */
333
- expanded: WritableSignalLike<boolean>;
334
- /** Whether the expansion is disabled. */
335
- disabled: SignalLike<boolean>;
336
- }
337
- /** Represents the required inputs for an expansion behavior. */
338
- interface ListExpansionInputs {
339
- /** Whether multiple items can be expanded at once. */
340
- multiExpandable: SignalLike<boolean>;
341
- /** An array of expansion items. */
342
- items: SignalLike<ExpansionItem[]>;
343
- /** Whether all expansions are disabled. */
344
- disabled: SignalLike<boolean>;
345
- }
346
- /** Manages the expansion state of a list of items. */
347
- declare class ListExpansion {
348
- readonly inputs: ListExpansionInputs;
349
- constructor(inputs: ListExpansionInputs);
350
- /** Opens the specified item. */
351
- open(item: ExpansionItem): boolean;
352
- /** Closes the specified item. */
353
- close(item: ExpansionItem): boolean;
354
- /** Toggles the expansion state of the specified item. */
355
- toggle(item: ExpansionItem): boolean;
356
- /** Opens all focusable items in the list. */
357
- openAll(): void;
358
- /** Closes all focusable items in the list. */
359
- closeAll(): void;
360
- /** Checks whether the specified item is expandable / collapsible. */
361
- isExpandable(item: ExpansionItem): boolean;
362
- }
363
-
364
- /** Represents the required inputs for the label control. */
365
- interface LabelControlInputs {
366
- /** The default `aria-labelledby` ids. */
367
- defaultLabelledBy: SignalLike<string[]>;
368
- }
369
- /** Represents the optional inputs for the label control. */
370
- interface LabelControlOptionalInputs {
371
- /** The `aria-label`. */
372
- label?: SignalLike<string | undefined>;
373
- /** The user-provided `aria-labelledby` ids. */
374
- labelledBy?: SignalLike<string[]>;
375
- }
376
- /** Controls label and description of an element. */
377
- declare class LabelControl {
378
- readonly inputs: LabelControlInputs & LabelControlOptionalInputs;
379
- /** The `aria-label`. */
380
- readonly label: _angular_core.Signal<string | undefined>;
381
- /** The `aria-labelledby` ids. */
382
- readonly labelledBy: _angular_core.Signal<string[]>;
383
- constructor(inputs: LabelControlInputs & LabelControlOptionalInputs);
384
- }
385
-
386
- /** The required inputs to tabs. */
387
- interface TabInputs extends Omit<ListNavigationItem, 'index'>, Omit<ExpansionItem, 'expandable'> {
388
- /** The parent tablist that controls the tab. */
389
- tablist: SignalLike<TabListPattern>;
390
- /** The remote tabpanel controlled by the tab. */
391
- tabpanel: SignalLike<TabPanelPattern | undefined>;
392
- /** The remote tabpanel unique identifier. */
393
- value: SignalLike<string>;
394
- }
395
- /** A tab in a tablist. */
396
- declare class TabPattern {
397
- readonly inputs: TabInputs;
398
- /** A global unique identifier for the tab. */
399
- readonly id: SignalLike<string>;
400
- /** The index of the tab. */
401
- readonly index: _angular_core.Signal<number>;
402
- /** The remote tabpanel unique identifier. */
403
- readonly value: SignalLike<string>;
404
- /** Whether the tab is disabled. */
405
- readonly disabled: SignalLike<boolean>;
406
- /** The html element that should receive focus. */
407
- readonly element: SignalLike<HTMLElement>;
408
- /** Whether this tab has expandable panel. */
409
- readonly expandable: SignalLike<boolean>;
410
- /** Whether the tab panel is expanded. */
411
- readonly expanded: WritableSignalLike<boolean>;
412
- /** Whether the tab is active. */
413
- readonly active: _angular_core.Signal<boolean>;
414
- /** Whether the tab is selected. */
415
- readonly selected: _angular_core.Signal<boolean>;
416
- /** The tab index of the tab. */
417
- readonly tabIndex: _angular_core.Signal<0 | -1>;
418
- /** The id of the tabpanel associated with the tab. */
419
- readonly controls: _angular_core.Signal<string | undefined>;
420
- constructor(inputs: TabInputs);
421
- /** Opens the tab. */
422
- open(): boolean;
423
- }
424
- /** The required inputs for the tabpanel. */
425
- interface TabPanelInputs extends LabelControlOptionalInputs {
426
- /** A global unique identifier for the tabpanel. */
427
- id: SignalLike<string>;
428
- /** The tab that controls this tabpanel. */
429
- tab: SignalLike<TabPattern | undefined>;
430
- /** A local unique identifier for the tabpanel. */
431
- value: SignalLike<string>;
432
- }
433
- /** A tabpanel associated with a tab. */
434
- declare class TabPanelPattern {
435
- readonly inputs: TabPanelInputs;
436
- /** A global unique identifier for the tabpanel. */
437
- readonly id: SignalLike<string>;
438
- /** A local unique identifier for the tabpanel. */
439
- readonly value: SignalLike<string>;
440
- /** Controls label for this tabpanel. */
441
- readonly labelManager: LabelControl;
442
- /** Whether the tabpanel is hidden. */
443
- readonly hidden: _angular_core.Signal<boolean>;
444
- /** The tab index of this tabpanel. */
445
- readonly tabIndex: _angular_core.Signal<-1 | 0>;
446
- /** The aria-labelledby value for this tabpanel. */
447
- readonly labelledBy: _angular_core.Signal<string | undefined>;
448
- constructor(inputs: TabPanelInputs);
449
- }
450
- /** The required inputs for the tablist. */
451
- interface TabListInputs extends Omit<ListNavigationInputs<TabPattern>, 'multi'>, Omit<ListExpansionInputs, 'multiExpandable' | 'items'> {
452
- /** The selection strategy used by the tablist. */
453
- selectionMode: SignalLike<'follow' | 'explicit'>;
454
- }
455
- /** Controls the state of a tablist. */
456
- declare class TabListPattern {
457
- readonly inputs: TabListInputs;
458
- /** The list focus behavior for the tablist. */
459
- readonly focusBehavior: ListFocus<TabPattern>;
460
- /** The list navigation behavior for the tablist. */
461
- readonly navigationBehavior: ListNavigation<TabPattern>;
462
- /** Controls expansion for the tablist. */
463
- readonly expansionBehavior: ListExpansion;
464
- /** The currently active tab. */
465
- readonly activeTab: SignalLike<TabPattern | undefined>;
466
- /** The currently selected tab. */
467
- readonly selectedTab: WritableSignal<TabPattern | undefined>;
468
- /** Whether the tablist is vertically or horizontally oriented. */
469
- readonly orientation: SignalLike<'vertical' | 'horizontal'>;
470
- /** Whether the tablist is disabled. */
471
- readonly disabled: SignalLike<boolean>;
472
- /** The tab index of the tablist. */
473
- readonly tabIndex: _angular_core.Signal<0 | -1>;
474
- /** The id of the current active tab. */
475
- readonly activeDescendant: _angular_core.Signal<string | undefined>;
476
- /** Whether selection should follow focus. */
477
- readonly followFocus: _angular_core.Signal<boolean>;
478
- /** The key used to navigate to the previous tab in the tablist. */
479
- readonly prevKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
480
- /** The key used to navigate to the next item in the list. */
481
- readonly nextKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
482
- /** The keydown event manager for the tablist. */
483
- readonly keydown: _angular_core.Signal<KeyboardEventManager<KeyboardEvent>>;
484
- /** The pointerdown event manager for the tablist. */
485
- readonly pointerdown: _angular_core.Signal<PointerEventManager<PointerEvent>>;
486
- constructor(inputs: TabListInputs);
487
- /**
488
- * Sets the tablist to its default initial state.
489
- *
490
- * Sets the active index of the tablist to the first focusable selected
491
- * tab if one exists. Otherwise, sets focus to the first focusable tab.
492
- *
493
- * This method should be called once the tablist and its tabs are properly initialized.
494
- */
495
- setDefaultState(): void;
496
- /** Handles keydown events for the tablist. */
497
- onKeydown(event: KeyboardEvent): void;
498
- /** The pointerdown event manager for the tablist. */
499
- onPointerdown(event: PointerEvent): void;
500
- /** Opens the tab by given value. */
501
- open(value: string): boolean;
502
- /** Opens the given tab or the current active tab. */
503
- open(tab?: TabPattern): boolean;
504
- /** Executes a navigation operation and expand the active tab if needed. */
505
- private _navigate;
506
- /** Returns the tab item associated with the given pointer event. */
507
- private _getItem;
508
- }
509
-
510
- /** Represents the required inputs for a toolbar widget group. */
511
- interface ToolbarWidgetGroupInputs<T extends ListItem<V>, V> {
512
- /** A reference to the parent toolbar. */
513
- toolbar: SignalLike<ToolbarPattern<V> | undefined>;
514
- /** Whether the widget group is disabled. */
515
- disabled: SignalLike<boolean>;
516
- /** The list of items within the widget group. */
517
- items: SignalLike<T[]>;
518
- /** Whether the group allows multiple widgets to be selected. */
519
- multi: SignalLike<boolean>;
520
- }
521
- /** A group of widgets within a toolbar that provides nested navigation. */
522
- declare class ToolbarWidgetGroupPattern<T extends ListItem<V>, V> {
523
- readonly inputs: ToolbarWidgetGroupInputs<T, V>;
524
- /** Whether the widget is disabled. */
525
- readonly disabled: () => boolean;
526
- /** A reference to the parent toolbar. */
527
- readonly toolbar: () => ToolbarPattern<V> | undefined;
528
- /** Whether the group allows multiple widgets to be selected. */
529
- readonly multi: () => boolean;
530
- readonly searchTerm: () => string;
531
- readonly value: () => V;
532
- readonly selectable: () => boolean;
533
- readonly element: () => undefined;
534
- constructor(inputs: ToolbarWidgetGroupInputs<T, V>);
535
- }
536
-
537
- /** Represents the required inputs for a toolbar widget in a toolbar. */
538
- interface ToolbarWidgetInputs<V> extends Omit<ListItem<V>, 'searchTerm' | 'index' | 'selectable'> {
539
- /** A reference to the parent toolbar. */
540
- toolbar: SignalLike<ToolbarPattern<V>>;
541
- /** A reference to the parent widget group. */
542
- group: SignalLike<ToolbarWidgetGroupPattern<ToolbarWidgetPattern<V>, V> | undefined>;
543
- }
544
- declare class ToolbarWidgetPattern<V> implements ListItem<V> {
545
- readonly inputs: ToolbarWidgetInputs<V>;
546
- /** A unique identifier for the widget. */
547
- readonly id: () => string;
548
- /** The html element that should receive focus. */
549
- readonly element: () => HTMLElement | undefined;
550
- /** Whether the widget is disabled. */
551
- readonly disabled: () => boolean;
552
- /** A reference to the parent toolbar. */
553
- readonly group: () => ToolbarWidgetGroupPattern<ToolbarWidgetPattern<V>, V> | undefined;
554
- /** A reference to the toolbar containing the widget. */
555
- readonly toolbar: () => ToolbarPattern<V>;
556
- /** The tabindex of the widget. */
557
- readonly tabIndex: _angular_core.Signal<0 | -1>;
558
- /** The text used by the typeahead search. */
559
- readonly searchTerm: () => string;
560
- /** The value associated with the widget. */
561
- readonly value: () => V;
562
- /** Whether the widget is selectable. */
563
- readonly selectable: () => boolean;
564
- /** The position of the widget within the toolbar. */
565
- readonly index: _angular_core.Signal<number>;
566
- /** Whether the widget is selected (only relevant in a selection group). */
567
- readonly selected: _angular_core.Signal<boolean>;
568
- /** Whether the widget is currently the active one (focused). */
569
- readonly active: SignalLike<boolean>;
570
- constructor(inputs: ToolbarWidgetInputs<V>);
571
- }
572
-
573
- /** Represents the required inputs for a toolbar. */
574
- type ToolbarInputs<V> = Omit<ListInputs<ToolbarWidgetPattern<V>, V>, 'multi' | 'typeaheadDelay' | 'selectionMode' | 'focusMode'> & {
575
- /** A function that returns the toolbar item associated with a given element. */
576
- getItem: (e: Element) => ToolbarWidgetPattern<V> | undefined;
577
- };
578
- /** Controls the state of a toolbar. */
579
- declare class ToolbarPattern<V> {
580
- readonly inputs: ToolbarInputs<V>;
581
- /** The list behavior for the toolbar. */
582
- readonly listBehavior: List<ToolbarWidgetPattern<V>, V>;
583
- /** Whether the tablist is vertically or horizontally oriented. */
584
- readonly orientation: SignalLike<'vertical' | 'horizontal'>;
585
- /** Whether disabled items in the group should be focusable. */
586
- readonly softDisabled: SignalLike<boolean>;
587
- /** Whether the toolbar is disabled. */
588
- readonly disabled: _angular_core.Signal<boolean>;
589
- /** The tab index of the toolbar (if using activedescendant). */
590
- readonly tabIndex: _angular_core.Signal<0 | -1>;
591
- /** The id of the current active widget (if using activedescendant). */
592
- readonly activeDescendant: _angular_core.Signal<string | undefined>;
593
- /** The currently active item in the toolbar. */
594
- readonly activeItem: () => ToolbarWidgetPattern<V> | undefined;
595
- /** The key used to navigate to the previous widget. */
596
- private readonly _prevKey;
597
- /** The key used to navigate to the next widget. */
598
- private readonly _nextKey;
599
- /** The alternate key used to navigate to the previous widget. */
600
- private readonly _altPrevKey;
601
- /** The alternate key used to navigate to the next widget. */
602
- private readonly _altNextKey;
603
- /** The keydown event manager for the toolbar. */
604
- private readonly _keydown;
605
- /** Navigates to the next widget in a widget group. */
606
- private _groupNext;
607
- /** Navigates to the previous widget in a widget group. */
608
- private _groupPrev;
609
- /** Navigates to the widget targeted by a pointer event. */
610
- private _goto;
611
- select(): void;
612
- constructor(inputs: ToolbarInputs<V>);
613
- /** Handles keydown events for the toolbar. */
614
- onKeydown(event: KeyboardEvent): void;
615
- onPointerdown(event: PointerEvent): void;
616
- /** Handles click events for the toolbar. */
617
- onClick(event: MouseEvent): void;
618
- /**
619
- * Sets the toolbar to its default initial state.
620
- *
621
- * Sets the active index to the selected widget if one exists and is focusable.
622
- * Otherwise, sets the active index to the first focusable widget.
623
- */
624
- setDefaultState(): void;
625
- /** Validates the state of the toolbar and returns a list of accessibility violations. */
626
- validate(): string[];
627
- }
628
-
629
- /** Inputs of the AccordionGroupPattern. */
630
- interface AccordionGroupInputs extends Omit<ListNavigationInputs<AccordionTriggerPattern> & ListFocusInputs<AccordionTriggerPattern> & Omit<ListExpansionInputs, 'items'>, 'focusMode'> {
631
- /** A function that returns the trigger associated with a given element. */
632
- getItem: (e: Element | null | undefined) => AccordionTriggerPattern | undefined;
633
- }
634
- /** A pattern controls the nested Accordions. */
635
- declare class AccordionGroupPattern {
636
- readonly inputs: AccordionGroupInputs;
637
- /** Controls navigation for the group. */
638
- readonly navigationBehavior: ListNavigation<AccordionTriggerPattern>;
639
- /** Controls focus for the group. */
640
- readonly focusBehavior: ListFocus<AccordionTriggerPattern>;
641
- /** Controls expansion for the group. */
642
- readonly expansionBehavior: ListExpansion;
643
- constructor(inputs: AccordionGroupInputs);
644
- /** The key used to navigate to the previous accordion trigger. */
645
- prevKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
646
- /** The key used to navigate to the next accordion trigger. */
647
- nextKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
648
- /** The keydown event manager for the accordion trigger. */
649
- keydown: _angular_core.Signal<KeyboardEventManager<KeyboardEvent>>;
650
- /** The pointerdown event manager for the accordion trigger. */
651
- pointerdown: _angular_core.Signal<PointerEventManager<PointerEvent>>;
652
- /** Handles keydown events on the trigger, delegating to the group if not disabled. */
653
- onKeydown(event: KeyboardEvent): void;
654
- /** Handles pointerdown events on the trigger, delegating to the group if not disabled. */
655
- onPointerdown(event: PointerEvent): void;
656
- /** Handles focus events on the trigger. This ensures the tabbing changes the active index. */
657
- onFocus(event: FocusEvent): void;
658
- /** Toggles the expansion state of the active accordion item. */
659
- toggle(): void;
660
- }
661
- /** Inputs for the AccordionTriggerPattern. */
662
- interface AccordionTriggerInputs extends Omit<ListNavigationItem & ListFocusItem, 'index'>, Omit<ExpansionItem, 'expandable'> {
663
- /** A local unique identifier for the trigger's corresponding panel. */
664
- panelId: SignalLike<string>;
665
- /** The parent accordion group that controls this trigger. */
666
- accordionGroup: SignalLike<AccordionGroupPattern>;
667
- /** The accordion panel controlled by this trigger. */
668
- accordionPanel: SignalLike<AccordionPanelPattern | undefined>;
669
- }
670
- /** A pattern controls the expansion state of an accordion. */
671
- declare class AccordionTriggerPattern implements ListNavigationItem, ListFocusItem, ExpansionItem {
672
- readonly inputs: AccordionTriggerInputs;
673
- /** A unique identifier for this trigger. */
674
- readonly id: SignalLike<string>;
675
- /** A reference to the trigger element. */
676
- readonly element: SignalLike<HTMLElement>;
677
- /** Whether this trigger has expandable panel. */
678
- readonly expandable: SignalLike<boolean>;
679
- /** Whether the corresponding panel is expanded. */
680
- readonly expanded: WritableSignalLike<boolean>;
681
- /** Whether the trigger is active. */
682
- readonly active: _angular_core.Signal<boolean>;
683
- /** Id of the accordion panel controlled by the trigger. */
684
- readonly controls: _angular_core.Signal<string | undefined>;
685
- /** The tabindex of the trigger. */
686
- readonly tabIndex: _angular_core.Signal<-1 | 0>;
687
- /** Whether the trigger is disabled. Disabling an accordion group disables all the triggers. */
688
- readonly disabled: _angular_core.Signal<boolean>;
689
- /** Whether the trigger is hard disabled. */
690
- readonly hardDisabled: _angular_core.Signal<boolean>;
691
- /** The index of the trigger within its accordion group. */
692
- readonly index: _angular_core.Signal<number>;
693
- constructor(inputs: AccordionTriggerInputs);
694
- /** Opens the accordion panel. */
695
- open(): void;
696
- /** Closes the accordion panel. */
697
- close(): void;
698
- /** Toggles the accordion panel. */
699
- toggle(): void;
700
- }
701
- /** Represents the required inputs for the AccordionPanelPattern. */
702
- interface AccordionPanelInputs {
703
- /** A global unique identifier for the panel. */
704
- id: SignalLike<string>;
705
- /** A local unique identifier for the panel, matching its trigger's panelId. */
706
- panelId: SignalLike<string>;
707
- /** The parent accordion trigger that controls this panel. */
708
- accordionTrigger: SignalLike<AccordionTriggerPattern | undefined>;
709
- }
710
- /** Represents an accordion panel. */
711
- declare class AccordionPanelPattern {
712
- readonly inputs: AccordionPanelInputs;
713
- /** A global unique identifier for the panel. */
714
- id: SignalLike<string>;
715
- /** The parent accordion trigger that controls this panel. */
716
- accordionTrigger: SignalLike<AccordionTriggerPattern | undefined>;
717
- /** Whether the accordion panel is hidden. True if the associated trigger is not expanded. */
718
- hidden: SignalLike<boolean>;
719
- constructor(inputs: AccordionPanelInputs);
720
- }
721
-
722
- /** Represents the required inputs for a tree item. */
723
- interface TreeItemInputs<V> extends Omit<ListItem<V>, 'index'>, Omit<ExpansionItem, 'expandable'> {
724
- /** The parent item. */
725
- parent: SignalLike<TreeItemPattern<V> | TreePattern<V>>;
726
- /** Whether this item has children. Children can be lazily loaded. */
727
- hasChildren: SignalLike<boolean>;
728
- /** The children items. */
729
- children: SignalLike<TreeItemPattern<V>[]>;
730
- /** The tree pattern this item belongs to. */
731
- tree: SignalLike<TreePattern<V>>;
732
- }
733
- /**
734
- * Represents an item in a Tree.
735
- */
736
- declare class TreeItemPattern<V> implements ListItem<V>, ExpansionItem {
737
- readonly inputs: TreeItemInputs<V>;
738
- /** A unique identifier for this item. */
739
- readonly id: SignalLike<string>;
740
- /** The value of this item. */
741
- readonly value: SignalLike<V>;
742
- /** A reference to the item element. */
743
- readonly element: SignalLike<HTMLElement>;
744
- /** Whether the item is disabled. */
745
- readonly disabled: SignalLike<boolean>;
746
- /** The text used by the typeahead search. */
747
- readonly searchTerm: SignalLike<string>;
748
- /** The tree pattern this item belongs to. */
749
- readonly tree: SignalLike<TreePattern<V>>;
750
- /** The parent item. */
751
- readonly parent: SignalLike<TreeItemPattern<V> | TreePattern<V>>;
752
- /** The children items. */
753
- readonly children: SignalLike<TreeItemPattern<V>[]>;
754
- /** The position of this item among its siblings. */
755
- readonly index: _angular_core.Signal<number>;
756
- /** Controls expansion for child items. */
757
- readonly expansionBehavior: ListExpansion;
758
- /** Whether the item is expandable. It's expandable if children item exist. */
759
- readonly expandable: SignalLike<boolean>;
760
- /** Whether the item is selectable. */
761
- readonly selectable: SignalLike<boolean>;
762
- /** Whether the item is expanded. */
763
- readonly expanded: WritableSignalLike<boolean>;
764
- /** The level of the current item in a tree. */
765
- readonly level: SignalLike<number>;
766
- /** Whether this item is visible. */
767
- readonly visible: SignalLike<boolean>;
768
- /** The number of items under the same parent at the same level. */
769
- readonly setsize: _angular_core.Signal<number>;
770
- /** The position of this item among its siblings (1-based). */
771
- readonly posinset: _angular_core.Signal<number>;
772
- /** Whether the item is active. */
773
- readonly active: _angular_core.Signal<boolean>;
774
- /** The tab index of the item. */
775
- readonly tabIndex: _angular_core.Signal<0 | -1>;
776
- /** Whether the item is selected. */
777
- readonly selected: SignalLike<boolean | undefined>;
778
- /** The current type of this item. */
779
- readonly current: SignalLike<string | undefined>;
780
- constructor(inputs: TreeItemInputs<V>);
781
- }
782
- /** The selection operations that the tree can perform. */
783
- interface SelectOptions {
784
- toggle?: boolean;
785
- selectOne?: boolean;
786
- selectRange?: boolean;
787
- anchor?: boolean;
788
- }
789
- /** Represents the required inputs for a tree. */
790
- interface TreeInputs<V> extends Omit<ListInputs<TreeItemPattern<V>, V>, 'items'> {
791
- /** A unique identifier for the tree. */
792
- id: SignalLike<string>;
793
- /** All items in the tree, in document order (DFS-like, a flattened list). */
794
- allItems: SignalLike<TreeItemPattern<V>[]>;
795
- /** Whether the tree is in navigation mode. */
796
- nav: SignalLike<boolean>;
797
- /** The aria-current type. */
798
- currentType: SignalLike<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>;
799
- }
800
- /** Controls the state and interactions of a tree view. */
801
- declare class TreePattern<V> implements TreeInputs<V> {
802
- readonly inputs: TreeInputs<V>;
803
- /** The list behavior for the tree. */
804
- readonly listBehavior: List<TreeItemPattern<V>, V>;
805
- /** Controls expansion for direct children of the tree root (top-level items). */
806
- readonly expansionBehavior: ListExpansion;
807
- /** The root level is 0. */
808
- readonly level: () => number;
809
- /** The root is always expanded. */
810
- readonly expanded: () => boolean;
811
- /** The root is always visible. */
812
- readonly visible: () => boolean;
813
- /** The tab index of the tree. */
814
- readonly tabIndex: SignalLike<-1 | 0>;
815
- /** The id of the current active item. */
816
- readonly activeDescendant: _angular_core.Signal<string | undefined>;
817
- /** The direct children of the root (top-level tree items). */
818
- readonly children: _angular_core.Signal<TreeItemPattern<V>[]>;
819
- /** All currently visible tree items. An item is visible if their parent is expanded. */
820
- readonly visibleItems: _angular_core.Signal<TreeItemPattern<V>[]>;
821
- /** Whether the tree selection follows focus. */
822
- readonly followFocus: _angular_core.Signal<boolean>;
823
- /** Whether the tree direction is RTL. */
824
- readonly isRtl: _angular_core.Signal<boolean>;
825
- /** The key for navigating to the previous item. */
826
- readonly prevKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
827
- /** The key for navigating to the next item. */
828
- readonly nextKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
829
- /** The key for collapsing an item or moving to its parent. */
830
- readonly collapseKey: _angular_core.Signal<"ArrowUp" | "ArrowRight" | "ArrowLeft">;
831
- /** The key for expanding an item or moving to its first child. */
832
- readonly expandKey: _angular_core.Signal<"ArrowRight" | "ArrowLeft" | "ArrowDown">;
833
- /** Represents the space key. Does nothing when the user is actively using typeahead. */
834
- readonly dynamicSpaceKey: _angular_core.Signal<"" | " ">;
835
- /** Regular expression to match characters for typeahead. */
836
- readonly typeaheadRegexp: RegExp;
837
- /** The keydown event manager for the tree. */
838
- readonly keydown: _angular_core.Signal<KeyboardEventManager<KeyboardEvent>>;
839
- /** The pointerdown event manager for the tree. */
840
- pointerdown: _angular_core.Signal<PointerEventManager<PointerEvent>>;
841
- /** A unique identifier for the tree. */
842
- readonly id: SignalLike<string>;
843
- /** The host native element. */
844
- readonly element: SignalLike<HTMLElement>;
845
- /** Whether the tree is in navigation mode. */
846
- readonly nav: SignalLike<boolean>;
847
- /** The aria-current type. */
848
- readonly currentType: SignalLike<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>;
849
- /** All items in the tree, in document order (DFS-like, a flattened list). */
850
- readonly allItems: SignalLike<TreeItemPattern<V>[]>;
851
- /** The focus strategy used by the tree. */
852
- readonly focusMode: SignalLike<'roving' | 'activedescendant'>;
853
- /** Whether the tree is disabled. */
854
- readonly disabled: SignalLike<boolean>;
855
- /** The currently active item in the tree. */
856
- readonly activeItem: WritableSignalLike<TreeItemPattern<V> | undefined>;
857
- /** Whether disabled items should be focusable. */
858
- readonly softDisabled: SignalLike<boolean>;
859
- /** Whether the focus should wrap when navigating past the first or last item. */
860
- readonly wrap: SignalLike<boolean>;
861
- /** The orientation of the tree. */
862
- readonly orientation: SignalLike<'vertical' | 'horizontal'>;
863
- /** The text direction of the tree. */
864
- readonly textDirection: SignalLike<'ltr' | 'rtl'>;
865
- /** Whether multiple items can be selected at the same time. */
866
- readonly multi: SignalLike<boolean>;
867
- /** The selection mode of the tree. */
868
- readonly selectionMode: SignalLike<'follow' | 'explicit'>;
869
- /** The delay in milliseconds to wait before clearing the typeahead buffer. */
870
- readonly typeaheadDelay: SignalLike<number>;
871
- /** The current selected items of the tree. */
872
- readonly values: WritableSignalLike<V[]>;
873
- constructor(inputs: TreeInputs<V>);
874
- /**
875
- * Sets the tree to it's default initial state.
876
- *
877
- * Sets the active index of the tree to the first focusable selected tree item if one exists.
878
- * Otherwise, sets focus to the first focusable tree item.
879
- */
880
- setDefaultState(): void;
881
- /** Handles keydown events on the tree. */
882
- onKeydown(event: KeyboardEvent): void;
883
- /** Handles pointerdown events on the tree. */
884
- onPointerdown(event: PointerEvent): void;
885
- /** Navigates to the given tree item in the tree. */
886
- goto(e: PointerEvent, opts?: SelectOptions): void;
887
- /** Toggles to expand or collapse a tree item. */
888
- toggleExpansion(item?: TreeItemPattern<V>): void;
889
- /** Expands a tree item. */
890
- expand(opts?: SelectOptions): void;
891
- /** Expands all sibling tree items including itself. */
892
- expandSiblings(item?: TreeItemPattern<V>): void;
893
- /** Collapses a tree item. */
894
- collapse(opts?: SelectOptions): void;
895
- /** Retrieves the TreeItemPattern associated with a DOM event, if any. */
896
- protected _getItem(event: Event): TreeItemPattern<V> | undefined;
897
- }
898
-
899
77
  type ComboboxTreeInputs<V> = TreeInputs<V> & {
900
78
  /** The combobox controlling the tree. */
901
79
  combobox: SignalLike<ComboboxPattern<TreeItemPattern<V>, V> | undefined>;
@@ -906,11 +84,11 @@ declare class ComboboxTreePattern<V> extends TreePattern<V> implements ComboboxT
906
84
  isItemCollapsible: () => boolean;
907
85
  /** The ARIA role for the tree. */
908
86
  role: () => "tree";
909
- activeId: _angular_core.Signal<string | undefined>;
87
+ activeId: SignalLike<string | undefined>;
910
88
  /** Returns the currently active (focused) item in the tree. */
911
89
  getActiveItem: () => TreeItemPattern<V> | undefined;
912
90
  /** The list of items in the tree. */
913
- items: _angular_core.Signal<TreeItemPattern<V>[]>;
91
+ items: SignalLike<TreeItemPattern<V>[]>;
914
92
  /** The tab index for the tree. Always -1 because the combobox handles focus. */
915
93
  tabIndex: SignalLike<-1 | 0>;
916
94
  constructor(inputs: ComboboxTreeInputs<V>);
@@ -958,43 +136,5 @@ declare class ComboboxTreePattern<V> extends TreePattern<V> implements ComboboxT
958
136
  isItemSelectable: (item?: TreeItemPattern<V> | undefined) => boolean;
959
137
  }
960
138
 
961
- /**
962
- * A container directive controls the visibility of its content.
963
- */
964
- declare class DeferredContentAware {
965
- readonly contentVisible: _angular_core.WritableSignal<boolean>;
966
- readonly preserveContent: _angular_core.ModelSignal<boolean>;
967
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeferredContentAware, never>;
968
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DeferredContentAware, never, never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; }, { "preserveContent": "preserveContentChange"; }, never, never, true, never>;
969
- }
970
- /**
971
- * DeferredContent loads/unloads the content based on the visibility.
972
- * The visibilty signal is sent from a parent directive implements
973
- * DeferredContentAware.
974
- *
975
- * Use this directive as a host directive. For example:
976
- *
977
- * ```ts
978
- * @Directive({
979
- * selector: 'ng-template[AccordionContent]',
980
- * hostDirectives: [DeferredContent],
981
- * })
982
- * class AccordionContent {}
983
- * ```
984
- */
985
- declare class DeferredContent implements OnDestroy {
986
- private readonly _deferredContentAware;
987
- private readonly _templateRef;
988
- private readonly _viewContainerRef;
989
- private _currentViewRef;
990
- private _isRendered;
991
- readonly deferredContentAware: _angular_core.WritableSignal<DeferredContentAware | null>;
992
- constructor();
993
- ngOnDestroy(): void;
994
- private _destroyContent;
995
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeferredContent, never>;
996
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DeferredContent, never, never, {}, {}, never, never, true, never>;
997
- }
998
-
999
- export { AccordionGroupPattern, AccordionPanelPattern, AccordionTriggerPattern, ComboboxListboxControls, ComboboxListboxPattern, ComboboxPattern, ComboboxTreeControls, ComboboxTreePattern, DeferredContent, DeferredContentAware, ListboxInputs, ListboxPattern, MenuBarPattern, MenuItemPattern, MenuPattern, MenuTriggerPattern, OptionPattern, SignalLike, TabListPattern, TabPanelPattern, TabPattern, ToolbarPattern, ToolbarWidgetGroupPattern, ToolbarWidgetPattern, TreeItemPattern, TreePattern, WritableSignalLike };
1000
- export type { AccordionGroupInputs, AccordionPanelInputs, AccordionTriggerInputs, ComboboxListboxInputs, ComboboxTreeInputs, MenuBarInputs, MenuInputs, MenuItemInputs, MenuTriggerInputs, TabInputs, TabListInputs, TabPanelInputs, ToolbarInputs, ToolbarWidgetGroupInputs, ToolbarWidgetInputs, TreeInputs, TreeItemInputs };
139
+ export { ComboboxListboxControls, ComboboxListboxPattern, ComboboxPattern, ComboboxTreeControls, ComboboxTreePattern, ListboxInputs, ListboxPattern, OptionPattern, SignalLike, TreeInputs, TreeItemPattern, TreePattern };
140
+ export type { ComboboxListboxInputs, ComboboxTreeInputs };