@angular/aria 22.0.0-next.7 → 22.0.0-next.8

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 (93) hide show
  1. package/fesm2022/_accordion-chunk.mjs +1 -1
  2. package/fesm2022/_click-event-manager-chunk.mjs +1 -1
  3. package/fesm2022/{_signal-like-chunk.mjs → _collection-chunk.mjs} +51 -2
  4. package/fesm2022/_collection-chunk.mjs.map +1 -0
  5. package/fesm2022/_deferred-content-chunk.mjs +6 -6
  6. package/fesm2022/_list-chunk.mjs +4 -1
  7. package/fesm2022/_list-chunk.mjs.map +1 -1
  8. package/fesm2022/_list-navigation-chunk.mjs +1 -1
  9. package/fesm2022/_list-typeahead-chunk.mjs +1 -1
  10. package/fesm2022/_menu-chunk.mjs +1 -1
  11. package/fesm2022/{_combobox-listbox-chunk.mjs → _option-chunk.mjs} +3 -50
  12. package/fesm2022/_option-chunk.mjs.map +1 -0
  13. package/fesm2022/_tabs-chunk.mjs +1 -1
  14. package/fesm2022/_toolbar-widget-group-chunk.mjs +1 -1
  15. package/fesm2022/_transforms-chunk.mjs +8 -0
  16. package/fesm2022/_transforms-chunk.mjs.map +1 -0
  17. package/fesm2022/{_combobox-tree-chunk.mjs → _tree-chunk.mjs} +3 -48
  18. package/fesm2022/_tree-chunk.mjs.map +1 -0
  19. package/fesm2022/_widget-chunk.mjs +36 -15
  20. package/fesm2022/_widget-chunk.mjs.map +1 -1
  21. package/fesm2022/accordion.mjs +28 -55
  22. package/fesm2022/accordion.mjs.map +1 -1
  23. package/fesm2022/aria.mjs +1 -1
  24. package/fesm2022/aria.mjs.map +1 -1
  25. package/fesm2022/combobox-testing.mjs +79 -0
  26. package/fesm2022/combobox-testing.mjs.map +1 -0
  27. package/fesm2022/combobox.mjs +273 -307
  28. package/fesm2022/combobox.mjs.map +1 -1
  29. package/fesm2022/grid-testing.mjs +8 -0
  30. package/fesm2022/grid-testing.mjs.map +1 -1
  31. package/fesm2022/grid.mjs +68 -87
  32. package/fesm2022/grid.mjs.map +1 -1
  33. package/fesm2022/listbox-testing.mjs +4 -0
  34. package/fesm2022/listbox-testing.mjs.map +1 -1
  35. package/fesm2022/listbox.mjs +184 -205
  36. package/fesm2022/listbox.mjs.map +1 -1
  37. package/fesm2022/menu-testing.mjs +11 -0
  38. package/fesm2022/menu-testing.mjs.map +1 -1
  39. package/fesm2022/menu.mjs +42 -66
  40. package/fesm2022/menu.mjs.map +1 -1
  41. package/fesm2022/private.mjs +19 -13
  42. package/fesm2022/private.mjs.map +1 -1
  43. package/fesm2022/tabs.mjs +78 -84
  44. package/fesm2022/tabs.mjs.map +1 -1
  45. package/fesm2022/toolbar-testing.mjs +5 -1
  46. package/fesm2022/toolbar-testing.mjs.map +1 -1
  47. package/fesm2022/toolbar.mjs +21 -31
  48. package/fesm2022/toolbar.mjs.map +1 -1
  49. package/fesm2022/tree-testing.mjs +12 -0
  50. package/fesm2022/tree-testing.mjs.map +1 -1
  51. package/fesm2022/tree.mjs +118 -146
  52. package/fesm2022/tree.mjs.map +1 -1
  53. package/package.json +6 -6
  54. package/types/_accordion-chunk.d.ts +2 -2
  55. package/types/_collection-chunk.d.ts +42 -0
  56. package/types/_expansion-chunk.d.ts +1 -1
  57. package/types/_grid-chunk.d.ts +9 -3
  58. package/types/_keyboard-event-manager-chunk.d.ts +1 -1
  59. package/types/_list-chunk.d.ts +1 -1
  60. package/types/_list-navigation-chunk.d.ts +1 -1
  61. package/types/_listbox-chunk.d.ts +1 -1
  62. package/types/_menu-chunk.d.ts +1 -1
  63. package/types/_tabs-chunk.d.ts +1 -1
  64. package/types/_toolbar-chunk.d.ts +1 -1
  65. package/types/_tree-chunk.d.ts +1 -1
  66. package/types/accordion.d.ts +7 -13
  67. package/types/combobox-testing.d.ts +63 -0
  68. package/types/combobox.d.ts +96 -193
  69. package/types/grid-testing.d.ts +4 -0
  70. package/types/grid.d.ts +101 -97
  71. package/types/listbox-testing.d.ts +25 -0
  72. package/types/listbox.d.ts +55 -60
  73. package/types/menu-testing.d.ts +6 -0
  74. package/types/menu.d.ts +17 -13
  75. package/types/private.d.ts +24 -138
  76. package/types/tabs.d.ts +69 -72
  77. package/types/toolbar-testing.d.ts +4 -0
  78. package/types/toolbar.d.ts +5 -6
  79. package/types/tree-testing.d.ts +8 -0
  80. package/types/tree.d.ts +7 -14
  81. package/fesm2022/_combobox-chunk.mjs +0 -478
  82. package/fesm2022/_combobox-chunk.mjs.map +0 -1
  83. package/fesm2022/_combobox-listbox-chunk.mjs.map +0 -1
  84. package/fesm2022/_combobox-tree-chunk.mjs.map +0 -1
  85. package/fesm2022/_element-chunk.mjs +0 -6
  86. package/fesm2022/_element-chunk.mjs.map +0 -1
  87. package/fesm2022/_signal-like-chunk.mjs.map +0 -1
  88. package/fesm2022/simple-combobox.mjs +0 -443
  89. package/fesm2022/simple-combobox.mjs.map +0 -1
  90. package/types/_combobox-chunk.d.ts +0 -224
  91. package/types/_element-chunk.d.ts +0 -10
  92. package/types/_signal-like-chunk.d.ts +0 -14
  93. package/types/simple-combobox.d.ts +0 -124
@@ -1,14 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, input, computed, afterRenderEffect, Directive, InjectionToken, signal, booleanAttribute, model } from '@angular/core';
2
+ import { inject, ElementRef, input, computed, afterRenderEffect, Directive, InjectionToken, booleanAttribute, signal, afterNextRender, model } from '@angular/core';
3
3
  import { DeferredContentAware, DeferredContent } from './_deferred-content-chunk.mjs';
4
4
  import { Directionality } from '@angular/cdk/bidi';
5
- import { sortDirectives } from './_element-chunk.mjs';
5
+ import { SortedCollection } from './_collection-chunk.mjs';
6
6
  import { AccordionGroupPattern, AccordionTriggerPattern } from './_accordion-chunk.mjs';
7
7
  import { _IdGenerator } from '@angular/cdk/a11y';
8
+ import '@angular/core/primitives/signals';
8
9
  import './_expansion-chunk.mjs';
9
10
  import './_list-navigation-chunk.mjs';
10
- import './_signal-like-chunk.mjs';
11
- import '@angular/core/primitives/signals';
12
11
  import './_click-event-manager-chunk.mjs';
13
12
 
14
13
  class AccordionPanel {
@@ -40,7 +39,7 @@ class AccordionPanel {
40
39
  }
41
40
  static ɵfac = i0.ɵɵngDeclareFactory({
42
41
  minVersion: "12.0.0",
43
- version: "22.0.0-next.9",
42
+ version: "22.0.0-next.10",
44
43
  ngImport: i0,
45
44
  type: AccordionPanel,
46
45
  deps: [],
@@ -48,7 +47,7 @@ class AccordionPanel {
48
47
  });
49
48
  static ɵdir = i0.ɵɵngDeclareDirective({
50
49
  minVersion: "17.1.0",
51
- version: "22.0.0-next.9",
50
+ version: "22.0.0-next.10",
52
51
  type: AccordionPanel,
53
52
  isStandalone: true,
54
53
  selector: "[ngAccordionPanel]",
@@ -81,7 +80,7 @@ class AccordionPanel {
81
80
  }
82
81
  i0.ɵɵngDeclareClassMetadata({
83
82
  minVersion: "12.0.0",
84
- version: "22.0.0-next.9",
83
+ version: "22.0.0-next.10",
85
84
  ngImport: i0,
86
85
  type: AccordionPanel,
87
86
  decorators: [{
@@ -119,18 +118,9 @@ const ACCORDION_GROUP = new InjectionToken('ACCORDION_GROUP');
119
118
  class AccordionGroup {
120
119
  _elementRef = inject(ElementRef);
121
120
  element = this._elementRef.nativeElement;
122
- _triggers = signal(new Set(), ...(ngDevMode ? [{
123
- debugName: "_triggers"
124
- }] : []));
125
- _sortedTriggers = computed(() => {
126
- const triggers = [...this._triggers()];
127
- const sortFn = triggers[0]?.index() === undefined ? sortDirectives : (a, b) => a.index() - b.index();
128
- return triggers.sort(sortFn);
129
- }, ...(ngDevMode ? [{
130
- debugName: "_sortedTriggers"
131
- }] : []));
121
+ _collection = new SortedCollection();
132
122
  _triggerPatterns = computed(() => {
133
- return this._sortedTriggers().map(t => t._pattern);
123
+ return this._collection.orderedItems().map(t => t._pattern);
134
124
  }, ...(ngDevMode ? [{
135
125
  debugName: "_triggerPatterns"
136
126
  }] : []));
@@ -166,23 +156,23 @@ class AccordionGroup {
166
156
  items: this._triggerPatterns,
167
157
  orientation: () => 'vertical'
168
158
  });
159
+ constructor() {
160
+ afterNextRender(() => {
161
+ this._collection.startObserving(this.element);
162
+ });
163
+ }
164
+ ngOnDestroy() {
165
+ this._collection.stopObserving();
166
+ }
169
167
  expandAll() {
170
168
  this._pattern.expandAll();
171
169
  }
172
170
  collapseAll() {
173
171
  this._pattern.collapseAll();
174
172
  }
175
- _registerTrigger(trigger) {
176
- this._triggers().add(trigger);
177
- this._triggers.set(new Set(this._triggers()));
178
- }
179
- _unregisterTrigger(trigger) {
180
- this._triggers().delete(trigger);
181
- this._triggers.set(new Set(this._triggers()));
182
- }
183
173
  static ɵfac = i0.ɵɵngDeclareFactory({
184
174
  minVersion: "12.0.0",
185
- version: "22.0.0-next.9",
175
+ version: "22.0.0-next.10",
186
176
  ngImport: i0,
187
177
  type: AccordionGroup,
188
178
  deps: [],
@@ -190,7 +180,7 @@ class AccordionGroup {
190
180
  });
191
181
  static ɵdir = i0.ɵɵngDeclareDirective({
192
182
  minVersion: "17.1.0",
193
- version: "22.0.0-next.9",
183
+ version: "22.0.0-next.10",
194
184
  type: AccordionGroup,
195
185
  isStandalone: true,
196
186
  selector: "[ngAccordionGroup]",
@@ -241,7 +231,7 @@ class AccordionGroup {
241
231
  }
242
232
  i0.ɵɵngDeclareClassMetadata({
243
233
  minVersion: "12.0.0",
244
- version: "22.0.0-next.9",
234
+ version: "22.0.0-next.10",
245
235
  ngImport: i0,
246
236
  type: AccordionGroup,
247
237
  decorators: [{
@@ -260,6 +250,7 @@ i0.ɵɵngDeclareClassMetadata({
260
250
  }]
261
251
  }]
262
252
  }],
253
+ ctorParameters: () => [],
263
254
  propDecorators: {
264
255
  disabled: [{
265
256
  type: i0.Input,
@@ -315,9 +306,6 @@ class AccordionTrigger {
315
306
  } : {}),
316
307
  transform: booleanAttribute
317
308
  });
318
- index = input(...(ngDevMode ? [undefined, {
319
- debugName: "index"
320
- }] : []));
321
309
  expanded = model(false, ...(ngDevMode ? [{
322
310
  debugName: "expanded"
323
311
  }] : []));
@@ -333,11 +321,11 @@ class AccordionTrigger {
333
321
  accordionPanelId: this.panelId
334
322
  });
335
323
  this.panel()._pattern = this._pattern;
336
- this._accordionGroup._registerTrigger(this);
324
+ this._accordionGroup._collection.register(this);
337
325
  }
338
326
  ngOnDestroy() {
339
327
  this.panel()._pattern = undefined;
340
- this._accordionGroup._unregisterTrigger(this);
328
+ this._accordionGroup._collection.unregister(this);
341
329
  }
342
330
  expand() {
343
331
  this._pattern.open();
@@ -350,7 +338,7 @@ class AccordionTrigger {
350
338
  }
351
339
  static ɵfac = i0.ɵɵngDeclareFactory({
352
340
  minVersion: "12.0.0",
353
- version: "22.0.0-next.9",
341
+ version: "22.0.0-next.10",
354
342
  ngImport: i0,
355
343
  type: AccordionTrigger,
356
344
  deps: [],
@@ -358,7 +346,7 @@ class AccordionTrigger {
358
346
  });
359
347
  static ɵdir = i0.ɵɵngDeclareDirective({
360
348
  minVersion: "17.1.0",
361
- version: "22.0.0-next.9",
349
+ version: "22.0.0-next.10",
362
350
  type: AccordionTrigger,
363
351
  isStandalone: true,
364
352
  selector: "[ngAccordionTrigger]",
@@ -384,13 +372,6 @@ class AccordionTrigger {
384
372
  isRequired: false,
385
373
  transformFunction: null
386
374
  },
387
- index: {
388
- classPropertyName: "index",
389
- publicName: "index",
390
- isSignal: true,
391
- isRequired: false,
392
- transformFunction: null
393
- },
394
375
  expanded: {
395
376
  classPropertyName: "expanded",
396
377
  publicName: "expanded",
@@ -422,7 +403,7 @@ class AccordionTrigger {
422
403
  }
423
404
  i0.ɵɵngDeclareClassMetadata({
424
405
  minVersion: "12.0.0",
425
- version: "22.0.0-next.9",
406
+ version: "22.0.0-next.10",
426
407
  ngImport: i0,
427
408
  type: AccordionTrigger,
428
409
  decorators: [{
@@ -467,14 +448,6 @@ i0.ɵɵngDeclareClassMetadata({
467
448
  required: false
468
449
  }]
469
450
  }],
470
- index: [{
471
- type: i0.Input,
472
- args: [{
473
- isSignal: true,
474
- alias: "index",
475
- required: false
476
- }]
477
- }],
478
451
  expanded: [{
479
452
  type: i0.Input,
480
453
  args: [{
@@ -492,7 +465,7 @@ i0.ɵɵngDeclareClassMetadata({
492
465
  class AccordionContent {
493
466
  static ɵfac = i0.ɵɵngDeclareFactory({
494
467
  minVersion: "12.0.0",
495
- version: "22.0.0-next.9",
468
+ version: "22.0.0-next.10",
496
469
  ngImport: i0,
497
470
  type: AccordionContent,
498
471
  deps: [],
@@ -500,7 +473,7 @@ class AccordionContent {
500
473
  });
501
474
  static ɵdir = i0.ɵɵngDeclareDirective({
502
475
  minVersion: "14.0.0",
503
- version: "22.0.0-next.9",
476
+ version: "22.0.0-next.10",
504
477
  type: AccordionContent,
505
478
  isStandalone: true,
506
479
  selector: "ng-template[ngAccordionContent]",
@@ -512,7 +485,7 @@ class AccordionContent {
512
485
  }
513
486
  i0.ɵɵngDeclareClassMetadata({
514
487
  minVersion: "12.0.0",
515
- version: "22.0.0-next.9",
488
+ version: "22.0.0-next.10",
516
489
  ngImport: i0,
517
490
  type: AccordionContent,
518
491
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-panel.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-tokens.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-group.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-trigger.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-content.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Directive, ElementRef, afterRenderEffect, computed, inject, input} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {DeferredContentAware, AccordionTriggerPattern} from '../private';\n\n/**\n * The content panel of an accordion item that is conditionally visible.\n *\n * This directive is a container for the content that is shown or hidden. It should\n * expose a template reference that will be used by the corresponding `ngAccordionTrigger`.\n * The content within the panel should be provided using an `ng-template` with the\n * `ngAccordionContent` directive so that the content is not rendered on the page until the trigger\n * is expanded. It applies `role=\"region\"` for accessibility and uses the `inert` attribute to hide\n * its content from assistive technologies when not visible.\n *\n * ```html\n * <div ngAccordionPanel #panel=\"ngAccordionPanel\">\n * <ng-template ngAccordionContent>\n * <p>This content is lazily rendered and will be shown when the panel is expanded.</p>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: '[ngAccordionPanel]',\n exportAs: 'ngAccordionPanel',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n 'role': 'region',\n '[attr.id]': 'id()',\n '[attr.aria-labelledby]': '_pattern?.id()',\n '[attr.inert]': '!visible() ? true : null',\n },\n})\nexport class AccordionPanel {\n /** A reference to the trigger element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the trigger element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** A global unique identifier for the panel. */\n readonly id = input(inject(_IdGenerator).getId('ng-accordion-panel-', true));\n\n /** Whether the accordion panel is visible. True if the associated trigger is expanded. */\n readonly visible = computed(() => this._pattern?.expanded() === true);\n\n /**\n * The pattern for the accordion trigger that controls this panel.\n * This is set by the trigger when it initializes.\n * There is no need for a panel pattern, as the trigger has all the necessary logic.\n */\n _pattern?: AccordionTriggerPattern;\n\n constructor() {\n // Connect the panel's hidden state to the DeferredContentAware's visibility.\n afterRenderEffect({\n write: () => {\n this._deferredContentAware.contentVisible.set(this.visible());\n },\n });\n }\n\n /** Expands this item. */\n expand() {\n this._pattern?.open();\n }\n\n /** Collapses this item. */\n collapse() {\n this._pattern?.close();\n }\n\n /** Toggles the expansion state of this item. */\n toggle() {\n this._pattern?.toggle();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {InjectionToken} from '@angular/core';\nimport type {AccordionGroup} from './accordion-group';\n\n/** Token used to expose the accordion group. */\nexport const ACCORDION_GROUP = new InjectionToken<AccordionGroup>('ACCORDION_GROUP');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n Directive,\n ElementRef,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {AccordionGroupPattern, sortDirectives} from '../private';\nimport {AccordionTrigger} from './accordion-trigger';\nimport {ACCORDION_GROUP} from './accordion-tokens';\n\n/**\n * A container for a group of accordion items. It manages the overall state and\n * interactions of the accordion, such as keyboard navigation and expansion mode.\n *\n * The `ngAccordionGroup` serves as the root of a group of accordion triggers and panels,\n * coordinating the behavior of the `ngAccordionTrigger` and `ngAccordionPanel` elements within it.\n * It supports both single and multiple expansion modes.\n *\n * ```html\n * <div ngAccordionGroup [multiExpandable]=\"true\">\n * <div class=\"accordion-item\">\n * <h3>\n * <button ngAccordionTrigger [panel]=\"panel1\">Item 1</button>\n * </h3>\n * <div ngAccordionPanel #panel1=\"ngAccordionPanel\">\n * <ng-template ngAccordionContent>\n * <p>Content for Item 1.</p>\n * </ng-template>\n * </div>\n * </div>\n * <div class=\"accordion-item\">\n * <h3>\n * <button ngAccordionTrigger [panel]=\"panel2\">Item 2</button>\n * </h3>\n * <div ngAccordionPanel #panel2=\"ngAccordionPanel\">\n * <ng-template ngAccordionContent>\n * <p>Content for Item 2.</p>\n * </ng-template>\n * </div>\n * </div>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: '[ngAccordionGroup]',\n exportAs: 'ngAccordionGroup',\n host: {\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n '(focusin)': '_pattern.onFocus($event)',\n },\n providers: [{provide: ACCORDION_GROUP, useExisting: AccordionGroup}],\n})\nexport class AccordionGroup {\n /** A reference to the group element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the group element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The AccordionTriggers nested inside this group. */\n private readonly _triggers = signal(new Set<AccordionTrigger>());\n\n /** The AccordionTriggers nested inside this group. */\n private readonly _sortedTriggers = computed(() => {\n const triggers = [...this._triggers()] as AccordionTrigger[];\n const sortFn =\n triggers[0]?.index() === undefined\n ? sortDirectives\n : (a: AccordionTrigger, b: AccordionTrigger) => a.index()! - b.index()!;\n\n return triggers.sort(sortFn);\n });\n\n /** The corresponding patterns for the accordion triggers. */\n private readonly _triggerPatterns = computed(() => {\n return this._sortedTriggers().map(t => t._pattern);\n });\n\n /** The text direction (ltr or rtl). */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** Whether the entire accordion group is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether multiple accordion items can be expanded simultaneously. */\n readonly multiExpandable = input(true, {transform: booleanAttribute});\n\n /**\n * Whether to allow disabled items to receive focus. When `true`, disabled items are\n * focusable but not interactive. When `false`, disabled items are skipped during navigation.\n */\n readonly softDisabled = input(true, {transform: booleanAttribute});\n\n /** Whether keyboard navigation should wrap around from the last item to the first, and vice-versa. */\n readonly wrap = input(false, {transform: booleanAttribute});\n\n /** The UI pattern instance for this accordion group. */\n readonly _pattern: AccordionGroupPattern = new AccordionGroupPattern({\n ...this,\n element: () => this.element,\n activeItem: signal(undefined),\n items: this._triggerPatterns,\n orientation: () => 'vertical',\n });\n\n /** Expands all accordion panels if multi-expandable. */\n expandAll() {\n this._pattern.expandAll();\n }\n\n /** Collapses all accordion panels. */\n collapseAll() {\n this._pattern.collapseAll();\n }\n\n /** Internal method to register each trigger as we can not use contentChildren. */\n _registerTrigger(trigger: AccordionTrigger) {\n this._triggers().add(trigger);\n this._triggers.set(new Set(this._triggers()));\n }\n\n /** Internal method to unregister each trigger as we can not use contentChildren. */\n _unregisterTrigger(trigger: AccordionTrigger) {\n this._triggers().delete(trigger);\n this._triggers.set(new Set(this._triggers()));\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n Directive,\n ElementRef,\n OnDestroy,\n OnInit,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {AccordionTriggerPattern} from '../private';\nimport {ACCORDION_GROUP} from './accordion-tokens';\nimport {AccordionPanel} from './accordion-panel';\n\n/**\n * The trigger that toggles the visibility of its associated `ngAccordionPanel`.\n *\n * This directive requires the `panel` input be set to the template reference of the `ngAccordionPanel`\n * it controls. When clicked, it will expand or collapse the panel. It also handles keyboard\n * interactions for navigation within the `ngAccordionGroup`. It applies `role=\"button\"` and manages\n * `aria-expanded`, `aria-controls`, and `aria-disabled` attributes for accessibility.\n * The `disabled` input can be used to disable the trigger.\n *\n * ```html\n * <button ngAccordionTrigger [panel]=\"panel\">\n * Accordion Trigger Text\n * </button>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: '[ngAccordionTrigger]',\n exportAs: 'ngAccordionTrigger',\n host: {\n '[attr.data-active]': 'active()',\n 'role': 'button',\n '[id]': 'id()',\n '[attr.aria-expanded]': 'expanded()',\n '[attr.aria-controls]': '_pattern.controls()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.disabled]': '_pattern.hardDisabled() ? true : null',\n '[attr.tabindex]': '_pattern.tabIndex()',\n },\n})\nexport class AccordionTrigger implements OnInit, OnDestroy {\n /** A reference to the trigger element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the trigger element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent AccordionGroup. */\n private readonly _accordionGroup = inject(ACCORDION_GROUP);\n\n /** The associated AccordionPanel. */\n readonly panel = input.required<AccordionPanel>();\n\n /** The unique identifier for the trigger. */\n readonly id = input(inject(_IdGenerator).getId('ng-accordion-trigger-', true));\n\n /** The unique identifier for the corresponding trigger panel. */\n readonly panelId = computed(() => this.panel().id());\n\n /** Whether the trigger is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** The index of the trigger within the accordion group. */\n readonly index = input<number>();\n\n /** Whether the corresponding panel is expanded. */\n readonly expanded = model<boolean>(false);\n\n /** Whether the trigger is active. */\n readonly active = computed(() => this._pattern.active());\n\n /** The UI pattern instance for this trigger. */\n _pattern!: AccordionTriggerPattern;\n\n ngOnInit() {\n this._pattern = new AccordionTriggerPattern({\n ...this,\n element: () => this.element,\n accordionGroup: () => this._accordionGroup._pattern,\n accordionPanelId: this.panelId,\n });\n\n this.panel()._pattern = this._pattern;\n\n this._accordionGroup._registerTrigger(this);\n }\n\n ngOnDestroy() {\n this.panel()._pattern = undefined;\n\n this._accordionGroup._unregisterTrigger(this);\n }\n\n /** Expands this item. */\n expand() {\n this._pattern.open();\n }\n\n /** Collapses this item. */\n collapse() {\n this._pattern.close();\n }\n\n /** Toggles the expansion state of this item. */\n toggle() {\n this._pattern.toggle();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Directive} from '@angular/core';\nimport {DeferredContent} from '../private';\n\n/**\n * A structural directive that provides a mechanism for lazily rendering the content for an\n * `ngAccordionPanel`.\n *\n * This directive should be applied to an `ng-template` inside an `ngAccordionPanel`.\n * It allows the content of the panel to be lazily rendered, improving performance\n * by only creating the content when the panel is first expanded.\n *\n * ```html\n * <div ngAccordionPanel>\n * <ng-template ngAccordionContent>\n * <p>This is the content that will be displayed inside the panel.</p>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: 'ng-template[ngAccordionContent]',\n hostDirectives: [DeferredContent],\n})\nexport class AccordionContent {}\n"],"names":["AccordionPanel","_elementRef","inject","ElementRef","element","nativeElement","_deferredContentAware","DeferredContentAware","id","input","_IdGenerator","getId","visible","computed","_pattern","expanded","constructor","afterRenderEffect","write","contentVisible","set","expand","open","collapse","close","toggle","deps","target","i0","ɵɵFactoryTarget","Directive","isStandalone","selector","inputs","classPropertyName","publicName","isSignal","isRequired","transformFunction","host","attributes","properties","exportAs","hostDirectives","directive","i1","ngImport","decorators","args","ACCORDION_GROUP","InjectionToken","AccordionGroup","_triggers","signal","Set","_sortedTriggers","triggers","sortFn","index","undefined","sortDirectives","a","b","sort","_triggerPatterns","map","t","textDirection","Directionality","valueSignal","disabled","transform","booleanAttribute","multiExpandable","softDisabled","wrap","AccordionGroupPattern","activeItem","items","orientation","expandAll","collapseAll","_registerTrigger","trigger","add","_unregisterTrigger","delete","listeners","providers","provide","useExisting","AccordionTrigger","_accordionGroup","panel","required","panelId","model","active","ngOnInit","AccordionTriggerPattern","accordionGroup","accordionPanelId","ngOnDestroy","outputs","AccordionContent","DeferredContent"],"mappings":";;;;;;;;;;;;;MAiDaA,cAAc,CAAA;AAERC,EAAAA,WAAW,GAAGC,MAAM,CAACC,UAAU,CAAC;AAGxCC,EAAAA,OAAO,GAAG,IAAI,CAACH,WAAW,CAACI,aAA4B;AAG/CC,EAAAA,qBAAqB,GAAGJ,MAAM,CAACK,oBAAoB,CAAC;AAG5DC,EAAAA,EAAE,GAAGC,KAAK,CAACP,MAAM,CAACQ,YAAY,CAAC,CAACC,KAAK,CAAC,qBAAqB,EAAE,IAAI,CAAC;;WAAC;AAGnEC,EAAAA,OAAO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AA9E,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;UAAhB0E,gBAAgB;AAAAzE,IAAAA,YAAA,EAAA,IAAA;AAAAC,IAAAA,QAAA,EAAA,iCAAA;AAAAW,IAAAA,cAAA,EAAA,CAAA;MAAAC,SAAA,EAAAC;AAAA,KAAA,CAAA;AAAAC,IAAAA,QAAA,EAAAlB;AAAA,GAAA,CAAA;;;;;;QAAhB4E,gBAAgB;AAAAzD,EAAAA,UAAA,EAAA,CAAA;UAJ5BjB,SAAS;AAACkB,IAAAA,IAAA,EAAA,CAAA;AACThB,MAAAA,QAAQ,EAAE,iCAAiC;MAC3CW,cAAc,EAAE,CAAC8D,eAAe;KACjC;;;;;;"}
1
+ {"version":3,"file":"accordion.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-panel.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-tokens.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-group.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-trigger.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/accordion/accordion-content.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Directive, ElementRef, afterRenderEffect, computed, inject, input} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {DeferredContentAware, AccordionTriggerPattern} from '../private';\n\n/**\n * The content panel of an accordion item that is conditionally visible.\n *\n * This directive is a container for the content that is shown or hidden. It should\n * expose a template reference that will be used by the corresponding `ngAccordionTrigger`.\n * The content within the panel should be provided using an `ng-template` with the\n * `ngAccordionContent` directive so that the content is not rendered on the page until the trigger\n * is expanded. It applies `role=\"region\"` for accessibility and uses the `inert` attribute to hide\n * its content from assistive technologies when not visible.\n *\n * ```html\n * <div ngAccordionPanel #panel=\"ngAccordionPanel\">\n * <ng-template ngAccordionContent>\n * <p>This content is lazily rendered and will be shown when the panel is expanded.</p>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: '[ngAccordionPanel]',\n exportAs: 'ngAccordionPanel',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n 'role': 'region',\n '[attr.id]': 'id()',\n '[attr.aria-labelledby]': '_pattern?.id()',\n '[attr.inert]': '!visible() ? true : null',\n },\n})\nexport class AccordionPanel {\n /** A reference to the trigger element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the trigger element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware);\n\n /** A global unique identifier for the panel. */\n readonly id = input(inject(_IdGenerator).getId('ng-accordion-panel-', true));\n\n /** Whether the accordion panel is visible. True if the associated trigger is expanded. */\n readonly visible = computed(() => this._pattern?.expanded() === true);\n\n /**\n * The pattern for the accordion trigger that controls this panel.\n * This is set by the trigger when it initializes.\n * There is no need for a panel pattern, as the trigger has all the necessary logic.\n */\n _pattern?: AccordionTriggerPattern;\n\n constructor() {\n // Connect the panel's hidden state to the DeferredContentAware's visibility.\n afterRenderEffect({\n write: () => {\n this._deferredContentAware.contentVisible.set(this.visible());\n },\n });\n }\n\n /** Expands this item. */\n expand() {\n this._pattern?.open();\n }\n\n /** Collapses this item. */\n collapse() {\n this._pattern?.close();\n }\n\n /** Toggles the expansion state of this item. */\n toggle() {\n this._pattern?.toggle();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {InjectionToken} from '@angular/core';\nimport type {AccordionGroup} from './accordion-group';\n\n/** Token used to expose the accordion group. */\nexport const ACCORDION_GROUP = new InjectionToken<AccordionGroup>('ACCORDION_GROUP');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n Directive,\n ElementRef,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n afterNextRender,\n OnDestroy,\n} from '@angular/core';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {AccordionGroupPattern, SortedCollection} from '../private';\nimport {ACCORDION_GROUP} from './accordion-tokens';\nimport {AccordionTrigger} from './accordion-trigger';\n\n/**\n * A container for a group of accordion items. It manages the overall state and\n * interactions of the accordion, such as keyboard navigation and expansion mode.\n *\n * The `ngAccordionGroup` serves as the root of a group of accordion triggers and panels,\n * coordinating the behavior of the `ngAccordionTrigger` and `ngAccordionPanel` elements within it.\n * It supports both single and multiple expansion modes.\n *\n * ```html\n * <div ngAccordionGroup [multiExpandable]=\"true\">\n * <div class=\"accordion-item\">\n * <h3>\n * <button ngAccordionTrigger [panel]=\"panel1\">Item 1</button>\n * </h3>\n * <div ngAccordionPanel #panel1=\"ngAccordionPanel\">\n * <ng-template ngAccordionContent>\n * <p>Content for Item 1.</p>\n * </ng-template>\n * </div>\n * </div>\n * <div class=\"accordion-item\">\n * <h3>\n * <button ngAccordionTrigger [panel]=\"panel2\">Item 2</button>\n * </h3>\n * <div ngAccordionPanel #panel2=\"ngAccordionPanel\">\n * <ng-template ngAccordionContent>\n * <p>Content for Item 2.</p>\n * </ng-template>\n * </div>\n * </div>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: '[ngAccordionGroup]',\n exportAs: 'ngAccordionGroup',\n host: {\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n '(focusin)': '_pattern.onFocus($event)',\n },\n providers: [{provide: ACCORDION_GROUP, useExisting: AccordionGroup}],\n})\nexport class AccordionGroup implements OnDestroy {\n /** A reference to the group element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the group element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The collection of AccordionTriggers. */\n readonly _collection = new SortedCollection<AccordionTrigger>();\n\n /** The corresponding patterns for the accordion triggers. */\n private readonly _triggerPatterns = computed(() => {\n return this._collection.orderedItems().map(t => t._pattern);\n });\n\n /** The text direction (ltr or rtl). */\n readonly textDirection = inject(Directionality).valueSignal;\n\n /** Whether the entire accordion group is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether multiple accordion items can be expanded simultaneously. */\n readonly multiExpandable = input(true, {transform: booleanAttribute});\n\n /**\n * Whether to allow disabled items to receive focus. When `true`, disabled items are\n * focusable but not interactive. When `false`, disabled items are skipped during navigation.\n */\n readonly softDisabled = input(true, {transform: booleanAttribute});\n\n /** Whether keyboard navigation should wrap around from the last item to the first, and vice-versa. */\n readonly wrap = input(false, {transform: booleanAttribute});\n\n /** The UI pattern instance for this accordion group. */\n readonly _pattern: AccordionGroupPattern = new AccordionGroupPattern({\n ...this,\n element: () => this.element,\n activeItem: signal(undefined),\n items: this._triggerPatterns,\n orientation: () => 'vertical',\n });\n\n constructor() {\n afterNextRender(() => {\n this._collection.startObserving(this.element);\n });\n }\n\n ngOnDestroy() {\n this._collection.stopObserving();\n }\n\n /** Expands all accordion panels if multi-expandable. */\n expandAll() {\n this._pattern.expandAll();\n }\n\n /** Collapses all accordion panels. */\n collapseAll() {\n this._pattern.collapseAll();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n Directive,\n ElementRef,\n OnDestroy,\n OnInit,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {AccordionTriggerPattern} from '../private';\nimport {ACCORDION_GROUP} from './accordion-tokens';\nimport {AccordionPanel} from './accordion-panel';\n\n/**\n * The trigger that toggles the visibility of its associated `ngAccordionPanel`.\n *\n * This directive requires the `panel` input be set to the template reference of the `ngAccordionPanel`\n * it controls. When clicked, it will expand or collapse the panel. It also handles keyboard\n * interactions for navigation within the `ngAccordionGroup`. It applies `role=\"button\"` and manages\n * `aria-expanded`, `aria-controls`, and `aria-disabled` attributes for accessibility.\n * The `disabled` input can be used to disable the trigger.\n *\n * ```html\n * <button ngAccordionTrigger [panel]=\"panel\">\n * Accordion Trigger Text\n * </button>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: '[ngAccordionTrigger]',\n exportAs: 'ngAccordionTrigger',\n host: {\n '[attr.data-active]': 'active()',\n 'role': 'button',\n '[id]': 'id()',\n '[attr.aria-expanded]': 'expanded()',\n '[attr.aria-controls]': '_pattern.controls()',\n '[attr.aria-disabled]': '_pattern.disabled()',\n '[attr.disabled]': '_pattern.hardDisabled() ? true : null',\n '[attr.tabindex]': '_pattern.tabIndex()',\n },\n})\nexport class AccordionTrigger implements OnInit, OnDestroy {\n /** A reference to the trigger element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the trigger element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The parent AccordionGroup. */\n private readonly _accordionGroup = inject(ACCORDION_GROUP);\n\n /** The associated AccordionPanel. */\n readonly panel = input.required<AccordionPanel>();\n\n /** The unique identifier for the trigger. */\n readonly id = input(inject(_IdGenerator).getId('ng-accordion-trigger-', true));\n\n /** The unique identifier for the corresponding trigger panel. */\n readonly panelId = computed(() => this.panel().id());\n\n /** Whether the trigger is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether the corresponding panel is expanded. */\n readonly expanded = model<boolean>(false);\n\n /** Whether the trigger is active. */\n readonly active = computed(() => this._pattern.active());\n\n /** The UI pattern instance for this trigger. */\n _pattern!: AccordionTriggerPattern;\n\n ngOnInit() {\n this._pattern = new AccordionTriggerPattern({\n ...this,\n element: () => this.element,\n accordionGroup: () => this._accordionGroup._pattern,\n accordionPanelId: this.panelId,\n });\n\n this.panel()._pattern = this._pattern;\n\n this._accordionGroup._collection.register(this);\n }\n\n ngOnDestroy() {\n this.panel()._pattern = undefined;\n\n this._accordionGroup._collection.unregister(this);\n }\n\n /** Expands this item. */\n expand() {\n this._pattern.open();\n }\n\n /** Collapses this item. */\n collapse() {\n this._pattern.close();\n }\n\n /** Toggles the expansion state of this item. */\n toggle() {\n this._pattern.toggle();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Directive} from '@angular/core';\nimport {DeferredContent} from '../private';\n\n/**\n * A structural directive that provides a mechanism for lazily rendering the content for an\n * `ngAccordionPanel`.\n *\n * This directive should be applied to an `ng-template` inside an `ngAccordionPanel`.\n * It allows the content of the panel to be lazily rendered, improving performance\n * by only creating the content when the panel is first expanded.\n *\n * ```html\n * <div ngAccordionPanel>\n * <ng-template ngAccordionContent>\n * <p>This is the content that will be displayed inside the panel.</p>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n * @see [Accordion](guide/aria/accordion)\n */\n@Directive({\n selector: 'ng-template[ngAccordionContent]',\n hostDirectives: [DeferredContent],\n})\nexport class AccordionContent {}\n"],"names":["AccordionPanel","_elementRef","inject","ElementRef","element","nativeElement","_deferredContentAware","DeferredContentAware","id","input","_IdGenerator","getId","visible","computed","_pattern","expanded","constructor","afterRenderEffect","write","contentVisible","set","expand","open","collapse","close","toggle","deps","target","i0","ɵɵFactoryTarget","Directive","isStandalone","selector","inputs","classPropertyName","publicName","isSignal","isRequired","transformFunction","host","attributes","properties","exportAs","hostDirectives","directive","i1","ngImport","decorators","args","ACCORDION_GROUP","InjectionToken","AccordionGroup","_collection","SortedCollection","_triggerPatterns","orderedItems","map","t","textDirection","Directionality","valueSignal","disabled","transform","booleanAttribute","multiExpandable","softDisabled","wrap","AccordionGroupPattern","activeItem","signal","undefined","items","orientation","afterNextRender","startObserving","ngOnDestroy","stopObserving","expandAll","collapseAll","listeners","providers","provide","useExisting","AccordionTrigger","_accordionGroup","panel","required","panelId","model","active","ngOnInit","AccordionTriggerPattern","accordionGroup","accordionPanelId","register","unregister","outputs","AccordionContent","DeferredContent"],"mappings":";;;;;;;;;;;;MAiDaA,cAAc,CAAA;AAERC,EAAAA,WAAW,GAAGC,MAAM,CAACC,UAAU,CAAC;AAGxCC,EAAAA,OAAO,GAAG,IAAI,CAACH,WAAW,CAACI,aAA4B;AAG/CC,EAAAA,qBAAqB,GAAGJ,MAAM,CAACK,oBAAoB,CAAC;AAG5DC,EAAAA,EAAE,GAAGC,KAAK,CAACP,MAAM,CAACQ,YAAY,CAAC,CAACC,KAAK,CAAC,qBAAqB,EAAE,IAAI,CAAC;;WAAC;AAGnEC,EAAAA,OAAO,GAAGC,QAAQ,CAAC,MAAM,IAAI,CAACC,QAAQ,EAAEC,QAAQ,EAAE,KAAK,IAAI;;WAAC;EAOrED,QAAQ;AAERE,EAAAA,WAAAA,GAAA;AAEEC,IAAAA,iBAAiB,CAAC;MAChBC,KAAK,EAAEA,MAAK;AACV,QAAA,IAAI,CAACZ,qBAAqB,CAACa,cAAc,CAACC,GAAG,CAAC,IAAI,CAACR,OAAO,EAAE,CAAC;AAC/D,MAAA;AACD,KAAA,CAAC;AACJ,EAAA;AAGAS,EAAAA,MAAMA,GAAA;AACJ,IAAA,IAAI,CAACP,QAAQ,EAAEQ,IAAI,EAAE;AACvB,EAAA;AAGAC,EAAAA,QAAQA,GAAA;AACN,IAAA,IAAI,CAACT,QAAQ,EAAEU,KAAK,EAAE;AACxB,EAAA;AAGAC,EAAAA,MAAMA,GAAA;AACJ,IAAA,IAAI,CAACX,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AAgB;AAAAlE,IAAAA,YAAA,EAAA,IAAA;AAAAC,IAAAA,QAAA,EAAA,iCAAA;AAAAW,IAAAA,cAAA,EAAA,CAAA;MAAAC,SAAA,EAAAC;AAAA,KAAA,CAAA;AAAAC,IAAAA,QAAA,EAAAlB;AAAA,GAAA,CAAA;;;;;;QAAhBqE,gBAAgB;AAAAlD,EAAAA,UAAA,EAAA,CAAA;UAJ5BjB,SAAS;AAACkB,IAAAA,IAAA,EAAA,CAAA;AACThB,MAAAA,QAAQ,EAAE,iCAAiC;MAC3CW,cAAc,EAAE,CAACuD,eAAe;KACjC;;;;;;"}
package/fesm2022/aria.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
- const VERSION = new Version('22.0.0-next.7');
3
+ const VERSION = new Version('22.0.0-next.8');
4
4
 
5
5
  export { VERSION };
6
6
  //# sourceMappingURL=aria.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aria.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Aria package. */\nexport const VERSION = new Version('22.0.0-next.7');\n"],"names":["VERSION","Version"],"mappings":";;MAWaA,OAAO,GAAG,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"aria.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Aria package. */\nexport const VERSION = new Version('22.0.0-next.8');\n"],"names":["VERSION","Version"],"mappings":";;MAWaA,OAAO,GAAG,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
@@ -0,0 +1,79 @@
1
+ import { ContentContainerComponentHarness, HarnessPredicate, TestKey } from '@angular/cdk/testing';
2
+
3
+ class ComboboxHarness extends ContentContainerComponentHarness {
4
+ static hostSelector = '[ngCombobox]';
5
+ static with(options = {}) {
6
+ return new HarnessPredicate(ComboboxHarness, options).addOption('placeholder', options.placeholder, async (harness, placeholder) => HarnessPredicate.stringMatches(await harness.getPlaceholder(), placeholder)).addOption('value', options.value, async (harness, value) => HarnessPredicate.stringMatches(await harness.getValue(), value)).addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled);
7
+ }
8
+ async getPopupWidget(type) {
9
+ const host = await this.host();
10
+ const controlsId = await host.getAttribute('aria-controls');
11
+ if (!controlsId) {
12
+ throw new Error('Cannot retrieve popup content because the combobox is closed or not associated with a popup controls ID.');
13
+ }
14
+ return this.documentRootLocatorFactory().locatorFor(type.with({
15
+ selector: `#${controlsId}`
16
+ }))();
17
+ }
18
+ async getPopupLoader() {
19
+ return this.getRootHarnessLoader();
20
+ }
21
+ async getRootHarnessLoader() {
22
+ const host = await this.host();
23
+ const controlsId = await host.getAttribute('aria-controls');
24
+ if (!controlsId) {
25
+ throw new Error('Cannot retrieve popup content because the combobox is closed or not associated with a popup controls ID.');
26
+ }
27
+ const documentRoot = await this.documentRootLocatorFactory().rootHarnessLoader();
28
+ return documentRoot.getChildLoader(`#${controlsId}`);
29
+ }
30
+ async isOpen() {
31
+ const host = await this.host();
32
+ return (await host.getAttribute('aria-expanded')) === 'true';
33
+ }
34
+ async isDisabled() {
35
+ const host = await this.host();
36
+ return (await host.getAttribute('aria-disabled')) === 'true';
37
+ }
38
+ async getValue() {
39
+ const host = await this.host();
40
+ return host.getProperty('value');
41
+ }
42
+ async setValue(value) {
43
+ const host = await this.host();
44
+ await host.clear();
45
+ if (value) {
46
+ await host.sendKeys(value);
47
+ }
48
+ }
49
+ async getPlaceholder() {
50
+ const host = await this.host();
51
+ return host.getAttribute('placeholder');
52
+ }
53
+ async open() {
54
+ if (!(await this.isOpen())) {
55
+ const host = await this.host();
56
+ await host.focus();
57
+ await host.sendKeys(TestKey.DOWN_ARROW);
58
+ }
59
+ }
60
+ async close() {
61
+ if (await this.isOpen()) {
62
+ const host = await this.host();
63
+ await host.focus();
64
+ await host.sendKeys(TestKey.ESCAPE);
65
+ }
66
+ }
67
+ async focus() {
68
+ return (await this.host()).focus();
69
+ }
70
+ async blur() {
71
+ return (await this.host()).blur();
72
+ }
73
+ async isFocused() {
74
+ return (await this.host()).isFocused();
75
+ }
76
+ }
77
+
78
+ export { ComboboxHarness };
79
+ //# sourceMappingURL=combobox-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/combobox/testing/combobox-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n ContentContainerComponentHarness,\n HarnessLoader,\n HarnessPredicate,\n TestKey,\n} from '@angular/cdk/testing';\nimport {ComboboxHarnessFilters} from './combobox-harness-filters';\n\n/** Harness for interacting with a standard `ngCombobox` input element in tests. */\nexport class ComboboxHarness extends ContentContainerComponentHarness {\n static hostSelector = '[ngCombobox]';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a combobox with specific attributes.\n * @param options Options for filtering which combobox instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: ComboboxHarnessFilters = {}): HarnessPredicate<ComboboxHarness> {\n return new HarnessPredicate(ComboboxHarness, options)\n .addOption('placeholder', options.placeholder, async (harness, placeholder) =>\n HarnessPredicate.stringMatches(await harness.getPlaceholder(), placeholder),\n )\n .addOption('value', options.value, async (harness, value) =>\n HarnessPredicate.stringMatches(await harness.getValue(), value),\n )\n .addOption(\n 'disabled',\n options.disabled,\n async (harness, disabled) => (await harness.isDisabled()) === disabled,\n );\n }\n\n /**\n * Gets the component harness for the active widget contained inside the popup.\n * Use this when you need to access the harness of the widget itself (e.g., `ListboxHarness`),\n * rather than querying items within it.\n * @param type The harness type to locate. Must implement standard static `.with()` method.\n */\n async getPopupWidget<T extends ComponentHarness>(\n type: ComponentHarnessConstructor<T> & {\n with: (options?: {selector?: string}) => HarnessPredicate<T>;\n },\n ): Promise<T> {\n const host = await this.host();\n const controlsId = await host.getAttribute('aria-controls');\n if (!controlsId) {\n throw new Error(\n 'Cannot retrieve popup content because the combobox is closed or not associated with a popup controls ID.',\n );\n }\n return this.documentRootLocatorFactory().locatorFor(type.with({selector: `#${controlsId}`}))();\n }\n\n /**\n * Gets a harness loader scoped to the content inside the popup container.\n * Note that lookups performed by this loader will only find descendants of the popup container.\n */\n async getPopupLoader(): Promise<HarnessLoader> {\n return this.getRootHarnessLoader();\n }\n\n /** Overrides root loader to automatically resolve queries nested inside the associated popup. */\n protected override async getRootHarnessLoader(): Promise<HarnessLoader> {\n const host = await this.host();\n const controlsId = await host.getAttribute('aria-controls');\n if (!controlsId) {\n throw new Error(\n 'Cannot retrieve popup content because the combobox is closed or not associated with a popup controls ID.',\n );\n }\n const documentRoot = await this.documentRootLocatorFactory().rootHarnessLoader();\n // Locate the widget by ID, which was assigned by ngComboboxWidget and linked via aria-controls.\n return documentRoot.getChildLoader(`#${controlsId}`);\n }\n\n /** Whether the combobox is expanded (popup is open). */\n async isOpen(): Promise<boolean> {\n const host = await this.host();\n return (await host.getAttribute('aria-expanded')) === 'true';\n }\n\n /** Whether the combobox is disabled. */\n async isDisabled(): Promise<boolean> {\n const host = await this.host();\n return (await host.getAttribute('aria-disabled')) === 'true';\n }\n\n /** Gets the current value string of the combobox input. */\n async getValue(): Promise<string> {\n const host = await this.host();\n return host.getProperty<string>('value');\n }\n\n /** Sets the value of the combobox input. */\n async setValue(value: string): Promise<void> {\n const host = await this.host();\n await host.clear();\n if (value) {\n await host.sendKeys(value);\n }\n }\n\n /** Gets the placeholder text of the combobox. */\n async getPlaceholder(): Promise<string | null> {\n const host = await this.host();\n return host.getAttribute('placeholder');\n }\n\n /** Opens the combobox popup if it is currently closed. */\n async open(): Promise<void> {\n if (!(await this.isOpen())) {\n const host = await this.host();\n await host.focus();\n await host.sendKeys(TestKey.DOWN_ARROW);\n }\n }\n\n /** Closes the combobox popup if it is currently open. */\n async close(): Promise<void> {\n if (await this.isOpen()) {\n const host = await this.host();\n await host.focus();\n await host.sendKeys(TestKey.ESCAPE);\n }\n }\n\n /** Focuses the combobox. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the combobox. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the combobox has focus. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n}\n"],"names":["ComboboxHarness","ContentContainerComponentHarness","hostSelector","with","options","HarnessPredicate","addOption","placeholder","harness","stringMatches","getPlaceholder","value","getValue","disabled","isDisabled","getPopupWidget","type","host","controlsId","getAttribute","Error","documentRootLocatorFactory","locatorFor","selector","getPopupLoader","getRootHarnessLoader","documentRoot","rootHarnessLoader","getChildLoader","isOpen","getProperty","setValue","clear","sendKeys","open","focus","TestKey","DOWN_ARROW","close","ESCAPE","blur","isFocused"],"mappings":";;AAmBM,MAAOA,eAAgB,SAAQC,gCAAgC,CAAA;EACnE,OAAOC,YAAY,GAAG,cAAc;AAOpC,EAAA,OAAOC,IAAIA,CAACC,OAAA,GAAkC,EAAE,EAAA;AAC9C,IAAA,OAAO,IAAIC,gBAAgB,CAACL,eAAe,EAAEI,OAAO,CAAA,CACjDE,SAAS,CAAC,aAAa,EAAEF,OAAO,CAACG,WAAW,EAAE,OAAOC,OAAO,EAAED,WAAW,KACxEF,gBAAgB,CAACI,aAAa,CAAC,MAAMD,OAAO,CAACE,cAAc,EAAE,EAAEH,WAAW,CAAC,CAAA,CAE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