@angular/cdk-experimental 20.1.2 → 20.2.0-next.0
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/accordion.mjs +25 -25
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +53 -53
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs +10 -10
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/deferred-content.mjs +8 -8
- package/fesm2022/deferred-content.mjs.map +1 -1
- package/fesm2022/listbox.mjs +26 -26
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs +43 -43
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/radio-group.mjs +20 -20
- package/fesm2022/radio-group.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +7 -7
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection.mjs +19 -19
- 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-YS9XXb7X.mjs → tabs-DvjCdS14.mjs} +36 -1
- package/fesm2022/tabs-DvjCdS14.mjs.map +1 -0
- package/fesm2022/tabs.mjs +38 -37
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/tree.mjs +58 -39
- package/fesm2022/tree.mjs.map +1 -1
- package/fesm2022/ui-patterns.mjs +1 -1
- package/{list-selection.d-BBLdeUeF.d.ts → list-selection.d-zyz_XRbe.d.ts} +2 -2
- package/listbox/index.d.ts +2 -2
- package/{listbox.d-hkdivyCf.d.ts → listbox.d-Ck8-1BdR.d.ts} +1 -1
- package/package.json +3 -3
- package/radio-group/index.d.ts +2 -2
- package/{radio-group.d-CcY7mCC2.d.ts → radio-group.d-B6Ntu9oI.d.ts} +1 -1
- package/tabs/index.d.ts +2 -2
- package/{tabs.d-C4vwhxZL.d.ts → tabs.d-BGC0Izc3.d.ts} +29 -3
- package/tree/index.d.ts +13 -3
- package/ui-patterns/index.d.ts +4 -4
- package/fesm2022/tabs-YS9XXb7X.mjs.map +0 -1
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { S as SignalLike, e as ListNavigationItem, f as ListFocusItem, L as ListNavigationInputs, a as ListFocusInputs, b as ListNavigation, d as ListFocus, K as KeyboardEventManager, P as PointerEventManager } from './list-navigation.d-tcweHm4g.js';
|
|
3
|
+
import { a as ListSelectionItem, b as ListSelectionInputs, L as ListSelection } from './list-selection.d-zyz_XRbe.js';
|
|
4
4
|
import { E as ExpansionItem, b as ExpansionControl, L as ListExpansionInputs, a as ListExpansion } from './expansion.d-BvIuKvYU.js';
|
|
5
5
|
|
|
6
|
+
/** Represents the required inputs for the label control. */
|
|
7
|
+
interface LabelControlInputs {
|
|
8
|
+
/** The default `aria-labelledby` ids. */
|
|
9
|
+
defaultLabelledBy: SignalLike<string[]>;
|
|
10
|
+
}
|
|
11
|
+
/** Represents the optional inputs for the label control. */
|
|
12
|
+
interface LabelControlOptionalInputs {
|
|
13
|
+
/** The `aria-label`. */
|
|
14
|
+
label?: SignalLike<string | undefined>;
|
|
15
|
+
/** The user-provided `aria-labelledby` ids. */
|
|
16
|
+
labelledBy?: SignalLike<string[]>;
|
|
17
|
+
}
|
|
18
|
+
/** Controls label and description of an element. */
|
|
19
|
+
declare class LabelControl {
|
|
20
|
+
readonly inputs: LabelControlInputs & LabelControlOptionalInputs;
|
|
21
|
+
/** The `aria-label`. */
|
|
22
|
+
readonly label: _angular_core.Signal<string | undefined>;
|
|
23
|
+
/** The `aria-labelledby` ids. */
|
|
24
|
+
readonly labelledBy: _angular_core.Signal<string[]>;
|
|
25
|
+
constructor(inputs: LabelControlInputs & LabelControlOptionalInputs);
|
|
26
|
+
}
|
|
27
|
+
|
|
6
28
|
/** The required inputs to tabs. */
|
|
7
29
|
interface TabInputs extends ListNavigationItem, ListSelectionItem<string>, ListFocusItem, Omit<ExpansionItem, 'expansionId' | 'expandable'> {
|
|
8
30
|
/** The parent tablist that controls the tab. */
|
|
@@ -40,7 +62,7 @@ declare class TabPattern {
|
|
|
40
62
|
constructor(inputs: TabInputs);
|
|
41
63
|
}
|
|
42
64
|
/** The required inputs for the tabpanel. */
|
|
43
|
-
interface TabPanelInputs {
|
|
65
|
+
interface TabPanelInputs extends LabelControlOptionalInputs {
|
|
44
66
|
id: SignalLike<string>;
|
|
45
67
|
tab: SignalLike<TabPattern | undefined>;
|
|
46
68
|
value: SignalLike<string>;
|
|
@@ -52,10 +74,14 @@ declare class TabPanelPattern {
|
|
|
52
74
|
readonly id: SignalLike<string>;
|
|
53
75
|
/** A local unique identifier for the tabpanel. */
|
|
54
76
|
readonly value: SignalLike<string>;
|
|
77
|
+
/** Controls label for this tabpanel. */
|
|
78
|
+
readonly labelManager: LabelControl;
|
|
55
79
|
/** Whether the tabpanel is hidden. */
|
|
56
80
|
readonly hidden: _angular_core.Signal<boolean>;
|
|
57
81
|
/** The tabindex of this tabpanel. */
|
|
58
82
|
readonly tabindex: _angular_core.Signal<-1 | 0>;
|
|
83
|
+
/** The aria-labelledby value for this tabpanel. */
|
|
84
|
+
readonly labelledBy: _angular_core.Signal<string | undefined>;
|
|
59
85
|
constructor(inputs: TabPanelInputs);
|
|
60
86
|
}
|
|
61
87
|
/** The selection operations that the tablist can perform. */
|
package/tree/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { OnInit, OnDestroy, Signal } from '@angular/core';
|
|
4
4
|
import { S as SignalLike, d as ListFocus, b as ListNavigation, K as KeyboardEventManager, P as PointerEventManager, f as ListFocusItem, e as ListNavigationItem, a as ListFocusInputs, L as ListNavigationInputs } from '../list-navigation.d-tcweHm4g.js';
|
|
5
|
-
import {
|
|
5
|
+
import { L as ListSelection, a as ListSelectionItem, b as ListSelectionInputs } from '../list-selection.d-zyz_XRbe.js';
|
|
6
6
|
import { L as ListTypeahead, a as ListTypeaheadItem, b as ListTypeaheadInputs } from '../list-typeahead.d-DvIIfjfu.js';
|
|
7
7
|
import { E as ExpansionItem, a as ListExpansion, b as ExpansionControl } from '../expansion.d-BvIuKvYU.js';
|
|
8
8
|
import * as i1 from '@angular/cdk-experimental/deferred-content';
|
|
@@ -48,7 +48,9 @@ declare class TreeItemPattern<V> implements ExpansionItem {
|
|
|
48
48
|
/** The tabindex of the item. */
|
|
49
49
|
readonly tabindex: _angular_core.Signal<0 | -1>;
|
|
50
50
|
/** Whether the item is selected. */
|
|
51
|
-
readonly selected: _angular_core.Signal<boolean>;
|
|
51
|
+
readonly selected: _angular_core.Signal<boolean | undefined>;
|
|
52
|
+
/** The current type of this item. */
|
|
53
|
+
readonly current: _angular_core.Signal<"page" | "step" | "location" | "date" | "time" | "true" | "false" | undefined>;
|
|
52
54
|
constructor(inputs: TreeItemInputs<V>);
|
|
53
55
|
}
|
|
54
56
|
/** The selection operations that the tree can perform. */
|
|
@@ -62,6 +64,10 @@ interface SelectOptions {
|
|
|
62
64
|
interface TreeInputs<V> extends Omit<ListFocusInputs<TreeItemPattern<V>> & ListNavigationInputs<TreeItemPattern<V>> & ListSelectionInputs<TreeItemPattern<V>, V> & ListTypeaheadInputs<TreeItemPattern<V>>, 'items'> {
|
|
63
65
|
/** All items in the tree, in document order (DFS-like, a flattened list). */
|
|
64
66
|
allItems: SignalLike<TreeItemPattern<V>[]>;
|
|
67
|
+
/** Whether the tree is in navigation mode. */
|
|
68
|
+
nav: SignalLike<boolean>;
|
|
69
|
+
/** The aria-current type. */
|
|
70
|
+
currentType: SignalLike<'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'>;
|
|
65
71
|
}
|
|
66
72
|
interface TreePattern<V> extends TreeInputs<V> {
|
|
67
73
|
}
|
|
@@ -207,6 +213,10 @@ declare class CdkTree<V> {
|
|
|
207
213
|
readonly value: _angular_core.ModelSignal<V[]>;
|
|
208
214
|
/** Text direction. */
|
|
209
215
|
readonly textDirection: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
216
|
+
/** Whether the tree is in navigation mode. */
|
|
217
|
+
readonly nav: _angular_core.InputSignal<boolean>;
|
|
218
|
+
/** The aria-current type. */
|
|
219
|
+
readonly currentType: _angular_core.InputSignal<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
210
220
|
/** The UI pattern for the tree. */
|
|
211
221
|
readonly pattern: TreePattern<V>;
|
|
212
222
|
/** Whether the tree has received focus yet. */
|
|
@@ -216,7 +226,7 @@ declare class CdkTree<V> {
|
|
|
216
226
|
register(child: CdkTreeItemGroup<V> | CdkTreeItem<V>): void;
|
|
217
227
|
deregister(child: CdkTreeItemGroup<V> | CdkTreeItem<V>): void;
|
|
218
228
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CdkTree<any>, never>;
|
|
219
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTree<any>, "[cdkTree]", ["cdkTree"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "skipDisabled": { "alias": "skipDisabled"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
229
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CdkTree<any>, "[cdkTree]", ["cdkTree"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "focusMode": { "alias": "focusMode"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "skipDisabled": { "alias": "skipDisabled"; "required": false; "isSignal": true; }; "typeaheadDelay": { "alias": "typeaheadDelay"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "nav": { "alias": "nav"; "required": false; "isSignal": true; }; "currentType": { "alias": "currentType"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
220
230
|
}
|
|
221
231
|
/**
|
|
222
232
|
* A selectable and expandable Tree Item in a Tree.
|
package/ui-patterns/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { L as ListboxInputs, a as ListboxPattern, O as OptionInputs, b as OptionPattern } from '../listbox.d-
|
|
2
|
-
export { b as RadioButtonInputs, c as RadioButtonPattern, R as RadioGroupInputs, a as RadioGroupPattern } from '../radio-group.d-
|
|
1
|
+
export { L as ListboxInputs, a as ListboxPattern, O as OptionInputs, b as OptionPattern } from '../listbox.d-Ck8-1BdR.js';
|
|
2
|
+
export { b as RadioButtonInputs, c as RadioButtonPattern, R as RadioGroupInputs, a as RadioGroupPattern } from '../radio-group.d-B6Ntu9oI.js';
|
|
3
3
|
export { S as SignalLike, W as WritableSignalLike, c as convertGetterSetterToWritableSignalLike } from '../list-navigation.d-tcweHm4g.js';
|
|
4
|
-
export { T as TabInputs, d as TabListInputs, e as TabListPattern, b as TabPanelInputs, c as TabPanelPattern, a as TabPattern } from '../tabs.d-
|
|
4
|
+
export { T as TabInputs, d as TabListInputs, e as TabListPattern, b as TabPanelInputs, c as TabPanelPattern, a as TabPattern } from '../tabs.d-BGC0Izc3.js';
|
|
5
5
|
export { A as AccordionGroupInputs, a as AccordionGroupPattern, d as AccordionPanelInputs, e as AccordionPanelPattern, b as AccordionTriggerInputs, c as AccordionTriggerPattern } from '../accordion.d-MvKtoWUK.js';
|
|
6
6
|
import '@angular/core';
|
|
7
|
-
import '../list-selection.d-
|
|
7
|
+
import '../list-selection.d-zyz_XRbe.js';
|
|
8
8
|
import '../list-typeahead.d-DvIIfjfu.js';
|
|
9
9
|
import '../expansion.d-BvIuKvYU.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-YS9XXb7X.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk-experimental/ui-patterns/tabs/tabs.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} from '@angular/core';\nimport {KeyboardEventManager} from '../behaviors/event-manager/keyboard-event-manager';\nimport {PointerEventManager} from '../behaviors/event-manager/pointer-event-manager';\nimport {ListFocus, ListFocusInputs, ListFocusItem} from '../behaviors/list-focus/list-focus';\nimport {\n ListNavigation,\n ListNavigationInputs,\n ListNavigationItem,\n} from '../behaviors/list-navigation/list-navigation';\nimport {\n ListSelection,\n ListSelectionInputs,\n ListSelectionItem,\n} from '../behaviors/list-selection/list-selection';\nimport {\n ExpansionItem,\n ExpansionControl,\n ListExpansionInputs,\n ListExpansion,\n} from '../behaviors/expansion/expansion';\nimport {SignalLike} from '../behaviors/signal-like/signal-like';\n\n/** The required inputs to tabs. */\nexport interface TabInputs\n extends ListNavigationItem,\n ListSelectionItem<string>,\n ListFocusItem,\n Omit<ExpansionItem, 'expansionId' | 'expandable'> {\n /** The parent tablist that controls the tab. */\n tablist: SignalLike<TabListPattern>;\n\n /** The remote tabpanel controlled by the tab. */\n tabpanel: SignalLike<TabPanelPattern | undefined>;\n}\n\n/** A tab in a tablist. */\nexport class TabPattern {\n /** Controls expansion for this tab. */\n readonly expansion: ExpansionControl;\n\n /** A global unique identifier for the tab. */\n readonly id: SignalLike<string>;\n\n /** A local unique identifier for the tab. */\n readonly value: SignalLike<string>;\n\n /** Whether the tab is disabled. */\n readonly disabled: SignalLike<boolean>;\n\n /** The html element that should receive focus. */\n readonly element: SignalLike<HTMLElement>;\n\n /** Whether this tab has expandable content. */\n readonly expandable = computed(() => this.expansion.expandable());\n\n /** The unique identifier used by the expansion behavior. */\n readonly expansionId = computed(() => this.expansion.expansionId());\n\n /** Whether the tab is expanded. */\n readonly expanded = computed(() => this.expansion.isExpanded());\n\n /** Whether the tab is active. */\n readonly active = computed(() => this.inputs.tablist().focusManager.activeItem() === this);\n\n /** Whether the tab is selected. */\n readonly selected = computed(\n () => !!this.inputs.tablist().selection.inputs.value().includes(this.value()),\n );\n\n /** The tabindex of the tab. */\n readonly tabindex = computed(() => this.inputs.tablist().focusManager.getItemTabindex(this));\n\n /** The id of the tabpanel associated with the tab. */\n readonly controls = computed(() => this.inputs.tabpanel()?.id());\n\n constructor(readonly inputs: TabInputs) {\n this.id = inputs.id;\n this.value = inputs.value;\n this.disabled = inputs.disabled;\n this.element = inputs.element;\n this.expansion = new ExpansionControl({\n ...inputs,\n expansionId: inputs.value,\n expandable: () => true,\n expansionManager: inputs.tablist().expansionManager,\n });\n }\n}\n\n/** The required inputs for the tabpanel. */\nexport interface TabPanelInputs {\n id: SignalLike<string>;\n tab: SignalLike<TabPattern | undefined>;\n value: SignalLike<string>;\n}\n\n/** A tabpanel associated with a tab. */\nexport class TabPanelPattern {\n /** A global unique identifier for the tabpanel. */\n readonly id: SignalLike<string>;\n\n /** A local unique identifier for the tabpanel. */\n readonly value: SignalLike<string>;\n\n /** Whether the tabpanel is hidden. */\n readonly hidden = computed(() => this.inputs.tab()?.expanded() === false);\n\n /** The tabindex of this tabpanel. */\n readonly tabindex = computed(() => (this.hidden() ? -1 : 0));\n\n constructor(readonly inputs: TabPanelInputs) {\n this.id = inputs.id;\n this.value = inputs.value;\n }\n}\n\n/** The selection operations that the tablist can perform. */\ninterface SelectOptions {\n select?: boolean;\n}\n\n/** The required inputs for the tablist. */\nexport type TabListInputs = ListNavigationInputs<TabPattern> &\n Omit<ListSelectionInputs<TabPattern, string>, 'multi'> &\n ListFocusInputs<TabPattern> &\n Omit<ListExpansionInputs, 'multiExpandable' | 'expandedIds' | 'items'>;\n\n/** Controls the state of a tablist. */\nexport class TabListPattern {\n /** Controls navigation for the tablist. */\n readonly navigation: ListNavigation<TabPattern>;\n\n /** Controls selection for the tablist. */\n readonly selection: ListSelection<TabPattern, string>;\n\n /** Controls focus for the tablist. */\n readonly focusManager: ListFocus<TabPattern>;\n\n /** Controls expansion for the tablist. */\n readonly expansionManager: ListExpansion;\n\n /** Whether the tablist is vertically or horizontally oriented. */\n readonly orientation: SignalLike<'vertical' | 'horizontal'>;\n\n /** Whether the tablist is disabled. */\n readonly disabled: SignalLike<boolean>;\n\n /** The tabindex of the tablist. */\n readonly tabindex = computed(() => this.focusManager.getListTabindex());\n\n /** The id of the current active tab. */\n readonly activedescendant = computed(() => this.focusManager.getActiveDescendant());\n\n /** Whether selection should follow focus. */\n readonly followFocus = computed(() => this.inputs.selectionMode() === 'follow');\n\n /** The key used to navigate to the previous tab in the tablist. */\n readonly 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 readonly nextKey = computed(() => {\n if (this.inputs.orientation() === 'vertical') {\n return 'ArrowDown';\n }\n return this.inputs.textDirection() === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n });\n\n /** The keydown event manager for the tablist. */\n readonly keydown = computed(() => {\n return new KeyboardEventManager()\n .on(this.prevKey, () => this.prev({select: this.followFocus()}))\n .on(this.nextKey, () => this.next({select: this.followFocus()}))\n .on('Home', () => this.first({select: this.followFocus()}))\n .on('End', () => this.last({select: this.followFocus()}))\n .on(' ', () => this._select({select: true}))\n .on('Enter', () => this._select({select: true}));\n });\n\n /** The pointerdown event manager for the tablist. */\n readonly pointerdown = computed(() => {\n return new PointerEventManager().on(e => this.goto(e, {select: true}));\n });\n\n constructor(readonly inputs: TabListInputs) {\n this.disabled = inputs.disabled;\n this.orientation = inputs.orientation;\n\n this.focusManager = new ListFocus(inputs);\n this.navigation = new ListNavigation({...inputs, focusManager: this.focusManager});\n\n this.selection = new ListSelection({\n ...inputs,\n multi: () => false,\n focusManager: this.focusManager,\n });\n\n this.expansionManager = new ListExpansion({\n ...inputs,\n multiExpandable: () => false,\n expandedIds: this.inputs.value,\n });\n }\n\n /**\n * Sets the tablist to its default initial state.\n *\n * Sets the active index of the tablist to the first focusable selected\n * tab if one exists. Otherwise, sets focus to the first focusable tab.\n *\n * This method should be called once the tablist and its tabs are properly initialized.\n */\n setDefaultState() {\n let firstItemIndex: number | undefined;\n\n for (const [index, item] of this.inputs.items().entries()) {\n if (!this.focusManager.isFocusable(item)) continue;\n\n if (firstItemIndex === undefined) {\n firstItemIndex = index;\n }\n\n if (item.selected()) {\n this.inputs.activeIndex.set(index);\n return;\n }\n }\n if (firstItemIndex !== undefined) {\n this.inputs.activeIndex.set(firstItemIndex);\n }\n }\n\n /** Handles keydown events for the tablist. */\n onKeydown(event: KeyboardEvent) {\n if (!this.disabled()) {\n this.keydown().handle(event);\n }\n }\n\n /** The pointerdown event manager for the tablist. */\n onPointerdown(event: PointerEvent) {\n if (!this.disabled()) {\n this.pointerdown().handle(event);\n }\n }\n\n /** Navigates to the first option in the tablist. */\n first(opts?: SelectOptions) {\n this.navigation.first();\n this._select(opts);\n }\n\n /** Navigates to the last option in the tablist. */\n last(opts?: SelectOptions) {\n this.navigation.last();\n this._select(opts);\n }\n\n /** Navigates to the next option in the tablist. */\n next(opts?: SelectOptions) {\n this.navigation.next();\n this._select(opts);\n }\n\n /** Navigates to the previous option in the tablist. */\n prev(opts?: SelectOptions) {\n this.navigation.prev();\n this._select(opts);\n }\n\n /** Navigates to the given item in the tablist. */\n goto(event: PointerEvent, opts?: SelectOptions) {\n const item = this._getItem(event);\n\n if (item) {\n this.navigation.goto(item);\n this._select(opts);\n }\n }\n\n /** Handles updating selection for the tablist. */\n private _select(opts?: SelectOptions) {\n if (opts?.select) {\n this.selection.selectOne();\n this.expansionManager.open(this.focusManager.activeItem());\n }\n }\n\n private _getItem(e: PointerEvent) {\n if (!(e.target instanceof HTMLElement)) {\n return;\n }\n\n const element = e.target.closest('[role=\"tab\"]');\n return this.inputs.items().find(i => i.element() === element);\n }\n}\n"],"names":[],"mappings":";;;;;AA2CA;MACa,UAAU,CAAA;AAuCA,IAAA,MAAA;;AArCZ,IAAA,SAAS;;AAGT,IAAA,EAAE;;AAGF,IAAA,KAAK;;AAGL,IAAA,QAAQ;;AAGR,IAAA,OAAO;;AAGP,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;;AAGxD,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;;AAG1D,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;;IAGtD,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,IAAI,CAAC;;AAGjF,IAAA,QAAQ,GAAG,QAAQ,CAC1B,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAC9E;;IAGQ,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;;AAGnF,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