@angular/cdk-experimental 20.0.0-next.5 → 20.0.0-next.7
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/column-resize/index.d.ts +3 -2
- package/combobox/index.d.ts +3 -2
- package/deferred-content/index.d.ts +37 -0
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +52 -52
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs +11 -11
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/deferred-content.mjs +60 -0
- package/fesm2022/deferred-content.mjs.map +1 -0
- package/fesm2022/{option-a8c77cfa.mjs → list-focus-DtTH4bDx.mjs} +34 -291
- package/fesm2022/list-focus-DtTH4bDx.mjs.map +1 -0
- package/fesm2022/listbox.mjs +14 -10
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/option-Bgpacz3g.mjs +319 -0
- package/fesm2022/option-Bgpacz3g.mjs.map +1 -0
- package/fesm2022/{polyfill-c4e47556.mjs → polyfill-DRXnWbMt.mjs} +2 -2
- package/fesm2022/polyfill-DRXnWbMt.mjs.map +1 -0
- package/fesm2022/popover-edit.mjs +45 -46
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +8 -8
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection.mjs +21 -21
- package/fesm2022/selection.mjs.map +1 -1
- package/fesm2022/table-scroll-container.mjs +7 -7
- package/fesm2022/table-scroll-container.mjs.map +1 -1
- package/fesm2022/tabs-cBelBNjZ.mjs +190 -0
- package/fesm2022/tabs-cBelBNjZ.mjs.map +1 -0
- package/fesm2022/tabs.mjs +224 -0
- package/fesm2022/tabs.mjs.map +1 -0
- package/fesm2022/ui-patterns.mjs +3 -1
- package/fesm2022/ui-patterns.mjs.map +1 -1
- package/{listbox.d-e1f2866f.d.ts → list-focus.d-1SGksIi8.d.ts} +9 -151
- package/listbox/index.d.ts +6 -3
- package/listbox.d-C-LFh0S9.d.ts +160 -0
- package/package.json +13 -2
- package/popover-edit/index.d.ts +2 -1
- package/selection/index.d.ts +2 -1
- package/tabs/index.d.ts +128 -0
- package/tabs.d-BIIDt2Rf.d.ts +107 -0
- package/ui-patterns/index.d.ts +3 -1
- package/fesm2022/option-a8c77cfa.mjs.map +0 -1
- package/fesm2022/polyfill-c4e47556.mjs.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, input, inject, TemplateRef, ViewContainerRef, effect, Directive } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A container directive controls the visibility of its content.
|
|
6
|
+
*/
|
|
7
|
+
class DeferredContentAware {
|
|
8
|
+
contentVisible = signal(false);
|
|
9
|
+
preserveContent = input(false);
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DeferredContentAware, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0-next.5", type: DeferredContentAware, isStandalone: true, inputs: { preserveContent: { classPropertyName: "preserveContent", publicName: "preserveContent", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DeferredContentAware, decorators: [{
|
|
14
|
+
type: Directive
|
|
15
|
+
}] });
|
|
16
|
+
/**
|
|
17
|
+
* DeferredContent loads/unloads the content based on the visibility.
|
|
18
|
+
* The visibilty signal is sent from a parent directive implements
|
|
19
|
+
* DeferredContentAware.
|
|
20
|
+
*
|
|
21
|
+
* Use this directive as a host directive. For example:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* @Directive({
|
|
25
|
+
* selector: 'ng-template[cdkAccordionContent]',
|
|
26
|
+
* hostDirectives: [DeferredContent],
|
|
27
|
+
* })
|
|
28
|
+
* class CdkAccordionContent {}
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class DeferredContent {
|
|
32
|
+
_deferredContentAware = inject(DeferredContentAware);
|
|
33
|
+
_templateRef = inject(TemplateRef);
|
|
34
|
+
_viewContainerRef = inject(ViewContainerRef);
|
|
35
|
+
_isRendered = false;
|
|
36
|
+
constructor() {
|
|
37
|
+
effect(() => {
|
|
38
|
+
if (this._deferredContentAware.preserveContent() ||
|
|
39
|
+
this._deferredContentAware.contentVisible()) {
|
|
40
|
+
if (this._isRendered)
|
|
41
|
+
return;
|
|
42
|
+
this._viewContainerRef.clear();
|
|
43
|
+
this._viewContainerRef.createEmbeddedView(this._templateRef);
|
|
44
|
+
this._isRendered = true;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this._viewContainerRef.clear();
|
|
48
|
+
this._isRendered = false;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DeferredContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
53
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: DeferredContent, isStandalone: true, ngImport: i0 });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DeferredContent, decorators: [{
|
|
56
|
+
type: Directive
|
|
57
|
+
}], ctorParameters: () => [] });
|
|
58
|
+
|
|
59
|
+
export { DeferredContent, DeferredContentAware };
|
|
60
|
+
//# sourceMappingURL=deferred-content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deferred-content.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/deferred-content/deferred-content.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n Directive,\n effect,\n inject,\n input,\n TemplateRef,\n signal,\n ViewContainerRef,\n} from '@angular/core';\n\n/**\n * A container directive controls the visibility of its content.\n */\n@Directive()\nexport class DeferredContentAware {\n contentVisible = signal(false);\n readonly preserveContent = input(false);\n}\n\n/**\n * DeferredContent loads/unloads the content based on the visibility.\n * The visibilty signal is sent from a parent directive implements\n * DeferredContentAware.\n *\n * Use this directive as a host directive. For example:\n *\n * ```ts\n * @Directive({\n * selector: 'ng-template[cdkAccordionContent]',\n * hostDirectives: [DeferredContent],\n * })\n * class CdkAccordionContent {}\n * ```\n */\n@Directive()\nexport class DeferredContent {\n private readonly _deferredContentAware = inject(DeferredContentAware);\n private readonly _templateRef = inject(TemplateRef);\n private readonly _viewContainerRef = inject(ViewContainerRef);\n private _isRendered = false;\n\n constructor() {\n effect(() => {\n if (\n this._deferredContentAware.preserveContent() ||\n this._deferredContentAware.contentVisible()\n ) {\n if (this._isRendered) return;\n this._viewContainerRef.clear();\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n this._isRendered = true;\n } else {\n this._viewContainerRef.clear();\n this._isRendered = false;\n }\n });\n }\n}\n"],"names":[],"mappings":";;;AAkBA;;AAEG;MAEU,oBAAoB,CAAA;AAC/B,IAAA,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC;AACrB,IAAA,eAAe,GAAG,KAAK,CAAC,KAAK,CAAC;8GAF5B,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBAAA,EAAA,iB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|
3
3
|
/** Bit flag representation of the possible modifier keys that can be present on an event. */
|
|
4
4
|
var ModifierKey;
|
|
@@ -156,7 +156,7 @@ class ListSelection {
|
|
|
156
156
|
if (item.disabled() || this.inputs.value().includes(item.value())) {
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
if (!this.inputs.
|
|
159
|
+
if (!this.inputs.multi()) {
|
|
160
160
|
this.deselectAll();
|
|
161
161
|
}
|
|
162
162
|
// TODO: Need to discuss when to drop this.
|
|
@@ -182,7 +182,7 @@ class ListSelection {
|
|
|
182
182
|
}
|
|
183
183
|
/** Selects all items in the list. */
|
|
184
184
|
selectAll() {
|
|
185
|
-
if (!this.inputs.
|
|
185
|
+
if (!this.inputs.multi()) {
|
|
186
186
|
return; // Should we log a warning?
|
|
187
187
|
}
|
|
188
188
|
for (const item of this.inputs.items()) {
|
|
@@ -205,80 +205,48 @@ class ListSelection {
|
|
|
205
205
|
selectFromActive() {
|
|
206
206
|
this._selectFromIndex(this.inputs.navigation.prevActiveIndex());
|
|
207
207
|
}
|
|
208
|
-
/** Selects the items in the list starting at the given index. */
|
|
209
|
-
_selectFromIndex(index) {
|
|
210
|
-
if (index === -1) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
const upper = Math.max(this.inputs.navigation.inputs.activeIndex(), index);
|
|
214
|
-
const lower = Math.min(this.inputs.navigation.inputs.activeIndex(), index);
|
|
215
|
-
for (let i = lower; i <= upper; i++) {
|
|
216
|
-
this.select(this.inputs.items()[i]);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
208
|
/** Sets the selection to only the current active item. */
|
|
220
209
|
selectOne() {
|
|
221
210
|
this.deselectAll();
|
|
222
211
|
this.select();
|
|
223
212
|
}
|
|
213
|
+
/** Toggles the items in the list starting at the last selected item. */
|
|
214
|
+
toggleFromPrevSelectedItem() {
|
|
215
|
+
const prevIndex = this.inputs.items().findIndex(i => this.previousValue() === i.value());
|
|
216
|
+
const currIndex = this.inputs.navigation.inputs.activeIndex();
|
|
217
|
+
const currValue = this.inputs.items()[currIndex].value();
|
|
218
|
+
const items = this._getItemsFromIndex(prevIndex);
|
|
219
|
+
const operation = this.inputs.value().includes(currValue)
|
|
220
|
+
? this.deselect.bind(this)
|
|
221
|
+
: this.select.bind(this);
|
|
222
|
+
for (const item of items) {
|
|
223
|
+
operation(item);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
224
226
|
/** Sets the anchor to the current active index. */
|
|
225
227
|
_anchor() {
|
|
226
228
|
const item = this.inputs.items()[this.inputs.navigation.inputs.activeIndex()];
|
|
227
229
|
this.previousValue.set(item.value());
|
|
228
230
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
/** A reference to the timeout for resetting the typeahead search. */
|
|
235
|
-
timeout;
|
|
236
|
-
/** The navigation controller of the parent list. */
|
|
237
|
-
navigation;
|
|
238
|
-
/** Keeps track of the characters that typeahead search is being called with. */
|
|
239
|
-
_query = signal('');
|
|
240
|
-
/** The index where that the typeahead search was initiated from. */
|
|
241
|
-
_startIndex = signal(undefined);
|
|
242
|
-
constructor(inputs) {
|
|
243
|
-
this.inputs = inputs;
|
|
244
|
-
this.navigation = inputs.navigation;
|
|
245
|
-
}
|
|
246
|
-
/** Performs a typeahead search, appending the given character to the search string. */
|
|
247
|
-
search(char) {
|
|
248
|
-
if (char.length !== 1) {
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
if (this._startIndex() === undefined) {
|
|
252
|
-
this._startIndex.set(this.navigation.inputs.activeIndex());
|
|
231
|
+
/** Selects the items in the list starting at the given index. */
|
|
232
|
+
_selectFromIndex(index) {
|
|
233
|
+
const items = this._getItemsFromIndex(index);
|
|
234
|
+
for (const item of items) {
|
|
235
|
+
this.select(item);
|
|
253
236
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
if (
|
|
258
|
-
|
|
237
|
+
}
|
|
238
|
+
/** Returns all items from the given index to the current active index. */
|
|
239
|
+
_getItemsFromIndex(index) {
|
|
240
|
+
if (index === -1) {
|
|
241
|
+
return [];
|
|
259
242
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Returns the first item whose search term matches the
|
|
267
|
-
* current query starting from the the current anchor index.
|
|
268
|
-
*/
|
|
269
|
-
_getItem() {
|
|
270
|
-
let items = this.navigation.inputs.items();
|
|
271
|
-
const after = items.slice(this._startIndex() + 1);
|
|
272
|
-
const before = items.slice(0, this._startIndex());
|
|
273
|
-
items = this.navigation.inputs.wrap() ? after.concat(before) : after; // TODO: Always wrap?
|
|
274
|
-
items.push(this.navigation.inputs.items()[this._startIndex()]);
|
|
275
|
-
const focusableItems = [];
|
|
276
|
-
for (const item of items) {
|
|
277
|
-
if (this.navigation.isFocusable(item)) {
|
|
278
|
-
focusableItems.push(item);
|
|
279
|
-
}
|
|
243
|
+
const upper = Math.max(this.inputs.navigation.inputs.activeIndex(), index);
|
|
244
|
+
const lower = Math.min(this.inputs.navigation.inputs.activeIndex(), index);
|
|
245
|
+
const items = [];
|
|
246
|
+
for (let i = lower; i <= upper; i++) {
|
|
247
|
+
items.push(this.inputs.items()[i]);
|
|
280
248
|
}
|
|
281
|
-
return
|
|
249
|
+
return items;
|
|
282
250
|
}
|
|
283
251
|
}
|
|
284
252
|
|
|
@@ -386,230 +354,5 @@ class ListFocus {
|
|
|
386
354
|
}
|
|
387
355
|
}
|
|
388
356
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
inputs;
|
|
392
|
-
/** Controls navigation for the listbox. */
|
|
393
|
-
navigation;
|
|
394
|
-
/** Controls selection for the listbox. */
|
|
395
|
-
selection;
|
|
396
|
-
/** Controls typeahead for the listbox. */
|
|
397
|
-
typeahead;
|
|
398
|
-
/** Controls focus for the listbox. */
|
|
399
|
-
focusManager;
|
|
400
|
-
/** Whether the list is vertically or horizontally oriented. */
|
|
401
|
-
orientation;
|
|
402
|
-
/** Whether the listbox is disabled. */
|
|
403
|
-
disabled;
|
|
404
|
-
/** The tabindex of the listbox. */
|
|
405
|
-
tabindex = computed(() => this.focusManager.getListTabindex());
|
|
406
|
-
/** The id of the current active item. */
|
|
407
|
-
activedescendant = computed(() => this.focusManager.getActiveDescendant());
|
|
408
|
-
/** Whether multiple items in the list can be selected at once. */
|
|
409
|
-
multiselectable;
|
|
410
|
-
/** The number of items in the listbox. */
|
|
411
|
-
setsize = computed(() => this.navigation.inputs.items().length);
|
|
412
|
-
/** Whether the listbox selection follows focus. */
|
|
413
|
-
followFocus = computed(() => this.inputs.selectionMode() === 'follow');
|
|
414
|
-
/** The key used to navigate to the previous item in the list. */
|
|
415
|
-
prevKey = computed(() => {
|
|
416
|
-
if (this.inputs.orientation() === 'vertical') {
|
|
417
|
-
return 'ArrowUp';
|
|
418
|
-
}
|
|
419
|
-
return this.inputs.textDirection() === 'rtl' ? 'ArrowRight' : 'ArrowLeft';
|
|
420
|
-
});
|
|
421
|
-
/** The key used to navigate to the next item in the list. */
|
|
422
|
-
nextKey = computed(() => {
|
|
423
|
-
if (this.inputs.orientation() === 'vertical') {
|
|
424
|
-
return 'ArrowDown';
|
|
425
|
-
}
|
|
426
|
-
return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';
|
|
427
|
-
});
|
|
428
|
-
/** The regexp used to decide if a key should trigger typeahead. */
|
|
429
|
-
typeaheadRegexp = /^.$/; // TODO: Ignore spaces?
|
|
430
|
-
/** The keydown event manager for the listbox. */
|
|
431
|
-
keydown = computed(() => {
|
|
432
|
-
const manager = new KeyboardEventManager();
|
|
433
|
-
if (!this.followFocus()) {
|
|
434
|
-
manager
|
|
435
|
-
.on(this.prevKey, () => this.prev())
|
|
436
|
-
.on(this.nextKey, () => this.next())
|
|
437
|
-
.on('Home', () => this.first())
|
|
438
|
-
.on('End', () => this.last())
|
|
439
|
-
.on(this.typeaheadRegexp, e => this.search(e.key));
|
|
440
|
-
}
|
|
441
|
-
if (this.followFocus()) {
|
|
442
|
-
manager
|
|
443
|
-
.on(this.prevKey, () => this.prev({ selectOne: true }))
|
|
444
|
-
.on(this.nextKey, () => this.next({ selectOne: true }))
|
|
445
|
-
.on('Home', () => this.first({ selectOne: true }))
|
|
446
|
-
.on('End', () => this.last({ selectOne: true }))
|
|
447
|
-
.on(this.typeaheadRegexp, e => this.search(e.key, { selectOne: true }));
|
|
448
|
-
}
|
|
449
|
-
if (this.inputs.multiselectable()) {
|
|
450
|
-
manager
|
|
451
|
-
.on(ModifierKey.Shift, ' ', () => this._updateSelection({ selectFromAnchor: true }))
|
|
452
|
-
.on(ModifierKey.Shift, 'Enter', () => this._updateSelection({ selectFromAnchor: true }))
|
|
453
|
-
.on(ModifierKey.Shift, this.prevKey, () => this.prev({ toggle: true }))
|
|
454
|
-
.on(ModifierKey.Shift, this.nextKey, () => this.next({ toggle: true }))
|
|
455
|
-
.on(ModifierKey.Ctrl | ModifierKey.Shift, 'Home', () => this.first({ selectFromActive: true }))
|
|
456
|
-
.on(ModifierKey.Ctrl | ModifierKey.Shift, 'End', () => this.last({ selectFromActive: true }))
|
|
457
|
-
.on(ModifierKey.Ctrl, 'A', () => this._updateSelection({ selectAll: true }));
|
|
458
|
-
}
|
|
459
|
-
if (!this.followFocus() && this.inputs.multiselectable()) {
|
|
460
|
-
manager.on(' ', () => this._updateSelection({ toggle: true }));
|
|
461
|
-
manager.on('Enter', () => this._updateSelection({ toggle: true }));
|
|
462
|
-
}
|
|
463
|
-
if (!this.followFocus() && !this.inputs.multiselectable()) {
|
|
464
|
-
manager.on(' ', () => this._updateSelection({ toggleOne: true }));
|
|
465
|
-
manager.on('Enter', () => this._updateSelection({ toggleOne: true }));
|
|
466
|
-
}
|
|
467
|
-
if (this.inputs.multiselectable() && this.followFocus()) {
|
|
468
|
-
manager
|
|
469
|
-
.on(ModifierKey.Ctrl, this.prevKey, () => this.prev())
|
|
470
|
-
.on(ModifierKey.Ctrl, this.nextKey, () => this.next())
|
|
471
|
-
.on(ModifierKey.Ctrl, 'Home', () => this.first()) // TODO: Not in spec but prob should be.
|
|
472
|
-
.on(ModifierKey.Ctrl, 'End', () => this.last()); // TODO: Not in spec but prob should be.
|
|
473
|
-
}
|
|
474
|
-
return manager;
|
|
475
|
-
});
|
|
476
|
-
/** The pointerdown event manager for the listbox. */
|
|
477
|
-
pointerdown = computed(() => {
|
|
478
|
-
const manager = new PointerEventManager();
|
|
479
|
-
if (this.inputs.multiselectable()) {
|
|
480
|
-
manager
|
|
481
|
-
.on(e => this.goto(e, { toggle: true }))
|
|
482
|
-
.on(ModifierKey.Shift, e => this.goto(e, { selectFromActive: true }));
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
manager.on(e => this.goto(e, { toggleOne: true }));
|
|
486
|
-
}
|
|
487
|
-
return manager;
|
|
488
|
-
});
|
|
489
|
-
constructor(inputs) {
|
|
490
|
-
this.inputs = inputs;
|
|
491
|
-
this.disabled = inputs.disabled;
|
|
492
|
-
this.orientation = inputs.orientation;
|
|
493
|
-
this.multiselectable = inputs.multiselectable;
|
|
494
|
-
this.navigation = new ListNavigation(inputs);
|
|
495
|
-
this.selection = new ListSelection({ ...inputs, navigation: this.navigation });
|
|
496
|
-
this.typeahead = new ListTypeahead({ ...inputs, navigation: this.navigation });
|
|
497
|
-
this.focusManager = new ListFocus({ ...inputs, navigation: this.navigation });
|
|
498
|
-
}
|
|
499
|
-
/** Handles keydown events for the listbox. */
|
|
500
|
-
onKeydown(event) {
|
|
501
|
-
if (!this.disabled()) {
|
|
502
|
-
this.keydown().handle(event);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
onPointerdown(event) {
|
|
506
|
-
if (!this.disabled()) {
|
|
507
|
-
this.pointerdown().handle(event);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
/** Navigates to the first option in the listbox. */
|
|
511
|
-
first(opts) {
|
|
512
|
-
this.navigation.first();
|
|
513
|
-
this.focusManager.focus();
|
|
514
|
-
this._updateSelection(opts);
|
|
515
|
-
}
|
|
516
|
-
/** Navigates to the last option in the listbox. */
|
|
517
|
-
last(opts) {
|
|
518
|
-
this.navigation.last();
|
|
519
|
-
this.focusManager.focus();
|
|
520
|
-
this._updateSelection(opts);
|
|
521
|
-
}
|
|
522
|
-
/** Navigates to the next option in the listbox. */
|
|
523
|
-
next(opts) {
|
|
524
|
-
this.navigation.next();
|
|
525
|
-
this.focusManager.focus();
|
|
526
|
-
this._updateSelection(opts);
|
|
527
|
-
}
|
|
528
|
-
/** Navigates to the previous option in the listbox. */
|
|
529
|
-
prev(opts) {
|
|
530
|
-
this.navigation.prev();
|
|
531
|
-
this.focusManager.focus();
|
|
532
|
-
this._updateSelection(opts);
|
|
533
|
-
}
|
|
534
|
-
/** Navigates to the given item in the listbox. */
|
|
535
|
-
goto(event, opts) {
|
|
536
|
-
const item = this._getItem(event);
|
|
537
|
-
if (item) {
|
|
538
|
-
this.navigation.goto(item);
|
|
539
|
-
this.focusManager.focus();
|
|
540
|
-
this._updateSelection(opts);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
/** Handles typeahead search navigation for the listbox. */
|
|
544
|
-
search(char, opts) {
|
|
545
|
-
this.typeahead.search(char);
|
|
546
|
-
this.focusManager.focus();
|
|
547
|
-
this._updateSelection(opts);
|
|
548
|
-
}
|
|
549
|
-
/** Handles updating selection for the listbox. */
|
|
550
|
-
_updateSelection(opts) {
|
|
551
|
-
if (opts?.select) {
|
|
552
|
-
this.selection.select();
|
|
553
|
-
}
|
|
554
|
-
if (opts?.toggle) {
|
|
555
|
-
this.selection.toggle();
|
|
556
|
-
}
|
|
557
|
-
if (opts?.toggleOne) {
|
|
558
|
-
this.selection.toggleOne();
|
|
559
|
-
}
|
|
560
|
-
if (opts?.selectOne) {
|
|
561
|
-
this.selection.selectOne();
|
|
562
|
-
}
|
|
563
|
-
if (opts?.selectAll) {
|
|
564
|
-
this.selection.selectAll();
|
|
565
|
-
}
|
|
566
|
-
if (opts?.selectFromAnchor) {
|
|
567
|
-
this.selection.selectFromPrevSelectedItem();
|
|
568
|
-
}
|
|
569
|
-
if (opts?.selectFromActive) {
|
|
570
|
-
this.selection.selectFromActive();
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
_getItem(e) {
|
|
574
|
-
if (!(e.target instanceof HTMLElement)) {
|
|
575
|
-
return;
|
|
576
|
-
}
|
|
577
|
-
const element = e.target.closest('[role="option"]'); // TODO: Use a different identifier.
|
|
578
|
-
return this.inputs.items().find(i => i.element() === element);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/** Represents an option in a listbox. */
|
|
583
|
-
class OptionPattern {
|
|
584
|
-
/** A unique identifier for the option. */
|
|
585
|
-
id;
|
|
586
|
-
/** The value of the option. */
|
|
587
|
-
value;
|
|
588
|
-
/** The position of the option in the list. */
|
|
589
|
-
index = computed(() => this.listbox()
|
|
590
|
-
?.navigation.inputs.items()
|
|
591
|
-
.findIndex(i => i.id() === this.id()) ?? -1);
|
|
592
|
-
/** Whether the option is selected. */
|
|
593
|
-
selected = computed(() => this.listbox()?.selection.inputs.value().includes(this.value()));
|
|
594
|
-
/** Whether the option is disabled. */
|
|
595
|
-
disabled;
|
|
596
|
-
/** The text used by the typeahead search. */
|
|
597
|
-
searchTerm;
|
|
598
|
-
/** A reference to the parent listbox. */
|
|
599
|
-
listbox;
|
|
600
|
-
/** The tabindex of the option. */
|
|
601
|
-
tabindex = computed(() => this.listbox()?.focusManager.getItemTabindex(this));
|
|
602
|
-
/** The html element that should receive focus. */
|
|
603
|
-
element;
|
|
604
|
-
constructor(args) {
|
|
605
|
-
this.id = args.id;
|
|
606
|
-
this.value = args.value;
|
|
607
|
-
this.listbox = args.listbox;
|
|
608
|
-
this.element = args.element;
|
|
609
|
-
this.disabled = args.disabled;
|
|
610
|
-
this.searchTerm = args.searchTerm;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
export { ListboxPattern as L, OptionPattern as O };
|
|
615
|
-
//# sourceMappingURL=option-a8c77cfa.mjs.map
|
|
357
|
+
export { KeyboardEventManager, ListFocus, ListNavigation, ListSelection, ModifierKey, PointerEventManager };
|
|
358
|
+
//# sourceMappingURL=list-focus-DtTH4bDx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-focus-DtTH4bDx.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/behaviors/event-manager/event-manager.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/behaviors/event-manager/keyboard-event-manager.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/behaviors/event-manager/pointer-event-manager.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/behaviors/list-selection/list-selection.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/behaviors/list-navigation/list-navigation.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/behaviors/list-focus/list-focus.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\n/**\n * An event that supports modifier keys.\n *\n * Matches the native KeyboardEvent, MouseEvent, and TouchEvent.\n */\nexport interface EventWithModifiers extends Event {\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\n/**\n * Options that are applicable to all event handlers.\n *\n * This library has not yet had a need for stopPropagationImmediate.\n */\nexport interface EventHandlerOptions {\n stopPropagation: boolean;\n preventDefault: boolean;\n}\n\n/** A basic event handler. */\nexport type EventHandler<T extends Event> = (event: T) => void;\n\n/** A function that determines whether an event is to be handled. */\nexport type EventMatcher<T extends Event> = (event: T) => boolean;\n\n/** A config that specifies how to handle a particular event. */\nexport interface EventHandlerConfig<T extends Event> extends EventHandlerOptions {\n matcher: EventMatcher<T>;\n handler: EventHandler<T>;\n}\n\n/** Bit flag representation of the possible modifier keys that can be present on an event. */\nexport enum ModifierKey {\n None = 0,\n Ctrl = 0b1,\n Shift = 0b10,\n Alt = 0b100,\n Meta = 0b1000,\n}\n\nexport type ModifierInputs = ModifierKey | ModifierKey[];\n\n/**\n * Abstract base class for all event managers.\n *\n * Event managers are designed to normalize how event handlers are authored and create a safety net\n * for common event handling gotchas like remembering to call preventDefault or stopPropagation.\n */\nexport abstract class EventManager<T extends Event> {\n protected configs: EventHandlerConfig<T>[] = [];\n abstract options: EventHandlerOptions;\n\n /** Runs the handlers that match with the given event. */\n handle(event: T): void {\n for (const config of this.configs) {\n if (config.matcher(event)) {\n config.handler(event);\n\n if (config.preventDefault) {\n event.preventDefault();\n }\n\n if (config.stopPropagation) {\n event.stopPropagation();\n }\n }\n }\n }\n\n /** Configures the event manager to handle specific events. (See subclasses for more). */\n abstract on(...args: [...unknown[]]): this;\n}\n\n/** Gets bit flag representation of the modifier keys present on the given event. */\nexport function getModifiers(event: EventWithModifiers): number {\n return (\n (+event.ctrlKey && ModifierKey.Ctrl) |\n (+event.shiftKey && ModifierKey.Shift) |\n (+event.altKey && ModifierKey.Alt) |\n (+event.metaKey && ModifierKey.Meta)\n );\n}\n\n/**\n * Checks if the given event has modifiers that are an exact match for any of the given modifier\n * flag combinations.\n */\nexport function hasModifiers(event: EventWithModifiers, modifiers: ModifierInputs): boolean {\n const eventModifiers = getModifiers(event);\n const modifiersList = Array.isArray(modifiers) ? modifiers : [modifiers];\n return modifiersList.some(modifiers => eventModifiers === modifiers);\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 {SignalLike} from '../signal-like/signal-like';\nimport {\n EventHandler,\n EventHandlerOptions,\n EventManager,\n hasModifiers,\n ModifierInputs,\n ModifierKey,\n} from './event-manager';\n\n/**\n * Used to represent a keycode.\n *\n * This is used to match whether an events keycode should be handled. The ability to match using a\n * string, SignalLike, or Regexp gives us more flexibility when authoring event handlers.\n */\ntype KeyCode = string | SignalLike<string> | RegExp;\n\n/**\n * An event manager that is specialized for handling keyboard events. By default this manager stops\n * propagation and prevents default on all events it handles.\n */\nexport class KeyboardEventManager<T extends KeyboardEvent> extends EventManager<T> {\n options: EventHandlerOptions = {\n preventDefault: true,\n stopPropagation: true,\n };\n\n /** Configures this event manager to handle events with a specific key and no modifiers. */\n on(key: KeyCode, handler: EventHandler<T>): this;\n\n /** Configures this event manager to handle events with a specific modifer and key combination. */\n on(modifiers: ModifierInputs, key: KeyCode, handler: EventHandler<T>): this;\n\n on(...args: any[]) {\n const {modifiers, key, handler} = this._normalizeInputs(...args);\n\n this.configs.push({\n handler: handler,\n matcher: event => this._isMatch(event, key, modifiers),\n ...this.options,\n });\n\n return this;\n }\n\n private _normalizeInputs(...args: any[]) {\n const key = args.length === 3 ? args[1] : args[0];\n const handler = args.length === 3 ? args[2] : args[1];\n const modifiers = args.length === 3 ? args[0] : ModifierKey.None;\n\n return {\n key: key as KeyCode,\n handler: handler as EventHandler<T>,\n modifiers: modifiers as ModifierInputs,\n };\n }\n\n private _isMatch(event: T, key: KeyCode, modifiers: ModifierInputs) {\n if (!hasModifiers(event, modifiers)) {\n return false;\n }\n\n if (key instanceof RegExp) {\n return key.test(event.key);\n }\n\n const keyStr = typeof key === 'string' ? key : key();\n return keyStr.toLowerCase() === event.key.toLowerCase();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n EventHandler,\n EventHandlerOptions,\n EventManager,\n hasModifiers,\n ModifierInputs,\n ModifierKey,\n} from './event-manager';\n\n/**\n * The different mouse buttons that may appear on a pointer event.\n */\nexport enum MouseButton {\n Main = 0,\n Auxiliary = 1,\n Secondary = 2,\n}\n\n/** An event manager that is specialized for handling pointer events. */\nexport class PointerEventManager<T extends PointerEvent> extends EventManager<T> {\n options: EventHandlerOptions = {\n preventDefault: false,\n stopPropagation: false,\n };\n\n /**\n * Configures this event manager to handle events with a specific modifer and mouse button\n * combination.\n */\n on(button: MouseButton, modifiers: ModifierInputs, handler: EventHandler<T>): this;\n\n /**\n * Configures this event manager to handle events with a specific mouse button and no modifiers.\n */\n on(modifiers: ModifierInputs, handler: EventHandler<T>): this;\n\n /**\n * Configures this event manager to handle events with the main mouse button and no modifiers.\n *\n * @param handler The handler function\n * @param options Options for whether to stop propagation or prevent default.\n */\n on(handler: EventHandler<T>): this;\n\n on(...args: any[]) {\n const {button, handler, modifiers} = this._normalizeInputs(...args);\n\n this.configs.push({\n handler,\n matcher: event => this._isMatch(event, button, modifiers),\n ...this.options,\n });\n return this;\n }\n\n private _normalizeInputs(...args: any[]) {\n if (args.length === 3) {\n return {\n button: args[0] as MouseButton,\n modifiers: args[1] as ModifierInputs,\n handler: args[2] as EventHandler<T>,\n };\n }\n\n if (typeof args[0] === 'number' && typeof args[1] === 'function') {\n return {\n button: MouseButton.Main,\n modifiers: args[0] as ModifierInputs,\n handler: args[1] as EventHandler<T>,\n };\n }\n\n return {\n button: MouseButton.Main,\n modifiers: ModifierKey.None,\n handler: args[0] as EventHandler<T>,\n };\n }\n\n _isMatch(event: PointerEvent, button: MouseButton, modifiers: ModifierInputs) {\n return button === (event.button ?? 0) && hasModifiers(event, modifiers);\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 {signal} from '@angular/core';\nimport {SignalLike, WritableSignalLike} from '../signal-like/signal-like';\nimport {ListNavigation, ListNavigationItem} from '../list-navigation/list-navigation';\n\n/** Represents an item in a collection, such as a listbox option, than can be selected. */\nexport interface ListSelectionItem<V> extends ListNavigationItem {\n /** The value of the item. */\n value: SignalLike<V>;\n\n /** Whether an item is disabled. */\n disabled: SignalLike<boolean>;\n}\n\n/** Represents the required inputs for a collection that contains selectable items. */\nexport interface ListSelectionInputs<T extends ListSelectionItem<V>, V> {\n /** The items in the list. */\n items: SignalLike<T[]>;\n\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 value: 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 value of the most recently selected item. */\n previousValue = signal<V | undefined>(undefined);\n\n /** The navigation controller of the parent list. */\n navigation: ListNavigation<T>;\n\n constructor(readonly inputs: ListSelectionInputs<T, V> & {navigation: ListNavigation<T>}) {\n this.navigation = inputs.navigation;\n }\n\n /** Selects the item at the current active index. */\n select(item?: T) {\n item = item ?? this.inputs.items()[this.inputs.navigation.inputs.activeIndex()];\n\n if (item.disabled() || this.inputs.value().includes(item.value())) {\n return;\n }\n\n if (!this.inputs.multi()) {\n this.deselectAll();\n }\n\n // TODO: Need to discuss when to drop this.\n this._anchor();\n this.inputs.value.update(values => values.concat(item.value()));\n }\n\n /** Deselects the item at the current active index. */\n deselect(item?: T) {\n item = item ?? this.inputs.items()[this.inputs.navigation.inputs.activeIndex()];\n\n if (!item.disabled()) {\n this.inputs.value.update(values => values.filter(value => value !== item.value()));\n }\n }\n\n /** Toggles the item at the current active index. */\n toggle() {\n const item = this.inputs.items()[this.inputs.navigation.inputs.activeIndex()];\n this.inputs.value().includes(item.value()) ? this.deselect() : this.select();\n }\n\n /** Toggles only the item at the current active index. */\n toggleOne() {\n const item = this.inputs.items()[this.inputs.navigation.inputs.activeIndex()];\n this.inputs.value().includes(item.value()) ? this.deselect() : this.selectOne();\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);\n }\n\n this._anchor();\n }\n\n /** Deselects all items in the list. */\n deselectAll() {\n for (const item of this.inputs.items()) {\n this.deselect(item);\n }\n }\n\n /** Selects the items in the list starting at the last selected item. */\n selectFromPrevSelectedItem() {\n const previousValue = this.inputs.items().findIndex(i => this.previousValue() === i.value());\n this._selectFromIndex(previousValue);\n }\n\n /** Selects the items in the list starting at the last active item. */\n selectFromActive() {\n this._selectFromIndex(this.inputs.navigation.prevActiveIndex());\n }\n\n /** Sets the selection to only the current active item. */\n selectOne() {\n this.deselectAll();\n this.select();\n }\n\n /** Toggles the items in the list starting at the last selected item. */\n toggleFromPrevSelectedItem() {\n const prevIndex = this.inputs.items().findIndex(i => this.previousValue() === i.value());\n const currIndex = this.inputs.navigation.inputs.activeIndex();\n const currValue = this.inputs.items()[currIndex].value();\n const items = this._getItemsFromIndex(prevIndex);\n\n const operation = this.inputs.value().includes(currValue)\n ? this.deselect.bind(this)\n : this.select.bind(this);\n\n for (const item of items) {\n operation(item);\n }\n }\n\n /** Sets the anchor to the current active index. */\n private _anchor() {\n const item = this.inputs.items()[this.inputs.navigation.inputs.activeIndex()];\n this.previousValue.set(item.value());\n }\n\n /** Selects the items in the list starting at the given index. */\n private _selectFromIndex(index: number) {\n const items = this._getItemsFromIndex(index);\n\n for (const item of items) {\n this.select(item);\n }\n }\n\n /** Returns all items from the given index to the current active index. */\n private _getItemsFromIndex(index: number) {\n if (index === -1) {\n return [];\n }\n\n const upper = Math.max(this.inputs.navigation.inputs.activeIndex(), index);\n const lower = Math.min(this.inputs.navigation.inputs.activeIndex(), index);\n\n const items = [];\n for (let i = lower; i <= upper; i++) {\n items.push(this.inputs.items()[i]);\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 {signal} from '@angular/core';\nimport {SignalLike, WritableSignalLike} from '../signal-like/signal-like';\n\n/** Represents an item in a collection, such as a listbox option, than can be navigated to. */\nexport interface ListNavigationItem {\n /** Whether an item is disabled. */\n disabled: SignalLike<boolean>;\n}\n\n/** Represents the required inputs for a collection that has navigable items. */\nexport interface ListNavigationInputs<T extends ListNavigationItem> {\n /** Whether focus should wrap when navigating. */\n wrap: SignalLike<boolean>;\n\n /** The items in the list. */\n items: SignalLike<T[]>;\n\n /** Whether disabled items in the list should be skipped when navigating. */\n skipDisabled: SignalLike<boolean>;\n\n /** The current index that has been navigated to. */\n activeIndex: WritableSignalLike<number>;\n\n /** Whether the list is vertically or horizontally oriented. */\n orientation: SignalLike<'vertical' | 'horizontal'>;\n\n /** The direction that text is read based on the users locale. */\n textDirection: SignalLike<'rtl' | 'ltr'>;\n}\n\n/** Controls navigation for a list of items. */\nexport class ListNavigation<T extends ListNavigationItem> {\n /** The last index that was active. */\n prevActiveIndex = signal(0);\n\n constructor(readonly inputs: ListNavigationInputs<T>) {}\n\n /** Navigates to the given item. */\n goto(item: T) {\n if (this.isFocusable(item)) {\n this.prevActiveIndex.set(this.inputs.activeIndex());\n const index = this.inputs.items().indexOf(item);\n this.inputs.activeIndex.set(index);\n }\n }\n\n /** Navigates to the next item in the list. */\n next() {\n this._advance(1);\n }\n\n /** Navigates to the previous item in the list. */\n prev() {\n this._advance(-1);\n }\n\n /** Navigates to the first item in the list. */\n first() {\n const item = this.inputs.items().find(i => this.isFocusable(i));\n\n if (item) {\n this.goto(item);\n }\n }\n\n /** Navigates to the last item in the list. */\n last() {\n const items = this.inputs.items();\n for (let i = items.length - 1; i >= 0; i--) {\n if (this.isFocusable(items[i])) {\n this.goto(items[i]);\n return;\n }\n }\n }\n\n /** Returns true if the given item can be navigated to. */\n isFocusable(item: T): boolean {\n return !item.disabled() || !this.inputs.skipDisabled();\n }\n\n /** Advances to the next or previous focusable item in the list based on the given delta. */\n private _advance(delta: 1 | -1) {\n const items = this.inputs.items();\n const itemCount = items.length;\n const startIndex = this.inputs.activeIndex();\n const step = (i: number) =>\n this.inputs.wrap() ? (i + delta + itemCount) % itemCount : i + delta;\n\n // If wrapping is enabled, this loop ultimately terminates when `i` gets back to `startIndex`\n // in the case that all options are disabled. If wrapping is disabled, the loop terminates\n // when the index goes out of bounds.\n for (let i = step(startIndex); i !== startIndex && i < itemCount && i >= 0; i = step(i)) {\n if (this.isFocusable(items[i])) {\n this.goto(items[i]);\n return;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {SignalLike} from '../signal-like/signal-like';\nimport {ListNavigation, ListNavigationItem} from '../list-navigation/list-navigation';\n\n/** Represents an item in a collection, such as a listbox option, than may receive focus. */\nexport interface ListFocusItem extends ListNavigationItem {\n /** A unique identifier for the item. */\n id: SignalLike<string>;\n\n /** The html element that should receive focus. */\n element: SignalLike<HTMLElement>;\n}\n\n/** Represents the required inputs for a collection that contains focusable items. */\nexport interface ListFocusInputs<T extends ListFocusItem> {\n /** The focus strategy used by the list. */\n focusMode: SignalLike<'roving' | 'activedescendant'>;\n}\n\n/** Controls focus for a list of items. */\nexport class ListFocus<T extends ListFocusItem> {\n /** The navigation controller of the parent list. */\n navigation: ListNavigation<ListFocusItem>;\n\n constructor(readonly inputs: ListFocusInputs<T> & {navigation: ListNavigation<T>}) {\n this.navigation = inputs.navigation;\n }\n\n /** The id of the current active item. */\n getActiveDescendant(): string | undefined {\n if (this.inputs.focusMode() === 'roving') {\n return undefined;\n }\n if (this.navigation.inputs.items().length) {\n return this.navigation.inputs.items()[this.navigation.inputs.activeIndex()].id();\n }\n return undefined;\n }\n\n /** The tabindex for the list. */\n getListTabindex(): -1 | 0 {\n return this.inputs.focusMode() === 'activedescendant' ? 0 : -1;\n }\n\n /** Returns the tabindex for the given item. */\n getItemTabindex(item: T): -1 | 0 {\n if (this.inputs.focusMode() === 'activedescendant') {\n return -1;\n }\n const index = this.navigation.inputs.items().indexOf(item);\n return this.navigation.inputs.activeIndex() === index ? 0 : -1;\n }\n\n /** Focuses the current active item. */\n focus() {\n if (this.inputs.focusMode() === 'activedescendant') {\n return;\n }\n\n const item = this.navigation.inputs.items()[this.navigation.inputs.activeIndex()];\n item.element().focus();\n }\n}\n"],"names":[],"mappings":";;AA0CA;IACY;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,WAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAQ;AACR,IAAA,WAAA,CAAA,WAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAU;AACV,IAAA,WAAA,CAAA,WAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAY;AACZ,IAAA,WAAA,CAAA,WAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAW;AACX,IAAA,WAAA,CAAA,WAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAa;AACf,CAAC,EANW,WAAW,KAAX,WAAW,GAMtB,EAAA,CAAA,CAAA;AAID;;;;;AAKG;MACmB,YAAY,CAAA;IACtB,OAAO,GAA4B,EAAE;;AAI/C,IAAA,MAAM,CAAC,KAAQ,EAAA;AACb,QAAA,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE;AACjC,YAAA,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;AAErB,gBAAA,IAAI,MAAM,CAAC,cAAc,EAAE;oBACzB,KAAK,CAAC,cAAc,EAAE;;AAGxB,gBAAA,IAAI,MAAM,CAAC,eAAe,EAAE;oBAC1B,KAAK,CAAC,eAAe,EAAE;;;;;AAQhC;AAED;AACM,SAAU,YAAY,CAAC,KAAyB,EAAA;IACpD,QACE,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,I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,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,GAAG,CAAC,GAAG,EAAE;;;IAIhE,KAAK,GAAA;QACH,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,kBAAkB,EAAE;YAClD;;QAGF,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;AACjF,QAAA,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE;;AAEzB;;;;"}
|
package/fesm2022/listbox.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, contentChildren, computed, input, booleanAttribute, model,
|
|
2
|
+
import { inject, contentChildren, computed, input, booleanAttribute, model, ElementRef, Directive } from '@angular/core';
|
|
3
3
|
import { Directionality } from '@angular/cdk/bidi';
|
|
4
4
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
5
5
|
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
6
|
-
import {
|
|
6
|
+
import { ListboxPattern, OptionPattern } from './option-Bgpacz3g.mjs';
|
|
7
|
+
import './list-focus-DtTH4bDx.mjs';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* A listbox container.
|
|
@@ -33,7 +34,7 @@ class CdkListbox {
|
|
|
33
34
|
/** Whether the list is vertically or horizontally oriented. */
|
|
34
35
|
orientation = input('vertical');
|
|
35
36
|
/** Whether multiple items in the list can be selected at once. */
|
|
36
|
-
|
|
37
|
+
multi = input(false, { transform: booleanAttribute });
|
|
37
38
|
/** Whether focus should wrap when navigating. */
|
|
38
39
|
wrap = input(true, { transform: booleanAttribute });
|
|
39
40
|
/** Whether disabled items in the list should be skipped when navigating. */
|
|
@@ -46,6 +47,8 @@ class CdkListbox {
|
|
|
46
47
|
typeaheadDelay = input(0.5); // Picked arbitrarily.
|
|
47
48
|
/** Whether the listbox is disabled. */
|
|
48
49
|
disabled = input(false, { transform: booleanAttribute });
|
|
50
|
+
/** Whether the listbox is readonly. */
|
|
51
|
+
readonly = input(false, { transform: booleanAttribute });
|
|
49
52
|
/** The values of the current selected items. */
|
|
50
53
|
value = model([]);
|
|
51
54
|
/** The current index that has been navigated to. */
|
|
@@ -56,10 +59,10 @@ class CdkListbox {
|
|
|
56
59
|
items: this.items,
|
|
57
60
|
textDirection: this.textDirection,
|
|
58
61
|
});
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
60
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.0-next.
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkListbox, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
63
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.0.0-next.5", type: CdkListbox, isStandalone: true, selector: "[cdkListbox]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, skipDisabled: { classPropertyName: "skipDisabled", publicName: "skipDisabled", isSignal: true, isRequired: false, transformFunction: null }, focusMode: { classPropertyName: "focusMode", publicName: "focusMode", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, typeaheadDelay: { classPropertyName: "typeaheadDelay", publicName: "typeaheadDelay", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", activeIndex: "activeIndexChange" }, host: { attributes: { "role": "listbox" }, listeners: { "keydown": "pattern.onKeydown($event)", "pointerdown": "pattern.onPointerdown($event)" }, properties: { "attr.tabindex": "pattern.tabindex()", "attr.aria-readonly": "pattern.readonly()", "attr.aria-disabled": "pattern.disabled()", "attr.aria-orientation": "pattern.orientation()", "attr.aria-multiselectable": "pattern.multi()", "attr.aria-activedescendant": "pattern.activedescendant()" }, classAttribute: "cdk-listbox" }, queries: [{ propertyName: "_cdkOptions", predicate: CdkOption, descendants: true, isSignal: true }], exportAs: ["cdkListbox"], ngImport: i0 });
|
|
61
64
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkListbox, decorators: [{
|
|
63
66
|
type: Directive,
|
|
64
67
|
args: [{
|
|
65
68
|
selector: '[cdkListbox]',
|
|
@@ -68,9 +71,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4",
|
|
|
68
71
|
'role': 'listbox',
|
|
69
72
|
'class': 'cdk-listbox',
|
|
70
73
|
'[attr.tabindex]': 'pattern.tabindex()',
|
|
74
|
+
'[attr.aria-readonly]': 'pattern.readonly()',
|
|
71
75
|
'[attr.aria-disabled]': 'pattern.disabled()',
|
|
72
76
|
'[attr.aria-orientation]': 'pattern.orientation()',
|
|
73
|
-
'[attr.aria-multiselectable]': 'pattern.
|
|
77
|
+
'[attr.aria-multiselectable]': 'pattern.multi()',
|
|
74
78
|
'[attr.aria-activedescendant]': 'pattern.activedescendant()',
|
|
75
79
|
'(keydown)': 'pattern.onKeydown($event)',
|
|
76
80
|
'(pointerdown)': 'pattern.onPointerdown($event)',
|
|
@@ -110,10 +114,10 @@ class CdkOption {
|
|
|
110
114
|
element: this.element,
|
|
111
115
|
searchTerm: this.searchTerm,
|
|
112
116
|
});
|
|
113
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
114
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0-next.
|
|
117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkOption, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
118
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0-next.5", type: CdkOption, isStandalone: true, selector: "[cdkOption]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "option" }, properties: { "attr.tabindex": "pattern.tabindex()", "attr.aria-selected": "pattern.selected()", "attr.aria-disabled": "pattern.disabled()" }, classAttribute: "cdk-option" }, exportAs: ["cdkOption"], ngImport: i0 });
|
|
115
119
|
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkOption, decorators: [{
|
|
117
121
|
type: Directive,
|
|
118
122
|
args: [{
|
|
119
123
|
selector: '[cdkOption]',
|
package/fesm2022/listbox.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listbox.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"listbox.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/listbox/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 {\n booleanAttribute,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n} from '@angular/core';\nimport {ListboxPattern, OptionPattern} from '../ui-patterns';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {_IdGenerator} from '@angular/cdk/a11y';\n\n/**\n * A listbox container.\n *\n * Listboxes are used to display a list of items for a user to select from. The CdkListbox is meant\n * to be used in conjunction with CdkOption as follows:\n *\n * ```html\n * <ul cdkListbox>\n * <li cdkOption>Item 1</li>\n * <li cdkOption>Item 2</li>\n * <li cdkOption>Item 3</li>\n * </ul>\n * ```\n */\n@Directive({\n selector: '[cdkListbox]',\n exportAs: 'cdkListbox',\n host: {\n 'role': 'listbox',\n 'class': 'cdk-listbox',\n '[attr.tabindex]': 'pattern.tabindex()',\n '[attr.aria-readonly]': 'pattern.readonly()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n '[attr.aria-orientation]': 'pattern.orientation()',\n '[attr.aria-multiselectable]': 'pattern.multi()',\n '[attr.aria-activedescendant]': 'pattern.activedescendant()',\n '(keydown)': 'pattern.onKeydown($event)',\n '(pointerdown)': 'pattern.onPointerdown($event)',\n },\n})\nexport class CdkListbox<V> {\n /** The directionality (LTR / RTL) context for the application (or a subtree of it). */\n private readonly _directionality = inject(Directionality);\n\n /** The CdkOptions nested inside of the CdkListbox. */\n private readonly _cdkOptions = contentChildren(CdkOption, {descendants: true});\n\n /** A signal wrapper for directionality. */\n protected textDirection = toSignal(this._directionality.change, {\n initialValue: this._directionality.value,\n });\n\n /** The Option UIPatterns of the child CdkOptions. */\n protected items = computed(() => this._cdkOptions().map(option => option.pattern));\n\n /** Whether the list is vertically or horizontally oriented. */\n orientation = input<'vertical' | 'horizontal'>('vertical');\n\n /** Whether multiple items in the list can be selected at once. */\n multi = input(false, {transform: booleanAttribute});\n\n /** Whether focus should wrap when navigating. */\n wrap = input(true, {transform: booleanAttribute});\n\n /** Whether disabled items in the list should be skipped when navigating. */\n skipDisabled = input(true, {transform: booleanAttribute});\n\n /** The focus strategy used by the list. */\n focusMode = input<'roving' | 'activedescendant'>('roving');\n\n /** The selection strategy used by the list. */\n selectionMode = input<'follow' | 'explicit'>('follow');\n\n /** The amount of time before the typeahead search is reset. */\n typeaheadDelay = input<number>(0.5); // Picked arbitrarily.\n\n /** Whether the listbox is disabled. */\n disabled = input(false, {transform: booleanAttribute});\n\n /** Whether the listbox is readonly. */\n readonly = input(false, {transform: booleanAttribute});\n\n /** The values of the current selected items. */\n value = model<V[]>([]);\n\n /** The current index that has been navigated to. */\n activeIndex = model<number>(0);\n\n /** The Listbox UIPattern. */\n pattern: ListboxPattern<V> = new ListboxPattern<V>({\n ...this,\n items: this.items,\n textDirection: this.textDirection,\n });\n}\n\n/** A selectable option in a CdkListbox. */\n@Directive({\n selector: '[cdkOption]',\n exportAs: 'cdkOption',\n host: {\n 'role': 'option',\n 'class': 'cdk-option',\n '[attr.tabindex]': 'pattern.tabindex()',\n '[attr.aria-selected]': 'pattern.selected()',\n '[attr.aria-disabled]': 'pattern.disabled()',\n },\n})\nexport class CdkOption<V> {\n /** A reference to the option element. */\n private readonly _elementRef = inject(ElementRef);\n\n /** The parent CdkListbox. */\n private readonly _cdkListbox = inject(CdkListbox);\n\n /** A unique identifier for the option. */\n private readonly _generatedId = inject(_IdGenerator).getId('cdk-option-');\n\n // TODO(wagnermaciel): https://github.com/angular/components/pull/30495#discussion_r1972601144.\n /** A unique identifier for the option. */\n protected id = computed(() => this._generatedId);\n\n protected value = input.required<V>();\n\n // TODO(wagnermaciel): See if we want to change how we handle this since textContent is not\n // reactive. See https://github.com/angular/components/pull/30495#discussion_r1961260216.\n /** The text used by the typeahead search. */\n protected searchTerm = computed(() => this.label() ?? this.element().textContent);\n\n /** The parent Listbox UIPattern. */\n protected listbox = computed(() => this._cdkListbox.pattern);\n\n /** A reference to the option element to be focused on navigation. */\n protected element = computed(() => this._elementRef.nativeElement);\n\n /** Whether an item is disabled. */\n disabled = input(false, {transform: booleanAttribute});\n\n /** The text used by the typeahead search. */\n label = input<string>();\n\n /** The Option UIPattern. */\n pattern = new OptionPattern<V>({\n ...this,\n id: this.id,\n value: this.value,\n listbox: this.listbox,\n element: this.element,\n searchTerm: this.searchTerm,\n });\n}\n"],"names":[],"mappings":";;;;;;;;AAuBA;;;;;;;;;;;;;AAaG;MAiBU,UAAU,CAAA;;AAEJ,IAAA,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC;;IAGxC,WAAW,GAAG,eAAe,CAAC,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;;IAGpE,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;AAC9D,QAAA,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK;AACzC,KAAA,CAAC;;IAGQ,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;;AAGlF,IAAA,WAAW,GAAG,KAAK,CAA4B,UAAU,CAAC;;IAG1D,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,EAAC,SAAS,EAAE,gBAAgB,EAAC,CAAC;;IAGnD,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,EAAC,SAAS,EAAE,gBAAgB,EAAC,CAAC;;IAGjD,YAAY,GAAG,KAAK,CAAC,IAAI,EAAE,EAAC,SAAS,EAAE,gBAAgB,EAAC,CAAC;;AAGzD,IAAA,SAAS,GAAG,KAAK,CAAgC,QAAQ,CAAC;;AAG1D,IAAA,aAAa,GAAG,KAAK,CAAwB,QAAQ,CAAC;;AAGtD,IAAA,cAAc,GAA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