@angular/aria 21.1.0-next.0 → 21.1.0-next.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 (56) hide show
  1. package/fesm2022/_combobox-chunk.mjs +425 -0
  2. package/fesm2022/_combobox-chunk.mjs.map +1 -0
  3. package/fesm2022/_combobox-listbox-chunk.mjs +522 -0
  4. package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -0
  5. package/fesm2022/_combobox-popup-chunk.mjs +46 -0
  6. package/fesm2022/_combobox-popup-chunk.mjs.map +1 -0
  7. package/fesm2022/_list-navigation-chunk.mjs +116 -0
  8. package/fesm2022/_list-navigation-chunk.mjs.map +1 -0
  9. package/fesm2022/_pointer-event-manager-chunk.mjs +134 -0
  10. package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -0
  11. package/fesm2022/_widget-chunk.mjs +4 -246
  12. package/fesm2022/_widget-chunk.mjs.map +1 -1
  13. package/fesm2022/accordion.mjs +64 -51
  14. package/fesm2022/accordion.mjs.map +1 -1
  15. package/fesm2022/aria.mjs +1 -1
  16. package/fesm2022/aria.mjs.map +1 -1
  17. package/fesm2022/combobox.mjs +120 -144
  18. package/fesm2022/combobox.mjs.map +1 -1
  19. package/fesm2022/grid.mjs +285 -261
  20. package/fesm2022/grid.mjs.map +1 -1
  21. package/fesm2022/listbox.mjs +205 -193
  22. package/fesm2022/listbox.mjs.map +1 -1
  23. package/fesm2022/menu.mjs +301 -283
  24. package/fesm2022/menu.mjs.map +1 -1
  25. package/fesm2022/private.mjs +15 -938
  26. package/fesm2022/private.mjs.map +1 -1
  27. package/fesm2022/tabs.mjs +209 -195
  28. package/fesm2022/tabs.mjs.map +1 -1
  29. package/fesm2022/toolbar.mjs +59 -47
  30. package/fesm2022/toolbar.mjs.map +1 -1
  31. package/fesm2022/tree.mjs +43 -41
  32. package/fesm2022/tree.mjs.map +1 -1
  33. package/package.json +2 -2
  34. package/types/_combobox-chunk.d.ts +98 -0
  35. package/types/_combobox-chunk.d2.ts +193 -0
  36. package/types/_grid-chunk.d.ts +3 -210
  37. package/types/_list-chunk.d.ts +212 -0
  38. package/types/_list-navigation-chunk.d.ts +212 -0
  39. package/types/_listbox-chunk.d.ts +106 -0
  40. package/types/accordion.d.ts +52 -49
  41. package/types/combobox.d.ts +25 -111
  42. package/types/grid.d.ts +37 -32
  43. package/types/listbox.d.ts +8 -5
  44. package/types/menu.d.ts +113 -113
  45. package/types/private.d.ts +12 -498
  46. package/types/tabs.d.ts +89 -84
  47. package/types/toolbar.d.ts +69 -66
  48. package/types/tree.d.ts +106 -103
  49. package/_adev_assets/aria-accordion.json +0 -743
  50. package/_adev_assets/aria-combobox.json +0 -607
  51. package/_adev_assets/aria-grid.json +0 -901
  52. package/_adev_assets/aria-listbox.json +0 -544
  53. package/_adev_assets/aria-menu.json +0 -1049
  54. package/_adev_assets/aria-tabs.json +0 -880
  55. package/_adev_assets/aria-toolbar.json +0 -545
  56. package/_adev_assets/aria-tree.json +0 -861
@@ -1,9 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, contentChild, forwardRef, input, booleanAttribute, computed, signal, afterRenderEffect, Directive, model, untracked } from '@angular/core';
2
+ import { inject, ElementRef, contentChild, input, booleanAttribute, computed, signal, afterRenderEffect, Directive, model, untracked } from '@angular/core';
3
3
  import * as i1 from '@angular/aria/private';
4
- import { DeferredContentAware, ComboboxPattern, ComboboxDialogPattern, DeferredContent } from '@angular/aria/private';
4
+ import { DeferredContentAware, ComboboxPattern, DeferredContent } from '@angular/aria/private';
5
5
  import { Directionality } from '@angular/cdk/bidi';
6
6
  import { toSignal } from '@angular/core/rxjs-interop';
7
+ import { ComboboxPopup, COMBOBOX } from './_combobox-popup-chunk.mjs';
8
+ import { ComboboxDialogPattern } from './_combobox-chunk.mjs';
9
+ import './_pointer-event-manager-chunk.mjs';
7
10
 
8
11
  class Combobox {
9
12
  _directionality = inject(Directionality);
@@ -15,36 +18,36 @@ class Combobox {
15
18
  _deferredContentAware = inject(DeferredContentAware, {
16
19
  optional: true
17
20
  });
18
- popup = contentChild(forwardRef(() => ComboboxPopup), ...(ngDevMode ? [{
21
+ popup = contentChild(ComboboxPopup, ...(ngDevMode ? [{
19
22
  debugName: "popup"
20
23
  }] : []));
21
24
  filterMode = input('manual', ...(ngDevMode ? [{
22
25
  debugName: "filterMode"
23
26
  }] : []));
24
- disabled = input(false, ...(ngDevMode ? [{
25
- debugName: "disabled",
27
+ disabled = input(false, {
28
+ ...(ngDevMode ? {
29
+ debugName: "disabled"
30
+ } : {}),
26
31
  transform: booleanAttribute
27
- }] : [{
28
- transform: booleanAttribute
29
- }]));
30
- readonly = input(false, ...(ngDevMode ? [{
31
- debugName: "readonly",
32
- transform: booleanAttribute
33
- }] : [{
32
+ });
33
+ readonly = input(false, {
34
+ ...(ngDevMode ? {
35
+ debugName: "readonly"
36
+ } : {}),
34
37
  transform: booleanAttribute
35
- }]));
38
+ });
36
39
  firstMatch = input(undefined, ...(ngDevMode ? [{
37
40
  debugName: "firstMatch"
38
41
  }] : []));
39
42
  expanded = computed(() => this.alwaysExpanded() || this._pattern.expanded(), ...(ngDevMode ? [{
40
43
  debugName: "expanded"
41
44
  }] : []));
42
- alwaysExpanded = input(false, ...(ngDevMode ? [{
43
- debugName: "alwaysExpanded",
44
- transform: booleanAttribute
45
- }] : [{
45
+ alwaysExpanded = input(false, {
46
+ ...(ngDevMode ? {
47
+ debugName: "alwaysExpanded"
48
+ } : {}),
46
49
  transform: booleanAttribute
47
- }]));
50
+ });
48
51
  inputElement = computed(() => this._pattern.inputs.inputEl(), ...(ngDevMode ? [{
49
52
  debugName: "inputElement"
50
53
  }] : []));
@@ -80,7 +83,7 @@ class Combobox {
80
83
  }
81
84
  static ɵfac = i0.ɵɵngDeclareFactory({
82
85
  minVersion: "12.0.0",
83
- version: "21.0.0",
86
+ version: "21.0.3",
84
87
  ngImport: i0,
85
88
  type: Combobox,
86
89
  deps: [],
@@ -88,7 +91,7 @@ class Combobox {
88
91
  });
89
92
  static ɵdir = i0.ɵɵngDeclareDirective({
90
93
  minVersion: "17.2.0",
91
- version: "21.0.0",
94
+ version: "21.0.3",
92
95
  type: Combobox,
93
96
  isStandalone: true,
94
97
  selector: "[ngCombobox]",
@@ -141,10 +144,14 @@ class Combobox {
141
144
  "attr.data-expanded": "expanded()"
142
145
  }
143
146
  },
147
+ providers: [{
148
+ provide: COMBOBOX,
149
+ useExisting: Combobox
150
+ }],
144
151
  queries: [{
145
152
  propertyName: "popup",
146
153
  first: true,
147
- predicate: i0.forwardRef(() => ComboboxPopup),
154
+ predicate: ComboboxPopup,
148
155
  descendants: true,
149
156
  isSignal: true
150
157
  }],
@@ -158,7 +165,7 @@ class Combobox {
158
165
  }
159
166
  i0.ɵɵngDeclareClassMetadata({
160
167
  minVersion: "12.0.0",
161
- version: "21.0.0",
168
+ version: "21.0.3",
162
169
  ngImport: i0,
163
170
  type: Combobox,
164
171
  decorators: [{
@@ -177,14 +184,18 @@ i0.ɵɵngDeclareClassMetadata({
177
184
  '(click)': '_pattern.onClick($event)',
178
185
  '(focusin)': '_pattern.onFocusIn()',
179
186
  '(focusout)': '_pattern.onFocusOut($event)'
180
- }
187
+ },
188
+ providers: [{
189
+ provide: COMBOBOX,
190
+ useExisting: Combobox
191
+ }]
181
192
  }]
182
193
  }],
183
194
  ctorParameters: () => [],
184
195
  propDecorators: {
185
196
  popup: [{
186
197
  type: i0.ContentChild,
187
- args: [forwardRef(() => ComboboxPopup), {
198
+ args: [i0.forwardRef(() => ComboboxPopup), {
188
199
  isSignal: true
189
200
  }]
190
201
  }],
@@ -230,6 +241,84 @@ i0.ɵɵngDeclareClassMetadata({
230
241
  }]
231
242
  }
232
243
  });
244
+
245
+ class ComboboxDialog {
246
+ _elementRef = inject(ElementRef);
247
+ element = this._elementRef.nativeElement;
248
+ combobox = inject(Combobox);
249
+ _popup = inject(ComboboxPopup, {
250
+ optional: true
251
+ });
252
+ _pattern;
253
+ constructor() {
254
+ this._pattern = new ComboboxDialogPattern({
255
+ id: () => '',
256
+ element: () => this._elementRef.nativeElement,
257
+ combobox: this.combobox._pattern
258
+ });
259
+ if (this._popup) {
260
+ this._popup._controls.set(this._pattern);
261
+ }
262
+ afterRenderEffect(() => {
263
+ if (this._elementRef) {
264
+ this.combobox._pattern.expanded() ? this._elementRef.nativeElement.showModal() : this._elementRef.nativeElement.close();
265
+ }
266
+ });
267
+ }
268
+ close() {
269
+ this._popup?.combobox?._pattern.close();
270
+ }
271
+ static ɵfac = i0.ɵɵngDeclareFactory({
272
+ minVersion: "12.0.0",
273
+ version: "21.0.3",
274
+ ngImport: i0,
275
+ type: ComboboxDialog,
276
+ deps: [],
277
+ target: i0.ɵɵFactoryTarget.Directive
278
+ });
279
+ static ɵdir = i0.ɵɵngDeclareDirective({
280
+ minVersion: "14.0.0",
281
+ version: "21.0.3",
282
+ type: ComboboxDialog,
283
+ isStandalone: true,
284
+ selector: "dialog[ngComboboxDialog]",
285
+ host: {
286
+ listeners: {
287
+ "keydown": "_pattern.onKeydown($event)",
288
+ "click": "_pattern.onClick($event)"
289
+ },
290
+ properties: {
291
+ "attr.data-open": "combobox._pattern.expanded()"
292
+ }
293
+ },
294
+ exportAs: ["ngComboboxDialog"],
295
+ hostDirectives: [{
296
+ directive: ComboboxPopup
297
+ }],
298
+ ngImport: i0
299
+ });
300
+ }
301
+ i0.ɵɵngDeclareClassMetadata({
302
+ minVersion: "12.0.0",
303
+ version: "21.0.3",
304
+ ngImport: i0,
305
+ type: ComboboxDialog,
306
+ decorators: [{
307
+ type: Directive,
308
+ args: [{
309
+ selector: 'dialog[ngComboboxDialog]',
310
+ exportAs: 'ngComboboxDialog',
311
+ host: {
312
+ '[attr.data-open]': 'combobox._pattern.expanded()',
313
+ '(keydown)': '_pattern.onKeydown($event)',
314
+ '(click)': '_pattern.onClick($event)'
315
+ },
316
+ hostDirectives: [ComboboxPopup]
317
+ }]
318
+ }],
319
+ ctorParameters: () => []
320
+ });
321
+
233
322
  class ComboboxInput {
234
323
  _elementRef = inject(ElementRef);
235
324
  element = this._elementRef.nativeElement;
@@ -252,7 +341,7 @@ class ComboboxInput {
252
341
  }
253
342
  static ɵfac = i0.ɵɵngDeclareFactory({
254
343
  minVersion: "12.0.0",
255
- version: "21.0.0",
344
+ version: "21.0.3",
256
345
  ngImport: i0,
257
346
  type: ComboboxInput,
258
347
  deps: [],
@@ -260,7 +349,7 @@ class ComboboxInput {
260
349
  });
261
350
  static ɵdir = i0.ɵɵngDeclareDirective({
262
351
  minVersion: "17.1.0",
263
- version: "21.0.0",
352
+ version: "21.0.3",
264
353
  type: ComboboxInput,
265
354
  isStandalone: true,
266
355
  selector: "input[ngComboboxInput]",
@@ -297,7 +386,7 @@ class ComboboxInput {
297
386
  }
298
387
  i0.ɵɵngDeclareClassMetadata({
299
388
  minVersion: "12.0.0",
300
- version: "21.0.0",
389
+ version: "21.0.3",
301
390
  ngImport: i0,
302
391
  type: ComboboxInput,
303
392
  decorators: [{
@@ -333,10 +422,11 @@ i0.ɵɵngDeclareClassMetadata({
333
422
  }]
334
423
  }
335
424
  });
425
+
336
426
  class ComboboxPopupContainer {
337
427
  static ɵfac = i0.ɵɵngDeclareFactory({
338
428
  minVersion: "12.0.0",
339
- version: "21.0.0",
429
+ version: "21.0.3",
340
430
  ngImport: i0,
341
431
  type: ComboboxPopupContainer,
342
432
  deps: [],
@@ -344,7 +434,7 @@ class ComboboxPopupContainer {
344
434
  });
345
435
  static ɵdir = i0.ɵɵngDeclareDirective({
346
436
  minVersion: "14.0.0",
347
- version: "21.0.0",
437
+ version: "21.0.3",
348
438
  type: ComboboxPopupContainer,
349
439
  isStandalone: true,
350
440
  selector: "ng-template[ngComboboxPopupContainer]",
@@ -357,7 +447,7 @@ class ComboboxPopupContainer {
357
447
  }
358
448
  i0.ɵɵngDeclareClassMetadata({
359
449
  minVersion: "12.0.0",
360
- version: "21.0.0",
450
+ version: "21.0.3",
361
451
  ngImport: i0,
362
452
  type: ComboboxPopupContainer,
363
453
  decorators: [{
@@ -369,120 +459,6 @@ i0.ɵɵngDeclareClassMetadata({
369
459
  }]
370
460
  }]
371
461
  });
372
- class ComboboxPopup {
373
- combobox = inject(Combobox, {
374
- optional: true
375
- });
376
- _controls = signal(undefined, ...(ngDevMode ? [{
377
- debugName: "_controls"
378
- }] : []));
379
- static ɵfac = i0.ɵɵngDeclareFactory({
380
- minVersion: "12.0.0",
381
- version: "21.0.0",
382
- ngImport: i0,
383
- type: ComboboxPopup,
384
- deps: [],
385
- target: i0.ɵɵFactoryTarget.Directive
386
- });
387
- static ɵdir = i0.ɵɵngDeclareDirective({
388
- minVersion: "14.0.0",
389
- version: "21.0.0",
390
- type: ComboboxPopup,
391
- isStandalone: true,
392
- selector: "[ngComboboxPopup]",
393
- exportAs: ["ngComboboxPopup"],
394
- ngImport: i0
395
- });
396
- }
397
- i0.ɵɵngDeclareClassMetadata({
398
- minVersion: "12.0.0",
399
- version: "21.0.0",
400
- ngImport: i0,
401
- type: ComboboxPopup,
402
- decorators: [{
403
- type: Directive,
404
- args: [{
405
- selector: '[ngComboboxPopup]',
406
- exportAs: 'ngComboboxPopup'
407
- }]
408
- }]
409
- });
410
- class ComboboxDialog {
411
- _elementRef = inject(ElementRef);
412
- element = this._elementRef.nativeElement;
413
- combobox = inject(Combobox);
414
- _popup = inject(ComboboxPopup, {
415
- optional: true
416
- });
417
- _pattern;
418
- constructor() {
419
- this._pattern = new ComboboxDialogPattern({
420
- id: () => '',
421
- element: () => this._elementRef.nativeElement,
422
- combobox: this.combobox._pattern
423
- });
424
- if (this._popup) {
425
- this._popup._controls.set(this._pattern);
426
- }
427
- afterRenderEffect(() => {
428
- if (this._elementRef) {
429
- this.combobox._pattern.expanded() ? this._elementRef.nativeElement.showModal() : this._elementRef.nativeElement.close();
430
- }
431
- });
432
- }
433
- close() {
434
- this._popup?.combobox?._pattern.close();
435
- }
436
- static ɵfac = i0.ɵɵngDeclareFactory({
437
- minVersion: "12.0.0",
438
- version: "21.0.0",
439
- ngImport: i0,
440
- type: ComboboxDialog,
441
- deps: [],
442
- target: i0.ɵɵFactoryTarget.Directive
443
- });
444
- static ɵdir = i0.ɵɵngDeclareDirective({
445
- minVersion: "14.0.0",
446
- version: "21.0.0",
447
- type: ComboboxDialog,
448
- isStandalone: true,
449
- selector: "dialog[ngComboboxDialog]",
450
- host: {
451
- listeners: {
452
- "keydown": "_pattern.onKeydown($event)",
453
- "click": "_pattern.onClick($event)"
454
- },
455
- properties: {
456
- "attr.data-open": "combobox._pattern.expanded()"
457
- }
458
- },
459
- exportAs: ["ngComboboxDialog"],
460
- hostDirectives: [{
461
- directive: ComboboxPopup
462
- }],
463
- ngImport: i0
464
- });
465
- }
466
- i0.ɵɵngDeclareClassMetadata({
467
- minVersion: "12.0.0",
468
- version: "21.0.0",
469
- ngImport: i0,
470
- type: ComboboxDialog,
471
- decorators: [{
472
- type: Directive,
473
- args: [{
474
- selector: 'dialog[ngComboboxDialog]',
475
- exportAs: 'ngComboboxDialog',
476
- host: {
477
- '[attr.data-open]': 'combobox._pattern.expanded()',
478
- '(keydown)': '_pattern.onKeydown($event)',
479
- '(click)': '_pattern.onClick($event)'
480
- },
481
- hostDirectives: [ComboboxPopup]
482
- }]
483
- }],
484
- ctorParameters: () => []
485
- });
486
462
 
487
463
  export { Combobox, ComboboxDialog, ComboboxInput, ComboboxPopup, ComboboxPopupContainer };
488
464
  //# sourceMappingURL=combobox.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/aria/combobox/combobox.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 afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n Directive,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n signal,\n untracked,\n WritableSignal,\n} from '@angular/core';\nimport {\n DeferredContent,\n DeferredContentAware,\n ComboboxPattern,\n ComboboxListboxControls,\n ComboboxTreeControls,\n ComboboxDialogPattern,\n} from '@angular/aria/private';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {toSignal} from '@angular/core/rxjs-interop';\n\n/**\n * The container element that wraps a combobox input and popup, and orchestrates its behavior.\n *\n * The `ngCombobox` directive is the main entry point for creating a combobox and customizing its\n * behavior. It coordinates the interactions between the `ngComboboxInput` and the popup, which\n * is defined by a `ng-template` with the `ngComboboxPopupContainer` directive. If using the\n * `CdkOverlay`, the `cdkConnectedOverlay` directive takes the place of `ngComboboxPopupContainer`.\n *\n * ```html\n * <div ngCombobox filterMode=\"highlight\">\n * <input\n * ngComboboxInput\n * placeholder=\"Search for a state...\"\n * [(value)]=\"searchString\"\n * />\n *\n * <ng-template ngComboboxPopupContainer>\n * <div ngListbox [(value)]=\"selectedValue\">\n * @for (option of filteredOptions(); track option) {\n * <div ngOption [value]=\"option\" [label]=\"option\">\n * <span>{{option}}</span>\n * </div>\n * }\n * </div>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngCombobox]',\n exportAs: 'ngCombobox',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n '[attr.data-expanded]': 'expanded()',\n '(input)': '_pattern.onInput($event)',\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n '(focusin)': '_pattern.onFocusIn()',\n '(focusout)': '_pattern.onFocusOut($event)',\n },\n})\nexport class Combobox<V> {\n /** The directionality (LTR / RTL) context for the application (or a subtree of it). */\n private readonly _directionality = inject(Directionality);\n\n /** A signal wrapper for directionality. */\n protected textDirection = toSignal(this._directionality.change, {\n initialValue: this._directionality.value,\n });\n\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the combobox element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware, {optional: true});\n\n /** The combobox popup. */\n readonly popup = contentChild<ComboboxPopup<V>>(\n // We need a `forwardRef` here, because the popup class is declared further down\n // in the same file. When the reference is written to Angular's metadata this can\n // cause an attempt to access the class before it's defined.\n forwardRef(() => ComboboxPopup),\n );\n\n /**\n * The filter mode for the combobox.\n * - `manual`: The consumer is responsible for filtering the options.\n * - `auto-select`: The combobox automatically selects the first matching option.\n * - `highlight`: The combobox highlights matching text in the options without changing selection.\n */\n filterMode = input<'manual' | 'auto-select' | 'highlight'>('manual');\n\n /** Whether the combobox is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether the combobox is read-only. */\n readonly readonly = input(false, {transform: booleanAttribute});\n\n /** The value of the first matching item in the popup. */\n readonly firstMatch = input<V | undefined>(undefined);\n\n /** Whether the combobox is expanded. */\n readonly expanded = computed(() => this.alwaysExpanded() || this._pattern.expanded());\n\n // TODO: Maybe make expanded a signal that can be passed in?\n // Or an \"always expanded\" option?\n\n /** Whether the combobox popup should always be expanded, regardless of user interaction. */\n readonly alwaysExpanded = input(false, {transform: booleanAttribute});\n\n /** Input element connected to the combobox, if any. */\n readonly inputElement = computed(() => this._pattern.inputs.inputEl());\n\n /** The combobox ui pattern. */\n readonly _pattern = new ComboboxPattern<any, V>({\n ...this,\n textDirection: this.textDirection,\n disabled: this.disabled,\n readonly: this.readonly,\n inputValue: signal(''),\n inputEl: signal(undefined),\n containerEl: () => this._elementRef.nativeElement,\n popupControls: () => this.popup()?._controls(),\n });\n\n constructor() {\n afterRenderEffect(() => {\n if (this.alwaysExpanded()) {\n this._pattern.expanded.set(true);\n }\n });\n\n afterRenderEffect(() => {\n if (\n !this._deferredContentAware?.contentVisible() &&\n (this._pattern.isFocused() || this.alwaysExpanded())\n ) {\n this._deferredContentAware?.contentVisible.set(true);\n }\n });\n }\n\n /** Opens the combobox to the selected item. */\n open() {\n this._pattern.open({selected: true});\n }\n\n /** Closes the combobox. */\n close() {\n this._pattern.close();\n }\n}\n\n/**\n * An input that is part of a combobox. It is responsible for displaying the\n * current value and handling user input for filtering and selection.\n *\n * This directive should be applied to an `<input>` element within an `ngCombobox`\n * container. It automatically handles keyboard interactions, such as opening the\n * popup and navigating through the options.\n *\n * ```html\n * <input\n * ngComboboxInput\n * placeholder=\"Search...\"\n * [(value)]=\"searchString\"\n * />\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'input[ngComboboxInput]',\n exportAs: 'ngComboboxInput',\n host: {\n 'role': 'combobox',\n '[value]': 'value()',\n '[attr.aria-disabled]': 'combobox._pattern.disabled()',\n '[attr.aria-expanded]': 'combobox._pattern.expanded()',\n '[attr.aria-activedescendant]': 'combobox._pattern.activeDescendant()',\n '[attr.aria-controls]': 'combobox._pattern.popupId()',\n '[attr.aria-haspopup]': 'combobox._pattern.hasPopup()',\n '[attr.aria-autocomplete]': 'combobox._pattern.autocomplete()',\n '[attr.readonly]': 'combobox._pattern.readonly()',\n },\n})\nexport class ComboboxInput {\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n /** A reference to the input element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The combobox that the input belongs to. */\n readonly combobox = inject(Combobox);\n\n /** The value of the input. */\n value = model<string>('');\n\n constructor() {\n (this.combobox._pattern.inputs.inputEl as WritableSignal<HTMLInputElement>).set(\n this._elementRef.nativeElement,\n );\n this.combobox._pattern.inputs.inputValue = this.value;\n\n const controls = this.combobox.popup()?._controls();\n if (controls instanceof ComboboxDialogPattern) {\n return;\n }\n\n /** Focuses & selects the first item in the combobox if the user changes the input value. */\n afterRenderEffect(() => {\n this.value();\n controls?.items();\n untracked(() => this.combobox._pattern.onFilter());\n });\n }\n}\n\n/**\n * A structural directive that marks the `ng-template` to be used as the popup\n * for a combobox. This content is conditionally rendered.\n *\n * The content of the popup can be a `ngListbox`, `ngTree`, or `role=\"dialog\"`, allowing for\n * flexible and complex combobox implementations. The consumer is responsible for\n * implementing the filtering logic based on the `ngComboboxInput`'s value.\n *\n * ```html\n * <ng-template ngComboboxPopupContainer>\n * <div ngListbox [(value)]=\"selectedValue\">\n * <!-- ... options ... -->\n * </div>\n * </ng-template>\n * ```\n *\n * When using CdkOverlay, this directive can be replaced by `cdkConnectedOverlay`.\n *\n * ```html\n * <ng-template\n * [cdkConnectedOverlay]=\"{origin: inputElement, usePopover: 'inline' matchWidth: true}\"\n * [cdkConnectedOverlayOpen]=\"combobox.expanded()\">\n * <div ngListbox [(value)]=\"selectedValue\">\n * <!-- ... options ... -->\n * </div>\n * </ng-template>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'ng-template[ngComboboxPopupContainer]',\n exportAs: 'ngComboboxPopupContainer',\n hostDirectives: [DeferredContent],\n})\nexport class ComboboxPopupContainer {}\n\n/**\n * Identifies an element as a popup for an `ngCombobox`.\n *\n * This directive acts as a bridge, allowing the `ngCombobox` to discover and interact\n * with the underlying control (e.g., `ngListbox`, `ngTree`, or `ngComboboxDialog`) that\n * manages the options. It's primarily used as a host directive and is responsible for\n * exposing the popup's control pattern to the parent combobox.\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngComboboxPopup]',\n exportAs: 'ngComboboxPopup',\n})\nexport class ComboboxPopup<V> {\n /** The combobox that the popup belongs to. */\n readonly combobox = inject<Combobox<V>>(Combobox, {optional: true});\n\n /** The popup controls exposed to the combobox. */\n readonly _controls = signal<\n | ComboboxListboxControls<any, V>\n | ComboboxTreeControls<any, V>\n | ComboboxDialogPattern\n | undefined\n >(undefined);\n}\n\n/**\n * Integrates a native `<dialog>` element with the combobox, allowing for\n * a modal or non-modal popup experience. It handles the opening and closing of the dialog\n * based on the combobox's expanded state.\n *\n * ```html\n * <ng-template ngComboboxPopupContainer>\n * <dialog ngComboboxDialog class=\"example-dialog\">\n * <!-- ... dialog content ... -->\n * </dialog>\n * </ng-template>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'dialog[ngComboboxDialog]',\n exportAs: 'ngComboboxDialog',\n host: {\n '[attr.data-open]': 'combobox._pattern.expanded()',\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n },\n hostDirectives: [ComboboxPopup],\n})\nexport class ComboboxDialog {\n /** The dialog element. */\n private readonly _elementRef = inject(ElementRef<HTMLDialogElement>);\n\n /** A reference to the dialog element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The combobox that the dialog belongs to. */\n readonly combobox = inject(Combobox);\n\n /** A reference to the parent combobox popup, if one exists. */\n private readonly _popup = inject<ComboboxPopup<unknown>>(ComboboxPopup, {\n optional: true,\n });\n\n _pattern: ComboboxDialogPattern;\n\n constructor() {\n this._pattern = new ComboboxDialogPattern({\n id: () => '',\n element: () => this._elementRef.nativeElement,\n combobox: this.combobox._pattern,\n });\n\n if (this._popup) {\n this._popup._controls.set(this._pattern);\n }\n\n afterRenderEffect(() => {\n if (this._elementRef) {\n this.combobox._pattern.expanded()\n ? this._elementRef.nativeElement.showModal()\n : this._elementRef.nativeElement.close();\n }\n });\n }\n\n close() {\n this._popup?.combobox?._pattern.close();\n }\n}\n"],"names":["Combobox","_directionality","inject","Directionality","textDirection","toSignal","change","initialValue","value","_elementRef","ElementRef","element","nativeElement","_deferredContentAware","DeferredContentAware","optional","popup","contentChild","forwardRef","ComboboxPopup","filterMode","input","disabled","transform","booleanAttribute","readonly","firstMatch","undefined","expanded","computed","alwaysExpanded","_pattern","inputElement","inputs","inputEl","ComboboxPattern","inputValue","signal","containerEl","popupControls","_controls","constructor","afterRenderEffect","set","contentVisible","isFocused","open","selected","close","deps","target","i0","ɵɵFactoryTarget","Directive","ɵdir","ɵɵngDeclareDirective","minVersion","version","type","descendants","isSignal","exportAs","hostDirectives","directive","i1","ngImport","decorators","args","selector","host","Input","alias","required","ComboboxInput","combobox","model","controls","ComboboxDialogPattern","items","untracked","onFilter","isStandalone","classPropertyName","publicName","isRequired","transformFunction","outputs","attributes","properties","ComboboxPopupContainer","DeferredContent","ComboboxDialog","_popup","id","showModal"],"mappings":";;;;;;;MAkFaA,QAAQ,CAAA;AAEFC,EAAAA,eAAe,GAAGC,MAAM,CAACC,cAAc,CAAC;EAG/CC,aAAa,GAAGC,QAAQ,CAAC,IAAI,CAACJ,eAAe,CAACK,MAAM,EAAE;AAC9DC,IAAAA,YAAY,EAAE,IAAI,CAACN,eAAe,CAACO;AACpC,GAAA,CAAC;AAGeC,EAAAA,WAAW,GAAGP,MAAM,CAACQ,UAAU,CAAC;AAGxCC,EAAAA,OAAO,GAAG,IAAI,CAACF,WAAW,CAACG,aAA4B;AAG/CC,EAAAA,qBAAqB,GAAGX,MAAM,CAACY,oBAAoB,EAAE;AAACC,IAAAA,QAAQ,EAAE;AAAK,GAAA,CAAC;AAG9EC,EAAAA,KAAK,GAAGC,YAAY,CAI3BC,UAAU,CAAC,MAAMC,aAAa,CAAC;;WAChC;EAQDC,UAAU,GAAGC,KAAK,CAAyC,QAAQ;;WAAC;EAG3DC,QAAQ,GAAGD,KAAK,CAAC,KAAK;;AAAGE,IAAAA,SAAS,EAAEC;GAAgB,CAAA,GAAA,CAA5B;AAACD,IAAAA,SAAS,EAAEC;GAAiB,GAAC;EAGtDC,QAAQ,GAAGJ,KAAK,CAAC,KAAK;;AAAGE,IAAAA,SAAS,EAAEC;GAAgB,CAAA,GAAA,CAA5B;AAACD,IAAAA,SAAS,EAAEC;GAAiB,GAAC;EAGtDE,UAAU,GAAGL,KAAK,CAAgBM,SAAS;;WAAC;EAG5CC,QAAQ,GAAGC,QAAQ,CAAC,MAAM,IAAI,CAACC,cAAc,EAAE,IAAI,IAAI,CAACC,QAAQ,CAACH,QAAQ,EAAE;;WAAC;EAM5EE,cAAc,GAAGT,KAAK,CAAC,KAAK;;AAAGE,IAAAA,SAAS,EAAEC;GAAgB,CAAA,GAAA,CAA5B;AAACD,IAAAA,SAAS,EAAEC;GA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AA,QAAA;AAAAC,IAAAA,IAAA,EAAAiC,cAAc;;;;;;;;;;;;;;iBAtCdxE;AAAa,KAAA,CAAA;AAAA8C,IAAAA,QAAA,EAAAd;AAAA,GAAA,CAAA;;;;;;QAsCbwC,cAAc;AAAAzB,EAAAA,UAAA,EAAA,CAAA;UAV1Bb,SAAS;AAACc,IAAAA,IAAA,EAAA,CAAA;AACTC,MAAAA,QAAQ,EAAE,0BAA0B;AACpCP,MAAAA,QAAQ,EAAE,kBAAkB;AAC5BQ,MAAAA,IAAI,EAAE;AACJ,QAAA,kBAAkB,EAAE,8BAA8B;AAClD,QAAA,WAAW,EAAE,4BAA4B;AACzC,QAAA,SAAS,EAAE;OACZ;MACDP,cAAc,EAAE,CAAC3C,aAAa;KAC/B;;;;;;;"}
1
+ {"version":3,"file":"combobox.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/combobox/combobox.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/combobox/combobox-dialog.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/combobox/combobox-input.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/combobox/combobox-popup-container.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 afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport {DeferredContentAware, ComboboxPattern} from '@angular/aria/private';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {ComboboxPopup} from './combobox-popup';\nimport {COMBOBOX} from './combobox-tokens';\n\n/**\n * The container element that wraps a combobox input and popup, and orchestrates its behavior.\n *\n * The `ngCombobox` directive is the main entry point for creating a combobox and customizing its\n * behavior. It coordinates the interactions between the `ngComboboxInput` and the popup, which\n * is defined by a `ng-template` with the `ngComboboxPopupContainer` directive. If using the\n * `CdkOverlay`, the `cdkConnectedOverlay` directive takes the place of `ngComboboxPopupContainer`.\n *\n * ```html\n * <div ngCombobox filterMode=\"highlight\">\n * <input\n * ngComboboxInput\n * placeholder=\"Search for a state...\"\n * [(value)]=\"searchString\"\n * />\n *\n * <ng-template ngComboboxPopupContainer>\n * <div ngListbox [(value)]=\"selectedValue\">\n * @for (option of filteredOptions(); track option) {\n * <div ngOption [value]=\"option\" [label]=\"option\">\n * <span>{{option}}</span>\n * </div>\n * }\n * </div>\n * </ng-template>\n * </div>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: '[ngCombobox]',\n exportAs: 'ngCombobox',\n hostDirectives: [\n {\n directive: DeferredContentAware,\n inputs: ['preserveContent'],\n },\n ],\n host: {\n '[attr.data-expanded]': 'expanded()',\n '(input)': '_pattern.onInput($event)',\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n '(focusin)': '_pattern.onFocusIn()',\n '(focusout)': '_pattern.onFocusOut($event)',\n },\n providers: [{provide: COMBOBOX, useExisting: Combobox}],\n})\nexport class Combobox<V> {\n /** The directionality (LTR / RTL) context for the application (or a subtree of it). */\n private readonly _directionality = inject(Directionality);\n\n /** A signal wrapper for directionality. */\n protected textDirection = toSignal(this._directionality.change, {\n initialValue: this._directionality.value,\n });\n\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject(ElementRef);\n\n /** A reference to the combobox element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The DeferredContentAware host directive. */\n private readonly _deferredContentAware = inject(DeferredContentAware, {optional: true});\n\n /** The combobox popup. */\n readonly popup = contentChild<ComboboxPopup<V>>(ComboboxPopup);\n\n /**\n * The filter mode for the combobox.\n * - `manual`: The consumer is responsible for filtering the options.\n * - `auto-select`: The combobox automatically selects the first matching option.\n * - `highlight`: The combobox highlights matching text in the options without changing selection.\n */\n filterMode = input<'manual' | 'auto-select' | 'highlight'>('manual');\n\n /** Whether the combobox is disabled. */\n readonly disabled = input(false, {transform: booleanAttribute});\n\n /** Whether the combobox is read-only. */\n readonly readonly = input(false, {transform: booleanAttribute});\n\n /** The value of the first matching item in the popup. */\n readonly firstMatch = input<V | undefined>(undefined);\n\n /** Whether the combobox is expanded. */\n readonly expanded = computed(() => this.alwaysExpanded() || this._pattern.expanded());\n\n // TODO: Maybe make expanded a signal that can be passed in?\n // Or an \"always expanded\" option?\n\n /** Whether the combobox popup should always be expanded, regardless of user interaction. */\n readonly alwaysExpanded = input(false, {transform: booleanAttribute});\n\n /** Input element connected to the combobox, if any. */\n readonly inputElement = computed(() => this._pattern.inputs.inputEl());\n\n /** The combobox ui pattern. */\n readonly _pattern = new ComboboxPattern<any, V>({\n ...this,\n textDirection: this.textDirection,\n disabled: this.disabled,\n readonly: this.readonly,\n inputValue: signal(''),\n inputEl: signal(undefined),\n containerEl: () => this._elementRef.nativeElement,\n popupControls: () => this.popup()?._controls(),\n });\n\n constructor() {\n afterRenderEffect(() => {\n if (this.alwaysExpanded()) {\n this._pattern.expanded.set(true);\n }\n });\n\n afterRenderEffect(() => {\n if (\n !this._deferredContentAware?.contentVisible() &&\n (this._pattern.isFocused() || this.alwaysExpanded())\n ) {\n this._deferredContentAware?.contentVisible.set(true);\n }\n });\n }\n\n /** Opens the combobox to the selected item. */\n open() {\n this._pattern.open({selected: true});\n }\n\n /** Closes the combobox. */\n close() {\n this._pattern.close();\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 {afterRenderEffect, Directive, ElementRef, inject} from '@angular/core';\nimport {ComboboxDialogPattern} from '../private';\nimport {Combobox} from './combobox';\nimport {ComboboxPopup} from './combobox-popup';\n\n/**\n * Integrates a native `<dialog>` element with the combobox, allowing for\n * a modal or non-modal popup experience. It handles the opening and closing of the dialog\n * based on the combobox's expanded state.\n *\n * ```html\n * <ng-template ngComboboxPopupContainer>\n * <dialog ngComboboxDialog class=\"example-dialog\">\n * <!-- ... dialog content ... -->\n * </dialog>\n * </ng-template>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'dialog[ngComboboxDialog]',\n exportAs: 'ngComboboxDialog',\n host: {\n '[attr.data-open]': 'combobox._pattern.expanded()',\n '(keydown)': '_pattern.onKeydown($event)',\n '(click)': '_pattern.onClick($event)',\n },\n hostDirectives: [ComboboxPopup],\n})\nexport class ComboboxDialog {\n /** The dialog element. */\n private readonly _elementRef = inject(ElementRef<HTMLDialogElement>);\n\n /** A reference to the dialog element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The combobox that the dialog belongs to. */\n readonly combobox = inject(Combobox);\n\n /** A reference to the parent combobox popup, if one exists. */\n private readonly _popup = inject<ComboboxPopup<unknown>>(ComboboxPopup, {\n optional: true,\n });\n\n _pattern: ComboboxDialogPattern;\n\n constructor() {\n this._pattern = new ComboboxDialogPattern({\n id: () => '',\n element: () => this._elementRef.nativeElement,\n combobox: this.combobox._pattern,\n });\n\n if (this._popup) {\n this._popup._controls.set(this._pattern);\n }\n\n afterRenderEffect(() => {\n if (this._elementRef) {\n this.combobox._pattern.expanded()\n ? this._elementRef.nativeElement.showModal()\n : this._elementRef.nativeElement.close();\n }\n });\n }\n\n close() {\n this._popup?.combobox?._pattern.close();\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 afterRenderEffect,\n Directive,\n ElementRef,\n inject,\n model,\n untracked,\n WritableSignal,\n} from '@angular/core';\nimport {ComboboxDialogPattern} from '../private';\nimport {Combobox} from './combobox';\n\n/**\n * An input that is part of a combobox. It is responsible for displaying the\n * current value and handling user input for filtering and selection.\n *\n * This directive should be applied to an `<input>` element within an `ngCombobox`\n * container. It automatically handles keyboard interactions, such as opening the\n * popup and navigating through the options.\n *\n * ```html\n * <input\n * ngComboboxInput\n * placeholder=\"Search...\"\n * [(value)]=\"searchString\"\n * />\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'input[ngComboboxInput]',\n exportAs: 'ngComboboxInput',\n host: {\n 'role': 'combobox',\n '[value]': 'value()',\n '[attr.aria-disabled]': 'combobox._pattern.disabled()',\n '[attr.aria-expanded]': 'combobox._pattern.expanded()',\n '[attr.aria-activedescendant]': 'combobox._pattern.activeDescendant()',\n '[attr.aria-controls]': 'combobox._pattern.popupId()',\n '[attr.aria-haspopup]': 'combobox._pattern.hasPopup()',\n '[attr.aria-autocomplete]': 'combobox._pattern.autocomplete()',\n '[attr.readonly]': 'combobox._pattern.readonly()',\n },\n})\nexport class ComboboxInput {\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\n\n /** A reference to the input element. */\n readonly element = this._elementRef.nativeElement as HTMLElement;\n\n /** The combobox that the input belongs to. */\n readonly combobox = inject(Combobox);\n\n /** The value of the input. */\n value = model<string>('');\n\n constructor() {\n (this.combobox._pattern.inputs.inputEl as WritableSignal<HTMLInputElement>).set(\n this._elementRef.nativeElement,\n );\n this.combobox._pattern.inputs.inputValue = this.value;\n\n const controls = this.combobox.popup()?._controls();\n if (controls instanceof ComboboxDialogPattern) {\n return;\n }\n\n /** Focuses & selects the first item in the combobox if the user changes the input value. */\n afterRenderEffect(() => {\n this.value();\n controls?.items();\n untracked(() => this.combobox._pattern.onFilter());\n });\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 '@angular/aria/private';\n\n/**\n * A structural directive that marks the `ng-template` to be used as the popup\n * for a combobox. This content is conditionally rendered.\n *\n * The content of the popup can be a `ngListbox`, `ngTree`, or `role=\"dialog\"`, allowing for\n * flexible and complex combobox implementations. The consumer is responsible for\n * implementing the filtering logic based on the `ngComboboxInput`'s value.\n *\n * ```html\n * <ng-template ngComboboxPopupContainer>\n * <div ngListbox [(value)]=\"selectedValue\">\n * <!-- ... options ... -->\n * </div>\n * </ng-template>\n * ```\n *\n * When using CdkOverlay, this directive can be replaced by `cdkConnectedOverlay`.\n *\n * ```html\n * <ng-template\n * [cdkConnectedOverlay]=\"{origin: inputElement, usePopover: 'inline' matchWidth: true}\"\n * [cdkConnectedOverlayOpen]=\"combobox.expanded()\">\n * <div ngListbox [(value)]=\"selectedValue\">\n * <!-- ... options ... -->\n * </div>\n * </ng-template>\n * ```\n *\n * @developerPreview 21.0\n */\n@Directive({\n selector: 'ng-template[ngComboboxPopupContainer]',\n exportAs: 'ngComboboxPopupContainer',\n hostDirectives: [DeferredContent],\n})\nexport class ComboboxPopupContainer {}\n"],"names":["Combobox","_directionality","inject","Directionality","textDirection","toSignal","change","initialValue","value","_elementRef","ElementRef","element","nativeElement","_deferredContentAware","DeferredContentAware","optional","popup","contentChild","ComboboxPopup","filterMode","input","disabled","transform","booleanAttribute","readonly","firstMatch","undefined","expanded","computed","alwaysExpanded","_pattern","inputElement","inputs","inputEl","ComboboxPattern","inputValue","signal","containerEl","popupControls","_controls","constructor","afterRenderEffect","set","contentVisible","isFocused","open","selected","close","deps","target","i0","ɵɵFactoryTarget","Directive","ɵdir","ɵɵngDeclareDirective","minVersion","version","type","isStandalone","selector","classPropertyName","publicName","isSignal","isRequired","transformFunction","host","listeners","properties","providers","provide","COMBOBOX","useExisting","descendants","exportAs","hostDirectives","directive","i1","ngImport","decorators","args","Input","alias","required","ComboboxDialog","combobox","_popup","ComboboxDialogPattern","id","showModal","ComboboxInput","model","controls","items","untracked","onFilter","outputs","attributes","ComboboxPopupContainer","DeferredContent"],"mappings":";;;;;;;;;;MA0EaA,QAAQ,CAAA;AAEFC,EAAAA,eAAe,GAAGC,MAAM,CAACC,cAAc,CAAC;E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