@angular/aria 21.1.0-next.1 → 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.
- package/fesm2022/_combobox-chunk.mjs +425 -0
- package/fesm2022/_combobox-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-listbox-chunk.mjs +522 -0
- package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-popup-chunk.mjs +46 -0
- package/fesm2022/_combobox-popup-chunk.mjs.map +1 -0
- package/fesm2022/_list-navigation-chunk.mjs +116 -0
- package/fesm2022/_list-navigation-chunk.mjs.map +1 -0
- package/fesm2022/_pointer-event-manager-chunk.mjs +134 -0
- package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -0
- package/fesm2022/_widget-chunk.mjs +4 -246
- package/fesm2022/_widget-chunk.mjs.map +1 -1
- package/fesm2022/accordion.mjs +64 -51
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +120 -144
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +285 -261
- package/fesm2022/grid.mjs.map +1 -1
- package/fesm2022/listbox.mjs +205 -193
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +301 -283
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +13 -938
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs.mjs +209 -195
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +59 -47
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +43 -41
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/types/_combobox-chunk.d.ts +98 -0
- package/types/_combobox-chunk.d2.ts +193 -0
- package/types/_grid-chunk.d.ts +3 -210
- package/types/_list-chunk.d.ts +212 -0
- package/types/_list-navigation-chunk.d.ts +212 -0
- package/types/_listbox-chunk.d.ts +106 -0
- package/types/accordion.d.ts +52 -49
- package/types/combobox.d.ts +25 -111
- package/types/grid.d.ts +37 -32
- package/types/listbox.d.ts +8 -5
- package/types/menu.d.ts +113 -113
- package/types/private.d.ts +10 -498
- package/types/tabs.d.ts +89 -84
- package/types/toolbar.d.ts +69 -66
- package/types/tree.d.ts +106 -103
- package/_adev_assets/aria-accordion.json +0 -743
- package/_adev_assets/aria-combobox.json +0 -603
- package/_adev_assets/aria-grid.json +0 -893
- package/_adev_assets/aria-listbox.json +0 -540
- package/_adev_assets/aria-menu.json +0 -1049
- package/_adev_assets/aria-tabs.json +0 -880
- package/_adev_assets/aria-toolbar.json +0 -545
- package/_adev_assets/aria-tree.json +0 -853
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
import { signal, computed } from '@angular/core';
|
|
2
|
+
import { ListFocus, ListNavigation } from './_list-navigation-chunk.mjs';
|
|
3
|
+
import { Modifier, KeyboardEventManager, PointerEventManager } from './_pointer-event-manager-chunk.mjs';
|
|
4
|
+
|
|
5
|
+
class ListSelection {
|
|
6
|
+
inputs;
|
|
7
|
+
rangeStartIndex = signal(0);
|
|
8
|
+
rangeEndIndex = signal(0);
|
|
9
|
+
selectedItems = computed(() => this.inputs.items().filter(item => this.inputs.values().includes(item.value())));
|
|
10
|
+
constructor(inputs) {
|
|
11
|
+
this.inputs = inputs;
|
|
12
|
+
}
|
|
13
|
+
select(item, opts = {
|
|
14
|
+
anchor: true
|
|
15
|
+
}) {
|
|
16
|
+
item = item ?? this.inputs.focusManager.inputs.activeItem();
|
|
17
|
+
if (!item || item.disabled() || !item.selectable() || this.inputs.values().includes(item.value())) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (!this.inputs.multi()) {
|
|
21
|
+
this.deselectAll();
|
|
22
|
+
}
|
|
23
|
+
const index = this.inputs.items().findIndex(i => i === item);
|
|
24
|
+
if (opts.anchor) {
|
|
25
|
+
this.beginRangeSelection(index);
|
|
26
|
+
}
|
|
27
|
+
this.inputs.values.update(values => values.concat(item.value()));
|
|
28
|
+
}
|
|
29
|
+
deselect(item) {
|
|
30
|
+
item = item ?? this.inputs.focusManager.inputs.activeItem();
|
|
31
|
+
if (item && !item.disabled() && item.selectable()) {
|
|
32
|
+
this.inputs.values.update(values => values.filter(value => value !== item.value()));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
toggle(item) {
|
|
36
|
+
item = item ?? this.inputs.focusManager.inputs.activeItem();
|
|
37
|
+
if (item) {
|
|
38
|
+
this.inputs.values().includes(item.value()) ? this.deselect(item) : this.select(item);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
toggleOne() {
|
|
42
|
+
const item = this.inputs.focusManager.inputs.activeItem();
|
|
43
|
+
if (item) {
|
|
44
|
+
this.inputs.values().includes(item.value()) ? this.deselect() : this.selectOne();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
selectAll() {
|
|
48
|
+
if (!this.inputs.multi()) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
for (const item of this.inputs.items()) {
|
|
52
|
+
this.select(item, {
|
|
53
|
+
anchor: false
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
this.beginRangeSelection();
|
|
57
|
+
}
|
|
58
|
+
deselectAll() {
|
|
59
|
+
for (const value of this.inputs.values()) {
|
|
60
|
+
const item = this.inputs.items().find(i => i.value() === value);
|
|
61
|
+
item ? this.deselect(item) : this.inputs.values.update(values => values.filter(v => v !== value));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
toggleAll() {
|
|
65
|
+
const selectableValues = this.inputs.items().filter(i => !i.disabled() && i.selectable()).map(i => i.value());
|
|
66
|
+
selectableValues.every(i => this.inputs.values().includes(i)) ? this.deselectAll() : this.selectAll();
|
|
67
|
+
}
|
|
68
|
+
selectOne() {
|
|
69
|
+
const item = this.inputs.focusManager.inputs.activeItem();
|
|
70
|
+
if (item && (item.disabled() || !item.selectable())) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this.deselectAll();
|
|
74
|
+
if (this.inputs.values().length > 0 && !this.inputs.multi()) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
this.select();
|
|
78
|
+
}
|
|
79
|
+
selectRange(opts = {
|
|
80
|
+
anchor: true
|
|
81
|
+
}) {
|
|
82
|
+
const isStartOfRange = this.inputs.focusManager.prevActiveIndex() === this.rangeStartIndex();
|
|
83
|
+
if (isStartOfRange && opts.anchor) {
|
|
84
|
+
this.beginRangeSelection(this.inputs.focusManager.prevActiveIndex());
|
|
85
|
+
}
|
|
86
|
+
const itemsInRange = this._getItemsFromIndex(this.rangeStartIndex());
|
|
87
|
+
const itemsOutOfRange = this._getItemsFromIndex(this.rangeEndIndex()).filter(i => !itemsInRange.includes(i));
|
|
88
|
+
for (const item of itemsOutOfRange) {
|
|
89
|
+
this.deselect(item);
|
|
90
|
+
}
|
|
91
|
+
for (const item of itemsInRange) {
|
|
92
|
+
this.select(item, {
|
|
93
|
+
anchor: false
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if (itemsInRange.length) {
|
|
97
|
+
const item = itemsInRange.pop();
|
|
98
|
+
const index = this.inputs.items().findIndex(i => i === item);
|
|
99
|
+
this.rangeEndIndex.set(index);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
beginRangeSelection(index = this.inputs.focusManager.activeIndex()) {
|
|
103
|
+
this.rangeStartIndex.set(index);
|
|
104
|
+
this.rangeEndIndex.set(index);
|
|
105
|
+
}
|
|
106
|
+
_getItemsFromIndex(index) {
|
|
107
|
+
if (index === -1) {
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
110
|
+
const upper = Math.max(this.inputs.focusManager.activeIndex(), index);
|
|
111
|
+
const lower = Math.min(this.inputs.focusManager.activeIndex(), index);
|
|
112
|
+
const items = [];
|
|
113
|
+
for (let i = lower; i <= upper; i++) {
|
|
114
|
+
items.push(this.inputs.items()[i]);
|
|
115
|
+
}
|
|
116
|
+
if (this.inputs.focusManager.activeIndex() < index) {
|
|
117
|
+
return items.reverse();
|
|
118
|
+
}
|
|
119
|
+
return items;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
class ListTypeahead {
|
|
124
|
+
inputs;
|
|
125
|
+
timeout;
|
|
126
|
+
focusManager;
|
|
127
|
+
isTyping = computed(() => this._query().length > 0);
|
|
128
|
+
_query = signal('');
|
|
129
|
+
_startIndex = signal(undefined);
|
|
130
|
+
constructor(inputs) {
|
|
131
|
+
this.inputs = inputs;
|
|
132
|
+
this.focusManager = inputs.focusManager;
|
|
133
|
+
}
|
|
134
|
+
search(char) {
|
|
135
|
+
if (char.length !== 1) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
if (!this.isTyping() && char === ' ') {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
if (this._startIndex() === undefined) {
|
|
142
|
+
this._startIndex.set(this.focusManager.activeIndex());
|
|
143
|
+
}
|
|
144
|
+
clearTimeout(this.timeout);
|
|
145
|
+
this._query.update(q => q + char.toLowerCase());
|
|
146
|
+
const item = this._getItem();
|
|
147
|
+
if (item) {
|
|
148
|
+
this.focusManager.focus(item);
|
|
149
|
+
}
|
|
150
|
+
this.timeout = setTimeout(() => {
|
|
151
|
+
this._query.set('');
|
|
152
|
+
this._startIndex.set(undefined);
|
|
153
|
+
}, this.inputs.typeaheadDelay());
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
_getItem() {
|
|
157
|
+
let items = this.focusManager.inputs.items();
|
|
158
|
+
const after = items.slice(this._startIndex() + 1);
|
|
159
|
+
const before = items.slice(0, this._startIndex());
|
|
160
|
+
items = after.concat(before);
|
|
161
|
+
items.push(this.inputs.items()[this._startIndex()]);
|
|
162
|
+
const focusableItems = [];
|
|
163
|
+
for (const item of items) {
|
|
164
|
+
if (this.focusManager.isFocusable(item)) {
|
|
165
|
+
focusableItems.push(item);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return focusableItems.find(i => i.searchTerm().toLowerCase().startsWith(this._query()));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
class List {
|
|
173
|
+
inputs;
|
|
174
|
+
navigationBehavior;
|
|
175
|
+
selectionBehavior;
|
|
176
|
+
typeaheadBehavior;
|
|
177
|
+
focusBehavior;
|
|
178
|
+
disabled = computed(() => this.focusBehavior.isListDisabled());
|
|
179
|
+
activeDescendant = computed(() => this.focusBehavior.getActiveDescendant());
|
|
180
|
+
tabIndex = computed(() => this.focusBehavior.getListTabIndex());
|
|
181
|
+
activeIndex = computed(() => this.focusBehavior.activeIndex());
|
|
182
|
+
_anchorIndex = signal(0);
|
|
183
|
+
_wrap = signal(true);
|
|
184
|
+
constructor(inputs) {
|
|
185
|
+
this.inputs = inputs;
|
|
186
|
+
this.focusBehavior = new ListFocus(inputs);
|
|
187
|
+
this.selectionBehavior = new ListSelection({
|
|
188
|
+
...inputs,
|
|
189
|
+
focusManager: this.focusBehavior
|
|
190
|
+
});
|
|
191
|
+
this.typeaheadBehavior = new ListTypeahead({
|
|
192
|
+
...inputs,
|
|
193
|
+
focusManager: this.focusBehavior
|
|
194
|
+
});
|
|
195
|
+
this.navigationBehavior = new ListNavigation({
|
|
196
|
+
...inputs,
|
|
197
|
+
focusManager: this.focusBehavior,
|
|
198
|
+
wrap: computed(() => this._wrap() && this.inputs.wrap())
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
getItemTabindex(item) {
|
|
202
|
+
return this.focusBehavior.getItemTabIndex(item);
|
|
203
|
+
}
|
|
204
|
+
first(opts) {
|
|
205
|
+
this._navigate(opts, () => this.navigationBehavior.first(opts));
|
|
206
|
+
}
|
|
207
|
+
last(opts) {
|
|
208
|
+
this._navigate(opts, () => this.navigationBehavior.last(opts));
|
|
209
|
+
}
|
|
210
|
+
next(opts) {
|
|
211
|
+
this._navigate(opts, () => this.navigationBehavior.next(opts));
|
|
212
|
+
}
|
|
213
|
+
prev(opts) {
|
|
214
|
+
this._navigate(opts, () => this.navigationBehavior.prev(opts));
|
|
215
|
+
}
|
|
216
|
+
goto(item, opts) {
|
|
217
|
+
this._navigate(opts, () => this.navigationBehavior.goto(item, opts));
|
|
218
|
+
}
|
|
219
|
+
unfocus() {
|
|
220
|
+
this.inputs.activeItem.set(undefined);
|
|
221
|
+
}
|
|
222
|
+
anchor(index) {
|
|
223
|
+
this._anchorIndex.set(index);
|
|
224
|
+
}
|
|
225
|
+
search(char, opts) {
|
|
226
|
+
this._navigate(opts, () => this.typeaheadBehavior.search(char));
|
|
227
|
+
}
|
|
228
|
+
isTyping() {
|
|
229
|
+
return this.typeaheadBehavior.isTyping();
|
|
230
|
+
}
|
|
231
|
+
select(item) {
|
|
232
|
+
this.selectionBehavior.select(item);
|
|
233
|
+
}
|
|
234
|
+
selectOne() {
|
|
235
|
+
this.selectionBehavior.selectOne();
|
|
236
|
+
}
|
|
237
|
+
deselect(item) {
|
|
238
|
+
this.selectionBehavior.deselect(item);
|
|
239
|
+
}
|
|
240
|
+
deselectAll() {
|
|
241
|
+
this.selectionBehavior.deselectAll();
|
|
242
|
+
}
|
|
243
|
+
toggle(item) {
|
|
244
|
+
this.selectionBehavior.toggle(item);
|
|
245
|
+
}
|
|
246
|
+
toggleOne() {
|
|
247
|
+
this.selectionBehavior.toggleOne();
|
|
248
|
+
}
|
|
249
|
+
toggleAll() {
|
|
250
|
+
this.selectionBehavior.toggleAll();
|
|
251
|
+
}
|
|
252
|
+
isFocusable(item) {
|
|
253
|
+
return this.focusBehavior.isFocusable(item);
|
|
254
|
+
}
|
|
255
|
+
updateSelection(opts = {
|
|
256
|
+
anchor: true
|
|
257
|
+
}) {
|
|
258
|
+
if (opts.toggle) {
|
|
259
|
+
this.selectionBehavior.toggle();
|
|
260
|
+
}
|
|
261
|
+
if (opts.select) {
|
|
262
|
+
this.selectionBehavior.select();
|
|
263
|
+
}
|
|
264
|
+
if (opts.selectOne) {
|
|
265
|
+
this.selectionBehavior.selectOne();
|
|
266
|
+
}
|
|
267
|
+
if (opts.selectRange) {
|
|
268
|
+
this.selectionBehavior.selectRange();
|
|
269
|
+
}
|
|
270
|
+
if (!opts.anchor) {
|
|
271
|
+
this.anchor(this.selectionBehavior.rangeStartIndex());
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
_navigate(opts = {}, operation) {
|
|
275
|
+
if (opts?.selectRange) {
|
|
276
|
+
this._wrap.set(false);
|
|
277
|
+
this.selectionBehavior.rangeStartIndex.set(this._anchorIndex());
|
|
278
|
+
}
|
|
279
|
+
const moved = operation();
|
|
280
|
+
if (moved) {
|
|
281
|
+
this.updateSelection(opts);
|
|
282
|
+
}
|
|
283
|
+
this._wrap.set(true);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
class ListboxPattern {
|
|
288
|
+
inputs;
|
|
289
|
+
listBehavior;
|
|
290
|
+
orientation;
|
|
291
|
+
disabled = computed(() => this.listBehavior.disabled());
|
|
292
|
+
readonly;
|
|
293
|
+
tabIndex = computed(() => this.listBehavior.tabIndex());
|
|
294
|
+
activeDescendant = computed(() => this.listBehavior.activeDescendant());
|
|
295
|
+
multi;
|
|
296
|
+
setsize = computed(() => this.inputs.items().length);
|
|
297
|
+
followFocus = computed(() => this.inputs.selectionMode() === 'follow');
|
|
298
|
+
wrap = signal(true);
|
|
299
|
+
prevKey = computed(() => {
|
|
300
|
+
if (this.inputs.orientation() === 'vertical') {
|
|
301
|
+
return 'ArrowUp';
|
|
302
|
+
}
|
|
303
|
+
return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';
|
|
304
|
+
});
|
|
305
|
+
nextKey = computed(() => {
|
|
306
|
+
if (this.inputs.orientation() === 'vertical') {
|
|
307
|
+
return 'ArrowDown';
|
|
308
|
+
}
|
|
309
|
+
return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';
|
|
310
|
+
});
|
|
311
|
+
dynamicSpaceKey = computed(() => this.listBehavior.isTyping() ? '' : ' ');
|
|
312
|
+
typeaheadRegexp = /^.$/;
|
|
313
|
+
keydown = computed(() => {
|
|
314
|
+
const manager = new KeyboardEventManager();
|
|
315
|
+
if (this.readonly()) {
|
|
316
|
+
return manager.on(this.prevKey, () => this.listBehavior.prev()).on(this.nextKey, () => this.listBehavior.next()).on('Home', () => this.listBehavior.first()).on('End', () => this.listBehavior.last()).on(this.typeaheadRegexp, e => this.listBehavior.search(e.key));
|
|
317
|
+
}
|
|
318
|
+
if (!this.followFocus()) {
|
|
319
|
+
manager.on(this.prevKey, () => this.listBehavior.prev()).on(this.nextKey, () => this.listBehavior.next()).on('Home', () => this.listBehavior.first()).on('End', () => this.listBehavior.last()).on(this.typeaheadRegexp, e => this.listBehavior.search(e.key));
|
|
320
|
+
}
|
|
321
|
+
if (this.followFocus()) {
|
|
322
|
+
manager.on(this.prevKey, () => this.listBehavior.prev({
|
|
323
|
+
selectOne: true
|
|
324
|
+
})).on(this.nextKey, () => this.listBehavior.next({
|
|
325
|
+
selectOne: true
|
|
326
|
+
})).on('Home', () => this.listBehavior.first({
|
|
327
|
+
selectOne: true
|
|
328
|
+
})).on('End', () => this.listBehavior.last({
|
|
329
|
+
selectOne: true
|
|
330
|
+
})).on(this.typeaheadRegexp, e => this.listBehavior.search(e.key, {
|
|
331
|
+
selectOne: true
|
|
332
|
+
}));
|
|
333
|
+
}
|
|
334
|
+
if (this.inputs.multi()) {
|
|
335
|
+
manager.on(Modifier.Any, 'Shift', () => this.listBehavior.anchor(this.listBehavior.activeIndex())).on(Modifier.Shift, this.prevKey, () => this.listBehavior.prev({
|
|
336
|
+
selectRange: true
|
|
337
|
+
})).on(Modifier.Shift, this.nextKey, () => this.listBehavior.next({
|
|
338
|
+
selectRange: true
|
|
339
|
+
})).on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'Home', () => this.listBehavior.first({
|
|
340
|
+
selectRange: true,
|
|
341
|
+
anchor: false
|
|
342
|
+
})).on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'End', () => this.listBehavior.last({
|
|
343
|
+
selectRange: true,
|
|
344
|
+
anchor: false
|
|
345
|
+
})).on(Modifier.Shift, 'Enter', () => this.listBehavior.updateSelection({
|
|
346
|
+
selectRange: true,
|
|
347
|
+
anchor: false
|
|
348
|
+
})).on(Modifier.Shift, this.dynamicSpaceKey, () => this.listBehavior.updateSelection({
|
|
349
|
+
selectRange: true,
|
|
350
|
+
anchor: false
|
|
351
|
+
}));
|
|
352
|
+
}
|
|
353
|
+
if (!this.followFocus() && this.inputs.multi()) {
|
|
354
|
+
manager.on(this.dynamicSpaceKey, () => this.listBehavior.toggle()).on('Enter', () => this.listBehavior.toggle()).on([Modifier.Ctrl, Modifier.Meta], 'A', () => this.listBehavior.toggleAll());
|
|
355
|
+
}
|
|
356
|
+
if (!this.followFocus() && !this.inputs.multi()) {
|
|
357
|
+
manager.on(this.dynamicSpaceKey, () => this.listBehavior.toggleOne());
|
|
358
|
+
manager.on('Enter', () => this.listBehavior.toggleOne());
|
|
359
|
+
}
|
|
360
|
+
if (this.inputs.multi() && this.followFocus()) {
|
|
361
|
+
manager.on([Modifier.Ctrl, Modifier.Meta], this.prevKey, () => this.listBehavior.prev()).on([Modifier.Ctrl, Modifier.Meta], this.nextKey, () => this.listBehavior.next()).on([Modifier.Ctrl, Modifier.Meta], ' ', () => this.listBehavior.toggle()).on([Modifier.Ctrl, Modifier.Meta], 'Enter', () => this.listBehavior.toggle()).on([Modifier.Ctrl, Modifier.Meta], 'Home', () => this.listBehavior.first()).on([Modifier.Ctrl, Modifier.Meta], 'End', () => this.listBehavior.last()).on([Modifier.Ctrl, Modifier.Meta], 'A', () => {
|
|
362
|
+
this.listBehavior.toggleAll();
|
|
363
|
+
this.listBehavior.select();
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
return manager;
|
|
367
|
+
});
|
|
368
|
+
pointerdown = computed(() => {
|
|
369
|
+
const manager = new PointerEventManager();
|
|
370
|
+
if (this.readonly()) {
|
|
371
|
+
return manager.on(e => this.listBehavior.goto(this._getItem(e)));
|
|
372
|
+
}
|
|
373
|
+
if (this.multi()) {
|
|
374
|
+
manager.on(Modifier.Shift, e => this.listBehavior.goto(this._getItem(e), {
|
|
375
|
+
selectRange: true
|
|
376
|
+
}));
|
|
377
|
+
}
|
|
378
|
+
if (!this.multi() && this.followFocus()) {
|
|
379
|
+
return manager.on(e => this.listBehavior.goto(this._getItem(e), {
|
|
380
|
+
selectOne: true
|
|
381
|
+
}));
|
|
382
|
+
}
|
|
383
|
+
if (!this.multi() && !this.followFocus()) {
|
|
384
|
+
return manager.on(e => this.listBehavior.goto(this._getItem(e), {
|
|
385
|
+
toggle: true
|
|
386
|
+
}));
|
|
387
|
+
}
|
|
388
|
+
if (this.multi() && this.followFocus()) {
|
|
389
|
+
return manager.on(e => this.listBehavior.goto(this._getItem(e), {
|
|
390
|
+
selectOne: true
|
|
391
|
+
})).on(Modifier.Ctrl, e => this.listBehavior.goto(this._getItem(e), {
|
|
392
|
+
toggle: true
|
|
393
|
+
}));
|
|
394
|
+
}
|
|
395
|
+
if (this.multi() && !this.followFocus()) {
|
|
396
|
+
return manager.on(e => this.listBehavior.goto(this._getItem(e), {
|
|
397
|
+
toggle: true
|
|
398
|
+
}));
|
|
399
|
+
}
|
|
400
|
+
return manager;
|
|
401
|
+
});
|
|
402
|
+
constructor(inputs) {
|
|
403
|
+
this.inputs = inputs;
|
|
404
|
+
this.readonly = inputs.readonly;
|
|
405
|
+
this.orientation = inputs.orientation;
|
|
406
|
+
this.multi = inputs.multi;
|
|
407
|
+
this.listBehavior = new List(inputs);
|
|
408
|
+
}
|
|
409
|
+
validate() {
|
|
410
|
+
const violations = [];
|
|
411
|
+
if (!this.inputs.multi() && this.inputs.values().length > 1) {
|
|
412
|
+
violations.push(`A single-select listbox should not have multiple selected options. Selected options: ${this.inputs.values().join(', ')}`);
|
|
413
|
+
}
|
|
414
|
+
return violations;
|
|
415
|
+
}
|
|
416
|
+
onKeydown(event) {
|
|
417
|
+
if (!this.disabled()) {
|
|
418
|
+
this.keydown().handle(event);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
onPointerdown(event) {
|
|
422
|
+
if (!this.disabled()) {
|
|
423
|
+
this.pointerdown().handle(event);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
setDefaultState() {
|
|
427
|
+
let firstItem = null;
|
|
428
|
+
for (const item of this.inputs.items()) {
|
|
429
|
+
if (this.listBehavior.isFocusable(item)) {
|
|
430
|
+
if (!firstItem) {
|
|
431
|
+
firstItem = item;
|
|
432
|
+
}
|
|
433
|
+
if (item.selected()) {
|
|
434
|
+
this.inputs.activeItem.set(item);
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (firstItem) {
|
|
440
|
+
this.inputs.activeItem.set(firstItem);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
_getItem(e) {
|
|
444
|
+
if (!(e.target instanceof HTMLElement)) {
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
const element = e.target.closest('[role="option"]');
|
|
448
|
+
return this.inputs.items().find(i => i.element() === element);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
class OptionPattern {
|
|
453
|
+
id;
|
|
454
|
+
value;
|
|
455
|
+
index = computed(() => this.listbox()?.inputs.items().indexOf(this) ?? -1);
|
|
456
|
+
active = computed(() => this.listbox()?.inputs.activeItem() === this);
|
|
457
|
+
selected = computed(() => this.listbox()?.inputs.values().includes(this.value()));
|
|
458
|
+
selectable = () => true;
|
|
459
|
+
disabled;
|
|
460
|
+
searchTerm;
|
|
461
|
+
listbox;
|
|
462
|
+
tabIndex = computed(() => this.listbox()?.listBehavior.getItemTabindex(this));
|
|
463
|
+
element;
|
|
464
|
+
constructor(args) {
|
|
465
|
+
this.id = args.id;
|
|
466
|
+
this.value = args.value;
|
|
467
|
+
this.listbox = args.listbox;
|
|
468
|
+
this.element = args.element;
|
|
469
|
+
this.disabled = args.disabled;
|
|
470
|
+
this.searchTerm = args.searchTerm;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
class ComboboxListboxPattern extends ListboxPattern {
|
|
475
|
+
inputs;
|
|
476
|
+
id = computed(() => this.inputs.id());
|
|
477
|
+
role = computed(() => 'listbox');
|
|
478
|
+
activeId = computed(() => this.listBehavior.activeDescendant());
|
|
479
|
+
items = computed(() => this.inputs.items());
|
|
480
|
+
tabIndex = () => -1;
|
|
481
|
+
multi = computed(() => {
|
|
482
|
+
return this.inputs.combobox()?.readonly() ? this.inputs.multi() : false;
|
|
483
|
+
});
|
|
484
|
+
constructor(inputs) {
|
|
485
|
+
if (inputs.combobox()) {
|
|
486
|
+
inputs.focusMode = () => 'activedescendant';
|
|
487
|
+
inputs.element = inputs.combobox().inputs.inputEl;
|
|
488
|
+
}
|
|
489
|
+
super(inputs);
|
|
490
|
+
this.inputs = inputs;
|
|
491
|
+
}
|
|
492
|
+
onKeydown(_) {}
|
|
493
|
+
onPointerdown(_) {}
|
|
494
|
+
setDefaultState() {}
|
|
495
|
+
focus = (item, opts) => {
|
|
496
|
+
this.listBehavior.goto(item, opts);
|
|
497
|
+
};
|
|
498
|
+
getActiveItem = () => this.inputs.activeItem();
|
|
499
|
+
next = () => this.listBehavior.next();
|
|
500
|
+
prev = () => this.listBehavior.prev();
|
|
501
|
+
last = () => this.listBehavior.last();
|
|
502
|
+
first = () => this.listBehavior.first();
|
|
503
|
+
unfocus = () => this.listBehavior.unfocus();
|
|
504
|
+
select = item => this.listBehavior.select(item);
|
|
505
|
+
toggle = item => this.listBehavior.toggle(item);
|
|
506
|
+
clearSelection = () => this.listBehavior.deselectAll();
|
|
507
|
+
getItem = e => this._getItem(e);
|
|
508
|
+
getSelectedItems = () => {
|
|
509
|
+
const items = [];
|
|
510
|
+
for (const value of this.inputs.values()) {
|
|
511
|
+
const item = this.items().find(i => i.value() === value);
|
|
512
|
+
if (item) {
|
|
513
|
+
items.push(item);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return items;
|
|
517
|
+
};
|
|
518
|
+
setValue = value => this.inputs.values.set(value ? [value] : []);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export { ComboboxListboxPattern, List, ListboxPattern, OptionPattern };
|
|
522
|
+
//# sourceMappingURL=_combobox-listbox-chunk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_combobox-listbox-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/private/behaviors/list-selection/list-selection.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/private/behaviors/list-typeahead/list-typeahead.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/private/behaviors/list/list.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/private/listbox/listbox.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/private/listbox/option.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/aria/private/listbox/combobox-listbox.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 {computed, signal} from '@angular/core';\nimport {SignalLike, WritableSignalLike} from '../signal-like/signal-like';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../list-focus/list-focus';\n\n/** Represents an item in a collection, such as a listbox option, that can be selected. */\nexport interface ListSelectionItem<V> extends ListFocusItem {\n /** The value of the item. */\n value: SignalLike<V>;\n\n /** Whether the item is selectable. */\n selectable: SignalLike<boolean>;\n}\n\n/** Represents the required inputs for a collection that contains selectable items. */\nexport interface ListSelectionInputs<T extends ListSelectionItem<V>, V> extends ListFocusInputs<T> {\n /** Whether multiple items in the list can be selected at once. */\n multi: SignalLike<boolean>;\n\n /** The current value of the list selection. */\n values: WritableSignalLike<V[]>;\n\n /** The selection strategy used by the list. */\n selectionMode: SignalLike<'follow' | 'explicit'>;\n}\n\n/** Controls selection for a list of items. */\nexport class ListSelection<T extends ListSelectionItem<V>, V> {\n /** The start index to use for range selection. */\n rangeStartIndex = signal<number>(0);\n\n /** The end index to use for range selection. */\n rangeEndIndex = signal<number>(0);\n\n /** The currently selected items. */\n selectedItems = computed(() =>\n this.inputs.items().filter(item => this.inputs.values().includes(item.value())),\n );\n\n constructor(readonly inputs: ListSelectionInputs<T, V> & {focusManager: ListFocus<T>}) {}\n\n /** Selects the item at the current active index. */\n select(item?: ListSelectionItem<V>, opts = {anchor: true}) {\n item = item ?? (this.inputs.focusManager.inputs.activeItem() as ListSelectionItem<V>);\n\n if (\n !item ||\n item.disabled() ||\n !item.selectable() ||\n this.inputs.values().includes(item.value())\n ) {\n return;\n }\n\n if (!this.inputs.multi()) {\n this.deselectAll();\n }\n\n const index = this.inputs.items().findIndex(i => i === item);\n if (opts.anchor) {\n this.beginRangeSelection(index);\n }\n this.inputs.values.update(values => values.concat(item.value()));\n }\n\n /** Deselects the item at the current active index. */\n deselect(item?: ListSelectionItem<V>) {\n item = item ?? this.inputs.focusManager.inputs.activeItem();\n\n if (item && !item.disabled() && item.selectable()) {\n this.inputs.values.update(values => values.filter(value => value !== item.value()));\n }\n }\n\n /** Toggles the item at the current active index. */\n toggle(item?: ListSelectionItem<V>) {\n item = item ?? this.inputs.focusManager.inputs.activeItem();\n if (item) {\n this.inputs.values().includes(item.value()) ? this.deselect(item) : this.select(item);\n }\n }\n\n /** Toggles only the item at the current active index. */\n toggleOne() {\n const item = this.inputs.focusManager.inputs.activeItem();\n if (item) {\n this.inputs.values().includes(item.value()) ? this.deselect() : this.selectOne();\n }\n }\n\n /** Selects all items in the list. */\n selectAll() {\n if (!this.inputs.multi()) {\n return; // Should we log a warning?\n }\n\n for (const item of this.inputs.items()) {\n this.select(item, {anchor: false});\n }\n\n this.beginRangeSelection();\n }\n\n /** Deselects all items in the list. */\n deselectAll() {\n // If an item is not in the list, it forcefully gets deselected.\n // This actually creates a bug for the following edge case:\n //\n // Setup: An item is not in the list (maybe it's lazily loaded), and it is disabled & selected.\n // Expected: If deselectAll() is called, it should NOT get deselected (because it is disabled).\n // Actual: Calling deselectAll() will still deselect the item.\n //\n // Why? Because we can't check if the item is disabled if it's not in the list.\n //\n // Alternatively, we could NOT deselect items that are not in the list, but this has the\n // inverse (and more common) effect of keeping enabled items selected when they aren't in the\n // list.\n\n for (const value of this.inputs.values()) {\n const item = this.inputs.items().find(i => i.value() === value);\n\n item\n ? this.deselect(item)\n : this.inputs.values.update(values => values.filter(v => v !== value));\n }\n }\n\n /**\n * Selects all items in the list or deselects all\n * items in the list if all items are already selected.\n */\n toggleAll() {\n const selectableValues = this.inputs\n .items()\n .filter(i => !i.disabled() && i.selectable())\n .map(i => i.value());\n\n selectableValues.every(i => this.inputs.values().includes(i))\n ? this.deselectAll()\n : this.selectAll();\n }\n\n /** Sets the selection to only the current active item. */\n selectOne() {\n const item = this.inputs.focusManager.inputs.activeItem();\n if (item && (item.disabled() || !item.selectable())) {\n return;\n }\n\n this.deselectAll();\n\n if (this.inputs.values().length > 0 && !this.inputs.multi()) {\n return;\n }\n\n this.select();\n }\n\n /**\n * Selects all items in the list up to the anchor item.\n *\n * Deselects all items that were previously within the\n * selected range that are now outside of the selected range\n */\n selectRange(opts = {anchor: true}) {\n const isStartOfRange = this.inputs.focusManager.prevActiveIndex() === this.rangeStartIndex();\n\n if (isStartOfRange && opts.anchor) {\n this.beginRangeSelection(this.inputs.focusManager.prevActiveIndex());\n }\n\n const itemsInRange = this._getItemsFromIndex(this.rangeStartIndex());\n const itemsOutOfRange = this._getItemsFromIndex(this.rangeEndIndex()).filter(\n i => !itemsInRange.includes(i),\n );\n\n for (const item of itemsOutOfRange) {\n this.deselect(item);\n }\n\n for (const item of itemsInRange) {\n this.select(item, {anchor: false});\n }\n\n if (itemsInRange.length) {\n const item = itemsInRange.pop();\n const index = this.inputs.items().findIndex(i => i === item);\n this.rangeEndIndex.set(index);\n }\n }\n\n /** Marks the given index as the start of a range selection. */\n beginRangeSelection(index: number = this.inputs.focusManager.activeIndex()) {\n this.rangeStartIndex.set(index);\n this.rangeEndIndex.set(index);\n }\n\n /** Returns the items in the list starting from the given index. */\n private _getItemsFromIndex(index: number) {\n if (index === -1) {\n return [];\n }\n\n const upper = Math.max(this.inputs.focusManager.activeIndex(), index);\n const lower = Math.min(this.inputs.focusManager.activeIndex(), index);\n\n const items = [];\n for (let i = lower; i <= upper; i++) {\n items.push(this.inputs.items()[i]);\n }\n\n if (this.inputs.focusManager.activeIndex() < index) {\n return items.reverse();\n }\n\n return items;\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 {computed, signal} from '@angular/core';\nimport {SignalLike} from '../signal-like/signal-like';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../list-focus/list-focus';\n\n/**\n * Represents an item in a collection, such as a listbox option, than can be navigated to by\n * typeahead.\n */\nexport interface ListTypeaheadItem extends ListFocusItem {\n /** The text used by the typeahead search. */\n searchTerm: SignalLike<string>;\n}\n\n/**\n * Represents the required inputs for a collection that contains items that can be navigated to by\n * typeahead.\n */\nexport interface ListTypeaheadInputs<T extends ListTypeaheadItem> extends ListFocusInputs<T> {\n /** The amount of time before the typeahead search is reset. */\n typeaheadDelay: SignalLike<number>;\n}\n\n/** Controls typeahead for a list of items. */\nexport class ListTypeahead<T extends ListTypeaheadItem> {\n /** A reference to the timeout for resetting the typeahead search. */\n timeout?: ReturnType<typeof setTimeout> | undefined;\n\n /** The focus controller of the parent list. */\n focusManager: ListFocus<T>;\n\n /** Whether the user is actively typing a typeahead search query. */\n isTyping = computed(() => this._query().length > 0);\n\n /** Keeps track of the characters that typeahead search is being called with. */\n private _query = signal('');\n\n /** The index where that the typeahead search was initiated from. */\n private _startIndex = signal<number | undefined>(undefined);\n\n constructor(readonly inputs: ListTypeaheadInputs<T> & {focusManager: ListFocus<T>}) {\n this.focusManager = inputs.focusManager;\n }\n\n /** Performs a typeahead search, appending the given character to the search string. */\n search(char: string): boolean {\n if (char.length !== 1) {\n return false;\n }\n\n if (!this.isTyping() && char === ' ') {\n return false;\n }\n\n if (this._startIndex() === undefined) {\n this._startIndex.set(this.focusManager.activeIndex());\n }\n\n clearTimeout(this.timeout);\n this._query.update(q => q + char.toLowerCase());\n const item = this._getItem();\n\n if (item) {\n this.focusManager.focus(item);\n }\n\n this.timeout = setTimeout(() => {\n this._query.set('');\n this._startIndex.set(undefined);\n }, this.inputs.typeaheadDelay());\n\n return true;\n }\n\n /**\n * Returns the first item whose search term matches the\n * current query starting from the the current anchor index.\n */\n private _getItem() {\n let items = this.focusManager.inputs.items();\n const after = items.slice(this._startIndex()! + 1);\n const before = items.slice(0, this._startIndex()!);\n items = after.concat(before);\n items.push(this.inputs.items()[this._startIndex()!]);\n\n const focusableItems = [];\n for (const item of items) {\n if (this.focusManager.isFocusable(item)) {\n focusableItems.push(item);\n }\n }\n\n return focusableItems.find(i => i.searchTerm().toLowerCase().startsWith(this._query()));\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 {computed, signal} from '@angular/core';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../list-focus/list-focus';\nimport {\n ListNavigation,\n ListNavigationInputs,\n ListNavigationItem,\n} from '../list-navigation/list-navigation';\nimport {\n ListSelection,\n ListSelectionInputs,\n ListSelectionItem,\n} from '../list-selection/list-selection';\nimport {\n ListTypeahead,\n ListTypeaheadInputs,\n ListTypeaheadItem,\n} from '../list-typeahead/list-typeahead';\n\n/** The operations that the list can perform after navigation. */\ninterface NavOptions {\n toggle?: boolean;\n select?: boolean;\n selectOne?: boolean;\n selectRange?: boolean;\n anchor?: boolean;\n focusElement?: boolean;\n}\n\n/** Represents an item in the list. */\nexport type ListItem<V> = ListTypeaheadItem &\n ListNavigationItem &\n ListSelectionItem<V> &\n ListFocusItem;\n\n/** The necessary inputs for the list behavior. */\nexport type ListInputs<T extends ListItem<V>, V> = ListFocusInputs<T> &\n ListNavigationInputs<T> &\n ListSelectionInputs<T, V> &\n ListTypeaheadInputs<T>;\n\n/** Controls the state of a list. */\nexport class List<T extends ListItem<V>, V> {\n /** Controls navigation for the list. */\n navigationBehavior: ListNavigation<T>;\n\n /** Controls selection for the list. */\n selectionBehavior: ListSelection<T, V>;\n\n /** Controls typeahead for the list. */\n typeaheadBehavior: ListTypeahead<T>;\n\n /** Controls focus for the list. */\n focusBehavior: ListFocus<T>;\n\n /** Whether the list is disabled. */\n disabled = computed(() => this.focusBehavior.isListDisabled());\n\n /** The id of the current active item. */\n activeDescendant = computed(() => this.focusBehavior.getActiveDescendant());\n\n /** The tab index of the list. */\n tabIndex = computed(() => this.focusBehavior.getListTabIndex());\n\n /** The index of the currently active item in the list. */\n activeIndex = computed(() => this.focusBehavior.activeIndex());\n\n /**\n * The uncommitted index for selecting a range of options.\n *\n * NOTE: This is subtly distinct from the \"rangeStartIndex\" in the ListSelection behavior.\n * The anchorIndex does not necessarily represent the start of a range, but represents the most\n * recent index where the user showed intent to begin a range selection. Usually, this is wherever\n * the user most recently pressed the \"Shift\" key, but if the user presses shift + space to select\n * from the anchor, the user is not intending to start a new range from this index.\n *\n * In other words, \"rangeStartIndex\" is only set when a user commits to starting a range selection\n * while \"anchorIndex\" is set whenever a user indicates they may be starting a range selection.\n */\n private _anchorIndex = signal(0);\n\n /** Whether the list should wrap. Used to disable wrapping while range selecting. */\n private _wrap = signal(true);\n\n constructor(readonly inputs: ListInputs<T, V>) {\n this.focusBehavior = new ListFocus(inputs);\n this.selectionBehavior = new ListSelection({...inputs, focusManager: this.focusBehavior});\n this.typeaheadBehavior = new ListTypeahead({...inputs, focusManager: this.focusBehavior});\n this.navigationBehavior = new ListNavigation({\n ...inputs,\n focusManager: this.focusBehavior,\n wrap: computed(() => this._wrap() && this.inputs.wrap()),\n });\n }\n\n /** Returns the tab index for the given item. */\n getItemTabindex(item: T) {\n return this.focusBehavior.getItemTabIndex(item);\n }\n\n /** Navigates to the first option in the list. */\n first(opts?: NavOptions) {\n this._navigate(opts, () => this.navigationBehavior.first(opts));\n }\n\n /** Navigates to the last option in the list. */\n last(opts?: NavOptions) {\n this._navigate(opts, () => this.navigationBehavior.last(opts));\n }\n\n /** Navigates to the next option in the list. */\n next(opts?: NavOptions) {\n this._navigate(opts, () => this.navigationBehavior.next(opts));\n }\n\n /** Navigates to the previous option in the list. */\n prev(opts?: NavOptions) {\n this._navigate(opts, () => this.navigationBehavior.prev(opts));\n }\n\n /** Navigates to the given item in the list. */\n goto(item: T, opts?: NavOptions) {\n this._navigate(opts, () => this.navigationBehavior.goto(item, opts));\n }\n\n /** Removes focus from the list. */\n unfocus() {\n this.inputs.activeItem.set(undefined);\n }\n\n /** Marks the given index as the potential start of a range selection. */\n anchor(index: number) {\n this._anchorIndex.set(index);\n }\n\n /** Handles typeahead search navigation for the list. */\n search(char: string, opts?: NavOptions) {\n this._navigate(opts, () => this.typeaheadBehavior.search(char));\n }\n\n /** Checks if the list is currently typing for typeahead search. */\n isTyping() {\n return this.typeaheadBehavior.isTyping();\n }\n\n /** Selects the currently active item in the list. */\n select(item?: T) {\n this.selectionBehavior.select(item);\n }\n\n /** Sets the selection to only the current active item. */\n selectOne() {\n this.selectionBehavior.selectOne();\n }\n\n /** Deselects the currently active item in the list. */\n deselect(item?: T) {\n this.selectionBehavior.deselect(item);\n }\n\n /** Deselects all items in the list. */\n deselectAll() {\n this.selectionBehavior.deselectAll();\n }\n\n /** Toggles the currently active item in the list. */\n toggle(item?: T) {\n this.selectionBehavior.toggle(item);\n }\n\n /** Toggles the currently active item in the list, deselecting all other items. */\n toggleOne() {\n this.selectionBehavior.toggleOne();\n }\n\n /** Toggles the selection of all items in the list. */\n toggleAll() {\n this.selectionBehavior.toggleAll();\n }\n\n /** Checks if the given item is able to receive focus. */\n isFocusable(item: T) {\n return this.focusBehavior.isFocusable(item);\n }\n\n /** Handles updating selection for the list. */\n updateSelection(opts: NavOptions = {anchor: true}) {\n if (opts.toggle) {\n this.selectionBehavior.toggle();\n }\n if (opts.select) {\n this.selectionBehavior.select();\n }\n if (opts.selectOne) {\n this.selectionBehavior.selectOne();\n }\n if (opts.selectRange) {\n this.selectionBehavior.selectRange();\n }\n if (!opts.anchor) {\n this.anchor(this.selectionBehavior.rangeStartIndex());\n }\n }\n\n /**\n * Safely performs a navigation operation.\n *\n * Handles conditionally disabling wrapping for when a navigation\n * operation is occurring while the user is selecting a range of options.\n *\n * Handles boilerplate calling of focus & selection operations. Also ensures these\n * additional operations are only called if the navigation operation moved focus to a new option.\n */\n private _navigate(opts: NavOptions = {}, operation: () => boolean) {\n if (opts?.selectRange) {\n this._wrap.set(false);\n this.selectionBehavior.rangeStartIndex.set(this._anchorIndex());\n }\n\n const moved = operation();\n\n if (moved) {\n this.updateSelection(opts);\n }\n\n this._wrap.set(true);\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 {OptionPattern} from './option';\nimport {KeyboardEventManager, PointerEventManager, Modifier} from '../behaviors/event-manager';\nimport {computed, signal} from '@angular/core';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\nimport {List, ListInputs} from '../behaviors/list/list';\n\n/** Represents the required inputs for a listbox. */\nexport type ListboxInputs<V> = ListInputs<OptionPattern<V>, V> & {\n /** A unique identifier for the listbox. */\n id: SignalLike<string>;\n\n /** Whether the listbox is readonly. */\n readonly: SignalLike<boolean>;\n};\n\n/** Controls the state of a listbox. */\nexport class ListboxPattern<V> {\n listBehavior: List<OptionPattern<V>, V>;\n\n /** Whether the list is vertically or horizontally oriented. */\n orientation: SignalLike<'vertical' | 'horizontal'>;\n\n /** Whether the listbox is disabled. */\n disabled = computed(() => this.listBehavior.disabled());\n\n /** Whether the listbox is readonly. */\n readonly: SignalLike<boolean>;\n\n /** The tab index of the listbox. */\n tabIndex: SignalLike<-1 | 0> = computed(() => this.listBehavior.tabIndex());\n\n /** The id of the current active item. */\n activeDescendant = computed(() => this.listBehavior.activeDescendant());\n\n /** Whether multiple items in the list can be selected at once. */\n multi: SignalLike<boolean>;\n\n /** The number of items in the listbox. */\n setsize = computed(() => this.inputs.items().length);\n\n /** Whether the listbox selection follows focus. */\n followFocus = computed(() => this.inputs.selectionMode() === 'follow');\n\n /** Whether the listbox should wrap. Used to disable wrapping while range selecting. */\n wrap = signal(true);\n\n /** The key used to navigate to the previous item in the list. */\n prevKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowUp';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n });\n\n /** The key used to navigate to the next item in the list. */\n nextKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowDown';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** Represents the space key. Does nothing when the user is actively using typeahead. */\n dynamicSpaceKey = computed(() => (this.listBehavior.isTyping() ? '' : ' '));\n\n /** The regexp used to decide if a key should trigger typeahead. */\n typeaheadRegexp = /^.$/;\n\n /** The keydown event manager for the listbox. */\n keydown = computed(() => {\n const manager = new KeyboardEventManager();\n\n if (this.readonly()) {\n return manager\n .on(this.prevKey, () => this.listBehavior.prev())\n .on(this.nextKey, () => this.listBehavior.next())\n .on('Home', () => this.listBehavior.first())\n .on('End', () => this.listBehavior.last())\n .on(this.typeaheadRegexp, e => this.listBehavior.search(e.key));\n }\n\n if (!this.followFocus()) {\n manager\n .on(this.prevKey, () => this.listBehavior.prev())\n .on(this.nextKey, () => this.listBehavior.next())\n .on('Home', () => this.listBehavior.first())\n .on('End', () => this.listBehavior.last())\n .on(this.typeaheadRegexp, e => this.listBehavior.search(e.key));\n }\n\n if (this.followFocus()) {\n manager\n .on(this.prevKey, () => this.listBehavior.prev({selectOne: true}))\n .on(this.nextKey, () => this.listBehavior.next({selectOne: true}))\n .on('Home', () => this.listBehavior.first({selectOne: true}))\n .on('End', () => this.listBehavior.last({selectOne: true}))\n .on(this.typeaheadRegexp, e => this.listBehavior.search(e.key, {selectOne: true}));\n }\n\n if (this.inputs.multi()) {\n manager\n .on(Modifier.Any, 'Shift', () => this.listBehavior.anchor(this.listBehavior.activeIndex()))\n .on(Modifier.Shift, this.prevKey, () => this.listBehavior.prev({selectRange: true}))\n .on(Modifier.Shift, this.nextKey, () => this.listBehavior.next({selectRange: true}))\n .on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'Home', () =>\n this.listBehavior.first({selectRange: true, anchor: false}),\n )\n .on([Modifier.Ctrl | Modifier.Shift, Modifier.Meta | Modifier.Shift], 'End', () =>\n this.listBehavior.last({selectRange: true, anchor: false}),\n )\n .on(Modifier.Shift, 'Enter', () =>\n this.listBehavior.updateSelection({selectRange: true, anchor: false}),\n )\n .on(Modifier.Shift, this.dynamicSpaceKey, () =>\n this.listBehavior.updateSelection({selectRange: true, anchor: false}),\n );\n }\n\n if (!this.followFocus() && this.inputs.multi()) {\n manager\n .on(this.dynamicSpaceKey, () => this.listBehavior.toggle())\n .on('Enter', () => this.listBehavior.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'A', () => this.listBehavior.toggleAll());\n }\n\n if (!this.followFocus() && !this.inputs.multi()) {\n manager.on(this.dynamicSpaceKey, () => this.listBehavior.toggleOne());\n manager.on('Enter', () => this.listBehavior.toggleOne());\n }\n\n if (this.inputs.multi() && this.followFocus()) {\n manager\n .on([Modifier.Ctrl, Modifier.Meta], this.prevKey, () => this.listBehavior.prev())\n .on([Modifier.Ctrl, Modifier.Meta], this.nextKey, () => this.listBehavior.next())\n .on([Modifier.Ctrl, Modifier.Meta], ' ', () => this.listBehavior.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'Enter', () => this.listBehavior.toggle())\n .on([Modifier.Ctrl, Modifier.Meta], 'Home', () => this.listBehavior.first())\n .on([Modifier.Ctrl, Modifier.Meta], 'End', () => this.listBehavior.last())\n .on([Modifier.Ctrl, Modifier.Meta], 'A', () => {\n this.listBehavior.toggleAll();\n this.listBehavior.select(); // Ensure the currect option remains selected.\n });\n }\n\n return manager;\n });\n\n /** The pointerdown event manager for the listbox. */\n pointerdown = computed(() => {\n const manager = new PointerEventManager();\n\n if (this.readonly()) {\n return manager.on(e => this.listBehavior.goto(this._getItem(e)!));\n }\n\n if (this.multi()) {\n manager.on(Modifier.Shift, e =>\n this.listBehavior.goto(this._getItem(e)!, {selectRange: true}),\n );\n }\n\n if (!this.multi() && this.followFocus()) {\n return manager.on(e => this.listBehavior.goto(this._getItem(e)!, {selectOne: true}));\n }\n\n if (!this.multi() && !this.followFocus()) {\n return manager.on(e => this.listBehavior.goto(this._getItem(e)!, {toggle: true}));\n }\n\n if (this.multi() && this.followFocus()) {\n return manager\n .on(e => this.listBehavior.goto(this._getItem(e)!, {selectOne: true}))\n .on(Modifier.Ctrl, e => this.listBehavior.goto(this._getItem(e)!, {toggle: true}));\n }\n\n if (this.multi() && !this.followFocus()) {\n return manager.on(e => this.listBehavior.goto(this._getItem(e)!, {toggle: true}));\n }\n\n return manager;\n });\n\n constructor(readonly inputs: ListboxInputs<V>) {\n this.readonly = inputs.readonly;\n this.orientation = inputs.orientation;\n this.multi = inputs.multi;\n this.listBehavior = new List(inputs);\n }\n\n /** Returns a set of violations */\n validate(): string[] {\n const violations: string[] = [];\n\n if (!this.inputs.multi() && this.inputs.values().length > 1) {\n violations.push(\n `A single-select listbox should not have multiple selected options. Selected options: ${this.inputs.values().join(', ')}`,\n );\n }\n\n return violations;\n }\n\n /** Handles keydown events for the listbox. */\n onKeydown(event: KeyboardEvent) {\n if (!this.disabled()) {\n this.keydown().handle(event);\n }\n }\n\n onPointerdown(event: PointerEvent) {\n if (!this.disabled()) {\n this.pointerdown().handle(event);\n }\n }\n\n /**\n * Sets the listbox to it's default initial state.\n *\n * Sets the active index of the listbox to the first focusable selected\n * item if one exists. Otherwise, sets focus to the first focusable item.\n *\n * This method should be called once the listbox and it's options are properly initialized,\n * meaning the ListboxPattern and OptionPatterns should have references to each other before this\n * is called.\n */\n setDefaultState() {\n let firstItem: OptionPattern<V> | null = null;\n\n for (const item of this.inputs.items()) {\n if (this.listBehavior.isFocusable(item)) {\n if (!firstItem) {\n firstItem = item;\n }\n if (item.selected()) {\n this.inputs.activeItem.set(item);\n return;\n }\n }\n }\n\n if (firstItem) {\n this.inputs.activeItem.set(firstItem);\n }\n }\n\n protected _getItem(e: PointerEvent) {\n if (!(e.target instanceof HTMLElement)) {\n return;\n }\n\n const element = e.target.closest('[role=\"option\"]');\n return this.inputs.items().find(i => i.element() === element);\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 {computed} from '@angular/core';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\nimport {List, ListInputs, ListItem} from '../behaviors/list/list';\n\n/**\n * Represents the properties exposed by a listbox that need to be accessed by an option.\n * This exists to avoid circular dependency errors between the listbox and option.\n */\ninterface ListboxPattern<V> {\n inputs: ListInputs<OptionPattern<V>, V>;\n listBehavior: List<OptionPattern<V>, V>;\n}\n\n/** Represents the required inputs for an option in a listbox. */\nexport interface OptionInputs<V> extends Omit<ListItem<V>, 'index' | 'selectable'> {\n listbox: SignalLike<ListboxPattern<V> | undefined>;\n}\n\n/** Represents an option in a listbox. */\nexport class OptionPattern<V> {\n /** A unique identifier for the option. */\n id: SignalLike<string>;\n\n /** The value of the option. */\n value: SignalLike<V>;\n\n /** The position of the option in the list. */\n index = computed(() => this.listbox()?.inputs.items().indexOf(this) ?? -1);\n\n /** Whether the option is active. */\n active = computed(() => this.listbox()?.inputs.activeItem() === this);\n\n /** Whether the option is selected. */\n selected = computed(() => this.listbox()?.inputs.values().includes(this.value()));\n\n /** Whether the option is selectable. */\n selectable = () => true;\n\n /** Whether the option is disabled. */\n disabled: SignalLike<boolean>;\n\n /** The text used by the typeahead search. */\n searchTerm: SignalLike<string>;\n\n /** A reference to the parent listbox. */\n listbox: SignalLike<ListboxPattern<V> | undefined>;\n\n /** The tab index of the option. */\n tabIndex = computed(() => this.listbox()?.listBehavior.getItemTabindex(this));\n\n /** The html element that should receive focus. */\n element: SignalLike<HTMLElement | undefined>;\n\n constructor(args: OptionInputs<V>) {\n this.id = args.id;\n this.value = args.value;\n this.listbox = args.listbox;\n this.element = args.element;\n this.disabled = args.disabled;\n this.searchTerm = args.searchTerm;\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 {computed} from '@angular/core';\nimport {ListboxInputs, ListboxPattern} from './listbox';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\nimport {OptionPattern} from './option';\nimport {ComboboxPattern, ComboboxListboxControls} from '../combobox/combobox';\n\nexport type ComboboxListboxInputs<V> = ListboxInputs<V> & {\n /** The combobox controlling the listbox. */\n combobox: SignalLike<ComboboxPattern<OptionPattern<V>, V> | undefined>;\n};\n\nexport class ComboboxListboxPattern<V>\n extends ListboxPattern<V>\n implements ComboboxListboxControls<OptionPattern<V>, V>\n{\n /** A unique identifier for the popup. */\n id = computed(() => this.inputs.id());\n\n /** The ARIA role for the listbox. */\n role = computed(() => 'listbox' as const);\n\n /** The id of the active (focused) item in the listbox. */\n activeId = computed(() => this.listBehavior.activeDescendant());\n\n /** The list of options in the listbox. */\n items: SignalLike<OptionPattern<V>[]> = computed(() => this.inputs.items());\n\n /** The tab index for the listbox. Always -1 because the combobox handles focus. */\n override tabIndex: SignalLike<-1 | 0> = () => -1;\n\n /** Whether multiple items in the list can be selected at once. */\n override multi = computed(() => {\n return this.inputs.combobox()?.readonly() ? this.inputs.multi() : false;\n });\n\n constructor(override readonly inputs: ComboboxListboxInputs<V>) {\n if (inputs.combobox()) {\n inputs.focusMode = () => 'activedescendant';\n inputs.element = inputs.combobox()!.inputs.inputEl;\n }\n\n super(inputs);\n }\n\n /** Noop. The combobox handles keydown events. */\n override onKeydown(_: KeyboardEvent): void {}\n\n /** Noop. The combobox handles pointerdown events. */\n override onPointerdown(_: PointerEvent): void {}\n\n /** Noop. The combobox controls the open state. */\n override setDefaultState(): void {}\n\n /** Navigates to the specified item in the listbox. */\n focus = (item: OptionPattern<V>, opts?: {focusElement?: boolean}) => {\n this.listBehavior.goto(item, opts);\n };\n\n /** Navigates to the previous focusable item in the listbox. */\n getActiveItem = () => this.inputs.activeItem();\n\n /** Navigates to the next focusable item in the listbox. */\n next = () => this.listBehavior.next();\n\n /** Navigates to the previous focusable item in the listbox. */\n prev = () => this.listBehavior.prev();\n\n /** Navigates to the last focusable item in the listbox. */\n last = () => this.listBehavior.last();\n\n /** Navigates to the first focusable item in the listbox. */\n first = () => this.listBehavior.first();\n\n /** Unfocuses the currently focused item in the listbox. */\n unfocus = () => this.listBehavior.unfocus();\n\n /** Selects the specified item in the listbox. */\n select = (item?: OptionPattern<V>) => this.listBehavior.select(item);\n\n /** Toggles the selection state of the given item in the listbox. */\n toggle = (item?: OptionPattern<V>) => this.listBehavior.toggle(item);\n\n /** Clears the selection in the listbox. */\n clearSelection = () => this.listBehavior.deselectAll();\n\n /** Retrieves the OptionPattern associated with a pointer event. */\n getItem = (e: PointerEvent) => this._getItem(e);\n\n /** Retrieves the currently selected items in the listbox. */\n getSelectedItems = () => {\n // NOTE: We need to do this funky for loop to preserve the order of the selected values.\n const items = [];\n for (const value of this.inputs.values()) {\n const item = this.items().find(i => i.value() === value);\n if (item) {\n items.push(item);\n }\n }\n return items;\n };\n\n /** Sets the value of the combobox listbox. */\n setValue = (value: V | undefined) => this.inputs.values.set(value ? [value] : []);\n}\n"],"names":["ListSelection","inputs","rangeStartIndex","signal","rangeEndIndex","selectedItems","computed","items","filter","item","values","includes","value","constructor","select","opts","anchor","focusManager","activeItem","disabled","selectable","multi","deselectAll","index","findIndex","i","beginRangeSelection","update","concat","deselect","toggle","toggleOne","selectOne","selectAll","find","v","toggleAll","selectableValues","map","every","length","selectRange","isStartOfRange","prevActiveIndex","itemsInRange","_getItemsFromIndex","itemsOutOfRange","pop","set","activeIndex","upper","Math","max","lower","min","push","reverse","ListTypeahead","timeout","isTyping","_query","_startIndex","undefined","search","char","clearTimeout","q","toLowerCase","_getItem","focus","setTimeout","typeaheadDelay","after","slice","before","focusableItems","isFocusable","searchTerm","startsWith","List","navigationBehavior","selectionBehavior","typeaheadBehavior","focusBehavior","isListDisabled","activeDescendant","getActiveDescendant","tabIndex","getListTabIndex","_anchorIndex","_wrap","ListFocus","ListNavigation","wrap","getItemTabindex","getItemTabIndex","first","_navigate","last","next","prev","goto","unfocus","updateSelection","operation","moved","ListboxPattern","listBehavior","orientation","readonly","setsize","followFocus","selectionMode","prevKey","textDirection","nextKey","dynamicSpaceKey","typeaheadRegexp","keydown","manager","KeyboardEventManager","on","e","key","Modifier","Any","Shift","Ctrl","Meta","pointerdown","PointerEventManager","validate","violations","join","onKeydown","event","handle","onPointerdown","setDefaultState","firstItem","selected","target","HTMLElement","element","closest","OptionPattern","id","listbox","indexOf","active","args","ComboboxListboxPattern","role","activeId","combobox","focusMode","inputEl","_","getActiveItem","clearSelection","getItem","getSelectedItems","setValue"],"mappings":";;;;MAkCaA,aAAa,CAAA;EAYHC,MAAA;AAVrBC,EAAAA,eAAe,GAAGC,MAAM,CAAS,CAAC,CAAC;AAGnCC,EAAAA,aAAa,GAAGD,MAAM,CAAS,CAAC,CAAC;AAGjCE,EAAAA,aAAa,GAAGC,QAAQ,CAAC,MACvB,IAAI,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