@angular/aria 21.0.0-rc.0 → 21.0.0-rc.2

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 (48) hide show
  1. package/_adev_assets/aria-accordion.json +443 -59
  2. package/_adev_assets/aria-combobox.json +345 -37
  3. package/_adev_assets/aria-grid.json +408 -71
  4. package/_adev_assets/aria-listbox.json +115 -35
  5. package/_adev_assets/aria-menu.json +492 -167
  6. package/_adev_assets/aria-tabs.json +272 -88
  7. package/_adev_assets/aria-toolbar.json +151 -133
  8. package/_adev_assets/aria-tree.json +182 -35
  9. package/fesm2022/_widget-chunk.mjs +643 -190
  10. package/fesm2022/_widget-chunk.mjs.map +1 -1
  11. package/fesm2022/accordion.mjs +129 -77
  12. package/fesm2022/accordion.mjs.map +1 -1
  13. package/fesm2022/aria.mjs +1 -1
  14. package/fesm2022/aria.mjs.map +1 -1
  15. package/fesm2022/combobox.mjs +140 -27
  16. package/fesm2022/combobox.mjs.map +1 -1
  17. package/fesm2022/grid.mjs +254 -68
  18. package/fesm2022/grid.mjs.map +1 -1
  19. package/fesm2022/listbox.mjs +54 -44
  20. package/fesm2022/listbox.mjs.map +1 -1
  21. package/fesm2022/menu.mjs +270 -108
  22. package/fesm2022/menu.mjs.map +1 -1
  23. package/fesm2022/private.mjs +752 -785
  24. package/fesm2022/private.mjs.map +1 -1
  25. package/fesm2022/tabs.mjs +101 -71
  26. package/fesm2022/tabs.mjs.map +1 -1
  27. package/fesm2022/toolbar.mjs +87 -64
  28. package/fesm2022/toolbar.mjs.map +1 -1
  29. package/fesm2022/tree.mjs +105 -60
  30. package/fesm2022/tree.mjs.map +1 -1
  31. package/package.json +2 -10
  32. package/types/_grid-chunk.d.ts +326 -83
  33. package/types/accordion.d.ts +134 -35
  34. package/types/combobox.d.ts +146 -13
  35. package/types/grid.d.ts +159 -32
  36. package/types/listbox.d.ts +59 -28
  37. package/types/menu.d.ts +151 -55
  38. package/types/private.d.ts +449 -567
  39. package/types/tabs.d.ts +121 -41
  40. package/types/toolbar.d.ts +74 -51
  41. package/types/tree.d.ts +116 -45
  42. package/_adev_assets/aria-radio-group.json +0 -389
  43. package/fesm2022/deferred-content.mjs +0 -99
  44. package/fesm2022/deferred-content.mjs.map +0 -1
  45. package/fesm2022/radio-group.mjs +0 -338
  46. package/fesm2022/radio-group.mjs.map +0 -1
  47. package/types/deferred-content.d.ts +0 -38
  48. package/types/radio-group.d.ts +0 -84
@@ -14,11 +14,21 @@
14
14
  "type": "any",
15
15
  "memberType": "property",
16
16
  "memberTags": [
17
- "protected"
17
+ "readonly"
18
18
  ],
19
19
  "description": "A unique identifier for the listbox.",
20
20
  "jsdocTags": []
21
21
  },
22
+ {
23
+ "name": "element",
24
+ "type": "HTMLElement",
25
+ "memberType": "property",
26
+ "memberTags": [
27
+ "readonly"
28
+ ],
29
+ "description": "A reference to the host element.",
30
+ "jsdocTags": []
31
+ },
22
32
  {
23
33
  "name": "textDirection",
24
34
  "type": "any",
@@ -64,11 +74,11 @@
64
74
  "jsdocTags": []
65
75
  },
66
76
  {
67
- "name": "skipDisabled",
77
+ "name": "softDisabled",
68
78
  "type": "any",
69
79
  "memberType": "property",
70
80
  "memberTags": [],
71
- "description": "Whether disabled items in the list should be skipped when navigating.",
81
+ "description": "Whether to allow disabled items to receive focus. When `true`, disabled items are\nfocusable but not interactive. When `false`, disabled items are skipped during navigation.",
72
82
  "jsdocTags": []
73
83
  },
74
84
  {
@@ -76,7 +86,7 @@
76
86
  "type": "any",
77
87
  "memberType": "property",
78
88
  "memberTags": [],
79
- "description": "The focus strategy used by the list.",
89
+ "description": "The focus strategy used by the list.\n- `roving`: Focus is moved to the active item using `tabindex`.\n- `activedescendant`: Focus remains on the listbox container, and `aria-activedescendant` is used to indicate the active item.",
80
90
  "jsdocTags": []
81
91
  },
82
92
  {
@@ -84,7 +94,7 @@
84
94
  "type": "any",
85
95
  "memberType": "property",
86
96
  "memberTags": [],
87
- "description": "The selection strategy used by the list.",
97
+ "description": "The selection strategy used by the list.\n- `follow`: The focused item is automatically selected.\n- `explicit`: Items are selected explicitly by the user (e.g., via click or spacebar).",
88
98
  "jsdocTags": []
89
99
  },
90
100
  {
@@ -112,11 +122,11 @@
112
122
  "jsdocTags": []
113
123
  },
114
124
  {
115
- "name": "value",
125
+ "name": "values",
116
126
  "type": "any",
117
127
  "memberType": "property",
118
128
  "memberTags": [],
119
- "description": "The values of the current selected items.",
129
+ "description": "The values of the currently selected items.",
120
130
  "jsdocTags": []
121
131
  },
122
132
  {
@@ -200,6 +210,39 @@
200
210
  "rawComment": "",
201
211
  "memberType": "method",
202
212
  "memberTags": []
213
+ },
214
+ {
215
+ "name": "gotoFirst",
216
+ "signatures": [
217
+ {
218
+ "name": "gotoFirst",
219
+ "entryType": "function",
220
+ "description": "Navigates to the first item in the listbox.",
221
+ "generics": [],
222
+ "isNewType": false,
223
+ "jsdocTags": [],
224
+ "params": [],
225
+ "rawComment": "/** Navigates to the first item in the listbox. */",
226
+ "returnType": "void"
227
+ }
228
+ ],
229
+ "implementation": {
230
+ "params": [],
231
+ "isNewType": false,
232
+ "returnType": "void",
233
+ "generics": [],
234
+ "name": "gotoFirst",
235
+ "description": "Navigates to the first item in the listbox.",
236
+ "entryType": "function",
237
+ "jsdocTags": [],
238
+ "rawComment": "/** Navigates to the first item in the listbox. */"
239
+ },
240
+ "entryType": "function",
241
+ "description": "Navigates to the first item in the listbox.",
242
+ "jsdocTags": [],
243
+ "rawComment": "/** Navigates to the first item in the listbox. */",
244
+ "memberType": "method",
245
+ "memberTags": []
203
246
  }
204
247
  ],
205
248
  "generics": [
@@ -207,14 +250,23 @@
207
250
  "name": "V"
208
251
  }
209
252
  ],
210
- "description": "A listbox container.\n\nListboxes are used to display a list of items for a user to select from. The Listbox is meant\nto be used in conjunction with Option as follows:\n\n```html\n<ul ngListbox>\n <li [value]=\"1\" ngOption>Item 1</li>\n <li [value]=\"2\" ngOption>Item 2</li>\n <li [value]=\"3\" ngOption>Item 3</li>\n</ul>\n```",
211
- "jsdocTags": [],
212
- "rawComment": "/**\n * A listbox container.\n *\n * Listboxes are used to display a list of items for a user to select from. The Listbox is meant\n * to be used in conjunction with Option as follows:\n *\n * ```html\n * <ul ngListbox>\n * <li [value]=\"1\" ngOption>Item 1</li>\n * <li [value]=\"2\" ngOption>Item 2</li>\n * <li [value]=\"3\" ngOption>Item 3</li>\n * </ul>\n * ```\n */",
253
+ "description": "Represents a container used to display a list of items for a user to select from.\n\nThe `ngListbox` is meant to be used in conjunction with `ngOption` directives to create a\nselectable list. It supports single and multiple selection modes, as well as various focus and\norientation strategies.\n\n```html\n<ul ngListbox [(value)]=\"selectedItems\" [multi]=\"true\" orientation=\"vertical\">",
254
+ "jsdocTags": [
255
+ {
256
+ "name": "for",
257
+ "comment": "(item of items; track item.id) {\n<li ngOption [value]=\"item.id\" [label]=\"item.name\" [disabled]=\"item.disabled\">\n{{item.name}}\n</li>\n}\n</ul>\n```"
258
+ },
259
+ {
260
+ "name": "developerPreview",
261
+ "comment": "21.0"
262
+ }
263
+ ],
264
+ "rawComment": "/**\n * Represents a container used to display a list of items for a user to select from.\n *\n * The `ngListbox` is meant to be used in conjunction with `ngOption` directives to create a\n * selectable list. It supports single and multiple selection modes, as well as various focus and\n * orientation strategies.\n *\n * ```html\n * <ul ngListbox [(value)]=\"selectedItems\" [multi]=\"true\" orientation=\"vertical\">\n * @for (item of items; track item.id) {\n * <li ngOption [value]=\"item.id\" [label]=\"item.name\" [disabled]=\"item.disabled\">\n * {{item.name}}\n * </li>\n * }\n * </ul>\n * ```\n *\n * @developerPreview 21.0\n */",
213
265
  "implements": [],
214
266
  "source": {
215
267
  "filePath": "/src/aria/listbox/listbox.ts",
216
- "startLine": 42,
217
- "endLine": 190
268
+ "startLine": 47,
269
+ "endLine": 209
218
270
  }
219
271
  },
220
272
  {
@@ -223,43 +275,54 @@
223
275
  "entryType": "directive",
224
276
  "members": [
225
277
  {
226
- "name": "id",
227
- "type": "any",
278
+ "name": "element",
279
+ "type": "HTMLElement",
228
280
  "memberType": "property",
229
281
  "memberTags": [
230
- "protected"
282
+ "readonly"
231
283
  ],
232
- "description": "A unique identifier for the option.",
284
+ "description": "A reference to the host element.",
233
285
  "jsdocTags": []
234
286
  },
235
287
  {
236
- "name": "searchTerm",
288
+ "name": "active",
289
+ "type": "any",
290
+ "memberType": "property",
291
+ "memberTags": [],
292
+ "description": "Whether the option is currently active (focused).",
293
+ "jsdocTags": []
294
+ },
295
+ {
296
+ "name": "id",
237
297
  "type": "any",
238
298
  "memberType": "property",
239
299
  "memberTags": [
240
- "protected"
300
+ "readonly",
301
+ "input"
241
302
  ],
242
- "description": "The text used by the typeahead search.",
243
- "jsdocTags": []
303
+ "description": "A unique identifier for the option.",
304
+ "jsdocTags": [],
305
+ "inputAlias": "id",
306
+ "isRequiredInput": false
244
307
  },
245
308
  {
246
- "name": "listbox",
309
+ "name": "searchTerm",
247
310
  "type": "any",
248
311
  "memberType": "property",
249
312
  "memberTags": [
250
313
  "protected"
251
314
  ],
252
- "description": "The parent Listbox UIPattern.",
315
+ "description": "The text used by the typeahead search.",
253
316
  "jsdocTags": []
254
317
  },
255
318
  {
256
- "name": "element",
319
+ "name": "listbox",
257
320
  "type": "any",
258
321
  "memberType": "property",
259
322
  "memberTags": [
260
323
  "protected"
261
324
  ],
262
- "description": "A reference to the option element to be focused on navigation.",
325
+ "description": "The parent Listbox UIPattern.",
263
326
  "jsdocTags": []
264
327
  },
265
328
  {
@@ -314,9 +377,14 @@
314
377
  "name": "V"
315
378
  }
316
379
  ],
317
- "description": "A selectable option in a Listbox.",
318
- "jsdocTags": [],
319
- "rawComment": "/** A selectable option in a Listbox. */",
380
+ "description": "A selectable option in an `ngListbox`.\n\nThis directive should be applied to an element (e.g., `<li>`, `<div>`) within an\n`ngListbox`. The `value` input is used to identify the option, and the `label` input provides\nthe accessible name for the option.\n\n```html\n<li ngOption value=\"item-id\" label=\"Item Name\">\n Item Name\n</li>\n```",
381
+ "jsdocTags": [
382
+ {
383
+ "name": "developerPreview",
384
+ "comment": "21.0"
385
+ }
386
+ ],
387
+ "rawComment": "/**\n * A selectable option in an `ngListbox`.\n *\n * This directive should be applied to an element (e.g., `<li>`, `<div>`) within an\n * `ngListbox`. The `value` input is used to identify the option, and the `label` input provides\n * the accessible name for the option.\n *\n * ```html\n * <li ngOption value=\"item-id\" label=\"Item Name\">\n * Item Name\n * </li>\n * ```\n *\n * @developerPreview 21.0\n */",
320
388
  "implements": [],
321
389
  "isStandalone": true,
322
390
  "selector": "[ngOption]",
@@ -325,8 +393,8 @@
325
393
  ],
326
394
  "source": {
327
395
  "filePath": "/src/aria/listbox/listbox.ts",
328
- "startLine": 193,
329
- "endLine": 252
396
+ "startLine": 226,
397
+ "endLine": 283
330
398
  }
331
399
  }
332
400
  ],
@@ -415,6 +483,10 @@
415
483
  "Listbox.id",
416
484
  "@angular/aria/listbox"
417
485
  ],
486
+ [
487
+ "Listbox.element",
488
+ "@angular/aria/listbox"
489
+ ],
418
490
  [
419
491
  "Listbox.textDirection",
420
492
  "@angular/aria/listbox"
@@ -436,7 +508,7 @@
436
508
  "@angular/aria/listbox"
437
509
  ],
438
510
  [
439
- "Listbox.skipDisabled",
511
+ "Listbox.softDisabled",
440
512
  "@angular/aria/listbox"
441
513
  ],
442
514
  [
@@ -460,7 +532,7 @@
460
532
  "@angular/aria/listbox"
461
533
  ],
462
534
  [
463
- "Listbox.value",
535
+ "Listbox.values",
464
536
  "@angular/aria/listbox"
465
537
  ],
466
538
  [
@@ -471,24 +543,32 @@
471
543
  "Listbox.scrollActiveItemIntoView",
472
544
  "@angular/aria/listbox"
473
545
  ],
546
+ [
547
+ "Listbox.gotoFirst",
548
+ "@angular/aria/listbox"
549
+ ],
474
550
  [
475
551
  "Option",
476
552
  "@angular/aria/listbox"
477
553
  ],
478
554
  [
479
- "Option.id",
555
+ "Option.element",
480
556
  "@angular/aria/listbox"
481
557
  ],
482
558
  [
483
- "Option.searchTerm",
559
+ "Option.active",
484
560
  "@angular/aria/listbox"
485
561
  ],
486
562
  [
487
- "Option.listbox",
563
+ "Option.id",
488
564
  "@angular/aria/listbox"
489
565
  ],
490
566
  [
491
- "Option.element",
567
+ "Option.searchTerm",
568
+ "@angular/aria/listbox"
569
+ ],
570
+ [
571
+ "Option.listbox",
492
572
  "@angular/aria/listbox"
493
573
  ],
494
574
  [