@angular/aria 21.0.0-rc.0 → 21.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_adev_assets/aria-accordion.json +443 -59
- package/_adev_assets/aria-combobox.json +345 -37
- package/_adev_assets/aria-grid.json +408 -71
- package/_adev_assets/aria-listbox.json +115 -35
- package/_adev_assets/aria-menu.json +492 -167
- package/_adev_assets/aria-tabs.json +272 -88
- package/_adev_assets/aria-toolbar.json +151 -133
- package/_adev_assets/aria-tree.json +182 -35
- package/fesm2022/_widget-chunk.mjs +643 -190
- package/fesm2022/_widget-chunk.mjs.map +1 -1
- package/fesm2022/accordion.mjs +129 -77
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +140 -27
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +254 -68
- package/fesm2022/grid.mjs.map +1 -1
- package/fesm2022/listbox.mjs +54 -44
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +270 -108
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +752 -785
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs.mjs +101 -71
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +87 -64
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +105 -60
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -10
- package/types/_grid-chunk.d.ts +326 -83
- package/types/accordion.d.ts +134 -35
- package/types/combobox.d.ts +146 -13
- package/types/grid.d.ts +159 -32
- package/types/listbox.d.ts +59 -28
- package/types/menu.d.ts +151 -55
- package/types/private.d.ts +449 -567
- package/types/tabs.d.ts +121 -41
- package/types/toolbar.d.ts +74 -51
- package/types/tree.d.ts +116 -45
- package/_adev_assets/aria-radio-group.json +0 -389
- package/fesm2022/deferred-content.mjs +0 -99
- package/fesm2022/deferred-content.mjs.map +0 -1
- package/fesm2022/radio-group.mjs +0 -338
- package/fesm2022/radio-group.mjs.map +0 -1
- package/types/deferred-content.d.ts +0 -38
- package/types/radio-group.d.ts +0 -84
package/fesm2022/combobox.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, contentChild, input,
|
|
3
|
-
import * as i1 from '@angular/aria/
|
|
4
|
-
import { DeferredContentAware, DeferredContent } from '@angular/aria/
|
|
5
|
-
import { ComboboxPattern } from '@angular/aria/private';
|
|
2
|
+
import { inject, ElementRef, contentChild, input, booleanAttribute, computed, signal, afterRenderEffect, Directive, model, untracked } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/aria/private';
|
|
4
|
+
import { DeferredContentAware, ComboboxPattern, ComboboxDialogPattern, DeferredContent } from '@angular/aria/private';
|
|
6
5
|
import { Directionality } from '@angular/cdk/bidi';
|
|
7
6
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
8
7
|
|
|
@@ -12,6 +11,7 @@ class Combobox {
|
|
|
12
11
|
initialValue: this._directionality.value
|
|
13
12
|
});
|
|
14
13
|
_elementRef = inject(ElementRef);
|
|
14
|
+
element = this._elementRef.nativeElement;
|
|
15
15
|
_deferredContentAware = inject(DeferredContentAware, {
|
|
16
16
|
optional: true
|
|
17
17
|
});
|
|
@@ -21,24 +21,30 @@ class Combobox {
|
|
|
21
21
|
filterMode = input('manual', ...(ngDevMode ? [{
|
|
22
22
|
debugName: "filterMode"
|
|
23
23
|
}] : []));
|
|
24
|
-
isFocused = signal(false, ...(ngDevMode ? [{
|
|
25
|
-
debugName: "isFocused"
|
|
26
|
-
}] : []));
|
|
27
|
-
_hasBeenFocused = signal(false, ...(ngDevMode ? [{
|
|
28
|
-
debugName: "_hasBeenFocused"
|
|
29
|
-
}] : []));
|
|
30
24
|
disabled = input(false, ...(ngDevMode ? [{
|
|
31
|
-
debugName: "disabled"
|
|
32
|
-
|
|
25
|
+
debugName: "disabled",
|
|
26
|
+
transform: booleanAttribute
|
|
27
|
+
}] : [{
|
|
28
|
+
transform: booleanAttribute
|
|
29
|
+
}]));
|
|
33
30
|
readonly = input(false, ...(ngDevMode ? [{
|
|
34
|
-
debugName: "readonly"
|
|
35
|
-
|
|
31
|
+
debugName: "readonly",
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
}] : [{
|
|
34
|
+
transform: booleanAttribute
|
|
35
|
+
}]));
|
|
36
36
|
firstMatch = input(undefined, ...(ngDevMode ? [{
|
|
37
37
|
debugName: "firstMatch"
|
|
38
38
|
}] : []));
|
|
39
|
-
expanded = computed(() => this._pattern.expanded(), ...(ngDevMode ? [{
|
|
39
|
+
expanded = computed(() => this.alwaysExpanded() || this._pattern.expanded(), ...(ngDevMode ? [{
|
|
40
40
|
debugName: "expanded"
|
|
41
41
|
}] : []));
|
|
42
|
+
alwaysExpanded = input(false, ...(ngDevMode ? [{
|
|
43
|
+
debugName: "alwaysExpanded",
|
|
44
|
+
transform: booleanAttribute
|
|
45
|
+
}] : [{
|
|
46
|
+
transform: booleanAttribute
|
|
47
|
+
}]));
|
|
42
48
|
inputElement = computed(() => this._pattern.inputs.inputEl(), ...(ngDevMode ? [{
|
|
43
49
|
debugName: "inputElement"
|
|
44
50
|
}] : []));
|
|
@@ -54,16 +60,30 @@ class Combobox {
|
|
|
54
60
|
});
|
|
55
61
|
constructor() {
|
|
56
62
|
afterRenderEffect(() => {
|
|
57
|
-
if (
|
|
58
|
-
this.
|
|
63
|
+
if (this.alwaysExpanded()) {
|
|
64
|
+
this._pattern.expanded.set(true);
|
|
59
65
|
}
|
|
60
66
|
});
|
|
61
67
|
afterRenderEffect(() => {
|
|
62
|
-
if (!this.
|
|
63
|
-
this.
|
|
68
|
+
if (!this._deferredContentAware?.contentVisible() && (this._pattern.isFocused() || this.alwaysExpanded())) {
|
|
69
|
+
this._deferredContentAware?.contentVisible.set(true);
|
|
64
70
|
}
|
|
65
71
|
});
|
|
66
72
|
}
|
|
73
|
+
open() {
|
|
74
|
+
this._pattern.open({
|
|
75
|
+
selected: true
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
close() {
|
|
79
|
+
this._pattern.close();
|
|
80
|
+
}
|
|
81
|
+
expand() {
|
|
82
|
+
this._pattern.open();
|
|
83
|
+
}
|
|
84
|
+
collapse() {
|
|
85
|
+
this._pattern.close();
|
|
86
|
+
}
|
|
67
87
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
68
88
|
minVersion: "12.0.0",
|
|
69
89
|
version: "20.2.0-next.2",
|
|
@@ -106,13 +126,20 @@ class Combobox {
|
|
|
106
126
|
isSignal: true,
|
|
107
127
|
isRequired: false,
|
|
108
128
|
transformFunction: null
|
|
129
|
+
},
|
|
130
|
+
alwaysExpanded: {
|
|
131
|
+
classPropertyName: "alwaysExpanded",
|
|
132
|
+
publicName: "alwaysExpanded",
|
|
133
|
+
isSignal: true,
|
|
134
|
+
isRequired: false,
|
|
135
|
+
transformFunction: null
|
|
109
136
|
}
|
|
110
137
|
},
|
|
111
138
|
host: {
|
|
112
139
|
listeners: {
|
|
113
140
|
"input": "_pattern.onInput($event)",
|
|
114
141
|
"keydown": "_pattern.onKeydown($event)",
|
|
115
|
-
"
|
|
142
|
+
"click": "_pattern.onClick($event)",
|
|
116
143
|
"focusin": "_pattern.onFocusIn()",
|
|
117
144
|
"focusout": "_pattern.onFocusOut($event)"
|
|
118
145
|
},
|
|
@@ -153,7 +180,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
153
180
|
'[attr.data-expanded]': 'expanded()',
|
|
154
181
|
'(input)': '_pattern.onInput($event)',
|
|
155
182
|
'(keydown)': '_pattern.onKeydown($event)',
|
|
156
|
-
'(
|
|
183
|
+
'(click)': '_pattern.onClick($event)',
|
|
157
184
|
'(focusin)': '_pattern.onFocusIn()',
|
|
158
185
|
'(focusout)': '_pattern.onFocusOut($event)'
|
|
159
186
|
}
|
|
@@ -163,6 +190,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
163
190
|
});
|
|
164
191
|
class ComboboxInput {
|
|
165
192
|
_elementRef = inject(ElementRef);
|
|
193
|
+
element = this._elementRef.nativeElement;
|
|
166
194
|
combobox = inject(Combobox);
|
|
167
195
|
value = model('', ...(ngDevMode ? [{
|
|
168
196
|
debugName: "value"
|
|
@@ -170,8 +198,13 @@ class ComboboxInput {
|
|
|
170
198
|
constructor() {
|
|
171
199
|
this.combobox._pattern.inputs.inputEl.set(this._elementRef.nativeElement);
|
|
172
200
|
this.combobox._pattern.inputs.inputValue = this.value;
|
|
201
|
+
const controls = this.combobox.popup()?.controls();
|
|
202
|
+
if (controls instanceof ComboboxDialogPattern) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
173
205
|
afterRenderEffect(() => {
|
|
174
|
-
this.
|
|
206
|
+
this.value();
|
|
207
|
+
controls?.items();
|
|
175
208
|
untracked(() => this.combobox._pattern.onFilter());
|
|
176
209
|
});
|
|
177
210
|
}
|
|
@@ -207,11 +240,13 @@ class ComboboxInput {
|
|
|
207
240
|
},
|
|
208
241
|
properties: {
|
|
209
242
|
"value": "value()",
|
|
243
|
+
"attr.aria-disabled": "combobox._pattern.disabled()",
|
|
210
244
|
"attr.aria-expanded": "combobox._pattern.expanded()",
|
|
211
|
-
"attr.aria-activedescendant": "combobox._pattern.
|
|
245
|
+
"attr.aria-activedescendant": "combobox._pattern.activeDescendant()",
|
|
212
246
|
"attr.aria-controls": "combobox._pattern.popupId()",
|
|
213
247
|
"attr.aria-haspopup": "combobox._pattern.hasPopup()",
|
|
214
|
-
"attr.aria-autocomplete": "combobox._pattern.autocomplete()"
|
|
248
|
+
"attr.aria-autocomplete": "combobox._pattern.autocomplete()",
|
|
249
|
+
"attr.readonly": "combobox._pattern.readonly()"
|
|
215
250
|
}
|
|
216
251
|
},
|
|
217
252
|
exportAs: ["ngComboboxInput"],
|
|
@@ -231,11 +266,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
231
266
|
host: {
|
|
232
267
|
'role': 'combobox',
|
|
233
268
|
'[value]': 'value()',
|
|
269
|
+
'[attr.aria-disabled]': 'combobox._pattern.disabled()',
|
|
234
270
|
'[attr.aria-expanded]': 'combobox._pattern.expanded()',
|
|
235
|
-
'[attr.aria-activedescendant]': 'combobox._pattern.
|
|
271
|
+
'[attr.aria-activedescendant]': 'combobox._pattern.activeDescendant()',
|
|
236
272
|
'[attr.aria-controls]': 'combobox._pattern.popupId()',
|
|
237
273
|
'[attr.aria-haspopup]': 'combobox._pattern.hasPopup()',
|
|
238
|
-
'[attr.aria-autocomplete]': 'combobox._pattern.autocomplete()'
|
|
274
|
+
'[attr.aria-autocomplete]': 'combobox._pattern.autocomplete()',
|
|
275
|
+
'[attr.readonly]': 'combobox._pattern.readonly()'
|
|
239
276
|
}
|
|
240
277
|
}]
|
|
241
278
|
}],
|
|
@@ -315,6 +352,82 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
315
352
|
}]
|
|
316
353
|
}]
|
|
317
354
|
});
|
|
355
|
+
class ComboboxDialog {
|
|
356
|
+
_elementRef = inject(ElementRef);
|
|
357
|
+
element = this._elementRef.nativeElement;
|
|
358
|
+
combobox = inject(Combobox);
|
|
359
|
+
_popup = inject(ComboboxPopup, {
|
|
360
|
+
optional: true
|
|
361
|
+
});
|
|
362
|
+
_pattern;
|
|
363
|
+
constructor() {
|
|
364
|
+
this._pattern = new ComboboxDialogPattern({
|
|
365
|
+
id: () => '',
|
|
366
|
+
element: () => this._elementRef.nativeElement,
|
|
367
|
+
combobox: this.combobox._pattern
|
|
368
|
+
});
|
|
369
|
+
if (this._popup) {
|
|
370
|
+
this._popup.controls.set(this._pattern);
|
|
371
|
+
}
|
|
372
|
+
afterRenderEffect(() => {
|
|
373
|
+
if (this._elementRef) {
|
|
374
|
+
this.combobox._pattern.expanded() ? this._elementRef.nativeElement.showModal() : this._elementRef.nativeElement.close();
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
close() {
|
|
379
|
+
this._popup?.combobox?._pattern.close();
|
|
380
|
+
}
|
|
381
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
382
|
+
minVersion: "12.0.0",
|
|
383
|
+
version: "20.2.0-next.2",
|
|
384
|
+
ngImport: i0,
|
|
385
|
+
type: ComboboxDialog,
|
|
386
|
+
deps: [],
|
|
387
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
388
|
+
});
|
|
389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
390
|
+
minVersion: "14.0.0",
|
|
391
|
+
version: "20.2.0-next.2",
|
|
392
|
+
type: ComboboxDialog,
|
|
393
|
+
isStandalone: true,
|
|
394
|
+
selector: "dialog[ngComboboxDialog]",
|
|
395
|
+
host: {
|
|
396
|
+
listeners: {
|
|
397
|
+
"keydown": "_pattern.onKeydown($event)",
|
|
398
|
+
"click": "_pattern.onClick($event)"
|
|
399
|
+
},
|
|
400
|
+
properties: {
|
|
401
|
+
"attr.data-open": "combobox._pattern.expanded()"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
exportAs: ["ngComboboxDialog"],
|
|
405
|
+
hostDirectives: [{
|
|
406
|
+
directive: ComboboxPopup
|
|
407
|
+
}],
|
|
408
|
+
ngImport: i0
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
412
|
+
minVersion: "12.0.0",
|
|
413
|
+
version: "20.2.0-next.2",
|
|
414
|
+
ngImport: i0,
|
|
415
|
+
type: ComboboxDialog,
|
|
416
|
+
decorators: [{
|
|
417
|
+
type: Directive,
|
|
418
|
+
args: [{
|
|
419
|
+
selector: 'dialog[ngComboboxDialog]',
|
|
420
|
+
exportAs: 'ngComboboxDialog',
|
|
421
|
+
host: {
|
|
422
|
+
'[attr.data-open]': 'combobox._pattern.expanded()',
|
|
423
|
+
'(keydown)': '_pattern.onKeydown($event)',
|
|
424
|
+
'(click)': '_pattern.onClick($event)'
|
|
425
|
+
},
|
|
426
|
+
hostDirectives: [ComboboxPopup]
|
|
427
|
+
}]
|
|
428
|
+
}],
|
|
429
|
+
ctorParameters: () => []
|
|
430
|
+
});
|
|
318
431
|
|
|
319
|
-
export { Combobox, ComboboxInput, ComboboxPopup, ComboboxPopupContainer };
|
|
432
|
+
export { Combobox, ComboboxDialog, ComboboxInput, ComboboxPopup, ComboboxPopupContainer };
|
|
320
433
|
//# 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 computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n signal,\n untracked,\n WritableSignal,\n} from '@angular/core';\nimport {DeferredContent, DeferredContentAware} from '@angular/aria/deferred-content';\nimport {\n ComboboxPattern,\n ComboboxListboxControls,\n ComboboxTreeControls,\n} from '@angular/aria/private';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {toSignal} from '@angular/core/rxjs-interop';\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 '(pointerup)': '_pattern.onPointerup($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 /** 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 /** The filter mode for the combobox. */\n filterMode = input<'manual' | 'auto-select' | 'highlight'>('manual');\n\n /** Whether the combobox is focused. */\n readonly isFocused = signal(false);\n\n /** Whether the listbox has received focus yet. */\n private _hasBeenFocused = signal(false);\n\n /** Whether the combobox is disabled. */\n readonly disabled = input(false);\n\n /** Whether the combobox is read-only. */\n readonly readonly = input(false);\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._pattern.expanded());\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._deferredContentAware?.contentVisible() && this._pattern.isFocused()) {\n this._deferredContentAware?.contentVisible.set(true);\n }\n });\n\n afterRenderEffect(() => {\n if (!this._hasBeenFocused() && this._pattern.isFocused()) {\n this._hasBeenFocused.set(true);\n }\n });\n }\n}\n\n@Directive({\n selector: 'input[ngComboboxInput]',\n exportAs: 'ngComboboxInput',\n host: {\n 'role': 'combobox',\n '[value]': 'value()',\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 },\n})\nexport class ComboboxInput {\n /** The element that the combobox is attached to. */\n private readonly _elementRef = inject<ElementRef<HTMLInputElement>>(ElementRef);\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 /** Focuses & selects the first item in the combobox if the user changes the input value. */\n afterRenderEffect(() => {\n this.combobox.popup()?.controls()?.items();\n untracked(() => this.combobox._pattern.onFilter());\n });\n }\n}\n\n@Directive({\n selector: 'ng-template[ngComboboxPopupContainer]',\n exportAs: 'ngComboboxPopupContainer',\n hostDirectives: [DeferredContent],\n})\nexport class ComboboxPopupContainer {}\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 controls the popup exposes to the combobox. */\n readonly controls = signal<\n ComboboxListboxControls<any, V> | ComboboxTreeControls<any, V> | undefined\n >(undefined);\n}\n"],"names":["Combobox","inject","toSignal","_directionality","change","_elementRef","ElementRef","_deferredContentAware","DeferredContentAware","optional","contentChild","ComboboxPopup","ngDevMode","debugName","filterMode","input","isFocused","signal","disabled","readonly","firstMatch","undefined","expanded","computed","_pattern","inputElement","inputs","inputEl","ComboboxPattern","inputValue","containerEl","nativeElement","popupControls","popup","controls","contentVisible","set","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","deps","target","ɵɵFactoryTarget","Directive","ɵdir","ɵɵngDeclareDirective","isStandalone","selector","classPropertyName","publicName","isSignal","isRequired","transformFunction","host","listeners","properties","queries","propertyName","first","predicate","descendants","exportAs","hostDirectives","directive","i1","decorators","args","constructor","combobox","value","ComboboxPopupContainer","D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UAAQ,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAyC,eAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAA+B,sBAAA;IAAA9B,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAP,EAAA,CAAAQ,eAAA,CAAAC;AAAA,GAAA,CAAA;AACjD,EAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA;IAAAP,UAAQ,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAA4B,eAAA;AAAAE,IAAAA,IAAA,EAAA+B,sBAAA;IAAAxB,YAAA,EAAA,IAAA;IAAAC,QAAA,EAAA,uCAAA;IAAAc,QAAA,EAAA,CAAA,0BAAA,CAAA;IAAAC,cAAA,EAAA,CAAA;MAAAC,SAAA,EAAAC,EAAA,CAAAO;AAAA,KAAA,CAAA;AAAAjC,IAAAA,QAAA,EAAAJ;AAAA,GAAA,CAAA;;AAErC,EAAA,CAAA,wBAAA,CAAA;EAAAE,UAAA,EAAA,QAAA;EAAAC,OAAA,EAAA,eAAA;AAAAC,EAAAA,QAAA,EAAAJ,EAAA;AAAAK,EAAAA,IAAA,EAAA+B,sBAAA;EAAAL,UAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
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 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>>(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 /** Expands the combobox popup. */\n expand() {\n this._pattern.open();\n }\n\n /** Collapses the combobox popup. */\n collapse() {\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","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","expand","collapse","deps","target","i0","ɵɵFactoryTarget","Directive","ɵdir","ɵɵngDeclareDirective","minVersion","version","type","descendants","isSignal","exportAs","hostDirectives","directive","i1","ngImport","decorators","args","selector","host","ComboboxInput","combobox","model","ComboboxDialogPattern","items","untracked","onFilter","isStandalone","classPropertyName","publicName","isRequired","transformFunction","outputs","attributes","properties","ComboboxPopupContainer","DeferredContent","ComboboxDialog","_popup","id","showModal"],"mappings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