@angular/aria 21.0.0-rc.1 → 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 +439 -55
- package/_adev_assets/aria-combobox.json +343 -35
- package/_adev_assets/aria-grid.json +345 -77
- package/_adev_assets/aria-listbox.json +113 -33
- package/_adev_assets/aria-menu.json +366 -141
- package/_adev_assets/aria-tabs.json +261 -77
- package/_adev_assets/aria-toolbar.json +72 -33
- package/_adev_assets/aria-tree.json +169 -26
- package/fesm2022/_widget-chunk.mjs +388 -57
- package/fesm2022/_widget-chunk.mjs.map +1 -1
- package/fesm2022/accordion.mjs +121 -68
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +132 -21
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +198 -61
- package/fesm2022/grid.mjs.map +1 -1
- package/fesm2022/listbox.mjs +42 -31
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +173 -67
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +415 -439
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs.mjs +86 -55
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -25
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +86 -44
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/types/_grid-chunk.d.ts +216 -35
- package/types/accordion.d.ts +133 -34
- package/types/combobox.d.ts +145 -12
- package/types/grid.d.ts +149 -31
- package/types/listbox.d.ts +58 -26
- package/types/menu.d.ts +130 -46
- package/types/private.d.ts +210 -250
- package/types/tabs.d.ts +119 -39
- package/types/toolbar.d.ts +49 -29
- package/types/tree.d.ts +113 -41
package/fesm2022/combobox.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, contentChild, input,
|
|
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, DeferredContent } from '@angular/aria/private';
|
|
4
|
+
import { DeferredContentAware, ComboboxPattern, ComboboxDialogPattern, DeferredContent } from '@angular/aria/private';
|
|
5
5
|
import { Directionality } from '@angular/cdk/bidi';
|
|
6
6
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
7
7
|
|
|
@@ -11,6 +11,7 @@ class Combobox {
|
|
|
11
11
|
initialValue: this._directionality.value
|
|
12
12
|
});
|
|
13
13
|
_elementRef = inject(ElementRef);
|
|
14
|
+
element = this._elementRef.nativeElement;
|
|
14
15
|
_deferredContentAware = inject(DeferredContentAware, {
|
|
15
16
|
optional: true
|
|
16
17
|
});
|
|
@@ -20,24 +21,30 @@ class Combobox {
|
|
|
20
21
|
filterMode = input('manual', ...(ngDevMode ? [{
|
|
21
22
|
debugName: "filterMode"
|
|
22
23
|
}] : []));
|
|
23
|
-
isFocused = signal(false, ...(ngDevMode ? [{
|
|
24
|
-
debugName: "isFocused"
|
|
25
|
-
}] : []));
|
|
26
|
-
_hasBeenFocused = signal(false, ...(ngDevMode ? [{
|
|
27
|
-
debugName: "_hasBeenFocused"
|
|
28
|
-
}] : []));
|
|
29
24
|
disabled = input(false, ...(ngDevMode ? [{
|
|
30
|
-
debugName: "disabled"
|
|
31
|
-
|
|
25
|
+
debugName: "disabled",
|
|
26
|
+
transform: booleanAttribute
|
|
27
|
+
}] : [{
|
|
28
|
+
transform: booleanAttribute
|
|
29
|
+
}]));
|
|
32
30
|
readonly = input(false, ...(ngDevMode ? [{
|
|
33
|
-
debugName: "readonly"
|
|
34
|
-
|
|
31
|
+
debugName: "readonly",
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
}] : [{
|
|
34
|
+
transform: booleanAttribute
|
|
35
|
+
}]));
|
|
35
36
|
firstMatch = input(undefined, ...(ngDevMode ? [{
|
|
36
37
|
debugName: "firstMatch"
|
|
37
38
|
}] : []));
|
|
38
|
-
expanded = computed(() => this._pattern.expanded(), ...(ngDevMode ? [{
|
|
39
|
+
expanded = computed(() => this.alwaysExpanded() || this._pattern.expanded(), ...(ngDevMode ? [{
|
|
39
40
|
debugName: "expanded"
|
|
40
41
|
}] : []));
|
|
42
|
+
alwaysExpanded = input(false, ...(ngDevMode ? [{
|
|
43
|
+
debugName: "alwaysExpanded",
|
|
44
|
+
transform: booleanAttribute
|
|
45
|
+
}] : [{
|
|
46
|
+
transform: booleanAttribute
|
|
47
|
+
}]));
|
|
41
48
|
inputElement = computed(() => this._pattern.inputs.inputEl(), ...(ngDevMode ? [{
|
|
42
49
|
debugName: "inputElement"
|
|
43
50
|
}] : []));
|
|
@@ -53,16 +60,30 @@ class Combobox {
|
|
|
53
60
|
});
|
|
54
61
|
constructor() {
|
|
55
62
|
afterRenderEffect(() => {
|
|
56
|
-
if (
|
|
57
|
-
this.
|
|
63
|
+
if (this.alwaysExpanded()) {
|
|
64
|
+
this._pattern.expanded.set(true);
|
|
58
65
|
}
|
|
59
66
|
});
|
|
60
67
|
afterRenderEffect(() => {
|
|
61
|
-
if (!this.
|
|
62
|
-
this.
|
|
68
|
+
if (!this._deferredContentAware?.contentVisible() && (this._pattern.isFocused() || this.alwaysExpanded())) {
|
|
69
|
+
this._deferredContentAware?.contentVisible.set(true);
|
|
63
70
|
}
|
|
64
71
|
});
|
|
65
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
|
+
}
|
|
66
87
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
67
88
|
minVersion: "12.0.0",
|
|
68
89
|
version: "20.2.0-next.2",
|
|
@@ -105,13 +126,20 @@ class Combobox {
|
|
|
105
126
|
isSignal: true,
|
|
106
127
|
isRequired: false,
|
|
107
128
|
transformFunction: null
|
|
129
|
+
},
|
|
130
|
+
alwaysExpanded: {
|
|
131
|
+
classPropertyName: "alwaysExpanded",
|
|
132
|
+
publicName: "alwaysExpanded",
|
|
133
|
+
isSignal: true,
|
|
134
|
+
isRequired: false,
|
|
135
|
+
transformFunction: null
|
|
108
136
|
}
|
|
109
137
|
},
|
|
110
138
|
host: {
|
|
111
139
|
listeners: {
|
|
112
140
|
"input": "_pattern.onInput($event)",
|
|
113
141
|
"keydown": "_pattern.onKeydown($event)",
|
|
114
|
-
"
|
|
142
|
+
"click": "_pattern.onClick($event)",
|
|
115
143
|
"focusin": "_pattern.onFocusIn()",
|
|
116
144
|
"focusout": "_pattern.onFocusOut($event)"
|
|
117
145
|
},
|
|
@@ -152,7 +180,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
152
180
|
'[attr.data-expanded]': 'expanded()',
|
|
153
181
|
'(input)': '_pattern.onInput($event)',
|
|
154
182
|
'(keydown)': '_pattern.onKeydown($event)',
|
|
155
|
-
'(
|
|
183
|
+
'(click)': '_pattern.onClick($event)',
|
|
156
184
|
'(focusin)': '_pattern.onFocusIn()',
|
|
157
185
|
'(focusout)': '_pattern.onFocusOut($event)'
|
|
158
186
|
}
|
|
@@ -162,6 +190,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
162
190
|
});
|
|
163
191
|
class ComboboxInput {
|
|
164
192
|
_elementRef = inject(ElementRef);
|
|
193
|
+
element = this._elementRef.nativeElement;
|
|
165
194
|
combobox = inject(Combobox);
|
|
166
195
|
value = model('', ...(ngDevMode ? [{
|
|
167
196
|
debugName: "value"
|
|
@@ -169,9 +198,13 @@ class ComboboxInput {
|
|
|
169
198
|
constructor() {
|
|
170
199
|
this.combobox._pattern.inputs.inputEl.set(this._elementRef.nativeElement);
|
|
171
200
|
this.combobox._pattern.inputs.inputValue = this.value;
|
|
201
|
+
const controls = this.combobox.popup()?.controls();
|
|
202
|
+
if (controls instanceof ComboboxDialogPattern) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
172
205
|
afterRenderEffect(() => {
|
|
173
206
|
this.value();
|
|
174
|
-
|
|
207
|
+
controls?.items();
|
|
175
208
|
untracked(() => this.combobox._pattern.onFilter());
|
|
176
209
|
});
|
|
177
210
|
}
|
|
@@ -207,6 +240,7 @@ 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
245
|
"attr.aria-activedescendant": "combobox._pattern.activeDescendant()",
|
|
212
246
|
"attr.aria-controls": "combobox._pattern.popupId()",
|
|
@@ -232,6 +266,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
232
266
|
host: {
|
|
233
267
|
'role': 'combobox',
|
|
234
268
|
'[value]': 'value()',
|
|
269
|
+
'[attr.aria-disabled]': 'combobox._pattern.disabled()',
|
|
235
270
|
'[attr.aria-expanded]': 'combobox._pattern.expanded()',
|
|
236
271
|
'[attr.aria-activedescendant]': 'combobox._pattern.activeDescendant()',
|
|
237
272
|
'[attr.aria-controls]': 'combobox._pattern.popupId()',
|
|
@@ -317,6 +352,82 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
317
352
|
}]
|
|
318
353
|
}]
|
|
319
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
|
+
});
|
|
320
431
|
|
|
321
|
-
export { Combobox, ComboboxInput, ComboboxPopup, ComboboxPopupContainer };
|
|
432
|
+
export { Combobox, ComboboxDialog, ComboboxInput, ComboboxPopup, ComboboxPopupContainer };
|
|
322
433
|
//# sourceMappingURL=combobox.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.mjs","sources":["../../../../../k8-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 {\n DeferredContent,\n DeferredContentAware,\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 combobox 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 '[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 /** 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.value();\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","_directionality","inject","Directionality","textDirection","toSignal","change","initialValue","value","_elementRef","ElementRef","_deferredContentAware","DeferredContentAware","optional","popup","contentChild","ComboboxPopup","filterMode","input","isFocused","signal","_hasBeenFocused","disabled","readonly","firstMatch","undefined","expanded","computed","_pattern","inputElement","inputs","inputEl","ComboboxPattern","inputValue","containerEl","nativeElement","popupControls","controls","constructor","afterRenderEffect","contentVisible","set","deps","target","i0","ɵɵFactoryTarget","Directive","ɵdir","ɵɵngDeclareDirective","minVersion","version","type","descendants","isSignal","exportAs","hostDirectives","directive","i1","ngImport","decorators","args","selector","host","ComboboxInput","combobox","model","items","untracked","onFilter","isStandalone","classPropertyName","publicName","isRequired","transformFunction","outputs","attributes","properties","ComboboxPopupContainer","DeferredContent"],"mappings":";;;;;;;MAiDaA,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;AAGhCC,EAAAA,qBAAqB,GAAGT,MAAM,CAACU,oBAAoB,EAAE;AAACC,IAAAA,QAAQ,EAAE;AAAK,GAAA,CAAC;EAG9EC,KAAK,GAAGC,YAAY,CAAmBC,aAAa;;WAAC;EAG9DC,UAAU,GAAGC,KAAK,CAAyC,QAAQ;;WAAC;EAG3DC,SAAS,GAAGC,MAAM,CAAC,KAAK;;WAAC;EAG1BC,eAAe,GAAGD,MAAM,CAAC,KAAK;;WAAC;EAG9BE,QAAQ,GAAGJ,KAAK,CAAC,KAAK;;WAAC;EAGvBK,QAAQ,GAAGL,KAAK,CAAC,KAAK;;WAAC;EAGvBM,UAAU,GAAGN,KAAK,CAAgBO,SAAS;;WAAC;AAG5CC,EAAAA,QAAQ,GAAGC,QAAQ,CAAC,MAAM,IAAI,CAACC,QAA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MAAAA,QAAQ,EAAE,0BAA0B;MACpCC,cAAc,EAAE,CAACuB,eAAe;KACjC;;;MAOY9D,aAAa,CAAA;AAEfgD,EAAAA,QAAQ,GAAG9D,MAAM,CAAcF,QAAQ,EAAE;AAACa,IAAAA,QAAQ,EAAE;AAAK,GAAA,CAAC;EAG1DwB,QAAQ,GAAGjB,MAAM,CAExBK,SAAS;;WAAC;;;;;UAPDT,aAAa;AAAA0B,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;UAAb9B,aAAa;AAAAqD,IAAAA,YAAA,EAAA,IAAA;AAAAR,IAAAA,QAAA,EAAA,mBAAA;IAAAP,QAAA,EAAA,CAAA,iBAAA,CAAA;AAAAI,IAAAA,QAAA,EAAAd;AAAA,GAAA,CAAA;;;;;;QAAb5B,aAAa;AAAA2C,EAAAA,UAAA,EAAA,CAAA;UAJzBb,SAAS;AAACc,IAAAA,IAAA,EAAA,CAAA;AACTC,MAAAA,QAAQ,EAAE,mBAAmB;AAC7BP,MAAAA,QAAQ,EAAE;KACX;;;;;;"}
|
|
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":";;;;;;;MAiFaA,QAAQ,CAAA;AAEFC,EAAAA,eAAe,GAAGC,MAAM,CAACC,cAAc,CAAC;EAG/CC,aAAa,GAAGC,QAAQ,CAAC,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